/* =========================================================
   clickeale.com
   Todas las partes principales tienen clases propias.
   ========================================================= */

:root {
    --page-bg: #07111f;
    --page-bg-secondary: #0d1d32;
    --text-main: #ffffff;
    --text-muted: #aab9ca;
    --accent: #ffc400;
    --accent-secondary: #18a9ff;
    --button-text: #07111f;
    --card-bg: rgba(11, 28, 49, 0.78);
    --card-border: rgba(255, 255, 255, 0.12);
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.page {
    min-height: 100vh;
    color: var(--text-main);
    background:
        radial-gradient(circle at 20% 20%, rgba(24, 169, 255, 0.16), transparent 30%),
        radial-gradient(circle at 80% 75%, rgba(255, 196, 0, 0.13), transparent 28%),
        linear-gradient(145deg, var(--page-bg), var(--page-bg-secondary));
}

.page__main {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.clicker {
    width: min(100%, 620px);
    padding: 52px 34px 42px;
    text-align: center;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 28px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
}

.clicker__logo {
    margin-bottom: 34px;
    font-size: clamp(2rem, 7vw, 3.5rem);
    font-weight: 900;
    letter-spacing: -0.06em;
}

.clicker__logo span {
    margin-left: 3px;
    color: var(--accent);
    font-size: 0.42em;
    letter-spacing: -0.03em;
}

.clicker__title {
    margin: 0;
    font-size: clamp(2rem, 7vw, 3.2rem);
    line-height: 1;
}

.clicker__subtitle {
    margin: 14px 0 30px;
    color: var(--text-muted);
    font-size: 1rem;
}

.counter {
    margin: 0 auto 32px;
    padding: 20px 24px;
    border-radius: 18px;
    background: rgba(0, 0, 0, 0.18);
}

.counter__label {
    display: block;
    margin-bottom: 5px;
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.counter__value {
    display: block;
    font-size: clamp(2.5rem, 10vw, 4.5rem);
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.click-button {
    width: min(100%, 360px);
    min-height: 92px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 0;
    border-radius: 22px;
    padding: 20px 30px;
    cursor: pointer;
    color: var(--button-text);
    background: linear-gradient(135deg, var(--accent), #ffe36d);
    box-shadow: 0 12px 30px rgba(255, 196, 0, 0.25);
    font: inherit;
    font-weight: 900;
    font-size: 1.35rem;
    letter-spacing: 0.04em;
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.click-button:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 18px 38px rgba(255, 196, 0, 0.32);
}

.click-button:active:not(:disabled) {
    transform: translateY(1px) scale(0.99);
}

.click-button:focus-visible {
    outline: 4px solid rgba(24, 169, 255, 0.6);
    outline-offset: 4px;
}

.click-button:disabled {
    cursor: not-allowed;
    opacity: 0.58;
}

.click-button--loading {
    opacity: 0.7;
}

.click-button__icon {
    font-size: 1.7rem;
    transform: rotate(-25deg);
}

.click-button__text {
    line-height: 1;
}

.clicker__message {
    min-height: 24px;
    margin: 20px 0 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

@media (max-width: 520px) {
    .page__main {
        padding: 14px;
    }

    .clicker {
        padding: 38px 20px 30px;
        border-radius: 22px;
    }

    .click-button {
        min-height: 78px;
        border-radius: 18px;
        font-size: 1.15rem;
    }
}
