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

body {
    font-family: 'Poppins', sans-serif;
    background-image:
        linear-gradient(to bottom,
            rgba(4, 10, 30, 0.65) 0%,
            rgba(8, 20, 50, 0.40) 35%,
            rgba(10, 22, 52, 0.40) 65%,
            rgba(4, 12, 30, 0.68) 100%
        ),
        url('stadium-bg.jpg');
    background-size: cover;
    background-position: center 50%;
    background-attachment: fixed;
    background-color: #081020;
    min-height: 100vh;
    color: #fff;
    overflow-x: hidden;
    position: relative;
}

/* Soft green grass glow at bottom */
body::before {
    content: '';
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 35%;
    background: radial-gradient(ellipse 100% 100% at 50% 100%, rgba(20, 110, 45, 0.30) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* Top accent bar */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #f7971e, #ffd200, #2ed573, #ffd200, #f7971e);
    background-size: 200% auto;
    animation: shimmer 4s linear infinite;
    z-index: 200;
}

/* Animated background particles */
.bg-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    font-size: 1.5rem;
    opacity: 0.1;
    animation: floatParticle 15s infinite linear;
}

.particle:nth-child(1) { left: 5%; animation-delay: 0s; animation-duration: 18s; }
.particle:nth-child(2) { left: 15%; animation-delay: 2s; animation-duration: 22s; }
.particle:nth-child(3) { left: 30%; animation-delay: 4s; animation-duration: 16s; }
.particle:nth-child(4) { left: 45%; animation-delay: 1s; animation-duration: 20s; }
.particle:nth-child(5) { left: 60%; animation-delay: 3s; animation-duration: 17s; }
.particle:nth-child(6) { left: 75%; animation-delay: 5s; animation-duration: 21s; }
.particle:nth-child(7) { left: 85%; animation-delay: 2.5s; animation-duration: 19s; }
.particle:nth-child(8) { left: 95%; animation-delay: 4.5s; animation-duration: 23s; }

@keyframes floatParticle {
    0% { transform: translateY(100vh) rotate(0deg); }
    100% { transform: translateY(-100px) rotate(360deg); }
}

/* Confetti canvas */
#confetti-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 24px;
    position: relative;
    z-index: 1;
}

/* Match cards — auto-fit grid: 1 card=full, 2=half, 3+=responsive columns */
#matches-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    align-items: stretch;
    gap: 20px;
    /* Single card: don't stretch full width */
    max-width: 100%;
}
#matches-container:has(> :only-child) {
    grid-template-columns: minmax(0, 480px);
    justify-content: center;
}
#matches-container > * {
    display: flex;
    flex-direction: column;
}

/* =============================================
   ANNOUNCEMENTS TICKER — scrolling top bar
   ============================================= */
.ticker-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 36px;
    display: flex;
    align-items: center;
    z-index: 200;
    background: rgba(6, 10, 28, 0.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 210, 0, 0.18);
    overflow: hidden;
}

.ticker-label {
    flex-shrink: 0;
    padding: 0 14px;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: #ffd200;
    text-transform: uppercase;
    border-right: 1px solid rgba(255,210,0,0.25);
    height: 100%;
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,210,0,0.06);
}

.ticker-track {
    flex: 1;
    overflow: hidden;
    height: 100%;
    display: flex;
    align-items: center;
}

.ticker-content {
    display: flex;
    align-items: center;
    gap: 0;
    white-space: nowrap;
    animation: tickerScroll 75s linear infinite;
}

.ticker-content:hover {
    animation-play-state: paused;
}

@keyframes tickerScroll {
    0%   { transform: translateX(100vw); }
    100% { transform: translateX(-100%); }
}

@keyframes sponsorScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* =============================================
   SPONSOR BAR — scrolling bottom strip
   ============================================= */
.sponsor-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 32px;
    display: flex;
    align-items: center;
    z-index: 200;
    background: rgba(10, 6, 28, 0.90);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    overflow: hidden;
}

