@font-face {
    font-family: 'Bebas Neue';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/BebasNeue-Regular.woff2') format('woff2'),
         url('fonts/BebasNeue-Regular.ttf') format('truetype');
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg: #080808;
    --card-bg: #181818;
    --card-border: rgba(255, 255, 255, 0.08);
    --red: #E50914;
    --red-hover: #f6121d;
    --red-dark: #b20710;
    --heading-red: #c4302b;
    --gold: #d4a017;
    --text: #e0e0e0;
    --text-muted: rgba(255, 255, 255, 0.35);
    --blue: #116dff;
}

html {
    font-size: 16px;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 3rem 1rem 2rem;
}

/* --- Logo --- */
.site-logo {
    display: block;
    width: clamp(240px, 50vw, 520px);
    height: auto;
    margin: 0 auto 2.5rem;
}

/* --- Card --- */
.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 2.5rem 2rem 2rem;
    max-width: 560px;
    width: 100%;
    text-align: center;
}

.card-heading {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    color: var(--heading-red);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 1rem;
}

.card-text {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text);
    margin-bottom: 1.75rem;
    padding: 0 0.5rem;
}

.card-text .highlight {
    color: var(--gold);
    font-weight: 700;
}

/* --- Counter display --- */
.counter-display {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(3.5rem, 12vw, 6rem);
    color: #fff;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
    line-height: 1;
    transition: transform 0.15s ease;
}

.counter-display.bump {
    transform: scale(1.08);
}

.counter-label {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    letter-spacing: 0.02em;
}

/* --- Submit button --- */
.btn-submit {
    display: block;
    width: 100%;
    padding: 1.1rem 2rem;
    background: var(--red);
    color: #fff;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.35rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    box-shadow: 0 4px 12px rgba(229, 9, 20, 0.3);
}

.btn-submit:hover {
    background: var(--red-hover);
}

.btn-submit:active {
    background: var(--red-dark);
    transform: scale(0.98);
}

.btn-submit:disabled {
    background: #555;
    cursor: not-allowed;
    box-shadow: none;
}

.btn-submit.done {
    background: #2e7d32;
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.3);
    cursor: default;
}

/* --- Info section --- */
.info-section {
    max-width: 560px;
    width: 100%;
    margin-top: 2rem;
    padding: 0 0.5rem;
}

.info-heading {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.4rem;
    color: var(--heading-red);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
}

.info-heading:first-child {
    margin-top: 0;
}

.info-section p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text);
    margin-bottom: 0.75rem;
}

.info-section a {
    color: var(--red);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s;
}

.info-section a:hover {
    color: var(--red-hover);
}

/* --- Captcha overlay --- */
.captcha-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.captcha-overlay.active {
    display: flex;
}

.captcha-box {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 2rem;
    max-width: 380px;
    width: 90%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    text-align: center;
}

.captcha-box h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.4rem;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.captcha-question {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.6rem;
    color: #fff;
    margin: 1rem 0;
}

.captcha-box input[type="number"] {
    width: 100%;
    padding: 0.6rem 0.8rem;
    font-size: 1.1rem;
    background: #222;
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 5px;
    color: #fff;
    text-align: center;
    outline: none;
    transition: border-color 0.15s;
}

.captcha-box input[type="number"]:focus {
    border-color: var(--red);
}

.captcha-error {
    color: var(--red);
    font-size: 0.9rem;
    min-height: 1.2rem;
    margin-top: 0.4rem;
}

.captcha-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.btn {
    flex: 1;
    padding: 0.65rem 1rem;
    border: none;
    border-radius: 5px;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.05rem;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: background 0.15s;
}

.btn-primary {
    background: var(--red);
    color: #fff;
}

.btn-primary:hover:not(:disabled) {
    background: var(--red-hover);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-secondary {
    background: #333;
    color: var(--text);
}

.btn-secondary:hover {
    background: #444;
}

/* --- Honeypot (hidden from humans) --- */
.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
}

/* --- Footer --- */
.site-footer {
    margin-top: 2rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.site-footer a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.site-footer a:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-sep {
    margin: 0 0.4rem;
}

/* --- Responsive --- */
@media (max-width: 480px) {
    body {
        padding: 2rem 0.75rem 1.5rem;
    }

    .card {
        padding: 2rem 1.25rem 1.5rem;
        border-radius: 12px;
    }

    .card-heading {
        font-size: 1.6rem;
    }

    .card-text {
        font-size: 0.95rem;
    }

    .btn-submit {
        font-size: 1.15rem;
        padding: 1rem 1.5rem;
    }
}
