/* ================================================================
   NO PERRY — Chibi Gank Chase — independent timeline
   Does not own Welcome / letter formation / title morph.
   ================================================================ */

.np-chibi-chase-stage {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: 8;
  pointer-events: none;
  overflow: hidden;
  height: auto;
  margin: 0;
  padding: 0;
  --chase-ms: 10000ms;
  --ox-enter-ms: 0ms;
  --ganker-enter-ms: 2000ms;
  --react-ms: 3500ms;
  --speech-ms: 3800ms;
  --sprint-ms: 4200ms;
  --ox-speech-dur: 3600ms;
  --ganker-speech-dur: 3000ms;
  --ganker-speech-interval: 1500ms;
  --ganker-speech-base: 2000ms;
  --alert-dur: 2100ms;
}

/* ---- 23A2 double-buffer scenes ---- */
.np-chibi-scene {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  --chase-ms: 10000ms;
  --ox-enter-ms: 0ms;
  --ganker-enter-ms: 2000ms;
  --react-ms: 3500ms;
  --speech-ms: 3800ms;
  --sprint-ms: 4200ms;
  --ox-speech-dur: 3600ms;
  --ganker-speech-dur: 3000ms;
  --ganker-speech-interval: 1500ms;
  --ganker-speech-base: 2000ms;
  --alert-dur: 2100ms;
}