.sponsor-label {
    flex-shrink: 0;
    padding: 0 12px;
    font-size: 0.60rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: #aaa;
    text-transform: uppercase;
    border-right: 1px solid rgba(255,255,255,0.10);
    height: 100%;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.sponsor-track {
    flex: 1;
    overflow: hidden;
    height: 100%;
    display: flex;
    align-items: center;
}

.sponsor-content {
    display: flex;
    align-items: center;
    white-space: nowrap;
    animation: sponsorScroll 75s linear infinite;
}

.sponsor-content:hover { animation-play-state: paused; }

.sponsor-item {
    font-size: 0.72rem;
    color: #8a9bbf;
    padding: 0 16px;
}

.sponsor-item b {
    color: #c8d8f0;
    font-weight: 700;
}

.sponsor-sep {
    color: rgba(255,255,255,0.12);
    font-size: 0.8rem;
}

/* push page content above the sponsor bar */
.container { padding-bottom: 44px; }

.ann-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 24px 0 0;
    white-space: nowrap;
    font-size: 0.78rem;
}

.ann-bar { display: none; }
.ann-body { display: inline-flex; align-items: center; gap: 6px; }

.ann-title {
    font-weight: 700;
    color: var(--ann-color);
}

.ann-text {
    color: #b0bfd8;
    font-weight: 400;
}

.ann-sep {
    color: rgba(255,210,0,0.35);
    padding: 0 8px 0 24px;
    font-size: 1rem;
}

/* push page content below the ticker */
.container { padding-top: 52px; }

.hidden {
    display: none !important;
}

/* Header */
.header {
    text-align: center;
    padding: 30px 0;
}

