/* ============================================
   ULTRA-MODERN PRESTART OVERLAY REDESIGN 2026
   Advanced Glassmorphism + Dynamic Animations
   ============================================ */

/* Hard lock scrolling while prestart is open (prevents the white scrollbar/frame). */
html.coinrain-prestart-open,
body.coinrain-prestart-open {
    overflow: hidden !important;
    height: 100vh;
    position: fixed;
    width: 100%;
}

/* ============================================
    LAYOUT OVERRIDES (Make content readable)
    coinrain-event.css defines the base overlay container;
    we override sizing/alignment here for the modern layout.
    ============================================ */

.coinrain-prestart-overlay .prestart-content {
    width: 100vw;
    height: 100vh;
    max-width: none;
    padding: 0;
    align-items: stretch;
    justify-content: stretch;
}

/* ============================================
   ANIMATED GRADIENT BACKGROUND - ENHANCED
   ============================================ */
.prestart-animated-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    background: 
        radial-gradient(ellipse at top left, rgba(102, 126, 234, 0.15), transparent 50%),
        radial-gradient(ellipse at bottom right, rgba(240, 147, 251, 0.15), transparent 50%),
        radial-gradient(ellipse at center, rgba(255, 215, 0, 0.1), transparent 50%),
        linear-gradient(180deg, #0a0a1a 0%, #1a1a2e 50%, #16213e 100%);
    animation: bgPulse 10s ease-in-out infinite;
}

@keyframes bgPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.85; }
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: orbFloat 12s ease-in-out infinite;
    mix-blend-mode: screen;
}

.orb-1 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.8) 0%, rgba(118, 75, 162, 0.4) 50%, transparent 100%);
    top: -15%;
    left: -15%;
    animation-delay: 0s;
}

.orb-2 {
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(240, 147, 251, 0.7) 0%, rgba(245, 87, 108, 0.4) 50%, transparent 100%);
    bottom: -15%;
    right: -15%;
    animation-delay: 3s;
}

.orb-3 {
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.6) 0%, rgba(255, 107, 107, 0.3) 50%, transparent 100%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 6s;
}

.orb-4 {
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.5) 0%, rgba(5, 150, 105, 0.3) 50%, transparent 100%);
    top: 20%;
    right: 10%;
    animation-delay: 9s;
}

@keyframes orbFloat {
    0%, 100% { 
        transform: translate(0, 0) scale(1) rotate(0deg); 
        opacity: 0.5;
    }
    25% { 
        transform: translate(40px, -40px) scale(1.15) rotate(90deg); 
        opacity: 0.7;
    }
    50% { 
        transform: translate(20px, 20px) scale(0.95) rotate(180deg); 
        opacity: 0.6;
    }
    75% { 
        transform: translate(-40px, 40px) scale(1.05) rotate(270deg); 
        opacity: 0.65;
    }
}

/* ============================================
   FLOATING PARTICLES - ENHANCED
   ============================================ */
.floating-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.9) 0%, rgba(255, 215, 0, 0.6) 50%, transparent 100%);
    border-radius: 50%;
    animation: particleFloat 8s ease-in-out infinite;
    box-shadow: 
        0 0 4px rgba(255, 255, 255, 0.6),
        0 0 8px rgba(255, 215, 0, 0.4);
}

.particle::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: inherit;
    border-radius: 50%;
    filter: blur(2px);
    animation: particlePulse 2s ease-in-out infinite;
}

@keyframes particleFloat {
    0% { 
        transform: translate(0, 0) scale(0.5); 
        opacity: 0; 
    }
    10% { 
        opacity: 1; 
        transform: translate(5px, -10px) scale(1);
    }
    50% {
        transform: translate(calc(var(--tx) * 0.5), calc(var(--ty) * 0.5)) scale(1.2);
        opacity: 0.8;
    }
    90% { 
        opacity: 0.6; 
        transform: translate(calc(var(--tx) * 0.9), calc(var(--ty) * 0.9)) scale(0.8);
    }
    100% { 
        transform: translate(var(--tx), var(--ty)) scale(0.3); 
        opacity: 0; 
    }
}

@keyframes particlePulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.3); }
}

