/* ==========================================================================
   Animations — Scroll reveals and transitions
   ========================================================================== */

/* Reveal on scroll */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
.reveal:nth-child(2)  { transition-delay: 0.1s; }
.reveal:nth-child(3)  { transition-delay: 0.15s; }
.reveal:nth-child(4)  { transition-delay: 0.2s; }
.reveal:nth-child(5)  { transition-delay: 0.25s; }
.reveal:nth-child(6)  { transition-delay: 0.3s; }
.reveal:nth-child(7)  { transition-delay: 0.35s; }
.reveal:nth-child(8)  { transition-delay: 0.4s; }
.reveal:nth-child(9)  { transition-delay: 0.45s; }
.reveal:nth-child(10) { transition-delay: 0.5s; }

/* Fade in up */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* Scale in */
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.scale-in {
    animation: scaleIn 0.4s ease forwards;
}

/* Slide in from left */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Pulse glow (for live game indicator) */
@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(0, 132, 61, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(0, 132, 61, 0);
    }
}

.pulse-glow {
    animation: pulseGlow 2s infinite;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .reveal.revealed {
        transition: none;
    }

    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