.np-chibi-scene.is-parked,
.np-chibi-scene.is-sealed,
.np-chibi-scene--return:not(.is-active),
.np-chibi-scene--outbound:not(.is-active) {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Sealed outbound: kill all paint — never reposition for return */
.np-chibi-scene.is-sealed .np-chibi-runner,
.np-chibi-scene.is-sealed .np-chibi-runner__offset,
.np-chibi-scene.is-sealed .np-chibi-dust,
.np-chibi-scene.is-sealed .np-chibi-fx,
.np-chibi-scene.is-sealed .np-chibi-bubble,
.np-chibi-scene.is-sealed .np-chibi-alert {
  visibility: hidden !important;
  opacity: 0 !important;
  animation: none !important;
}

.np-chibi-scene.is-active:not(.is-parked):not(.is-sealed) {
  visibility: visible;
  opacity: 1;
}

/* Arm animations while parked; freeze until reveal so first paint = frame 0 */
.np-chibi-scene.is-parked.is-running .np-chibi-runner,
.np-chibi-scene.is-parked.is-running .np-chibi-runner__offset,
.np-chibi-scene.is-parked.is-running .np-chibi-runner__sprite,
.np-chibi-scene.is-parked.is-running .np-chibi-runner__img,
.np-chibi-scene.is-parked.is-running .np-chibi-dust,
.np-chibi-scene.is-parked.is-running .np-chibi-fx,
.np-chibi-scene.is-parked.is-running .np-chibi-bubble,
.np-chibi-scene.is-parked.is-running .np-chibi-alert,
.np-chibi-scene.is-parked.is-running .np-chibi-alert__bang,
.np-chibi-scene.is-parked.is-running .np-chibi-alert__ring {
  animation-play-state: paused !important;
}

/* Return actors born offscreen RIGHT — never mid-viewport while parked */
.np-chibi-scene--return.is-parked .np-chibi-runner,
.np-chibi-scene--return:not(.is-running) .np-chibi-runner {
  transform: translate3d(calc(100vw + 200px), 0, 0);
  opacity: 0;
  transition: none !important;
}

.np-chibi-scene--return.is-running.is-active .np-chibi-runner--ox,
.np-chibi-scene--return.is-running.is-active .np-chibi-runner--ganker {
  opacity: 1;
}

.np-chibi-chase-ground {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(14vh, 20vh, 200px);
  height: 0;
}

.np-chibi-runner {
  position: absolute;
  left: 0;
  bottom: 0;
  will-change: transform;
  transform: translate3d(120vw, 0, 0);
  transition: none;
  --trail: 0px;
  --bob: 0px;
  --amp: 14px;
  --trot-dur: 0.4s;
  --trot-phase: 0s;
  --stagger: 0ms;
  opacity: 0;
}

/* Sprite layer trots; UI layer rides runner X only (readable bubbles) */
.np-chibi-runner__offset {
  position: relative;
  transform: translate3d(var(--trail), var(--bob), 0);
  width: 100%;
  height: 100%;
}

.np-chibi-runner__ui {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 14;
}

/* Ganker sprites sit on --trail; keep speech UI over the sprite, not the unit origin */
.np-chibi-runner--ganker .np-chibi-runner__ui {
  transform: translate3d(var(--trail), 0, 0);
}

.np-chibi-runner__sprite,
.np-chibi-runner__img {
  display: block;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  -ms-interpolation-mode: nearest-neighbor;
  filter: drop-shadow(0 8px 0 rgba(0, 0, 0, 0.45));
  user-select: none;
  pointer-events: none;
}

/* ---- Ox (~2× of 18A 118×64; was ~3× / 354×192 in 18B) ---- */
.np-chibi-runner--ox {
  width: 236px;
  height: 128px;
  --trail: 0px;
  --bob: -4px;
  --amp: 14px;
  --trot-dur: 0.36s;
  --trot-phase: 0s;
  z-index: 6;
  opacity: 1;
}

.np-chibi-runner--ox .np-chibi-runner__sprite {
  width: 236px;
  height: 128px;
  background-image: url('../assets/ox-escape/ox-run.png');
  background-repeat: no-repeat;
  background-size: 944px 128px;
  background-position: 0 0;
}

.np-chibi-scene.is-running .np-chibi-runner--ox .np-chibi-runner__sprite {
  animation: np-chibi-ox-frames 0.28s steps(4) infinite;
}

.np-chibi-scene.is-running.is-sprint .np-chibi-runner--ox .np-chibi-runner__sprite {
  animation-duration: 0.2s;
}

/* ---- Gankers (~2×; was ~3× / 216 in 18B) ---- */
.np-chibi-runner--ganker {
  width: 144px;
  height: 144px;
  z-index: 5;
}

.np-chibi-runner--ganker .np-chibi-runner__img {
  width: 144px;
  height: 144px;
  object-fit: contain;
}

.np-chibi-runner--bear {
  --trail: 260px;
  --bob: 6px;
  --amp: 12px;
  --trot-dur: 0.42s;
  --trot-phase: -0.063s;
  z-index: 7;
  width: 156px;
  height: 156px;
}
.np-chibi-runner--bear .np-chibi-runner__img { width: 156px; height: 156px; }

.np-chibi-runner--tank {
  --trail: 420px;
  --bob: 10px;
  --amp: 10px;
  --trot-dur: 0.48s;
  --trot-phase: -0.168s;
  width: 152px;
  height: 152px;
}
.np-chibi-runner--tank .np-chibi-runner__img { width: 152px; height: 152px; }

.np-chibi-runner--fire {
  --trail: 560px;
  --bob: 0px;
  --amp: 12px;
  --trot-dur: 0.39s;
  --trot-phase: -0.0975s;
}

.np-chibi-runner--ice {
  --trail: 700px;
  --bob: -6px;
  --amp: 12px;
  --trot-dur: 0.41s;
  --trot-phase: -0.205s;
}

.np-chibi-runner--healer {
  --trail: 840px;
  --bob: 8px;
  --amp: 15px;
  --trot-dur: 0.34s;
  --trot-phase: -0.221s;
  z-index: 8;
}

/* ---- Travel ---- */
.np-chibi-scene.is-running .np-chibi-runner--ox {
  opacity: 1;
  animation-name: np-chibi-ox-cross;
  animation-timing-function: linear;
  animation-fill-mode: forwards;
  animation-duration: var(--chase-ms);
  animation-delay: var(--ox-enter-ms);
}

.np-chibi-scene.is-running .np-chibi-runner--ganker {
  opacity: 1;
  animation-name: np-chibi-ganker-cross;
  animation-timing-function: linear;
  animation-fill-mode: forwards;
  animation-duration: calc(var(--chase-ms) - var(--ganker-enter-ms));
  animation-delay: calc(var(--ganker-enter-ms) + var(--stagger));
}

.np-chibi-scene.is-running .np-chibi-runner__offset {
  animation-name: np-chibi-trot;
  animation-duration: var(--trot-dur);
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-delay: var(--trot-phase);
}

.np-chibi-scene.is-running .np-chibi-runner--bear .np-chibi-runner__img {
  animation: np-chibi-bear-lunge var(--chase-ms) linear forwards;
}

@keyframes np-chibi-ox-frames {
  from { background-position: 0 0; }
  to { background-position: -944px 0; }
}

/* Cruise ~0–42%, sprint after alert — stretched 10s timeline */
@keyframes np-chibi-ox-cross {
  0% {
    transform: translate3d(calc(100vw + 120px), 0, 0);
  }
  20% {
    transform: translate3d(78vw, 0, 0);
  }
  35% {
    transform: translate3d(68vw, 0, 0);
  }
  42% {
    transform: translate3d(60vw, 0, 0);
  }
  100% {
    transform: translate3d(-480px, 0, 0);
  }
}

@keyframes np-chibi-ganker-cross {
  0% {
    transform: translate3d(calc(100vw + 200px), 0, 0);
  }
  28% {
    transform: translate3d(62vw, 0, 0);
  }
  100% {
    transform: translate3d(-620px, 0, 0);
  }
}

@keyframes np-chibi-trot {
  0%,
  100% {
    transform: translate3d(var(--trail), calc(var(--bob) + var(--amp) * 0.15), 0);
  }
  25% {
    transform: translate3d(var(--trail), calc(var(--bob) - var(--amp)), 0);
  }
  50% {
    transform: translate3d(var(--trail), calc(var(--bob) + var(--amp) * 0.2), 0);
  }
  75% {
    transform: translate3d(var(--trail), calc(var(--bob) - var(--amp) * 0.55), 0);
  }
}

@keyframes np-chibi-bear-lunge {
  0%,
  48% {
    transform: translate3d(0, 0, 0);
  }
  55% {
    transform: translate3d(-28px, 0, 0);
  }
  64% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(0, 0, 0);
  }
}

