/* ================================================
   CASH OUT AT THE BANK - HQ TRIVIA STYLE
   Broadcast Spectacle / Neon Game Show Aesthetic
   ================================================ */

/* CSS Variables */
:root {
    /* CashApp Core Colors */
    --primary: #00D54B;
    --primary-bright: #00FF5F;
    --primary-dark: #00A83A;
    --primary-glow: rgba(0, 213, 75, 0.6);
    --primary-glow-intense: rgba(0, 255, 95, 0.8);

    /* Backgrounds */
    --bg-dark: #000000;
    --bg-elevated: #0A0A0A;
    --card-bg: #141414;
    --card-bg-glass: rgba(20, 20, 20, 0.85);

    /* Text */
    --text-primary: #FFFFFF;
    --text-secondary: #8E8E93;
    --text-muted: #5C5C5C;

    /* Accents */
    --accent-teal: #00D4AA;
    --accent-purple: #8B5CF6;
    --accent-coral: #FF6B6B;
    --accent-gold: #FFD700;

    /* Timer States */
    --timer-safe: #00D54B;
    --timer-warning: #FFD700;
    --timer-danger: #FF3B30;

    /* Spacing & Sizing */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;

    /* Typography */
    --font-display: 'Oswald', sans-serif;
    --font-body: 'Space Grotesk', sans-serif;
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Particle Canvas */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* Screen Flash Effect */
#screen-flash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
}

#screen-flash.correct {
    background: radial-gradient(circle, rgba(0, 213, 75, 0.4) 0%, transparent 70%);
}

#screen-flash.wrong {
    background: radial-gradient(circle, rgba(255, 59, 48, 0.4) 0%, transparent 70%);
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.screen {
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

/* ================================================
   LOGO STYLES
   ================================================ */

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.logo-cash {
    color: var(--text-primary);
}

.logo-out {
    color: var(--primary);
    text-shadow:
        0 0 10px var(--primary-glow),
        0 0 20px var(--primary-glow),
        0 0 40px var(--primary-glow);
    animation: logoGlow 2s ease-in-out infinite alternate;
}

@keyframes logoGlow {
    from {
        text-shadow:
            0 0 10px var(--primary-glow),
            0 0 20px var(--primary-glow),
            0 0 40px var(--primary-glow);
    }
    to {
        text-shadow:
            0 0 15px var(--primary-glow-intense),
            0 0 30px var(--primary-glow-intense),
            0 0 60px var(--primary-glow);
    }
}

/* ================================================
   NAVIGATION
   ================================================ */

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    position: relative;
    z-index: 100;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 40px;
    align-items: center;
}

nav ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    position: relative;
}

nav ul li a:hover {
    color: var(--text-primary);
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
}

.nav-cta {
    background: var(--primary) !important;
    color: var(--bg-dark) !important;
    padding: 10px 20px !important;
    border-radius: var(--radius-full);
    font-weight: 600 !important;
}

.nav-cta::after {
    display: none !important;
}

.nav-cta:hover {
    box-shadow: 0 0 20px var(--primary-glow);
}

/* ================================================
   HEADER & HERO
   ================================================ */

header {
    background: transparent;
    position: relative;
}

.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 85vh;
    padding: 40px 20px;
    position: relative;
}

/* Prize Pool Badge */
.prize-pool {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(-20px);
}

