/* ==========================================================================
   OFFICECUP — Prediction Challenge
   Design tokens: rebranded to the yesagain palette — deep navy backdrop,
   warm amber/gold accent (var(--pitch) kept as the internal name for the
   primary accent to avoid touching every rule, but it now renders amber),
   condensed broadcast display type + geometric body type.
   ========================================================================== */

:root {
    /* Colors */
    --bg-void: #0a1730;
    --bg-surface: #0f1f3d;
    --bg-surface-2: #142b52;
    --pitch: #F5A623;
    /* primary brand accent - amber */
    --pitch-dim: #D98E1B;
    --gold: #C99444;
    /* secondary warm accent - bronze/gold */
    --alert: #ff4b5c;
    --sky: #5cc8ff;
    --ice: #eaf2f8;
    --muted: #93a4c2;
    --muted-2: #5f719a;

    /* yesagain-style brand tones, used for the logo mark + wordmark */
    --navy-brand: #0f2557;
    --navy-brand-light: #1c3a7a;
    --amber-brand: #F5A623;
    --cream: #FBF3E7;

    --glass-bg: rgba(255, 255, 255, 0.055);
    --glass-bg-strong: rgba(255, 255, 255, 0.09);
    --glass-border: rgba(255, 255, 255, 0.12);

    /* Type */
    --font-display: "Barlow Condensed", sans-serif;
    --font-body: "Manrope", sans-serif;

    /* Layout */
    --container-w: 1180px;
    --radius-lg: 22px;
    --radius-md: 16px;
    --radius-sm: 10px;

    --shadow-glow-pitch: 0 0 40px rgba(245, 166, 35, 0.25);
    --shadow-glow-gold: 0 0 40px rgba(201, 148, 68, 0.2);
    --shadow-card: 0 20px 50px rgba(0, 0, 0, 0.45);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg-void);
    color: var(--ice);
    font-family: var(--font-body);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

body.no-scroll {
    overflow: hidden;
}

.is-hidden {
    display: none !important;
}

h1,
h2,
h3 {
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 0.01em;
    font-weight: 700;
    margin: 0;
}

p {
    margin: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    max-width: var(--container-w);
    margin: 0 auto;
    padding: 0 24px;
}

img,
svg {
    display: block;
}

::selection {
    background: var(--pitch);
    color: var(--navy-brand);
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ==========================================================================
   Glassmorphism base
   ========================================================================== */

.glass {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    box-shadow: var(--shadow-card);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 26px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn:active {
    transform: scale(0.96);
}

.btn-primary {
    background: linear-gradient(135deg, var(--pitch), var(--pitch-dim));
    color: #fff;
    box-shadow: var(--shadow-glow-pitch);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 55px rgba(245, 166, 35, 0.4);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.06);
    color: var(--ice);
    border: 1px solid var(--glass-border);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

.btn-danger {
    background: linear-gradient(135deg, var(--alert), #c73342);
    color: #fff;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 40px rgba(255, 75, 92, 0.35);
}

.btn-block {
    width: 100%;
}

.btn-predict {
    background: rgba(245, 166, 35, 0.12);
    color: var(--pitch);
    border: 1px solid rgba(245, 166, 35, 0.4);
    width: 100%;
    padding: 12px 20px;
}

.btn-predict:hover {
    background: var(--pitch);
    color: #fff;
    box-shadow: var(--shadow-glow-pitch);
    transform: translateY(-2px);
}

/* ==========================================================================
   Stadium background (shared by welcome screen + hero)
   ========================================================================== */

.floodlight {
    position: absolute;
    width: 700px;
    height: 700px;
    border-radius: 50%;
    filter: blur(10px);
    opacity: 0.35;
    pointer-events: none;
}

.fl-1 {
    background: radial-gradient(circle, rgba(245, 166, 35, 0.45), transparent 65%);
    top: -260px;
    left: -160px;
}

.fl-2 {
    background: radial-gradient(circle, rgba(92, 200, 255, 0.35), transparent 65%);
    bottom: -300px;
    right: -180px;
}

.pitch-lines {
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 2px, transparent 2px 140px);
    mask-image: radial-gradient(circle at 50% 40%, black, transparent 75%);
    pointer-events: none;
}

.floating-ball {
    position: absolute;
    font-size: 2.4rem;
    top: 18%;
    right: 10%;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5));
    animation: floatBall 7s ease-in-out infinite;
    opacity: 0.9;
}