/* ---- Alert ping (ox) — blink + bob + pulse scare ---- */
.np-chibi-alert {
  position: absolute;
  left: 58%;
  top: -28px;
  width: 52px;
  height: 52px;
  margin-left: -26px;
  opacity: 0;
  pointer-events: none;
  z-index: 16;
}

.np-chibi-alert__bang {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Segoe UI', system-ui, sans-serif;
  font-weight: 900;
  font-size: 40px;
  line-height: 1;
  color: #fff6d8;
  text-shadow:
    0 3px 0 #1a1208,
    0 0 16px rgba(255, 200, 80, 0.55),
    0 0 4px rgba(0, 0, 0, 0.7);
  z-index: 2;
}

.np-chibi-alert__ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 24px;
  height: 24px;
  margin: -12px 0 0 -12px;
  border: 3px solid rgba(255, 220, 120, 0.85);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(255, 190, 60, 0.35);
  opacity: 0;
  z-index: 1;
}

.np-chibi-scene.is-running .np-chibi-alert {
  animation: np-chibi-alert-host var(--alert-dur) ease-out var(--react-ms) both;
}

.np-chibi-scene.is-running .np-chibi-alert__bang {
  animation: np-chibi-alert-bang var(--alert-dur) ease-out var(--react-ms) both;
}

.np-chibi-scene.is-running .np-chibi-alert__ring:nth-child(1) {
  animation: np-chibi-alert-ring 720ms ease-out var(--react-ms) both;
}

.np-chibi-scene.is-running .np-chibi-alert__ring:nth-child(2) {
  animation: np-chibi-alert-ring 720ms ease-out calc(var(--react-ms) + 240ms) both;
}

@keyframes np-chibi-alert-host {
  0% { opacity: 0; transform: translate3d(0, 6px, 0); }
  5% { opacity: 1; transform: translate3d(0, 0, 0); }
  12% { opacity: 0.12; }
  18% { opacity: 1; }
  26% { opacity: 0.1; }
  32% { opacity: 1; }
  40% { opacity: 0.2; }
  48% { opacity: 1; }
  56% { opacity: 0.25; }
  64% { opacity: 1; }
  74% { opacity: 0.35; }
  84% { opacity: 1; }
  100% { opacity: 0; transform: translate3d(0, -10px, 0); }
}

