/* =========================================================
   Kron Arcade - Signature Slam Overlay & Impact Stage CSS
   High-impact arcade entrance animations with dynamic theme colors
   ========================================================= */

#slamOverlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at center, var(--slam-bg-glow, #2a0808) 0%, #07090e 100%);
  z-index: 1000000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  user-select: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

#slamOverlay.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.slam-speed-lines {
  position: absolute;
  inset: -60%;
  background: repeating-conic-gradient(
    from 0deg,
    var(--slam-line-color, rgba(255, 60, 0, 0.2)) 0deg 4deg,
    transparent 4deg 15deg
  );
  animation: slamRotateLines 6s linear infinite;
  pointer-events: none;
}

.slam-shake-wrapper {
  animation: slamScreenShake 0.45s cubic-bezier(.36, .07, .19, .97) 0.5s both;
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.slam-impact-badge {
  font-family: -apple-system, BlinkMacSystemFont, "Russo One", "Impact", "SF Pro Display", sans-serif;
  font-size: clamp(14px, 2.5vw, 20px);
  font-weight: 900;
  color: #FFFFFF;
  background: var(--slam-theme-color, #E60000);
  display: inline-block;
  padding: 8px 28px;
  letter-spacing: 5px;
  clip-path: polygon(8% 0, 100% 0, 92% 100%, 0 100%);
  opacity: 0;
  transform: scale(3.5);
  box-shadow: 0 0 30px var(--slam-glow-color, rgba(230, 0, 0, 0.8));
  animation: slamDropBadge 0.35s cubic-bezier(0.18, 0.89, 0.32, 1.28) 0.15s forwards;
}

.slam-impact-title {
  font-family: -apple-system, BlinkMacSystemFont, "Russo One", "SF Pro Display", "Impact", sans-serif;
  font-size: clamp(34px, 7vw, 76px);
  font-weight: 900;
  text-transform: uppercase;
  color: #FFFFFF;
  letter-spacing: 2px;
  opacity: 0;
  transform: scale(5);
  filter: blur(12px);
  text-shadow: 0 12px 35px var(--slam-glow-color, rgba(255, 34, 0, 0.8)), 0 0 16px rgba(255, 255, 255, 0.9);
  animation: slamMegaTitle 0.45s cubic-bezier(0.12, 0.95, 0.2, 1) 0.5s forwards;
  margin-top: 14px;
}

.slam-impact-sub {
  font-size: clamp(14px, 2vw, 18px);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 1.5px;
  margin-top: 10px;
  opacity: 0;
  transform: translateY(15px);
  animation: slamFadeUp 0.3s ease-out 0.8s forwards;
}

.slam-glow-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, #FFFFFF, var(--slam-theme-color, #FF3300) 60%, transparent 80%);
  opacity: 0;
  pointer-events: none;
  animation: slamShockwave 0.8s ease-out 0.5s forwards;
}

#slamSparkCanvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
}

.slam-skip-btn {
  position: absolute;
  bottom: 32px;
  right: 32px;
  z-index: 10;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #FFFFFF;
  font-size: 0.88rem;
  font-weight: 800;
  padding: 10px 22px;
  border-radius: 999px;
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.slam-skip-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
}

.slam-skip-btn:active {
  transform: scale(0.97);
}

/* Animations */
@keyframes slamRotateLines {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes slamDropBadge {
  0% { opacity: 0; transform: scale(3.5); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes slamMegaTitle {
  0% { opacity: 0; transform: scale(5); filter: blur(12px); }
  65% { transform: scale(0.94); opacity: 1; filter: blur(0); }
  100% { transform: scale(1); opacity: 1; filter: blur(0); }
}

@keyframes slamFadeUp {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slamShockwave {
  0% { width: 10px; height: 10px; opacity: 1; }
  100% { width: 1400px; height: 1400px; opacity: 0; }
}

@keyframes slamScreenShake {
  0% { transform: translate(0, 0) rotate(0deg); }
  15% { transform: translate(-16px, 12px) rotate(-1.5deg); }
  30% { transform: translate(14px, -14px) rotate(1.2deg); }
  45% { transform: translate(-10px, 8px) rotate(-0.8deg); }
  60% { transform: translate(8px, -6px) rotate(0.5deg); }
  75% { transform: translate(-4px, 4px) rotate(-0.2deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}
