/**
 * Sprint 2 — CHARACTER IDENTITY: bonus intro first-beats + hidden event films
 */

/* ===== Bonus intro identity layers ===== */

.bonus-intro-identity {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
}

.bonus-intro-giant-silhouette {
  position: absolute;
  bottom: 8%;
  left: 50%;
  width: min(72vw, 420px);
  height: min(48vh, 280px);
  transform: translateX(-50%);
  background: radial-gradient(ellipse 55% 80% at 50% 100%, rgba(255, 0, 128, 0.45), transparent 70%);
  clip-path: polygon(18% 100%, 28% 42%, 38% 58%, 50% 28%, 62% 55%, 72% 38%, 82% 100%);
  opacity: 0;
}

.bonus-intro-bass-ring {
  position: absolute;
  top: 38%;
  left: 50%;
  width: 120px;
  height: 120px;
  margin: -60px 0 0 -60px;
  border-radius: 50%;
  border: 3px solid rgba(255, 0, 128, 0.65);
  box-shadow: 0 0 40px rgba(255, 0, 128, 0.35);
}

.bonus-intro-neon-flash {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 40%, rgba(255, 0, 180, 0.35), transparent 55%);
  opacity: 0;
}

.bonus-intro-hearts {
  position: absolute;
  inset: 0;
}

.bonus-intro-heart {
  position: absolute;
  bottom: 20%;
  font-size: 1.4rem;
  color: #f472b6;
  text-shadow: 0 0 12px rgba(244, 114, 182, 0.65);
}

.bonus-intro-thunder-flash {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.35) 50%, transparent 60%);
  opacity: 0;
}

.bonus-intro-stage-slam {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 35%;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.75), transparent);
  transform: scaleY(0);
  transform-origin: 50% 100%;
}

.bonus-intro-ruler-tease {
  position: absolute;
  top: 14%;
  right: 8%;
  padding: 0.35rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  color: #74b9ff;
  border: 1px solid rgba(116, 185, 255, 0.55);
  background: rgba(8, 16, 32, 0.85);
  border-radius: 6px;
  opacity: 0;
}

.bonus-intro-terminal-boot {
  position: absolute;
  top: 12%;
  left: 8%;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-family: monospace;
  font-size: 0.68rem;
  color: #2ecc71;
  opacity: 0;
  text-shadow: 0 0 8px rgba(46, 204, 113, 0.45);
}

.bonus-intro-package-scan {
  position: absolute;
  top: 28%;
  left: 6%;
  right: 6%;
  height: 3px;
  background: linear-gradient(90deg, transparent, #2ecc71, transparent);
  transform: scaleX(0);
  opacity: 0.8;
}

.bonus-intro-puppet-row {
  position: absolute;
  bottom: 22%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 1rem;
}

.bonus-intro-puppet-row span {
  width: 36px;
  height: 52px;
  border-radius: 8px 8px 4px 4px;
  background: linear-gradient(180deg, rgba(162, 155, 254, 0.55), rgba(74, 25, 66, 0.75));
  box-shadow: 0 0 16px rgba(162, 155, 254, 0.35);
  opacity: 0;
}

.bonus-intro-glitch-hit {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    rgba(46, 204, 113, 0.08) 0 2px,
    transparent 2px 4px
  );
  opacity: 0;
  mix-blend-mode: screen;
}

.bonus-intro-overlay--hansolo .bonus-intro-smoke {
  animation-duration: 3.5s;
}

.bonus-intro-overlay--kissik .bonus-intro-panel {
  border-color: rgba(244, 114, 182, 0.45);
}

.bonus-intro-overlay--viking .bonus-intro-backdrop {
  background: radial-gradient(circle at 50% 30%, rgba(116, 185, 255, 0.22), rgba(4, 6, 14, 0.92));
}

.bonus-intro-overlay--ujn .bonus-intro-panel {
  box-shadow: 0 0 32px rgba(46, 204, 113, 0.18);
}

/* ===== Hidden event film identity ===== */

.hidden-event-identity-banner {
  position: absolute;
  top: 8%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  padding: 0.35rem 0.85rem;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  border-radius: 999px;
  pointer-events: none;
}

.hidden-event-identity-banner--shnauzer {
  color: #f1c40f;
  background: rgba(40, 32, 8, 0.88);
  border: 1px solid rgba(241, 196, 15, 0.45);
}

.hidden-event-identity-banner--leo {
  color: #ff6b6b;
  background: rgba(32, 8, 8, 0.9);
  border: 1px solid rgba(255, 107, 107, 0.45);
}

.hidden-event-identity-banner--grulex {
  color: #2ecc71;
  background: rgba(4, 16, 8, 0.92);
  border: 1px solid rgba(46, 204, 113, 0.45);
  font-family: monospace;
}

.hidden-event-identity-badge {
  position: absolute;
  top: 14%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  padding: 0.3rem 0.7rem;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  border-radius: 6px;
  pointer-events: none;
}

.hidden-event-identity-badge--shnauzer {
  color: #f1c40f;
  background: rgba(20, 16, 4, 0.9);
}

.hidden-event-identity-badge--leo {
  color: #ff8787;
  background: rgba(24, 6, 6, 0.92);
}

.hidden-event-identity-badge--grulex {
  color: #2ecc71;
  background: rgba(4, 12, 8, 0.94);
  font-family: monospace;
}

.hidden-event-delivery-beat {
  position: absolute;
  left: 50%;
  top: 58%;
  transform: translate(-50%, -50%);
  z-index: 5;
  padding: 0.45rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: #111;
  background: linear-gradient(135deg, #f1c40f, #f39c12);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(241, 196, 15, 0.35);
  pointer-events: none;
}

.hidden-event-leo-roar-silhouette {
  position: absolute;
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%);
  font-size: 4.5rem;
  z-index: 4;
  filter: drop-shadow(0 0 24px rgba(255, 80, 80, 0.55));
  pointer-events: none;
}

.hidden-event-film--shnauzer .hidden-event-panel {
  border-color: rgba(241, 196, 15, 0.35);
}

.hidden-event-film--leo .hidden-event-panel {
  border-color: rgba(255, 107, 107, 0.4);
  box-shadow: 0 0 40px rgba(255, 80, 80, 0.15);
}

.hidden-event-film--grulex .hidden-event-panel {
  border-color: rgba(46, 204, 113, 0.4);
  font-family: inherit;
}

.hidden-event-film--grulex.hidden-event-datamosh {
  animation: sprint-grulex-datamosh 0.28s steps(3) both;
}

@keyframes sprint-grulex-datamosh {
  0% { filter: none; transform: translate(0); }
  33% { filter: hue-rotate(90deg) contrast(1.4); transform: translate(-3px, 2px); }
  66% { filter: saturate(2); transform: translate(2px, -1px); }
  100% { filter: none; transform: translate(0); }
}

@media (prefers-reduced-motion: reduce) {
  .bonus-intro-identity *,
  .hidden-event-leo-roar-silhouette {
    animation: none !important;
    transition: none !important;
  }
}