.prize-label {
    font-family: var(--font-display);
    font-size: 14px;
    letter-spacing: 4px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.prize-amount {
    font-family: var(--font-display);
    font-size: clamp(48px, 10vw, 80px);
    font-weight: 700;
    color: var(--primary);
    text-shadow:
        0 0 20px var(--primary-glow),
        0 0 40px var(--primary-glow),
        0 0 80px var(--primary-glow);
    animation: prizeGlow 1.5s ease-in-out infinite alternate;
}

@keyframes prizeGlow {
    from {
        text-shadow:
            0 0 20px var(--primary-glow),
            0 0 40px var(--primary-glow),
            0 0 80px var(--primary-glow);
        transform: scale(1);
    }
    to {
        text-shadow:
            0 0 30px var(--primary-glow-intense),
            0 0 60px var(--primary-glow-intense),
            0 0 100px var(--primary-glow);
        transform: scale(1.02);
    }
}

/* Hero Title */
.hero-title {
    margin-bottom: 20px;
}

.title-line {
    display: block;
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(30px);
}

.title-line-1 {
    font-size: clamp(48px, 12vw, 100px);
    color: var(--text-primary);
}

.title-line-2 {
    font-size: clamp(36px, 8vw, 72px);
    color: var(--primary);
    text-shadow:
        0 0 10px var(--primary-glow),
        0 0 30px var(--primary-glow);
}

/* Hero Tagline */
.hero-tagline {
    font-size: clamp(16px, 3vw, 24px);
    color: var(--text-secondary);
    margin-bottom: 30px;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0;
}

/* Live Indicator */
.live-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 40px;
    opacity: 0;
}

.live-dot {
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: 50%;
    animation: livePulse 1.5s ease-in-out infinite;
}

@keyframes livePulse {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 0 0 var(--primary-glow);
    }
    50% {
        opacity: 0.8;
        box-shadow: 0 0 0 8px transparent;
    }
}

.live-text {
    font-size: 14px;
    color: var(--text-secondary);
    letter-spacing: 1px;
}

#online-count {
    color: var(--primary);
    font-weight: 600;
}

/* ================================================
   BUTTONS
   ================================================ */

.cta-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    opacity: 0;
}

.primary-btn {
    position: relative;
    background: var(--primary);
    color: var(--bg-dark);
    padding: 18px 40px;
    border: none;
    border-radius: var(--radius-full);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
}

.primary-btn .btn-text {
    position: relative;
    z-index: 2;
}

.primary-btn .btn-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--primary-bright);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.5s ease;
    z-index: 1;
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow:
        0 10px 40px var(--primary-glow),
        0 0 60px var(--primary-glow);
}

.primary-btn:hover .btn-glow {
    width: 300px;
    height: 300px;
    opacity: 0.3;
}

.primary-btn:active {
    transform: translateY(0) scale(0.98);
}

.primary-btn.small {
    padding: 12px 24px;
    font-size: 14px;
}

/* Breathing animation for primary buttons */
.primary-btn {
    animation: buttonBreath 3s ease-in-out infinite;
}

@keyframes buttonBreath {
    0%, 100% {
        box-shadow: 0 4px 20px var(--primary-glow);
    }
    50% {
        box-shadow: 0 4px 40px var(--primary-glow-intense);
    }
}

.secondary-btn {
    position: relative;
    background: transparent;
    color: var(--text-primary);
    padding: 18px 40px;
    border: 2px solid var(--text-secondary);
    border-radius: var(--radius-full);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.secondary-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 0 20px rgba(0, 213, 75, 0.2);
}

.danger-btn {
    background: var(--accent-coral);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-full);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.danger-btn:hover {
    background: #ff4757;
    box-shadow: 0 0 20px rgba(255, 107, 107, 0.4);
}

.text-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: 14px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.text-btn:hover {
    color: var(--text-primary);
}

/* ================================================
   ABOUT SECTION
   ================================================ */

#about {
    padding: 100px 20px;
    background: linear-gradient(180deg, transparent 0%, var(--bg-elevated) 100%);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text p {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-secondary);
}

.about-visual {
    display: flex;
    justify-content: center;
}

.money-stack {
    position: relative;
    width: 200px;
    height: 120px;
}

.money-bill {
    position: absolute;
    width: 180px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-bright) 100%);
    border-radius: 8px;
    box-shadow: 0 10px 30px var(--primary-glow);
}

.money-bill:nth-child(1) {
    top: 0;
    left: 10px;
    animation: floatBill1 3s ease-in-out infinite;
}

.money-bill:nth-child(2) {
    top: 15px;
    left: 5px;
    animation: floatBill2 3s ease-in-out infinite 0.2s;
}

.money-bill:nth-child(3) {
    top: 30px;
    left: 0;
    animation: floatBill3 3s ease-in-out infinite 0.4s;
}

@keyframes floatBill1 {
    0%, 100% { transform: translateY(0) rotate(-5deg); }
    50% { transform: translateY(-10px) rotate(-3deg); }
}

