:root {
    --lynx-orange: #ff8f16;
    --lynx-orange-dark: #e56f18;
    --lynx-gray: #4c4d50;
    --ink: #1f2328;
    --field: #166534;
    --line: rgba(255, 255, 255, 0.22);
    --soft: #f6f7f8;
}

* {
    letter-spacing: 0;
}

body {
    color: var(--ink);
    font-family: Arial, Helvetica, sans-serif;
}

.public-body {
    min-height: 100vh;
    background: #0d3d2a;
}

.site-shell {
    min-height: 100vh;
}

.hero-wrap,
.game-stage,
.result-stage {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 86% 16%, rgba(255, 143, 22, 0.18), transparent 28%),
        linear-gradient(135deg, #303337 0%, #1f2328 52%, #111315 100%);
}

.field-lines {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, transparent 49.6%, var(--line) 49.8%, var(--line) 50.2%, transparent 50.4%),
        repeating-linear-gradient(0deg, transparent 0 78px, rgba(255,255,255,0.08) 79px 80px);
    opacity: 0.75;
}

.brand-logo {
    width: min(360px, 85vw);
    background: rgba(255, 255, 255, 0.92);
    border-radius: 8px;
    padding: 16px;
    animation: floatIn 700ms ease both;
}

.hero-wrap .brand-logo {
    width: min(240px, 75vw);
    background: transparent;
    border-radius: 0;
    padding: 0;
}

.eyebrow {
    color: var(--lynx-orange);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.hero-title {
    color: #fff;
    font-size: clamp(2.25rem, 5vw, 5.25rem);
    font-weight: 900;
    line-height: 0.95;
    max-width: 760px;
}

.hero-copy {
    color: rgba(255, 255, 255, 0.84);
    font-size: 1.15rem;
    max-width: 560px;
}

.prize-strip {
    align-items: center;
    background: rgba(255, 255, 255, 0.92);
    border-left: 7px solid var(--lynx-orange);
    border-radius: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
    max-width: 500px;
    padding: 14px 18px;
}

.prize-strip strong {
    color: var(--lynx-orange-dark);
    font-size: 1.7rem;
}

.glass-panel,
.question-panel,
.result-panel,
.login-card,
.admin-card,
.metric {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 8px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
}

.enter-panel {
    padding: clamp(24px, 4vw, 42px);
}

.player-entry-panel {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.88));
    border: 1px solid rgba(255, 255, 255, 0.55);
    color: #1f2328;
}

.entry-header {
    margin-bottom: 24px;
}

.entry-label {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 143, 22, 0.12);
    border-radius: 999px;
    color: var(--lynx-orange-dark);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    padding: 10px 14px;
    text-transform: uppercase;
}

.entry-header h2 {
    font-size: clamp(2rem, 3vw, 2.8rem);
    margin-top: 12px;
    margin-bottom: 0;
}

.entry-note {
    color: #5b5d63;
    font-size: 0.95rem;
    margin-top: 18px;
}

.hero-copy-panel {
    position: relative;
    z-index: 1;
    padding-right: 14px;
}

.hero-copy-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left, rgba(255, 143, 22, 0.18), transparent 30%);
    pointer-events: none;
    z-index: 0;
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.hero-pill {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    color: #f8fbff;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 10px 16px;
}

.hero-copy-panel .hero-title {
    color: #fff;
}

.hero-copy-panel .hero-copy {
    color: rgba(255, 255, 255, 0.84);
}

.player-badge {
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 10px;
}

