/**
 * ==========================================
 * CoinRain Event Overlay Styles
 * ==========================================
 * Jutalompont.com - 2025
 * 
 * Premium overlay styles for the CoinRain game event.
 * Modern, responsive design with glass morphism effects.
 */

/* ========================================
   COIN RAIN EVENT - PREMIUM OVERLAY STYLES
   Modernized version - 2025
   ======================================== */

.coinrain-event-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(180deg, #0f0c29 0%, #302b63 40%, #24243e 100%);
    z-index: 99999;
    overflow: hidden;
    cursor: none !important;
    user-select: none;
    -webkit-user-select: none;
}

/* Force hide cursor on all children unless specified */
.coinrain-event-overlay * {
    cursor: none !important;
}

.coinrain-event-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffd700' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
    opacity: 0.5;
    transition: opacity 1.5s ease;
}

/* ========================================
   SZINT ALAPÚ MISZTIKUS HÁTTÉR EFFEKTEK
   ======================================== */

/* Alap háttér transition */
.coinrain-event-overlay {
    transition: background 2s ease;
}

/* Level 1 - Alap Szint: Sötét kék-lila gradient, minimális effektek */
.coinrain-event-overlay.level-1 {
    background: linear-gradient(180deg, #0f0c29 0%, #302b63 40%, #24243e 100%);
}

.coinrain-event-overlay.level-1::before {
    opacity: 0.3;
}

/* Level 2 - Fejlett Szint: Arany-bronz gradient, több csillag, enyhe aurora */
.coinrain-event-overlay.level-2 {
    background: linear-gradient(180deg, #1a0f0f 0%, #4a2c1a 30%, #3d2817 60%, #2a1a0f 100%);
    animation: level2Pulse 4s ease-in-out infinite;
}

.coinrain-event-overlay.level-2::before {
    opacity: 0.6;
    background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffd700' fill-opacity='0.08'%3E%3Cpath d='M20 20v-3h-2v3h-3v2h3v3h2v-3h3v-2h-3z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.coinrain-event-overlay.level-2::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        45deg,
        rgba(255, 215, 0, 0.05) 0%,
        transparent 30%,
        transparent 70%,
        rgba(255, 193, 7, 0.05) 100%
    );
    animation: aurora2 8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes level2Pulse {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.1); }
}

@keyframes aurora2 {
    0%, 100% { transform: translateX(-10%) translateY(-5%) scale(1); opacity: 0.5; }
    50% { transform: translateX(10%) translateY(5%) scale(1.1); opacity: 0.8; }
}

/* Level 3 - Arany Szint: Arany-narancs gradient, erős aurora, sok particle */
.coinrain-event-overlay.level-3 {
    background: linear-gradient(180deg, #2a1a0f 0%, #6b4423 25%, #d4af37 50%, #8b6914 75%, #4a2c1a 100%);
    animation: level3Pulse 3s ease-in-out infinite;
}

.coinrain-event-overlay.level-3::before {
    opacity: 0.8;
    background: url("data:image/svg+xml,%3Csvg width='30' height='30' viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffd700' fill-opacity='0.12'%3E%3Ccircle cx='15' cy='15' r='2'/%3E%3Ccircle cx='5' cy='5' r='1.5'/%3E%3Ccircle cx='25' cy='8' r='1'/%3E%3Ccircle cx='8' cy='25' r='1.5'/%3E%3Ccircle cx='22' cy='22' r='1'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    animation: particles3 10s linear infinite;
}

.coinrain-event-overlay.level-3::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 20% 30%, rgba(255, 215, 0, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(255, 193, 7, 0.12) 0%, transparent 50%),
        linear-gradient(
            60deg,
            rgba(255, 140, 0, 0.1) 0%,
            transparent 25%,
            transparent 75%,
            rgba(255, 215, 0, 0.1) 100%
        );
    animation: aurora3 6s ease-in-out infinite;
    pointer-events: none;
}

@keyframes level3Pulse {
    0%, 100% { filter: brightness(1) saturate(1); }
    50% { filter: brightness(1.2) saturate(1.3); }
}

@keyframes particles3 {
    0% { transform: translateY(0) rotate(0deg); }
    100% { transform: translateY(-100vh) rotate(360deg); }
}

@keyframes aurora3 {
    0%, 100% { 
        transform: translateX(-15%) translateY(-10%) scale(1) rotate(0deg); 
        opacity: 0.6; 
    }
    33% { 
        transform: translateX(15%) translateY(10%) scale(1.15) rotate(120deg); 
        opacity: 0.9; 
    }
    66% { 
        transform: translateX(-10%) translateY(15%) scale(1.1) rotate(240deg); 
        opacity: 0.7; 
    }
}

/* Level 4 - Kriptó Szint: Kriptó színek (narancs, kék, zöld), erős aurora, animált particles */
.coinrain-event-overlay.level-4 {
    background: linear-gradient(
        180deg,
        #1a0f0f 0%,
        #4a2c1a 15%,
        #f7931a 30%,
        #627eea 50%,
        #26a17b 70%,
        #1a0f0f 100%
    );
    animation: level4Pulse 2.5s ease-in-out infinite;
}

.coinrain-event-overlay.level-4::before {
    opacity: 1;
    background: url("data:image/svg+xml,%3Csvg width='25' height='25' viewBox='0 0 25 25' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffd700' fill-opacity='0.15'%3E%3Ccircle cx='12.5' cy='12.5' r='2'/%3E%3Ccircle cx='3' cy='3' r='1.5'/%3E%3Ccircle cx='22' cy='5' r='1'/%3E%3Ccircle cx='5' cy='22' r='1.5'/%3E%3Ccircle cx='19' cy='19' r='1'/%3E%3Ccircle cx='12' cy='3' r='1'/%3E%3Ccircle cx='22' cy='15' r='1.2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    animation: particles4 8s linear infinite;
}

.coinrain-event-overlay.level-4::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 15% 25%, rgba(247, 147, 26, 0.2) 0%, transparent 40%),
        radial-gradient(ellipse at 85% 75%, rgba(98, 126, 234, 0.18) 0%, transparent 40%),
        radial-gradient(ellipse at 50% 50%, rgba(38, 161, 123, 0.15) 0%, transparent 50%),
        linear-gradient(
            45deg,
            rgba(247, 147, 26, 0.12) 0%,
            transparent 20%,
            rgba(98, 126, 234, 0.12) 50%,
            transparent 80%,
            rgba(38, 161, 123, 0.12) 100%
        );
    animation: aurora4 5s ease-in-out infinite;
    pointer-events: none;
}