.particle:nth-child(1) { top: 10%; left: 20%; --tx: -50px; --ty: -100px; animation-delay: 0s; }
.particle:nth-child(2) { top: 20%; left: 80%; --tx: 50px; --ty: -120px; animation-delay: 0.5s; }
.particle:nth-child(3) { top: 70%; left: 15%; --tx: -30px; --ty: 80px; animation-delay: 1s; }
.particle:nth-child(4) { top: 60%; left: 85%; --tx: 40px; --ty: 90px; animation-delay: 1.5s; }
.particle:nth-child(5) { top: 40%; left: 50%; --tx: 0px; --ty: -150px; animation-delay: 2s; }
.particle:nth-child(6) { top: 80%; left: 40%; --tx: -60px; --ty: 70px; animation-delay: 2.5s; }
.particle:nth-child(7) { top: 30%; left: 70%; --tx: 70px; --ty: -80px; animation-delay: 3s; }
.particle:nth-child(8) { top: 50%; left: 25%; --tx: -45px; --ty: -110px; animation-delay: 3.5s; }
.particle:nth-child(9) { top: 90%; left: 60%; --tx: 55px; --ty: 100px; animation-delay: 4s; }
.particle:nth-child(10) { top: 15%; left: 45%; --tx: -35px; --ty: -130px; animation-delay: 4.5s; }
.particle:nth-child(11) { top: 25%; left: 30%; --tx: -40px; --ty: -90px; animation-delay: 5s; }
.particle:nth-child(12) { top: 75%; left: 75%; --tx: 60px; --ty: 110px; animation-delay: 0.3s; }
.particle:nth-child(13) { top: 35%; left: 10%; --tx: -55px; --ty: -70px; animation-delay: 1.2s; }
.particle:nth-child(14) { top: 85%; left: 20%; --tx: -50px; --ty: 95px; animation-delay: 2.8s; }
.particle:nth-child(15) { top: 5%; left: 60%; --tx: 45px; --ty: -140px; animation-delay: 3.7s; }
.particle:nth-child(16) { top: 55%; left: 90%; --tx: 65px; --ty: 85px; animation-delay: 4.3s; }
.particle:nth-child(17) { top: 45%; left: 35%; --tx: -38px; --ty: -105px; animation-delay: 1.8s; }
.particle:nth-child(18) { top: 95%; left: 50%; --tx: 0px; --ty: 120px; animation-delay: 3.2s; }
.particle:nth-child(19) { top: 12%; left: 88%; --tx: 58px; --ty: -115px; animation-delay: 2.1s; }
.particle:nth-child(20) { top: 68%; left: 5%; --tx: -48px; --ty: 88px; animation-delay: 4.6s; }

/* ============================================
   GLASS CARD - ULTRA-MODERN DESIGN
   ============================================ */
.prestart-glass-card {
    position: relative;
    width: 100vw;
    height: 100vh;
    max-width: none;
    max-height: none;
    overflow-y: auto;
    overflow-x: hidden;
    border: none;
    border-radius: 0;
    padding: clamp(20px, 4vw, 40px);
    background: 
        linear-gradient(135deg, rgba(26, 26, 46, 0.6) 0%, rgba(16, 21, 46, 0.7) 100%),
        radial-gradient(ellipse at top, rgba(102, 126, 234, 0.1), transparent),
        radial-gradient(ellipse at bottom, rgba(255, 215, 0, 0.05), transparent);
    backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 
        inset 0 1px 1px rgba(255, 255, 255, 0.1),
        inset 0 -1px 1px rgba(0, 0, 0, 0.3);
    animation: cardEntrance 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 215, 0, 0.3) rgba(255, 255, 255, 0.05);
}

/* Custom scrollbar */
.prestart-glass-card::-webkit-scrollbar {
    width: 8px;
}

.prestart-glass-card::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.prestart-glass-card::-webkit-scrollbar-thumb {
    background: rgba(255, 215, 0, 0.3);
    border-radius: 10px;
    transition: background 0.3s ease;
}

.prestart-glass-card::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 215, 0, 0.5);
}

/* No "frame" glow in fullscreen mode */
.prestart-glass-card .card-glow {
    display: none;
}

/* Two-column layout on desktop, single column on mobile */
.prestart-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    align-items: start;
}

.prestart-left,
.prestart-right {
    min-width: 0;
}

@media (min-width: 760px) {
    .prestart-layout {
        grid-template-columns: 1.05fr 0.95fr;
        gap: 1.6rem;
    }

    .prestart-right {
        padding-top: 0.15rem;
    }
}

@keyframes cardEntrance {
    0% { opacity: 0; transform: scale(0.9) translateY(20px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

.card-glow {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #ffd700, #ff6b6b, #667eea);
    border-radius: 25.5px;
    opacity: 0;
    z-index: -1;
    animation: glowPulse 3s ease-in-out infinite;
}

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

/* ============================================
   HEADER - MODERN BADGES
   ============================================ */
.prestart-header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: 
        linear-gradient(135deg, rgba(239, 68, 68, 0.25) 0%, rgba(220, 38, 38, 0.3) 100%),
        rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(239, 68, 68, 0.5);
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 800;
    color: #ef4444;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 
        0 4px 15px rgba(239, 68, 68, 0.3),
        inset 0 1px 1px rgba(255, 255, 255, 0.1);
    animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
    0%, 100% { 
        transform: scale(1); 
        box-shadow: 
            0 4px 15px rgba(239, 68, 68, 0.3),
            inset 0 1px 1px rgba(255, 255, 255, 0.1);
    }
    50% { 
        transform: scale(1.05); 
        box-shadow: 
            0 6px 20px rgba(239, 68, 68, 0.5),
            0 0 30px rgba(239, 68, 68, 0.3),
            inset 0 1px 1px rgba(255, 255, 255, 0.2);
    }
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.8);
    animation: dotPulse 1.5s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% { 
        transform: scale(1); 
        opacity: 1; 
        box-shadow: 0 0 10px rgba(239, 68, 68, 0.8);
    }
    50% { 
        transform: scale(1.5); 
        opacity: 0.7; 
        box-shadow: 0 0 20px rgba(239, 68, 68, 1);
    }
}

.prestart-badge-modern {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 1.4rem;
    background: 
        linear-gradient(135deg, #ffd700 0%, #ffa500 50%, #ff8800 100%),
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.2), transparent);
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 900;
    color: #1a1a2e;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    box-shadow: 
        0 6px 20px rgba(255, 215, 0, 0.5),
        0 0 40px rgba(255, 215, 0, 0.3),
        inset 0 2px 4px rgba(255, 255, 255, 0.3),
        inset 0 -2px 4px rgba(0, 0, 0, 0.2);
    animation: badgeShine 3s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

.prestart-badge-modern::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.5) 50%,
        transparent 70%
    );
    animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