.player-badge span {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.player-badge strong {
    color: #fff;
    font-size: 1.15rem;
    letter-spacing: 0.02em;
}

.question-summary span {
    color: rgba(255, 255, 255, 0.7);
    display: block;
    font-size: 0.9rem;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.result-stage.is-winner {
    background: radial-gradient(circle at top center, rgba(255, 143, 22, 0.18), transparent 28%),
                linear-gradient(135deg, #0c3b2a 0%, #145c38 52%, #212529 100%);
}

.result-panel {
    margin-inline: auto;
    max-width: 760px;
    overflow: hidden;
    padding: clamp(24px, 5vw, 54px);
    position: relative;
    text-align: center;
    background: rgba(255, 255, 255, 0.98);
}

.result-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.35);
    opacity: 0;
    pointer-events: none;
}

.result-player-name {
    color: var(--lynx-orange-dark);
    font-size: clamp(2rem, 3vw, 3rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    margin: 10px 0 18px;
}

.result-player-row {
    display: grid;
    gap: 12px;
    justify-items: center;
    margin-bottom: 10px;
}

.confetti-container {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.confetti-piece {
    position: absolute;
    width: 10px;
    height: 10px;
    opacity: 0;
    will-change: transform, opacity;
    animation: confettiFall 1800ms ease-out forwards;
}

@keyframes confettiFall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    70% {
        opacity: 1;
    }
    100% {
        transform: translateY(260px) rotate(720deg);
        opacity: 0;
    }
}

@media (max-width: 991px) {
    .hero-copy-panel {
        padding-right: 0;
    }
}

.enter-panel h2,
.login-card h1,
.admin-heading h1,
.admin-card h2 {
    font-weight: 900;
}

.btn-lynx {
    --bs-btn-bg: var(--lynx-orange);
    --bs-btn-border-color: var(--lynx-orange);
    --bs-btn-hover-bg: var(--lynx-orange-dark);
    --bs-btn-hover-border-color: var(--lynx-orange-dark);
    --bs-btn-color: #fff;
    --bs-btn-hover-color: #fff;
    font-weight: 800;
}

.game-stage {
    align-items: center;
    display: flex;
}

.game-topbar {
    align-items: center;
    color: #fff;
    display: flex;
    gap: 18px;
    justify-content: space-between;
    margin-bottom: 22px;
}

.game-topbar img {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    max-width: 190px;
    padding: 10px;
    width: 38vw;
}

.progress-slim {
    background: rgba(255, 255, 255, 0.18);
    height: 8px;
    margin-top: 8px;
    width: min(420px, 48vw);
}

.progress-slim .progress-bar {
    background: var(--lynx-orange);
}

.question-panel {
    margin-inline: auto;
    max-width: 980px;
    padding: clamp(28px, 4vw, 52px);
    transform-origin: center;
    animation: popIn 420ms ease both;
    background: rgba(8, 16, 28, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #f8fbff;
}

.question-meta {
    align-items: center;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.question-badge {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.question-pill {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    padding: 10px 14px;
    text-transform: uppercase;
}

.question-tag {
    color: rgba(248, 251, 255, 0.7);
    font-size: 0.95rem;
}

.question-steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: right;
}

.question-steps strong {
    display: block;
    color: #fff;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.step-dots {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.step-dot {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    height: 10px;
    width: 10px;
    transition: background-color 180ms ease, transform 180ms ease;
}

.step-dot.is-active {
    background: var(--lynx-orange);
    transform: scale(1.15);
}

.timer-wrap {
    align-items: center;
    display: flex;
    gap: 18px;
    margin-bottom: 28px;
}

.timer-ring {
    --progress: 100%;
    align-items: center;
    background: conic-gradient(var(--lynx-orange) var(--progress), rgba(255,255,255,0.1) 0);
    border-radius: 50%;
    display: grid;
    height: 86px;
    place-items: center;
    position: relative;
    width: 86px;
}

.timer-ring::after {
    background: #08101c;
    border-radius: 50%;
    content: "";
    height: 62px;
    position: absolute;
    width: 62px;
}

.timer-ring span {
    font-size: 1.45rem;
    font-weight: 900;
    position: relative;
    z-index: 1;
    color: #fff;
}

.timer-label {
    color: #d2dade;
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.timer-note {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.95rem;
}

.question-title {
    font-size: clamp(1.95rem, 3.2vw, 3.35rem);
    font-weight: 900;
    line-height: 1.04;
    margin-bottom: 28px;
    color: #fff;
}

.answer-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.answer-btn {
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    color: #f8fbff;
    display: flex;
    font-size: 1rem;
    font-weight: 800;
    gap: 18px;
    min-height: 90px;
    padding: 18px 20px;
    text-align: left;
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.answer-btn span {
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #fff;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 0.95rem;
    font-weight: 900;
    height: 48px;
    justify-content: center;
    width: 48px;
}

.answer-btn:hover,
.answer-btn:focus {
    border-color: var(--lynx-orange);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.13);
}

.answer-btn.is-selected {
    background: rgba(255, 143, 22, 0.12);
    border-color: var(--lynx-orange);
    color: #fff;
}

.answer-btn.is-locked {
    cursor: not-allowed;
    opacity: 0.7;
    pointer-events: none;
}

.result-stage {
    display: grid;
    place-items: center;
}

.result-panel {
    margin-inline: auto;
    max-width: 760px;
    overflow: hidden;
    padding: clamp(24px, 5vw, 54px);
    position: relative;
    text-align: center;
}

.result-logo {
    max-width: 280px;
    width: 72vw;
}

.result-panel h1 {
    font-size: clamp(2rem, 5vw, 4.5rem);
    font-weight: 900;
}

.coupon-box {
    background: #1f2328;
    border-radius: 8px;
    color: #fff;
    display: grid;
    gap: 6px;
    margin: 24px auto 0;
    max-width: 430px;
    padding: 22px;
}

.coupon-box strong {
    color: var(--lynx-orange);
    font-size: clamp(1.8rem, 5vw, 3rem);
}

.confetti::before,
.confetti::after {
    animation: confettiRain 1200ms ease both;
    color: var(--lynx-orange);
    content: "■ ■ ■ ■ ■ ■ ■ ■";
    font-size: 28px;
    left: 8%;
    position: absolute;
    top: -20px;
    transform: rotate(18deg);
}

.confetti::after {
    color: var(--lynx-gray);
    left: auto;
    right: 8%;
    transform: rotate(-18deg);
}

.login-body {
    align-items: center;
    background: linear-gradient(135deg, #f6f7f8, #e9edf0);
    display: flex;
    min-height: 100vh;
    padding: 18px;
}

.login-card {
    margin: auto;
    max-width: 430px;
    padding: 34px;
    width: 100%;
}

.login-card img {
    display: block;
    margin-bottom: 24px;
    max-width: 260px;
    width: 100%;
}

.admin-body {
    background: var(--soft);
}

.text-orange {
    color: var(--lynx-orange-dark);
}

.admin-heading {
    align-items: center;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    margin-bottom: 24px;
}

.admin-card {
    box-shadow: 0 16px 42px rgba(31, 35, 40, 0.08);
    padding: 24px;
}

.metric {
    box-shadow: 0 14px 36px rgba(31, 35, 40, 0.08);
    padding: 22px;
}

.metric span {
    color: #667085;
    display: block;
    font-weight: 800;
}

.metric strong {
    color: var(--lynx-orange-dark);
    font-size: 2.3rem;
    font-weight: 900;
}

.actions {
    white-space: nowrap;
}

@keyframes floatIn {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes confettiRain {
    from {
        opacity: 0;
        transform: translateY(-60px) rotate(18deg);
    }
    to {
        opacity: 1;
        transform: translateY(110px) rotate(18deg);
    }
}

@keyframes pulse {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.06);
    }
}

@media (max-width: 767px) {
    .question-meta {
        flex-direction: column;
        align-items: stretch;
        text-align: left;
    }

    .question-steps {
        align-items: flex-start;
        text-align: left;
    }

    .answer-grid {
        grid-template-columns: 1fr;
    }

    .game-topbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .progress-slim {
        width: 82vw;
    }

    .admin-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .actions {
        white-space: normal;
    }
}
