/* Infinity Click - Animations */
/* Keyframe animations */

/* Warp drive animations */
@keyframes warpPulse {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.1); opacity: 0.9; }
}

@keyframes stageAppear {
  0% { transform: translate(-50%, -50%) scale(0); opacity: 0; }
  50% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 0.9; }
}

@keyframes flashFade {
  0% { opacity: 0.9; }
  100% { opacity: 0; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

@keyframes buttonPulse {
  0%, 100% {
    boxShadow: 0 0 20px #ff00ff, 0 0 40px #ff00ff, 0 5px 0 #990099;
    textShadow: 0 0 5px #000, 0 0 10px #ff00ff, 0 0 20px #ff00ff;
    transform: scale(1);
  }
  50% {
    boxShadow: 0 0 40px #ff00ff, 0 0 80px #ff00ff, 0 0 120px #ff00ff, 0 5px 0 #990099;
    textShadow: 0 0 5px #000, 0 0 30px #ff00ff, 0 0 60px #ff00ff, 0 0 90px #ff00ff;
    transform: scale(1.05);
  }
}

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

@keyframes powerUpFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(180deg); }
}

@keyframes blastExpand {
  0% {
    transform: scale(0.2);
    opacity: 1;
  }
  100% {
    transform: scale(2);
    opacity: 0;
  }
}

@keyframes comboPopIn {
  0% {
    transform: translate(-50%, -50%) scale(0.5);
    opacity: 0;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.8;
  }
}

@keyframes vignettePulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 0.9; }
}

@keyframes scanline {
  0% { transform: translateY(0); }
  100% { transform: translateY(10px); }
}

@keyframes legendaryFlash {
  0% {
    opacity: 0;
    transform: scale(0.5);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
  }
  100% {
    opacity: 0;
    transform: scale(1.5);
  }
}

@keyframes glitch {
  0% {
    transform: translate(0px, 0px);
  }
  25% {
    transform: translate(-3px, -2px);
  }
  50% {
    transform: translate(3px, 2px);
  }
  75% {
    transform: translate(-2px, 3px);
  }
  100% {
    transform: translate(0px, 0px);
  }
}

@keyframes penaltyFlash {
  0% {
    border-color: #ff0000;
    box-shadow: inset 0 0 30px rgba(255, 0, 0, 0.8);
  }
  50% {
    border-color: #ff3333;
    box-shadow: inset 0 0 50px rgba(255, 0, 0, 0.6);
  }
  100% {
    border-color: rgba(255, 0, 0, 0);
    box-shadow: inset 0 0 0px rgba(255, 0, 0, 0);
  }
}

@keyframes vulnerableFlash {
  0% {
    filter: brightness(2.2) saturate(2.5) hue-rotate(-10deg);
  }
  50% {
    filter: brightness(1.8) saturate(2) hue-rotate(-5deg);
  }
  100% {
    filter: brightness(2.2) saturate(2.5) hue-rotate(-10deg);
  }
}

@keyframes vulnerablePulse {
  0% {
    box-shadow:
      0 0 20px #ffff00,
      0 0 40px #ffff00,
      0 0 60px #ffff00,
      0 0 80px #ffff00,
      inset 0 0 20px rgba(255, 255, 0, 0.8);
    filter: brightness(3) saturate(3);
  }
  50% {
    box-shadow:
      0 0 30px #ffff00,
      0 0 60px #ffff00,
      0 0 90px #ffff00,
      0 0 120px #ffff00,
      inset 0 0 30px rgba(255, 255, 0, 1);
    filter: brightness(3.5) saturate(3.5);
  }
  100% {
    box-shadow:
      0 0 20px #ffff00,
      0 0 40px #ffff00,
      0 0 60px #ffff00,
      0 0 80px #ffff00,
      inset 0 0 20px rgba(255, 255, 0, 0.8);
    filter: brightness(3) saturate(3);
  }
}

@keyframes clickNowPulse {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    text-shadow: 0 0 30px #ffff00, 0 0 10px #ffffff;
  }
  50% {
    opacity: 0.8;
    transform: translate(-50%, -50%) scale(1.2);
    text-shadow: 0 0 50px #ffff00, 0 0 20px #ffffff;
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    text-shadow: 0 0 30px #ffff00, 0 0 10px #ffffff;
  }
}

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

/* 8-bit Audio Visualizer Animations */
@keyframes audioBar0 {
  0%, 100% { height: 8px; }
  25% { height: 20px; }
  50% { height: 12px; }
  75% { height: 18px; }
}

@keyframes audioBar1 {
  0%, 100% { height: 15px; }
  25% { height: 10px; }
  50% { height: 22px; }
  75% { height: 12px; }
}

@keyframes audioBar2 {
  0%, 100% { height: 12px; }
  25% { height: 18px; }
  50% { height: 8px; }
  75% { height: 20px; }
}

/* LED Border Animation - Marching Ants / Snake Pattern */
@keyframes ledBorder {
  0% {
    background-position: 0 0, 100% 0, 100% 100%, 0 100%;
  }
  100% {
    background-position: 8px 0, 100% 8px, calc(100% - 8px) 100%, 0 calc(100% - 8px);
  }
}

/* Enhanced Duplicator Real Square Glow Pulse */
@keyframes duplicatorRealGlow {
  0%, 100% {
    box-shadow:
      0 0 15px currentColor,
      0 0 30px currentColor,
      0 0 45px currentColor,
      inset 0 0 15px rgba(255, 255, 255, 0.4);
    filter: brightness(1.4);
  }
  50% {
    box-shadow:
      0 0 25px currentColor,
      0 0 50px currentColor,
      0 0 75px currentColor,
      0 0 100px currentColor,
      inset 0 0 25px rgba(255, 255, 255, 0.6);
    filter: brightness(1.8);
  }
}