.trophy-bounce {
    width: 88px;
    height: auto;
    animation: bounce 2s infinite;
    margin-bottom: 10px;
    filter: drop-shadow(0 6px 24px rgba(255,210,0,0.45)) drop-shadow(0 2px 8px rgba(0,0,0,0.7));
    display: block;
    margin-left: auto;
    margin-right: auto;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.header h1 {
    font-size: 2.2rem;
    font-weight: 800;
    color: #ffffff;
    text-shadow: 0 2px 20px rgba(0,0,0,0.5);
    letter-spacing: -0.01em;
}

.title-gold {
    background: linear-gradient(to right, #f7971e, #ffd200, #f7971e);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.tagline {
    margin-top: 8px;
    font-size: 0.9rem;
    color: #c0c8e0;
    letter-spacing: 0.08em;
}

.countdown {
    margin-top: 20px;
    padding: 16px 36px 14px;
    background: rgba(5, 12, 35, 0.72);
    border-radius: 18px;
    display: inline-block;
    border: 1px solid rgba(255, 210, 0, 0.35);
    box-shadow: 0 0 40px rgba(255, 210, 0, 0.08), inset 0 1px 0 rgba(255,255,255,0.06);
    backdrop-filter: blur(12px);
}

.cd-label-top {
    font-size: 0.65rem;
    letter-spacing: 0.18em;
    color: #ffd200;
    font-weight: 600;
    margin-bottom: 10px;
    text-align: center;
    text-transform: uppercase;
}

.cd-blocks {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.cd-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
}

.cd-num {
    font-size: 2.6rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}

.cd-unit-label {
    font-size: 0.58rem;
    letter-spacing: 0.14em;
    color: #7a8aaa;
    margin-top: 5px;
    text-transform: uppercase;
}

.cd-sep {
    font-size: 2rem;
    font-weight: 700;
    color: #ffd200;
    margin: 0 2px;
    padding-bottom: 16px;
    opacity: 0.8;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 40px rgba(255, 210, 0, 0.08); }
    50% { box-shadow: 0 0 50px rgba(255, 210, 0, 0.18); }
}

.countdown {
    animation: pulse 2.5s ease-in-out infinite;
}

.countdown.urgent {
    border-color: rgba(255, 160, 64, 0.5);
    box-shadow: 0 0 40px rgba(255, 160, 64, 0.12);
}
.countdown.urgent .cd-num { color: #ffa040; }
.countdown.urgent .cd-label-top { color: #ffa040; }
.countdown.urgent .cd-sep { color: #ffa040; }

.countdown.critical {
    border-color: rgba(255, 68, 68, 0.6);
    animation: pulseCritical 0.8s ease-in-out infinite;
}
.countdown.critical .cd-num { color: #ff5555; }
.countdown.critical .cd-label-top { color: #ff5555; }
.countdown.critical .cd-sep { color: #ff5555; }

@keyframes pulseCritical {
    0%, 100% { box-shadow: 0 0 30px rgba(255, 68, 68, 0.15); }
    50% { box-shadow: 0 0 50px rgba(255, 68, 68, 0.35); }
}

/* Leaderboard Teaser */
.leaderboard-teaser {
    text-align: center;
    margin-bottom: 16px;
    padding: 10px 20px;
    background: rgba(255, 210, 0, 0.06);
    border: 1px solid rgba(255, 210, 0, 0.15);
    border-radius: 12px;
    font-size: 0.88rem;
    color: #bbb;
}

.leaderboard-teaser a {
    color: #ffd200;
    text-decoration: none;
    font-weight: 600;
    margin-left: 6px;
}

.leaderboard-teaser a:hover {
    text-decoration: underline;
}

/* Match Card */
.match-section {
    animation: fadeIn 0.6s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.match-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    background:
        /* floodlight glow from top — softer */
        radial-gradient(ellipse 80% 60% at 50% -10%, rgba(180, 220, 180, 0.10) 0%, transparent 70%),
        /* edge vignette to blend into background */
        radial-gradient(ellipse 100% 100% at 50% 50%, transparent 45%, rgba(0,0,0,0.70) 100%),
        /* grass stripes — muted */
        repeating-linear-gradient(
            90deg,
            rgba(14, 80, 32, 1)   0%,
            rgba(14, 80, 32, 1)   16.66%,
            rgba(17, 100, 40, 1)  16.66%,
            rgba(17, 100, 40, 1)  33.33%,
            rgba(14, 80, 32, 1)   33.33%,
            rgba(14, 80, 32, 1)   50%,
            rgba(17, 100, 40, 1)  50%,
            rgba(17, 100, 40, 1)  66.66%,
            rgba(14, 80, 32, 1)   66.66%,
            rgba(14, 80, 32, 1)   83.33%,
            rgba(17, 100, 40, 1)  83.33%,
            rgba(17, 100, 40, 1)  100%
        );
    border-radius: 20px;
    padding: 44px 28px;
    border: none;
    margin-bottom: 15px;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 16px 60px rgba(0, 0, 0, 0.70),
        inset 0 0 80px rgba(0, 0, 0, 0.30);
}

/* Center halfway line */
.match-card::before {
    content: '';
    position: absolute;
    top: 8%;
    bottom: 8%;
    left: 50%;
    width: 2px;
    background: rgba(255, 255, 255, 0.55);
    transform: translateX(-50%);
    z-index: 0;
    pointer-events: none;
}

/* Center circle */
.match-card::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 115px;
    height: 115px;
    border: 2px solid rgba(255, 255, 255, 0.50);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
    pointer-events: none;
}

.team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    flex: 1;
    position: relative;
    z-index: 1;
}

/* Goal posts */
.goal-post {
    position: relative;
    width: 18px;
    flex-shrink: 0;
    align-self: stretch;
    display: flex;
    align-items: center;
    z-index: 2;
}

.goal-post::before {
    content: '';
    position: absolute;
    top: 20%;
    width: 18px;
    height: 50%;
    border: 2px solid rgba(255, 255, 255, 0.20);
    border-bottom: none;
    filter: drop-shadow(0 0 6px rgba(255,255,255,0.50));
}

.goal-post-left::before {
    border-right: none;
    right: 0;
}

.goal-post-right::before {
    border-left: none;
    left: 0;
}

.team-home {
    animation: slideInLeft 0.8s ease;
    padding: 14px 18px;
    border-radius: 14px;
    background: radial-gradient(ellipse 120% 120% at 20% 50%, rgba(0, 0, 0, 0.42) 0%, transparent 70%);
}

.team-away {
    animation: slideInRight 0.8s ease;
    padding: 14px 18px;
    border-radius: 14px;
    background: radial-gradient(ellipse 120% 120% at 80% 50%, rgba(0, 0, 0, 0.42) 0%, transparent 70%);
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

.flag {
    width: 110px;
    height: 74px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 6px 24px rgba(0,0,0,0.65), 0 2px 6px rgba(0,0,0,0.5);
    transition: transform 0.3s ease;
}

.flag:hover {
    transform: scale(1.08);
}

.team h2 {
    font-size: clamp(0.72rem, 1.8vw, 1.05rem);
    text-align: center;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 8px rgba(0,0,0,0.9), 0 0 20px rgba(0,0,0,0.7);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100px;
}

/* Single match — show full team name, allow wrapping */
#matches-container:has(> :only-child) .team h2 {
    white-space: normal;
    word-break: break-word;
    overflow: visible;
    text-overflow: unset;
    max-width: 130px;
    font-size: clamp(0.88rem, 2vw, 1.15rem);
}

.vs-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    position: relative;
    z-index: 1;
}

.vs-ball {
    font-size: 2.8rem;
    animation: spinBall 3s linear infinite;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.6));
    position: relative;
    z-index: 2;
}

/* Rotating conic glow — narrow torch beam sweeping from center */
.vs-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 520px;
    height: 520px;
    margin: -260px 0 0 -260px;
    border-radius: 50%;
    background: conic-gradient(
        transparent               0deg,
        transparent               330deg,
        rgba(255, 180, 20,  0.05) 340deg,
        rgba(255, 225, 80,  0.22) 352deg,
        rgba(255, 248, 160, 0.38) 358deg,
        transparent               360deg
    );
    filter: blur(6px);
    animation: rotateGlow 3s linear infinite;
    z-index: 1;
    pointer-events: none;
}

@keyframes rotateGlow {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

@keyframes spinBall {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.vs {
    font-size: 1.2rem;
    font-weight: 800;
    color: #ffd200;
    text-shadow: 0 0 16px rgba(255, 210, 0, 0.7), 0 2px 6px rgba(0,0,0,0.9);
}

.match-details {
    text-align: center;
    margin-bottom: 25px;
    color: #d0daf0;
    font-size: 0.9rem;
}

/* Prediction Form */
.prediction-form {
    background: rgba(255, 255, 255, 0.07);
    border-radius: 20px;
    padding: 30px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.13);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
    animation: fadeIn 0.8s ease 0.2s both;
}

.prediction-form h3 {
    text-align: center;
    margin-bottom: 5px;
    color: #ffd200;
    font-size: 1.3rem;
}

.form-subtitle {
    text-align: center;
    color: #c0c8e0;
    font-size: 0.85rem;
    margin-bottom: 25px;
}

.score-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
}

.score-input {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.score-input label {
    font-size: 0.85rem;
    color: #d8e4ff;
}

/* Score Stepper */
.stepper {
    display: flex;
    align-items: center;
    gap: 0;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    overflow: hidden;
}

.stepper-btn {
    width: 44px;
    height: 60px;
    background: transparent;
    border: none;
    color: #ffd200;
    font-size: 1.6rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease;
    line-height: 1;
    padding: 0;
    touch-action: manipulation;
}

.stepper-btn:hover {
    background: rgba(255, 210, 0, 0.15);
}

.stepper-btn:active {
    background: rgba(255, 210, 0, 0.25);
}

.stepper-value {
    min-width: 50px;
    text-align: center;
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    user-select: none;
}

.score-separator {
    font-size: 2rem;
    font-weight: 700;
    color: #ffd200;
    margin-top: 20px;
}

/* Form inline error */
.form-error {
    background: rgba(255, 107, 107, 0.12);
    border: 1px solid rgba(255, 107, 107, 0.4);
    border-radius: 10px;
    color: #ff8080;
    font-size: 0.88rem;
    padding: 10px 14px;
    margin-bottom: 12px;
    text-align: center;
    animation: fadeIn 0.3s ease;
}

/* Winner auto-select hint */
.winner-hint {
    font-size: 0.75rem;
    color: #8a9bbf;
    margin-bottom: 10px;
}

/* Winner Section */
.winner-section {
    margin-bottom: 25px;
}

.winner-section > label {
    display: block;
    margin-bottom: 4px;
    color: #d8e4ff;
    font-size: 0.9rem;
}

.winner-options {
    display: flex;
    gap: 10px;
}

.radio-card {
    flex: 1;
    text-align: center;
    padding: 14px;
    border: 2px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    font-weight: 600;
}

.radio-card:hover {
    border-color: #ffd200;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 210, 0, 0.15);
}

.radio-card input {
    display: none;
}

.radio-card:has(input:checked) {
    border-color: #ffd200;
    background: rgba(255, 210, 0, 0.15);
    transform: scale(1.02);
    box-shadow: 0 0 20px rgba(255, 210, 0, 0.2);
}

/* User Info */
.user-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.input-group label {
    font-size: 0.85rem;
    color: #d8e4ff;
}

.input-group input {
    padding: 12px 15px;
    border: 2px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.input-group input:focus {
    border-color: #ffd200;
    box-shadow: 0 0 15px rgba(255, 210, 0, 0.15);
}

.input-group small {
    color: #8a9bbf;
    font-size: 0.75rem;
}

/* Submit Button */
.submit-btn {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #f7971e, #ffd200);
    color: #1a1a2e;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    position: relative;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 210, 0, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Spinner inside submit button */
.btn-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(26, 26, 46, 0.35);
    border-top-color: #1a1a2e;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    vertical-align: middle;
    margin-right: 8px;
}

.scoring-info {
    text-align: center;
    margin-top: 15px;
    padding: 10px;
    background: rgba(255, 210, 0, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 210, 0, 0.1);
}

.scoring-info p {
    font-size: 0.8rem;
    color: #bbb;
}

/* Success Message */
.success-message {
    text-align: center;
    padding: 40px 30px;
    background: rgba(46, 213, 115, 0.08);
    border-radius: 20px;
    border: 1px solid rgba(46, 213, 115, 0.2);
    margin-top: 20px;
    animation: popIn 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Prediction summary card inside success */
.prediction-summary {
    margin: 14px auto;
    padding: 12px 20px;
    background: rgba(255, 210, 0, 0.08);
    border: 1px solid rgba(255, 210, 0, 0.25);
    border-radius: 14px;
    max-width: 340px;
}

.summary-score {
    font-size: 1rem;
    color: #e0e0e0;
    margin-bottom: 5px;
}

.summary-score span {
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffd200;
    margin: 0 5px;
}

.summary-winner {
    font-size: 0.88rem;
    color: #aaa;
}

.summary-winner strong {
    color: #2ed573;
}

/* Retry button on error */
.btn-retry {
    margin-top: 16px;
    padding: 10px 26px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: #fff;
    font-size: 0.9rem;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn-retry:hover {
    background: rgba(255, 255, 255, 0.14);
}

@keyframes popIn {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.success-icon {
    font-size: 4rem;
    animation: celebrateBounce 0.8s ease infinite alternate;
}

@keyframes celebrateBounce {
    from { transform: scale(1) rotate(-5deg); }
    to { transform: scale(1.1) rotate(5deg); }
}

.success-message h3 {
    color: #2ed573;
    margin: 10px 0;
    font-size: 1.4rem;
}

.success-message p {
    color: #aaa;
}

.fun-message {
    margin-top: 15px;
    font-size: 1rem;
    color: #ffd200;
    font-weight: 600;
    animation: fadeIn 1s ease 0.5s both;
}

/* Closed Message */
.closed-message {
    text-align: center;
    padding: 40px;
    background: rgba(255, 107, 107, 0.1);
    border-radius: 16px;
    border: 1px solid rgba(255, 107, 107, 0.3);
}

.closed-message h2 {
    color: #ff6b6b;
    margin-bottom: 10px;
}

/* Leaderboard */
.leaderboard-section {
    margin-top: 30px;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 20px;
    padding: 25px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.13);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
    animation: fadeIn 0.8s ease 0.4s both;
}

.leaderboard-section h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #ffd200;
    font-size: 1.3rem;
}

.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
}

.leaderboard-table th {
    padding: 10px 8px;
    text-align: left;
    color: #ffd200;
    border-bottom: 2px solid rgba(255, 210, 0, 0.3);
    font-size: 0.8rem;
    text-transform: uppercase;
}

.leaderboard-table td {
    padding: 10px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
}

.leaderboard-table tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

.leaderboard-table .rank-1 td { color: #ffd700; font-weight: 700; text-shadow: 0 0 10px rgba(255, 215, 0, 0.3); }
.leaderboard-table .rank-2 td { color: #c0c0c0; font-weight: 600; }
.leaderboard-table .rank-3 td { color: #cd7f32; font-weight: 600; }

/* Loading */
.loading {
    text-align: center;
    padding: 60px 20px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top-color: #ffd200;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Error */
.error-message {
    text-align: center;
    padding: 40px;
}

.error-message h2 {
    color: #ff6b6b;
    margin-bottom: 10px;
}

/* =============================================
   MATCH CAROUSEL DOTS + SWIPE HINT
   ============================================= */
#match-dots {
    display: none;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
}

#swipe-hint {
    display: none;
    text-align: center;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.5);
    letter-spacing: 0.05em;
    margin: 6px 0 12px;
    animation: swipeHintPulse 1.6s ease-in-out 3;
    pointer-events: none;
}

@keyframes swipeHintPulse {
    0%, 100% { opacity: 0.45; transform: translateX(0); }
    50%       { opacity: 1;    transform: translateX(6px); }
}

#match-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.25);
    transition: background 0.2s, transform 0.2s;
    flex-shrink: 0;
}

#match-dots .dot.active {
    background: #ffd200;
    transform: scale(1.35);
}

/* Responsive */
@media (max-width: 680px) {
    #matches-container {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
        gap: 16px;
        /* hide scrollbar but keep functionality */
        scrollbar-width: none;
        padding-bottom: 4px;
    }
    #matches-container::-webkit-scrollbar {
        display: none;
    }
    #matches-container > * {
        flex: 0 0 100%;
        scroll-snap-align: start;
        min-width: 0;
    }
    #match-dots, #swipe-hint {
        display: flex;
    }
    #swipe-hint {
        display: block;
    }
    /* Sidebar hidden on mobile */
    .sidebar { display: none; }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 1.4rem;
    }
    .trophy-bounce {
        font-size: 2.5rem;
    }
    .container {
        padding: 16px;
    }
    .match-card {
        gap: 12px;
        padding: 25px 15px;
    }
    .flag {
        width: 80px;
        height: 54px;
    }
    .winner-options {
        flex-direction: column;
    }
    .stepper-btn {
        width: 40px;
        height: 52px;
        font-size: 1.4rem;
    }
    .stepper-value {
        min-width: 42px;
        font-size: 1.5rem;
    }
    .vs-ball {
        font-size: 1.4rem;
    }
}

