/* ============================================================================
   THE WEAKEST LINK - ADVANCED VISUAL EFFECTS
   A million-pound production CSS library
   ============================================================================ */

/* ============================================================================
   CSS CUSTOM PROPERTIES (Design Tokens)
   ============================================================================ */
:root {
    /* Primary Colors */
    --wl-neon-blue: #00d4ff;
    --wl-neon-pink: #ff00ff;
    --wl-neon-purple: #9d00ff;
    --wl-gold: #ffd700;
    --wl-danger: #ff3366;
    --wl-success: #00ff88;

    /* Backgrounds */
    --wl-dark-bg: #0a0a1a;
    --wl-darker-bg: #030308;
    --wl-stage-black: #000000;

    /* Metallic Colors */
    --wl-chrome: linear-gradient(135deg, #e8e8e8 0%, #a8a8a8 25%, #e8e8e8 50%, #888888 75%, #e8e8e8 100%);
    --wl-gold-metallic: linear-gradient(135deg, #ffd700 0%, #ffaa00 25%, #ffd700 50%, #cc8800 75%, #ffd700 100%);
    --wl-steel: linear-gradient(135deg, #2c3e50 0%, #4a6280 50%, #2c3e50 100%);

    /* Timing Functions */
    --wl-dramatic-ease: cubic-bezier(0.23, 1, 0.32, 1);
    --wl-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --wl-snap: cubic-bezier(0.25, 0.46, 0.45, 0.94);

    /* Shadows */
    --wl-glow-blue: 0 0 20px var(--wl-neon-blue), 0 0 40px var(--wl-neon-blue), 0 0 60px var(--wl-neon-blue);
    --wl-glow-gold: 0 0 20px var(--wl-gold), 0 0 40px var(--wl-gold), 0 0 60px var(--wl-gold);
    --wl-glow-danger: 0 0 20px var(--wl-danger), 0 0 40px var(--wl-danger), 0 0 60px var(--wl-danger);
}

/* ============================================================================
   SECTION 1: DRAMATIC LIGHTING EFFECTS
   ============================================================================ */

/* -----------------------------------------------------------------------------
   1.1 Spotlight Sweep Animation
   ----------------------------------------------------------------------------- */
.wl-spotlight-sweep {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
    overflow: hidden;
}

.wl-spotlight-sweep::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -25%;
    width: 50%;
    height: 200%;
    background: conic-gradient(
        from 0deg at 50% 50%,
        transparent 0deg,
        rgba(255, 255, 255, 0.03) 5deg,
        rgba(0, 212, 255, 0.15) 10deg,
        rgba(255, 255, 255, 0.03) 15deg,
        transparent 20deg
    );
    animation: wl-spotlight-rotate 8s linear infinite;
    transform-origin: 100% 50%;
}

.wl-spotlight-sweep::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -25%;
    width: 50%;
    height: 200%;
    background: conic-gradient(
        from 180deg at 50% 50%,
        transparent 0deg,
        rgba(255, 255, 255, 0.03) 5deg,
        rgba(157, 0, 255, 0.12) 10deg,
        rgba(255, 255, 255, 0.03) 15deg,
        transparent 20deg
    );
    animation: wl-spotlight-rotate-reverse 12s linear infinite;
    transform-origin: 0% 50%;
}

@keyframes wl-spotlight-rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes wl-spotlight-rotate-reverse {
    0% { transform: rotate(360deg); }
    100% { transform: rotate(0deg); }
}

/* Focused spotlight for dramatic moments */
.wl-spotlight-focused {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(
        ellipse at center,
        rgba(255, 255, 255, 0.2) 0%,
        rgba(0, 212, 255, 0.1) 30%,
        transparent 70%
    );
    border-radius: 50%;
    filter: blur(30px);
    animation: wl-spotlight-focus 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes wl-spotlight-focus {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0.8;
    }
}

/* -----------------------------------------------------------------------------
   1.2 Neon Glow Pulses
   ----------------------------------------------------------------------------- */
.wl-neon-pulse {
    animation: wl-neon-pulse-anim 2s ease-in-out infinite;
}

@keyframes wl-neon-pulse-anim {
    0%, 100% {
        filter: brightness(1);
        text-shadow:
            0 0 5px currentColor,
            0 0 10px currentColor,
            0 0 20px currentColor;
    }
    50% {
        filter: brightness(1.3);
        text-shadow:
            0 0 10px currentColor,
            0 0 20px currentColor,
            0 0 40px currentColor,
            0 0 80px currentColor;
    }
}

.wl-neon-flicker {
    animation: wl-neon-flicker-anim 0.15s ease-in-out infinite alternate;
}

@keyframes wl-neon-flicker-anim {
    0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
        opacity: 1;
        text-shadow:
            0 0 5px var(--wl-neon-blue),
            0 0 10px var(--wl-neon-blue),
            0 0 20px var(--wl-neon-blue),
            0 0 40px var(--wl-neon-blue);
    }
    20%, 24%, 55% {
        opacity: 0.8;
        text-shadow: none;
    }
}

/* Pulsing border glow */
.wl-border-pulse {
    position: relative;
}

.wl-border-pulse::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg,
        var(--wl-neon-blue),
        var(--wl-neon-pink),
        var(--wl-neon-purple),
        var(--wl-neon-blue)
    );
    background-size: 400% 400%;
    border-radius: inherit;
    z-index: -1;
    animation: wl-border-glow 3s ease infinite;
    filter: blur(8px);
    opacity: 0.7;
}

@keyframes wl-border-glow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* -----------------------------------------------------------------------------
   1.3 Stage Lighting Simulation
   ----------------------------------------------------------------------------- */