@keyframes badgeShine {
    0%, 100% { 
        transform: scale(1) rotate(0deg); 
        box-shadow: 
            0 6px 20px rgba(255, 215, 0, 0.5),
            0 0 40px rgba(255, 215, 0, 0.3),
            inset 0 2px 4px rgba(255, 255, 255, 0.3);
    }
    50% { 
        transform: scale(1.08) rotate(2deg); 
        box-shadow: 
            0 8px 30px rgba(255, 215, 0, 0.7),
            0 0 60px rgba(255, 215, 0, 0.5),
            inset 0 2px 6px rgba(255, 255, 255, 0.4);
    }
}

.prestart-badge-modern i {
    animation: rocketLaunch 2s ease-in-out infinite;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

@keyframes rocketLaunch {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-6px) rotate(-5deg); }
    75% { transform: translateY(-3px) rotate(5deg); }
}

/* ============================================
   TITLE SECTION - HERO STYLE
   ============================================ */
.prestart-title-modern {
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
}

/* ============================================
   AVATAR SELECTOR (Prestart)
   ============================================ */

.prestart-avatar-select {
    margin-top: 0.5rem; /* Reduced from 1.1rem */
    margin-bottom: 0.5rem; /* Reduced from 0.85rem */
}

.prestart-avatar-select .avatar-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.85);
}

.prestart-avatar-select .avatar-header i {
    opacity: 0.9;
}

.prestart-avatar-select .avatar-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.7rem;
}

.prestart-avatar-select .avatar-card {
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 0.5rem 0.4rem; /* Reduced from 0.9rem 0.65rem */
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    transition: transform 0.12s ease, background 0.12s ease, border-color 0.12s ease;
}

.prestart-avatar-select .avatar-card:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.08);
}

.prestart-avatar-select .avatar-card.active {
    border-color: rgba(255, 215, 0, 0.65);
    background: rgba(255, 215, 0, 0.09);
}

.prestart-avatar-select .avatar-badge {
    width: 42px;
    height: 42px;
    margin: 0 auto 0.55rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 900;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.95);
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.14);
    position: relative;
    overflow: hidden;
}

.prestart-avatar-select .avatar-icon {
    width: 28px;
    height: 28px;
    display: block;
}

.prestart-avatar-select .avatar-badge-fallback {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-weight: 900;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.95);
    opacity: 0;
}

/* If image fails to load (broken src), the img will be empty; show fallback by default in no-SVG cases */
@supports not (mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'/>")) {
    .prestart-avatar-select .avatar-icon { display: none; }
    .prestart-avatar-select .avatar-badge-fallback { opacity: 1; }
}

.prestart-avatar-select .avatar-name {
    text-align: center;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.1;
    white-space: normal;
}

@media (max-width: 420px) {
    .prestart-avatar-select .avatar-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.title-icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 90px;
    height: 90px;
    background: 
        linear-gradient(135deg, #ffd700 0%, #ffa500 50%, #ff6b6b 100%),
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.3), transparent);
    border-radius: 50%;
    margin: 0 auto 1.2rem;
    box-shadow: 
        0 10px 40px rgba(255, 215, 0, 0.6),
        0 0 60px rgba(255, 215, 0, 0.3),
        inset 0 4px 8px rgba(255, 255, 255, 0.3),
        inset 0 -4px 8px rgba(0, 0, 0, 0.2);
    animation: iconFloat 4s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

.title-icon-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        transparent 40%,
        rgba(255, 255, 255, 0.4) 50%,
        transparent 60%
    );
    animation: iconShimmer 3s linear infinite;
}

@keyframes iconFloat {
    0%, 100% { 
        transform: translateY(0) rotate(0deg) scale(1); 
        box-shadow: 
            0 10px 40px rgba(255, 215, 0, 0.6),
            0 0 60px rgba(255, 215, 0, 0.3);
    }
    50% { 
        transform: translateY(-10px) rotate(180deg) scale(1.05); 
        box-shadow: 
            0 15px 50px rgba(255, 215, 0, 0.8),
            0 0 80px rgba(255, 215, 0, 0.5);
    }
}

@keyframes iconShimmer {
    0% { transform: translateX(-100%) translateY(-100%); }
    100% { transform: translateX(100%) translateY(100%); }
}

.title-icon-wrapper i {
    font-size: 2.8rem;
    color: #1a1a2e;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    animation: iconSpin 6s ease-in-out infinite;
}

@keyframes iconSpin {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(360deg); }
}

.prestart-title-modern h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    background: 
        linear-gradient(135deg, 
            #fff 0%, 
            #ffd700 30%, 
            #ffa500 60%, 
            #fff 100%
        );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% auto;
    animation: titleShine 3s linear infinite;
    margin: 0 0 0.8rem 0;
    letter-spacing: -1px;
    text-shadow: 
        0 4px 20px rgba(255, 215, 0, 0.5),
        0 0 40px rgba(255, 215, 0, 0.3);
    position: relative;
}

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

.event-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    animation: subtitlePulse 2s ease-in-out infinite;
}