@keyframes np-chibi-alert-bang {
  0% {
    transform: translate3d(0, 10px, 0) scale(0.4) rotate(-14deg);
  }
  7% {
    transform: translate3d(0, -5px, 0) scale(1.34) rotate(10deg);
  }
  14% {
    transform: translate3d(0, 6px, 0) scale(0.84) rotate(-8deg);
  }
  22% {
    transform: translate3d(0, -9px, 0) scale(1.24) rotate(7deg);
  }
  30% {
    transform: translate3d(0, 5px, 0) scale(0.9) rotate(-5deg);
  }
  40% {
    transform: translate3d(0, -8px, 0) scale(1.18) rotate(4deg);
  }
  50% {
    transform: translate3d(0, 4px, 0) scale(0.94) rotate(-3deg);
  }
  60% {
    transform: translate3d(0, -6px, 0) scale(1.12) rotate(2deg);
  }
  72% {
    transform: translate3d(0, 2px, 0) scale(0.98) rotate(-1deg);
  }
  84% {
    transform: translate3d(0, -4px, 0) scale(1.06) rotate(1deg);
  }
  100% {
    transform: translate3d(0, -14px, 0) scale(0.82) rotate(0deg);
  }
}

@keyframes np-chibi-alert-ring {
  0% {
    opacity: 0.85;
    transform: scale(0.55);
  }
  100% {
    opacity: 0;
    transform: scale(1.85);
  }
}

/* ---- Ox speech bubble ---- */
.np-chibi-bubble {
  position: absolute;
  pointer-events: none;
  opacity: 0;
  z-index: 15;
  background: #fff4dc;
  color: #2a1c0e;
  font-family: 'Segoe UI', system-ui, sans-serif;
  border: 3px solid #1a1208;
  box-shadow: 0 4px 0 #1a1208, 0 8px 18px rgba(0, 0, 0, 0.3);
}

.np-chibi-bubble::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  background: #fff4dc;
  border-right: 3px solid #1a1208;
  border-bottom: 3px solid #1a1208;
  transform: rotate(45deg);
}

.np-chibi-bubble--ox {
  left: 62%;
  top: -64px;
  max-width: none;
  padding: 10px 16px 12px;
  border-radius: 18px 18px 18px 6px;
  font-weight: 800;
  font-size: 22px;
  line-height: 1.1;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transform: translate3d(-18%, 8px, 0) scale(0.85);
}

.np-chibi-bubble--ox::after {
  left: 28px;
  bottom: -9px;
}

.np-chibi-scene.is-running .np-chibi-bubble--ox {
  animation: np-chibi-ox-bubble var(--ox-speech-dur) ease-out var(--speech-ms) both;
}