@keyframes level4Pulse {
    0%, 100% { filter: brightness(1) saturate(1) hue-rotate(0deg); }
    33% { filter: brightness(1.3) saturate(1.4) hue-rotate(10deg); }
    66% { filter: brightness(1.1) saturate(1.2) hue-rotate(-10deg); }
}

@keyframes particles4 {
    0% { transform: translateY(0) translateX(0) rotate(0deg); }
    50% { transform: translateY(-50vh) translateX(10vw) rotate(180deg); }
    100% { transform: translateY(-100vh) translateX(0) rotate(360deg); }
}

@keyframes aurora4 {
    0%, 100% { 
        transform: translateX(-20%) translateY(-15%) scale(1) rotate(0deg); 
        opacity: 0.7; 
    }
    25% { 
        transform: translateX(20%) translateY(15%) scale(1.2) rotate(90deg); 
        opacity: 1; 
    }
    50% { 
        transform: translateX(-15%) translateY(20%) scale(1.15) rotate(180deg); 
        opacity: 0.8; 
    }
    75% { 
        transform: translateX(15%) translateY(-10%) scale(1.1) rotate(270deg); 
        opacity: 0.9; 
    }
}

/* Level 5+ - Brutális Szint: Intenzív színek, pulzáló aurora, folyamatos particle effekt */
.coinrain-event-overlay.level-5,
.coinrain-event-overlay[class*="level-"]:not(.level-1):not(.level-2):not(.level-3):not(.level-4) {
    background: linear-gradient(
        180deg,
        #0a0505 0%,
        #4a1a1a 10%,
        #f7931a 25%,
        #ff4500 40%,
        #627eea 55%,
        #26a17b 70%,
        #ffd700 85%,
        #1a0f0f 100%
    );
    animation: level5Pulse 2s ease-in-out infinite;
}

.coinrain-event-overlay.level-5::before,
.coinrain-event-overlay[class*="level-"]:not(.level-1):not(.level-2):not(.level-3):not(.level-4)::before {
    opacity: 1;
    background: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffd700' fill-opacity='0.2'%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Ccircle cx='2' cy='2' r='1.5'/%3E%3Ccircle cx='18' cy='4' r='1'/%3E%3Ccircle cx='4' cy='18' r='1.5'/%3E%3Ccircle cx='16' cy='16' r='1'/%3E%3Ccircle cx='10' cy='2' r='1'/%3E%3Ccircle cx='18' cy='12' r='1.2'/%3E%3Ccircle cx='2' cy='12' r='1'/%3E%3Ccircle cx='10' cy='18' r='1.2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    animation: particles5 6s linear infinite;
}

.coinrain-event-overlay.level-5::after,
.coinrain-event-overlay[class*="level-"]:not(.level-1):not(.level-2):not(.level-3):not(.level-4)::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 10% 20%, rgba(247, 147, 26, 0.25) 0%, transparent 35%),
        radial-gradient(ellipse at 90% 80%, rgba(98, 126, 234, 0.22) 0%, transparent 35%),
        radial-gradient(ellipse at 50% 50%, rgba(38, 161, 123, 0.2) 0%, transparent 45%),
        radial-gradient(ellipse at 30% 70%, rgba(255, 69, 0, 0.18) 0%, transparent 40%),
        radial-gradient(ellipse at 70% 30%, rgba(255, 215, 0, 0.2) 0%, transparent 40%),
        linear-gradient(
            30deg,
            rgba(247, 147, 26, 0.15) 0%,
            transparent 15%,
            rgba(98, 126, 234, 0.15) 30%,
            transparent 45%,
            rgba(38, 161, 123, 0.15) 60%,
            transparent 75%,
            rgba(255, 215, 0, 0.15) 90%,
            transparent 100%
        );
    animation: aurora5 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes level5Pulse {
    0%, 100% { 
        filter: brightness(1) saturate(1) hue-rotate(0deg) contrast(1); 
    }
    25% { 
        filter: brightness(1.4) saturate(1.5) hue-rotate(15deg) contrast(1.2); 
    }
    50% { 
        filter: brightness(1.2) saturate(1.3) hue-rotate(-15deg) contrast(1.1); 
    }
    75% { 
        filter: brightness(1.5) saturate(1.6) hue-rotate(10deg) contrast(1.3); 
    }
}

@keyframes particles5 {
    0% { transform: translateY(0) translateX(0) rotate(0deg) scale(1); }
    25% { transform: translateY(-25vh) translateX(5vw) rotate(90deg) scale(1.1); }
    50% { transform: translateY(-50vh) translateX(-5vw) rotate(180deg) scale(1); }
    75% { transform: translateY(-75vh) translateX(10vw) rotate(270deg) scale(1.15); }
    100% { transform: translateY(-100vh) translateX(0) rotate(360deg) scale(1); }
}

@keyframes aurora5 {
    0%, 100% { 
        transform: translateX(-25%) translateY(-20%) scale(1) rotate(0deg); 
        opacity: 0.8; 
    }
    20% { 
        transform: translateX(25%) translateY(20%) scale(1.3) rotate(72deg); 
        opacity: 1; 
    }
    40% { 
        transform: translateX(-20%) translateY(25%) scale(1.25) rotate(144deg); 
        opacity: 0.9; 
    }
    60% { 
        transform: translateX(20%) translateY(-15%) scale(1.2) rotate(216deg); 
        opacity: 1; 
    }
    80% { 
        transform: translateX(-15%) translateY(20%) scale(1.15) rotate(288deg); 
        opacity: 0.85; 
    }
}

/* ========================================
   HEADER WITH GLASS MORPHISM
   ======================================== */

.coinrain-event-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 2rem;
    background: rgba(15, 12, 41, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
    z-index: 100;
    pointer-events: none;
}

.coinrain-event-header .event-info h2 {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffd700 0%, #ffeb3b 50%, #ffc107 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: goldShimmer 3s ease infinite;
    text-shadow: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.coinrain-event-header .event-info h2 i {
    -webkit-text-fill-color: #ffd700;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
}

@keyframes goldShimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.coinrain-event-header .event-timer {
    color: #fff;
    font-size: 2.2rem;
    font-weight: 900;
    margin-top: 0.5rem;
    font-variant-numeric: tabular-nums;
    letter-spacing: 2px;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.coinrain-event-header .event-score {
    text-align: right;
}

.coinrain-event-header .score-label {
    display: block;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.25rem;
}

.coinrain-event-header .score-value {
    font-size: 2.8rem;
    font-weight: 900;
    background: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.4));
}

