/* Glowing Animated Reward Colors & Effects */

/* Glowing Gradient Animation */
@keyframes glow-gradient {
    0%, 100% {
        background-position: 0% 50%;
        filter: brightness(1) saturate(1.2);
    }
    50% {
        background-position: 100% 50%;
        filter: brightness(1.3) saturate(1.5);
    }
}

@keyframes glow-pulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(102, 126, 234, 0.6),
                    0 0 40px rgba(118, 75, 162, 0.4),
                    0 0 60px rgba(102, 126, 234, 0.2);
    }
    50% {
        box-shadow: 0 0 30px rgba(102, 126, 234, 0.8),
                    0 0 60px rgba(118, 75, 162, 0.6),
                    0 0 90px rgba(102, 126, 234, 0.4);
    }
}

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

@keyframes rainbow-glow {
    0% {
        filter: hue-rotate(0deg) brightness(1.2);
    }
    100% {
        filter: hue-rotate(360deg) brightness(1.2);
    }
}

@keyframes float-glow {
    0%, 100% {
        transform: translateY(0px);
        filter: drop-shadow(0 5px 15px rgba(102, 126, 234, 0.5));
    }
    50% {
        transform: translateY(-10px);
        filter: drop-shadow(0 15px 25px rgba(118, 75, 162, 0.7));
    }
}

/* Glowing Color Classes */
.glow-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-size: 200% 200%;
    animation: glow-gradient 3s ease infinite;
}

.glow-pulse {
    animation: glow-pulse 2s ease-in-out infinite;
}

.glow-shimmer {
    position: relative;
    overflow: hidden;
}

.glow-shimmer::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to right,
        transparent 0%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 100%
    );
    animation: glow-shimmer 3s linear infinite;
}

.glow-rainbow {
    background: linear-gradient(135deg,
        #ff0000 0%,
        #ff7f00 16.66%,
        #ffff00 33.33%,
        #00ff00 50%,
        #0000ff 66.66%,
        #8b00ff 83.33%,
        #ff0000 100%
    );
    background-size: 200% 200%;
    animation: rainbow-glow 6s linear infinite, glow-gradient 3s ease infinite;
}

.glow-float {
    animation: float-glow 3s ease-in-out infinite;
}

