/* Animations & Interactive Elements */

/* Fade-in Setup */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered Delay */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* Pulse Glow for Hero/Game */
@keyframes pulseGlow {
    0% { box-shadow: 0 0 20px rgba(234, 179, 8, 0.15); }
    50% { box-shadow: 0 0 40px rgba(245, 158, 11, 0.3); }
    100% { box-shadow: 0 0 20px rgba(234, 179, 8, 0.15); }
}

.game-container.visible {
    animation: pulseGlow 4s infinite ease-in-out;
}

/* Floating Dust Particles */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    background: radial-gradient(circle, rgba(252, 211, 77, 0.8) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0;
    animation: float 8s infinite linear;
}

.particle:nth-child(1) { width: 4px; height: 4px; left: 10%; top: 80%; animation-duration: 12s; }
.particle:nth-child(2) { width: 6px; height: 6px; left: 30%; top: 90%; animation-duration: 9s; animation-delay: 2s; }
.particle:nth-child(3) { width: 3px; height: 3px; left: 60%; top: 70%; animation-duration: 15s; animation-delay: 1s; }
.particle:nth-child(4) { width: 5px; height: 5px; left: 80%; top: 85%; animation-duration: 10s; animation-delay: 3s; }
.particle:nth-child(5) { width: 7px; height: 7px; left: 50%; top: 95%; animation-duration: 14s; animation-delay: 4s; }

@keyframes float {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    20% {
        opacity: 0.6;
    }
    80% {
        opacity: 0.4;
    }
    100% {
        transform: translateY(-100vh) translateX(20px);
        opacity: 0;
    }
}