/* ================================
   MOTOR DE ANIMAÇÕES STREET ZINE
   ================================ */

@keyframes screenEnter {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes cardDeal {
  0% {
    opacity: 0;
    transform: translateY(60px) rotate(-5deg) scale(0.92);
    filter: blur(4px);
  }
  65% {
    opacity: 1;
    transform: translateY(-6px) rotate(1.2deg) scale(1.015);
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: translateY(0) rotate(-0.8deg) scale(1);
    filter: blur(0);
  }
}

@keyframes stampSlam {
  0% {
    opacity: 0;
    transform: scale(2.8) rotate(-18deg);
    filter: blur(3px);
  }
  60% {
    opacity: 1;
    transform: scale(0.92) rotate(-5deg);
    filter: blur(0);
  }
  80% {
    transform: scale(1.06) rotate(-7deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(-6deg);
  }
}

@keyframes stampSlamRight {
  0% {
    opacity: 0;
    transform: scale(2.8) rotate(18deg);
    filter: blur(3px);
  }
  60% {
    opacity: 1;
    transform: scale(0.92) rotate(5deg);
    filter: blur(0);
  }
  80% {
    transform: scale(1.06) rotate(7deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(6deg);
  }
}

@keyframes stickerPop {
  0% {
    opacity: 0;
    transform: scale(0.55) rotate(-8deg);
  }
  70% {
    opacity: 1;
    transform: scale(1.08) rotate(2deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(var(--rot, 0deg));
  }
}

@keyframes screenShake {
  0%, 100% { transform: translate3d(0, 0, 0); }
  15% { transform: translate3d(-6px, -3px, 0) rotate(-0.6deg); }
  30% { transform: translate3d(6px, 4px, 0) rotate(0.6deg); }
  45% { transform: translate3d(-5px, 2px, 0) rotate(-0.4deg); }
  60% { transform: translate3d(5px, -2px, 0) rotate(0.4deg); }
  75% { transform: translate3d(-2px, 1px, 0); }
}

@keyframes screenShakeHard {
  0%, 100% { transform: translate3d(0, 0, 0); }
  10% { transform: translate3d(-11px, -6px, 0) rotate(-1.4deg); }
  20% { transform: translate3d(11px, 7px, 0) rotate(1.4deg); }
  30% { transform: translate3d(-9px, 5px, 0) rotate(-1deg); }
  40% { transform: translate3d(9px, -5px, 0) rotate(1deg); }
  55% { transform: translate3d(-6px, 3px, 0) rotate(-0.5deg); }
  70% { transform: translate3d(5px, -3px, 0) rotate(0.5deg); }
  85% { transform: translate3d(-3px, 1px, 0); }
}

@keyframes floatReaction {
  0% {
    opacity: 0;
    transform: translate3d(0, 20px, 0) scale(0.5) rotate(0deg);
  }
  15% {
    opacity: 1;
    transform: translate3d(var(--drift-a, 14px), -40px, 0) scale(1.18) rotate(var(--rot-a, -8deg));
  }
  60% {
    opacity: 1;
    transform: translate3d(var(--drift-b, -18px), -220px, 0) scale(1) rotate(var(--rot-b, 10deg));
  }
  100% {
    opacity: 0;
    transform: translate3d(var(--drift-c, 10px), -390px, 0) scale(0.85) rotate(var(--rot-c, -6deg));
  }
}

@keyframes heatPulse {
  0%, 100% {
    filter: brightness(1);
    transform: scale(1);
  }
  50% {
    filter: brightness(1.18);
    transform: scale(1.02);
  }
}

@keyframes podiumRise {
  0% {
    opacity: 0;
    transform: translateY(42px) scale(0.92);
  }
  70% {
    opacity: 1;
    transform: translateY(-4px) scale(1.02);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes tickerPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.65; transform: scale(0.94); }
}

/* Classes utilitárias de animação */
.anim-screen {
  animation: screenEnter 0.36s var(--ease-out-expo) both;
}

.anim-card-deal {
  animation: cardDeal 0.52s var(--ease-spring) both;
}

.anim-stamp {
  animation: stampSlam 0.42s var(--ease-slam) both;
}

.anim-stamp-right {
  animation: stampSlamRight 0.42s var(--ease-slam) both;
}

.anim-sticker {
  animation: stickerPop 0.44s var(--ease-spring) both;
}

.anim-podium {
  animation: podiumRise 0.55s var(--ease-spring) both;
}

.is-shaking {
  animation: screenShake 0.42s ease-out both;
}

.is-shaking-hard {
  animation: screenShakeHard 0.54s ease-out both;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