@keyframes np-chibi-ox-bubble {
  0% {
    opacity: 0;
    transform: translate3d(-18%, 12px, 0) scale(0.75) rotate(-3deg);
  }
  8% {
    opacity: 1;
    transform: translate3d(-18%, 0, 0) scale(1.08) rotate(2deg);
  }
  14% {
    opacity: 1;
    transform: translate3d(-18%, 0, 0) scale(1) rotate(-1deg);
  }
  28% {
    transform: translate3d(-18%, -2px, 0) scale(1.03) rotate(1deg);
  }
  42% {
    transform: translate3d(-18%, 1px, 0) scale(0.98) rotate(-1deg);
  }
  56% {
    transform: translate3d(-18%, -1px, 0) scale(1.02) rotate(0.5deg);
  }
  82% {
    opacity: 1;
    transform: translate3d(-18%, 0, 0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate3d(-18%, -6px, 0) scale(0.94);
  }
}

/* ---- Ganker chase banter (staggered, first pass only) ---- */
.np-chibi-bubble--ganker {
  left: auto;
  right: 42%;
  top: -58px;
  width: max-content;
  max-width: 168px;
  padding: 7px 11px 9px;
  border-radius: 14px 14px 5px 14px;
  font-weight: 800;
  font-size: 13px;
  line-height: 1.2;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transform: translate3d(0, 8px, 0) scale(0.92);
  z-index: 12;
}

.np-chibi-bubble--ganker.is-long {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  white-space: normal;
  max-width: 188px;
  min-width: 148px;
  font-size: 12.5px;
  line-height: 1.28;
  font-weight: 800;
  top: -78px;
  right: 22%;
  padding: 8px 12px 10px;
}

.np-chibi-bubble__line {
  display: block;
}

.np-chibi-bubble--ganker::after {
  left: auto;
  right: 22px;
  bottom: -8px;
  width: 12px;
  height: 12px;
}

/* Vertical offsets — avoid stacking / covering ox */
.np-chibi-bubble--ganker-bear { top: -66px; right: 48%; }
.np-chibi-bubble--ganker-fire { top: -52px; right: 38%; }
.np-chibi-bubble--ganker-ice { top: -78px; right: 34%; }
.np-chibi-bubble--ganker-tank {
  top: -86px;
  right: 18%;
}

.np-chibi-scene--outbound.is-running .np-chibi-bubble--ganker {
  animation:
    np-chibi-ganker-bubble var(--ganker-speech-dur) cubic-bezier(0.22, 1.15, 0.36, 1)
      var(--ganker-speech-delay, var(--ganker-speech-base)) both;
}

/* ENTRY ~180ms · hold · EXIT ~250ms within 2000ms total */
@keyframes np-chibi-ganker-bubble {
  0% {
    opacity: 0;
    transform: translate3d(0, 6px, 0) scale(0.92);
  }
  9% {
    opacity: 1;
    transform: translate3d(0, -1px, 0) scale(1.03);
  }
  14% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
  86% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate3d(0, -4px, 0) scale(0.96);
  }
}

/* Dust */
.np-chibi-dust {
  position: absolute;
  left: 0;
  bottom: 10px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196, 168, 120, 0.75) 0%, rgba(120, 90, 50, 0.35) 55%, transparent 70%);
  opacity: 0;
  pointer-events: none;
  transform: translate3d(0, 0, 0) scale(0.4);
  z-index: 1;
}

.np-chibi-scene.is-running .np-chibi-dust.is-ox {
  animation: np-chibi-dust-puff 0.55s linear infinite;
}
.np-chibi-scene.is-running.is-sprint .np-chibi-dust.is-ox {
  animation-duration: 0.34s;
}
.np-chibi-scene.is-running.is-sprint .np-chibi-dust.is-ox {
  width: 20px;
  height: 20px;
}

.np-chibi-scene.is-running .np-chibi-dust.is-heavy {
  animation: np-chibi-dust-puff 0.62s linear infinite;
  width: 18px;
  height: 18px;
}
.np-chibi-scene.is-running .np-chibi-dust.is-light {
  animation: np-chibi-dust-puff 0.7s linear infinite;
  width: 11px;
  height: 11px;
}

.np-chibi-dust:nth-child(1) { animation-delay: 0ms !important; }
.np-chibi-dust:nth-child(2) { animation-delay: 140ms !important; }
.np-chibi-dust:nth-child(3) { animation-delay: 280ms !important; }
.np-chibi-dust:nth-child(4) { animation-delay: 90ms !important; }
.np-chibi-dust:nth-child(5) { animation-delay: 220ms !important; }
.np-chibi-dust:nth-child(6) { animation-delay: 360ms !important; }

@keyframes np-chibi-dust-puff {
  0% {
    opacity: 0;
    transform: translate3d(12px, 0, 0) scale(0.35);
  }
  18% {
    opacity: 0.7;
  }
  100% {
    opacity: 0;
    transform: translate3d(42px, -14px, 0) scale(1.35);
  }
}

/* Micro FX */
.np-chibi-fx {
  position: absolute;
  pointer-events: none;
  opacity: 0;
  z-index: 8;
}