@keyframes subtitlePulse {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

/* ============================================
   COUNTDOWN - MODERN CIRCULAR DESIGN
   ============================================ */
.prestart-countdown-modern {
    position: relative;
    width: 180px;
    height: 180px;
    margin: 0 auto 1.5rem;
    filter: drop-shadow(0 10px 40px rgba(255, 215, 0, 0.4));
}

.countdown-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.5));
}

.countdown-track {
    fill: none;
    stroke: rgba(255, 255, 255, 0.08);
    stroke-width: 8;
}

.countdown-progress {
    fill: none;
    stroke: url(#progressGradient);
    stroke-width: 10;
    stroke-linecap: round;
    transition: stroke-dashoffset 1s linear;
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.6));
}

.countdown-display {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    background: 
        radial-gradient(circle, rgba(255, 215, 0, 0.1) 0%, transparent 70%),
        rgba(26, 26, 46, 0.8);
    border-radius: 50%;
    width: 140px;
    height: 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 215, 0, 0.2);
    box-shadow: 
        inset 0 0 30px rgba(255, 215, 0, 0.1),
        0 5px 20px rgba(0, 0, 0, 0.3);
    animation: countdownPulse 2s ease-in-out infinite;
}

@keyframes countdownPulse {
    0%, 100% { 
        transform: translate(-50%, -50%) scale(1); 
        box-shadow: 
            inset 0 0 30px rgba(255, 215, 0, 0.1),
            0 5px 20px rgba(0, 0, 0, 0.3);
    }
    50% { 
        transform: translate(-50%, -50%) scale(1.05); 
        box-shadow: 
            inset 0 0 40px rgba(255, 215, 0, 0.2),
            0 8px 30px rgba(255, 215, 0, 0.2);
    }
}

.countdown-display .countdown-value {
    font-size: 3.5rem;
    font-weight: 900;
    background: 
        linear-gradient(135deg, 
            #fff 0%, 
            #ffd700 20%, 
            #ffa500 40%, 
            #ff6b6b 70%, 
            #fff 100%
        );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% auto;
    animation: countdownShine 2s linear infinite;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    filter: drop-shadow(0 4px 15px rgba(255, 215, 0, 0.8));
    position: relative;
}

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

.countdown-display .countdown-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 0.5rem;
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* ============================================
   LEVEL INFO - MODERN CARD DESIGN
   ============================================ */
.prestart-level-modern {
    background: 
        linear-gradient(135deg, rgba(40, 40, 65, 0.95) 0%, rgba(30, 30, 50, 0.95) 100%),
        radial-gradient(circle at top right, rgba(102, 126, 234, 0.1), transparent);
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-radius: 20px;
    padding: 1.3rem;
    margin-bottom: 1.5rem;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.3),
        inset 0 1px 1px rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.prestart-level-modern:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(102, 126, 234, 0.2),
        inset 0 1px 1px rgba(255, 255, 255, 0.15);
    border-color: rgba(102, 126, 234, 0.5);
}

.level-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    font-size: 0.95rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.level-header i {
    color: #667eea;
    font-size: 1.1rem;
    animation: levelIconPulse 2s ease-in-out infinite;
}

@keyframes levelIconPulse {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 5px rgba(102, 126, 234, 0.5)); }
    50% { transform: scale(1.2); filter: drop-shadow(0 0 15px rgba(102, 126, 234, 0.8)); }
}

.level-stats {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.stat-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: 
        linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%),
        rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #fff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 4px 10px rgba(0, 0, 0, 0.2),
        inset 0 1px 1px rgba(255, 255, 255, 0.1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-pill:hover {
    background: 
        linear-gradient(135deg, rgba(255, 215, 0, 0.2) 0%, rgba(255, 165, 0, 0.15) 100%),
        rgba(60, 50, 30, 0.4);
    border-color: rgba(255, 215, 0, 0.6);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 
        0 8px 20px rgba(255, 215, 0, 0.3),
        0 0 30px rgba(255, 215, 0, 0.2),
        inset 0 1px 1px rgba(255, 255, 255, 0.15);
}

.stat-pill i {
    color: #ffd700;
    font-size: 0.9rem;
    filter: drop-shadow(0 2px 4px rgba(255, 215, 0, 0.5));
    animation: statIconFloat 2s ease-in-out infinite;
}

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

.crypto-pill {
    background: 
        linear-gradient(135deg, rgba(138, 43, 226, 0.3) 0%, rgba(102, 126, 234, 0.25) 100%),
        rgba(60, 30, 90, 0.4);
    border-color: rgba(138, 43, 226, 0.6);
}

.crypto-pill:hover {
    background: 
        linear-gradient(135deg, rgba(138, 43, 226, 0.4) 0%, rgba(102, 126, 234, 0.35) 100%),
        rgba(70, 35, 100, 0.5);
    border-color: rgba(138, 43, 226, 0.8);
    box-shadow: 
        0 8px 20px rgba(138, 43, 226, 0.4),
        0 0 40px rgba(138, 43, 226, 0.3),
        inset 0 1px 1px rgba(255, 255, 255, 0.15);
}

.crypto-pill i {
    color: #a855f7;
    filter: drop-shadow(0 2px 6px rgba(168, 85, 247, 0.6));
}

/* ============================================
   TIPS - MODERN INFO CARDS
   ============================================ */
.prestart-tips {
    margin-bottom: 1.5rem;
    background: 
        linear-gradient(135deg, rgba(50, 50, 70, 0.95) 0%, rgba(40, 40, 60, 0.95) 100%),
        radial-gradient(circle at bottom left, rgba(255, 215, 0, 0.05), transparent);
    border: 2px solid rgba(255, 215, 0, 0.2);
    border-radius: 20px;
    padding: 1.3rem;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.3),
        inset 0 1px 1px rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.prestart-tips:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(255, 215, 0, 0.1),
        inset 0 1px 1px rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 215, 0, 0.3);
}