/* Specific Reward Color Gradients (All Glowing & Animated) */
.reward-sunset {
    background: linear-gradient(135deg, #ff6b6b 0%, #feca57 100%);
    background-size: 200% 200%;
    animation: glow-gradient 3s ease infinite;
    box-shadow: 0 0 30px rgba(255, 107, 107, 0.5);
}

.reward-ocean {
    background: linear-gradient(135deg, #48c6ef 0%, #6f86d6 100%);
    background-size: 200% 200%;
    animation: glow-gradient 3s ease infinite;
    box-shadow: 0 0 30px rgba(72, 198, 239, 0.5);
}

.reward-forest {
    background: linear-gradient(135deg, #56ab2f 0%, #a8e063 100%);
    background-size: 200% 200%;
    animation: glow-gradient 3s ease infinite;
    box-shadow: 0 0 30px rgba(86, 171, 47, 0.5);
}

.reward-royal {
    background: linear-gradient(135deg, #7b2cbf 0%, #c77dff 100%);
    background-size: 200% 200%;
    animation: glow-gradient 3s ease infinite;
    box-shadow: 0 0 30px rgba(123, 44, 191, 0.5);
}

.reward-fire {
    background: linear-gradient(135deg, #ff0844 0%, #ffb199 100%);
    background-size: 200% 200%;
    animation: glow-gradient 3s ease infinite;
    box-shadow: 0 0 40px rgba(255, 8, 68, 0.6);
}

.reward-neon {
    background: linear-gradient(135deg, #00f260 0%, #0575e6 100%);
    background-size: 200% 200%;
    animation: glow-gradient 3s ease infinite;
    box-shadow: 0 0 40px rgba(0, 242, 96, 0.6);
}

.reward-galaxy {
    background: linear-gradient(135deg, #360033 0%, #0b8793 100%);
    background-size: 200% 200%;
    animation: glow-gradient 3s ease infinite;
    box-shadow: 0 0 50px rgba(11, 135, 147, 0.7);
}

.reward-cherry {
    background: linear-gradient(135deg, #eb3349 0%, #f45c43 100%);
    background-size: 200% 200%;
    animation: glow-gradient 3s ease infinite;
    box-shadow: 0 0 30px rgba(235, 51, 73, 0.5);
}

.reward-midnight {
    background: linear-gradient(135deg, #000428 0%, #004e92 100%);
    background-size: 200% 200%;
    animation: glow-gradient 3s ease infinite;
    box-shadow: 0 0 40px rgba(0, 78, 146, 0.6);
}

.reward-gold {
    background: linear-gradient(135deg, #f7971e 0%, #ffd200 100%);
    background-size: 200% 200%;
    animation: glow-gradient 3s ease infinite;
    box-shadow: 0 0 50px rgba(255, 210, 0, 0.7);
}

.reward-aurora {
    background: linear-gradient(135deg, #00c9ff 0%, #92fe9d 100%);
    background-size: 200% 200%;
    animation: glow-gradient 3s ease infinite;
    box-shadow: 0 0 50px rgba(0, 201, 255, 0.7);
}

.reward-cosmic {
    background: linear-gradient(135deg, #654ea3 0%, #eaafc8 100%);
    background-size: 200% 200%;
    animation: glow-gradient 3s ease infinite;
    box-shadow: 0 0 40px rgba(101, 78, 163, 0.6);
}

/* Coin Animation */
@keyframes coin-spin {
    0% {
        transform: rotateY(0deg);
    }
    100% {
        transform: rotateY(360deg);
    }
}

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

.coin-animated {
    animation: coin-spin 2s linear infinite, coin-bounce 1s ease-in-out infinite;
    display: inline-block;
}

.coin-glow {
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.8));
}

/* Reward Notification Styles */
.reward-notification {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    background-size: 200% 200%;
    animation: glow-gradient 3s ease infinite, glow-pulse 2s ease-in-out infinite;
    border: 3px solid rgba(255, 255, 255, 0.5);
}

.reward-big {
    font-size: 48px;
    animation: float-glow 2s ease-in-out infinite;
}

/* Streak Badges */
.streak-badge {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    background-size: 200% 200%;
    animation: glow-gradient 3s ease infinite;
    box-shadow: 0 0 30px rgba(240, 147, 251, 0.6);
    border-radius: 50%;
    padding: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
}

/* Shop Item Glow on Hover */
.shop-item-glow:hover {
    animation: glow-pulse 1.5s ease-in-out infinite;
    transform: translateY(-5px) scale(1.02);
    transition: all 0.3s ease;
}

/* Achievement Unlock Animation */
@keyframes achievement-unlock {
    0% {
        transform: scale(0) rotate(-180deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.2) rotate(10deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

.achievement-unlock {
    animation: achievement-unlock 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Particle Effect for Rewards */
@keyframes particle-float {
    0% {
        transform: translateY(0) translateX(0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) translateX(var(--tx)) scale(0);
        opacity: 0;
    }
}

.reward-particle {
    position: absolute;
    pointer-events: none;
    animation: particle-float 1.5s ease-out forwards;
}

/* Premium Badge Styles */
.premium-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    background-size: 200% 200%;
    animation: rainbow-glow 4s linear infinite, glow-gradient 3s ease infinite;
    box-shadow: 0 0 40px rgba(102, 126, 234, 0.7);
}

/* VIP Glow */
.vip-glow {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 50%, #FF6347 100%);
    background-size: 200% 200%;
    animation: rainbow-glow 3s linear infinite, glow-gradient 2s ease infinite, glow-pulse 2s ease-in-out infinite;
    box-shadow: 0 0 60px rgba(255, 215, 0, 0.9);
}

/* Level Up Effect */
@keyframes level-up {
    0% {
        transform: scale(1);
        filter: brightness(1);
    }
    50% {
        transform: scale(1.5);
        filter: brightness(1.5) saturate(1.5);
    }
    100% {
        transform: scale(1);
        filter: brightness(1);
    }
}

.level-up-effect {
    animation: level-up 1s ease-in-out;
}

/* Rarity Tiers */
.tier-common {
    border: 2px solid #95a5a6;
    box-shadow: 0 0 15px rgba(149, 165, 166, 0.3);
}

.tier-uncommon {
    border: 2px solid #2ecc71;
    box-shadow: 0 0 20px rgba(46, 204, 113, 0.5);
}

.tier-rare {
    border: 2px solid #3498db;
    box-shadow: 0 0 25px rgba(52, 152, 219, 0.6);
    animation: glow-pulse 2s ease-in-out infinite;
}

.tier-legendary {
    border: 3px solid #f39c12;
    box-shadow: 0 0 40px rgba(243, 156, 18, 0.8);
    animation: rainbow-glow 4s linear infinite, glow-pulse 2s ease-in-out infinite;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .reward-notification {
        font-size: 16px;
        padding: 12px 16px;
    }

    .reward-big {
        font-size: 32px;
    }

    .streak-badge {
        padding: 8px;
        font-size: 14px;
    }
}

/* Animated Backgrounds */

/* Stars Background - Twinkling and floating stars */
@keyframes starfield-move {
    0% {
        transform: translateY(0) translateX(0);
    }
    100% {
        transform: translateY(-50px) translateX(20px);
    }
}

@keyframes star-twinkle {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

.bg-stars {
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    background-size: 400% 400%;
    animation: glow-gradient 15s ease infinite;
    position: relative;
    overflow: hidden;
}

.bg-stars::before {
    content: '✨ ⭐ 🌟 ✨ ⭐ 🌟 ✨ ⭐ 🌟 ✨ ⭐ 🌟';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    font-size: 30px;
    letter-spacing: 40px;
    line-height: 60px;
    animation: starfield-move 20s linear infinite, star-twinkle 3s ease-in-out infinite;
    pointer-events: none;
}

/* Grid Background - Cyber grid moving effect */
@keyframes grid-move {
    0% {
        background-position: 0 0, 0 0;
    }
    100% {
        background-position: 50px 50px, 50px 50px;
    }
}

.bg-grid {
    background: linear-gradient(135deg, #0a0a0a, #1a1a2e, #16213e);
    background-image:
        linear-gradient(90deg, rgba(0, 242, 255, 0.1) 1px, transparent 1px),
        linear-gradient(rgba(0, 242, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: grid-move 10s linear infinite;
    box-shadow: inset 0 0 100px rgba(0, 242, 255, 0.2);
}

/* Waves Background - Realistic ocean waves */
@keyframes wave-move {
    0% {
        transform: translateX(0) translateY(0);
    }
    100% {
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes wave-move-slow {
    0% {
        transform: translateX(0) translateY(0);
    }
    100% {
        transform: translateX(-50%) translateY(0);
    }
}

.bg-waves {
    background: linear-gradient(180deg,
        #0a4d68 0%,
        #088395 30%,
        #05bfdb 60%,
        #00d9ff 100%
    );
    position: relative;
    overflow: hidden;
}

/* First wave layer (back) */
.bg-waves::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 200px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120"><path d="M0,60 Q300,90 600,60 T1200,60 L1200,120 L0,120 Z" fill="%23088395" fill-opacity="0.5"/></svg>') repeat-x;
    background-size: 1200px 120px;
    animation: wave-move-slow 20s linear infinite;
    pointer-events: none;
    opacity: 0.6;
}

/* Second wave layer (front) */
.bg-waves::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 150px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120"><path d="M0,40 Q300,10 600,40 T1200,40 L1200,120 L0,120 Z" fill="%2300d9ff" fill-opacity="0.3"/><path d="M0,50 Q300,20 600,50 T1200,50 L1200,55 L0,55 Z" fill="%23ffffff" fill-opacity="0.7"/></svg>') repeat-x;
    background-size: 1200px 120px;
    animation: wave-move 12s linear infinite;
    pointer-events: none;
}

/* Particles Background - Floating particles */
@keyframes particles-float {
    0%, 100% {
        transform: translateY(0) translateX(0) rotate(0deg);
    }
    25% {
        transform: translateY(-20px) translateX(10px) rotate(90deg);
    }
    50% {
        transform: translateY(-10px) translateX(-10px) rotate(180deg);
    }
    75% {
        transform: translateY(-30px) translateX(5px) rotate(270deg);
    }
}

.bg-particles {
    background: linear-gradient(135deg, #434343 0%, #000000 100%);
    background-size: 200% 200%;
    animation: glow-gradient 10s ease infinite;
    position: relative;
    overflow: hidden;
}

.bg-particles::before {
    content: '💫 ✨ ⭐ 🌟 💫 ✨ ⭐ 🌟 💫 ✨ ⭐ 🌟';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    font-size: 25px;
    letter-spacing: 50px;
    line-height: 70px;
    animation: particles-float 20s ease-in-out infinite;
    opacity: 0.6;
    pointer-events: none;
}

/* Matrix Background - Falling binary code effect */
@keyframes matrix-rain {
    0% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(100vh);
    }
}

@keyframes matrix-rain-2 {
    0% {
        transform: translateY(-120%);
    }
    100% {
        transform: translateY(100vh);
    }
}

.bg-matrix {
    background: #000000;
    position: relative;
    overflow: hidden;
}

/* Left side matrix columns */
.bg-matrix::before {
    content: '1 0 1 1 0 1 0 0 1 1 1 0 0 1 0 1 0 1 0 0 1 1 0 1 1 0 1 0 1 1 0 0 1 1 0 1 0 0 1 0 1 1 0 1 0 1 1 0 0 0 1 1 0 1 1 0 0 1 0 1 1 0 0 1 1 0 1 0 1 1 0 0 1 0 1 1 0 1 0 0 0 1 1 0 0 1 0 1 0 1 1 0 1 0 1 1 1 0 0 1 1 0 1 0 1 0 0 1 1 0 1 0 0 1 0 1 0 0 1 1 0 1 0 0 1 1 0 1';
    position: absolute;
    top: -100%;
    left: 5%;
    width: 45%;
    font-size: 14px;
    font-family: 'Courier New', monospace;
    color: #00ff00;
    line-height: 1.5;
    animation: matrix-rain 8s linear infinite;
    pointer-events: none;
    text-shadow: 0 0 8px #00ff00;
    writing-mode: vertical-rl;
    letter-spacing: 3px;
    word-spacing: 30px;
    opacity: 0.85;
    white-space: nowrap;
}

/* Right side matrix columns */
.bg-matrix::after {
    content: '0 1 0 1 1 0 0 1 0 1 1 0 1 0 1 1 1 0 1 1 0 0 1 0 1 0 1 1 0 1 0 0 0 0 1 0 1 1 0 1 0 1 0 0 1 1 0 1 1 1 0 1 0 0 1 1 0 1 0 1 0 0 1 0 0 1 1 0 1 0 0 1 1 0 1 0 1 1 0 1 1 0 0 1 0 1 1 0 0 1 0 1 1 0 0 1 0 1 1 0 0 1 1 0 1 0 1 0 0 1 1 0 1 0 0 1 1 0 1 0 1 1 0 0 1 0 1 1 0 0 1 1 0 1 0 0 1 0 1 1 0 1 1 0';
    position: absolute;
    top: -120%;
    left: 52%;
    width: 45%;
    font-size: 13px;
    font-family: 'Courier New', monospace;
    color: #00dd00;
    line-height: 1.5;
    animation: matrix-rain-2 12s linear infinite;
    pointer-events: none;
    text-shadow: 0 0 6px #00dd00;
    writing-mode: vertical-rl;
    letter-spacing: 3px;
    word-spacing: 30px;
    opacity: 0.7;
    white-space: nowrap;
}

/* Galaxy Background - Rotating galaxy effect */
@keyframes galaxy-rotate {
    0% {
        transform: rotate(0deg) scale(1);
        filter: hue-rotate(0deg);
    }
    50% {
        transform: rotate(180deg) scale(1.1);
        filter: hue-rotate(180deg);
    }
    100% {
        transform: rotate(360deg) scale(1);
        filter: hue-rotate(360deg);
    }
}

@keyframes galaxy-glow {
    0% {
        filter: brightness(1) contrast(1);
        background-position: 0% 50%;
    }
    25% {
        filter: brightness(1.1) contrast(1.05);
        background-position: 50% 75%;
    }
    50% {
        filter: brightness(1.2) contrast(1.1);
        background-position: 100% 50%;
    }
    75% {
        filter: brightness(1.1) contrast(1.05);
        background-position: 50% 25%;
    }
    100% {
        filter: brightness(1) contrast(1);
        background-position: 0% 50%;
    }
}

@keyframes star-twinkle {
    0%, 100% {
        opacity: 0.7;
    }
    50% {
        opacity: 1;
    }
}

.bg-galaxy {
    background: radial-gradient(ellipse at center, #667eea 0%, #764ba2 40%, #360033 70%, #0b8793 100%);
    background-size: 200% 200%;
    position: relative;
    overflow: hidden;
    animation: galaxy-glow 20s ease-in-out infinite;
}

/* Gradient Purple Background (default) - Smooth gradient shift */
.bg-gradient-purple {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-size: 200% 200%;
    animation: glow-gradient 8s ease infinite;
}

/* Portal Background - Glowing spiral vortex */
@keyframes portal-spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg) scale(1.5);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg) scale(1.5);
    }
}

@keyframes portal-pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.8;
    }
}

.bg-portal {
    background: #000000;
    position: relative;
    overflow: hidden;
}

/* Large spiral extending beyond screen */
.bg-portal::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200vmax;
    height: 200vmax;
    background: conic-gradient(
        from 0deg,
        transparent 0%,
        rgba(255, 107, 53, 0.4) 5%,
        rgba(255, 140, 66, 0.6) 7%,
        transparent 10%,
        transparent 12%,
        rgba(0, 206, 209, 0.4) 17%,
        rgba(32, 178, 170, 0.6) 19%,
        transparent 22%,
        transparent 24%,
        rgba(255, 165, 0, 0.4) 29%,
        rgba(255, 140, 66, 0.6) 31%,
        transparent 34%,
        transparent 36%,
        rgba(0, 229, 229, 0.4) 41%,
        rgba(32, 178, 170, 0.6) 43%,
        transparent 46%,
        transparent 48%,
        rgba(255, 107, 53, 0.4) 53%,
        rgba(255, 127, 80, 0.6) 55%,
        transparent 58%,
        transparent 60%,
        rgba(0, 206, 209, 0.4) 65%,
        rgba(0, 229, 229, 0.6) 67%,
        transparent 70%,
        transparent 72%,
        rgba(255, 165, 0, 0.4) 77%,
        rgba(255, 140, 66, 0.6) 79%,
        transparent 82%,
        transparent 84%,
        rgba(32, 178, 170, 0.4) 89%,
        rgba(0, 229, 229, 0.6) 91%,
        transparent 94%,
        transparent 96%,
        rgba(255, 127, 80, 0.3) 99%,
        transparent 100%
    );
    border-radius: 50%;
    animation: portal-spin 15s linear infinite;
    pointer-events: none;
    filter: blur(3px);
}

/* Centered glowing core */
.bg-portal::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150px;
    height: 150px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle,
        #ffffff 0%,
        #FFD700 10%,
        #FF8C42 20%,
        #00E5E5 40%,
        #20B2AA 60%,
        transparent 100%
    );
    border-radius: 50%;
    animation: portal-pulse 3s ease-in-out infinite;
    pointer-events: none;
    box-shadow:
        0 0 60px 20px #FF8C42,
        0 0 120px 40px #00CED1,
        0 0 180px 60px #FFA500,
        0 0 240px 80px #20B2AA;
}

/* Weather Background - Real-time weather based on actual conditions */
@keyframes weather-fall {
    0% {
        transform: translateY(-100%) translateX(0);
    }
    100% {
        transform: translateY(100%) translateX(20px);
    }
}

.bg-weather {
    position: relative;
    overflow: hidden;
    transition: background 2s ease-in-out;
}

/* Clear/Sunny Weather */
.bg-weather.weather-clear {
    background: linear-gradient(to bottom, #87CEEB 0%, #98D8E8 50%, #E0F6FF 100%);
}

.bg-weather.weather-clear::before {
    content: '☀️';
    position: absolute;
    top: 15%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 100px;
    animation: sun-rise 8s ease-in-out infinite;
    pointer-events: none;
}

/* Cloudy Weather */
.bg-weather.weather-clouds {
    background: linear-gradient(to bottom, #87CEEB 0%, #B0C4DE 50%, #D3D3D3 100%);
}

.bg-weather.weather-clouds::before {
    content: '☁️ ☁️ ☁️ ☁️ ☁️ ☁️';
    position: absolute;
    top: -50%;
    left: 0;
    right: 0;
    font-size: 50px;
    letter-spacing: 80px;
    line-height: 100px;
    animation: weather-fall 15s linear infinite;
    pointer-events: none;
}

.bg-weather.weather-clouds::after {
    content: '☁️ ☁️ ☁️';
    position: absolute;
    top: -30%;
    left: 10%;
    right: 0;
    font-size: 60px;
    letter-spacing: 100px;
    line-height: 120px;
    animation: weather-fall 12s linear infinite;
    animation-delay: 2s;
    opacity: 0.8;
    pointer-events: none;
}

/* Rainy Weather */
.bg-weather.weather-rain {
    background: linear-gradient(to bottom, #778899 0%, #B0C4DE 50%, #D3D3D3 100%);
}

.bg-weather.weather-rain::before {
    content: '🌧️ 🌧️ 🌧️ 🌧️ 🌧️ 🌧️ 🌧️ 🌧️';
    position: absolute;
    top: -50%;
    left: 0;
    right: 0;
    font-size: 35px;
    letter-spacing: 60px;
    line-height: 70px;
    animation: weather-fall 5s linear infinite;
    pointer-events: none;
}

.bg-weather.weather-rain::after {
    content: '💧 💧 💧 💧 💧 💧';
    position: absolute;
    top: -30%;
    left: 10%;
    right: 0;
    font-size: 25px;
    letter-spacing: 70px;
    line-height: 60px;
    animation: weather-fall 4s linear infinite;
    animation-delay: 0.5s;
    opacity: 0.7;
    pointer-events: none;
}

/* Snowy Weather */
.bg-weather.weather-snow {
    background: linear-gradient(to bottom, #E6F2FF 0%, #F0F8FF 50%, #FFFFFF 100%);
}

.bg-weather.weather-snow::before {
    content: '❄️ ❄️ ❄️ ❄️ ❄️ ❄️ ❄️ ❄️';
    position: absolute;
    top: -50%;
    left: 0;
    right: 0;
    font-size: 40px;
    letter-spacing: 70px;
    line-height: 80px;
    animation: weather-fall 8s linear infinite;
    pointer-events: none;
}

.bg-weather.weather-snow::after {
    content: '❄️ ❄️ ❄️ ❄️';
    position: absolute;
    top: -30%;
    left: 15%;
    right: 0;
    font-size: 35px;
    letter-spacing: 90px;
    line-height: 75px;
    animation: weather-fall 10s linear infinite;
    animation-delay: 2s;
    opacity: 0.8;
    pointer-events: none;
}

/* Thunderstorm Weather */
.bg-weather.weather-thunderstorm {
    background: linear-gradient(to bottom, #2F4F4F 0%, #696969 50%, #808080 100%);
}

.bg-weather.weather-thunderstorm::before {
    content: '⛈️ ⚡ ⛈️ ⚡ ⛈️';
    position: absolute;
    top: -50%;
    left: 0;
    right: 0;
    font-size: 45px;
    letter-spacing: 80px;
    line-height: 90px;
    animation: weather-fall 6s linear infinite;
    pointer-events: none;
}

.bg-weather.weather-thunderstorm::after {
    content: '🌧️ 🌧️ 🌧️ 🌧️';
    position: absolute;
    top: -30%;
    left: 10%;
    right: 0;
    font-size: 30px;
    letter-spacing: 70px;
    line-height: 65px;
    animation: weather-fall 4s linear infinite;
    animation-delay: 1s;
    opacity: 0.9;
    pointer-events: none;
}

/* Time of Day Background - Real-time based on actual time */
@keyframes sun-rise {
    0%, 100% {
        top: 85%;
        opacity: 0.8;
    }
    50% {
        top: 15%;
        opacity: 1;
    }
}

@keyframes moon-float {
    0%, 100% {
        top: 15%;
        transform: translate(-50%, -50%) rotate(0deg);
    }
    50% {
        top: 20%;
        transform: translate(-50%, -50%) rotate(5deg);
    }
}

.bg-timeofday {
    position: relative;
    overflow: hidden;
    transition: background 2s ease-in-out;
}

/* Night (20:00 - 5:59) */
.bg-timeofday.time-night {
    background: linear-gradient(to bottom, #000033 0%, #000066 50%, #001a33 100%);
}

.bg-timeofday.time-night::before {
    content: '🌙';
    position: absolute;
    top: 15%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 100px;
    animation: moon-float 6s ease-in-out infinite;
    pointer-events: none;
}

.bg-timeofday.time-night::after {
    content: '⭐ ⭐ ⭐ ⭐ ⭐ ⭐ ⭐ ⭐';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    font-size: 30px;
    letter-spacing: 100px;
    line-height: 100px;
    opacity: 0.8;
    animation: star-twinkle 4s ease-in-out infinite;
    pointer-events: none;
}

/* Sunrise (6:00 - 8:59) */
.bg-timeofday.time-sunrise {
    background: linear-gradient(to bottom, #FF6B6B 0%, #FFA500 40%, #FFD700 70%, #87CEEB 100%);
}

.bg-timeofday.time-sunrise::before {
    content: '🌅';
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translate(-50%, 0);
    font-size: 120px;
    animation: sun-rise 3s ease-out;
    pointer-events: none;
}

/* Day (9:00 - 16:59) */
.bg-timeofday.time-day {
    background: linear-gradient(to bottom, #87CEEB 0%, #98D8E8 50%, #B0E0E6 100%);
}

.bg-timeofday.time-day::before {
    content: '☀️';
    position: absolute;
    top: 15%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 120px;
    animation: sun-rise 8s ease-in-out infinite;
    pointer-events: none;
}

/* Sunset (17:00 - 19:59) */
.bg-timeofday.time-sunset {
    background: linear-gradient(to bottom, #FF4500 0%, #FF6347 30%, #FF8C00 60%, #4B0082 100%);
}

.bg-timeofday.time-sunset::before {
    content: '🌇';
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translate(-50%, 0);
    font-size: 120px;
    pointer-events: none;
}

.bg-timeofday.time-sunset::after {
    content: '⭐ ⭐ ⭐';
    position: absolute;
    top: 20%;
    left: 0;
    right: 0;
    font-size: 30px;
    letter-spacing: 120px;
    opacity: 0.4;
    animation: star-twinkle 4s ease-in-out infinite;
    pointer-events: none;
}

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