@keyframes floatBill2 {
    0%, 100% { transform: translateY(0) rotate(2deg); }
    50% { transform: translateY(-8px) rotate(4deg); }
}

@keyframes floatBill3 {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50% { transform: translateY(-6px) rotate(0deg); }
}

/* ================================================
   GAME HEADER (Lobby & Game)
   ================================================ */

.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background: var(--card-bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.room-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.room-label {
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.room-code {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 4px;
    text-shadow: 0 0 10px var(--primary-glow);
}

.copy-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    padding: 8px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--primary);
}

.copy-btn.copied {
    background: var(--primary);
    color: var(--bg-dark);
}

.participant-count {
    display: flex;
    align-items: center;
    gap: 8px;
}

.player-icon {
    font-size: 20px;
}

.player-number {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
}

.player-label {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Lobby Status */
.lobby-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    background: var(--bg-elevated);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-gold);
    border-radius: 50%;
    animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.status-text {
    color: var(--text-secondary);
    font-size: 14px;
    letter-spacing: 1px;
}

/* ================================================
   VIDEO GRID
   ================================================ */

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    padding: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.video-tile {
    aspect-ratio: 16 / 9;
    background: var(--card-bg);
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    border: 2px solid transparent;
    transition: all 0.4s ease;
}

.video-tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.video-tile.host-tile {
    border-color: var(--primary);
    box-shadow:
        0 0 20px var(--primary-glow),
        inset 0 0 20px rgba(0, 213, 75, 0.1);
    animation: hostTileGlow 2s ease-in-out infinite alternate;
}

@keyframes hostTileGlow {
    from { box-shadow: 0 0 20px var(--primary-glow), inset 0 0 20px rgba(0, 213, 75, 0.1); }
    to { box-shadow: 0 0 40px var(--primary-glow-intense), inset 0 0 30px rgba(0, 213, 75, 0.2); }
}

.video-overlay {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    z-index: 5;
}

.host-tile .video-overlay {
    background: var(--primary);
    color: var(--bg-dark);
}

/* Game Footer */
.game-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    background: linear-gradient(transparent, var(--bg-dark));
    z-index: 50;
}

/* ================================================
   COUNTDOWN OVERLAY
   ================================================ */

.countdown-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.countdown-number {
    font-family: var(--font-display);
    font-size: clamp(150px, 40vw, 300px);
    font-weight: 700;
    color: var(--primary);
    text-shadow:
        0 0 40px var(--primary-glow),
        0 0 80px var(--primary-glow),
        0 0 120px var(--primary-glow);
    animation: countdownPop 0.5s ease-out;
}

@keyframes countdownPop {
    0% {
        transform: scale(2);
        opacity: 0;
    }
    50% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* ================================================
   GAME SCREEN
   ================================================ */

#game-screen {
    position: relative;
    background: var(--bg-dark);
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    opacity: 0.3;
}

.video-background .video-tile {
    width: 100%;
    height: 100%;
    border-radius: 0;
    border: none;
}

/* Host Dashboard */
#host-dashboard,
#participant-view {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Host Self Video Preview */
.host-self-video {
    position: relative;
    width: 100%;
    max-width: 400px;
    aspect-ratio: 16 / 9;
    margin: 20px auto 10px;
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 3px solid var(--primary);
    box-shadow:
        0 0 30px var(--primary-glow),
        0 20px 60px rgba(0, 0, 0, 0.5);
}

.host-self-video .live-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 10;
}

.host-self-video .video-tile {
    width: 100% !important;
    height: 100% !important;
    border: none;
    border-radius: 0;
}

/* Host Timer Container */
.host-timer-container {
    display: flex;
    justify-content: center;
    padding: 20px 0 10px;
}

.dashboard-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 30px;
    padding: 40px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.preview-label {
    font-family: var(--font-display);
    font-size: 14px;
    letter-spacing: 3px;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 15px;
}