.tip-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 0.8rem;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    margin: 0.6rem 0;
    transition: all 0.3s ease;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.2);
}

.tip-item:hover {
    color: rgba(255, 255, 255, 1);
    background: rgba(255, 215, 0, 0.1);
    transform: translateX(5px);
}

.tip-item:first-child {
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ffd700;
    background: 
        linear-gradient(135deg, rgba(255, 215, 0, 0.15) 0%, rgba(255, 165, 0, 0.1) 100%),
        rgba(60, 50, 30, 0.4);
    border: 1px solid rgba(255, 215, 0, 0.3);
    margin-bottom: 1rem;
}

.tip-item span {
    color: inherit;
    display: inline-block;
    min-width: 0;
    max-width: 100%;
    white-space: normal;
    text-align: center;
    line-height: 1.5;
    font-weight: 600;
}

.tip-item i {
    color: #ffd700;
    font-size: 1.1rem;
    animation: tipFloat 3s ease-in-out infinite;
    flex-shrink: 0;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
}

.tip-item:first-child i {
    font-size: 1.3rem;
    animation: tipShine 2s ease-in-out infinite;
}

@keyframes tipFloat {
    0%, 100% { 
        transform: translateY(0) scale(1); 
        filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
    }
    50% { 
        transform: translateY(-5px) scale(1.1); 
        filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.8));
    }
}

@keyframes tipShine {
    0%, 100% { 
        transform: scale(1) rotate(0deg); 
        filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.8));
    }
    50% { 
        transform: scale(1.2) rotate(360deg); 
        filter: drop-shadow(0 0 25px rgba(255, 215, 0, 1));
    }
}

#rotatingTip {
    transition: opacity 0.5s ease, transform 0.5s ease;
}

#rotatingTip.fade-out {
    opacity: 0;
    transform: scale(0.95);
}

/* ============================================
   CONTROLS - MODERN BUTTON DESIGN
   ============================================ */
.prestart-controls {
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
    position: sticky;
    bottom: 0;
    padding: 1.2rem 0;
    background: 
        linear-gradient(180deg, transparent 0%, rgba(26, 26, 46, 0.9) 20%),
        rgba(26, 26, 46, 0.8);
    backdrop-filter: blur(15px) saturate(180%);
    border-top: 2px solid rgba(255, 215, 0, 0.2);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 -10px 30px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

.sound-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.8rem 1.5rem;
    background: 
        linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%),
        rgba(40, 40, 45, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.2),
        inset 0 1px 1px rgba(255, 255, 255, 0.1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sound-btn:hover {
    background: 
        linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.08) 100%),
        rgba(50, 50, 55, 0.9);
    border-color: rgba(255, 255, 255, 0.35);
    color: #fff;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(255, 255, 255, 0.1),
        inset 0 1px 2px rgba(255, 255, 255, 0.2);
}

.sound-btn:active {
    transform: translateY(-1px) scale(1.02);
}

.sound-btn.active {
    background: 
        linear-gradient(135deg, rgba(255, 215, 0, 0.3) 0%, rgba(255, 165, 0, 0.2) 100%),
        rgba(60, 50, 30, 0.9);
    border-color: rgba(255, 215, 0, 0.6);
    color: #ffd700;
    box-shadow: 
        0 4px 20px rgba(255, 215, 0, 0.4),
        0 0 40px rgba(255, 215, 0, 0.2),
        inset 0 1px 2px rgba(255, 255, 255, 0.2);
}

.sound-btn.active:hover {
    border-color: rgba(255, 215, 0, 0.8);
    box-shadow: 
        0 8px 30px rgba(255, 215, 0, 0.5),
        0 0 50px rgba(255, 215, 0, 0.3),
        inset 0 1px 2px rgba(255, 255, 255, 0.3);
}

.sound-btn i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.sound-btn:hover i {
    transform: scale(1.2);
}

