/* ===== Animations ===== */

/* Score reveal */
@keyframes scoreReveal {
  0% {
    opacity: 0;
    transform: scale(0.5);
    filter: blur(10px);
  }
  60% {
    opacity: 1;
    transform: scale(1.15);
    filter: blur(0);
  }
  100% {
    transform: scale(1);
  }
}

.score-reveal {
  animation: scoreReveal 0.5s ease-out forwards;
}

/* Color slot appear */
@keyframes slotAppear {
  0% {
    opacity: 0;
    transform: scale(0.7);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.slot-appear {
  animation: slotAppear 0.3s ease-out forwards;
}

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

.fade-in {
  animation: fadeIn 0.4s ease-out forwards;
}

/* Fade out */
@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

.fade-out {
  animation: fadeOut 0.3s ease-out forwards;
}

/* Slide up */
@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.slide-up {
  animation: slideUp 0.5s ease-out forwards;
}

/* Countdown pulse */
@keyframes countdownPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.countdown-pulse {
  animation: countdownPulse 1s ease-in-out infinite;
}

/* Neon text glow */
@keyframes neonTextGlow {
  0%, 100% {
    text-shadow: 0 0 5px currentColor, 0 0 10px currentColor;
  }
  50% {
    text-shadow: 0 0 10px currentColor, 0 0 20px currentColor, 0 0 30px currentColor;
  }
}

/* Rating change flash */
@keyframes ratingFlash {
  0% { color: var(--text-primary); }
  25% { color: var(--neon-green); transform: scale(1.3); }
  50% { color: var(--neon-green); transform: scale(1.1); }
  100% { color: var(--text-primary); transform: scale(1); }
}

.rating-flash {
  animation: ratingFlash 0.8s ease-out;
}

/* Staggered children */
.stagger-children > * {
  opacity: 0;
  animation: fadeIn 0.3s ease-out forwards;
}
.stagger-children > *:nth-child(1) { animation-delay: 0.05s; }
.stagger-children > *:nth-child(2) { animation-delay: 0.10s; }
.stagger-children > *:nth-child(3) { animation-delay: 0.15s; }
.stagger-children > *:nth-child(4) { animation-delay: 0.20s; }
.stagger-children > *:nth-child(5) { animation-delay: 0.25s; }
.stagger-children > *:nth-child(6) { animation-delay: 0.30s; }
.stagger-children > *:nth-child(7) { animation-delay: 0.35s; }
.stagger-children > *:nth-child(8) { animation-delay: 0.40s; }

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