:root {
  color-scheme: dark;
  --ink: #fff7ed;
  --accent: #facc15;
  --accent-soft: #fb7185;
  --red: #ef4444;
  --dark: #09090f;
  --shadow: #111827;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  width: 100%;
}

body {
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  font-family:
    "Inter", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  background: var(--dark);
}

.satire-stage {
  position: relative;
  display: grid;
  min-height: 100vh;
  width: 100vw;
  height: 100vh;
  place-items: center;
  isolation: isolate;
  overflow: hidden;
  cursor: grab;
  user-select: none;
  touch-action: manipulation;
}

.satire-stage::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 50% 32%, rgba(250, 204, 21, 0.22), transparent 28%),
    radial-gradient(circle at 50% 65%, rgba(239, 68, 68, 0.18), transparent 35%),
    linear-gradient(135deg, rgba(127, 29, 29, 0.88), rgba(9, 9, 15, 0.96) 45%, rgba(24, 24, 37, 1));
  content: "";
}

.satire-stage::after {
  position: absolute;
  inset: -12%;
  z-index: -1;
  background:
    repeating-linear-gradient(
      -18deg,
      rgba(255, 255, 255, 0.03) 0 16px,
      transparent 16px 32px
    );
  opacity: 0.28;
  mix-blend-mode: screen;
  animation: background-drift 12s linear infinite;
  content: "";
}

.hero-copy {
  position: relative;
  z-index: 2;
  display: grid;
  gap: clamp(10px, 1.6vh, 18px);
  width: min(92vw, 1400px);
  padding: max(22px, env(safe-area-inset-top)) 20px max(26px, env(safe-area-inset-bottom));
  text-align: center;
  place-items: center;
  animation: hero-float 2.8s ease-in-out infinite;
}

.hero-kicker,
.hero-hint {
  margin: 0;
  padding: 8px 14px;
  color: #111827;
  border: 3px solid var(--shadow);
  border-radius: 999px;
  background: rgba(250, 204, 21, 0.95);
  box-shadow: 6px 6px 0 rgba(17, 24, 39, 0.9);
  font-size: clamp(0.85rem, 1.2vw, 1rem);
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-hint {
  background: rgba(255, 247, 237, 0.96);
}

.hero-line {
  margin: 0;
  line-height: 0.92;
  font-weight: 1000;
  letter-spacing: -0.06em;
  text-wrap: balance;
  text-shadow:
    2px 2px 0 var(--shadow),
    4px 4px 0 var(--shadow),
    8px 8px 24px rgba(0, 0, 0, 0.45);
}

.hero-line-primary {
  color: var(--ink);
  font-size: clamp(3.2rem, 10vw, 8.8rem);
  transform: rotate(-2deg);
}

.hero-line-secondary {
  color: var(--accent);
  font-size: clamp(2.4rem, 8.2vw, 7rem);
  transform: rotate(1.2deg);
}

.satire-stage.is-hit .hero-copy {
  animation:
    hero-hit 220ms cubic-bezier(0.2, 0.9, 0.35, 1),
    hero-float 2.8s ease-in-out infinite 220ms;
}

.impact-layer {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.impact-mark {
  position: absolute;
  width: 86px;
  height: 86px;
  translate: -50% -50%;
  border: 4px solid rgba(239, 68, 68, 0.9);
  border-radius: 50%;
  opacity: 0;
  animation: mark-pop 680ms ease-out forwards;
}

.impact-mark::before,
.impact-mark::after {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 96px;
  height: 4px;
  background: rgba(250, 204, 21, 0.94);
  border-radius: 999px;
  content: "";
  transform: translate(-50%, -50%) rotate(34deg);
}

.impact-mark::after {
  transform: translate(-50%, -50%) rotate(-34deg);
}

.impact-word {
  position: absolute;
  translate: -50% -120%;
  padding: 6px 10px;
  color: #111827;
  border: 2px solid #111827;
  border-radius: 8px;
  background: var(--accent);
  box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.5);
  font-size: 1.05rem;
  font-weight: 950;
  line-height: 1;
  white-space: nowrap;
  opacity: 0;
  animation: word-burst 760ms ease-out forwards;
}

.impact-word.combo-word {
  background: var(--accent-soft);
  color: var(--ink);
  font-size: 1.4rem;
  box-shadow: 7px 7px 0 rgba(17, 24, 39, 0.72);
}

.impact-word.hero-word {
  background: rgba(255, 247, 237, 0.98);
}

.combo-burst {
  position: absolute;
  translate: -50% -50%;
  padding: 8px 14px;
  color: #111827;
  border: 3px solid #111827;
  border-radius: 999px;
  background: #fef08a;
  box-shadow: 6px 6px 0 rgba(17, 24, 39, 0.82);
  font-size: 1rem;
  font-weight: 950;
  white-space: nowrap;
  opacity: 0;
  animation: combo-burst 780ms ease-out forwards;
}

.screen-flash {
  position: absolute;
  inset: 0;
  background: rgba(239, 68, 68, 0.12);
  opacity: 0;
  animation: flash 180ms ease-out forwards;
}

.screen-flash.critical-flash {
  background: rgba(250, 204, 21, 0.28);
  animation-duration: 280ms;
}

@keyframes hero-float {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-8px) scale(1.01);
  }
}

