/* ============================================
   ANIMATION SYSTEM
   ============================================ */

/* Fade In Up */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Fade In Right */
.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Stagger delays */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }
.stagger-6 { transition-delay: 0.6s; }

/* Glow pulse for game container */
@keyframes ambientGlow {
    0%, 100% {
        box-shadow: 0 20px 80px rgba(139, 92, 246, 0.12),
                    0 0 0 1px rgba(139, 92, 246, 0.05);
    }
    50% {
        box-shadow: 0 20px 80px rgba(139, 92, 246, 0.2),
                    0 0 0 1px rgba(139, 92, 246, 0.1);
    }
}

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

.game-container:hover {
    animation: none;
}

/* Torch flicker effect */
@keyframes torchFlicker {
    0%, 100% { opacity: 0.7; }
    20% { opacity: 0.9; }
    40% { opacity: 0.6; }
    60% { opacity: 0.85; }
    80% { opacity: 0.65; }
}

/* Floating animation */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hero-image-wrapper {
    animation: float 6s ease-in-out infinite;
}

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

    .fade-in-up,
    .fade-in-right {
        opacity: 1;
        transform: none;
    }

    .hero-image-wrapper {
        animation: none;
    }

    .game-container {
        animation: none;
    }

    .particle {
        display: none;
    }

    html {
        scroll-behavior: auto;
    }
}