.wl-stage-lighting {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 4;
    background:
        /* Top stage lights */
        radial-gradient(ellipse 80% 30% at 20% -10%, rgba(0, 212, 255, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse 60% 25% at 50% -5%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse 80% 30% at 80% -10%, rgba(157, 0, 255, 0.15) 0%, transparent 50%),
        /* Side lights */
        radial-gradient(ellipse 30% 50% at -5% 50%, rgba(255, 0, 255, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse 30% 50% at 105% 50%, rgba(0, 212, 255, 0.08) 0%, transparent 50%),
        /* Floor reflection */
        radial-gradient(ellipse 100% 30% at 50% 110%, rgba(0, 212, 255, 0.1) 0%, transparent 50%);
    animation: wl-stage-lights-pulse 5s ease-in-out infinite;
}

@keyframes wl-stage-lights-pulse {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

/* Moving stage light beam */
.wl-light-beam {
    position: fixed;
    top: 0;
    left: 50%;
    width: 200px;
    height: 150%;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.3) 0%,
        rgba(0, 212, 255, 0.15) 20%,
        transparent 100%
    );
    transform-origin: top center;
    animation: wl-beam-sweep 6s ease-in-out infinite;
    filter: blur(20px);
    pointer-events: none;
    z-index: 3;
    clip-path: polygon(40% 0%, 60% 0%, 100% 100%, 0% 100%);
}

@keyframes wl-beam-sweep {
    0% { transform: translateX(-50%) rotate(-30deg); opacity: 0.3; }
    25% { opacity: 0.6; }
    50% { transform: translateX(-50%) rotate(30deg); opacity: 0.3; }
    75% { opacity: 0.6; }
    100% { transform: translateX(-50%) rotate(-30deg); opacity: 0.3; }
}

/* Multiple color stage washes */
.wl-color-wash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    opacity: 0.5;
    mix-blend-mode: overlay;
    animation: wl-color-cycle 20s ease-in-out infinite;
}

@keyframes wl-color-cycle {
    0%, 100% {
        background: radial-gradient(ellipse at 30% 30%, rgba(0, 100, 255, 0.2), transparent 70%);
    }
    25% {
        background: radial-gradient(ellipse at 70% 40%, rgba(157, 0, 255, 0.2), transparent 70%);
    }
    50% {
        background: radial-gradient(ellipse at 50% 60%, rgba(255, 0, 255, 0.2), transparent 70%);
    }
    75% {
        background: radial-gradient(ellipse at 30% 50%, rgba(0, 212, 255, 0.2), transparent 70%);
    }
}

/* -----------------------------------------------------------------------------
   1.4 Lens Flare Effects
   ----------------------------------------------------------------------------- */
.wl-lens-flare {
    position: fixed;
    pointer-events: none;
    z-index: 100;
}

.wl-lens-flare-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 100;
    overflow: hidden;
}

.wl-flare-core {
    position: absolute;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, #ffffff 0%, rgba(0, 212, 255, 0.8) 30%, transparent 70%);
    border-radius: 50%;
    filter: blur(2px);
    animation: wl-flare-pulse 3s ease-in-out infinite;
}

.wl-flare-ring {
    position: absolute;
    width: 60px;
    height: 60px;
    border: 2px solid rgba(0, 212, 255, 0.3);
    border-radius: 50%;
    animation: wl-flare-ring-expand 3s ease-in-out infinite;
}

.wl-flare-streak {
    position: absolute;
    width: 200px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    animation: wl-flare-streak-anim 4s ease-in-out infinite;
}

.wl-flare-hex {
    position: absolute;
    width: 30px;
    height: 30px;
    background: rgba(0, 212, 255, 0.2);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    animation: wl-flare-hex-drift 5s ease-in-out infinite;
}

@keyframes wl-flare-pulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.5); opacity: 1; }
}

@keyframes wl-flare-ring-expand {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.3); opacity: 0.2; }
}

@keyframes wl-flare-streak-anim {
    0% { transform: translateX(-100px) rotate(45deg); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateX(100px) rotate(45deg); opacity: 0; }
}

@keyframes wl-flare-hex-drift {
    0%, 100% { transform: translate(0, 0) rotate(0deg); opacity: 0.3; }
    50% { transform: translate(20px, -10px) rotate(30deg); opacity: 0.6; }
}

/* Anamorphic lens flare */
.wl-anamorphic-flare {
    position: fixed;
    top: 50%;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(0, 212, 255, 0.1) 20%,
        rgba(0, 212, 255, 0.5) 40%,
        rgba(255, 255, 255, 0.8) 50%,
        rgba(0, 212, 255, 0.5) 60%,
        rgba(0, 212, 255, 0.1) 80%,
        transparent 100%
    );
    filter: blur(1px);
    animation: wl-anamorphic-sweep 8s ease-in-out infinite;
    pointer-events: none;
    z-index: 101;
}

@keyframes wl-anamorphic-sweep {
    0%, 100% {
        transform: translateY(-100px) scaleX(0.5);
        opacity: 0;
    }
    10% { opacity: 0.8; }
    50% {
        transform: translateY(100px) scaleX(1.5);
        opacity: 0.8;
    }
    90% { opacity: 0.8; }
}

/* ============================================================================
   SECTION 2: DRAMATIC TRANSITIONS
   ============================================================================ */

/* -----------------------------------------------------------------------------
   2.1 Question Reveal Animation
   ----------------------------------------------------------------------------- */
.wl-question-reveal {
    animation: wl-question-reveal-anim 1.2s var(--wl-dramatic-ease) forwards;
}