/* Share/Action buttons */
.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.8rem 1.6rem;
    background: 
        linear-gradient(135deg, #667eea 0%, #764ba2 100%),
        radial-gradient(circle at top, rgba(255, 255, 255, 0.2), transparent);
    border: 2px solid rgba(102, 126, 234, 0.5);
    border-radius: 25px;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 6px 20px rgba(102, 126, 234, 0.4),
        0 0 40px rgba(102, 126, 234, 0.2),
        inset 0 2px 4px rgba(255, 255, 255, 0.2),
        inset 0 -2px 4px rgba(0, 0, 0, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

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

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

.share-btn:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 
        0 10px 30px rgba(102, 126, 234, 0.6),
        0 0 60px rgba(102, 126, 234, 0.3),
        inset 0 2px 6px rgba(255, 255, 255, 0.3);
    border-color: rgba(102, 126, 234, 0.8);
}

.share-btn:active {
    transform: translateY(-2px) scale(1.03);
}

.share-btn i {
    font-size: 1rem;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
}

.share-btn:hover i {
    transform: scale(1.2) rotate(5deg);
}

/* Powerup Shop Button - Special Style */
.powerup-shop-btn {
    background: 
        linear-gradient(135deg, #8B5CF6 0%, #6366F1 100%),
        radial-gradient(circle at top, rgba(255, 255, 255, 0.2), transparent) !important;
    border: 2px solid #A78BFA !important;
    animation: powerupPulse 2s ease-in-out infinite;
}

.powerup-shop-btn:hover {
    background: 
        linear-gradient(135deg, #9D6CFF 0%, #7476FF 100%),
        radial-gradient(circle at top, rgba(255, 255, 255, 0.3), transparent) !important;
    box-shadow: 
        0 10px 35px rgba(139, 92, 246, 0.6),
        0 0 70px rgba(139, 92, 246, 0.4),
        inset 0 2px 6px rgba(255, 255, 255, 0.3) !important;
}

@keyframes powerupPulse {
    0%, 100% { 
        box-shadow: 
            0 6px 20px rgba(139, 92, 246, 0.4),
            0 0 40px rgba(139, 92, 246, 0.2),
            inset 0 2px 4px rgba(255, 255, 255, 0.2);
    }
    50% { 
        box-shadow: 
            0 8px 30px rgba(139, 92, 246, 0.6),
            0 0 60px rgba(139, 92, 246, 0.4),
            inset 0 2px 6px rgba(255, 255, 255, 0.3);
    }
}

/* ============================================
   POWERUP STATUS DISPLAY
   ============================================ */
.prestart-powerup-status {
    background: 
        linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(99, 102, 241, 0.15) 100%),
        rgba(50, 40, 80, 0.95);
    border: 2px solid rgba(139, 92, 246, 0.5);
    border-radius: 20px;
    padding: 1.3rem;
    margin-bottom: 1.5rem;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.3),
        0 0 40px rgba(139, 92, 246, 0.2),
        inset 0 1px 1px rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    animation: powerupStatusEntrance 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes powerupStatusEntrance {
    0% { 
        opacity: 0; 
        transform: translateY(20px) scale(0.95); 
    }
    100% { 
        opacity: 1; 
        transform: translateY(0) scale(1); 
    }
}

.prestart-powerup-status:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.4),
        0 0 50px rgba(139, 92, 246, 0.3),
        inset 0 1px 1px rgba(255, 255, 255, 0.15);
    border-color: rgba(139, 92, 246, 0.7);
}

.powerup-status-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    margin-bottom: 1rem;
    font-weight: 800;
    font-size: 0.95rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.powerup-status-header i {
    color: #ffd700;
    font-size: 1.1rem;
    animation: powerupHeaderPulse 2s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.8));
}

@keyframes powerupHeaderPulse {
    0%, 100% { 
        transform: scale(1) rotate(0deg); 
        filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.8));
    }
    50% { 
        transform: scale(1.2) rotate(180deg); 
        filter: drop-shadow(0 0 20px rgba(255, 215, 0, 1));
    }
}

.powerup-status-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.powerup-status-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1rem;
    background: 
        linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.04) 100%),
        rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 15px;
    transition: all 0.3s ease;
    animation: powerupItemSlide 0.4s ease-out;
}

@keyframes powerupItemSlide {
    0% { 
        opacity: 0; 
        transform: translateX(-20px); 
    }
    100% { 
        opacity: 1; 
        transform: translateX(0); 
    }
}

.powerup-status-item:hover {
    background: 
        linear-gradient(135deg, rgba(139, 92, 246, 0.15) 0%, rgba(99, 102, 241, 0.1) 100%),
        rgba(60, 50, 90, 0.5);
    border-color: rgba(139, 92, 246, 0.5);
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.2);
}

.powerup-status-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: 
        linear-gradient(135deg, rgba(255, 215, 0, 0.2) 0%, rgba(255, 165, 0, 0.15) 100%),
        rgba(60, 50, 30, 0.6);
    border: 2px solid rgba(255, 215, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #ffd700;
    box-shadow: 
        0 0 15px rgba(255, 215, 0, 0.3),
        inset 0 1px 1px rgba(255, 255, 255, 0.2);
    animation: powerupIconFloat 3s ease-in-out infinite;
}

@keyframes powerupIconFloat {
    0%, 100% { 
        transform: translateY(0) scale(1); 
        box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
    }
    50% { 
        transform: translateY(-3px) scale(1.05); 
        box-shadow: 0 0 25px rgba(255, 215, 0, 0.5);
    }
}

.powerup-status-info {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    min-width: 0;
}

.powerup-status-name {
    font-weight: 700;
    font-size: 0.85rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.powerup-status-effect {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
}

.powerup-status-timer {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.2rem;
}

.powerup-timer-value {
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    font-weight: 800;
    color: #10b981;
    text-shadow: 0 0 10px rgba(16, 185, 129, 0.6);
    animation: timerPulse 1s ease-in-out infinite;
}

@keyframes timerPulse {
    0%, 100% { 
        transform: scale(1); 
        color: #10b981;
        text-shadow: 0 0 10px rgba(16, 185, 129, 0.6);
    }
    50% { 
        transform: scale(1.05); 
        color: #22c55e;
        text-shadow: 0 0 15px rgba(34, 197, 94, 0.8);
    }
}

.powerup-timer-label {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.powerup-status-permanent {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.8rem;
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.4);
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    color: #10b981;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.powerup-status-permanent i {
    font-size: 0.8rem;
}

/* Empty state */
.powerup-status-empty {
    text-align: center;
    padding: 1.5rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    font-weight: 600;
}

.powerup-status-empty i {
    display: block;
    font-size: 2rem;
    margin-bottom: 0.8rem;
    opacity: 0.3;
}

/* ============================================
   LIVE PLAYERS - ANIMATED INDICATOR
   ============================================ */
.prestart-live-players {
    background: 
        linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(5, 150, 105, 0.1) 100%),
        rgba(20, 40, 35, 0.95);
    border: 2px solid rgba(16, 185, 129, 0.4);
    border-radius: 20px;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.3),
        0 0 40px rgba(16, 185, 129, 0.1),
        inset 0 1px 1px rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.prestart-live-players:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.4),
        0 0 50px rgba(16, 185, 129, 0.2),
        inset 0 1px 1px rgba(255, 255, 255, 0.15);
    border-color: rgba(16, 185, 129, 0.6);
}

