/* =========================================================
   STEP RUSH — Foot Stomp, Particles, Shockwave & UI Motion
   ========================================================= */

/* Descending Shoe (0.13s crisp stomp, never blocks pointer) */
.fx-shoe {
  position: fixed;
  width: 82px;
  height: 82px;
  margin-left: -41px;
  margin-top: -41px;
  pointer-events: none;
  z-index: 65;
  transform-origin: center center;
}
.fx-shoe svg { width: 100%; height: 100%; display: block; }

.fx-shoe-left {
  animation: shoeStompLeft 140ms cubic-bezier(0.2, 0.9, 0.3, 1) forwards;
}
.fx-shoe-right {
  animation: shoeStompRight 140ms cubic-bezier(0.2, 0.9, 0.3, 1) forwards;
}

@keyframes shoeStompLeft {
  0%   { transform: translate(-10px, -68px) scale(1.22) rotate(-14deg); opacity: 0.95; }
  55%  { transform: translate(0, 2px) scale(0.95) rotate(-5deg); opacity: 1; }
  100% { transform: translate(0, -10px) scale(0.86) rotate(-4deg); opacity: 0; }
}
@keyframes shoeStompRight {
  0%   { transform: translate(10px, -68px) scaleX(-1) scale(1.22) rotate(-14deg); opacity: 0.95; }
  55%  { transform: translate(0, 2px) scaleX(-1) scale(0.95) rotate(-5deg); opacity: 1; }
  100% { transform: translate(0, -10px) scaleX(-1) scale(0.86) rotate(-4deg); opacity: 0; }
}

/* Shockwave Ring */
.fx-shockwave {
  position: fixed;
  width: 30px;
  height: 30px;
  margin-left: -15px;
  margin-top: -15px;
  border-radius: 50%;
  pointer-events: none;
  border: 4px solid #4ade80;
  animation: shockExpand 320ms ease-out forwards;
}
.fx-shockwave-fever { border-color: #facc15; border-width: 5px; }
.fx-shockwave-wrong { border-color: #ef4444; }

@keyframes shockExpand {
  0%   { transform: scale(0.6); opacity: 0.95; }
  100% { transform: scale(3.4); opacity: 0; }
}

/* Footprint */
.fx-footprint {
  position: fixed;
  font-size: 28px;
  margin-left: -14px;
  margin-top: -14px;
  pointer-events: none;
  animation: fpFade 400ms ease-out forwards;
}
.fx-fp-correct { filter: drop-shadow(0 0 6px #4ade80); }
.fx-fp-fever   { filter: drop-shadow(0 0 10px #facc15); }
.fx-fp-wrong   { filter: drop-shadow(0 0 8px #ef4444); }
.fx-fp-flip    { transform: scaleX(-1); }

@keyframes fpFade {
  0%   { opacity: 0.85; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.25); }
}

/* Dust / Sand / Stone / Moon / Starlight Particles */
.fx-particle {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  animation: particleBurst 360ms ease-out forwards;
}
@keyframes particleBurst {
  0%   { transform: translate(0, 0) scale(1); opacity: 1; }
  100% { transform: translate(var(--dx), var(--dy)) scale(0.15); opacity: 0; }
}

/* Floating +1 / +2 / X text */
.fx-float {
  position: fixed;
  transform: translate(-50%, 0);
  font-size: 26px;
  font-weight: 900;
  pointer-events: none;
  text-shadow: 0 3px 8px rgba(0, 0, 0, 0.65);
  animation: floatUp 580ms ease-out forwards;
}
.fx-float-correct { color: #4ade80; }
.fx-float-fever   { color: #fef08a; font-size: 32px; }
.fx-float-wrong   { color: #f87171; }

@keyframes floatUp {
  0%   { transform: translate(-50%, 0) scale(0.85); opacity: 1; }
  30%  { transform: translate(-50%, -18px) scale(1.15); opacity: 1; }
  100% { transform: translate(-50%, -48px) scale(0.95); opacity: 0; }
}

/* Tile wrong shake */
.tile-wrong-shake {
  animation: tileShake 220ms ease-in-out;
}
@keyframes tileShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-7px); }
  50% { transform: translateX(7px); }
  75% { transform: translateX(-4px); }
}

/* Countdown pop */
.countdown-num.pop {
  animation: cdPop 460ms cubic-bezier(0.2, 1.4, 0.4, 1);
}
@keyframes cdPop {
  0%   { transform: scale(0.35); opacity: 0; }
  65%  { transform: scale(1.12); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes comboPop {
  0%   { transform: scale(0.65); }
  60%  { transform: scale(1.14); }
  100% { transform: scale(1); }
}

@keyframes shimmerPulse {
  0%   { transform: scale(1); }
  100% { transform: scale(1.04); }
}

@keyframes feverBorderPulse {
  0%   { box-shadow: inset 0 0 28px rgba(250, 204, 21, 0.55); }
  100% { box-shadow: inset 0 0 54px rgba(250, 204, 21, 0.92); }
}

@keyframes timerPulse {
  0%   { transform: scale(1); }
  100% { transform: scale(1.04); }
}

@keyframes vehicleFloat {
  0%   { transform: translateY(4px) rotate(-4deg); }
  100% { transform: translateY(-10px) rotate(4deg); }
}