@keyframes wl-question-reveal-anim {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(50px);
        filter: blur(20px);
        clip-path: inset(50% 0 50% 0);
    }
    40% {
        clip-path: inset(0 0 0 0);
    }
    60% {
        transform: scale(1.05) translateY(0);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
        filter: blur(0);
        clip-path: inset(0 0 0 0);
    }
}

/* Typewriter reveal for questions */
.wl-typewriter-reveal {
    overflow: hidden;
    border-right: 3px solid var(--wl-neon-blue);
    white-space: nowrap;
    animation:
        wl-typewriter 3s steps(40) forwards,
        wl-blink-cursor 0.75s step-end infinite;
}

@keyframes wl-typewriter {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes wl-blink-cursor {
    from, to { border-color: transparent; }
    50% { border-color: var(--wl-neon-blue); }
}

/* Dramatic card flip reveal */
.wl-card-flip-reveal {
    perspective: 1000px;
}

.wl-card-flip-reveal .wl-card-inner {
    animation: wl-card-flip 1s var(--wl-dramatic-ease) forwards;
    transform-style: preserve-3d;
}

@keyframes wl-card-flip {
    0% {
        transform: rotateY(180deg) scale(0.9);
        opacity: 0;
    }
    50% {
        transform: rotateY(90deg) scale(1.1);
    }
    100% {
        transform: rotateY(0deg) scale(1);
        opacity: 1;
    }
}

/* Shatter reveal effect */
.wl-shatter-reveal {
    animation: wl-shatter-in 0.8s var(--wl-bounce) forwards;
}

@keyframes wl-shatter-in {
    0% {
        clip-path: polygon(
            0% 0%, 20% 0%, 20% 100%, 0% 100%,
            0% 0%, 40% 0%, 40% 100%, 20% 100%,
            20% 0%, 60% 0%, 60% 100%, 40% 100%,
            40% 0%, 80% 0%, 80% 100%, 60% 100%,
            60% 0%, 100% 0%, 100% 100%, 80% 100%
        );
        opacity: 0;
        transform: scale(1.2);
    }
    100% {
        clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
        opacity: 1;
        transform: scale(1);
    }
}

/* Glitch reveal */
.wl-glitch-reveal {
    animation: wl-glitch-in 0.5s steps(1) forwards;
}

@keyframes wl-glitch-in {
    0% {
        clip-path: inset(0 100% 0 0);
        transform: translateX(-10px);
    }
    20% {
        clip-path: inset(40% 0 60% 0);
        transform: translateX(5px);
    }
    40% {
        clip-path: inset(20% 0 30% 0);
        transform: translateX(-5px);
    }
    60% {
        clip-path: inset(60% 0 10% 0);
        transform: translateX(3px);
    }
    80% {
        clip-path: inset(10% 0 80% 0);
        transform: translateX(-3px);
    }
    100% {
        clip-path: inset(0 0 0 0);
        transform: translateX(0);
    }
}

/* -----------------------------------------------------------------------------
   2.2 Money Chain Climbing Animations
   ----------------------------------------------------------------------------- */
.wl-chain-climb {
    animation: wl-chain-climb-anim 0.6s var(--wl-bounce) forwards;
}

@keyframes wl-chain-climb-anim {
    0% {
        transform: translateY(20px) scale(0.95);
        opacity: 0.5;
    }
    50% {
        transform: translateY(-5px) scale(1.05);
    }
    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

/* Chain item glow pulse when active */
.wl-chain-active-pulse {
    animation: wl-chain-active-anim 1s ease-in-out infinite;
}

@keyframes wl-chain-active-anim {
    0%, 100% {
        box-shadow:
            0 0 10px var(--wl-neon-blue),
            0 0 20px var(--wl-neon-blue),
            inset 0 0 20px rgba(0, 212, 255, 0.2);
    }
    50% {
        box-shadow:
            0 0 20px var(--wl-neon-blue),
            0 0 40px var(--wl-neon-blue),
            0 0 60px var(--wl-neon-blue),
            inset 0 0 40px rgba(0, 212, 255, 0.3);
    }
}

/* Money earned celebration */
.wl-money-earned {
    animation: wl-money-pop 0.8s var(--wl-bounce) forwards;
}

@keyframes wl-money-pop {
    0% {
        transform: scale(1);
        text-shadow: 0 0 10px var(--wl-gold);
    }
    30% {
        transform: scale(1.3);
        text-shadow:
            0 0 20px var(--wl-gold),
            0 0 40px var(--wl-gold),
            0 0 60px var(--wl-gold);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        text-shadow: 0 0 10px var(--wl-gold);
    }
}

/* Chain breaking animation */
.wl-chain-break {
    animation: wl-chain-break-anim 0.5s ease-out forwards;
}

@keyframes wl-chain-break-anim {
    0% {
        transform: scale(1) rotate(0);
        opacity: 1;
    }
    50% {
        transform: scale(1.1) rotate(-2deg);
    }
    100% {
        transform: scale(0.9) rotate(2deg);
        opacity: 0.5;
        filter: grayscale(1);
    }
}

/* Sequential chain reset */
.wl-chain-reset {
    animation: wl-chain-reset-anim 0.3s ease-out forwards;
}

@keyframes wl-chain-reset-anim {
    0% {
        background: linear-gradient(90deg, var(--wl-danger), transparent);
    }
    100% {
        background: transparent;
    }
}

/* Bank animation - gold rush effect */
.wl-bank-success {
    animation: wl-bank-anim 1s var(--wl-dramatic-ease) forwards;
}

@keyframes wl-bank-anim {
    0% {
        transform: scale(1);
    }
    20% {
        transform: scale(0.95);
    }
    50% {
        transform: scale(1.15);
        box-shadow:
            0 0 30px var(--wl-gold),
            0 0 60px var(--wl-gold),
            0 0 90px var(--wl-gold);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 20px var(--wl-gold);
    }
}

/* -----------------------------------------------------------------------------
   2.3 Elimination Red Flash Sequences
   ----------------------------------------------------------------------------- */
.wl-elimination-flash {
    animation: wl-elimination-flash-anim 0.15s ease-in-out 6 alternate;
}

@keyframes wl-elimination-flash-anim {
    0% {
        background-color: rgba(255, 0, 0, 0);
    }
    100% {
        background-color: rgba(255, 0, 0, 0.4);
    }
}

/* Full screen elimination overlay */
.wl-elimination-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    animation: wl-elimination-sequence 2s ease-out forwards;
}

@keyframes wl-elimination-sequence {
    0% {
        background: radial-gradient(circle at center, transparent 0%, transparent 100%);
    }
    10%, 20% {
        background: radial-gradient(circle at center, rgba(255, 0, 0, 0.5) 0%, rgba(255, 0, 0, 0.3) 50%, transparent 100%);
    }
    15%, 25% {
        background: radial-gradient(circle at center, transparent 0%, transparent 100%);
    }
    30%, 40% {
        background: radial-gradient(circle at center, rgba(255, 0, 0, 0.6) 0%, rgba(255, 0, 0, 0.4) 50%, transparent 100%);
    }
    35%, 45% {
        background: radial-gradient(circle at center, transparent 0%, transparent 100%);
    }
    50% {
        background: radial-gradient(circle at center, rgba(255, 0, 0, 0.8) 0%, rgba(255, 0, 0, 0.5) 50%, transparent 100%);
    }
    100% {
        background: radial-gradient(circle at center, transparent 0%, transparent 100%);
    }
}

/* Player elimination - walk of shame */
.wl-walk-of-shame {
    animation: wl-walk-of-shame-anim 2.5s var(--wl-dramatic-ease) forwards;
}

@keyframes wl-walk-of-shame-anim {
    0% {
        transform: translateX(0) scale(1);
        opacity: 1;
        filter: grayscale(0) brightness(1);
    }
    30% {
        transform: translateX(0) scale(0.95);
        filter: grayscale(0.5) brightness(0.8);
    }
    100% {
        transform: translateX(-150%) scale(0.7);
        opacity: 0;
        filter: grayscale(1) brightness(0.5);
    }
}

/* Voted out stamp effect */
.wl-voted-out-stamp {
    position: relative;
    overflow: visible;
}

.wl-voted-out-stamp::after {
    content: 'ELIMINATED';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-15deg) scale(0);
    font-size: 2rem;
    font-weight: 900;
    color: var(--wl-danger);
    text-shadow: 0 0 10px var(--wl-danger);
    letter-spacing: 0.2em;
    border: 4px solid var(--wl-danger);
    padding: 0.5rem 1rem;
    animation: wl-stamp-anim 0.5s var(--wl-bounce) 0.5s forwards;
    z-index: 10;
}