.live-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pulse-dot {
    width: 12px;
    height: 12px;
    background: #10b981;
    border-radius: 50%;
    animation: pulseDotEnhanced 1.5s ease-in-out infinite;
    box-shadow: 
        0 0 15px rgba(16, 185, 129, 0.8),
        0 0 30px rgba(16, 185, 129, 0.4);
    position: relative;
}

.pulse-dot::before {
    content: '';
    position: absolute;
    inset: -8px;
    border: 2px solid rgba(16, 185, 129, 0.5);
    border-radius: 50%;
    animation: pulseRing 1.5s ease-in-out infinite;
}

@keyframes pulseDotEnhanced {
    0%, 100% { 
        transform: scale(1); 
        opacity: 1; 
        box-shadow: 
            0 0 15px rgba(16, 185, 129, 0.8),
            0 0 30px rgba(16, 185, 129, 0.4);
    }
    50% { 
        transform: scale(1.4); 
        opacity: 0.8; 
        box-shadow: 
            0 0 25px rgba(16, 185, 129, 1),
            0 0 50px rgba(16, 185, 129, 0.6);
    }
}

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

.live-indicator i {
    color: #10b981;
    font-size: 1.2rem;
    filter: drop-shadow(0 0 10px rgba(16, 185, 129, 0.6));
    animation: liveIconBounce 2s ease-in-out infinite;
}

@keyframes liveIconBounce {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-5px) scale(1.1); }
}

#livePlayersCount {
    color: #10b981;
    font-weight: 900;
    font-size: 1.1rem;
    text-shadow: 
        0 0 15px rgba(16, 185, 129, 0.8),
        0 2px 8px rgba(0, 0, 0, 0.5);
    animation: countPulse 2s ease-in-out infinite;
}

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

/* Rotating tip animation */
#rotatingTip {
    transition: opacity 0.5s ease;
}

#rotatingTip.fade-out {
    opacity: 0;
}

/* ============================================
   RESPONSIVE DESIGN - MOBILE OPTIMIZED
   ============================================ */

/* Tablet & Small Desktop */
@media (max-width: 1024px) {
    .prestart-glass-card {
        padding: 2rem 1.5rem;
    }
    
    .title-icon-wrapper {
        width: 75px;
        height: 75px;
    }
    
    .title-icon-wrapper i {
        font-size: 2.3rem;
    }
    
    .prestart-countdown-modern {
        width: 160px;
        height: 160px;
    }
    
    .countdown-display {
        width: 120px;
        height: 120px;
    }
    
    .countdown-display .countdown-value {
        font-size: 3rem;
    }
}