.np-chibi-fx--fire {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffb347 0%, #e85d04 55%, transparent 70%);
  left: -10px;
  top: 38%;
}

.np-chibi-fx--ice {
  width: 12px;
  height: 12px;
  background: linear-gradient(135deg, #caf0f8, #48cae4);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  left: -8px;
  top: 42%;
}

.np-chibi-fx--heal {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #95d5b2;
  box-shadow: 0 0 8px rgba(149, 213, 178, 0.8);
  left: 40%;
  top: 18%;
}

.np-chibi-scene.is-running.is-fx-fire .np-chibi-fx--fire {
  animation: np-chibi-fire-spark 0.45s linear 3.2s 1 forwards;
}
.np-chibi-scene.is-running.is-fx-ice .np-chibi-fx--ice {
  animation: np-chibi-ice-shard 0.5s linear 3.6s 1 forwards;
}
.np-chibi-scene.is-running.is-fx-heal .np-chibi-fx--heal {
  animation: np-chibi-heal-mote 0.55s linear 4s 1 forwards;
}

@keyframes np-chibi-fire-spark {
  0% { opacity: 0; transform: translate3d(0, 0, 0) scale(0.6); }
  20% { opacity: 1; }
  100% { opacity: 0; transform: translate3d(-40px, -8px, 0) scale(0.3); }
}
@keyframes np-chibi-ice-shard {
  0% { opacity: 0; transform: translate3d(0, 0, 0) rotate(0deg); }
  25% { opacity: 0.95; }
  100% { opacity: 0; transform: translate3d(-32px, 10px, 0) rotate(-40deg); }
}
@keyframes np-chibi-heal-mote {
  0% { opacity: 0; transform: translate3d(0, 0, 0); }
  30% { opacity: 0.9; }
  100% { opacity: 0; transform: translate3d(-10px, -24px, 0); }
}

/* Tablet */
@media (max-width: 1024px) and (min-width: 768px) {
  .np-chibi-runner--ox {
    width: 200px;
    height: 109px;
  }
  .np-chibi-runner--ox .np-chibi-runner__sprite {
    width: 200px;
    height: 109px;
    background-size: 800px 109px;
  }
  .np-chibi-scene.is-running .np-chibi-runner--ox .np-chibi-runner__sprite {
    animation-name: np-chibi-ox-frames-tablet;
  }
  @keyframes np-chibi-ox-frames-tablet {
    from { background-position: 0 0; }
    to { background-position: -800px 0; }
  }
  .np-chibi-runner--ganker { width: 122px; height: 122px; }
  .np-chibi-runner--ganker .np-chibi-runner__img { width: 122px; height: 122px; }
  .np-chibi-runner--bear { width: 132px; height: 132px; --trail: 220px; }
  .np-chibi-runner--bear .np-chibi-runner__img { width: 132px; height: 132px; }
  .np-chibi-runner--tank { width: 129px; height: 129px; --trail: 340px; }
  .np-chibi-runner--tank .np-chibi-runner__img { width: 129px; height: 129px; }
  .np-chibi-runner--fire { --trail: 450px; }
  .np-chibi-runner--ice { --trail: 560px; }
  .np-chibi-runner--healer { --trail: 680px; }
  .np-chibi-bubble--ox { font-size: 18px; }
  .np-chibi-bubble--ganker { max-width: 148px; font-size: 12px; }
  .np-chibi-bubble--ganker.is-long { max-width: 172px; min-width: 132px; font-size: 11.5px; }
}

/* Mobile — still clearly larger than 18A, fit viewport */
@media (max-width: 767px) {
  .np-chibi-chase-stage {
    --chase-ms: 10000ms;
    --ganker-enter-ms: 2000ms;
    --react-ms: 3500ms;
    --speech-ms: 3800ms;
    --sprint-ms: 4200ms;
    --ox-speech-dur: 3400ms;
    --ganker-speech-dur: 3000ms;
    --ganker-speech-base: 2000ms;
    --alert-dur: 1900ms;
  }

  /* Keep chase lane below hero CTAs (26B forensic: sprites were covering buttons) */
  .np-chibi-chase-ground {
    bottom: clamp(2vh, 4vh, 40px);
  }

  .np-chibi-bubble--ganker,
  .np-chibi-bubble--ox {
    max-width: min(42vw, 140px);
  }

  .np-chibi-runner { --amp: 7px; }
  .np-chibi-runner--ox { --amp: 9px; }
  .np-chibi-runner--bear { --amp: 7px; }
  .np-chibi-runner--tank { --amp: 6px; }
  .np-chibi-runner--fire,
  .np-chibi-runner--ice { --amp: 6px; }
  .np-chibi-runner--healer { --amp: 9px; }

  .np-chibi-runner--ox {
    width: 148px;
    height: 80px;
  }
  .np-chibi-runner--ox .np-chibi-runner__sprite {
    width: 148px;
    height: 80px;
    background-size: 592px 80px;
  }
  .np-chibi-scene.is-running .np-chibi-runner--ox .np-chibi-runner__sprite {
    animation-name: np-chibi-ox-frames-mobile;
  }
  @keyframes np-chibi-ox-frames-mobile {
    from { background-position: 0 0; }
    to { background-position: -592px 0; }
  }

  .np-chibi-runner--ganker {
    width: 90px;
    height: 90px;
  }
  .np-chibi-runner--ganker .np-chibi-runner__img {
    width: 90px;
    height: 90px;
  }
  .np-chibi-runner--bear {
    width: 98px;
    height: 98px;
    --trail: 140px;
  }
  .np-chibi-runner--bear .np-chibi-runner__img {
    width: 98px;
    height: 98px;
  }
  .np-chibi-runner--tank {
    width: 95px;
    height: 95px;
    --trail: 230px;
  }
  .np-chibi-runner--tank .np-chibi-runner__img {
    width: 95px;
    height: 95px;
  }
  .np-chibi-runner--fire { --trail: 310px; }
  .np-chibi-runner--ice { --trail: 390px; }
  .np-chibi-runner--healer { --trail: 470px; }

  .np-chibi-alert {
    width: 40px;
    height: 40px;
    margin-left: -20px;
    top: -18px;
  }
  .np-chibi-alert__bang { font-size: 28px; }

  .np-chibi-bubble--ox {
    top: -48px;
    font-size: 14px;
    padding: 7px 10px 8px;
  }
  .np-chibi-bubble--ganker {
    top: -42px;
    max-width: 118px;
    padding: 5px 8px 6px;
    font-size: 10px;
  }
  .np-chibi-bubble--ganker.is-long {
    top: -58px;
    max-width: 148px;
    min-width: 118px;
    font-size: 10.5px;
  }
  .np-chibi-bubble--ganker-bear { top: -48px; }
  .np-chibi-bubble--ganker-fire { top: -40px; }
  .np-chibi-bubble--ganker-ice { top: -56px; }
  .np-chibi-bubble--ganker-tank { top: -62px; }
}

@media (prefers-reduced-motion: reduce) {
  .np-chibi-chase-stage {
    display: none !important;
  }
}

/* ---- 23A2 return scene: same R→L travel as outbound; !! only; no ganker speech ---- */
.np-chibi-bubble--ox-return {
  display: none;
  position: absolute;
  left: 50%;
  top: -36px;
  transform: translateX(-50%);
  white-space: nowrap;
  pointer-events: none;
  z-index: 20;
  font-family: 'Segoe UI', system-ui, sans-serif;
  font-weight: 900;
  font-size: 28px;
  color: #fff6d8;
  text-shadow: 0 3px 0 #1a1208, 0 0 12px rgba(255, 200, 80, 0.4);
}
.np-chibi-scene--return.is-running.is-react .np-chibi-bubble--ox-return {
  display: block;
  animation: np-chibi-return-bang 0.9s ease-out forwards;
}

@keyframes np-chibi-return-bang {
  0% { opacity: 0; transform: translateX(-50%) scale(0.6); }
  18% { opacity: 1; transform: translateX(-50%) scale(1.15); }
  45% { opacity: 1; transform: translateX(-50%) scale(1); }
  100% { opacity: 0; transform: translateX(-50%) scale(0.9); }
}