@keyframes wl-stamp-anim {
    0% {
        transform: translate(-50%, -50%) rotate(-15deg) scale(0);
        opacity: 0;
    }
    50% {
        transform: translate(-50%, -50%) rotate(-15deg) scale(1.2);
    }
    100% {
        transform: translate(-50%, -50%) rotate(-15deg) scale(1);
        opacity: 1;
    }
}

/* Danger pulse for at-risk players */
.wl-danger-pulse {
    animation: wl-danger-pulse-anim 0.5s ease-in-out infinite;
}

@keyframes wl-danger-pulse-anim {
    0%, 100% {
        box-shadow: 0 0 10px var(--wl-danger);
        border-color: var(--wl-danger);
    }
    50% {
        box-shadow:
            0 0 20px var(--wl-danger),
            0 0 40px var(--wl-danger),
            inset 0 0 30px rgba(255, 51, 102, 0.3);
        border-color: #ff6699;
    }
}

/* -----------------------------------------------------------------------------
   2.4 Winner Celebration Effects
   ----------------------------------------------------------------------------- */
.wl-winner-celebration {
    animation: wl-winner-entrance 2s var(--wl-dramatic-ease) forwards;
}

@keyframes wl-winner-entrance {
    0% {
        transform: scale(0) rotate(-180deg);
        opacity: 0;
        filter: blur(20px);
    }
    50% {
        transform: scale(1.2) rotate(10deg);
        filter: blur(0);
    }
    70% {
        transform: scale(0.95) rotate(-5deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

/* Winner glow effect */
.wl-winner-glow {
    animation:
        wl-winner-glow-anim 2s ease-in-out infinite,
        wl-winner-float 3s ease-in-out infinite;
}

@keyframes wl-winner-glow-anim {
    0%, 100% {
        text-shadow:
            0 0 20px var(--wl-gold),
            0 0 40px var(--wl-gold),
            0 0 60px var(--wl-gold);
        filter: brightness(1);
    }
    50% {
        text-shadow:
            0 0 40px var(--wl-gold),
            0 0 80px var(--wl-gold),
            0 0 120px var(--wl-gold),
            0 0 160px var(--wl-gold);
        filter: brightness(1.3);
    }
}

@keyframes wl-winner-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* Confetti burst (CSS only) */
.wl-confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
    overflow: hidden;
}

.wl-confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    top: -10px;
    animation: wl-confetti-fall 4s ease-out forwards;
}

@keyframes wl-confetti-fall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* Generate confetti pieces with different delays and positions */
.wl-confetti:nth-child(1) { left: 10%; animation-delay: 0s; background: var(--wl-gold); }
.wl-confetti:nth-child(2) { left: 20%; animation-delay: 0.1s; background: var(--wl-neon-blue); }
.wl-confetti:nth-child(3) { left: 30%; animation-delay: 0.2s; background: var(--wl-neon-pink); }
.wl-confetti:nth-child(4) { left: 40%; animation-delay: 0.3s; background: var(--wl-success); }
.wl-confetti:nth-child(5) { left: 50%; animation-delay: 0.1s; background: var(--wl-gold); }
.wl-confetti:nth-child(6) { left: 60%; animation-delay: 0.4s; background: var(--wl-neon-purple); }
.wl-confetti:nth-child(7) { left: 70%; animation-delay: 0.2s; background: var(--wl-neon-blue); }
.wl-confetti:nth-child(8) { left: 80%; animation-delay: 0.5s; background: var(--wl-gold); }
.wl-confetti:nth-child(9) { left: 90%; animation-delay: 0.3s; background: var(--wl-neon-pink); }
.wl-confetti:nth-child(10) { left: 15%; animation-delay: 0.6s; background: var(--wl-success); }
.wl-confetti:nth-child(11) { left: 25%; animation-delay: 0.4s; background: var(--wl-neon-purple); }
.wl-confetti:nth-child(12) { left: 35%; animation-delay: 0.7s; background: var(--wl-gold); }
.wl-confetti:nth-child(13) { left: 45%; animation-delay: 0.5s; background: var(--wl-neon-blue); }
.wl-confetti:nth-child(14) { left: 55%; animation-delay: 0.8s; background: var(--wl-neon-pink); }
.wl-confetti:nth-child(15) { left: 65%; animation-delay: 0.6s; background: var(--wl-gold); }
.wl-confetti:nth-child(16) { left: 75%; animation-delay: 0.9s; background: var(--wl-success); }
.wl-confetti:nth-child(17) { left: 85%; animation-delay: 0.7s; background: var(--wl-neon-purple); }
.wl-confetti:nth-child(18) { left: 95%; animation-delay: 1s; background: var(--wl-gold); }
.wl-confetti:nth-child(19) { left: 5%; animation-delay: 0.8s; background: var(--wl-neon-blue); }
.wl-confetti:nth-child(20) { left: 50%; animation-delay: 0.9s; background: var(--wl-neon-pink); }

/* Gold rain effect */
.wl-gold-rain {
    position: absolute;
    width: 3px;
    height: 20px;
    background: linear-gradient(180deg, var(--wl-gold), transparent);
    animation: wl-gold-rain-fall 1.5s linear infinite;
}

@keyframes wl-gold-rain-fall {
    0% {
        transform: translateY(-20px);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    100% {
        transform: translateY(100vh);
        opacity: 0;
    }
}

/* Trophy reveal animation */
.wl-trophy-reveal {
    animation: wl-trophy-anim 1.5s var(--wl-bounce) forwards;
}

@keyframes wl-trophy-anim {
    0% {
        transform: translateY(100px) scale(0) rotate(-20deg);
        opacity: 0;
    }
    60% {
        transform: translateY(-20px) scale(1.1) rotate(5deg);
    }
    80% {
        transform: translateY(10px) scale(0.95) rotate(-2deg);
    }
    100% {
        transform: translateY(0) scale(1) rotate(0deg);
        opacity: 1;
    }
}

/* ============================================================================
   SECTION 3: ATMOSPHERE EFFECTS
   ============================================================================ */

/* -----------------------------------------------------------------------------
   3.1 Scanline TV Effect
   ----------------------------------------------------------------------------- */
.wl-scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9995;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.15) 0px,
        rgba(0, 0, 0, 0.15) 1px,
        transparent 1px,
        transparent 2px
    );
}