/* ========================================
   CANVAS
   ======================================== */

#coinrain-event-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: none;
}

/* ========================================
   HUD PANEL - Floating right panel
   ======================================== */

.coinrain-event-hud {
    position: absolute;
    top: 100px;
    right: 20px;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(15px);
    border-radius: 16px;
    padding: 1.25rem;
    min-width: 200px;
    z-index: 100;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    pointer-events: none;
}

.hud-combo {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hud-combo-label {
    font-size: 0.75rem;
    color: #fbbf24;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.hud-combo-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fbbf24;
}

.hud-combo-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    margin-top: 0.5rem;
    overflow: hidden;
}

.hud-combo-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
    border-radius: 3px;
    transition: width 0.1s linear;
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
}

/* ========================================
   POWER-UP INDICATORS
   ======================================== */

.coinrain-event-powerups {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 100;
    pointer-events: none;
}

.powerup-indicator {
    padding: 0.75rem 1.25rem;
    border-radius: 50px;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    backdrop-filter: blur(10px);
    animation: powerupPulse 1.5s ease-in-out infinite;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.powerup-indicator i {
    font-size: 1.2rem;
}

#event-magnet-indicator { 
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.8), rgba(185, 28, 28, 0.8)); 
    border: 2px solid #ef4444;
    box-shadow: 0 0 30px rgba(239, 68, 68, 0.4);
}

#event-shield-indicator { 
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.8), rgba(29, 78, 216, 0.8)); 
    border: 2px solid #3b82f6;
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.4);
}

#event-clover-indicator { 
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.8), rgba(21, 128, 61, 0.8)); 
    border: 2px solid #22c55e;
    box-shadow: 0 0 30px rgba(34, 197, 94, 0.4);
}

#event-ice-indicator { 
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.8), rgba(14, 165, 233, 0.8)); 
    border: 2px solid #38bdf8;
    box-shadow: 0 0 30px rgba(56, 189, 248, 0.4);
}

#event-goldrush-indicator { 
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.9), rgba(202, 138, 4, 0.9)); 
    border: 2px solid #eab308;
    box-shadow: 0 0 30px rgba(234, 179, 8, 0.5);
}

@keyframes powerupPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* ========================================
   SOUND CONTROL
   ======================================== */

.coinrain-sound-toggle {
    position: absolute;
    top: 100px;
    left: 20px;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 0.75rem 1.25rem;
    color: #fff;
    cursor: pointer !important;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    pointer-events: auto;
}

.coinrain-sound-toggle:hover {
    background: rgba(30, 41, 59, 0.95);
    transform: translateY(-2px);
}

.coinrain-sound-toggle.muted {
    opacity: 0.6;
}

/* ========================================
   RESULT OVERLAY - Premium design
   ======================================== */

.coinrain-event-result {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
    cursor: default !important;
}

.coinrain-event-result button {
    cursor: pointer !important;
}

.result-content {
    text-align: center;
    color: #fff;
    animation: resultSlideIn 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    max-width: 500px;
    padding: 2rem;
}

@keyframes resultSlideIn {
    from { 
        transform: translateY(50px) scale(0.9); 
        opacity: 0; 
    }
    to { 
        transform: translateY(0) scale(1); 
        opacity: 1; 
    }
}

.result-content .result-icon {
    font-size: 5rem;
    margin-bottom: 1rem;
    animation: resultBounce 0.8s ease-out;
}

@keyframes resultBounce {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.result-content h2 {
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #ffd700 0%, #ffeb3b 50%, #ffc107 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 2rem;
}

.result-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 0 auto 2rem;
}

.result-stats .stat {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 1.25rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

.result-stats .stat:hover {
    transform: translateY(-2px);
}

.result-stats .stat .label {
    display: block;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.result-stats .stat span:not(.label) {
    font-size: 1.75rem;
    font-weight: 800;
    color: #fff;
}

.result-stats .net-points {
    grid-column: span 2;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 140, 0, 0.15));
    border: 2px solid rgba(255, 215, 0, 0.5);
}

.result-stats .net-points span:not(.label) {
    font-size: 2.5rem;
    background: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#close-event-result {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
    border-radius: 50px;
    padding: 1rem 3rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
}

#close-event-result:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(16, 185, 129, 0.4);
}

/* ========================================
   COUNTDOWN
   ======================================== */

.coinrain-event-countdown {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 300;
}

