/* ==========================================================================
   MOTION GRAPHICS & INTERACTION SYSTEM — 99EXCH.CITY
   Built adhering to LottieFiles & UI-Skills Motion Design Standards
   Physics-based easings, max 200ms touch response, hardware acceleration
   ========================================================================== */

/* Neon Emerald Glow Pulse */
@keyframes neonPulseGlow {
  0%, 100% {
    box-shadow: 0 0 15px rgba(0, 229, 153, 0.3), inset 0 0 10px rgba(0, 229, 153, 0.1);
  }
  50% {
    box-shadow: 0 0 28px rgba(0, 229, 153, 0.6), inset 0 0 18px rgba(0, 229, 153, 0.25);
  }
}

.anim-neon-pulse {
  animation: neonPulseGlow 3s ease-in-out infinite;
}

/* Gold Shimmer Sweep */
@keyframes goldShimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.anim-gold-shimmer {
  background: linear-gradient(90deg, #FFC800 0%, #FFF2A3 50%, #FFC800 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: goldShimmer 4s linear infinite;
}

/* Radar Sweep on Live Badge */
@keyframes radarSweep {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.4); opacity: 0; }
  100% { transform: scale(0.95); opacity: 0; }
}

.radar-ping {
  position: relative;
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: var(--emerald-neon);
  border-radius: 50%;
}

.radar-ping::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: var(--emerald-neon);
  animation: radarSweep 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

/* Floating Coin Hover Wobble */
.wobble-hover {
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.wobble-hover:hover {
  transform: translateY(-4px) rotate(4deg) scale(1.06);
}

/* Spinning Wheel Animation */
@keyframes wheelSpinAnim {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.anim-spin-wheel {
  animation: wheelSpinAnim 20s linear infinite;
}

/* Rocket Thruster Flame */
@keyframes thrusterFlame {
  0%, 100% { transform: scaleY(1); opacity: 0.9; }
  50% { transform: scaleY(1.35) scaleX(0.9); opacity: 1; filter: drop-shadow(0 0 10px #FFC800); }
}

.anim-thruster {
  animation: thrusterFlame 0.15s ease-in-out infinite alternate;
  transform-origin: top center;
}

/* Micro-interaction Button Click Feedback */
button:active, .btn-header-signup:active, .btn-banner-play:active {
  transform: scale(0.96) !important;
  transition: transform 0.05s ease;
}

/* Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