/* Animated scanline sweep */
.wl-scanlines-animated::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 10px;
    background: linear-gradient(
        180deg,
        transparent,
        rgba(255, 255, 255, 0.05),
        transparent
    );
    animation: wl-scanline-sweep 8s linear infinite;
}

@keyframes wl-scanline-sweep {
    0% { transform: translateY(-10px); }
    100% { transform: translateY(100vh); }
}

/* CRT flicker effect */
.wl-crt-flicker {
    animation: wl-crt-flicker-anim 0.05s infinite;
}

@keyframes wl-crt-flicker-anim {
    0% { opacity: 0.98; }
    50% { opacity: 1; }
    100% { opacity: 0.99; }
}

/* RGB split/chromatic aberration */
.wl-rgb-split {
    position: relative;
}

.wl-rgb-split::before,
.wl-rgb-split::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.wl-rgb-split::before {
    color: #ff0000;
    animation: wl-rgb-shift-r 3s ease-in-out infinite;
    mix-blend-mode: screen;
}

.wl-rgb-split::after {
    color: #00ffff;
    animation: wl-rgb-shift-b 3s ease-in-out infinite;
    mix-blend-mode: screen;
}

@keyframes wl-rgb-shift-r {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(-2px, 1px); }
    50% { transform: translate(1px, -1px); }
    75% { transform: translate(-1px, 2px); }
}

@keyframes wl-rgb-shift-b {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(2px, -1px); }
    50% { transform: translate(-1px, 1px); }
    75% { transform: translate(1px, -2px); }
}

/* VHS tracking lines */
.wl-vhs-tracking {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9994;
    background: linear-gradient(
        180deg,
        transparent 0%,
        transparent 50%,
        rgba(0, 0, 0, 0.1) 50.5%,
        transparent 51%,
        transparent 100%
    );
    background-size: 100% 4px;
    animation: wl-vhs-scroll 10s linear infinite;
}

@keyframes wl-vhs-scroll {
    0% { background-position: 0 0; }
    100% { background-position: 0 100%; }
}

/* -----------------------------------------------------------------------------
   3.2 Vignette Darkening
   ----------------------------------------------------------------------------- */