@keyframes floatBall {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    50% {
        transform: translate(-30px, 40px) rotate(180deg);
    }
}

/* ==========================================================================
   Welcome screen
   ========================================================================== */

.welcome-screen {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 50% 20%, #142b52 0%, var(--bg-void) 70%);
    overflow: hidden;
    padding: 24px;
}

.welcome-bg {
    position: absolute;
    inset: 0;
}

.welcome-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 440px;
    padding: 48px 36px;
    border-radius: var(--radius-lg);
    text-align: center;
    animation: cardEntrance 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes cardEntrance {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.logo-mark-svg {
    display: block;
    width: 100%;
    height: 100%;
}

.logo-ring {
    fill: var(--navy-brand);
    stroke: var(--amber-brand);
    stroke-width: 2.5;
}

.logo-ball-bg {
    fill: var(--cream);
    stroke: var(--navy-brand);
    stroke-width: 1.2;
}

.logo-ball-core {
    fill: var(--navy-brand);
}

.logo-ball-lines {
    stroke: var(--navy-brand);
    stroke-width: 1.3;
    stroke-linecap: round;
}

.logo-mark--sm {
    width: 36px;
    height: 36px;
}

.logo-mark--lg {
    width: 78px;
    height: 78px;
}

.logo-mark--xl {
    width: 100px;
    height: 100px;
}

.welcome-ball {
    margin: 0 auto 16px;
    animation: floatLogo 4s ease-in-out infinite;
}

@keyframes floatLogo {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

.welcome-title {
    font-size: clamp(1.7rem, 4vw, 2.1rem);
    line-height: 1.15;
    margin-bottom: 10px;
}

.welcome-subtitle {
    color: var(--muted);
    margin-bottom: 28px;
    font-size: 0.98rem;
}

.welcome-form {
    text-align: left;
}

/* ==========================================================================
   Form fields (shared)
   ========================================================================== */

.field-label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    margin-bottom: 8px;
    font-weight: 700;
}

.field-input {
    width: 100%;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.04);
    color: var(--ice);
    font-family: var(--font-body);
    font-size: 1rem;
    margin-bottom: 6px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field-input:focus {
    outline: none;
    border-color: var(--pitch);
    box-shadow: 0 0 0 4px rgba(245, 166, 35, 0.15);
}

.field-error {
    color: var(--alert);
    font-size: 0.85rem;
    min-height: 0;
    margin: 0 0 14px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.field-error.is-visible {
    opacity: 1;
}

/* ==========================================================================
   Header / Nav
   ========================================================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 23, 48, 0.78);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 74px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-text {
    font-family: var(--font-display);
    font-size: 1.2rem;
    letter-spacing: 0.06em;
    color: var(--ice);
}

.brand-text strong {
    color: var(--pitch);
}

.main-nav {
    display: flex;
    gap: 32px;
}

.main-nav a {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--muted);
    transition: color 0.2s ease;
    position: relative;
}

.main-nav a:hover {
    color: var(--ice);
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: var(--pitch);
    transition: width 0.25s ease;
}

.main-nav a:hover::after {
    width: 100%;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.player-badge {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    cursor: pointer;
    font-weight: 700;
    font-size: 0.9rem;
    transition: background 0.2s ease;
}

.player-badge:hover {
    background: var(--glass-bg-strong);
}

.player-icon {
    font-size: 1rem;
}

.chevron {
    width: 16px;
    height: 16px;
    fill: var(--muted);
}

.player-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 180px;
    background: var(--bg-surface-2);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-card);
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    overflow: hidden;
}

.player-menu.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.player-menu-item {
    display: block;
    width: 100%;
    text-align: left;
    padding: 12px 16px;
    background: none;
    border: none;
    color: var(--ice);
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease;
}

.player-menu-item:hover {
    background: rgba(255, 255, 255, 0.06);
}

.player-menu-item.danger {
    color: var(--alert);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.nav-toggle span {
    width: 22px;
    height: 2px;
    background: var(--ice);
    border-radius: 2px;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
    position: relative;
    overflow: hidden;
    padding: 100px 0 80px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-inner {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 780px;
    margin: 0 auto;
}

.eyebrow {
    display: inline-block;
    color: var(--pitch);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.hero-title {
    font-size: clamp(2.6rem, 6vw, 4.6rem);
    line-height: 1.02;
    margin-bottom: 22px;
}

.hero-subtitle {
    color: var(--muted);
    font-size: 1.05rem;
    max-width: 560px;
    margin: 0 auto 34px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    margin-bottom: 56px;
    flex-wrap: wrap;
}

/* Scoreboard countdown */
.scoreboard {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    padding: 28px 40px;
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(18px);
}

.scoreboard-label {
    font-family: var(--font-display);
    font-size: 1.15rem;
    letter-spacing: 0.03em;
    color: var(--ice);
}

.scoreboard-label .vs {
    color: var(--muted-2);
    margin: 0 6px;
    font-size: 0.9em;
}

.scoreboard-digits {
    display: flex;
    align-items: center;
    gap: 10px;
}

.digit-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.digit {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    font-weight: 700;
    line-height: 1;
    color: var(--pitch);
    background: var(--bg-void);
    border: 1px solid rgba(245, 166, 35, 0.35);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    min-width: 76px;
    text-align: center;
    text-shadow: 0 0 18px rgba(245, 166, 35, 0.65);
    font-variant-numeric: tabular-nums;
}

.digit.flip {
    animation: digitPulse 0.4s ease;
}

@keyframes digitPulse {
    0% {
        transform: translateY(-6px);
        opacity: 0.4;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.digit-caption {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--muted);
}

.digit-colon {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--muted-2);
    transform: translateY(-10px);
}

/* ==========================================================================
   Sections (shared)
   ========================================================================== */

.section {
    padding: 96px 0;
}

.section-alt {
    background: var(--bg-surface);
}

.section-head {
    text-align: center;
    max-width: 620px;
    margin: 0 auto 52px;
}

.section-eyebrow {
    display: block;
    color: var(--gold);
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.section-title {
    font-size: clamp(1.9rem, 4vw, 2.6rem);
    margin-bottom: 14px;
}

.section-desc {
    color: var(--muted);
    font-size: 1rem;
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Match cards
   ========================================================================== */

.matches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 22px;
}

.match-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    backdrop-filter: blur(16px);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.match-card:hover {
    transform: translateY(-6px);
    border-color: rgba(245, 166, 35, 0.4);
    box-shadow: 0 24px 55px rgba(0, 0, 0, 0.5), 0 0 40px rgba(245, 166, 35, 0.12);
}

.match-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    color: var(--muted);
}

.match-status {
    padding: 4px 12px;
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.68rem;
}

.status-upcoming {
    background: rgba(92, 200, 255, 0.15);
    color: var(--sky);
}

.status-finished {
    background: rgba(201, 148, 68, 0.15);
    color: var(--gold);
}

.match-teams {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
}

.team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}

.flag-icon {
    width: 56px;
    height: 38px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

.flag-icon-inline {
    width: 28px;
    height: 20px;
    border-radius: 3px;
    vertical-align: middle;
    display: inline-block;
}

.option-flag {
    width: 24px;
    height: 17px;
    object-fit: cover;
    border-radius: 3px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    flex-shrink: 0;
}

.option-flag-sm {
    width: 18px;
    height: 13px;
    object-fit: cover;
    border-radius: 2px;
    vertical-align: middle;
    margin-right: 5px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.team-name {
    font-family: var(--font-display);
    font-size: 1.05rem;
    letter-spacing: 0.01em;
}

.vs-badge {
    font-family: var(--font-display);
    font-size: 0.8rem;
    color: var(--muted-2);
    border: 1px solid var(--glass-border);
    padding: 4px 10px;
    border-radius: 999px;
}

.match-stadium {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 0.85rem;
}

.icon-pin {
    width: 14px;
    height: 14px;
    fill: var(--muted-2);
    flex-shrink: 0;
}

.my-prediction-tag {
    font-size: 0.82rem;
    color: var(--pitch);
    background: rgba(245, 166, 35, 0.1);
    border: 1px solid rgba(245, 166, 35, 0.3);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    text-align: center;
    font-weight: 600;
}

.match-result {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.result-pill {
    font-size: 0.75rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.result-score {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--gold);
}

/* ==========================================================================
   Leaderboard table
   ========================================================================== */

.table-card {
    border-radius: var(--radius-lg);
    padding: 8px;
    overflow-x: auto;
}

.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 520px;
}

.leaderboard-table th {
    text-align: left;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    padding: 18px 20px;
    border-bottom: 1px solid var(--glass-border);
}

.leaderboard-table td {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.95rem;
}

.leaderboard-table tr:last-child td {
    border-bottom: none;
}

.leaderboard-table tr:hover td {
    background: rgba(255, 255, 255, 0.03);
}

.leaderboard-table tr.is-me td {
    background: rgba(245, 166, 35, 0.08);
}

.rank-cell {
    font-family: var(--font-display);
    font-size: 1.1rem;
}

.name-cell {
    font-weight: 700;
}

.you-tag {
    font-size: 0.65rem;
    color: var(--pitch);
    background: rgba(245, 166, 35, 0.15);
    padding: 2px 8px;
    border-radius: 999px;
    text-transform: uppercase;
    margin-left: 6px;
    font-weight: 700;
}

.points-cell {
    color: var(--gold);
    font-weight: 800;
    font-family: var(--font-display);
    font-size: 1.1rem;
}

.empty-state {
    text-align: center;
    color: var(--muted);
    padding: 40px 20px;
}

/* ==========================================================================
   Rules
   ========================================================================== */

.rules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 22px;
}

.rule-card {
    padding: 32px 26px;
    border-radius: var(--radius-lg);
    text-align: center;
}

.rule-points {
    font-family: var(--font-display);
    font-size: 2.6rem;
    color: var(--pitch);
    margin-bottom: 12px;
    text-shadow: 0 0 24px rgba(245, 166, 35, 0.4);
}

.rule-card h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.rule-card p {
    color: var(--muted);
    font-size: 0.92rem;
}

/* ==========================================================================
   Statistics
   ========================================================================== */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.stat-card {
    padding: 32px 20px;
    border-radius: var(--radius-lg);
    text-align: center;
}

.stat-value {
    display: block;
    font-family: var(--font-display);
    font-size: 2.8rem;
    color: var(--ice);
    text-shadow: 0 0 30px rgba(92, 200, 255, 0.25);
}

.stat-label {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* ==========================================================================
   Timeline
   ========================================================================== */

.timeline {
    list-style: none;
    margin: 0;
    padding: 0;
    max-width: 720px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 6px;
    top: 6px;
    bottom: 6px;
    width: 2px;
    background: linear-gradient(180deg, var(--pitch), transparent);
}

.timeline-item {
    position: relative;
    padding-left: 34px;
    margin-bottom: 26px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: 0;
    top: 4px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--pitch);
    box-shadow: 0 0 12px rgba(245, 166, 35, 0.7);
}

.timeline-top {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 4px;
    flex-wrap: wrap;
}

.timeline-player {
    font-weight: 800;
}

.timeline-time {
    color: var(--muted-2);
    font-size: 0.82rem;
}

.timeline-body {
    color: var(--muted);
    font-size: 0.92rem;
}

.timeline-score {
    color: var(--ice);
    font-weight: 600;
}

/* ==========================================================================
   Prizes
   ========================================================================== */

.prizes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 22px;
    align-items: end;
}

.prize-card {
    padding: 36px 24px;
    border-radius: var(--radius-lg);
    text-align: center;
}

.prize-medal {
    font-size: 2.6rem;
    display: block;
    margin-bottom: 10px;
}

.prize-card h3 {
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.prize-title {
    color: var(--muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 10px;
}

.prize-detail {
    color: var(--muted);
    font-size: 0.9rem;
}

.prize-gold {
    border-color: rgba(201, 148, 68, 0.45);
    box-shadow: var(--shadow-glow-gold);
    transform: scale(1.04);
}

.prize-gold .prize-title,
.prize-gold h3 {
    color: var(--gold);
}

.prize-silver {
    border-color: rgba(234, 242, 248, 0.3);
}

.prize-bronze {
    border-color: rgba(228, 149, 92, 0.35);
}

.prize-bronze h3 {
    color: #e4995c;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
    padding: 36px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.85rem;
}

.footer-muted {
    color: var(--muted-2);
}

/* ==========================================================================
   Modals
   ========================================================================== */

.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 23, 48, 0.7);
    backdrop-filter: blur(6px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    padding: 20px;
}

.modal-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}

.modal {
    position: relative;
    width: 100%;
    max-width: 480px;
    border-radius: var(--radius-lg);
    padding: 40px 34px;
    transform: scale(0.92) translateY(10px);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.is-open .modal {
    transform: scale(1) translateY(0);
}

.modal-sm {
    max-width: 400px;
}

.modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--glass-border);
    color: var(--ice);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.modal-close:hover {
    background: var(--alert);
    transform: rotate(90deg);
}

.modal-eyebrow {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--pitch);
    font-weight: 700;
    margin-bottom: 8px;
}