.preview-card {
    background: var(--card-bg-glass);
    backdrop-filter: blur(20px);
    padding: 30px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 20px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.host-controls-group {
    display: flex;
    gap: 15px;
}

.game-stats {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.stat-card {
    background: var(--card-bg-glass);
    backdrop-filter: blur(20px);
    padding: 30px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.stat-label {
    display: block;
    font-size: 12px;
    letter-spacing: 2px;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 10px;
}

.stat-value {
    display: block;
    font-family: var(--font-display);
    font-size: 64px;
    font-weight: 700;
    color: var(--primary);
    text-shadow: 0 0 20px var(--primary-glow);
}

/* ================================================
   HOST VIDEO CONTAINER
   ================================================ */

.host-video-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    aspect-ratio: 16 / 9;
    margin: 30px auto 20px;
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 3px solid var(--primary);
    box-shadow:
        0 0 30px var(--primary-glow),
        0 20px 60px rgba(0, 0, 0, 0.5);
}

.live-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--accent-coral);
    padding: 6px 12px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    z-index: 10;
    animation: liveBadgePulse 2s ease-in-out infinite;
}

.live-badge-dot {
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    animation: liveDotBlink 1s ease-in-out infinite;
}

@keyframes liveBadgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes liveDotBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* ================================================
   CIRCULAR TIMER
   ================================================ */

.timer-container {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
}

.timer-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.timer-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 6;
}

.timer-progress {
    fill: none;
    stroke: var(--timer-safe);
    stroke-width: 6;
    stroke-linecap: round;
    stroke-dasharray: 283;
    stroke-dashoffset: 0;
    transition: stroke 0.3s ease;
    filter: drop-shadow(0 0 10px var(--primary-glow));
}

.timer-progress.warning {
    stroke: var(--timer-warning);
    filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.6));
}

.timer-progress.danger {
    stroke: var(--timer-danger);
    filter: drop-shadow(0 0 20px rgba(255, 59, 48, 0.8));
    animation: timerPanic 0.3s ease-in-out infinite;
}

@keyframes timerPanic {
    0%, 100% { stroke-width: 6; }
    50% { stroke-width: 8; }
}

.timer-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 700;
    color: var(--text-primary);
}

.timer-text.warning {
    color: var(--timer-warning);
}

.timer-text.danger {
    color: var(--timer-danger);
    animation: textPulse 0.3s ease-in-out infinite;
}

@keyframes textPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.1); }
}

/* Question Progress */
.question-progress {
    text-align: center;
    margin-bottom: 20px;
}

.progress-text {
    font-size: 14px;
    color: var(--text-secondary);
    letter-spacing: 1px;
}

.progress-text span {
    color: var(--primary);
    font-weight: 600;
}

/* ================================================
   TRIVIA CONTAINER
   ================================================ */

.trivia-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px 100px;
}

.question-card {
    background: var(--card-bg-glass);
    backdrop-filter: blur(20px);
    padding: 40px;
    border-radius: var(--radius-lg);
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    text-align: center;
}

.question-text {
    font-family: var(--font-display);
    font-size: clamp(20px, 4vw, 32px);
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 1px;
}

/* ================================================
   ANSWER OPTIONS
   ================================================ */

.options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.option-btn {
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--card-bg);
    color: var(--text-primary);
    border: 2px solid rgba(255, 255, 255, 0.1);
    padding: 20px 25px;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
    transition: all 0.3s ease;
    overflow: hidden;
    opacity: 0;
    transform: translateX(-30px);
}

.option-label {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 18px;
    transition: all 0.3s ease;
}

.option-text {
    flex: 1;
}

/* Option Colors */
.option-btn[data-label="A"] .option-label { background: var(--primary); color: var(--bg-dark); }
.option-btn[data-label="B"] .option-label { background: var(--accent-teal); color: var(--bg-dark); }
.option-btn[data-label="C"] .option-label { background: var(--accent-purple); color: white; }
.option-btn[data-label="D"] .option-label { background: var(--accent-coral); color: white; }