@keyframes hero-hit {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
  }
  25% {
    transform: translate3d(-12px, 4px, 0) rotate(-1deg) scale(1.015);
  }
  50% {
    transform: translate3d(10px, -2px, 0) rotate(0.8deg) scale(1.01);
  }
  75% {
    transform: translate3d(-4px, 1px, 0) rotate(-0.3deg) scale(1.004);
  }
  100% {
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
  }
}

@keyframes background-drift {
  0% {
    transform: translate3d(-2%, -1%, 0) rotate(0deg);
  }
  50% {
    transform: translate3d(2%, 1%, 0) rotate(1deg);
  }
  100% {
    transform: translate3d(-2%, -1%, 0) rotate(0deg);
  }
}

@keyframes mark-pop {
  0% {
    opacity: 0;
    scale: 0.36;
    rotate: -18deg;
  }
  16% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    scale: 1.5;
    rotate: 16deg;
  }
}

@keyframes word-burst {
  0% {
    opacity: 0;
    transform: translateY(12px) rotate(-8deg) scale(0.78);
  }
  16% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(-48px) rotate(7deg) scale(1.08);
  }
}

@keyframes combo-burst {
  0% {
    opacity: 0;
    transform: translateY(10px) rotate(-8deg) scale(0.76);
  }
  16% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(-58px) rotate(6deg) scale(1.08);
  }
}

@keyframes flash {
  0% {
    opacity: 0;
  }
  45% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@media (max-width: 720px) {
  .hero-copy {
    width: 100%;
    gap: 12px;
    padding:
      max(18px, env(safe-area-inset-top))
      14px
      max(22px, env(safe-area-inset-bottom));
  }

  .hero-kicker,
  .hero-hint {
    padding: 7px 11px;
    box-shadow: 4px 4px 0 rgba(17, 24, 39, 0.9);
    font-size: 0.76rem;
    letter-spacing: 0.04em;
  }

  .hero-line {
    line-height: 0.96;
    letter-spacing: -0.05em;
    text-shadow:
      2px 2px 0 var(--shadow),
      4px 4px 0 var(--shadow),
      6px 6px 18px rgba(0, 0, 0, 0.4);
  }

  .hero-line-primary {
    font-size: clamp(2.5rem, 13vw, 4.9rem);
  }

  .hero-line-secondary {
    font-size: clamp(2rem, 10vw, 4rem);
  }

  .impact-word {
    font-size: 0.92rem;
  }

  .impact-word.combo-word {
    font-size: 1.04rem;
  }

  .combo-burst {
    font-size: 0.82rem;
  }
}