.wl-vignette {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9990;
    background: radial-gradient(
        ellipse at center,
        transparent 0%,
        transparent 40%,
        rgba(0, 0, 0, 0.3) 70%,
        rgba(0, 0, 0, 0.7) 100%
    );
}

/* Dramatic vignette for intense moments */
.wl-vignette-intense {
    background: radial-gradient(
        ellipse at center,
        transparent 0%,
        transparent 20%,
        rgba(0, 0, 0, 0.5) 50%,
        rgba(0, 0, 0, 0.9) 100%
    );
    animation: wl-vignette-pulse 2s ease-in-out infinite;
}

@keyframes wl-vignette-pulse {
    0%, 100% {
        background: radial-gradient(
            ellipse at center,
            transparent 0%,
            transparent 20%,
            rgba(0, 0, 0, 0.5) 50%,
            rgba(0, 0, 0, 0.9) 100%
        );
    }
    50% {
        background: radial-gradient(
            ellipse at center,
            transparent 0%,
            transparent 30%,
            rgba(0, 0, 0, 0.4) 60%,
            rgba(0, 0, 0, 0.85) 100%
        );
    }
}

/* Danger vignette for elimination */
.wl-vignette-danger {
    background: radial-gradient(
        ellipse at center,
        transparent 0%,
        transparent 30%,
        rgba(255, 0, 0, 0.2) 60%,
        rgba(255, 0, 0, 0.5) 100%
    );
    animation: wl-danger-vignette-pulse 0.5s ease-in-out infinite alternate;
}

@keyframes wl-danger-vignette-pulse {
    0% {
        background: radial-gradient(
            ellipse at center,
            transparent 0%,
            transparent 30%,
            rgba(255, 0, 0, 0.2) 60%,
            rgba(255, 0, 0, 0.4) 100%
        );
    }
    100% {
        background: radial-gradient(
            ellipse at center,
            transparent 0%,
            transparent 20%,
            rgba(255, 0, 0, 0.3) 50%,
            rgba(255, 0, 0, 0.6) 100%
        );
    }
}

/* -----------------------------------------------------------------------------
   3.3 CSS-Only Particle Systems
   ----------------------------------------------------------------------------- */
.wl-particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 8;
    overflow: hidden;
}

/* Floating dust particles */
.wl-particle-dust {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: wl-particle-float 15s ease-in-out infinite;
}

@keyframes wl-particle-float {
    0%, 100% {
        transform: translate(0, 0) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
        transform: scale(1);
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translate(100px, -100vh) scale(0);
        opacity: 0;
    }
}

/* Generate multiple particles with staggered animations */
.wl-particle-dust:nth-child(1) { left: 5%; animation-delay: 0s; animation-duration: 12s; }
.wl-particle-dust:nth-child(2) { left: 15%; animation-delay: 2s; animation-duration: 14s; }
.wl-particle-dust:nth-child(3) { left: 25%; animation-delay: 4s; animation-duration: 16s; }
.wl-particle-dust:nth-child(4) { left: 35%; animation-delay: 1s; animation-duration: 13s; }
.wl-particle-dust:nth-child(5) { left: 45%; animation-delay: 3s; animation-duration: 15s; }
.wl-particle-dust:nth-child(6) { left: 55%; animation-delay: 5s; animation-duration: 17s; }
.wl-particle-dust:nth-child(7) { left: 65%; animation-delay: 2s; animation-duration: 11s; }
.wl-particle-dust:nth-child(8) { left: 75%; animation-delay: 4s; animation-duration: 14s; }
.wl-particle-dust:nth-child(9) { left: 85%; animation-delay: 1s; animation-duration: 16s; }
.wl-particle-dust:nth-child(10) { left: 95%; animation-delay: 3s; animation-duration: 13s; }

/* Rising ember particles */
.wl-particle-ember {
    position: absolute;
    bottom: -10px;
    width: 6px;
    height: 6px;
    background: var(--wl-gold);
    border-radius: 50%;
    animation: wl-ember-rise 8s ease-out infinite;
    box-shadow: 0 0 10px var(--wl-gold);
}

@keyframes wl-ember-rise {
    0% {
        transform: translateY(0) translateX(0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) translateX(50px) scale(0);
        opacity: 0;
    }
}

/* Orb particle */
.wl-particle-orb {
    position: absolute;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, var(--wl-neon-blue) 0%, transparent 70%);
    border-radius: 50%;
    animation: wl-orb-drift 20s ease-in-out infinite;
    filter: blur(3px);
}

@keyframes wl-orb-drift {
    0%, 100% {
        transform: translate(0, 0);
        opacity: 0.3;
    }
    25% {
        transform: translate(100px, -50px);
        opacity: 0.5;
    }
    50% {
        transform: translate(50px, 100px);
        opacity: 0.4;
    }
    75% {
        transform: translate(-50px, 50px);
        opacity: 0.6;
    }
}

/* Sparkle particle burst */
.wl-sparkle-burst {
    position: relative;
}

.wl-sparkle-burst::before,
.wl-sparkle-burst::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-image:
        radial-gradient(circle, white 1px, transparent 1px),
        radial-gradient(circle, white 1px, transparent 1px),
        radial-gradient(circle, var(--wl-gold) 1px, transparent 1px);
    background-size: 50px 50px, 30px 30px, 40px 40px;
    background-position: 0 0, 25px 25px, 10px 35px;
    animation: wl-sparkle-shimmer 3s linear infinite;
    pointer-events: none;
    opacity: 0.5;
}