.option-btn[data-label="A"]:hover:not(:disabled) { border-color: var(--primary); box-shadow: 0 0 30px rgba(0, 213, 75, 0.3); }
.option-btn[data-label="B"]:hover:not(:disabled) { border-color: var(--accent-teal); box-shadow: 0 0 30px rgba(0, 212, 170, 0.3); }
.option-btn[data-label="C"]:hover:not(:disabled) { border-color: var(--accent-purple); box-shadow: 0 0 30px rgba(139, 92, 246, 0.3); }
.option-btn[data-label="D"]:hover:not(:disabled) { border-color: var(--accent-coral); box-shadow: 0 0 30px rgba(255, 107, 107, 0.3); }

.option-btn:hover:not(:disabled) {
    transform: translateY(-2px) scale(1.02);
}

.option-btn:active:not(:disabled) {
    transform: scale(0.98);
}

.option-btn.selected {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--bg-dark);
    box-shadow: 0 0 40px var(--primary-glow);
}

.option-btn.selected .option-label {
    background: var(--bg-dark);
    color: var(--primary);
}

.option-btn.correct {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--bg-dark);
    animation: correctPulse 0.5s ease;
}

.option-btn.wrong {
    background: var(--accent-coral);
    border-color: var(--accent-coral);
    animation: wrongShake 0.5s ease;
}

@keyframes correctPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes wrongShake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-10px); }
    40%, 80% { transform: translateX(10px); }
}

.option-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ================================================
   MODALS
   ================================================ */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal:not(.hidden) {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--card-bg);
    padding: 50px;
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 420px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
}

.modal:not(.hidden) .modal-content {
    transform: scale(1) translateY(0);
}

.modal-header {
    text-align: center;
    margin-bottom: 30px;
}

.modal-header h3 {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.modal-subtitle {
    color: var(--text-secondary);
    font-size: 14px;
}

.input-group {
    position: relative;
    margin-bottom: 25px;
}

.input-group input {
    width: 100%;
    padding: 18px 20px;
    background: var(--bg-dark);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 18px;
    text-align: center;
    letter-spacing: 2px;
    transition: all 0.3s ease;
}

.input-group input::placeholder {
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 30px var(--primary-glow);
}

.input-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: var(--radius-md);
    pointer-events: none;
    opacity: 0;
    background: var(--primary-glow);
    filter: blur(20px);
    transition: opacity 0.3s ease;
}

.input-group input:focus ~ .input-glow {
    opacity: 0.3;
}

.modal-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.modal-actions .primary-btn {
    width: 100%;
}

/* ================================================
   RESPONSIVE DESIGN
   ================================================ */

@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 20px;
        padding: 15px 20px;
    }

    nav ul {
        gap: 20px;
    }

    .hero {
        min-height: 90vh;
        padding: 20px;
    }

    .prize-amount {
        font-size: 48px;
    }

    .cta-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
    }

    .primary-btn, .secondary-btn {
        width: 100%;
        padding: 16px 30px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .game-header {
        flex-wrap: wrap;
        gap: 15px;
        padding: 15px 20px;
    }

    .video-grid {
        grid-template-columns: 1fr;
        padding: 15px;
    }

    .dashboard-content {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .host-video-container {
        max-width: 100%;
        margin: 20px auto 15px;
    }

    .timer-container {
        width: 80px;
        height: 80px;
    }

    .timer-text {
        font-size: 28px;
    }

    .options-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .option-btn {
        padding: 18px 20px;
    }

    .question-card {
        padding: 25px;
    }

    .modal-content {
        padding: 35px 25px;
    }
}

/* ================================================
   SCREEN EDGE GLOW (Timer Urgency)
   ================================================ */

.screen-edge-glow {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 100;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.screen-edge-glow.active {
    opacity: 1;
    box-shadow: inset 0 0 100px var(--timer-danger);
    animation: edgePulse 0.5s ease-in-out infinite;
}

@keyframes edgePulse {
    0%, 100% { box-shadow: inset 0 0 80px var(--timer-danger); }
    50% { box-shadow: inset 0 0 120px var(--timer-danger); }
}

/* ================================================
   ANIMATIONS FOR GSAP TARGETS
   ================================================ */

.fade-up {
    opacity: 0;
    transform: translateY(30px);
}

.fade-in {
    opacity: 0;
}

.scale-in {
    opacity: 0;
    transform: scale(0.8);
}
