/* Optimized Animations - Only Used Animations */

/* Core Keyframes */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

@keyframes neonGlow {
  0%, 100% {
    text-shadow: 
      0 0 5px var(--neon-cyan),
      0 0 10px var(--neon-cyan),
      0 0 15px var(--neon-cyan);
  }
  50% {
    text-shadow: 
      0 0 10px var(--neon-cyan),
      0 0 20px var(--neon-cyan),
      0 0 30px var(--neon-cyan);
  }
}

@keyframes goldGlow {
  0%, 100% {
    box-shadow: 
      0 0 10px var(--gold),
      0 0 20px var(--gold);
  }
  50% {
    box-shadow: 
      0 0 20px var(--gold),
      0 0 40px var(--gold);
  }
}

@keyframes countUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes buttonPulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes zoomIn {
  from {
    transform: scale(0);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Utility Animation Classes */
.animate-pulse {
  animation: pulse 2s infinite;
}

.animate-neonGlow {
  animation: neonGlow 2s ease-in-out infinite;
}

.animate-goldGlow {
  animation: goldGlow 2s ease-in-out infinite;
}

.animate-countUp {
  animation: countUp 0.5s ease-out;
}

.animate-buttonPulse {
  animation: buttonPulse 2s ease-in-out infinite;
}

.animate-zoomIn {
  animation: zoomIn 0.3s ease-out;
}

/* Essential Game Animations for Sound System */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes bounce {
  0%, 20%, 53%, 80%, 100% {
    transform: translateY(0);
  }
  40%, 43% {
    transform: translateY(-30px);
  }
  70% {
    transform: translateY(-15px);
  }
  90% {
    transform: translateY(-4px);
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Sound System Ready Animations */
.animate-fadeIn {
  animation: fadeIn 0.3s ease-in-out;
}

.animate-slideInRight {
  animation: slideInRight 0.3s ease-out;
}

.animate-bounce {
  animation: bounce 2s infinite;
}

.animate-spin {
  animation: spin 1s linear infinite;
}