.countdown-number {
    font-size: 15rem;
    font-weight: 900;
    background: linear-gradient(135deg, #ffd700 0%, #ffeb3b 50%, #ffc107 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 60px rgba(255, 215, 0, 0.6));
    animation: countdownPulse 1s ease-out;
}

@keyframes countdownPulse {
    0% { transform: scale(0.3); opacity: 0; }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

/* Floating text animations */
@keyframes floatUp {
    0% { transform: translateY(0) scale(1); opacity: 1; }
    100% { transform: translateY(-100px) scale(1.2); opacity: 0; }
}

/* Level Up notification animation */
@keyframes levelUpFloat {
    0% { 
        transform: translateX(-50%) translateY(0) scale(0.5); 
        opacity: 0; 
    }
    10% {
        transform: translateX(-50%) translateY(0) scale(1.1);
        opacity: 1;
    }
    20% {
        transform: translateX(-50%) translateY(0) scale(1);
    }
    80% {
        transform: translateX(-50%) translateY(-30px) scale(1);
        opacity: 1;
    }
    100% { 
        transform: translateX(-50%) translateY(-80px) scale(0.8); 
        opacity: 0; 
    }
}

/* ========================================
   UPCOMING EVENT NOTIFICATION STYLES
   ======================================== */

.upcoming-event-toast {
    position: fixed;
    top: 80px;
    right: 20px;
    background: linear-gradient(135deg, rgba(23, 25, 35, 0.98) 0%, rgba(30, 35, 55, 0.98) 100%);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 16px;
    padding: 20px 24px;
    z-index: 9999;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(255, 215, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    animation: toastSlideIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-width: 380px;
    overflow: hidden;
}

.upcoming-event-toast::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ffd700, #ffeb3b, #ffd700);
    animation: goldShimmerBar 2s linear infinite;
    background-size: 200% 100%;
}

@keyframes goldShimmerBar {
    0% { background-position: 200% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes toastSlideIn {
    0% {
        opacity: 0;
        transform: translateX(100%) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes toastSlideOut {
    0% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateX(100%) scale(0.8);
    }
}

.upcoming-event-toast.hiding {
    animation: toastSlideOut 0.3s ease-in forwards;
}

.upcoming-event-toast .toast-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.upcoming-event-toast .toast-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    animation: iconPulse 2s ease-in-out infinite;
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.4);
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 4px 20px rgba(255, 215, 0, 0.4); }
    50% { transform: scale(1.05); box-shadow: 0 4px 30px rgba(255, 215, 0, 0.6); }
}

.upcoming-event-toast .toast-title {
    flex: 1;
}

.upcoming-event-toast .toast-title h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.upcoming-event-toast .toast-title h4 .badge {
    font-size: 0.65rem;
    padding: 3px 8px;
    border-radius: 20px;
    background: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
    color: #000;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: badgePulse 1.5s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.upcoming-event-toast .toast-title p {
    margin: 4px 0 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.upcoming-event-toast .toast-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    font-size: 1rem;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    transition: color 0.2s, transform 0.2s;
}

.upcoming-event-toast .toast-close:hover {
    color: #fff;
    transform: scale(1.1);
}

.upcoming-event-toast .toast-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px;
    background: rgba(255, 215, 0, 0.08);
    border-radius: 12px;
    border: 1px solid rgba(255, 215, 0, 0.15);
}

.upcoming-event-toast .countdown-display {
    text-align: center;
}

.upcoming-event-toast .countdown-display .time {
    font-size: 2rem;
    font-weight: 900;
    background: linear-gradient(135deg, #ffd700 0%, #ffeb3b 50%, #ffc107 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-variant-numeric: tabular-nums;
    letter-spacing: 1px;
}

.upcoming-event-toast .countdown-display .label {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 2px;
}

.upcoming-event-toast .event-details {
    flex: 1;
    text-align: right;
}

.upcoming-event-toast .event-details .start-time {
    font-size: 0.9rem;
    color: #fff;
    font-weight: 600;
}

.upcoming-event-toast .event-details .duration {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 2px;
}

/* ========================================
   MOBILE RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
    .coinrain-event-header {
        padding: 0.75rem 1rem;
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .coinrain-event-header .event-info h2 {
        font-size: 1.3rem;
        justify-content: center;
    }
    
    .coinrain-event-header .event-timer {
        font-size: 1.8rem;
    }
    
    .coinrain-event-header .event-score {
        text-align: center;
    }
    
    .coinrain-event-header .score-value {
        font-size: 2rem;
    }
    
    .coinrain-event-hud {
        top: auto;
        bottom: 100px;
        right: 10px;
        left: 10px;
        min-width: auto;
        padding: 1rem;
    }
    
    .coinrain-sound-toggle {
        top: auto;
        bottom: 100px;
        left: 10px;
        right: auto;
    }
    
    .coinrain-event-powerups {
        bottom: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .powerup-indicator {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .result-content h2 {
        font-size: 1.8rem;
    }
    
    .result-stats .stat span:not(.label) {
        font-size: 1.3rem;
    }
    
    .result-stats .net-points span:not(.label) {
        font-size: 1.8rem;
    }
    
    .countdown-number {
        font-size: 8rem;
    }
}

@media (max-width: 480px) {
    .upcoming-event-toast {
        top: auto;
        bottom: 20px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .upcoming-event-toast .toast-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .upcoming-event-toast .countdown-display .time {
        font-size: 1.6rem;
    }
}

/* ========================================
   PRE-START OVERLAY STYLES
   Modern animated countdown before game start
   ======================================== */

.coinrain-prestart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    z-index: 99998;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    overflow: hidden;
}

.coinrain-prestart-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.coinrain-prestart-overlay.hiding {
    opacity: 0;
    visibility: hidden;
}

/* Animated background pattern */
.coinrain-prestart-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 193, 7, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(255, 235, 59, 0.05) 0%, transparent 70%);
    animation: prestartBgPulse 4s ease-in-out infinite;
}

@keyframes prestartBgPulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

/* Floating coins background */
.prestart-coins-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.prestart-coin {
    position: absolute;
    font-size: 2rem;
    color: rgba(255, 215, 0, 0.3);
    animation: floatCoin 6s ease-in-out infinite;
}

.prestart-coin.coin-1 { top: 10%; left: 5%; animation-delay: 0s; font-size: 2.5rem; }
.prestart-coin.coin-2 { top: 20%; right: 10%; animation-delay: 1s; font-size: 1.8rem; }
.prestart-coin.coin-3 { top: 60%; left: 8%; animation-delay: 2s; font-size: 2.2rem; }
.prestart-coin.coin-4 { top: 70%; right: 5%; animation-delay: 0.5s; font-size: 1.5rem; }
.prestart-coin.coin-5 { top: 40%; left: 3%; animation-delay: 1.5s; font-size: 2rem; }
.prestart-coin.coin-6 { top: 15%; left: 15%; animation-delay: 2.5s; font-size: 1.6rem; color: rgba(255, 235, 59, 0.25); }
.prestart-coin.coin-7 { top: 80%; right: 15%; animation-delay: 3s; font-size: 1.8rem; color: rgba(138, 43, 226, 0.25); }
.prestart-coin.coin-8 { top: 50%; right: 8%; animation-delay: 3.5s; font-size: 2rem; color: rgba(255, 99, 71, 0.25); }

@keyframes floatCoin {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.3; }
    50% { transform: translateY(-20px) rotate(15deg); opacity: 0.6; }
}

/* Main content container */
.prestart-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    max-width: 600px;
}

/* Header badge */
.prestart-header {
    margin-bottom: 1rem;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.prestart-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #ffd700 0%, #ffab00 100%);
    color: #1a1a2e;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: badgePulse 2s ease-in-out infinite;
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.4);
}

.prestart-badge i {
    animation: bellRing 1s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); box-shadow: 0 4px 20px rgba(255, 215, 0, 0.4); }
    50% { transform: scale(1.05); box-shadow: 0 6px 30px rgba(255, 215, 0, 0.6); }
}

@keyframes bellRing {
    0%, 100% { transform: rotate(0); }
    25% { transform: rotate(15deg); }
    75% { transform: rotate(-15deg); }
}

/* Title section */
.prestart-title {
    margin-bottom: 2rem;
}

.prestart-title h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 0.5rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
}

.prestart-title h1 i {
    color: #ffd700;
    filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.7));
    animation: coinSpin 3s linear infinite;
}