.modal-eyebrow.warning {
    color: var(--alert);
}

.modal-title {
    font-size: 1.6rem;
    margin-bottom: 6px;
}

.modal-meta {
    color: var(--muted);
    font-size: 0.88rem;
    margin-bottom: 26px;
}

.field-group {
    margin-bottom: 22px;
}

.field-group:last-of-type {
    margin-bottom: 10px;
}

.winner-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.winner-option {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 12px 8px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.03);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    line-height: 1.2;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.winner-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.winner-option:has(input:checked) {
    background: rgba(245, 166, 35, 0.15);
    border-color: var(--pitch);
    color: var(--pitch);
}

.score-inputs {
    display: flex;
    align-items: end;
    gap: 14px;
}

.score-input-block {
    flex: 1;
}

.score-input-block label {
    display: block;
    font-size: 0.75rem;
    color: var(--muted);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.score-input-block input {
    width: 100%;
    padding: 14px;
    text-align: center;
    font-family: var(--font-display);
    font-size: 1.6rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.04);
    color: var(--ice);
}

.score-input-block input:focus {
    outline: none;
    border-color: var(--pitch);
}

.score-dash {
    color: var(--muted-2);
    font-size: 1.4rem;
    padding-bottom: 12px;
}

.confirm-actions {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}