@keyframes wl-sparkle-shimmer {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* -----------------------------------------------------------------------------
   3.4 Metallic & Glass Text Effects
   ----------------------------------------------------------------------------- */
.wl-text-chrome {
    background: linear-gradient(
        180deg,
        #ffffff 0%,
        #e0e0e0 25%,
        #ffffff 50%,
        #a0a0a0 75%,
        #ffffff 100%
    );
    background-size: 100% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: wl-chrome-shine 3s ease-in-out infinite;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

@keyframes wl-chrome-shine {
    0%, 100% { background-position: 0% 0%; }
    50% { background-position: 0% 100%; }
}

.wl-text-gold-metallic {
    background: linear-gradient(
        135deg,
        #ffd700 0%,
        #fff4b8 25%,
        #ffd700 50%,
        #b8860b 75%,
        #ffd700 100%
    );
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: wl-gold-shimmer 4s ease-in-out infinite;
    text-shadow: none;
    filter: drop-shadow(0 2px 4px rgba(255, 215, 0, 0.3));
}

@keyframes wl-gold-shimmer {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Glass effect text */
.wl-text-glass {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.9) 0%,
        rgba(255, 255, 255, 0.4) 50%,
        rgba(255, 255, 255, 0.9) 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow:
        0 1px 0 rgba(255, 255, 255, 0.5),
        0 -1px 0 rgba(0, 0, 0, 0.3);
    position: relative;
}

.wl-text-glass::before {
    content: attr(data-text);
    position: absolute;
    top: 2px;
    left: 0;
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(0, 0, 0, 0.2) 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    z-index: -1;
}

/* Holographic text */
.wl-text-holographic {
    background: linear-gradient(
        135deg,
        #ff0000 0%,
        #ff7f00 14%,
        #ffff00 28%,
        #00ff00 42%,
        #0000ff 57%,
        #4b0082 71%,
        #9400d3 85%,
        #ff0000 100%
    );
    background-size: 400% 400%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: wl-holographic-shift 5s ease infinite;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}

@keyframes wl-holographic-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Embossed text */
.wl-text-embossed {
    color: #333;
    text-shadow:
        -1px -1px 0 rgba(255, 255, 255, 0.4),
        1px 1px 0 rgba(0, 0, 0, 0.3),
        2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Neon tube text */
.wl-text-neon-tube {
    color: #fff;
    text-shadow:
        0 0 5px #fff,
        0 0 10px #fff,
        0 0 20px var(--wl-neon-blue),
        0 0 40px var(--wl-neon-blue),
        0 0 80px var(--wl-neon-blue),
        0 0 90px var(--wl-neon-blue),
        0 0 100px var(--wl-neon-blue),
        0 0 150px var(--wl-neon-blue);
    animation: wl-neon-tube-flicker 0.11s ease-in-out infinite alternate;
}

@keyframes wl-neon-tube-flicker {
    0%, 18%, 22%, 25%, 53%, 57%, 100% {
        text-shadow:
            0 0 5px #fff,
            0 0 10px #fff,
            0 0 20px var(--wl-neon-blue),
            0 0 40px var(--wl-neon-blue),
            0 0 80px var(--wl-neon-blue);
    }
    20%, 24%, 55% {
        text-shadow: none;
    }
}

/* ============================================================================
   SECTION 4: RESPONSIVE & TV-OPTIMIZED STYLES
   ============================================================================ */

/* -----------------------------------------------------------------------------
   4.1 TV-Optimized (Readable from 3 meters)
   ----------------------------------------------------------------------------- */
.wl-tv-readable {
    font-size: clamp(1.5rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: 0.05em;
    line-height: 1.4;
}

.wl-tv-title {
    font-size: clamp(3rem, 8vw, 8rem);
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.wl-tv-subtitle {
    font-size: clamp(1.2rem, 3vw, 2.5rem);
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.wl-tv-money {
    font-size: clamp(2rem, 6vw, 6rem);
    font-weight: 900;
    font-family: 'Orbitron', 'Bebas Neue', sans-serif;
}

.wl-tv-question {
    font-size: clamp(1.5rem, 3.5vw, 3.5rem);
    font-weight: 600;
    line-height: 1.5;
}

.wl-tv-timer {
    font-size: clamp(4rem, 10vw, 12rem);
    font-weight: 900;
    font-family: 'Orbitron', monospace;
    letter-spacing: 0.1em;
}

/* High contrast for visibility */
.wl-high-contrast {
    color: #ffffff;
    text-shadow:
        2px 2px 0 #000,
        -2px -2px 0 #000,
        2px -2px 0 #000,
        -2px 2px 0 #000,
        0 0 20px rgba(255, 255, 255, 0.5);
}

/* -----------------------------------------------------------------------------
   4.2 Bold, High-Contrast Colors
   ----------------------------------------------------------------------------- */
.wl-color-primary {
    color: var(--wl-neon-blue);
    text-shadow: 0 0 20px var(--wl-neon-blue);
}

.wl-color-gold {
    color: var(--wl-gold);
    text-shadow: 0 0 20px var(--wl-gold);
}

.wl-color-danger {
    color: var(--wl-danger);
    text-shadow: 0 0 20px var(--wl-danger);
}

.wl-color-success {
    color: var(--wl-success);
    text-shadow: 0 0 20px var(--wl-success);
}

/* High visibility buttons */
.wl-btn-tv {
    padding: clamp(1rem, 2vw, 2rem) clamp(2rem, 4vw, 4rem);
    font-size: clamp(1rem, 2vw, 1.5rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: 3px solid currentColor;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.5);
    cursor: pointer;
    transition: all 0.3s var(--wl-dramatic-ease);
    position: relative;
    overflow: hidden;
}

.wl-btn-tv::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.wl-btn-tv:hover::before {
    width: 300%;
    height: 300%;
}

.wl-btn-tv:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px currentColor;
}

.wl-btn-tv:active {
    transform: scale(0.98);
}

/* -----------------------------------------------------------------------------
   4.3 Animated Backgrounds
   ----------------------------------------------------------------------------- */
.wl-bg-animated-gradient {
    background: linear-gradient(
        -45deg,
        var(--wl-darker-bg),
        #0f0f2e,
        #1a0a2e,
        var(--wl-dark-bg)
    );
    background-size: 400% 400%;
    animation: wl-gradient-shift 15s ease infinite;
}

@keyframes wl-gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Pulsing radial background */
.wl-bg-pulse-radial {
    background: radial-gradient(
        circle at center,
        rgba(0, 212, 255, 0.1) 0%,
        transparent 50%
    );
    animation: wl-bg-pulse 4s ease-in-out infinite;
}

@keyframes wl-bg-pulse {
    0%, 100% {
        background: radial-gradient(
            circle at center,
            rgba(0, 212, 255, 0.1) 0%,
            transparent 30%
        );
    }
    50% {
        background: radial-gradient(
            circle at center,
            rgba(0, 212, 255, 0.2) 0%,
            transparent 50%
        );
    }
}

/* Grid perspective background */
.wl-bg-grid-perspective {
    background-image:
        linear-gradient(rgba(0, 212, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    transform: perspective(500px) rotateX(60deg);
    transform-origin: center top;
    animation: wl-grid-scroll 20s linear infinite;
}

@keyframes wl-grid-scroll {
    0% { background-position: 0 0; }
    100% { background-position: 0 -100vh; }
}

/* Wave background */
.wl-bg-waves {
    position: relative;
    overflow: hidden;
}

.wl-bg-waves::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 200px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V0H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z' fill='rgba(0,212,255,0.1)'/%3E%3C/svg%3E");
    background-repeat: repeat-x;
    animation: wl-wave-animation 10s linear infinite;
}

@keyframes wl-wave-animation {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ============================================================================
   SECTION 5: UTILITY ANIMATIONS
   ============================================================================ */

/* Shake animation */
.wl-shake {
    animation: wl-shake-anim 0.6s cubic-bezier(.36,.07,.19,.97) both;
}

@keyframes wl-shake-anim {
    10%, 90% { transform: translateX(-1px); }
    20%, 80% { transform: translateX(2px); }
    30%, 50%, 70% { transform: translateX(-4px); }
    40%, 60% { transform: translateX(4px); }
}

/* Bounce animation */
.wl-bounce {
    animation: wl-bounce-anim 1s ease infinite;
}

@keyframes wl-bounce-anim {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-20px); }
    60% { transform: translateY(-10px); }
}

/* Pulse animation */
.wl-pulse {
    animation: wl-pulse-anim 2s ease-in-out infinite;
}

@keyframes wl-pulse-anim {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Spin animation */
.wl-spin {
    animation: wl-spin-anim 1s linear infinite;
}

@keyframes wl-spin-anim {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Fade in animation */
.wl-fade-in {
    animation: wl-fade-in-anim 0.5s ease-out forwards;
}

@keyframes wl-fade-in-anim {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

/* Slide up animation */
.wl-slide-up {
    animation: wl-slide-up-anim 0.5s var(--wl-dramatic-ease) forwards;
}

@keyframes wl-slide-up-anim {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scale in animation */
.wl-scale-in {
    animation: wl-scale-in-anim 0.4s var(--wl-bounce) forwards;
}

@keyframes wl-scale-in-anim {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Heartbeat animation */
.wl-heartbeat {
    animation: wl-heartbeat-anim 1.5s ease-in-out infinite;
}

@keyframes wl-heartbeat-anim {
    0%, 100% { transform: scale(1); }
    14% { transform: scale(1.1); }
    28% { transform: scale(1); }
    42% { transform: scale(1.1); }
    70% { transform: scale(1); }
}

/* Flash attention */
.wl-flash-attention {
    animation: wl-flash-anim 1s ease-in-out infinite;
}

@keyframes wl-flash-anim {
    0%, 50%, 100% { opacity: 1; }
    25%, 75% { opacity: 0.5; }
}

/* ============================================================================
   SECTION 6: RESPONSIVE BREAKPOINTS
   ============================================================================ */

/* Mobile devices */
@media (max-width: 640px) {
    .wl-tv-title {
        font-size: 2.5rem;
    }

    .wl-tv-subtitle {
        font-size: 1rem;
    }

    .wl-tv-money {
        font-size: 2rem;
    }

    .wl-tv-question {
        font-size: 1.2rem;
    }

    .wl-tv-timer {
        font-size: 3rem;
    }

    .wl-btn-tv {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* Tablets */
@media (min-width: 641px) and (max-width: 1024px) {
    .wl-tv-title {
        font-size: 4rem;
    }

    .wl-tv-money {
        font-size: 3.5rem;
    }
}

/* Large TV displays */
@media (min-width: 1920px) {
    .wl-tv-title {
        font-size: 10rem;
    }

    .wl-tv-subtitle {
        font-size: 3rem;
    }

    .wl-tv-money {
        font-size: 8rem;
    }

    .wl-tv-question {
        font-size: 4rem;
    }

    .wl-tv-timer {
        font-size: 15rem;
    }

    .wl-btn-tv {
        padding: 2.5rem 5rem;
        font-size: 2rem;
    }
}

/* 4K displays */
@media (min-width: 2560px) {
    .wl-tv-title {
        font-size: 14rem;
    }

    .wl-tv-subtitle {
        font-size: 4rem;
    }

    .wl-tv-money {
        font-size: 12rem;
    }

    .wl-tv-question {
        font-size: 5rem;
    }

    .wl-tv-timer {
        font-size: 20rem;
    }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