@keyframes coinSpin {
    0% { transform: rotateY(0deg); }
    100% { transform: rotateY(360deg); }
}

.prestart-event-name {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    font-weight: 500;
}

/* Countdown ring */
.prestart-countdown-ring {
    position: relative;
    width: 220px;
    height: 220px;
    margin: 1rem auto 2rem;
}

.prestart-countdown-ring svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.prestart-countdown-ring .ring-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 6;
}

.prestart-countdown-ring .ring-progress {
    fill: none;
    stroke: #ffd700;
    stroke-width: 6;
    stroke-linecap: round;
    transition: stroke-dashoffset 1s linear, stroke 0.3s ease;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
}

.prestart-countdown-ring .countdown-number {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.prestart-countdown-ring .countdown-value {
    font-size: 4.5rem;
    font-weight: 900;
    color: #fff;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    transition: transform 0.2s ease, color 0.3s ease;
}

.prestart-countdown-ring .countdown-value.pulse-warning {
    color: #ff4757;
    animation: countdownPulse 1s ease-in-out infinite;
}

@keyframes countdownPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

.prestart-countdown-ring .countdown-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 0.25rem;
}

/* Instructions */
.prestart-instructions {
    margin-bottom: 1.5rem;
}

.prestart-instructions p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    margin: 0.5rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.prestart-instructions p i {
    color: #ffd700;
    animation: pointerBounce 1.5s ease-in-out infinite;
}

@keyframes pointerBounce {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(5px); }
}

.prestart-instructions .prestart-tip {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
}

.prestart-instructions .prestart-tip i {
    animation: none;
}

/* Sound toggle button */
.prestart-sound-toggle {
    margin-top: 1rem;
}

.prestart-sound-toggle .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.prestart-sound-toggle .btn-light {
    background: rgba(255, 255, 255, 0.9);
    color: #1a1a2e;
    border: none;
}

.prestart-sound-toggle .btn-outline-light {
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.prestart-sound-toggle .btn:hover {
    transform: scale(1.05);
}

/* Level Info Section */
.prestart-level-info {
    margin: 1.5rem 0;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.level-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 25px;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.75rem;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.level-badge i {
    font-size: 1.1rem;
}

.level-bonuses {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.bonus-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.8rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
}

.bonus-item:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

.bonus-item i {
    color: #ffd700;
    font-size: 1rem;
}

.bonus-item.crypto-enabled {
    background: linear-gradient(135deg, rgba(38, 161, 123, 0.3), rgba(247, 147, 26, 0.3));
    border-color: rgba(247, 147, 26, 0.5);
    animation: cryptoGlow 2s ease-in-out infinite;
}

@keyframes cryptoGlow {
    0%, 100% { box-shadow: 0 0 10px rgba(247, 147, 26, 0.3); }
    50% { box-shadow: 0 0 20px rgba(247, 147, 26, 0.6); }
}

/* Crypto Coins Preview */
.prestart-crypto-preview {
    margin-top: 1.5rem;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(38, 161, 123, 0.1), rgba(247, 147, 26, 0.1));
    border-radius: 15px;
    border: 1px solid rgba(247, 147, 26, 0.3);
}

.prestart-crypto-preview h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: center;
    color: #ffd700;
}

.prestart-crypto-preview h4 i {
    margin-right: 0.5rem;
    animation: gemSpin 3s linear infinite;
}

@keyframes gemSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.crypto-coins-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 0.75rem;
    max-width: 500px;
    margin: 0 auto;
}