/* =============================================
   PAGE LAYOUT — 3-column with sidebars
   ============================================= */
.page-layout {
    display: block;
    width: 100%;
    position: relative;
    z-index: 1;
}

.sidebar {
    width: 240px;
    position: fixed;
    top: 56px;
    padding-top: 20px;
    z-index: 10;
}

.sidebar-left  { left: 12px; }
.sidebar-right { right: 12px; }

/* =============================================
   WIDGET — shared card style
   ============================================= */
.widget {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    overflow: hidden;
    backdrop-filter: blur(8px);
}

.widget-title {
    font-family: 'Poppins', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #ffd200;
    padding: 10px 14px;
    background: rgba(255,210,0,0.07);
    border-bottom: 1px solid rgba(255,255,255,0.07);
}

.widget-loading {
    color: #666;
    font-size: 0.8rem;
    padding: 12px 14px;
    margin: 0;
}

/* Leaderboard widget */
.widget-lb-list {
    padding: 6px 0;
}

.widget-lb-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    font-size: 0.82rem;
    transition: background 0.15s;
}
.widget-lb-row:last-child { border-bottom: none; }
.widget-lb-row:hover { background: rgba(255,255,255,0.04); }

.widget-lb-rank {
    font-weight: 700;
    color: #ffd200;
    min-width: 22px;
    font-size: 0.78rem;
}
.widget-lb-name {
    flex: 1;
    color: #e8e8e8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.widget-lb-pts {
    font-weight: 700;
    color: #2ed573;
    font-size: 0.78rem;
}

/* Upcoming matches widget */
.widget-match-list {
    padding: 6px 0;
}

.widget-match-item {
    padding: 12px 14px;
    font-size: 0.8rem;
}
.widget-match-item:not(:last-child) {
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 14px;
    margin-bottom: 4px;
}

.widget-match-teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    font-weight: 700;
    color: #fff;
    font-size: 0.78rem;
    margin-bottom: 4px;
}

.widget-match-flag {
    width: 20px;
    height: 14px;
    border-radius: 2px;
    object-fit: cover;
}

.widget-match-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    font-size: 0.7rem;
    max-width: 62px;
    text-align: center;
    line-height: 1.2;
}

.widget-match-vs {
    color: #ffd200;
    font-size: 0.65rem;
    font-weight: 700;
}

.widget-match-meta {
    color: #888;
    font-size: 0.68rem;
    line-height: 1.4;
    text-align: center;
    margin-top: 6px;
}

.widget-match-group {
    display: inline-block;
    background: rgba(255,210,0,0.12);
    color: #ffd200;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 4px;
    margin-bottom: 2px;
}