/* Mobile Landscape & Portrait */
@media (max-width: 768px) {
    .prestart-glass-card {
        padding: 1.5rem 1rem;
    }
    
    .prestart-header {
        gap: 0.6rem;
        margin-bottom: 0.8rem;
    }
    
    .status-badge {
        padding: 0.4rem 0.8rem;
        font-size: 0.65rem;
    }
    
    .prestart-badge-modern {
        padding: 0.5rem 1rem;
        font-size: 0.7rem;
        letter-spacing: 1px;
    }
    
    .prestart-title-modern {
        margin-bottom: 1rem;
    }
    
    .prestart-title-modern h1 {
        font-size: clamp(1.8rem, 5vw, 2.5rem);
    }
    
    .event-subtitle {
        font-size: 0.9rem;
        letter-spacing: 1px;
    }
    
    .title-icon-wrapper {
        width: 70px;
        height: 70px;
        margin-bottom: 1rem;
    }
    
    .title-icon-wrapper i {
        font-size: 2rem;
    }
    
    .prestart-countdown-modern {
        width: 150px;
        height: 150px;
        margin-bottom: 1rem;
    }
    
    .countdown-display {
        width: 110px;
        height: 110px;
    }
    
    .countdown-display .countdown-value {
        font-size: 2.8rem;
    }
    
    .countdown-display .countdown-label {
        font-size: 0.7rem;
        letter-spacing: 1.5px;
    }
    
    .gradient-orb {
        filter: blur(60px);
    }
    
    .orb-1, .orb-2, .orb-3, .orb-4 {
        opacity: 0.4;
    }
    
    .prestart-level-modern,
    .prestart-tips,
    .prestart-live-players {
        margin-bottom: 1rem;
        padding: 1rem;
    }
    
    .level-stats {
        gap: 0.6rem;
    }
    
    .stat-pill {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
    }
    
    .tip-item {
        font-size: 0.85rem;
        padding: 0.6rem;
    }
    
    .prestart-controls {
        gap: 0.6rem;
        padding: 1rem 0;
    }
    
    .sound-btn,
    .share-btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.8rem;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .prestart-glass-card {
        padding: 1.2rem 0.8rem;
    }
    
    .prestart-header {
        flex-direction: column;
        gap: 0.5rem;
        margin-bottom: 0.6rem;
    }
    
    .status-badge,
    .prestart-badge-modern {
        font-size: 0.6rem;
        padding: 0.4rem 0.8rem;
    }
    
    .prestart-title-modern h1 {
        font-size: clamp(1.5rem, 6vw, 2rem);
        letter-spacing: -0.5px;
    }
    
    .event-subtitle {
        font-size: 0.8rem;
        letter-spacing: 0.5px;
    }
    
    .title-icon-wrapper {
        width: 60px;
        height: 60px;
        margin-bottom: 0.8rem;
    }
    
    .title-icon-wrapper i {
        font-size: 1.8rem;
    }
    
    .prestart-countdown-modern {
        width: 130px;
        height: 130px;
        margin-bottom: 1rem;
    }
    
    .countdown-display {
        width: 100px;
        height: 100px;
    }
    
    .countdown-display .countdown-value {
        font-size: 2.5rem;
    }
    
    .countdown-display .countdown-label {
        font-size: 0.65rem;
        letter-spacing: 1px;
    }
    
    .gradient-orb {
        filter: blur(50px);
        opacity: 0.3;
    }
    
    .prestart-level-modern,
    .prestart-tips,
    .prestart-live-players {
        margin-bottom: 0.8rem;
        padding: 0.8rem;
        border-radius: 15px;
    }
    
    .level-header {
        font-size: 0.85rem;
        margin-bottom: 0.8rem;
    }
    
    .level-stats {
        gap: 0.5rem;
    }
    
    .stat-pill {
        padding: 0.4rem 0.8rem;
        font-size: 0.7rem;
        gap: 0.4rem;
    }
    
    .stat-pill i {
        font-size: 0.8rem;
    }
    
    .tip-item {
        font-size: 0.8rem;
        padding: 0.5rem;
        gap: 0.6rem;
    }
    
    .tip-item i {
        font-size: 1rem;
    }
    
    .live-indicator {
        font-size: 0.85rem;
        gap: 0.6rem;
    }
    
    .pulse-dot {
        width: 10px;
        height: 10px;
    }
    
    #livePlayersCount {
        font-size: 1rem;
    }
    
    .prestart-controls {
        gap: 0.5rem;
        padding: 0.8rem 0;
    }
    
    .sound-btn,
    .share-btn {
        padding: 0.6rem 1rem;
        font-size: 0.75rem;
        gap: 0.5rem;
    }
    
    .sound-btn i,
    .share-btn i {
        font-size: 0.9rem;
    }
}

/* Very Small Mobile (320px) */
@media (max-width: 360px) {
    .prestart-title-modern h1 {
        font-size: 1.4rem;
    }
    
    .prestart-countdown-modern {
        width: 120px;
        height: 120px;
    }
    
    .countdown-display {
        width: 90px;
        height: 90px;
    }
    
    .countdown-display .countdown-value {
        font-size: 2.2rem;
    }
    
    .stat-pill {
        padding: 0.4rem 0.7rem;
        font-size: 0.65rem;
    }
    
    .sound-btn,
    .share-btn {
        padding: 0.5rem 0.8rem;
        font-size: 0.7rem;
    }
}

/* ============================================
   PRESTART OVERLAY CHAT
   ============================================ */

.prestart-chat {
    margin-top: 0.25rem;
    margin-bottom: 160px; /* JAVÍTÁS: Nagy alsó margó, hogy a sticky footer gombok ne takarják a chat input mezőt */
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    background: rgba(26, 26, 46, 0.35);
    backdrop-filter: blur(10px) saturate(140%);
    overflow: hidden;
}

.prestart-chat-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.02em;
}

.prestart-chat-messages {
    height: 150px; /* JAVÍTÁS: Kicsit nagyobb mobilon, de nem túl nagy */
    max-height: 35vh; /* JAVÍTÁS: Max magasság a képernyőhöz igazítva */
    overflow: auto;
    padding: 0.5rem 0.65rem;
}

@media (min-width: 760px) {
    .prestart-chat-messages {
        height: 280px;
    }
}

.prestart-chat-loading,
.prestart-chat-empty {
    opacity: 0.8;
    font-size: 0.85rem;
}

.prestart-chat-row {
    display: grid;
    grid-template-columns: 32px 1fr;
    gap: 0.6rem;
    padding: 0.4rem 0;
}

.prestart-chat-avatar img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.prestart-chat-username {
    font-weight: 700;
    font-size: 0.8rem;
    opacity: 0.92;
}

.prestart-chat-text {
    font-size: 0.9rem;
    line-height: 1.25rem;
    word-break: break-word;
    opacity: 0.95;
}

.prestart-chat-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.5rem;
    padding: 0.65rem 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.prestart-chat-input {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 0.55rem 0.75rem;
    background: rgba(0, 0, 0, 0.25);
    color: #fff;
    outline: none;
}

.prestart-chat-input::placeholder {
    color: rgba(255, 255, 255, 0.65);
}

.prestart-chat-send {
    border: 0;
    border-radius: 12px;
    padding: 0 0.85rem;
    background: rgba(255, 215, 0, 0.16);
    color: #ffd700;
}