.crypto-coin-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    padding: 0.75rem 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.crypto-coin-item:hover {
    transform: translateY(-5px) scale(1.05);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.crypto-icon {
    width: 40px;
    height: 40px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    animation: floatCoin 3s ease-in-out infinite;
}

@keyframes floatCoin {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.crypto-coin-item:nth-child(1) .crypto-icon { animation-delay: 0s; }
.crypto-coin-item:nth-child(2) .crypto-icon { animation-delay: 0.3s; }
.crypto-coin-item:nth-child(3) .crypto-icon { animation-delay: 0.6s; }
.crypto-coin-item:nth-child(4) .crypto-icon { animation-delay: 0.9s; }
.crypto-coin-item:nth-child(5) .crypto-icon { animation-delay: 1.2s; }
.crypto-coin-item:nth-child(6) .crypto-icon { animation-delay: 1.5s; }

.crypto-symbol {
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.crypto-chance {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(0, 0, 0, 0.3);
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
}

/* Responsive design for prestart overlay */
@media (max-width: 768px) {
    .prestart-title h1 {
        font-size: 2rem;
    }
    
    .prestart-event-name {
        font-size: 1.1rem;
    }
    
    .prestart-countdown-ring {
        width: 180px;
        height: 180px;
    }
    
    .prestart-countdown-ring .countdown-value {
        font-size: 3.5rem;
    }
    
    .prestart-instructions p {
        font-size: 1rem;
    }
    
    .prestart-coin {
        font-size: 1.5rem;
    }
    
    .level-badge {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }
    
    .crypto-coins-grid {
        grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
        gap: 0.5rem;
    }
    
    .crypto-icon {
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 480px) {
    .prestart-content {
        padding: 1rem;
    }
    
    .prestart-badge {
        font-size: 0.75rem;
        padding: 0.4rem 1rem;
    }
    
    .prestart-title h1 {
        font-size: 1.6rem;
    }
    
    .prestart-event-name {
        font-size: 1rem;
    }
    
    .prestart-countdown-ring {
        width: 150px;
        height: 150px;
    }
    
    .prestart-countdown-ring .countdown-value {
        font-size: 3rem;
    }
    
    .prestart-countdown-ring .countdown-label {
        font-size: 0.75rem;
    }
    
    .prestart-instructions p {
        font-size: 0.9rem;
    }
    
    .prestart-instructions .prestart-tip {
        font-size: 0.8rem;
    }
    
    .prestart-level-info {
        padding: 0.75rem;
        margin: 1rem 0;
    }
    
    .level-badge {
        font-size: 0.85rem;
        padding: 0.4rem 0.7rem;
    }
    
    .level-bonuses {
        gap: 0.5rem;
    }
    
    .bonus-item {
        padding: 0.3rem 0.6rem;
        font-size: 0.8rem;
    }
    
    .crypto-coins-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }
    
    .crypto-icon {
        width: 30px;
        height: 30px;
    }
    
    .crypto-symbol {
        font-size: 0.75rem;
    }
    
    .crypto-chance {
        font-size: 0.7rem;
        padding: 0.15rem 0.4rem;
    }
    
    .prestart-crypto-preview h4 {
        font-size: 1rem;
    }
}

/* ========================================
   ADVANCED FEATURES - 2025
   Érmepokol, Vörös Bomba, Multiplayer HUD
   ======================================== */

/* ----------------------------------------
   SCREEN SHAKE EFFECT
   ---------------------------------------- */
@keyframes screenShake {
    0%, 100% { transform: translate(0, 0); }
    10% { transform: translate(-10px, -5px); }
    20% { transform: translate(10px, 5px); }
    30% { transform: translate(-8px, 3px); }
    40% { transform: translate(8px, -3px); }
    50% { transform: translate(-5px, 5px); }
    60% { transform: translate(5px, -5px); }
    70% { transform: translate(-3px, 2px); }
    80% { transform: translate(3px, -2px); }
    90% { transform: translate(-1px, 1px); }
}

.screen-shake {
    animation: screenShake 0.5s ease-out;
}

/* ----------------------------------------
   ENDGAME "ÉRMEPOKOL" PHASE
   ---------------------------------------- */
@keyframes endgamePulse {
    0%, 100% { 
        box-shadow: inset 0 0 100px rgba(255, 69, 0, 0.3),
                    inset 0 0 200px rgba(255, 0, 0, 0.2);
    }
    50% { 
        box-shadow: inset 0 0 150px rgba(255, 69, 0, 0.5),
                    inset 0 0 250px rgba(255, 0, 0, 0.3);
    }
}

@keyframes endgameShake {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(2px, 1px) rotate(0.5deg); }
    50% { transform: translate(-2px, -1px) rotate(-0.5deg); }
    75% { transform: translate(1px, -2px) rotate(0.3deg); }
}

.endgame-active {
    animation: endgamePulse 1s ease-in-out infinite, 
               endgameShake 0.1s ease-in-out infinite;
}

/* Endgame warning overlay */
.endgame-active::before {
    content: '🔥 ÉRMEPOKOL 🔥';
    position: absolute;
    top: 70px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    font-weight: 900;
    color: #ff4500;
    text-shadow: 0 0 20px #ff0000, 0 0 40px #ff4500;
    animation: endgameText 0.5s ease-in-out infinite alternate;
    z-index: 200;
    pointer-events: none;
}

@keyframes endgameText {
    from { 
        transform: translateX(-50%) scale(1); 
        opacity: 0.8;
    }
    to { 
        transform: translateX(-50%) scale(1.1); 
        opacity: 1;
    }
}

/* ----------------------------------------
   RED BOMB STYLING
   ---------------------------------------- */
@keyframes redBombPulse {
    0%, 100% { 
        filter: drop-shadow(0 0 10px #ff0000) drop-shadow(0 0 20px #dc2626);
        transform: scale(1);
    }
    50% { 
        filter: drop-shadow(0 0 20px #ff0000) drop-shadow(0 0 40px #dc2626);
        transform: scale(1.1);
    }
}

/* Red bomb immunity effect - player becomes semi-transparent */
@keyframes immunityFlash {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.player-immune {
    animation: immunityFlash 0.2s ease-in-out infinite;
}

/* ----------------------------------------
   MULTIPLAYER HUD - LEADERBOARD
   ---------------------------------------- */
.multiplayer-hud {
    position: absolute;
    top: 100px;
    right: 20px;
    width: 220px;
    background: rgba(15, 12, 41, 0.9);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 12px;
    padding: 0;
    z-index: 150;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.multiplayer-hud-header {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2) 0%, rgba(255, 215, 0, 0.1) 100%);
    padding: 10px 15px;
    font-weight: 700;
    color: #ffd700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

.multiplayer-hud-header i {
    font-size: 0.9rem;
}

.multiplayer-hud-list {
    max-height: 300px;
    overflow-y: auto;
    padding: 5px;
}

/* Scrollbar styling */
.multiplayer-hud-list::-webkit-scrollbar {
    width: 4px;
}

.multiplayer-hud-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.multiplayer-hud-list::-webkit-scrollbar-thumb {
    background: rgba(255, 215, 0, 0.3);
    border-radius: 2px;
}

/* Player row - List style (default) */
.hud-player {
    display: flex;
    align-items: center;
    padding: 8px 10px;
    border-radius: 8px;
    margin-bottom: 3px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.03);
}

.hud-player:hover {
    background: rgba(255, 215, 0, 0.1);
}

.hud-player-me {
    background: rgba(255, 215, 0, 0.15) !important;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.hud-rank {
    font-size: 0.9rem;
    min-width: 28px;
    text-align: center;
}

.hud-name {
    flex: 1;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.9);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 0 8px;
}

.hud-score {
    font-size: 0.85rem;
    font-weight: 700;
    color: #ffd700;
    font-variant-numeric: tabular-nums;
    transition: all 0.3s ease;
}

.hud-score.score-up {
    animation: scoreFlash 0.3s ease-out;
}

@keyframes scoreFlash {
    0% { color: #4ade80; transform: scale(1.2); }
    100% { color: #ffd700; transform: scale(1); }
}

/* HUD Style: Compact */
.multiplayer-hud-compact .hud-player {
    padding: 5px 8px;
}

.multiplayer-hud-compact .hud-name {
    font-size: 0.75rem;
}

.multiplayer-hud-compact .hud-score {
    font-size: 0.75rem;
}

/* HUD Style: Cards */
.multiplayer-hud-cards {
    width: 250px;
}

.multiplayer-hud-cards .hud-player {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px;
    margin-bottom: 6px;
}

.multiplayer-hud-cards .hud-player:nth-child(1) {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2) 0%, rgba(255, 215, 0, 0.05) 100%);
    border-color: rgba(255, 215, 0, 0.3);
}

.multiplayer-hud-cards .hud-player:nth-child(2) {
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.15) 0%, rgba(192, 192, 192, 0.05) 100%);
    border-color: rgba(192, 192, 192, 0.3);
}

.multiplayer-hud-cards .hud-player:nth-child(3) {
    background: linear-gradient(135deg, rgba(205, 127, 50, 0.15) 0%, rgba(205, 127, 50, 0.05) 100%);
    border-color: rgba(205, 127, 50, 0.3);
}

/* ----------------------------------------
   RARITY GLOW EFFECTS
   ---------------------------------------- */
.rarity-bronze {
    filter: drop-shadow(0 0 5px #cd7f32);
}

.rarity-silver {
    filter: drop-shadow(0 0 8px #c0c0c0) drop-shadow(0 0 15px rgba(192, 192, 192, 0.5));
}

.rarity-gold {
    filter: drop-shadow(0 0 10px #ffd700) drop-shadow(0 0 20px rgba(255, 215, 0, 0.6));
}

.rarity-diamond {
    filter: drop-shadow(0 0 12px #00ffff) drop-shadow(0 0 25px rgba(0, 255, 255, 0.7));
    animation: diamondShine 2s ease-in-out infinite;
}

@keyframes diamondShine {
    0%, 100% { filter: drop-shadow(0 0 12px #00ffff) drop-shadow(0 0 25px rgba(0, 255, 255, 0.7)); }
    50% { filter: drop-shadow(0 0 20px #00ffff) drop-shadow(0 0 40px rgba(0, 255, 255, 0.9)); }
}

/* ----------------------------------------
   TRAIL EFFECT
   ---------------------------------------- */
@keyframes trailFade {
    from { opacity: 0.6; transform: scale(1); }
    to { opacity: 0; transform: scale(0.5); }
}

.item-trail {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    animation: trailFade 0.3s ease-out forwards;
}

/* ----------------------------------------
   RESPONSIVE ADJUSTMENTS
   ---------------------------------------- */
@media (max-width: 768px) {
    .multiplayer-hud {
        width: 180px;
        top: 80px;
        right: 10px;
    }
    
    .multiplayer-hud-header {
        padding: 8px 12px;
        font-size: 0.75rem;
    }
    
    .hud-player {
        padding: 6px 8px;
    }
    
    .hud-name {
        font-size: 0.7rem;
    }
    
    .hud-score {
        font-size: 0.75rem;
    }
    
    .endgame-active::before {
        font-size: 1.5rem;
        top: 60px;
    }
}

@media (max-width: 480px) {
    .multiplayer-hud {
        width: 160px;
        top: 70px;
        right: 5px;
    }
    
    .endgame-active::before {
        font-size: 1.2rem;
        top: 55px;
    }
}

/* ========================================
   PRESTART OVERLAY - ELŐÉRTESÍTÉS
   ======================================== */

.coinrain-prestart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, 
        rgba(15, 12, 41, 0.97) 0%, 
        rgba(48, 43, 99, 0.97) 50%, 
        rgba(36, 36, 62, 0.97) 100%);
    z-index: 99998;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.coinrain-prestart-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.coinrain-prestart-overlay.hiding {
    opacity: 0;
    visibility: hidden;
}

.prestart-content {
    text-align: center;
    color: white;
    max-width: 500px;
    padding: 2rem;
    position: relative;
    z-index: 2;
}

/* Animated background coins */
.prestart-coins-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.prestart-coin {
    position: absolute;
    font-size: 2rem;
    color: rgba(255, 215, 0, 0.15);
    animation: prestartFloat 8s ease-in-out infinite;
}

.prestart-coin.coin-1 { top: 10%; left: 10%; animation-delay: 0s; font-size: 2.5rem; }
.prestart-coin.coin-2 { top: 20%; right: 15%; animation-delay: 1s; font-size: 1.8rem; }
.prestart-coin.coin-3 { top: 60%; left: 5%; animation-delay: 2s; font-size: 3rem; }
.prestart-coin.coin-4 { top: 70%; right: 10%; animation-delay: 3s; font-size: 2rem; }
.prestart-coin.coin-5 { top: 40%; left: 15%; animation-delay: 4s; font-size: 1.5rem; }
.prestart-coin.coin-6 { top: 85%; left: 30%; animation-delay: 5s; font-size: 2.2rem; color: rgba(255, 215, 0, 0.2); }
.prestart-coin.coin-7 { top: 15%; right: 30%; animation-delay: 6s; font-size: 1.8rem; color: rgba(102, 204, 255, 0.2); }
.prestart-coin.coin-8 { top: 50%; right: 5%; animation-delay: 7s; font-size: 2.5rem; color: rgba(168, 85, 247, 0.2); }

@keyframes prestartFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.15;
    }
    50% {
        transform: translateY(-30px) rotate(15deg);
        opacity: 0.3;
    }
}

/* Header badge */
.prestart-header {
    margin-bottom: 1.5rem;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.prestart-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: prestartPulse 1.5s ease-in-out infinite;
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.4);
}

.prestart-badge i {
    animation: prestartBell 1s ease-in-out infinite;
}

@keyframes prestartPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 4px 20px rgba(239, 68, 68, 0.4); }
    50% { transform: scale(1.05); box-shadow: 0 6px 30px rgba(239, 68, 68, 0.6); }
}

@keyframes prestartBell {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(15deg); }
    75% { transform: rotate(-15deg); }
}

/* Title */
.prestart-title h1 {
    font-size: 2.5rem;
    font-weight: 900;
    margin: 0 0 0.5rem 0;
    background: linear-gradient(135deg, #ffd700 0%, #ffeb3b 50%, #ffc107 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.prestart-title h1 i {
    -webkit-text-fill-color: #ffd700;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
}

.prestart-event-name {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* Countdown ring */
.prestart-countdown-ring {
    position: relative;
    width: 180px;
    height: 180px;
    margin: 2rem auto;
}

.prestart-countdown-ring svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.prestart-countdown-ring .ring-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 8;
}

.prestart-countdown-ring .ring-progress {
    fill: none;
    stroke: url(#prestartGradient);
    stroke: #ffd700;
    stroke-width: 8;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.5s ease;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
}

/* Duplicate countdown-number styles - removed to prevent override
   The specific .prestart-countdown-ring .countdown-number styles are in lines 955-965 */

/* Instructions */
.prestart-instructions {
    margin-top: 2rem;
}

.prestart-instructions p {
    margin: 0.5rem 0;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

.prestart-instructions p i {
    margin-right: 0.5rem;
    color: #ffd700;
}

.prestart-tip {
    font-size: 0.85rem !important;
    color: rgba(255, 255, 255, 0.5) !important;
    font-style: italic;
}

/* Sound toggle */
.prestart-sound-toggle {
    margin-top: 2rem;
}

.prestart-sound-toggle .btn {
    border-radius: 30px;
    padding: 0.5rem 1.5rem;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.prestart-sound-toggle .btn:hover {
    transform: translateY(-2px);
}

/* Low time warning */
.prestart-countdown-ring.low-time .ring-progress {
    stroke: #ef4444;
    animation: prestartUrgent 0.5s ease-in-out infinite;
}

.prestart-countdown-ring.low-time .countdown-value {
    color: #ef4444;
    animation: prestartUrgent 0.5s ease-in-out infinite;
}

@keyframes prestartUrgent {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* Responsive */
@media (max-width: 576px) {
    .prestart-title h1 {
        font-size: 1.8rem;
    }
    
    .prestart-countdown-ring {
        width: 140px;
        height: 140px;
    }
    
    .countdown-value {
        font-size: 2.5rem;
    }
    
    .prestart-badge {
        font-size: 0.8rem;
        padding: 0.4rem 1rem;
    }
}

/* ========================================
   UNIFIED HUD - Modern 2025 Design
   ======================================== */

.coinrain-unified-hud {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 260px;
    background: linear-gradient(145deg, rgba(15, 12, 41, 0.95) 0%, rgba(30, 27, 75, 0.95) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(255, 215, 0, 0.2);
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(255, 215, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    z-index: 100;
    overflow: hidden;
    pointer-events: none;
    animation: hudSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes hudSlideIn {
    from {
        opacity: 0;
        transform: translateX(50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes hudSlideOut {
    from {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateX(50px) scale(0.95);
    }
}

/* HUD Header */
.unified-hud-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15) 0%, rgba(255, 215, 0, 0.05) 100%);
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

.hud-event-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: livePulse 2s ease-in-out infinite;
}

.hud-event-badge i {
    font-size: 0.6rem;
    animation: liveBlink 1s ease-in-out infinite;
}

@keyframes livePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
    50% { box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
}

@keyframes liveBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.hud-event-timer {
    font-size: 1.1rem;
    font-weight: 800;
    color: #ffd700;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

/* HUD Stats Section */
.unified-hud-stats {
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hud-stat-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.hud-stat-row:hover {
    background: rgba(255, 255, 255, 0.06);
}

.hud-stat-row .stat-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 0.9rem;
}

.hud-stat-score .stat-icon {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.2) 0%, rgba(245, 158, 11, 0.2) 100%);
    color: #fbbf24;
}

.hud-stat-coins .stat-icon {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2) 0%, rgba(234, 179, 8, 0.2) 100%);
    color: #ffd700;
}

.hud-stat-bombs .stat-icon {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(220, 38, 38, 0.2) 100%);
    color: #ef4444;
}

.stat-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stat-label {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    font-variant-numeric: tabular-nums;
}

.hud-stat-score .stat-value {
    color: #fbbf24;
}

.hud-stat-coins .stat-value {
    color: #ffd700;
}

.hud-stat-bombs .stat-value {
    color: #ef4444;
}

/* Combo Section */
.unified-hud-combo {
    padding: 12px 16px;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1) 0%, rgba(245, 158, 11, 0.05) 100%);
    border-top: 1px solid rgba(255, 215, 0, 0.1);
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
}

.combo-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.combo-label {
    font-size: 0.7rem;
    color: #fbbf24;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.combo-value {
    font-size: 1.3rem;
    font-weight: 800;
    color: #fbbf24;
    text-shadow: 0 0 15px rgba(251, 191, 36, 0.5);
}

.combo-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.combo-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #fbbf24 0%, #f59e0b 50%, #fcd34d 100%);
    border-radius: 3px;
    transition: width 0.15s ease-out;
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.6);
}

/* Leaderboard Section */
.unified-hud-leaderboard {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.leaderboard-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.1) 0%, rgba(139, 92, 246, 0.05) 100%);
    color: #a78bfa;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.leaderboard-header i {
    font-size: 0.8rem;
}

.leaderboard-list {
    padding: 8px;
    max-height: 200px;
    overflow-y: auto;
}

.leaderboard-list::-webkit-scrollbar {
    width: 4px;
}

.leaderboard-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
}

