/* ============================================================
   THE MIKE FINCH SHOW - INTRO PUNCH ANIMATION
   Shared across index, privacy, terms, and any future pages.
   ============================================================ */

.intro-flash {
  position: fixed;
  inset: 0;
  background: #050304;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  overflow: hidden;
  animation: introFade 2.2s ease-out forwards;
}

.intro-flash::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(214, 56, 56, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at center, transparent 30%, rgba(0, 0, 0, 0.7) 100%);
}

.intro-stage {
  position: relative;
  width: 320px;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.intro-glove {
  position: absolute;
  width: 200px;
  height: 200px;
  transform-origin: center;
  animation: gloveFly 0.55s cubic-bezier(0.5, 0, 0.75, 0) forwards,
             gloveRecoil 0.4s 0.55s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.6));
  z-index: 4;
}
.intro-glove svg {
  width: 100%;
  height: 100%;
}

@keyframes gloveFly {
  0% {
    transform: translateX(120vw) translateY(-20px) rotate(-30deg) scale(1.4);
    opacity: 0;
  }
  20% { opacity: 1; }
  85% {
    transform: translateX(20px) translateY(0) rotate(-12deg) scale(1.3);
  }
  100% {
    transform: translateX(0) translateY(0) rotate(-8deg) scale(1.5);
    opacity: 1;
  }
}

@keyframes gloveRecoil {
  0% { transform: translateX(0) translateY(0) rotate(-8deg) scale(1.5); }
  50% {
    transform: translateX(80px) translateY(-10px) rotate(0deg) scale(1.2);
    opacity: 1;
  }
  100% {
    transform: translateX(160vw) translateY(-40px) rotate(15deg) scale(0.8);
    opacity: 0;
  }
}

.speed-lines {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  gap: 14px;
  pointer-events: none;
  opacity: 0;
  animation: speedLinesIn 0.5s ease-out forwards;
  z-index: 3;
}
.speed-lines span {
  height: 3px;
  background: linear-gradient(90deg, transparent, #ffe066);
  border-radius: 2px;
  transform-origin: right center;
}
.speed-lines span:nth-child(1) { width: 180px; animation: speedLine 0.5s 0s ease-out forwards; }
.speed-lines span:nth-child(2) { width: 220px; animation: speedLine 0.5s 0.05s ease-out forwards; }
.speed-lines span:nth-child(3) { width: 260px; animation: speedLine 0.5s 0.1s ease-out forwards; }
.speed-lines span:nth-child(4) { width: 200px; animation: speedLine 0.5s 0.15s ease-out forwards; }
.speed-lines span:nth-child(5) { width: 160px; animation: speedLine 0.5s 0.2s ease-out forwards; }

@keyframes speedLinesIn {
  0% { opacity: 0; }
  50% { opacity: 1; }
  100% { opacity: 0; }
}
@keyframes speedLine {
  0% { transform: translateX(40vw) scaleX(0.3); opacity: 0; }
  40% { opacity: 1; }
  100% { transform: translateX(-30vw) scaleX(1); opacity: 0; }
}

.impact-flash {
  position: absolute;
  inset: -200%;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.95) 0%, rgba(244, 203, 69, 0.4) 20%, transparent 50%);
  opacity: 0;
  z-index: 5;
  animation: impactFlash 0.3s 0.5s ease-out forwards;
  mix-blend-mode: screen;
}
@keyframes impactFlash {
  0% { opacity: 0; transform: scale(0.3); }
  20% { opacity: 1; transform: scale(0.8); }
  100% { opacity: 0; transform: scale(1.3); }
}

.impact-ring {
  position: absolute;
  border-radius: 50%;
  border: 3px solid #d63838;
  width: 80px;
  height: 80px;
  opacity: 0;
  z-index: 2;
}
.impact-ring-1 { animation: ringPulseIntro 0.9s 0.55s ease-out forwards; }
.impact-ring-2 {
  border-color: #f4cb45;
  border-width: 2px;
  animation: ringPulseIntro 0.9s 0.65s ease-out forwards;
}
.impact-ring-3 {
  border-color: rgba(245, 237, 224, 0.4);
  border-width: 1px;
  animation: ringPulseIntro 1.1s 0.75s ease-out forwards;
}
@keyframes ringPulseIntro {
  0% { width: 80px; height: 80px; opacity: 1; border-width: 4px; }
  100% { width: 700px; height: 700px; opacity: 0; border-width: 1px; }
}

.impact-burst {
  position: absolute;
  width: 200px;
  height: 200px;
  opacity: 0;
  z-index: 3;
  animation: burstPop 0.6s 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  filter: drop-shadow(0 0 30px rgba(244, 203, 69, 0.8));
}
.impact-burst svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 4px 0 #c9941f);
}
@keyframes burstPop {
  0% { opacity: 0; transform: scale(0.2) rotate(-30deg); }
  50% { opacity: 1; transform: scale(1.15) rotate(8deg); }
  80% { opacity: 1; transform: scale(0.95) rotate(-3deg); }
  100% { opacity: 0; transform: scale(1.2) rotate(0deg); }
}

.intro-logo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.6);
  animation: logoReveal 0.8s 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  filter: drop-shadow(0 0 60px rgba(214, 56, 56, 0.6));
  position: relative;
  z-index: 6;
}
@keyframes logoReveal {
  0% {
    opacity: 0;
    transform: scale(0.6);
    filter: brightness(2.5) drop-shadow(0 0 100px rgba(244, 203, 69, 1));
  }
  50% {
    opacity: 1;
    transform: scale(1.08);
    filter: brightness(1.4) drop-shadow(0 0 60px rgba(214, 56, 56, 0.7));
  }
  100% {
    opacity: 1;
    transform: scale(1);
    filter: brightness(1) drop-shadow(0 0 40px rgba(214, 56, 56, 0.4));
  }
}

@keyframes introFade {
  0%, 75% { opacity: 1; }
  100% { opacity: 0; visibility: hidden; }
}

@keyframes pageShake {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-4px, 2px); }
  40% { transform: translate(3px, -3px); }
  60% { transform: translate(-3px, 1px); }
  80% { transform: translate(2px, -1px); }
}
body.shake {
  animation: pageShake 0.4s ease-out;
}

@media (prefers-reduced-motion: reduce) {
  .intro-glove, .speed-lines, .impact-ring, .impact-burst, .impact-flash {
    display: none !important;
  }
  .intro-logo {
    animation: logoReveal 0.6s ease-out forwards !important;
  }
}