/* ==========================================================================
   Success overlay + confetti
   ========================================================================== */

.success-overlay {
    position: fixed;
    inset: 0;
    z-index: 400;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.success-overlay.is-open {
    opacity: 1;
}

.success-card {
    padding: 44px 50px;
    border-radius: var(--radius-lg);
    text-align: center;
    animation: successPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes successPop {
    0% {
        transform: scale(0.7);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.success-card h3 {
    font-size: 1.4rem;
    margin-bottom: 6px;
    color: var(--pitch);
}

.success-card p {
    color: var(--muted);
    font-size: 0.9rem;
}

.success-check {
    width: 70px;
    height: 70px;
    margin: 0 auto 18px;
}

.success-check svg {
    width: 100%;
    height: 100%;
}

.success-circle {
    fill: none;
    stroke: var(--pitch);
    stroke-width: 2.5;
    stroke-dasharray: 151;
    stroke-dashoffset: 151;
    animation: circleDraw 0.5s ease forwards;
}

.success-tick {
    fill: none;
    stroke: var(--pitch);
    stroke-width: 3.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 40;
    stroke-dashoffset: 40;
    animation: tickDraw 0.35s ease 0.4s forwards;
}

@keyframes circleDraw {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes tickDraw {
    to {
        stroke-dashoffset: 0;
    }
}

.confetti-canvas {
    position: fixed;
    inset: 0;
    z-index: 350;
    pointer-events: none;
    opacity: 0;
}

.confetti-canvas.is-active {
    opacity: 1;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 900px) {
    .main-nav {
        position: fixed;
        top: 74px;
        left: 0;
        right: 0;
        background: var(--bg-surface-2);
        border-bottom: 1px solid var(--glass-border);
        flex-direction: column;
        padding: 20px 24px;
        gap: 18px;
        transform: translateY(-130%);
        transition: transform 0.3s ease;
        z-index: 90;
    }

    .main-nav.is-open {
        transform: translateY(0);
    }

    .nav-toggle {
        display: flex;
    }
}

@media (max-width: 640px) {
    .hero {
        padding: 70px 0 56px;
    }

    .scoreboard {
        padding: 22px 18px;
        width: 100%;
    }

    .scoreboard-digits {
        gap: 6px;
    }

    .digit {
        min-width: 58px;
        font-size: 1.7rem;
        padding: 8px;
    }

    .digit-colon {
        display: none;
    }

    .winner-options {
        grid-template-columns: 1fr;
    }

    .modal {
        padding: 30px 22px;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }

    .prize-gold {
        transform: none;
    }
}

/* ==========================================================================
   Loading screen — yesagain-style branded splash
   ========================================================================== */

.loading-screen {
    position: fixed;
    inset: 0;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 50% 42%, var(--bg-surface-2) 0%, var(--bg-void) 78%);
    opacity: 1;
    visibility: visible;
    transition: opacity 0.55s ease, visibility 0.55s ease;
}

.loading-screen.is-done {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loading-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
}

.loading-logo-wrap {
    position: relative;
    width: 132px;
    height: 132px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-spinner {
    position: absolute;
    inset: 0;
    animation: loadingSpin 1.1s linear infinite;
}

.loading-spinner circle {
    fill: none;
    stroke: var(--amber-brand);
    stroke-width: 4;
    stroke-linecap: round;
    stroke-dasharray: 58 218;
}

@keyframes loadingSpin {
    to {
        transform: rotate(360deg);
    }
}

.loading-logo {
    width: 100px;
    height: 100px;
    animation: loadingPulse 1.6s ease-in-out infinite;
}

@keyframes loadingPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.06);
    }
}

.loading-word {
    font-family: var(--font-display);
    font-size: 1.65rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0;
    animation: loadingWordIn 0.6s ease 0.25s forwards;
}

.loading-word-office {
    color: var(--ice);
}

.loading-word-cup {
    color: var(--amber-brand);
    margin-left: 4px;
}

@keyframes loadingWordIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.loading-bar {
    width: 150px;
    height: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}
.btn-disabled {
    background-color: #333 !important;
    color: #888 !important;
    cursor: not-allowed !important;
    border: 1px solid #444 !important;
}

.loading-bar-fill {
    width: 40%;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, var(--amber-brand), transparent);
    animation: loadingBarSweep 1.3s ease-in-out infinite;
}

@keyframes loadingBarSweep {
    0% {
        transform: translateX(-120%);
    }

    100% {
        transform: translateX(280%);
    }
}