.leaderboard-list::-webkit-scrollbar-thumb {
    background: rgba(167, 139, 250, 0.3);
    border-radius: 2px;
}

.leaderboard-player {
    display: flex;
    align-items: center;
    padding: 8px 10px;
    border-radius: 10px;
    margin-bottom: 4px;
    background: rgba(255, 255, 255, 0.02);
    transition: all 0.2s ease;
}

.leaderboard-player:hover {
    background: rgba(255, 255, 255, 0.05);
}

.leaderboard-player.is-me {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15) 0%, rgba(255, 215, 0, 0.05) 100%);
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.leaderboard-rank {
    min-width: 28px;
    font-size: 0.85rem;
    text-align: center;
}

.leaderboard-name {
    flex: 1;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.9);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 0 8px;
}

.leaderboard-score {
    font-size: 0.85rem;
    font-weight: 700;
    color: #ffd700;
    font-variant-numeric: tabular-nums;
}

.leaderboard-score.score-up {
    animation: scoreFlash 0.3s ease-out;
}

/* Powerups Section */
.unified-hud-powerups {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 10px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.powerup-slot {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
}

.powerup-slot i {
    font-size: 0.7rem;
}

#unified-magnet { color: #ef4444; }
#unified-shield { color: #60a5fa; }
#unified-clover { color: #4ade80; }
#unified-ice { color: #7dd3fc; }
#unified-goldrush { color: #fbbf24; }

/* HUD Responsive */
@media (max-width: 768px) {
    .coinrain-unified-hud {
        top: 10px;
        right: 10px;
        width: 200px;
        border-radius: 16px;
    }
    
    .unified-hud-header {
        padding: 8px 12px;
    }
    
    .hud-event-badge {
        font-size: 0.6rem;
        padding: 3px 8px;
    }
    
    .hud-event-timer {
        font-size: 0.95rem;
    }
    
    .unified-hud-stats {
        padding: 8px 12px;
        gap: 6px;
    }
    
    .hud-stat-row {
        padding: 6px 10px;
    }
    
    .hud-stat-row .stat-icon {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }
    
    .stat-label {
        font-size: 0.65rem;
    }
    
    .stat-value {
        font-size: 0.95rem;
    }
    
    .unified-hud-combo {
        padding: 8px 12px;
    }
    
    .combo-value {
        font-size: 1.1rem;
    }
    
    .leaderboard-list {
        max-height: 120px;
    }
}

@media (max-width: 480px) {
    .coinrain-unified-hud {
        width: 160px;
        border-radius: 14px;
    }
    
    .hud-event-badge span {
        display: none;
    }
    
    .hud-stat-row .stat-icon {
        width: 24px;
        height: 24px;
        font-size: 0.7rem;
    }
    
    .stat-label {
        display: none;
    }
    
    .unified-hud-leaderboard {
        display: none;
    }
}
