:root {
  color-scheme: dark;
  font-family: "BIZ UDPGothic", "Yu Gothic", "Yu Gothic UI", "Meiryo", sans-serif;
  background: #071018;
  color: #f3f7fb;
  --cinematic-font: "Bahnschrift", "Arial Narrow", "BIZ UDPGothic", "Yu Gothic", "Meiryo", sans-serif;
  --dialogue-font: "BIZ UDPGothic", "Yu Gothic", "Yu Gothic UI", "Meiryo", sans-serif;
  --cut-title-font: "BIZ UDPGothic", "Yu Gothic", "Yu Gothic UI", "Meiryo", sans-serif;
  --cut-body-font: "BIZ UDPGothic", "Yu Gothic", "Yu Gothic UI", "Meiryo", sans-serif;
  --cut-ui-font: "Bahnschrift", "BIZ UDPGothic", "Yu Gothic UI", "Meiryo", sans-serif;
  --story-title-font: var(--cut-title-font);
  --story-dialogue-font: var(--cut-body-font);
  --support-accent: #82f2e5;
  --support-accent-soft: rgba(130, 242, 229, 0.55);
  --support-accent-faint: rgba(130, 242, 229, 0.18);
  --support-portrait: none;
  --support-portrait-size: 245%;
  --support-portrait-position: 48% 20%;
  --support-full-body: none;
  --support-full-body-size: cover;
  --support-full-body-position: center;
  --support-cutin: none;
  --support-cutin-sheet: none;
  --viewport-pad: clamp(8px, 1.5vw, 18px);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

body {
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 20%, rgba(32, 132, 148, 0.22), transparent 36%),
    radial-gradient(circle at 85% 70%, rgba(219, 84, 117, 0.18), transparent 34%),
    linear-gradient(135deg, #071018 0%, #101822 48%, #071018 100%);
}

button {
  font: inherit;
  -webkit-user-select: none;
  user-select: none;
}

.shell {
  min-height: 100%;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: var(--viewport-pad);
}

.android-app .shell {
  touch-action: none;
}

.stage {
  position: relative;
  width: min(
    calc(100vw - (var(--viewport-pad) * 2)),
    calc((100vh - (var(--viewport-pad) * 2)) * 16 / 9)
  );
  width: min(
    calc(100vw - (var(--viewport-pad) * 2)),
    calc((100dvh - (var(--viewport-pad) * 2)) * 16 / 9)
  );
  height: min(
    calc(100vh - (var(--viewport-pad) * 2)),
    calc((100vw - (var(--viewport-pad) * 2)) * 9 / 16)
  );
  height: min(
    calc(100dvh - (var(--viewport-pad) * 2)),
    calc((100vw - (var(--viewport-pad) * 2)) * 9 / 16)
  );
  overflow: hidden;
  border: 1px solid rgba(198, 232, 255, 0.18);
  background: #050910;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.5);
  touch-action: none;
}

canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}

.route-location-prestage #game,
.route-location-prestage .hud,
.route-location-prestage .support-dock,
.route-location-prestage .touch-controls {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.briefing-active .hud,
.briefing-active .support-dock,
.briefing-active .touch-controls {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.orientation-lock {
  position: absolute;
  inset: 0;
  z-index: 80;
  display: none;
  place-items: center;
  padding: 28px;
  text-align: center;
  pointer-events: auto;
  background:
    radial-gradient(circle at 50% 42%, rgba(130, 242, 229, 0.18), transparent 32%),
    rgba(4, 8, 13, 0.9);
}

.orientation-lock div {
  display: grid;
  gap: 10px;
  max-width: 320px;
}

.orientation-lock p,
.orientation-lock span {
  margin: 0;
}

.orientation-lock p {
  color: #f3f7fb;
  font-size: 18px;
  font-weight: 900;
}

.orientation-lock span {
  color: rgba(211, 235, 255, 0.72);
  font-size: 12px;
  line-height: 1.45;
}

.cutin-overlay {
  position: absolute;
  inset: 0;
  z-index: 18;
  pointer-events: none;
  display: block;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 180ms ease, transform 220ms ease;
}

.cutin-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  transform: none;
  background:
    radial-gradient(circle at 23% 44%, var(--support-accent-faint), transparent 31%),
    linear-gradient(90deg, rgba(2, 7, 13, 0.9) 0%, rgba(2, 7, 13, 0.46) 38%, rgba(2, 7, 13, 0.82) 100%),
    repeating-linear-gradient(180deg, rgba(243, 247, 251, 0.05) 0 1px, transparent 1px 14px);
  border: 0;
  box-shadow: inset 0 0 90px rgba(0, 0, 0, 0.72);
  opacity: 0.94;
}

.cutin-overlay.active {
  opacity: 1;
  transform: scale(1);
}

.cutin-overlay.active[data-kind="sp"] {
  z-index: 40;
}

.stage:has(.cutin-overlay.active[data-kind="sp"]) .comm-cutin,
.stage:has(.cutin-overlay.active[data-kind="sp"]) .comm-cutin * {
  animation-play-state: paused;
}

.stage.paused .cutin-overlay.active,
.stage.paused .cutin-overlay.active *,
.stage.paused .cutin-overlay.active *::before,
.stage.paused .cutin-overlay.active *::after {
  animation-play-state: paused !important;
}

.support-dock {
  position: absolute;
  z-index: 9;
  left: 50%;
  top: 16px;
  display: flex;
  gap: 7px;
  transform: translateX(-50%);
  pointer-events: auto;
}

.support-dock.hidden {
  display: none;
}

.support-chip {
  --chip-accent: #82f2e5;
  --chip-portrait: none;
  --chip-portrait-size: cover;
  --chip-portrait-position: center;
  position: relative;
  width: 58px;
  height: 58px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(211, 235, 255, 0.26);
  background:
    linear-gradient(180deg, rgba(7, 16, 24, 0.18), rgba(7, 16, 24, 0.58)),
    var(--chip-portrait),
    linear-gradient(135deg, rgba(130, 242, 229, 0.28), rgba(255, 120, 185, 0.22));
  background-size: cover, var(--chip-portrait-size), auto;
  background-position: center, var(--chip-portrait-position), center;
  box-shadow: inset 0 0 14px rgba(255, 255, 255, 0.05);
  color: #f3f7fb;
  cursor: pointer;
}

.support-chip[hidden] {
  display: none;
}

.support-chip::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(5, 9, 16, 0.92));
}

.support-chip span {
  position: absolute;
  left: 5px;
  right: 5px;
  bottom: 4px;
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.85);
}

.support-chip.active {
  border-color: var(--chip-accent);
  box-shadow: 0 0 18px color-mix(in srgb, var(--chip-accent), transparent 52%), inset 0 0 18px color-mix(in srgb, var(--chip-accent), transparent 72%);
}

.support-chip.locked {
  cursor: not-allowed;
  opacity: 0.58;
}

.support-chip.story-locked {
  filter: grayscale(0.75) brightness(0.72);
}

.support-chip.story-locked::after {
  content: attr(data-lock-label);
  position: absolute;
  inset: auto 4px 20px;
  padding: 3px 2px;
  border: 1px solid rgba(243, 247, 251, 0.24);
  background: rgba(5, 9, 16, 0.72);
  color: rgba(243, 247, 251, 0.86);
  font-size: 8px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  letter-spacing: 0;
}

@media (max-width: 1320px) {
  .support-dock {
    top: 16px;
    gap: 5px;
  }
}

.cutin-panel {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  margin: 0;
  overflow: hidden;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.cutin-overlay.active .cutin-operator {
  animation: cutinLeft 520ms cubic-bezier(.2, .9, .18, 1) both;
}

.cutin-overlay.active .cutin-operator::after {
  animation: cutinScanSweep 900ms cubic-bezier(.2, .9, .18, 1) 80ms both;
}

.cutin-operator {
  position: relative;
  justify-content: flex-start;
  margin-left: 0;
  text-align: left;
  overflow: hidden;
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.cutin-operator::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  width: auto;
  background:
    linear-gradient(90deg, rgba(7, 16, 24, 0.04) 0%, rgba(7, 16, 24, 0.08) 34%, rgba(7, 16, 24, 0.56) 62%, rgba(7, 16, 24, 0.84) 100%),
    linear-gradient(12deg, transparent 0%, rgba(130, 242, 229, 0.06) 42%, transparent 54%);
  border: 0;
  box-shadow: inset 0 0 54px var(--support-accent-faint);
}

.cutin-operator::after {
  content: "";
  position: absolute;
  z-index: 3;
  inset: -18px -220px -18px -80px;
  background:
    linear-gradient(90deg, transparent 0%, var(--support-accent-soft) 48%, transparent 64%),
    repeating-linear-gradient(180deg, transparent 0 14px, var(--support-accent-faint) 15px 16px);
  opacity: 0;
  mix-blend-mode: screen;
  transform: translateX(-58%);
  pointer-events: none;
}

.cutin-panel img {
  align-self: auto;
  width: clamp(360px, 38vw, 560px);
  height: clamp(560px, 96vh, 820px);
  object-fit: cover;
  object-position: var(--support-cutin-position, 24% 50%);
  filter: saturate(1.06) contrast(1.05) drop-shadow(0 0 26px var(--support-accent-faint)) drop-shadow(0 24px 40px rgba(0, 0, 0, 0.62));
}

.cutin-operator img {
  position: absolute;
  z-index: 1;
  left: clamp(16px, 5vw, 88px);
  top: 50%;
  width: clamp(360px, 38vw, 560px);
  height: clamp(560px, 96vh, 820px);
  margin: 0;
  object-position: var(--support-cutin-position, 24% 50%);
  transform-origin: 54% 58%;
  transform: translateY(-50%);
}

.cutin-frame-sheet {
  position: absolute;
  z-index: 1;
  inset: 0;
  background-image: var(--support-cutin-sheet);
  background-size: 400% 400%;
  background-position: 0% 0%;
  background-repeat: no-repeat;
  opacity: 0;
  filter: saturate(1.07) contrast(1.05) drop-shadow(0 0 28px var(--support-accent-faint));
  transform: scale(1.015);
  transform-origin: 48% 50%;
  pointer-events: none;
}

.cutin-frame-sheet::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 50%, rgba(226, 255, 255, 0.32), transparent 20%),
    linear-gradient(90deg, rgba(2, 7, 13, 0.06), transparent 46%, rgba(2, 7, 13, 0.24));
  mix-blend-mode: screen;
  opacity: 0;
  pointer-events: none;
}

.cutin-video {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  filter: saturate(1.08) contrast(1.05) drop-shadow(0 0 28px var(--support-accent-faint));
  transform: scale(1.01);
  transform-origin: 50% 50%;
  pointer-events: none;
}

.cutin-overlay[data-anime="frames"] .cutin-operator img,
.cutin-overlay[data-anime="frames"] .cutin-motion-strip,
.cutin-overlay[data-anime="video"] .cutin-motion-strip,
.cutin-overlay[data-anime="frames"] .cutin-full-body {
  opacity: 0;
  animation: none !important;
}

.cutin-overlay[data-anime="video"] .cutin-full-body,
.cutin-overlay[data-anime="video"] .cutin-frame-sheet {
  opacity: 0;
  animation: none !important;
}

.cutin-overlay.active[data-anime="frames"] .cutin-frame-sheet {
  opacity: 0.96;
  animation: mioVectorFrameCamera 2050ms cubic-bezier(.16, .92, .22, 1) both;
}

.cutin-overlay.active[data-anime="video"][data-video-ready="true"] .cutin-video {
  opacity: 0.98;
  animation: mioVectorVideoHold 2050ms cubic-bezier(.16, .92, .22, 1) both;
}

.cutin-overlay.active[data-anime="video"][data-video-ready="true"] .cutin-operator img {
  opacity: 0;
  animation: none !important;
}

.cutin-overlay.active[data-anime="frames"] .cutin-frame-sheet::after {
  animation: mioVectorFrameFlash 2050ms linear both;
}

.cutin-overlay[data-anime="frames"] .cutin-operator .cutin-copy,
.cutin-overlay[data-anime="video"] .cutin-operator .cutin-copy {
  left: clamp(500px, 52vw, 760px);
  bottom: clamp(50px, 12vh, 112px);
}

.cutin-motion-strip {
  position: absolute;
  z-index: 2;
  left: clamp(16px, 5vw, 88px);
  width: clamp(360px, 38vw, 560px);
  background-image: var(--support-cutin);
  background-size: clamp(360px, 38vw, 560px) clamp(560px, 96vh, 820px);
  background-position: var(--support-cutin-position, 24% 50%);
  background-repeat: no-repeat;
  opacity: 0;
  mix-blend-mode: screen;
  filter: saturate(1.05) brightness(1.04) drop-shadow(0 0 12px var(--support-accent-faint));
  transform-origin: 54% 58%;
  pointer-events: none;
}

.cutin-motion-hair {
  top: calc(50% - clamp(270px, 46vh, 392px));
  height: clamp(170px, 28vh, 250px);
  background-position: 0 0;
  mask-image: linear-gradient(180deg, transparent 0%, #000 24%, #000 72%, transparent 100%);
}

.cutin-motion-torso {
  top: calc(50% - clamp(10px, 2vh, 28px));
  height: clamp(150px, 24vh, 226px);
  background-position: 0 calc(clamp(280px, 48vh, 410px) * -1);
  opacity: 0;
  mask-image: linear-gradient(180deg, transparent 0%, #000 20%, #000 76%, transparent 100%);
}

.cutin-full-body {
  position: absolute;
  z-index: 0;
  right: clamp(14px, 4vw, 68px);
  top: 50%;
  width: clamp(420px, 36vw, 620px);
  height: clamp(720px, 104vh, 900px);
  background-image:
    linear-gradient(90deg, rgba(7, 16, 24, 0.06), rgba(7, 16, 24, 0.52)),
    var(--support-full-body);
  background-size: cover, var(--support-full-body-size);
  background-position: center, var(--support-full-body-position);
  background-repeat: no-repeat;
  opacity: 0.32;
  transform: translateY(-50%) scale(1);
  filter: saturate(0.82) brightness(0.82) drop-shadow(0 0 26px var(--support-accent-faint));
  mask-image: linear-gradient(90deg, transparent 0%, #000 16%, #000 86%, transparent 100%);
  pointer-events: none;
}

.cutin-operator .cutin-copy {
  position: absolute;
  z-index: 4;
  left: clamp(470px, 48vw, 720px);
  right: clamp(26px, 5vw, 82px);
  bottom: clamp(76px, 16vh, 150px);
  max-width: 610px;
  margin: 0;
  isolation: isolate;
}

.cutin-operator .cutin-copy::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: -20px -28px -24px -24px;
  background:
    linear-gradient(90deg, rgba(2, 7, 13, 0.92), rgba(2, 7, 13, 0.74) 72%, rgba(2, 7, 13, 0.08)),
    radial-gradient(circle at 12% 42%, var(--support-accent-faint), transparent 48%);
  filter: blur(0.2px);
}

.cutin-operator .cutin-copy p,
.cutin-operator .cutin-copy h3,
.cutin-operator .cutin-copy span {
  position: relative;
  z-index: 1;
}

.cutin-overlay.active .cutin-operator img {
  animation: operatorPortraitInertia 780ms cubic-bezier(.2, .9, .18, 1) both;
}

.cutin-overlay.active .cutin-full-body {
  animation: operatorFullBodyIn 900ms cubic-bezier(.2, .9, .18, 1) both;
}

.cutin-overlay.active .cutin-motion-hair {
  animation: cutinHairDrift 1180ms cubic-bezier(.2, .9, .18, 1) both;
}

.cutin-overlay.active .cutin-motion-torso {
  animation: cutinTorsoPulse 980ms cubic-bezier(.2, .9, .18, 1) 80ms both;
}

.cutin-overlay.active[data-support="jammer"] .cutin-operator img {
  animation: operatorGlitchIn 820ms steps(2, end) both;
}

.cutin-overlay.active[data-support="mechanic"] .cutin-operator img {
  animation: operatorImpactIn 760ms cubic-bezier(.18, 1, .22, 1) both;
}

.cutin-overlay.active[data-support="forecaster"] .cutin-operator img {
  animation: operatorFloatIn 900ms cubic-bezier(.2, .9, .18, 1) both;
}

.cutin-overlay.active[data-support="drone"] .cutin-operator img {
  animation: operatorRelayIn 820ms cubic-bezier(.16, 1.1, .2, 1) both;
}

.cutin-overlay.active[data-support="jammer"] .cutin-full-body {
  animation: operatorFullBodyGlitchIn 940ms steps(2, end) both;
}

.cutin-overlay.active[data-support="jammer"] .cutin-motion-hair {
  animation: cutinHairGlitch 900ms steps(2, end) both;
}

.cutin-overlay.active[data-support="jammer"] .cutin-motion-torso {
  animation: cutinTorsoGlitch 860ms steps(2, end) 60ms both;
}

.cutin-overlay.active[data-support="mechanic"] .cutin-full-body {
  animation: operatorFullBodyImpactIn 880ms cubic-bezier(.18, 1, .22, 1) both;
}

.cutin-overlay.active[data-support="mechanic"] .cutin-motion-hair {
  animation: cutinHairImpact 1000ms cubic-bezier(.18, 1, .22, 1) both;
}

.cutin-overlay.active[data-support="mechanic"] .cutin-motion-torso {
  animation: cutinTorsoImpact 900ms cubic-bezier(.18, 1, .22, 1) 40ms both;
}

.cutin-overlay.active[data-support="forecaster"] .cutin-full-body {
  animation: operatorFullBodyFloatIn 1080ms cubic-bezier(.2, .9, .18, 1) both;
}

.cutin-overlay.active[data-support="forecaster"] .cutin-motion-hair {
  animation: cutinHairFloat 1320ms cubic-bezier(.2, .9, .18, 1) both;
}

.cutin-overlay.active[data-support="forecaster"] .cutin-motion-torso {
  animation: cutinTorsoFloat 1180ms cubic-bezier(.2, .9, .18, 1) 120ms both;
}

.cutin-overlay.active[data-support="drone"] .cutin-full-body {
  animation: operatorFullBodyRelayIn 940ms cubic-bezier(.16, 1.1, .2, 1) both;
}

.cutin-overlay.active[data-support="drone"] .cutin-motion-hair {
  animation: cutinHairRelay 960ms cubic-bezier(.16, 1.1, .2, 1) both;
}

.cutin-overlay.active[data-support="drone"] .cutin-motion-torso {
  animation: cutinTorsoRelay 900ms cubic-bezier(.16, 1.1, .2, 1) 60ms both;
}

.cutin-copy {
  min-width: 0;
  padding: 16px 20px;
  font-family: var(--cut-body-font);
  font-feature-settings: "palt";
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.85);
}

.cutin-copy p {
  margin: 0 0 4px;
  color: var(--support-accent);
  font-family: var(--cut-ui-font);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
}

.cutin-copy h3 {
  margin: 0 0 8px;
  color: #f2f7fb;
  font-family: var(--cut-title-font);
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
}

.cutin-copy span {
  display: block;
  color: #eaf4fb;
  font-family: var(--cut-body-font);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.42;
  letter-spacing: 0;
}

.cutin-overlay.active .cutin-copy p,
.cutin-overlay.active .cutin-copy h3,
.cutin-overlay.active .cutin-copy span {
  animation: cutinTextIn 520ms cubic-bezier(.2, .9, .18, 1) both;
}

.cutin-overlay.active .cutin-copy p {
  animation-delay: 180ms;
}

.cutin-overlay.active .cutin-copy h3 {
  animation-delay: 260ms;
}

.cutin-overlay.active .cutin-copy span {
  animation-delay: 360ms;
}

.cutin-overlay.active .cutin-operator .cutin-copy p,
.cutin-overlay.active .cutin-operator .cutin-copy h3,
.cutin-overlay.active .cutin-operator .cutin-copy span {
  animation-duration: 220ms;
  animation-delay: 70ms;
}

.limiter-release-layer {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: none;
  pointer-events: none;
}

.cutin-overlay[data-kind="limiterRelease"]::before {
  background: transparent;
  box-shadow: none;
  opacity: 1;
  filter: none;
}

.cutin-overlay[data-kind="limiterRelease"] .limiter-release-layer {
  display: block;
}

.cutin-overlay[data-kind="limiterRelease"] .cutin-operator::before {
  display: none;
}

.cutin-overlay[data-kind="limiterRelease"] .cutin-operator::after {
  display: none;
}

.cutin-overlay.active[data-kind="limiterRelease"] .cutin-operator::after {
  animation: none;
}

.cutin-overlay[data-kind="limiterRelease"] .cutin-operator img,
.cutin-overlay[data-kind="limiterRelease"] .cutin-motion-strip,
.cutin-overlay[data-kind="limiterRelease"] .cutin-operator .cutin-copy,
.cutin-overlay[data-kind="limiterRelease"] .cutin-full-body {
  display: none;
}

.limiter-release-copy {
  --limiter-release-accent: #ff4b5c;
  --limiter-release-panel: rgba(2, 7, 13, 0.94);
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  display: grid;
  grid-template-columns: minmax(170px, 0.82fr) minmax(320px, 1.44fr) minmax(170px, 0.82fr);
  grid-template-areas:
    "kicker title support"
    "count count count";
  column-gap: 22px;
  row-gap: 12px;
  align-items: center;
  width: 100%;
  min-height: 126px;
  padding: 20px clamp(34px, 5.2vw, 72px) 22px;
  font-family: var(--cut-title-font);
  text-align: left;
  text-shadow: 0 3px 16px rgba(0, 0, 0, 0.86);
  transform: translateY(-50%);
  background: var(--limiter-release-panel);
  border-top: 2px solid var(--limiter-release-accent);
  border-bottom: 2px solid var(--limiter-release-accent);
  box-shadow:
    0 0 38px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 -1px 0 rgba(255, 255, 255, 0.045);
}

.limiter-release-copy::before,
.limiter-release-copy::after {
  content: "";
  position: absolute;
  left: clamp(28px, 4.6vw, 64px);
  right: clamp(28px, 4.6vw, 64px);
  height: 1px;
  background: rgba(255, 75, 92, 0.72);
  opacity: 0.86;
}

.limiter-release-copy::before {
  top: 13px;
}

.limiter-release-copy::after {
  bottom: 13px;
}

.limiter-release-copy p,
.limiter-release-copy h2,
.limiter-release-copy span,
.limiter-release-copy b {
  margin: 0;
  letter-spacing: 0;
}

.limiter-release-copy p {
  grid-area: kicker;
  font-family: var(--cut-ui-font);
  color: var(--limiter-release-accent);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  text-align: left;
}

.limiter-release-copy h2 {
  grid-area: title;
  color: #f8fbff;
  font-size: 44px;
  font-weight: 900;
  line-height: 1.02;
  text-align: center;
}

.limiter-release-copy span {
  grid-area: count;
  justify-self: stretch;
  display: block;
  min-width: 0;
  padding-top: 1px;
  color: #ffbfc5;
  font-family: var(--cut-ui-font);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.1;
  text-align: center;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.82);
}

.limiter-release-copy b {
  grid-area: support;
  display: block;
  color: rgba(244, 248, 255, 0.72);
  font-family: var(--cut-ui-font);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.25;
  text-align: right;
}

.cutin-overlay.active[data-kind="limiterRelease"] .limiter-release-copy p {
  animation: limiterReleaseTextIn 360ms cubic-bezier(.2, .9, .18, 1) 120ms both;
}

.cutin-overlay.active[data-kind="limiterRelease"] .limiter-release-copy h2 {
  animation: limiterReleaseTextIn 420ms cubic-bezier(.2, .9, .18, 1) 220ms both;
}

.cutin-overlay.active[data-kind="limiterRelease"] .limiter-release-copy span {
  animation: limiterReleaseSystemLog 460ms cubic-bezier(.2, .9, .18, 1) 420ms both;
}

.cutin-overlay.active[data-kind="limiterRelease"] .limiter-release-copy b {
  animation: limiterReleaseTextIn 360ms cubic-bezier(.2, .9, .18, 1) 180ms both;
}

.limiter-release-authorization {
  position: absolute;
  left: 50%;
  top: calc(50% + 68px);
  display: grid;
  grid-template-columns: repeat(6, minmax(10px, 1fr));
  gap: 8px;
  width: min(420px, calc(100% - 430px));
  transform: translateX(-50%);
}

.limiter-release-authorization span {
  height: 3px;
  background: var(--limiter-release-accent, #ff4b5c);
  box-shadow: 0 0 10px rgba(255, 75, 92, 0.34);
  opacity: 0;
}

.cutin-overlay.active[data-kind="limiterRelease"] .limiter-release-authorization span {
  animation: limiterReleaseSeal 420ms cubic-bezier(.2, .9, .18, 1) both;
}

.cutin-overlay.active[data-kind="limiterRelease"] .limiter-release-authorization span:nth-child(1) {
  animation-delay: 260ms;
}

.cutin-overlay.active[data-kind="limiterRelease"] .limiter-release-authorization span:nth-child(2) {
  animation-delay: 350ms;
}

.cutin-overlay.active[data-kind="limiterRelease"] .limiter-release-authorization span:nth-child(3) {
  animation-delay: 440ms;
}

.cutin-overlay.active[data-kind="limiterRelease"] .limiter-release-authorization span:nth-child(4) {
  animation-delay: 530ms;
}

.cutin-overlay.active[data-kind="limiterRelease"] .limiter-release-authorization span:nth-child(5) {
  animation-delay: 620ms;
}

.cutin-overlay.active[data-kind="limiterRelease"] .limiter-release-authorization span:nth-child(6) {
  animation-delay: 710ms;
}

.comm-cutin {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  z-index: 32;
  display: flex;
  justify-content: center;
  padding: 0 clamp(18px, 4vw, 64px);
  pointer-events: none;
  opacity: 0;
  transform: translateY(-50%) translateX(-28px);
}

.comm-cutin.active {
  opacity: 1;
  animation: commCutinIn var(--comm-duration, 1.15s) cubic-bezier(.18, .9, .2, 1) both;
}

.stage.paused .comm-cutin.active {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
  filter: brightness(1) blur(0);
  animation-play-state: paused;
}

.stage.paused .comm-cutin.active .comm-band::before {
  animation-play-state: paused;
}

.rescue-cutin {
  position: absolute;
  inset: 0;
  z-index: 26;
  overflow: hidden;
  opacity: 0;
}

.rescue-cutin.hidden {
  display: none;
}

.rescue-cutin.active {
  opacity: 1;
  animation: rescueCutinHold var(--rescue-duration, 3.2s) ease-out both;
}

.stage.paused .rescue-cutin.active {
  opacity: 1;
  filter: brightness(1) blur(0);
  animation-play-state: paused;
}

.stage.paused .rescue-cutin.active .rescue-cutin-copy {
  animation-play-state: paused;
}

.rescue-cutin img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--rescue-image-position, 58% 50%);
  opacity: 0.68;
  filter: saturate(0.98) brightness(0.78) contrast(1.02);
  transform: scale(1.04);
}

.rescue-cutin-vignette {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(4, 9, 15, 0.72), rgba(4, 9, 15, 0.34) 38%, rgba(4, 9, 15, 0.06) 66%, rgba(4, 9, 15, 0.48)),
    linear-gradient(180deg, rgba(4, 9, 15, 0.18), transparent 34%, rgba(4, 9, 15, 0.78) 84%, rgba(4, 9, 15, 0.94));
}

.rescue-cutin-vignette::after {
  content: "";
  position: absolute;
  left: clamp(22px, 5vw, 76px);
  right: clamp(22px, 5vw, 76px);
  bottom: clamp(76px, 11vh, 118px);
  height: 1px;
  background: linear-gradient(90deg, var(--rescue-accent, #82f2e5), rgba(255, 242, 168, 0.48), transparent);
  opacity: 0.72;
  box-shadow: 0 0 22px var(--rescue-accent-faint, rgba(130, 242, 229, 0.18));
}

.rescue-cutin-copy {
  position: absolute;
  left: clamp(22px, 5vw, 76px);
  right: clamp(22px, 5vw, 76px);
  bottom: clamp(32px, 5.8vh, 54px);
  width: auto;
  max-width: 1180px;
  padding: clamp(16px, 2.4vw, 28px) clamp(18px, 3vw, 38px);
  color: #f6fbff;
  font-family: var(--cut-body-font);
  font-feature-settings: "palt";
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.9);
  transform: translateX(-18px);
  animation: rescueTextIn 680ms cubic-bezier(.18, .9, .2, 1) 120ms both;
  background:
    linear-gradient(90deg, rgba(2, 7, 13, 0.9), rgba(2, 7, 13, 0.58) 58%, rgba(2, 7, 13, 0.18)),
    linear-gradient(180deg, rgba(130, 242, 229, 0.08), transparent 72%);
  border-top: 1px solid rgba(130, 242, 229, 0.32);
  box-shadow: 0 -18px 48px rgba(2, 5, 12, 0.34);
}

.rescue-cutin-copy p,
.rescue-cutin-copy h3 {
  margin: 0;
}

#rescueCutinKicker {
  color: var(--rescue-accent, #82f2e5);
  font-family: var(--cut-ui-font);
  font-size: clamp(10px, 1vw, 12px);
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

#rescueCutinTitle {
  margin-top: 8px;
  font-family: var(--cut-title-font);
  font-size: clamp(32px, 4.4vw, 58px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0;
}

#rescueCutinLine {
  margin-top: 10px;
  color: rgba(246, 251, 255, 0.92);
  max-width: 760px;
  font-size: clamp(19px, 1.85vw, 26px);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0;
  white-space: pre-line;
}

.rescue-cutin-copy::after {
  content: "A / B / SPACE / ENTER";
  display: inline-block;
  margin-top: 22px;
  padding: 5px 0 0;
  border-top: 1px solid color-mix(in srgb, var(--rescue-accent, #82f2e5), transparent 42%);
  color: color-mix(in srgb, var(--rescue-accent, #82f2e5), #ffffff 28%);
  background: transparent;
  font-family: var(--cut-ui-font);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
}

.route-location-cutin {
  --route-location-accent: #82f2e5;
  --route-location-opacity: 1;
  position: absolute;
  inset: 0;
  z-index: 24;
  display: grid;
  place-items: center;
  padding: clamp(8px, 1.6vw, 24px);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.015);
  transition: opacity 160ms ease, transform 200ms ease, visibility 0s linear 200ms;
}

.route-location-cutin::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 48%, color-mix(in srgb, var(--route-location-accent), transparent 88%), transparent 48%),
    #02060d;
}

.route-location-cutin.active {
  opacity: var(--route-location-opacity);
  visibility: visible;
  pointer-events: auto;
  transform: scale(1);
  transition: opacity 160ms ease, transform 200ms ease;
}

.route-location-cutin:not(.active) .route-location-card {
  pointer-events: none;
}

.route-location-card {
  position: relative;
  width: min(96vw, calc((100vh - 250px) * 1.777), 1480px);
  max-height: calc(100% - 20px);
  padding: clamp(10px, 1vw, 16px);
  pointer-events: auto;
  border: 1px solid color-mix(in srgb, var(--route-location-accent), transparent 34%);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(4, 12, 22, 0.985), rgba(5, 13, 24, 0.96) 58%, rgba(2, 5, 12, 0.985)),
    repeating-linear-gradient(180deg, rgba(243, 247, 251, 0.035) 0 1px, transparent 1px 14px);
  box-shadow:
    0 0 38px color-mix(in srgb, var(--route-location-accent), transparent 68%),
    inset 0 0 26px rgba(255, 255, 255, 0.045);
}

.route-location-heading {
  display: grid;
  grid-template-columns: minmax(190px, 0.3fr) 1fr;
  gap: clamp(10px, 1.5vw, 22px);
  align-items: end;
  margin-bottom: clamp(6px, 0.8vw, 10px);
}

.route-location-heading p,
.route-location-heading h2,
.route-location-heading span {
  margin: 0;
  letter-spacing: 0;
  text-shadow: 0 0 14px rgba(0, 0, 0, 0.86);
}

#routeLocationKicker {
  color: var(--route-location-accent);
  font: 900 clamp(12px, 1.3vw, 15px) var(--cut-ui-font);
  white-space: nowrap;
}

#routeLocationStage {
  color: #f7fbff;
  font: 900 clamp(28px, 4.1vw, 54px) var(--cut-ui-font);
  line-height: 0.92;
}

#routeLocationName {
  color: #dcefff;
  font: 900 clamp(18px, 2.2vw, 28px) var(--dialogue-font);
  line-height: 1.15;
}

#routeLocationTag {
  display: block;
  margin-top: 6px;
  color: var(--route-location-accent);
  font: 800 clamp(12px, 1.4vw, 16px) var(--dialogue-font);
}

.route-location-prompt {
  margin: clamp(6px, 0.8vw, 10px) 0 0;
  color: color-mix(in srgb, var(--route-location-accent), #ffffff 34%);
  font: 900 clamp(12px, 1.35vw, 16px) var(--cut-ui-font);
  letter-spacing: 0;
  text-align: right;
  text-shadow: 0 0 14px rgba(0, 0, 0, 0.86);
}

.route-location-cutin[data-assets="loading"] .route-location-prompt {
  display: inline-flex;
  justify-self: end;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 216, 110, 0.45);
  color: #fff2a8;
  background: rgba(38, 22, 8, 0.58);
  box-shadow: inset 0 0 18px rgba(255, 216, 110, 0.1), 0 0 20px rgba(255, 216, 110, 0.12);
}

.route-location-cutin[data-assets="loading"] .route-location-prompt::before {
  content: "";
  width: 9px;
  height: 9px;
  border: 2px solid rgba(255, 242, 168, 0.34);
  border-top-color: #fff2a8;
  border-radius: 50%;
  animation: routeLoadingSpin 900ms linear infinite;
}

.route-location-cutin[data-assets="ready"] .route-location-prompt {
  color: #9efff1;
}

@keyframes routeLoadingSpin {
  to {
    transform: rotate(360deg);
  }
}

.route-location-map-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1672 / 941;
  perspective: 980px;
  border: 1px solid rgba(243, 247, 251, 0.2);
  border-radius: 6px;
  background:
    linear-gradient(rgba(130, 242, 229, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(130, 242, 229, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 46% 48%, rgba(82, 160, 180, 0.16), transparent 44%),
    rgba(4, 10, 20, 0.92);
  background-size: 48px 48px, 48px 48px, auto, auto;
  transform: rotateX(3.6deg) rotateY(-2.2deg) rotateZ(-0.25deg);
  transform-origin: 50% 58%;
  box-shadow:
    0 24px 46px rgba(0, 0, 0, 0.5),
    0 0 28px rgba(130, 242, 229, 0.08),
    inset 0 0 42px rgba(0, 0, 0, 0.68);
}

.route-location-map-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(2, 7, 13, 0.04), rgba(2, 7, 13, 0.12)),
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0 1px, transparent 1px 12px);
}

.route-control-view {
  position: absolute;
  inset: 0;
  isolation: isolate;
  color: #edf7ff;
  font-family: var(--cut-ui-font);
}

.route-control-view[data-source="stage-map"] {
  overflow: hidden;
  box-shadow:
    inset 0 0 42px rgba(0, 0, 0, 0.38),
    0 0 34px rgba(130, 242, 229, 0.1);
}

.route-control-view::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 50% 50%, rgba(21, 48, 62, 0.52), transparent 54%),
    rgba(2, 7, 13, 0.94);
}

.route-control-map-image {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.04) brightness(0.9);
}

.route-control-view[data-source="stage-map"]::before {
  z-index: 2;
  background:
    linear-gradient(118deg, rgba(130, 242, 229, 0.12), transparent 18% 68%, rgba(255, 120, 185, 0.1)),
    radial-gradient(ellipse at 72% 68%, rgba(130, 242, 229, 0.14), transparent 44%),
    linear-gradient(180deg, transparent 0%, rgba(2, 7, 13, 0.08) 62%, rgba(2, 7, 13, 0.28) 100%);
  mix-blend-mode: screen;
  pointer-events: none;
}

.route-control-view[data-source="stage-map"]::after {
  content: "";
  position: absolute;
  z-index: 3;
  inset: 0;
  background:
    linear-gradient(rgba(130, 242, 229, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(130, 242, 229, 0.03) 1px, transparent 1px),
    linear-gradient(106deg, transparent 0 42%, rgba(255, 255, 255, 0.1) 45%, transparent 49% 100%);
  background-size: 44px 44px, 44px 44px, auto;
  opacity: 0.52;
  mix-blend-mode: screen;
  pointer-events: none;
}

.route-control-view[data-source="stage-map"] .route-control-lines,
.route-control-view[data-source="stage-map"] .route-zone,
.route-control-view[data-source="stage-map"] .route-landmark,
.route-control-view[data-source="stage-map"] .route-entity,
.route-control-view[data-source="stage-map"] .route-yui-node,
.route-control-view[data-source="stage-map"] .route-noa-source,
.route-control-view[data-source="stage-map"] .route-control-core,
.route-control-view[data-source="stage-map"] .route-next-label {
  display: none;
}

.route-control-view[data-source="stage-map"] .route-control-status {
  background: linear-gradient(90deg, rgba(2, 8, 14, 0.82), rgba(2, 8, 14, 0.34), transparent);
  padding: 8px 10px;
  border-left: 2px solid rgba(130, 242, 229, 0.34);
}

.route-control-lines {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
}

.route-line {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;
  transition: opacity 160ms ease, stroke-width 160ms ease;
}

.route-line.return-thread {
  opacity: 0.42;
  stroke: rgba(130, 242, 229, 0.5);
  stroke-width: 7;
  filter: drop-shadow(0 0 10px rgba(130, 242, 229, 0.22));
}

.route-line.red-thread {
  stroke: rgba(255, 79, 132, 0.9);
  stroke-width: 9;
  stroke-dasharray: 18 18;
  filter: drop-shadow(0 0 12px rgba(255, 79, 132, 0.42));
}

.route-line.temp-route {
  stroke: rgba(130, 242, 229, 0.94);
  stroke-width: 9;
  filter: drop-shadow(0 0 13px rgba(130, 242, 229, 0.48));
}

.route-line.false-signal {
  stroke: rgba(255, 79, 184, 0.92);
  stroke-width: 7;
  stroke-dasharray: 11 13;
  filter: drop-shadow(0 0 12px rgba(255, 79, 184, 0.36));
}

.route-line.noa-broadcast {
  stroke: rgba(255, 226, 138, 0.94);
  stroke-width: 4;
  stroke-dasharray: 6 12;
  filter: drop-shadow(0 0 10px rgba(255, 226, 138, 0.34));
}

.route-line.signal-split {
  stroke: rgba(216, 198, 255, 0.94);
  stroke-width: 4;
  stroke-dasharray: 10 10;
  filter: drop-shadow(0 0 10px rgba(216, 198, 255, 0.34));
}

.route-control-view[data-red-thread="true"] .route-line.red-thread,
.route-control-view[data-temp-route="ready"] .route-line.temp-route,
.route-control-view[data-temp-route="online"] .route-line.temp-route,
.route-control-view[data-temp-route="stressed"] .route-line.temp-route,
.route-control-view[data-false-signal="true"] .route-line.false-signal,
.route-control-view[data-noa="true"] .route-line.noa-broadcast,
.route-control-view[data-signal-split="true"] .route-line.signal-split {
  opacity: 0.86;
}

.route-control-view[data-temp-route="ready"] .route-line.temp-route {
  opacity: 0.34;
  stroke-dasharray: 16 18;
}

.route-control-view[data-temp-route="stressed"] .route-line.temp-route {
  opacity: 0.76;
  stroke-dasharray: 18 12;
}

.route-zone,
.route-landmark,
.route-noa-source,
.route-control-core {
  position: absolute;
  z-index: 3;
  padding: 4px 7px;
  border: 1px solid rgba(220, 246, 255, 0.16);
  background: rgba(2, 8, 14, 0.64);
  color: rgba(234, 248, 255, 0.72);
  font: 900 clamp(9px, 1vw, 12px) var(--cut-ui-font);
  line-height: 1;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
  transition: opacity 160ms ease, filter 160ms ease;
}

.route-zone-safe {
  left: 9%;
  top: 45%;
  color: rgba(130, 242, 229, 0.78);
}

.route-zone-lost {
  right: 4%;
  bottom: 9%;
  color: rgba(255, 120, 185, 0.78);
  border-color: rgba(255, 120, 185, 0.2);
}

.route-landmark-debris {
  left: 34%;
  top: 16%;
}

.route-landmark-old-station {
  left: 75%;
  top: 18%;
  opacity: 0.2;
}

.route-landmark-exit {
  right: 7%;
  top: 34%;
  opacity: 0.25;
}

.route-control-view[data-debris="true"] .route-landmark-debris,
.route-control-view[data-old-station="true"] .route-landmark-old-station,
.route-control-view[data-exit="true"] .route-landmark-exit {
  opacity: 0.92;
  filter: drop-shadow(0 0 12px rgba(130, 242, 229, 0.22));
}

.route-entity {
  --u: 50%;
  --v: 50%;
  position: absolute;
  z-index: 4;
  left: var(--u);
  top: var(--v);
  transform: translate(-50%, -50%);
  transition: left 160ms ease, top 160ms ease, opacity 160ms ease, filter 160ms ease;
}

.route-image-entity {
  width: clamp(34px, 4.8vw, 64px);
  height: clamp(34px, 4.8vw, 64px);
  object-fit: contain;
  opacity: 0.86;
  filter:
    drop-shadow(0 0 15px rgba(130, 242, 229, 0.24))
    drop-shadow(0 8px 16px rgba(0, 0, 0, 0.54));
}

.route-damaged-station {
  width: clamp(36px, 5vw, 66px);
  height: clamp(36px, 5vw, 66px);
  opacity: 0;
  filter:
    drop-shadow(0 0 18px rgba(255, 79, 132, 0.42))
    drop-shadow(0 8px 16px rgba(0, 0, 0, 0.56));
}

.route-control-view[data-damaged-station="true"] .route-damaged-station {
  opacity: 0.92;
}

.route-convoy {
  width: clamp(42px, 5.2vw, 68px);
  height: clamp(42px, 5.2vw, 68px);
  opacity: 0.72;
}

.route-mothership {
  width: clamp(46px, 5.8vw, 76px);
  height: clamp(46px, 5.8vw, 76px);
  opacity: 0.82;
  filter:
    drop-shadow(0 0 16px rgba(255, 242, 168, 0.28))
    drop-shadow(0 8px 16px rgba(0, 0, 0, 0.56));
}

.route-arx {
  width: clamp(34px, 4.4vw, 58px);
  height: clamp(34px, 4.4vw, 58px);
  opacity: 0.98;
  filter:
    drop-shadow(0 0 16px var(--route-location-accent))
    drop-shadow(0 8px 16px rgba(0, 0, 0, 0.58));
}

.route-next-object {
  z-index: 3;
  width: clamp(34px, 4.7vw, 62px);
  height: clamp(34px, 4.7vw, 62px);
  opacity: 0;
  filter:
    drop-shadow(0 0 18px rgba(255, 242, 168, 0.32))
    drop-shadow(0 8px 16px rgba(0, 0, 0, 0.54));
}

.route-next-label {
  --u: 50%;
  --v: 50%;
  position: absolute;
  z-index: 5;
  left: var(--u);
  top: var(--v);
  transform: translate(-50%, calc(-50% - clamp(34px, 4.2vw, 52px)));
  padding: 4px 7px;
  border: 1px solid rgba(255, 242, 168, 0.38);
  background: rgba(2, 8, 14, 0.72);
  color: #fff2a8;
  font: 900 clamp(9px, 0.92vw, 11px) var(--cut-ui-font);
  line-height: 1;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
  opacity: 0;
  pointer-events: none;
  transition: left 160ms ease, top 160ms ease, opacity 160ms ease;
}

.route-control-view[data-next-object="true"] .route-next-object {
  opacity: 0.9;
}

.route-control-view[data-next-object="true"] .route-next-label {
  opacity: 0.94;
}

.route-yui-node {
  position: absolute;
  z-index: 4;
  width: clamp(20px, 2.6vw, 36px);
  height: clamp(20px, 2.6vw, 36px);
  object-fit: contain;
  opacity: 0;
  transform: translate(-50%, -50%);
  filter:
    drop-shadow(0 0 16px rgba(130, 242, 229, 0.38))
    drop-shadow(0 6px 12px rgba(0, 0, 0, 0.54));
  transition: opacity 160ms ease, filter 160ms ease;
}

.route-yui-node.yui-a {
  left: 70%;
  top: 27%;
}

.route-yui-node.yui-b {
  left: 61%;
  top: 42%;
}

.route-yui-node.yui-c {
  left: 58%;
  top: 60%;
}

.route-yui-node.yui-d {
  left: 76%;
  top: 67%;
}

.route-control-view[data-yui-nodes="true"] .route-yui-node {
  opacity: 0.94;
}

.route-noa-source {
  left: 48%;
  bottom: 13%;
  color: #fff2a8;
  border-color: rgba(255, 242, 168, 0.3);
  opacity: 0;
}

.route-control-view[data-noa="true"] .route-noa-source {
  opacity: 0.94;
}

.route-control-core {
  right: 8%;
  top: 43%;
  color: #fff2a8;
  border-color: rgba(255, 242, 168, 0.36);
  opacity: 0;
}

.route-control-view[data-control-core="true"] .route-control-core {
  opacity: 0.94;
}

.route-control-status {
  position: absolute;
  z-index: 5;
  left: clamp(10px, 1.2vw, 18px);
  right: clamp(10px, 1.2vw, 18px);
  bottom: clamp(10px, 1vw, 16px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
  pointer-events: none;
}

#routeControlStageSummary {
  margin: 0;
  max-width: 620px;
  color: #f4fbff;
  font: 800 clamp(12px, 1.35vw, 16px) var(--dialogue-font);
  line-height: 1.35;
  text-shadow: 0 0 14px rgba(0, 0, 0, 0.9);
}

.route-control-state-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  max-width: 520px;
}

.route-control-state-chips span,
.route-control-history button {
  border: 1px solid rgba(220, 246, 255, 0.18);
  background: rgba(2, 8, 14, 0.72);
  color: rgba(234, 248, 255, 0.78);
  font: 900 clamp(9px, 0.92vw, 11px) var(--cut-ui-font);
  line-height: 1;
}

.route-control-state-chips span {
  padding: 5px 7px;
}

.route-control-state-chips .safe {
  color: #9bf9ff;
  border-color: rgba(130, 242, 229, 0.34);
}

.route-control-state-chips .warn {
  color: #ffd9e6;
  border-color: rgba(255, 120, 185, 0.34);
}

.route-control-state-chips .gold {
  color: #fff2a8;
  border-color: rgba(255, 242, 168, 0.34);
}

.route-control-history {
  display: flex;
  gap: 5px;
  margin-top: 8px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.route-control-history button {
  min-width: clamp(42px, 4.2vw, 56px);
  min-height: 30px;
  padding: 5px 6px;
  cursor: pointer;
  text-align: center;
}

.route-control-history button.current {
  color: #fff2a8;
  border-color: rgba(255, 242, 168, 0.48);
}

.route-control-history button.reviewing {
  color: #9bf9ff;
  border-color: rgba(130, 242, 229, 0.56);
  box-shadow: inset 0 0 18px rgba(130, 242, 229, 0.08);
}

@media (max-height: 520px) {
  .route-location-card {
    width: min(96vw, calc((100vh - 32px) * 1.34));
    padding: 8px;
  }

  .route-location-heading {
    grid-template-columns: minmax(120px, 0.45fr) 1fr;
    gap: 8px;
    margin-bottom: 4px;
  }

  #routeLocationKicker {
    font-size: 11px;
    white-space: normal;
  }

  #routeLocationStage {
    font-size: clamp(22px, 4vw, 28px);
  }

  #routeLocationName {
    font-size: clamp(14px, 2.8vw, 18px);
  }

  #routeLocationTag {
    margin-top: 3px;
    font-size: 12px;
  }

  .route-location-map-frame {
    aspect-ratio: 2.18 / 1;
  }

  #routeControlStageSummary {
    font-size: 12px;
  }

  .route-control-status {
    grid-template-columns: minmax(0, 1fr);
    gap: 5px;
  }

  .route-control-state-chips {
    justify-content: flex-start;
  }

  .route-control-state-chips span {
    padding: 4px 6px;
  }

  .route-control-history {
    margin-top: 5px;
  }

  .route-control-history button {
    min-height: 24px;
    min-width: 44px;
    padding: 4px 5px;
  }

  .route-location-prompt {
    margin-top: 4px;
    font-size: 11px;
  }
}

.comm-band {
  position: relative;
  width: min(74%, 860px);
  min-height: 116px;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 14px 24px 14px 22px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(5, 12, 20, 0.88), rgba(5, 12, 20, 0.66) 74%, transparent),
    linear-gradient(180deg, var(--support-accent-faint), transparent 58%);
  border-left: 4px solid var(--support-accent);
  box-shadow:
    inset 0 0 30px var(--support-accent-faint),
    0 14px 36px rgba(0, 0, 0, 0.32);
}

.comm-band::before {
  content: "";
  position: absolute;
  inset: 0 -28%;
  background:
    linear-gradient(104deg, transparent 0 42%, var(--support-accent-soft) 44%, transparent 49% 100%),
    repeating-linear-gradient(0deg, transparent 0 14px, rgba(255, 255, 255, 0.05) 15px 16px);
  opacity: 0;
  mix-blend-mode: screen;
  animation: commScan 1.15s ease-out both;
}

.comm-portrait {
  position: relative;
  z-index: 1;
  width: 84px;
  height: 84px;
  border: 0;
  background:
    radial-gradient(ellipse at 50% 54%, rgba(130, 242, 229, 0.14), transparent 58%),
    var(--support-portrait),
    transparent;
  background-repeat: no-repeat;
  background-size: cover, var(--support-portrait-size), auto;
  background-position: center, var(--support-portrait-position), center;
  box-shadow: none;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.48)) drop-shadow(0 0 16px var(--support-accent-faint));
  mask-image: radial-gradient(ellipse at 50% 52%, #000 0 56%, rgba(0, 0, 0, 0.78) 70%, transparent 100%);
}

.comm-pilot {
  display: none;
  position: relative;
  z-index: 1;
  grid-column: 3;
  grid-row: 1 / span 2;
  justify-self: end;
  width: 72px;
  height: 82px;
  overflow: hidden;
  border: 0;
  background:
    radial-gradient(ellipse at 50% 54%, rgba(255, 242, 168, 0.12), transparent 58%),
    var(--comm-pilot-portrait, url("assets/runtime/cutin/pilot-cutin.webp")),
    transparent;
  background-repeat: no-repeat;
  background-size: cover, var(--comm-pilot-size, 250%), auto;
  background-position: center, var(--comm-pilot-position, 54% 31%), center;
  box-shadow: none;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.46)) drop-shadow(0 0 14px rgba(255, 242, 168, 0.12));
  mask-image: radial-gradient(ellipse at 50% 52%, #000 0 58%, rgba(0, 0, 0, 0.72) 72%, transparent 100%);
}

.comm-pilot::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(145deg, transparent 0 52%, rgba(255, 255, 255, 0.1) 53%, transparent 64%),
    radial-gradient(circle at 72% 76%, rgba(255, 78, 88, 0.28), transparent 19%);
  pointer-events: none;
}

.comm-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
  font-family: var(--cut-body-font);
  font-feature-settings: "palt";
}

.comm-copy p,
.comm-copy h3,
#commPilotLine {
  margin: 0;
}


.comm-copy h3 {
  margin-top: 2px;
  color: #f2f7fb;
  font-family: var(--cut-title-font);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0;
}

#commLine {
  margin-top: 6px;
  color: #f3f7fb;
  font-family: var(--cut-body-font);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.38;
  letter-spacing: 0;
  white-space: pre-line;
}

#commPilotLine {
  display: none;
  grid-column: 2;
  position: relative;
  z-index: 1;
  margin-top: -6px;
  color: rgba(255, 242, 210, 0.86);
  font-family: var(--cut-body-font);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.42;
  letter-spacing: 0;
}

.comm-cutin[data-noise="true"] .comm-band {
  border-left-color: #ff4f68;
  background:
    linear-gradient(90deg, rgba(34, 8, 17, 0.94), rgba(24, 8, 16, 0.72) 72%, transparent),
    repeating-linear-gradient(0deg, rgba(255, 79, 104, 0.14) 0 2px, transparent 2px 14px);
  box-shadow:
    inset 0 0 42px rgba(255, 79, 104, 0.24),
    0 0 24px rgba(255, 79, 104, 0.18);
}


.comm-cutin[data-support="mechanic"] .comm-band {
  border-left-width: 7px;
}

.comm-cutin[data-support="forecaster"] .comm-band {
  background:
    linear-gradient(90deg, rgba(5, 12, 20, 0.84), rgba(5, 12, 20, 0.62) 74%, transparent),
    radial-gradient(circle at 44% 52%, var(--support-accent-faint), transparent 46%);
}

.comm-cutin[data-support="rival-wingman"] {
  top: 48%;
}

.comm-cutin[data-support="rival-wingman"] .comm-band {
  width: min(78%, 900px);
  min-height: 132px;
  grid-template-columns: 118px minmax(0, 1fr);
  background:
    linear-gradient(90deg, rgba(18, 10, 15, 0.9), rgba(18, 10, 15, 0.7) 72%, transparent),
    radial-gradient(circle at 14% 48%, rgba(255, 168, 92, 0.24), transparent 34%),
    linear-gradient(180deg, rgba(255, 111, 220, 0.14), transparent 62%);
}

.comm-cutin[data-support="rival-wingman"] .comm-portrait {
  width: 108px;
  height: 108px;
  background:
    radial-gradient(ellipse at 48% 46%, rgba(255, 168, 92, 0.1), transparent 64%),
    var(--support-portrait),
    transparent;
  background-repeat: no-repeat;
  background-size: cover, var(--support-portrait-size), auto;
  background-position: center, var(--support-portrait-position), center;
  filter:
    brightness(1.12)
    saturate(1.08)
    drop-shadow(0 10px 18px rgba(0, 0, 0, 0.5))
    drop-shadow(0 0 18px rgba(255, 168, 92, 0.18));
  mask-image: radial-gradient(ellipse at 50% 50%, #000 0 68%, rgba(0, 0, 0, 0.82) 80%, transparent 100%);
}

.comm-cutin[data-support="fleet"] {
  top: 48%;
}

.comm-cutin[data-support="fleet"] .comm-band {
  width: min(82%, 980px);
  min-height: 132px;
  grid-template-columns: 96px minmax(0, 1fr);
  border-left-color: #ff78b9;
  background:
    linear-gradient(90deg, rgba(12, 8, 20, 0.94), rgba(18, 12, 26, 0.7) 68%, transparent),
    repeating-linear-gradient(0deg, rgba(255, 120, 185, 0.14) 0 2px, transparent 2px 16px);
  box-shadow:
    inset 0 0 42px rgba(255, 120, 185, 0.22),
    0 18px 46px rgba(0, 0, 0, 0.42);
}

.comm-cutin[data-support="fleet"] .comm-portrait {
  background:
    linear-gradient(180deg, rgba(255, 242, 168, 0.24), transparent 34%),
    linear-gradient(135deg, #281424, #071018);
}

.comm-cutin[data-support="fleet"] .comm-portrait::before {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  top: 38px;
  height: 12px;
  background: #fff2a8;
  box-shadow:
    0 -16px 0 -4px rgba(255, 120, 185, 0.9),
    18px -7px 0 -5px rgba(255, 242, 168, 0.95),
    -18px -7px 0 -5px rgba(255, 242, 168, 0.95),
    0 0 18px rgba(255, 120, 185, 0.78);
  clip-path: polygon(0 50%, 18% 16%, 78% 16%, 100% 50%, 78% 84%, 18% 84%);
}

.comm-cutin[data-support="fleet"] .comm-band::after {
  content: "";
  position: absolute;
  right: -6%;
  top: 20%;
  width: 48%;
  height: 60%;
  background:
    linear-gradient(90deg, transparent, rgba(255, 242, 168, 0.42), transparent),
    repeating-linear-gradient(90deg, transparent 0 34px, rgba(255, 120, 185, 0.3) 35px 38px);
  opacity: 0.55;
  transform: skewX(-18deg);
  mix-blend-mode: screen;
}

.comm-cutin[data-speaker="pilot"] .comm-band {
  border-left-color: #fff2a8;
  background:
    linear-gradient(90deg, rgba(18, 15, 8, 0.92), rgba(16, 13, 8, 0.66) 74%, transparent),
    linear-gradient(180deg, rgba(255, 242, 168, 0.12), transparent 58%);
  box-shadow:
    inset 0 0 30px rgba(255, 242, 168, 0.14),
    0 14px 36px rgba(0, 0, 0, 0.32);
}


@keyframes commCutinIn {
  0% {
    opacity: 0;
    transform: translateY(-50%) translateX(-60px);
    filter: brightness(1.4) blur(2px);
  }
  16%,
  86% {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
    filter: brightness(1) blur(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-50%) translateX(24px);
    filter: brightness(0.85) blur(1px);
  }
}

@keyframes rescueCutinHold {
  0% {
    opacity: 0;
    filter: brightness(1.08) blur(2px);
  }
  14%,
  78% {
    opacity: 1;
    filter: brightness(1) blur(0);
  }
  100% {
    opacity: 0;
    filter: brightness(0.78) blur(1px);
  }
}

@keyframes rescueTextIn {
  from {
    opacity: 0;
    transform: translateX(-22px);
    filter: blur(2px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
    filter: blur(0);
  }
}

@keyframes commScan {
  0% {
    opacity: 0;
    transform: translateX(-32%);
  }
  24% {
    opacity: 0.75;
  }
  64%,
  100% {
    opacity: 0;
    transform: translateX(30%);
  }
}

.hud {
  position: absolute;
  z-index: 5;
  pointer-events: none;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.65);
}

.top-left {
  top: 18px;
  left: 18px;
}

.top-right {
  top: 18px;
  right: 18px;
}

.bottom-left {
  left: 18px;
  bottom: 18px;
}

.bottom-right {
  right: 18px;
  bottom: 18px;
}

.perf-overlay {
  position: fixed;
  left: 50%;
  top: max(4px, env(safe-area-inset-top));
  transform: translateX(-50%);
  z-index: 20;
  padding: 5px 7px;
  border: 1px solid rgba(130, 242, 229, 0.38);
  background: rgba(5, 11, 16, 0.72);
  color: #c9fff7;
  font: 700 10px/1.25 "Consolas", "Segoe UI Mono", monospace;
  white-space: pre;
  pointer-events: none;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

.pilot-card,
.operator-card {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: min(36vw, 430px);
  padding: 10px 12px;
  border: 1px solid rgba(211, 235, 255, 0.22);
  background: rgba(8, 16, 24, 0.68);
  backdrop-filter: blur(8px);
}

.operator-card {
  width: min(35vw, 430px);
  min-height: 132px;
  height: auto;
  align-items: flex-start;
  border-color: var(--support-accent-soft);
  box-shadow: inset 0 0 24px var(--support-accent-faint);
}

.operator-copy {
  min-width: 0;
  flex: 1 1 auto;
  display: grid;
  grid-template-rows: auto auto minmax(2.45em, auto) auto;
  align-content: start;
}

.operator-card .label,
#supportStatus,
#supportAbility {
  color: var(--support-accent);
}

#supportStatus,
#supportAbility {
  display: grid;
  gap: 2px;
  line-height: 1.18;
}

#supportStatus span,
#supportAbility span {
  display: block;
  white-space: normal;
  overflow-wrap: anywhere;
}

#supportStatus .support-special,
#supportAbility .support-special {
  color: #d9e8f7;
  opacity: 0.92;
}

#supportAbility {
  min-height: 0;
  margin: 5px 0 0;
  padding-top: 5px;
  border-top: 1px solid var(--support-accent-faint);
  font-size: 10.5px;
  font-weight: 700;
}

.operator-card h2 {
  text-shadow: 0 0 16px var(--support-accent-faint);
}

.operator-portrait-stack {
  flex: 0 0 auto;
  display: grid;
  justify-items: stretch;
  gap: 5px;
}

.support-limit {
  max-width: 82px;
  margin: 0;
  padding: 4px 5px;
  color: #ffd86e;
  background: linear-gradient(180deg, rgba(32, 18, 13, 0.9), rgba(8, 16, 24, 0.72));
  border: 1px solid rgba(255, 216, 110, 0.55);
  box-shadow: inset 0 0 12px rgba(255, 216, 110, 0.12), 0 0 12px rgba(255, 120, 185, 0.12);
  font-size: 8.5px;
  font-weight: 900;
  line-height: 1.16;
  text-align: left;
}

.support-limit span {
  display: block;
  color: rgba(243, 247, 251, 0.92);
  font-size: 0.88em;
  font-weight: 800;
}

.comm-noise-active .operator-card {
  border-color: rgba(255, 79, 104, 0.78);
  background:
    linear-gradient(90deg, rgba(34, 8, 17, 0.82), rgba(8, 16, 24, 0.68)),
    repeating-linear-gradient(0deg, rgba(255, 79, 104, 0.13) 0 2px, transparent 2px 13px);
  box-shadow:
    inset 0 0 28px rgba(255, 79, 104, 0.24),
    0 0 22px rgba(255, 79, 104, 0.18);
}

.comm-noise-active .operator-card .label,
.comm-noise-active #supportStatus,
.comm-noise-active #supportAbility,
.comm-noise-active #vectorStatus {
  color: #ff8a9a;
}

.comm-noise-active #operatorLine {
  color: #ffd1d7;
  text-shadow: 0 0 12px rgba(255, 79, 104, 0.38);
}

.label {
  margin: 0 0 2px;
  color: #82f2e5;
  font-size: 11px;
  font-family: var(--cut-ui-font);
  font-weight: 700;
  letter-spacing: 0.06em;
}

.label span,
#cutinSupportRole span {
  display: block;
  margin-top: 2px;
  color: #d9e8f7;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
}

h1,
h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.1;
}

.pilot-card p:last-child {
  margin: 5px 0 0;
  color: #d9e8f7;
  font-size: 13px;
  line-height: 1.4;
}

#operatorLine {
  height: 2.8em;
  margin: 5px 0 0;
  overflow: hidden;
  color: #d9e8f7;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.portrait {
  flex: 0 0 auto;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background-size: cover;
  position: relative;
  overflow: hidden;
}

.portrait.pilot {
  background:
    linear-gradient(90deg, rgba(7, 16, 24, 0.06), rgba(7, 16, 24, 0.34)),
    linear-gradient(180deg, rgba(4, 8, 14, 0.1) 0 34%, rgba(16, 48, 72, 0.46) 35% 55%, rgba(4, 8, 14, 0.18) 56% 100%),
    url("assets/runtime/cutin/pilot-cutin.webp"),
    linear-gradient(135deg, #20344f, #111827);
  background-size: cover, cover, 230%, cover;
  background-position: center, center, 54% 31%, center;
  border-color: rgba(130, 242, 229, 0.45);
  box-shadow: inset 0 0 18px rgba(130, 242, 229, 0.16);
}

.portrait.pilot::before {
  content: "";
  position: absolute;
  inset: 8px 6px auto;
  height: 28px;
  border-radius: 48% 48% 38% 38%;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.22), transparent 34%),
    linear-gradient(180deg, rgba(12, 19, 31, 0.18), rgba(101, 227, 255, 0.18));
  border-top: 2px solid rgba(255, 255, 255, 0.42);
  opacity: 0.72;
  mix-blend-mode: screen;
}

.portrait.pilot::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(145deg, transparent 0 54%, rgba(255, 255, 255, 0.16) 55%, transparent 64%),
    radial-gradient(circle at 72% 76%, rgba(255, 78, 88, 0.36), transparent 19%);
  pointer-events: none;
}

.portrait.operator {
  width: 82px;
  height: 92px;
  border-color: var(--support-accent-soft);
  background:
    linear-gradient(90deg, rgba(7, 16, 24, 0.02), rgba(7, 16, 24, 0.18)),
    var(--support-portrait),
    linear-gradient(180deg, #34284a 0 44%, #1f142d 45% 100%),
    linear-gradient(135deg, #e86bb0, #40d9cd);
  background-size: cover, var(--support-portrait-size), auto, auto;
  background-position: center, var(--support-portrait-position), center, center;
  box-shadow: inset 0 0 18px var(--support-accent-faint);
}

.portrait.operator::after {
  content: none;
}

.meters {
  width: min(38vw, 420px);
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(211, 235, 255, 0.18);
  background: rgba(8, 16, 24, 0.6);
  backdrop-filter: blur(8px);
}

.mobile-meter-row {
  display: contents;
}

.touch-sp-button {
  display: none;
}

.touch-robot-button {
  display: none;
}

#robotPartsButton.hidden,
[data-touch-action="robotParts"].hidden {
  display: none !important;
}

.meters span {
  display: block;
  margin-bottom: 4px;
  color: #b9cad8;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.meter-action {
  position: relative;
  width: 100%;
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: default;
  pointer-events: auto;
}

.meter-action strong {
  position: absolute;
  right: 4px;
  top: 0;
  color: rgba(243, 247, 251, 0.74);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0;
}

.sp-meter.ready {
  cursor: pointer;
}

.sp-meter.ready span,
.sp-meter.ready strong {
  color: #fff2a8;
  text-shadow: 0 0 12px rgba(255, 242, 168, 0.48);
}

.sp-meter.ready .bar {
  border-color: rgba(255, 242, 168, 0.72);
  box-shadow: 0 0 18px rgba(255, 242, 168, 0.28);
}

.sp-meter.active strong {
  color: var(--support-accent);
}

.sp-meter.blocked strong {
  color: #ff8a9a;
  text-shadow: 0 0 12px rgba(255, 79, 104, 0.42);
}

.sp-meter.blocked .bar {
  border-color: rgba(255, 79, 104, 0.58);
  box-shadow: inset 0 0 12px rgba(255, 79, 104, 0.16);
}

.robot-meter {
  cursor: pointer;
}

.robot-meter.ready span,
.robot-meter.ready strong {
  color: #e9feff;
  text-shadow: 0 0 13px rgba(130, 242, 229, 0.5);
}

.robot-meter.active span,
.robot-meter.active strong,
.robot-meter.attaching span,
.robot-meter.attaching strong {
  color: #fff2a8;
  text-shadow: 0 0 14px rgba(255, 242, 168, 0.56);
}

.robot-meter.blocked span,
.robot-meter.blocked strong {
  color: #7e8a98;
  text-shadow: none;
}

.robot-meter.ready .bar,
.robot-meter.active .bar,
.robot-meter.attaching .bar {
  border-color: rgba(130, 242, 229, 0.62);
  box-shadow: 0 0 16px rgba(130, 242, 229, 0.18);
}

.bar {
  height: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
}

.bar i {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #6cf0c8, #f5d46b);
}

.bar.link i {
  width: 35%;
  background: linear-gradient(90deg, #40d9cd, #ff78b9);
}

.bar.robot-parts i {
  width: 100%;
  background: linear-gradient(90deg, #e9feff, #82f2e5 48%, #fff2a8);
}

.bar.aegis i {
  width: 100%;
  background: linear-gradient(90deg, #ff78b9, #fff2a8);
}

.style-meter {
  cursor: pointer;
}

.style-meter:disabled {
  cursor: default;
}

.style-meter.ready span,
.style-meter.ready strong {
  color: #fff2a8;
  text-shadow: 0 0 12px rgba(255, 242, 168, 0.44);
}

.style-meter.active span,
.style-meter.active strong {
  color: #e9feff;
  text-shadow: 0 0 14px rgba(101, 227, 255, 0.62);
}

.style-meter.rush .bar.style-skill i {
  background: linear-gradient(90deg, #42d8ff, #e9feff);
}

.style-meter.trace .bar.style-skill i {
  background: linear-gradient(90deg, #65e3ff, #fff2a8);
}

.style-meter.aegis .bar.style-skill i {
  background: linear-gradient(90deg, #ff78b9, #fff2a8);
}

.style-meter.ready .bar.style-skill {
  border-color: rgba(255, 242, 168, 0.68);
  box-shadow: 0 0 18px rgba(255, 242, 168, 0.24);
}

.style-meter.active .bar.style-skill {
  border-color: rgba(101, 227, 255, 0.74);
  box-shadow: 0 0 18px rgba(101, 227, 255, 0.28);
}

.status {
  min-width: 160px;
  padding: 12px;
  border: 1px solid rgba(211, 235, 255, 0.18);
  background: rgba(8, 16, 24, 0.6);
  text-align: right;
  backdrop-filter: blur(8px);
}

.status p {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
}

.status p + p {
  margin-top: 5px;
}

#modeName {
  color: #ffd86e;
  font-size: 20px;
}

#fleetStatus {
  color: rgba(217, 232, 247, 0.72);
}

#vectorStatus {
  color: #f3f7fb;
}

#vectorStatus span {
  display: block;
}

.status-sub {
  margin-top: 1px;
  color: rgba(217, 232, 247, 0.72);
  font-size: 0.78em;
  letter-spacing: 0;
}

#fleetStatus.ready {
  color: #ff78b9;
  text-shadow: 0 0 14px rgba(255, 120, 185, 0.55);
}

.touch-controls {
  position: absolute;
  inset: 0;
  z-index: 12;
  display: none;
  pointer-events: none;
}

.touch-controls.hidden {
  display: none;
}

@media (hover: none), (pointer: coarse) {
  .touch-controls {
    display: block;
  }

  .touch-controls.hidden {
    display: none;
  }
}

.move-pad,
.action-pad,
.stance-pad {
  pointer-events: auto;
}

.move-pad {
  position: absolute;
  left: 22px;
  bottom: 24px;
  width: 128px;
  height: 128px;
  border: 1px solid rgba(211, 235, 255, 0.22);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(130, 242, 229, 0.12), rgba(7, 16, 24, 0.42));
  touch-action: none;
}

.move-pad i {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(130, 242, 229, 0.5);
  border-radius: 50%;
  background: rgba(130, 242, 229, 0.18);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 20px rgba(130, 242, 229, 0.2);
}

.action-pad {
  position: absolute;
  right: 18px;
  bottom: 18px;
  display: grid;
  grid-template-columns: 74px 86px;
  grid-template-rows: 48px 48px 48px 48px;
  gap: 8px;
}

.touch-button,
.stance-pad button {
  border: 1px solid rgba(211, 235, 255, 0.24);
  background: rgba(7, 16, 24, 0.66);
  color: #f3f7fb;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.04em;
  min-height: 44px;
  box-shadow: 0 0 18px rgba(0, 0, 0, 0.28);
  touch-action: manipulation;
  pointer-events: auto;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.touch-button.shot {
  grid-row: 1 / 4;
  grid-column: 2;
  border-color: rgba(130, 242, 229, 0.44);
  color: #82f2e5;
}

.touch-button.missile {
  color: #fff2a8;
}

.touch-button.sp {
  color: #fff2a8;
}

.touch-button.sp.ready {
  border-color: rgba(255, 242, 168, 0.66);
  color: #fff2a8;
  box-shadow: 0 0 16px rgba(255, 242, 168, 0.24);
}

.touch-button.sp.active {
  border-color: rgba(130, 242, 229, 0.66);
  color: #9efff1;
  box-shadow: 0 0 16px rgba(130, 242, 229, 0.22);
}

.touch-button.sp.blocked {
  border-color: rgba(255, 79, 104, 0.52);
  color: #ff8a9a;
}

.touch-button.pause {
  position: absolute;
  left: 18px;
  top: 18px;
  min-width: 74px;
  min-height: 34px;
  color: #d9e8f7;
}

.touch-button.fleet {
  color: #ff78b9;
}

.touch-button.robot-parts {
  color: #82f2e5;
}

.touch-button.robot-parts.ready {
  border-color: rgba(130, 242, 229, 0.66);
  color: #e9feff;
  box-shadow: 0 0 16px rgba(130, 242, 229, 0.24);
}

.touch-button.robot-parts.active {
  border-color: rgba(255, 242, 168, 0.72);
  color: #fff2a8;
  box-shadow: 0 0 18px rgba(255, 242, 168, 0.28);
}

.touch-button.robot-parts.blocked {
  color: #7e8a98;
  border-color: rgba(126, 138, 152, 0.38);
}

.touch-button.style-skill {
  color: #65e3ff;
}

.touch-button.style-skill.ready {
  border-color: rgba(255, 242, 168, 0.66);
  color: #fff2a8;
  box-shadow: 0 0 16px rgba(255, 242, 168, 0.24);
}

.touch-button.style-skill.active {
  border-color: rgba(101, 227, 255, 0.74);
  color: #e9feff;
  box-shadow: 0 0 18px rgba(101, 227, 255, 0.3);
}

.touch-button.style-skill.aegis {
  color: #ffb0d0;
}

.touch-button.shot-mode {
  color: #82f2e5;
  border-color: rgba(130, 242, 229, 0.42);
}

.touch-button.shot-mode.active {
  color: #06131a;
  background: linear-gradient(135deg, #82f2e5, #fff2a8);
  border-color: rgba(130, 242, 229, 0.74);
}

.touch-button.shot-mode.manual {
  color: #d9e8f7;
  border-color: rgba(211, 235, 255, 0.28);
}

.stance-pad {
  position: absolute;
  left: 50%;
  bottom: 18px;
  display: grid;
  grid-template-columns: repeat(3, 72px);
  gap: 6px;
  transform: translateX(-50%);
}

.stance-pad button.active {
  border-color: #ffd86e;
  color: #ffd86e;
  box-shadow: 0 0 16px rgba(255, 216, 110, 0.32);
}

.story-panel {
  position: absolute;
  inset: 0;
  z-index: 31;
  display: block;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(2, 5, 12, 0.94), rgba(5, 9, 18, 0.58) 44%, rgba(2, 5, 12, 0.74)),
    radial-gradient(circle at 18% 45%, var(--support-accent-faint), transparent 34%),
    radial-gradient(circle at 86% 54%, rgba(255, 218, 114, 0.12), transparent 32%);
  animation: storyPanelIn 520ms ease-out both;
  pointer-events: auto;
}

.story-panel.hidden {
  display: none;
}

.story-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), transparent 1px) 0 0 / 100% 38px,
    linear-gradient(90deg, transparent 0 18%, rgba(130, 242, 229, 0.15) 18.08% 18.2%, transparent 18.3% 100%),
    linear-gradient(180deg, transparent 0 62%, rgba(2, 5, 12, 0.72) 82%, rgba(2, 5, 12, 0.96) 100%);
  pointer-events: none;
  opacity: 0.82;
}

.story-panel::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: clamp(238px, 34vh, 330px);
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0 4%, var(--support-accent) 16%, rgba(255, 242, 168, 0.5) 66%, transparent 96%);
  box-shadow: 0 0 18px rgba(130, 242, 229, 0.34);
  transform-origin: left center;
  pointer-events: none;
}

.story-visual {
  position: absolute;
  inset: 0;
  min-width: 0;
  overflow: hidden;
  pointer-events: none;
}

.story-visual::before {
  content: "";
  position: absolute;
  left: -12%;
  top: 52%;
  width: 98%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(130, 242, 229, 0.56), rgba(255, 242, 168, 0.36), transparent);
  box-shadow: 0 0 28px var(--support-accent-soft);
  animation: storyRouteSweep var(--story-duration, 6.8s) ease-in-out both;
}

.story-visual::after {
  content: "";
  position: absolute;
  inset: 12% -20% 10% 2%;
  background: linear-gradient(112deg, transparent 0 46%, rgba(255, 255, 255, 0.2) 47%, transparent 52% 100%);
  transform: translateX(-60%);
  animation: storyFlashCut var(--story-duration, 6.8s) ease-out both;
  pointer-events: none;
}

.story-visual img {
  display: block;
  position: absolute;
  right: clamp(-42px, 3vw, 42px);
  bottom: 0;
  width: min(56vw, 760px);
  height: 98%;
  object-fit: contain;
  object-position: right bottom;
  opacity: 0.42;
  filter: saturate(0.92) brightness(0.76) contrast(1.02);
  transform: translateX(12px) scale(1.08);
}

.story-panel[data-image-mode="support-lineup"] .story-visual img {
  left: 50%;
  right: auto;
  top: clamp(28px, 5vh, 54px);
  bottom: auto;
  width: min(96vw, 1160px);
  height: auto;
  max-height: 62vh;
  object-fit: contain;
  object-position: center top;
  opacity: 0.82;
  filter: saturate(1.03) brightness(0.92) contrast(1.04);
  transform: translateX(-50%) scale(1);
}

.story-panel[data-image-mode="story-still"] {
  background:
    linear-gradient(180deg, rgba(1, 4, 9, 0.12), rgba(1, 4, 9, 0.42) 54%, rgba(1, 4, 9, 0.94)),
    #02050a;
}

.story-panel[data-image-mode="story-still"]::before {
  background:
    linear-gradient(180deg, rgba(1, 4, 9, 0.08) 0 42%, rgba(1, 4, 9, 0.68) 78%, rgba(1, 4, 9, 0.95) 100%),
    linear-gradient(90deg, rgba(130, 242, 229, 0.1), transparent 24% 74%, rgba(255, 242, 168, 0.08));
  opacity: 0.92;
}

.story-panel[data-image-mode="story-still"]::after {
  bottom: clamp(210px, 30vh, 292px);
  opacity: 0.78;
}

.story-panel[data-image-mode="story-still"] .story-visual::before {
  top: 47%;
  width: 124%;
  height: 2px;
  opacity: 0.55;
}

.story-panel[data-image-mode="story-still"] .story-visual::after {
  inset: 0;
  background:
    radial-gradient(circle at 78% 26%, rgba(255, 255, 255, 0.12), transparent 18%),
    linear-gradient(116deg, transparent 0 44%, rgba(255, 255, 255, 0.12) 50%, transparent 58% 100%);
  opacity: 0.42;
}

.story-panel[data-image-mode="story-still"] .story-visual img {
  inset: 0;
  right: auto;
  bottom: auto;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.8;
  filter: saturate(1.02) brightness(0.84) contrast(1.04);
  transform: none;
}

.story-panel[data-image-mode="story-still"] .story-active-face {
  display: none;
}

.story-panel[data-image-mode="story-still"] .story-copy,
.story-panel[data-image-mode="support-lineup"] .story-copy {
  left: clamp(24px, 5vw, 86px);
  right: clamp(24px, 5vw, 86px);
  bottom: clamp(20px, 4vh, 42px);
  min-height: clamp(170px, 24vh, 250px);
  padding: clamp(18px, 2.5vh, 26px) clamp(22px, 4vw, 52px);
  background:
    linear-gradient(90deg, rgba(1, 5, 10, 0.92), rgba(1, 5, 10, 0.66) 58%, rgba(1, 5, 10, 0.2)),
    linear-gradient(180deg, rgba(130, 242, 229, 0.09), transparent 72%);
}

.story-panel[data-image-mode="ending-stills"] {
  background:
    linear-gradient(180deg, rgba(1, 4, 9, 0.18), rgba(1, 4, 9, 0.52) 52%, rgba(1, 4, 9, 0.94)),
    #02050a;
}

.story-panel[data-image-mode="ending-stills"]::before {
  background:
    linear-gradient(180deg, transparent 0 54%, rgba(1, 4, 9, 0.66) 78%, rgba(1, 4, 9, 0.94) 100%),
    linear-gradient(90deg, rgba(130, 242, 229, 0.12), transparent 22% 78%, rgba(255, 242, 168, 0.1));
  opacity: 1;
}

.story-panel[data-image-mode="ending-stills"]::after {
  bottom: clamp(188px, 27vh, 278px);
  opacity: 0.82;
}

.story-panel[data-image-mode="ending-stills"] .story-visual::before {
  top: 46%;
  width: 128%;
  height: 3px;
  opacity: 0.78;
}

.story-panel[data-image-mode="ending-stills"] .story-visual::after {
  inset: 0;
  background:
    radial-gradient(circle at 78% 28%, rgba(255, 255, 255, 0.14), transparent 18%),
    linear-gradient(120deg, transparent 0 42%, rgba(255, 255, 255, 0.12) 48%, transparent 56% 100%);
  opacity: 0.64;
}

.story-panel[data-image-mode="ending-stills"] .story-visual img {
  inset: 0;
  right: auto;
  bottom: auto;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.74;
  filter: saturate(0.9) brightness(0.72) contrast(1.06);
  transform: none;
}

.story-panel[data-image-mode="ending-stills"] .story-active-face,
.story-panel[data-image-mode="ending-stills"] .story-face {
  display: none;
}

.story-panel[data-image-mode="ending-stills"] .story-copy {
  left: clamp(24px, 5vw, 86px);
  right: clamp(24px, 5vw, 86px);
  bottom: clamp(20px, 4vh, 42px);
  min-height: clamp(154px, 22vh, 228px);
  padding: clamp(18px, 2.4vh, 26px) clamp(22px, 4vw, 52px);
  background:
    linear-gradient(90deg, rgba(1, 5, 10, 0.92), rgba(1, 5, 10, 0.66) 58%, rgba(1, 5, 10, 0.2)),
    linear-gradient(180deg, rgba(130, 242, 229, 0.09), transparent 72%);
}

.story-panel[data-image-mode="ending-stills"] .story-speaker,
.story-panel[data-image-mode="ending-stills"] .story-speaker-left,
.story-panel[data-image-mode="ending-stills"] .story-speaker-right {
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
  min-height: clamp(78px, 11vh, 124px);
  text-align: left;
}

.story-panel[data-image-mode="ending-stills"] .story-speaker p {
  white-space: pre-line;
  font-size: clamp(18px, 1.9vw, 27px);
  line-height: 1.54;
}

.story-panel[data-image-mode="ending-stills"][data-still-tone="shutdown"] .story-visual img {
  filter: saturate(0.82) brightness(0.56) contrast(1.18);
}

.story-panel[data-image-mode="ending-stills"][data-still-tone="return"] .story-visual img,
.story-panel[data-image-mode="ending-stills"][data-still-tone="convoy"] .story-visual img {
  filter: saturate(1.02) brightness(0.82) contrast(1.04);
}

.story-panel[data-image-mode="ending-stills"][data-still-tone="white-voice"] .story-visual img {
  filter: saturate(0.72) brightness(0.9) contrast(1.02);
}

.story-panel[data-image-mode="ending-stills"][data-still-tone="facility"] {
  --support-accent: #9eb7ff;
  --support-accent-soft: rgba(158, 183, 255, 0.36);
  --support-accent-faint: rgba(158, 183, 255, 0.12);
}

.story-panel[data-image-mode="ending-stills"][data-still-tone="facility"] .story-visual img {
  opacity: 0.58;
  filter: saturate(0.52) brightness(0.42) contrast(1.32);
}

.story-panel[data-image-mode="ending-stills"][data-still-tone="facility"] .story-copy {
  background:
    linear-gradient(90deg, rgba(1, 4, 10, 0.95), rgba(5, 8, 18, 0.78) 56%, rgba(1, 4, 10, 0.34)),
    linear-gradient(180deg, rgba(158, 183, 255, 0.08), transparent 70%);
}

.story-panel[data-image-mode="ending-stills"][data-still-tone="facility"] .story-speaker p {
  font-family: var(--cut-ui-font);
  color: #d8e3ff;
}

.story-panel[data-image-mode="ending-stills"][data-still-tone="dawn"] .story-visual img {
  filter: saturate(1.08) brightness(0.88) contrast(1.02);
}

@media (max-width: 640px) {
  .story-panel[data-image-mode="support-lineup"] .story-visual img {
    top: clamp(72px, 12vh, 116px);
    bottom: auto;
    width: 118vw;
    height: auto;
    max-height: 34vh;
    opacity: 0.44;
  }
}

.story-active-face {
  position: absolute;
  z-index: 0;
  bottom: -7vh;
  right: clamp(-28px, 3vw, 58px);
  width: min(44vw, 560px);
  height: min(86vh, 760px);
  object-fit: cover;
  object-position: 50% 20%;
  opacity: 0.34;
  filter:
    saturate(1.06)
    brightness(0.9)
    contrast(1.05)
    drop-shadow(0 0 44px var(--support-accent-faint));
  mask-image: linear-gradient(90deg, transparent 0, #000 18%, #000 74%, transparent 100%);
  pointer-events: none;
}

.story-active-face[hidden] {
  display: none;
}

.story-panel[data-active-face="pilot"] .story-active-face {
  left: clamp(-54px, 2vw, 42px);
  right: auto;
  opacity: 0.31;
}

.story-copy {
  position: absolute;
  left: clamp(26px, 5vw, 82px);
  right: clamp(26px, 5vw, 82px);
  bottom: clamp(22px, 4.8vh, 46px);
  z-index: 1;
  width: auto;
  min-height: clamp(220px, 30vh, 310px);
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  align-content: end;
  padding: clamp(18px, 2.6vh, 28px) clamp(24px, 4vw, 54px);
  border-top: 1px solid rgba(130, 242, 229, 0.34);
  border-left: 0;
  border-right: 0;
  background:
    linear-gradient(90deg, rgba(2, 7, 13, 0.94), rgba(2, 7, 13, 0.72) 48%, rgba(2, 7, 13, 0.28)),
    linear-gradient(180deg, rgba(130, 242, 229, 0.08), transparent 68%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 -22px 60px rgba(2, 5, 12, 0.42);
  font-family: var(--cut-body-font);
  font-feature-settings: "palt";
  animation: storyCopyIn 580ms 160ms ease-out both;
}

.story-copy p,
.story-copy h2,
.story-copy blockquote {
  margin: 0;
}

.story-copy #storyKicker {
  font-family: var(--cut-ui-font);
  color: var(--support-accent);
  font-size: clamp(10px, 1vw, 12px);
  font-weight: 700;
  letter-spacing: 0;
  text-shadow: 0 0 14px var(--support-accent-faint);
  animation: storyTextIn 420ms 360ms ease-out both;
}

.story-copy h2 {
  margin-top: 6px;
  font-family: var(--story-title-font);
  color: #f2f7fb;
  font-size: clamp(23px, 2.55vw, 38px);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: 0;
  font-feature-settings: "palt";
  text-shadow:
    0 2px 16px rgba(0, 0, 0, 0.92),
    0 0 18px rgba(130, 242, 229, 0.14);
  animation: storyTextIn 480ms 480ms ease-out both;
}

.story-dialogue {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: clamp(8px, 1.5vh, 14px);
  margin-top: clamp(10px, 1.6vh, 16px);
  animation: storyTextIn 520ms 620ms ease-out both;
}

.story-speaker {
  position: relative;
  display: grid;
  align-items: center;
  gap: clamp(18px, 2.6vw, 34px);
  min-height: clamp(116px, 15vh, 158px);
  padding: 0;
  border: 0;
  background:
    linear-gradient(90deg, rgba(130, 242, 229, 0.11), transparent 42%) bottom left / 100% 1px no-repeat;
  box-shadow: none;
  opacity: 0.36;
  transform: translateX(0) scale(0.985);
  transition: opacity 180ms ease, transform 180ms ease, filter 180ms ease;
  filter: saturate(0.65) brightness(0.84);
}

.story-speaker-left {
  grid-template-columns: clamp(116px, 13vw, 178px) minmax(0, 1fr);
  justify-self: stretch;
  transform-origin: left center;
}

.story-speaker-right {
  grid-template-columns: minmax(0, 1fr) clamp(116px, 13vw, 178px);
  justify-self: end;
  width: 100%;
  text-align: right;
  transform-origin: right center;
}

.story-speaker.is-empty {
  display: none;
  opacity: 0;
  transform: translateX(0) scale(0.97);
  pointer-events: none;
}

.story-panel[data-speaker="operator"] .story-speaker-left,
.story-panel[data-speaker="pilot"] .story-speaker-right {
  opacity: 1;
  transform: translateX(0) scale(1);
  filter: none;
}

.story-panel[data-speaker="operator"] .story-speaker-left {
  animation: storyLeftSpeak 360ms ease-out both;
}

.story-panel[data-speaker="pilot"] .story-speaker-right {
  animation: storyRightSpeak 360ms ease-out both;
}

.story-speaker p {
  color: #eaf4fb;
  font-family: var(--story-dialogue-font);
  font-size: clamp(18px, 1.78vw, 25px);
  font-weight: 500;
  line-height: 1.62;
  letter-spacing: 0;
  font-feature-settings: "palt";
  text-wrap: pretty;
  text-shadow:
    0 2px 12px rgba(0, 0, 0, 0.88),
    0 0 16px rgba(130, 242, 229, 0.08);
}

.story-face {
  position: relative;
  width: 100%;
  height: clamp(116px, 14vh, 158px);
  overflow: visible;
  border: 0;
  background:
    linear-gradient(135deg, rgba(130, 242, 229, 0.16), transparent 52%),
    #071018;
  box-shadow: none;
  clip-path: none;
  filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 18px rgba(130, 242, 229, 0.12));
  mask-image: radial-gradient(ellipse at 50% 52%, #000 0 60%, rgba(0, 0, 0, 0.76) 74%, transparent 100%);
}

.story-face img {
  position: absolute;
  inset: -14% -10% -8%;
  width: 120%;
  height: 122%;
  object-fit: cover;
  object-position: center 20%;
  opacity: 0.96;
  mix-blend-mode: normal;
  filter: saturate(1.05) brightness(1.04) contrast(1.02);
}

.story-face img[hidden] {
  display: none;
}

.story-face-operator {
  background-image:
    radial-gradient(ellipse at 48% 56%, rgba(130, 242, 229, 0.14), transparent 58%),
    var(--story-operator-portrait),
    transparent;
  background-repeat: no-repeat;
  background-size: cover, var(--story-operator-size, var(--support-portrait-size)), auto;
  background-position: center, var(--story-operator-position, var(--support-portrait-position)), center;
}

.story-face-pilot {
  background-image:
    radial-gradient(ellipse at 50% 56%, rgba(255, 242, 168, 0.12), transparent 58%),
    var(--story-pilot-portrait, url("assets/runtime/cutin/pilot-cutin.webp")),
    transparent;
  background-repeat: no-repeat;
  background-size: cover, var(--story-pilot-size, 205%), auto;
  background-position: center, var(--story-pilot-position, 54% 31%), center;
}

.story-copy button {
  min-width: 112px;
  min-height: 40px;
  justify-self: end;
  margin-top: clamp(14px, 2vh, 22px);
  border: 1px solid rgba(130, 242, 229, 0.42);
  color: #dcebf3;
  background: rgba(5, 11, 18, 0.52);
  font-family: var(--story-dialogue-font);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
  opacity: 0.82;
  cursor: pointer;
  transition: opacity 160ms ease, border-color 160ms ease, background 160ms ease;
}

.story-copy button:hover {
  border-color: var(--support-accent);
  background: rgba(130, 242, 229, 0.1);
  opacity: 1;
}

@keyframes storyPanelIn {
  from {
    opacity: 0;
    filter: brightness(1.6);
  }
  to {
    opacity: 1;
    filter: brightness(1);
  }
}

@keyframes storyScan {
  from {
    background-position: 0 0, 0 0, 0 0;
  }
  to {
    background-position: 0 18px, 0 0, 0 38px;
  }
}

@keyframes storyAutoBar {
  from {
    transform: scaleX(1);
  }
  to {
    transform: scaleX(0);
  }
}

@keyframes storyRouteSweep {
  0% {
    opacity: 0;
    transform: translateX(-22%) scaleX(0.45);
  }
  18%,
  82% {
    opacity: 1;
    transform: translateX(0) scaleX(1);
  }
  100% {
    opacity: 0.2;
    transform: translateX(18%) scaleX(0.72);
  }
}

@keyframes storyFlashCut {
  0%,
  18% {
    opacity: 0;
    transform: translateX(-60%);
  }
  30% {
    opacity: 1;
  }
  44%,
  100% {
    opacity: 0;
    transform: translateX(52%);
  }
}

@keyframes storyEnemyIn {
  0% {
    opacity: 0;
    transform: translate(14%, -50%) scale(0.9);
    filter: blur(8px) saturate(1.3) brightness(1.25) drop-shadow(0 0 42px rgba(255, 120, 185, 0.48));
  }
  14% {
    opacity: 1;
  }
  28%,
  76% {
    opacity: 0.9;
    transform: translate(0, -50%) scale(1);
    filter: blur(0) saturate(1.12) brightness(0.96) contrast(1.05) drop-shadow(0 0 38px rgba(255, 120, 185, 0.38));
  }
  100% {
    opacity: 0.78;
    transform: translate(-2%, -50%) scale(1.03);
  }
}

@keyframes storyCopyIn {
  from {
    opacity: 0;
    transform: translateX(42px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes storyTextIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes storyLeftSpeak {
  from {
    transform: translateX(-28px) scale(0.985);
    filter: brightness(1.38);
  }
  to {
    transform: translateX(0) scale(1);
    filter: brightness(1);
  }
}

@keyframes storyRightSpeak {
  from {
    transform: translateX(28px) scale(0.985);
    filter: brightness(1.38);
  }
  to {
    transform: translateX(0) scale(1);
    filter: brightness(1);
  }
}

@keyframes openingStillIn {
  from {
    opacity: 0.48;
    filter: saturate(0.82) brightness(0.72) blur(2px);
  }
  to {
    opacity: 0.88;
    filter: saturate(0.95) brightness(0.86) blur(0);
  }
}

@keyframes openingStillDrift {
  from {
    transform: scale(1.035) translateX(0);
  }
  to {
    transform: scale(1.055) translateX(-10px);
  }
}

@keyframes openingCopyIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes briefingCardIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.97);
    filter: blur(2px) brightness(1.22);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0) brightness(1);
  }
}

.start-panel {
  grid-auto-rows: max-content;
  position: absolute;
  inset: 0;
  z-index: 30;
  display: grid;
  place-content: safe center;
  justify-items: center;
  gap: 16px;
  padding: 24px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background:
    linear-gradient(90deg, rgba(5, 9, 16, 0.86), rgba(5, 9, 16, 0.52), rgba(5, 9, 16, 0.86)),
    radial-gradient(circle at center, rgba(64, 217, 205, 0.2), transparent 42%);
  text-align: center;
}

.opening-panel {
  position: absolute;
  inset: 0;
  z-index: 34;
  overflow: hidden;
  background: #050910;
  color: #f3f7fb;
}

.opening-panel.hidden {
  display: none;
}

.opening-panel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.88;
  transform: scale(1.035);
  filter: saturate(0.95) brightness(0.86);
}

.opening-panel.enter img {
  animation: openingStillIn 460ms ease-out both, openingStillDrift 4.8s ease-out both;
}

.opening-panel.enter[data-visual-hold="true"] img {
  animation: none;
}

.opening-vignette {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 9, 16, 0.78), rgba(5, 9, 16, 0.18) 48%, rgba(5, 9, 16, 0.46)),
    linear-gradient(180deg, rgba(5, 9, 16, 0.22), transparent 42%, rgba(5, 9, 16, 0.34));
  pointer-events: none;
}

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

.opening-callouts.hidden {
  display: none;
}

.opening-callout {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: min(210px, 30vw);
  min-height: 28px;
  padding: 6px 10px;
  border: 1px solid rgba(130, 242, 229, 0.58);
  color: #dffdf8;
  background: rgba(4, 12, 20, 0.74);
  box-shadow: 0 0 18px rgba(130, 242, 229, 0.18), inset 0 0 18px rgba(130, 242, 229, 0.08);
  font-family: var(--cut-body-font);
  font-size: clamp(11px, 1.1vw, 13px);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.2;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.86);
  transform: translate(-50%, -50%);
}

.opening-callout::before {
  content: "";
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #82f2e5;
  box-shadow: 0 0 14px rgba(130, 242, 229, 0.86);
}

.opening-callout::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  width: 1px;
  height: 28px;
  background: linear-gradient(180deg, rgba(130, 242, 229, 0.54), rgba(130, 242, 229, 0));
}

.opening-callout[data-tone="danger"] {
  border-color: rgba(255, 107, 139, 0.62);
  color: #ffe7ee;
  background: rgba(24, 8, 16, 0.76);
  box-shadow: 0 0 18px rgba(255, 84, 128, 0.18), inset 0 0 18px rgba(255, 84, 128, 0.08);
}

.opening-callout[data-tone="danger"]::before {
  background: #ff6b8b;
  box-shadow: 0 0 14px rgba(255, 84, 128, 0.86);
}

.opening-callout[data-tone="danger"]::after {
  background: linear-gradient(180deg, rgba(255, 107, 139, 0.54), rgba(255, 107, 139, 0));
}

.opening-panel .opening-foreground {
  position: absolute;
  inset: auto;
  z-index: 2;
  width: auto;
  height: var(--opening-foreground-height, clamp(190px, 33vh, 318px));
  object-fit: contain;
  opacity: 0;
  filter:
    drop-shadow(0 0 1px rgba(1, 5, 10, 0.92))
    drop-shadow(0 18px 30px rgba(0, 0, 0, 0.58))
    drop-shadow(0 0 18px rgba(130, 242, 229, 0.14));
  pointer-events: none;
  transition: opacity 240ms ease, transform 320ms ease;
}

.opening-panel .opening-foreground.hidden {
  display: none;
}

.opening-panel[data-anchor="guide"] .opening-foreground {
  opacity: 0.94;
}

.opening-panel.enter .opening-foreground {
  animation: none;
}

.opening-panel .opening-foreground-left {
  left: clamp(12px, 2.4vw, 34px);
  bottom: clamp(150px, 18.5vh, 212px);
  transform: translateX(-10px);
}

.opening-panel .opening-foreground-right {
  right: clamp(12px, 2.6vw, 38px);
  bottom: clamp(150px, 18.5vh, 212px);
  transform: translateX(10px);
}

.opening-panel[data-anchor="guide"] .opening-foreground-left,
.opening-panel[data-anchor="guide"] .opening-foreground-right {
  transform: translateX(0);
}

.opening-portrait {
  position: absolute;
  right: clamp(42px, 6vw, 92px);
  bottom: clamp(44px, 5.8vw, 74px);
  z-index: 2;
  width: clamp(190px, 19vw, 310px);
  height: clamp(190px, 19vw, 310px);
  border: 0;
  background:
    radial-gradient(ellipse at 50% 56%, rgba(130, 242, 229, 0.13), transparent 60%),
    var(--opening-portrait, none);
  background-repeat: no-repeat;
  background-size: auto, var(--opening-portrait-size, cover);
  background-position: center, var(--opening-portrait-position, center);
  box-shadow: none;
  clip-path: none;
  filter: drop-shadow(0 16px 28px rgba(0, 0, 0, 0.52)) drop-shadow(0 0 28px rgba(130, 242, 229, 0.16));
  mask-image: radial-gradient(ellipse at 50% 54%, #000 0 62%, rgba(0, 0, 0, 0.74) 76%, transparent 100%);
  opacity: 0;
  transform: translateX(16px);
  pointer-events: none;
}

.opening-panel[data-portrait="true"] .opening-portrait {
  opacity: 0.9;
  transform: translateX(0);
  transition: opacity 260ms ease, transform 340ms ease;
}

.opening-copy {
  position: absolute;
  left: clamp(24px, 4vw, 48px);
  bottom: clamp(34px, 6.8vw, 78px);
  width: min(430px, calc(100% - 96px));
  padding: 18px 20px 20px;
  border-left: 4px solid rgba(130, 242, 229, 0.86);
  background:
    linear-gradient(90deg, rgba(5, 12, 20, 0.86), rgba(5, 12, 20, 0.58) 78%, rgba(5, 12, 20, 0));
  box-shadow: inset 0 0 28px rgba(130, 242, 229, 0.12);
  font-family: var(--cut-body-font);
  font-feature-settings: "palt";
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9);
}

.opening-panel[data-anchor="lower-left"] .opening-vignette {
  background:
    linear-gradient(90deg, rgba(5, 9, 16, 0.62), rgba(5, 9, 16, 0.1) 46%, rgba(5, 9, 16, 0.18)),
    linear-gradient(180deg, rgba(5, 9, 16, 0.12), rgba(5, 9, 16, 0.08) 42%, rgba(5, 9, 16, 0.78));
}

.opening-panel[data-anchor="lower-left"]::before {
  content: "";
  position: absolute;
  left: clamp(28px, 5vw, 68px);
  right: clamp(28px, 5vw, 68px);
  bottom: clamp(154px, 18vw, 210px);
  z-index: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(130, 242, 229, 0), rgba(130, 242, 229, 0.64), rgba(255, 216, 110, 0.32), rgba(130, 242, 229, 0));
  box-shadow: 0 0 18px rgba(130, 242, 229, 0.18);
  pointer-events: none;
}

.opening-panel[data-anchor="lower-left"]::after {
  content: attr(data-panel-label);
  position: absolute;
  right: clamp(28px, 5vw, 68px);
  bottom: clamp(72px, 8vw, 104px);
  z-index: 2;
  color: rgba(130, 242, 229, 0.54);
  font-family: var(--cut-ui-font);
  font-size: clamp(13px, 1.35vw, 18px);
  font-weight: 800;
  letter-spacing: 0;
  pointer-events: none;
}

.opening-panel[data-anchor="lower-left"] .opening-copy {
  z-index: 2;
  left: clamp(30px, 5vw, 72px);
  right: clamp(30px, 5vw, 72px);
  bottom: clamp(48px, 6.4vw, 76px);
  width: auto;
  max-width: none;
  min-height: 202px;
  padding: clamp(22px, 2.8vw, 34px) clamp(26px, 4vw, 48px);
  border: 1px solid rgba(130, 242, 229, 0.24);
  border-left: 5px solid rgba(130, 242, 229, 0.92);
  background:
    linear-gradient(90deg, rgba(4, 10, 18, 0.88), rgba(4, 10, 18, 0.72) 58%, rgba(4, 10, 18, 0.2)),
    radial-gradient(circle at 18% 35%, rgba(130, 242, 229, 0.14), transparent 34%);
  box-shadow:
    inset 0 0 0 1px rgba(243, 247, 251, 0.05),
    0 24px 70px rgba(0, 0, 0, 0.42);
  font-family: var(--cut-body-font);
  font-feature-settings: "palt";
}

.opening-panel[data-anchor="lower-left"][data-portrait="true"] .opening-copy {
  right: clamp(300px, 28vw, 450px);
}

.opening-panel[data-anchor="news"] .opening-vignette {
  background:
    linear-gradient(90deg, rgba(5, 9, 16, 0.54), rgba(5, 9, 16, 0.18) 48%, rgba(5, 9, 16, 0.1)),
    linear-gradient(180deg, rgba(5, 9, 16, 0.28), rgba(5, 9, 16, 0) 42%, rgba(5, 9, 16, 0.56)),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 34px);
}

.opening-panel[data-anchor="news"]::before {
  content: "ORBIT NEWS";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  z-index: 1;
  height: 46px;
  display: flex;
  align-items: center;
  padding-left: clamp(24px, 4vw, 54px);
  border-bottom: 1px solid rgba(255, 216, 110, 0.34);
  color: #061018;
  background:
    linear-gradient(90deg, rgba(255, 216, 110, 0.92), rgba(130, 242, 229, 0.86) 42%, rgba(5, 12, 20, 0.72));
  font-family: var(--cut-ui-font);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
}

.opening-panel[data-anchor="news"]::after {
  content: "ROUTE INCIDENT  /  LOST SEA SHALLOW  /  STATION DRIFT";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  height: 34px;
  display: flex;
  align-items: center;
  padding-left: clamp(24px, 4vw, 54px);
  border-top: 1px solid rgba(217, 232, 247, 0.18);
  color: rgba(243, 247, 251, 0.82);
  background: rgba(3, 8, 14, 0.78);
  font-family: var(--cut-ui-font);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
}

.opening-panel[data-anchor="news"] .opening-copy {
  z-index: 2;
  left: clamp(26px, 4.3vw, 58px);
  right: auto;
  top: auto;
  bottom: clamp(66px, 8vw, 96px);
  width: min(600px, 52vw);
  max-width: calc(100% - 84px);
  min-height: clamp(160px, 17vw, 220px);
  padding: clamp(18px, 2.4vw, 28px) clamp(20px, 2.8vw, 34px);
  border: 1px solid rgba(255, 216, 110, 0.28);
  border-left-color: rgba(255, 216, 110, 0.92);
  background:
    linear-gradient(90deg, rgba(4, 10, 18, 0.92), rgba(4, 10, 18, 0.82) 82%, rgba(4, 10, 18, 0.48)),
    linear-gradient(180deg, rgba(255, 216, 110, 0.1), transparent 72%);
  box-shadow:
    inset 0 0 0 1px rgba(243, 247, 251, 0.06),
    0 24px 70px rgba(0, 0, 0, 0.42);
  font-family: var(--cut-body-font);
  font-feature-settings: "palt";
}

.opening-panel[data-anchor="news"][data-callouts="true"] .opening-copy {
  max-width: min(600px, calc(100% - 84px));
  min-height: clamp(160px, 17vw, 220px);
}

.opening-panel[data-anchor="news"][data-callouts="true"] #openingLine,
.opening-panel[data-anchor="news"][data-callouts="true"] #openingSpeaker {
  max-width: none;
}

.opening-panel[data-anchor="news"] .opening-copy::after {
  content: "LIVE REPORT";
  position: absolute;
  right: 22px;
  top: 18px;
  padding: 5px 10px;
  border: 1px solid rgba(255, 120, 185, 0.48);
  color: #ff9ec8;
  font-family: var(--cut-ui-font);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  background: rgba(255, 120, 185, 0.1);
}

.opening-panel[data-anchor="news"] .opening-copy::before {
  content: none;
  position: absolute;
  right: clamp(22px, 3vw, 38px);
  bottom: clamp(20px, 2.6vw, 32px);
  width: clamp(130px, 16vw, 210px);
  height: clamp(72px, 9vw, 116px);
  display: grid;
  place-items: end center;
  padding-bottom: 12px;
  border: 1px solid rgba(130, 242, 229, 0.22);
  color: rgba(217, 232, 247, 0.48);
  background:
    radial-gradient(circle at 50% 34%, rgba(130, 242, 229, 0.18), transparent 36%),
    linear-gradient(180deg, rgba(130, 242, 229, 0.08), rgba(255, 216, 110, 0.04)),
    rgba(2, 8, 14, 0.35);
  font-family: var(--cut-ui-font);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  pointer-events: none;
}

.opening-panel[data-anchor="guide"] img {
  object-fit: cover;
  padding: 0;
  opacity: 0.96;
  transform: none;
  filter: saturate(0.98) brightness(0.9);
}

.opening-panel[data-anchor="guide"] .opening-vignette {
  background:
    linear-gradient(180deg, rgba(3, 6, 12, 0.08), rgba(3, 6, 12, 0) 48%, rgba(3, 6, 12, 0.52)),
    linear-gradient(90deg, rgba(3, 6, 12, 0.14), rgba(3, 6, 12, 0.02) 48%, rgba(3, 6, 12, 0.16));
}

.opening-panel[data-anchor="guide"] .opening-copy {
  z-index: 4;
  left: 0;
  right: 0;
  bottom: clamp(46px, 5.6vw, 74px);
  width: auto;
  max-width: none;
  min-height: clamp(128px, 15vw, 184px);
  padding: clamp(18px, 2.2vw, 26px) clamp(36px, 6vw, 108px) clamp(18px, 2.3vw, 28px);
  border: 0;
  border-top: 1px solid rgba(130, 242, 229, 0.26);
  background:
    linear-gradient(180deg, rgba(3, 7, 14, 0.28), rgba(3, 7, 14, 0.88) 20%, rgba(3, 7, 14, 0.96)),
    radial-gradient(circle at 16% 45%, rgba(130, 242, 229, 0.12), transparent 38%),
    radial-gradient(circle at 78% 20%, rgba(255, 216, 110, 0.08), transparent 34%);
  box-shadow:
    inset 0 1px 0 rgba(243, 247, 251, 0.06),
    0 -24px 54px rgba(0, 0, 0, 0.36);
}

.opening-panel[data-anchor="guide"] #openingKicker {
  color: #82f2e5;
  font-size: clamp(11px, 1.1vw, 14px);
}

.opening-panel[data-anchor="guide"] #openingSpeaker {
  margin-top: 6px;
  max-width: 1080px;
  font-size: clamp(22px, 2.55vw, 34px);
  line-height: 1.1;
  font-weight: 800;
}

.opening-panel[data-anchor="guide"] #openingLine {
  max-width: min(1080px, 100%);
  margin-top: clamp(8px, 1vw, 12px);
  font-size: clamp(17px, 1.55vw, 22px);
  font-weight: 500;
  line-height: 1.58;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}

.opening-panel[data-frame^="opening-world-route-cast-map"] .opening-vignette {
  background:
    linear-gradient(180deg, rgba(3, 6, 12, 0.04), rgba(3, 6, 12, 0) 58%, rgba(3, 6, 12, 0.2)),
    linear-gradient(90deg, rgba(3, 6, 12, 0.14), rgba(3, 6, 12, 0.02) 48%, rgba(3, 6, 12, 0.12));
}

.opening-panel[data-frame^="opening-world-route-cast-map"] img,
.opening-panel.enter[data-frame^="opening-world-route-cast-map"] img {
  animation: none;
  opacity: 1;
  transform: none;
  filter: saturate(1.03) brightness(1) contrast(1.05);
}

.opening-panel[data-frame^="opening-world-route-cast-map"] .opening-copy {
  left: clamp(22px, 3vw, 40px);
  right: clamp(188px, 18vw, 260px);
  bottom: clamp(34px, 4.8vw, 58px);
  min-height: clamp(122px, 13vw, 158px);
  padding: clamp(16px, 2vw, 24px) clamp(20px, 2.8vw, 34px);
  border: 1px solid rgba(130, 242, 229, 0.3);
  border-left: 4px solid rgba(130, 242, 229, 0.88);
  background:
    linear-gradient(90deg, rgba(3, 7, 14, 0.9), rgba(3, 7, 14, 0.78) 74%, rgba(3, 7, 14, 0.46)),
    radial-gradient(circle at 14% 44%, rgba(130, 242, 229, 0.12), transparent 36%);
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.38), inset 0 0 0 1px rgba(243, 247, 251, 0.04);
}

.opening-panel[data-frame^="opening-world-route-cast-map"] #openingKicker {
  font-size: 13px;
}

.opening-panel[data-frame^="opening-world-route-cast-map"] #openingSpeaker {
  margin-top: 6px;
  font-size: 30px;
}

.opening-panel[data-frame^="opening-world-route-cast-map"] #openingLine {
  margin-top: 8px;
  max-width: min(860px, 100%);
  font-size: 19px;
  line-height: 1.54;
}

.opening-panel.enter .opening-copy {
  animation: openingCopyIn 420ms cubic-bezier(.18, .9, .2, 1) both;
}

.opening-copy p,
.opening-copy h2 {
  margin: 0;
}

#openingKicker {
  color: #82f2e5;
  font-family: var(--cut-ui-font);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
}

#openingSpeaker {
  margin-top: 6px;
  color: #f2f7fb;
  font-family: var(--cut-title-font);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0;
}

#openingLine {
  margin-top: 8px;
  color: #f3f7fb;
  font-family: var(--cut-body-font);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.56;
  letter-spacing: 0;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}

.opening-panel[data-anchor="lower-left"] #openingKicker {
  color: #82f2e5;
  font-size: 14px;
  font-weight: 700;
}

.opening-panel[data-anchor="lower-left"] #openingSpeaker {
  margin-top: 7px;
  font-size: 32px;
  line-height: 1.08;
  font-weight: 800;
}

.opening-panel[data-anchor="lower-left"] #openingLine {
  max-width: none;
  margin-top: 10px;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.58;
}

.opening-panel[data-anchor="news"] #openingLine {
  margin-top: 12px;
  max-width: none;
  font-size: clamp(17px, 1.65vw, 22px);
  font-weight: 500;
  line-height: 1.72;
}

.opening-panel[data-anchor="news"] #openingKicker {
  color: #ffda72;
  font-size: 12px;
  font-weight: 700;
}

.opening-panel[data-anchor="news"] #openingSpeaker {
  margin-top: 8px;
  max-width: none;
  font-size: clamp(24px, 2.45vw, 34px);
  font-weight: 800;
  line-height: 1.14;
}

.opening-actions {
  position: absolute;
  right: clamp(18px, 3.8vw, 42px);
  bottom: clamp(18px, 3.4vw, 34px);
  display: flex;
  gap: 8px;
}

.opening-actions button {
  min-width: 96px;
  min-height: 36px;
  border: 1px solid rgba(217, 232, 247, 0.34);
  color: #d9e8f7;
  background: rgba(5, 11, 18, 0.68);
  font-family: var(--cut-body-font);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  cursor: pointer;
}

.opening-actions button:first-child {
  color: #071018;
  border-color: transparent;
  background: linear-gradient(90deg, #82f2e5, #ffda72);
}

.opening-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(217, 232, 247, 0.12);
}

.opening-progress i {
  display: block;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #82f2e5, #ffda72);
  box-shadow: 0 0 14px rgba(130, 242, 229, 0.45);
}

.briefing-panel {
  position: absolute;
  inset: 0;
  z-index: 34;
  overflow: hidden;
  background: #050910;
  color: #f3f7fb;
}

.briefing-panel.hidden {
  display: none;
}

.briefing-panel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: clamp(22px, 4vw, 54px);
  opacity: 0.84;
  filter: saturate(0.96) brightness(0.82);
  transform: scale(1.01);
}

.briefing-panel.enter img {
  animation: openingStillIn 360ms ease-out both;
}

.briefing-vignette {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 9, 16, 0.92), rgba(5, 9, 16, 0.68) 42%, rgba(5, 9, 16, 0.24)),
    radial-gradient(circle at 72% 42%, rgba(130, 242, 229, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(5, 9, 16, 0.2), transparent 46%, rgba(5, 9, 16, 0.36));
  pointer-events: none;
}

.briefing-visuals {
  position: absolute;
  right: clamp(30px, 5.2vw, 74px);
  top: clamp(58px, 8vw, 96px);
  width: min(48vw, 620px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: clamp(10px, 1.4vw, 16px);
  z-index: 2;
  pointer-events: none;
}

.briefing-visuals.hidden {
  display: none;
}

.briefing-visual-card {
  position: relative;
  min-height: clamp(154px, 18vw, 212px);
  overflow: hidden;
  padding: 12px;
  border: 1px solid rgba(130, 242, 229, 0.32);
  background:
    linear-gradient(180deg, rgba(8, 20, 30, 0.72), rgba(4, 9, 16, 0.9)),
    radial-gradient(circle at 60% 18%, rgba(130, 242, 229, 0.16), transparent 42%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 18px 48px rgba(0, 0, 0, 0.26);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%);
  animation: briefingCardIn 420ms cubic-bezier(.18, .9, .2, 1) both;
}

.briefing-visual-card:nth-child(2) {
  animation-delay: 60ms;
}

.briefing-visual-card:nth-child(3) {
  animation-delay: 120ms;
}

.briefing-visual-card[data-tone="danger"] {
  border-color: rgba(255, 88, 139, 0.46);
  background:
    linear-gradient(180deg, rgba(24, 8, 19, 0.68), rgba(5, 8, 15, 0.92)),
    radial-gradient(circle at 62% 22%, rgba(255, 88, 139, 0.22), transparent 44%);
}

.briefing-visual-card img {
  position: static;
  inset: auto;
  display: block;
  width: 100%;
  height: clamp(86px, 10.5vw, 124px);
  padding: 0;
  object-fit: contain;
  opacity: 0.94;
  filter: saturate(1.05) brightness(0.95) drop-shadow(0 10px 24px rgba(0, 0, 0, 0.36));
}

.briefing-visual-card strong,
.briefing-visual-card span {
  position: relative;
  z-index: 1;
  display: block;
}

.briefing-visual-card strong {
  margin-top: 8px;
  color: #ffffff;
  font-family: var(--cut-title-font);
  font-size: clamp(13px, 1.2vw, 16px);
  font-weight: 700;
  letter-spacing: 0;
}

.briefing-visual-card span {
  margin-top: 4px;
  color: rgba(234, 247, 255, 0.84);
  font-family: var(--cut-body-font);
  font-size: clamp(11px, 1vw, 13px);
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0;
}

.briefing-copy {
  position: absolute;
  left: clamp(24px, 4.5vw, 58px);
  top: clamp(32px, 7vw, 76px);
  width: min(520px, calc(100% - 96px));
  min-height: 360px;
  padding: 22px 24px;
  border-left: 4px solid rgba(130, 242, 229, 0.86);
  background:
    linear-gradient(90deg, rgba(5, 12, 20, 0.9), rgba(5, 12, 20, 0.68) 86%, rgba(5, 12, 20, 0.08));
  box-shadow:
    inset 0 0 28px rgba(130, 242, 229, 0.12),
    0 24px 60px rgba(0, 0, 0, 0.36);
  font-family: var(--cut-body-font);
  font-feature-settings: "palt";
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9);
}

.briefing-panel.enter .briefing-copy {
  animation: openingCopyIn 360ms cubic-bezier(.18, .9, .2, 1) both;
}

.briefing-copy p,
.briefing-copy h2 {
  margin: 0;
}

.briefing-panel[data-layout="caption"] .briefing-vignette {
  background:
    linear-gradient(180deg, rgba(3, 6, 12, 0.04), rgba(3, 6, 12, 0) 58%, rgba(3, 6, 12, 0.42)),
    linear-gradient(90deg, rgba(3, 6, 12, 0.12), rgba(3, 6, 12, 0.02) 42%, rgba(3, 6, 12, 0.1));
}

.briefing-panel[data-layout="caption"] > img {
  object-fit: cover;
  padding: 0;
  opacity: 0.98;
  filter: saturate(0.98) brightness(0.9);
  transform: none;
}

.briefing-panel[data-layout="caption"] .briefing-copy {
  top: auto;
  left: clamp(32px, 5.4vw, 92px);
  right: clamp(32px, 5.4vw, 92px);
  bottom: clamp(66px, 7.4vw, 92px);
  display: flex;
  align-items: center;
  width: auto;
  min-height: 0;
  max-height: min(30vh, 230px);
  padding: clamp(10px, 1.4vw, 16px) 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9), 0 0 18px rgba(5, 11, 20, 0.72);
}

.briefing-panel[data-layout="caption"] #briefingKicker,
.briefing-panel[data-layout="caption"] #briefingTitle {
  display: none;
}

.briefing-panel[data-layout="caption"] #briefingBody {
  max-width: min(1120px, 100%);
  margin-top: 0;
  font-size: clamp(15px, 1.38vw, 20px);
  line-height: 1.54;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}

.briefing-panel[data-layout="caption"] .briefing-tags {
  display: none;
}

.briefing-panel[data-layout="caption"] .briefing-actions {
  left: auto;
  right: clamp(32px, 5.4vw, 92px);
  bottom: clamp(18px, 2.8vw, 34px);
}

#briefingKicker {
  color: #82f2e5;
  font-family: var(--cut-ui-font);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
}

#briefingTitle {
  margin-top: 8px;
  color: #f2f7fb;
  font-family: var(--cut-title-font);
  font-size: 30px;
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: 0;
}

#briefingBody {
  margin-top: 12px;
  max-width: 460px;
  color: #eaf7ff;
  font-family: var(--cut-body-font);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.58;
  letter-spacing: 0;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}

.briefing-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.briefing-tags span {
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid rgba(130, 242, 229, 0.36);
  color: #fff8de;
  background: rgba(130, 242, 229, 0.08);
  font-family: var(--cut-body-font);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
}

.briefing-actions {
  position: absolute;
  left: clamp(24px, 4.5vw, 58px);
  bottom: clamp(22px, 4vw, 42px);
  display: flex;
  gap: 8px;
}

.briefing-actions button {
  min-width: 110px;
  min-height: 40px;
  border: 1px solid rgba(217, 232, 247, 0.34);
  color: #d9e8f7;
  background: rgba(5, 11, 18, 0.72);
  font-family: var(--cut-body-font);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  cursor: pointer;
}

.briefing-actions button:first-child {
  color: #071018;
  border-color: transparent;
  background: linear-gradient(90deg, #82f2e5, #ffda72);
}

.start-panel.hidden {
  display: none;
}

.start-panel h2 {
  font-size: clamp(32px, 7vw, 72px);
  letter-spacing: 0.08em;
}

.start-panel p {
  max-width: 560px;
  margin: 0;
  color: #d9e8f7;
  line-height: 1.7;
}

.start-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.start-panel button {
  min-width: 150px;
  min-height: 44px;
  border: 0;
  color: #071018;
  background: linear-gradient(90deg, #6cf0c8, #ffda72);
  font-weight: 900;
  cursor: pointer;
}

.start-panel button.secondary-action {
  color: #d9e8f7;
  background: rgba(5, 11, 18, 0.72);
  border: 1px solid rgba(217, 232, 247, 0.38);
}

.start-panel button.hidden {
  display: none;
}

.start-panel .record-hint.hidden {
  display: none;
}

.start-panel .gamepad-focus {
  outline: 3px solid rgba(255, 248, 222, 0.92);
  outline-offset: 4px;
  box-shadow: 0 0 24px rgba(130, 242, 229, 0.42);
}

.quality-select {
  display: inline-grid;
  grid-template-columns: repeat(3, minmax(58px, 1fr));
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(130, 242, 229, 0.28);
  background: rgba(5, 11, 18, 0.54);
}

.start-panel .quality-button {
  min-width: 58px;
  min-height: 30px;
  border: 0;
  color: #b9cad8;
  background: transparent;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.start-panel .quality-button.active {
  color: #071018;
  background: linear-gradient(90deg, #65e3ff, #b9c7ff);
}

.start-panel .quality-description {
  max-width: 440px;
  margin: -6px 0 0;
  color: #c9d8e8;
  font-size: 12px;
  line-height: 1.5;
}

.start-panel .gamepad-hint {
  max-width: 560px;
  margin: -8px 0 0;
  color: #fff8de;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.5;
}

.start-panel .record-hint {
  max-width: 520px;
  margin: -10px 0 0;
  color: #ffda72;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.5;
}

.issue-capture-panel {
  position: absolute;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(1, 5, 12, 0.68);
}

.issue-capture-panel.hidden {
  display: none;
}

.issue-capture-card {
  display: grid;
  gap: 12px;
  width: min(980px, calc(100vw - 40px));
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 16px;
  border: 1px solid rgba(130, 242, 229, 0.38);
  background: rgba(5, 11, 18, 0.94);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.42);
}

.issue-capture-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.issue-capture-header p {
  margin: 0 0 4px;
  color: #82f2e5;
  font-size: 12px;
  font-weight: 900;
}

.issue-capture-header h2 {
  margin: 0;
  font-size: 22px;
}

.issue-capture-header button {
  width: 42px;
  min-width: 42px;
  height: 42px;
  border: 1px solid rgba(217, 232, 247, 0.32);
  color: #f3f7fb;
  background: rgba(255, 255, 255, 0.08);
  font-size: 24px;
  font-weight: 900;
  cursor: pointer;
}

.issue-capture-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(300px, 0.92fr);
  gap: 12px;
}

.issue-capture-preview {
  display: grid;
  place-items: center;
  min-height: 220px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(217, 232, 247, 0.18);
}

.issue-capture-preview img {
  width: 100%;
  height: auto;
  max-height: 360px;
  object-fit: contain;
}

.issue-capture-form {
  display: grid;
  gap: 8px;
}

.issue-capture-card label {
  color: #ffda72;
  font-size: 12px;
  font-weight: 900;
}

.issue-capture-card textarea,
.issue-capture-card pre {
  width: 100%;
  margin: 0;
  padding: 10px;
  border: 1px solid rgba(217, 232, 247, 0.24);
  color: #f3f7fb;
  background: rgba(2, 6, 12, 0.78);
  font: 800 12px/1.55 Consolas, "Yu Gothic UI", Meiryo, monospace;
}

.issue-capture-card textarea {
  resize: vertical;
}

.issue-capture-card pre {
  min-height: 128px;
  white-space: pre-wrap;
}

.issue-capture-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.issue-capture-actions button {
  min-height: 40px;
  border: 0;
  padding: 0 14px;
  color: #071018;
  background: linear-gradient(90deg, #82f2e5, #ffda72);
  font-weight: 900;
  cursor: pointer;
}

.issue-capture-status {
  margin: 0;
  color: #c9d8e8;
  font-size: 12px;
  font-weight: 800;
}

@media (max-width: 760px) {
  .issue-capture-grid {
    grid-template-columns: 1fr;
  }
}

.test-start-panel {
  display: none;
  gap: 8px;
  width: min(520px, calc(100vw - 48px));
  padding: 12px;
  border: 1px solid rgba(255, 218, 114, 0.32);
  background: rgba(5, 11, 18, 0.66);
}

body.test-mode .test-start-panel,
.test-start-panel.practice-open {
  display: grid;
}

.test-start-panel.hidden {
  display: none;
}

.test-start-panel label {
  color: #ffda72;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
}

.start-panel .test-start-panel .test-stage-controls {
  display: grid;
  grid-template-columns: auto minmax(180px, 1fr) auto auto;
  gap: 8px;
  align-items: center;
  padding: 0;
  border: 0;
  background: transparent;
}

.start-panel .test-start-panel .test-stage-controls-secondary {
  grid-template-columns: minmax(180px, 1fr);
}

.test-start-panel select {
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid rgba(217, 232, 247, 0.34);
  color: #f3f7fb;
  background: rgba(4, 8, 14, 0.9);
  font-weight: 800;
}

.start-panel .test-start-panel button {
  min-width: 168px;
  min-height: 40px;
}

.start-panel .test-start-panel .test-stage-step {
  width: 42px;
  min-width: 42px;
  padding: 0;
  font-size: 20px;
  line-height: 1;
}

.test-start-panel p {
  max-width: none;
  color: #c9d8e8;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.4;
}

@media (max-width: 560px) {
  .start-panel .test-start-panel .test-stage-controls {
    grid-template-columns: 1fr;
  }

  .start-panel .test-start-panel button {
    width: 100%;
  }
}

.controls-panel {
  display: grid;
  gap: 10px;
  width: min(640px, calc(100vw - 48px));
  padding: 12px;
  border: 1px solid rgba(130, 242, 229, 0.3);
  background: rgba(5, 11, 18, 0.72);
}

.controls-panel.hidden {
  display: none;
}

.controls-panel p {
  max-width: none;
  margin: 0;
  color: #d9e8f7;
  font-size: 12px;
  line-height: 1.5;
}

.controls-panel h3 {
  margin: 2px 0 -2px;
  color: #82f2e5;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
}

.controls-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(96px, 1fr));
  gap: 8px;
}

.start-panel .controls-grid button {
  display: grid;
  gap: 2px;
  min-width: 0;
  min-height: 48px;
  padding: 6px 8px;
  color: #d9e8f7;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.controls-grid span {
  font-size: 10px;
  color: #82f2e5;
}

.controls-grid strong {
  font-size: 14px;
  color: #fff8de;
}

.start-panel .controls-grid button.binding {
  color: #071018;
  background: linear-gradient(90deg, #82f2e5, #ffda72);
}

.start-panel .controls-grid button.binding span,
.start-panel .controls-grid button.binding strong {
  color: #071018;
}

.start-panel dl {
  display: grid;
  grid-template-columns: repeat(5, minmax(92px, 1fr));
  gap: 8px;
  max-width: 720px;
  margin: 6px 0 0;
}

.start-panel div {
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.start-panel dt,
.start-panel dd {
  margin: 0;
}

.start-panel dt {
  color: #82f2e5;
  font-size: 11px;
  font-weight: 800;
}

.start-panel dd {
  margin-top: 2px;
  color: #fff8de;
  font-size: 12px;
}

.start-panel kbd {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 20px;
  margin: 0 2px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.1);
  color: #fff8de;
  font-family: Consolas, "Cascadia Mono", monospace;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
}

@keyframes cutinLeft {
  from {
    opacity: 0;
    transform: translateX(-110%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes cutinRight {
  from {
    opacity: 0;
    transform: translateX(110%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes cutinScanSweep {
  0% {
    opacity: 0;
    transform: translateX(-58%) skewX(-12deg);
  }
  30% {
    opacity: 0.62;
  }
  100% {
    opacity: 0;
    transform: translateX(88%) skewX(-12deg);
  }
}

@keyframes limiterReleaseSweep {
  0% {
    opacity: 0;
    transform: translateX(-64%) skewX(-10deg);
  }
  32% {
    opacity: 0.72;
  }
  100% {
    opacity: 0;
    transform: translateX(92%) skewX(-10deg);
  }
}

@keyframes limiterReleaseTextIn {
  0% {
    opacity: 0;
    transform: translateX(24px);
    filter: blur(3px);
  }
  70% {
    opacity: 1;
    transform: translateX(-3px);
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
    filter: blur(0);
  }
}

@keyframes limiterReleaseSystemLog {
  0% {
    opacity: 0;
    transform: translateY(8px);
    filter: blur(2px);
  }
  72% {
    opacity: 1;
    transform: translateY(-1px);
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes limiterReleaseSeal {
  0% {
    opacity: 0;
    transform: translateX(24px) scaleX(0.32);
  }
  100% {
    opacity: 0.9;
    transform: translateX(0) scaleX(1);
  }
}

@keyframes cutinTextIn {
  0% {
    opacity: 0;
    transform: translateX(-18px);
    filter: blur(2px);
  }
  58% {
    opacity: 1;
    transform: translateX(3px);
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
    filter: blur(0);
  }
}

@keyframes mioVectorFrameCamera {
  0% {
    opacity: 0;
    transform: scale(1.06) translateX(-1.5%);
    filter: saturate(0.82) brightness(0.72) contrast(1.06) drop-shadow(0 0 10px var(--support-accent-faint));
  }
  12% {
    opacity: 0.94;
  }
  38% {
    transform: scale(1.025) translateX(-0.4%);
    filter: saturate(1.02) brightness(0.92) contrast(1.04) drop-shadow(0 0 18px var(--support-accent-faint));
  }
  72% {
    transform: scale(1.065) translateX(-1.1%);
    filter: saturate(1.18) brightness(1.12) contrast(1.08) drop-shadow(0 0 34px var(--support-accent-soft));
  }
  100% {
    opacity: 0.9;
    transform: scale(1.025) translateX(0);
    filter: saturate(1.06) brightness(0.96) contrast(1.04) drop-shadow(0 0 22px var(--support-accent-faint));
  }
}

@keyframes mioVectorFrameFlash {
  0%,
  58%,
  76%,
  100% {
    opacity: 0;
  }
  67% {
    opacity: 0.28;
  }
  84% {
    opacity: 0.48;
  }
  90% {
    opacity: 0.1;
  }
}

@keyframes mioVectorVideoHold {
  0% {
    opacity: 0;
    transform: scale(1.018);
    filter: saturate(0.9) brightness(0.76) contrast(1.06) drop-shadow(0 0 12px var(--support-accent-faint));
  }
  8% {
    opacity: 0.98;
  }
  70% {
    transform: scale(1.004);
    filter: saturate(1.1) brightness(1.02) contrast(1.06) drop-shadow(0 0 24px var(--support-accent-faint));
  }
  100% {
    opacity: 0.94;
    transform: scale(1);
    filter: saturate(1.04) brightness(0.94) contrast(1.04) drop-shadow(0 0 20px var(--support-accent-faint));
  }
}

@keyframes cutinHairDrift {
  0% {
    opacity: 0;
    transform: translateY(-50%) translateX(32px) scale(1.02);
  }
  34% {
    opacity: 0.24;
    transform: translateY(calc(-50% - 5px)) translateX(-9px) scale(1.045);
  }
  100% {
    opacity: 0.12;
    transform: translateY(calc(-50% - 2px)) translateX(0) scale(1.032);
  }
}

@keyframes cutinTorsoPulse {
  0% {
    opacity: 0;
    transform: translateY(-50%) translateX(22px) scale(1.01);
  }
  42% {
    opacity: 0.16;
    transform: translateY(calc(-50% + 4px)) translateX(-5px) scale(1.03);
  }
  100% {
    opacity: 0.08;
    transform: translateY(-50%) translateX(0) scale(1.02);
  }
}

@keyframes cutinHairGlitch {
  0% {
    opacity: 0;
    transform: translateY(-50%) translateX(32px) skewX(-5deg);
  }
  28% {
    opacity: 0.26;
    transform: translateY(calc(-50% - 4px)) translateX(-13px) skewX(4deg);
  }
  55% {
    opacity: 0.18;
    transform: translateY(calc(-50% + 2px)) translateX(8px) skewX(-3deg);
  }
  100% {
    opacity: 0.11;
    transform: translateY(-50%) translateX(0);
  }
}

@keyframes cutinTorsoGlitch {
  0% {
    opacity: 0;
    transform: translateY(-50%) translateX(28px) skewX(3deg);
  }
  32% {
    opacity: 0.18;
    transform: translateY(calc(-50% + 5px)) translateX(-10px) skewX(-4deg);
  }
  100% {
    opacity: 0.08;
    transform: translateY(-50%) translateX(0);
  }
}

@keyframes cutinHairImpact {
  0% {
    opacity: 0;
    transform: translateY(-50%) translateX(38px) scale(1.01) rotate(0.8deg);
  }
  38% {
    opacity: 0.24;
    transform: translateY(calc(-50% - 11px)) translateX(-14px) scale(1.052) rotate(-0.5deg);
  }
  100% {
    opacity: 0.11;
    transform: translateY(calc(-50% - 1px)) translateX(0) scale(1.028);
  }
}

@keyframes cutinTorsoImpact {
  0% {
    opacity: 0;
    transform: translateY(-50%) translateX(34px) scale(1.01);
  }
  42% {
    opacity: 0.17;
    transform: translateY(calc(-50% + 8px)) translateX(-8px) scale(1.04);
  }
  100% {
    opacity: 0.08;
    transform: translateY(-50%) translateX(0) scale(1.018);
  }
}

@keyframes cutinHairFloat {
  0% {
    opacity: 0;
    transform: translateY(calc(-50% + 15px)) translateX(24px) scale(1.01);
  }
  52% {
    opacity: 0.22;
    transform: translateY(calc(-50% - 12px)) translateX(-7px) scale(1.04);
  }
  100% {
    opacity: 0.1;
    transform: translateY(calc(-50% - 6px)) translateX(0) scale(1.028);
  }
}

@keyframes cutinTorsoFloat {
  0% {
    opacity: 0;
    transform: translateY(calc(-50% + 14px)) translateX(18px) scale(1.01);
  }
  58% {
    opacity: 0.14;
    transform: translateY(calc(-50% - 7px)) translateX(-4px) scale(1.028);
  }
  100% {
    opacity: 0.07;
    transform: translateY(calc(-50% - 3px)) translateX(0) scale(1.018);
  }
}

@keyframes cutinHairRelay {
  0% {
    opacity: 0;
    transform: translateY(-50%) translateX(44px) scale(1.01) rotate(-1deg);
  }
  34% {
    opacity: 0.25;
    transform: translateY(calc(-50% - 12px)) translateX(-17px) scale(1.055) rotate(0.8deg);
  }
  64% {
    transform: translateY(calc(-50% + 4px)) translateX(6px) scale(1.03) rotate(-0.3deg);
  }
  100% {
    opacity: 0.12;
    transform: translateY(-50%) translateX(0) scale(1.026);
  }
}

@keyframes cutinTorsoRelay {
  0% {
    opacity: 0;
    transform: translateY(-50%) translateX(36px) scale(1.01) rotate(-0.8deg);
  }
  40% {
    opacity: 0.16;
    transform: translateY(calc(-50% - 6px)) translateX(-12px) scale(1.04) rotate(0.6deg);
  }
  100% {
    opacity: 0.08;
    transform: translateY(-50%) translateX(0) scale(1.018);
  }
}

@keyframes operatorPortraitInertia {
  0% {
    opacity: 0.2;
    transform: translateY(-50%) translateX(34px) scale(1.03) rotate(0.8deg);
    filter: saturate(0.8) brightness(0.78) drop-shadow(0 0 8px var(--support-accent-faint));
  }
  46% {
    opacity: 1;
    transform: translateY(-50%) translateX(-7px) scale(1.065) rotate(-0.35deg);
    filter: saturate(1.04) brightness(1.03) drop-shadow(0 0 22px var(--support-accent-soft));
  }
  100% {
    opacity: 0.92;
    transform: translateY(-50%) translateX(0) scale(1.045);
    filter: saturate(0.96) brightness(0.92) drop-shadow(0 0 16px var(--support-accent-faint));
  }
}

@keyframes operatorFullBodyIn {
  0% {
    opacity: 0;
    transform: translateY(-50%) translateX(64px) scale(0.94);
  }
  48% {
    opacity: 0.5;
    transform: translateY(-50%) translateX(-10px) scale(1.02);
  }
  100% {
    opacity: 0.44;
    transform: translateY(-50%) translateX(0) scale(1);
  }
}

@keyframes operatorFullBodyGlitchIn {
  0% {
    opacity: 0;
    transform: translateY(-50%) translateX(72px) scale(0.95) skewX(-5deg);
    filter: saturate(0.7) brightness(0.7) drop-shadow(-12px 0 0 rgba(64, 217, 205, 0.2));
  }
  32% {
    opacity: 0.56;
    transform: translateY(-50%) translateX(-14px) scale(1.03) skewX(4deg);
    filter: saturate(1.15) brightness(0.96) drop-shadow(12px 0 0 rgba(157, 123, 255, 0.18));
  }
  100% {
    opacity: 0.44;
    transform: translateY(-50%) translateX(0) scale(1);
    filter: saturate(0.82) brightness(0.82) drop-shadow(0 0 26px var(--support-accent-faint));
  }
}

@keyframes operatorFullBodyImpactIn {
  0% {
    opacity: 0;
    transform: translateY(-50%) translateX(78px) scale(0.93) rotate(1.8deg);
  }
  42% {
    opacity: 0.54;
    transform: translateY(calc(-50% - 10px)) translateX(-18px) scale(1.035) rotate(-1deg);
  }
  100% {
    opacity: 0.45;
    transform: translateY(-50%) translateX(0) scale(1);
  }
}

@keyframes operatorFullBodyFloatIn {
  0% {
    opacity: 0;
    transform: translateY(calc(-50% + 36px)) translateX(56px) scale(0.94);
    filter: saturate(0.72) brightness(0.74) blur(1px) drop-shadow(0 0 20px var(--support-accent-faint));
  }
  55% {
    opacity: 0.5;
    transform: translateY(calc(-50% - 12px)) translateX(-8px) scale(1.02);
    filter: saturate(0.92) brightness(0.94) blur(0) drop-shadow(0 0 30px var(--support-accent-faint));
  }
  100% {
    opacity: 0.42;
    transform: translateY(calc(-50% - 4px)) translateX(0) scale(1);
    filter: saturate(0.82) brightness(0.82) drop-shadow(0 0 26px var(--support-accent-faint));
  }
}

@keyframes operatorFullBodyRelayIn {
  0% {
    opacity: 0;
    transform: translateY(-50%) translateX(88px) scale(0.92) rotate(-2deg);
  }
  36% {
    opacity: 0.56;
    transform: translateY(calc(-50% - 16px)) translateX(-24px) scale(1.04) rotate(1.2deg);
  }
  64% {
    transform: translateY(calc(-50% + 7px)) translateX(8px) scale(0.995) rotate(-0.4deg);
  }
  100% {
    opacity: 0.45;
    transform: translateY(-50%) translateX(0) scale(1);
  }
}

@keyframes operatorGlitchIn {
  0% {
    opacity: 0.15;
    transform: translateY(-50%) translateX(42px) scale(1.02) skewX(-4deg);
    filter: saturate(0.7) brightness(0.72) drop-shadow(-10px 0 0 rgba(64, 217, 205, 0.22));
  }
  24% {
    opacity: 0.95;
    transform: translateY(-50%) translateX(-14px) scale(1.06) skewX(3deg);
    filter: saturate(1.2) brightness(1.12) drop-shadow(12px 0 0 rgba(157, 123, 255, 0.2));
  }
  46% {
    transform: translateY(-50%) translateX(5px) scale(1.045) skewX(-2deg);
    filter: saturate(1.08) brightness(0.98) drop-shadow(0 0 24px var(--support-accent-soft));
  }
  100% {
    opacity: 0.92;
    transform: translateY(-50%) translateX(0) scale(1.035);
    filter: saturate(0.98) brightness(0.92) drop-shadow(0 0 16px var(--support-accent-faint));
  }
}

@keyframes operatorImpactIn {
  0% {
    opacity: 0.2;
    transform: translateY(-50%) translateX(48px) scale(1.01) rotate(1.3deg);
    filter: saturate(0.8) brightness(0.72) drop-shadow(0 0 8px var(--support-accent-faint));
  }
  40% {
    opacity: 1;
    transform: translateY(calc(-50% - 10px)) translateX(-12px) scale(1.08) rotate(-0.8deg);
    filter: saturate(1.14) brightness(1.08) drop-shadow(0 0 24px var(--support-accent-soft));
  }
  66% {
    transform: translateY(calc(-50% + 5px)) translateX(3px) scale(1.045);
  }
  100% {
    opacity: 0.93;
    transform: translateY(-50%) translateX(0) scale(1.04);
    filter: saturate(1) brightness(0.93) drop-shadow(0 0 16px var(--support-accent-faint));
  }
}

@keyframes operatorFloatIn {
  0% {
    opacity: 0.12;
    transform: translateY(calc(-50% + 20px)) translateX(32px) scale(1.015);
    filter: saturate(0.68) brightness(0.78) blur(1px) drop-shadow(0 0 8px var(--support-accent-faint));
  }
  54% {
    opacity: 1;
    transform: translateY(calc(-50% - 7px)) translateX(-6px) scale(1.055);
    filter: saturate(1.02) brightness(1.05) blur(0) drop-shadow(0 0 24px var(--support-accent-soft));
  }
  100% {
    opacity: 0.92;
    transform: translateY(calc(-50% - 3px)) translateX(0) scale(1.035);
    filter: saturate(0.96) brightness(0.94) drop-shadow(0 0 16px var(--support-accent-faint));
  }
}

@keyframes operatorRelayIn {
  0% {
    opacity: 0.18;
    transform: translateY(-50%) translateX(54px) scale(1.01) rotate(-1.5deg);
    filter: saturate(0.78) brightness(0.76) drop-shadow(0 0 8px var(--support-accent-faint));
  }
  36% {
    opacity: 1;
    transform: translateY(calc(-50% - 8px)) translateX(-18px) scale(1.075) rotate(1.1deg);
    filter: saturate(1.18) brightness(1.08) drop-shadow(0 0 24px var(--support-accent-soft));
  }
  62% {
    transform: translateY(calc(-50% + 4px)) translateX(8px) scale(1.045) rotate(-0.4deg);
  }
  100% {
    opacity: 0.93;
    transform: translateY(-50%) translateX(0) scale(1.04);
    filter: saturate(1) brightness(0.94) drop-shadow(0 0 16px var(--support-accent-faint));
  }
}

@media (max-width: 760px) {
  :root {
    --viewport-pad: 0px;
  }

  .shell {
    padding: 0;
  }

  .stage {
    width: 100vw;
    height: calc(100vw * 9 / 16);
    max-height: 100dvh;
    border: 0;
  }

  .support-dock {
    top: 14px;
    gap: 4px;
  }

  .support-chip {
    width: 46px;
    height: 46px;
  }

  .support-chip span {
    font-size: 8px;
  }

  .touch-controls {
    display: block;
  }

  .bottom-left,
  .bottom-right {
    bottom: 150px;
  }

  .pilot-card,
  .operator-card {
    max-width: 46vw;
    gap: 8px;
    padding: 8px;
  }

  .operator-card {
    width: 48vw;
    min-height: 116px;
    height: auto;
  }

  .operator-copy {
    grid-template-rows: auto auto minmax(2.5em, auto) auto;
  }

  .portrait {
    width: 38px;
    height: 38px;
  }

  .portrait.operator {
    width: 54px;
    height: 70px;
  }

  .support-limit {
    max-width: 54px;
    padding: 3px 4px;
    font-size: 7.2px;
  }

  h1,
  h2 {
    font-size: 13px;
  }

  .pilot-card p:last-child {
    display: none;
  }

  #operatorLine {
    height: 2.6em;
    font-size: 11px;
  }

  #supportAbility {
    display: grid;
    min-height: 2.4em;
    margin-top: 4px;
    padding-top: 4px;
    font-size: 9px;
  }

  #supportAbility span {
    white-space: normal;
  }

  .cutin-overlay[data-kind="limiterRelease"] .cutin-operator img {
    display: none;
  }

  .cutin-overlay[data-kind="limiterRelease"] .cutin-full-body {
    display: none;
  }

  .cutin-overlay[data-kind="limiterRelease"] .cutin-operator .cutin-copy {
    display: none;
  }

  .limiter-release-copy {
    left: 0;
    right: 0;
    top: 50%;
    width: 100%;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
      "kicker support"
      "title title"
      "count count";
    column-gap: 12px;
    row-gap: 7px;
    min-height: 104px;
    padding: 14px 18px 15px;
  }

  .limiter-release-copy::before,
  .limiter-release-copy::after {
    left: 18px;
    right: 18px;
  }

  .limiter-release-copy::before {
    top: 9px;
  }

  .limiter-release-copy::after {
    bottom: 9px;
  }

  .limiter-release-copy p {
    font-size: 9px;
  }

  .limiter-release-copy h2 {
    margin-top: 0;
    font-size: 29px;
  }

  .limiter-release-copy span {
    margin-top: 0;
    min-width: 0;
    padding: 0;
    font-size: 9px;
  }

  .limiter-release-copy b {
    margin-top: 0;
    font-size: 8px;
  }

  .limiter-release-authorization {
    top: calc(50% + 58px);
    display: grid;
    width: calc(100% - 260px);
    gap: 5px;
  }

  .meters {
    width: 48vw;
  }

  .meter-action strong {
    font-size: 9px;
  }

  .status {
    min-width: 112px;
  }

  .story-panel {
    padding: 0;
  }

  .story-visual {
    min-height: 0;
  }

  .story-visual img {
    display: none;
  }

  .story-panel[data-image-mode="ending-stills"] .story-visual img {
    display: block;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.62;
  }

  .story-panel[data-image-mode="story-still"] .story-visual img {
    display: block;
    left: 0;
    right: 0;
    top: clamp(46px, 7vh, 68px);
    bottom: auto;
    width: 100%;
    height: auto;
    max-height: 58vh;
    object-fit: contain;
    object-position: center;
    opacity: 0.9;
    filter: saturate(1.04) brightness(0.94) contrast(1.04);
  }

  .story-panel[data-image-mode="story-still"]::before {
    background:
      linear-gradient(180deg, rgba(1, 4, 9, 0.02) 0 42%, rgba(1, 4, 9, 0.5) 76%, rgba(1, 4, 9, 0.94) 100%),
      linear-gradient(90deg, rgba(130, 242, 229, 0.08), transparent 24% 74%, rgba(255, 242, 168, 0.06));
    opacity: 0.84;
  }

  .story-panel[data-image-mode="support-lineup"] .story-visual img {
    display: block;
    top: clamp(72px, 12vh, 116px);
    bottom: auto;
    width: 118vw;
    height: auto;
    max-height: 34vh;
    opacity: 0.76;
  }

  .story-active-face {
    top: 16px;
    bottom: auto;
    right: -20px;
    width: 46vw;
    height: 42vh;
    opacity: 0.2;
  }

  .story-panel[data-active-face="pilot"] .story-active-face {
    left: -22px;
    right: auto;
    opacity: 0.18;
  }

  .story-copy {
    left: 18px;
    right: 18px;
    bottom: 18px;
    width: auto;
    min-height: auto;
    padding: 18px 16px 16px;
  }

  .story-panel[data-image-mode="ending-stills"] .story-copy {
    left: 16px;
    right: 16px;
    bottom: 16px;
    min-height: auto;
    padding: 16px 15px 15px;
  }

  .story-panel[data-image-mode="story-still"] .story-copy,
  .story-panel[data-image-mode="support-lineup"] .story-copy {
    left: 16px;
    right: 16px;
    bottom: 16px;
    min-height: auto;
    padding: 16px 15px 15px;
  }

  .story-copy h2 {
    font-size: 20px;
    line-height: 1.16;
  }

  .story-dialogue {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 10px;
  }

  .story-speaker {
    min-height: 80px;
    padding: 0;
    gap: 10px;
  }

  .story-speaker-left {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .story-speaker-right {
    grid-template-columns: minmax(0, 1fr) 58px;
    width: 100%;
  }

  .story-face {
    width: 58px;
    height: 68px;
    clip-path: none;
  }

  .story-speaker p {
    font-size: 14px;
    line-height: 1.48;
  }

  .story-panel[data-image-mode="ending-stills"] .story-speaker p {
    font-size: 15px;
    line-height: 1.5;
  }

  .opening-copy {
    left: 18px;
    right: 18px;
    bottom: 86px;
    width: auto;
    padding: 14px 15px 16px;
  }

  .opening-panel[data-anchor="lower-left"]::before,
  .opening-panel[data-anchor="lower-left"]::after {
    display: none;
  }

  .opening-portrait,
  .opening-panel[data-portrait="true"] .opening-portrait {
    right: 18px;
    bottom: 78px;
    width: 96px;
    height: 96px;
    opacity: 0.72;
  }

  .opening-panel .opening-foreground {
    height: clamp(86px, 12vh, 104px);
  }

  .opening-panel .opening-foreground-left {
    left: 2px;
    bottom: 112px;
  }

  .opening-panel .opening-foreground-right {
    right: 2px;
    bottom: 112px;
  }

  .opening-panel[data-anchor="lower-left"] .opening-copy {
    left: 18px;
    right: 18px;
    bottom: 82px;
    min-height: 0;
    padding: 16px 17px 18px;
  }

  .opening-panel[data-anchor="lower-left"][data-portrait="true"] .opening-copy {
    right: 18px;
    padding-right: 116px;
  }

  .opening-panel[data-anchor="lower-left"][data-portrait="true"] #openingSpeaker {
    font-size: 18px;
  }

  .opening-panel[data-anchor="lower-left"][data-portrait="true"] #openingLine {
    font-size: 14px;
    line-height: 1.46;
  }

  .opening-panel[data-anchor="news"] .opening-copy {
    left: 18px;
    right: 18px;
    top: auto;
    bottom: 72px;
    width: auto;
    min-height: 0;
    padding: 16px 16px 18px;
  }

  .opening-panel[data-anchor="news"]::before {
    height: 38px;
    padding-left: 18px;
    font-size: 12px;
  }

  .opening-panel[data-anchor="news"]::after {
    height: 28px;
    padding-left: 18px;
    font-size: 10px;
  }

  .opening-panel[data-anchor="news"] .opening-copy::before {
    display: none;
  }

  .opening-panel[data-anchor="guide"] img {
    object-fit: cover;
    padding: 0;
  }

  .opening-panel[data-anchor="guide"] .opening-copy {
    left: 0;
    right: 0;
    bottom: 54px;
    width: auto;
    min-height: 124px;
    padding: 13px 18px 15px;
  }

  .opening-callout {
    max-width: 160px;
    padding: 5px 8px;
    font-size: 10px;
  }

  #openingSpeaker {
    font-size: 17px;
  }

  #openingLine {
    font-size: 14px;
    line-height: 1.46;
  }

  .opening-panel[data-anchor="lower-left"] #openingSpeaker {
    font-size: 20px;
  }

  .opening-panel[data-anchor="lower-left"] #openingLine {
    max-width: none;
    font-size: 15px;
    line-height: 1.52;
  }

  .opening-panel[data-anchor="news"] #openingLine {
    font-size: 14px;
    line-height: 1.56;
    max-width: none;
  }

  .opening-panel[data-anchor="news"] #openingSpeaker {
    max-width: none;
    font-size: 20px;
  }

  .opening-panel[data-anchor="guide"] #openingSpeaker {
    font-size: 19px;
  }

  .opening-panel[data-anchor="guide"] #openingLine {
    max-width: none;
    font-size: 14px;
    line-height: 1.48;
  }

  .opening-panel[data-frame^="opening-world-route-cast-map"] .opening-copy {
    left: 14px;
    right: 190px;
    bottom: 42px;
    min-height: 108px;
    padding: 10px 13px 11px;
  }

  .opening-panel[data-frame^="opening-world-route-cast-map"] #openingKicker {
    font-size: 10px;
  }

  .opening-panel[data-frame^="opening-world-route-cast-map"] #openingSpeaker {
    display: block;
    margin-top: 4px;
    font-size: 18px;
  }

  .opening-panel[data-frame^="opening-world-route-cast-map"] #openingLine {
    max-width: none;
    margin-top: 4px;
    font-size: 14px;
    line-height: 1.44;
  }

  .opening-actions {
    left: 18px;
    right: 18px;
    bottom: 24px;
    justify-content: flex-end;
  }

  .opening-actions button {
    min-width: 88px;
  }

  .briefing-panel img {
    object-fit: cover;
    padding: 0;
    opacity: 0.64;
  }

  .briefing-panel[data-layout="caption"] img {
    object-fit: cover;
    opacity: 1;
  }

  .briefing-copy {
    left: 18px;
    right: 18px;
    top: 116px;
    bottom: 78px;
    width: auto;
    min-height: 0;
    padding: 16px;
    overflow: hidden;
  }

  .briefing-panel[data-layout="caption"] .briefing-copy {
    top: auto;
    left: clamp(18px, 5.2vw, 42px);
    right: clamp(18px, 5.2vw, 42px);
    bottom: clamp(54px, 12vw, 72px);
    max-height: 36%;
    padding: 8px 0;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .briefing-panel[data-layout="caption"] #briefingKicker {
    font-size: 9px;
  }

  .briefing-panel[data-layout="caption"] #briefingTitle {
    font-size: clamp(14px, 4.2vw, 20px);
  }

  .briefing-panel[data-layout="caption"] #briefingBody {
    margin-top: 5px;
    font-size: clamp(11px, 3.2vw, 15px);
    line-height: 1.42;
  }

  .briefing-panel[data-layout="caption"] .briefing-actions {
    left: auto;
    right: clamp(18px, 5.2vw, 42px);
    bottom: clamp(12px, 4vw, 22px);
  }

  .briefing-panel[data-layout="caption"] .briefing-actions button {
    min-width: 86px;
    min-height: 34px;
    font-size: 12px;
  }

  .briefing-visuals {
    left: 18px;
    right: 18px;
    top: 16px;
    bottom: auto;
    width: auto;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .briefing-visual-card {
    min-height: 82px;
    padding: 6px;
  }

  .briefing-visual-card img {
    height: 44px;
  }

  .briefing-visual-card strong {
    margin-top: 4px;
    font-size: 9px;
  }

  .briefing-visual-card span {
    display: none;
  }

  #briefingTitle {
    font-size: 18px;
  }

  #briefingBody {
    font-size: 14px;
    line-height: 1.38;
  }

  .briefing-actions {
    left: 18px;
    right: 18px;
    bottom: 24px;
    justify-content: flex-end;
  }

  #modeName {
    font-size: 15px;
  }

  .start-panel dl {
    grid-template-columns: repeat(2, minmax(112px, 1fr));
  }

  .cutin-panel {
    width: 100%;
    height: 100%;
    margin: 0;
  }

  .cutin-operator {
    width: 100%;
    height: 100%;
  }

  .cutin-panel img {
    width: clamp(190px, 38vw, 280px);
    height: 102%;
  }

  .cutin-operator img {
    left: clamp(8px, 3vw, 28px);
    top: 50%;
    width: clamp(190px, 38vw, 280px);
    height: 102%;
    margin: 0;
  }

  .cutin-motion-strip {
    left: clamp(8px, 3vw, 28px);
    width: clamp(190px, 38vw, 280px);
    background-size: clamp(190px, 38vw, 280px) 102%;
  }

  .cutin-motion-hair {
    top: -2%;
    height: 34%;
  }

  .cutin-motion-torso {
    top: 46%;
    height: 32%;
    background-position: 0 48%;
  }

  .cutin-full-body {
    right: clamp(8px, 2.8vw, 22px);
    width: clamp(270px, 42vw, 340px);
    height: 110%;
    opacity: 0.22;
  }

  .cutin-operator .cutin-copy {
    left: clamp(206px, 42vw, 310px);
    right: 14px;
    bottom: 26px;
    max-width: none;
    margin: 0;
  }

  .cutin-copy {
    padding: 12px;
  }

  .cutin-copy h3 {
    font-size: 19px;
  }

  .cutin-copy span {
    font-size: 13px;
  }

  .comm-cutin {
    top: 50%;
    padding: 0 14px;
  }

  .rescue-cutin img {
    opacity: 0.46;
    object-position: var(--rescue-image-position, 62% 50%);
  }

  .rescue-cutin-vignette {
    background:
      linear-gradient(90deg, rgba(4, 9, 15, 0.88), rgba(4, 9, 15, 0.54) 56%, rgba(4, 9, 15, 0.12)),
      linear-gradient(180deg, rgba(4, 9, 15, 0.22), transparent 34%, rgba(4, 9, 15, 0.42));
  }

  .rescue-cutin-copy {
    left: 18px;
    right: 18px;
    bottom: 102px;
    width: auto;
  }

  #rescueCutinKicker {
    font-size: 10px;
  }

  #rescueCutinTitle {
    font-size: 22px;
  }

  #rescueCutinLine {
    font-size: 14px;
    line-height: 1.45;
  }

  .comm-band {
    width: calc(100% - 28px);
    min-height: 104px;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 12px;
    padding: 12px 16px 12px 14px;
  }

  .comm-portrait {
    width: 58px;
    height: 58px;
  }

  .comm-pilot {
    width: 44px;
    height: 58px;
    background-size: cover, 230%, cover;
  }

  .comm-copy h3 {
    font-size: 17px;
  }

  #commLine {
    font-size: 13px;
  }

  #commPilotLine {
    font-size: 13px;
  }
}

@media (max-height: 560px) and (orientation: landscape) {
  :root {
    --viewport-pad: 0px;
  }

  .stage {
    border: 0;
  }

  .support-dock {
    left: 50%;
    top: 12px;
    right: auto;
    gap: 4px;
    transform: translateX(-50%);
  }

  .support-chip {
    width: 42px;
    height: 42px;
  }

  .support-chip span {
    font-size: 8px;
  }

  .touch-controls {
    display: block;
  }

  .bottom-left,
  .bottom-right {
    bottom: 126px;
  }

  .pilot-card,
  .operator-card {
    max-width: 43vw;
    gap: 8px;
    padding: 8px;
  }

  .top-right {
    top: 64px;
    right: 14px;
  }

  .operator-card {
    width: 43vw;
    min-height: 108px;
    height: auto;
  }

  .portrait {
    width: 38px;
    height: 38px;
  }

  .portrait.operator {
    width: 48px;
    height: 62px;
  }

  .support-limit {
    width: 64px;
    max-width: 64px;
    padding: 3px;
    font-size: 6.8px;
    line-height: 1.12;
  }

  h1,
  h2 {
    font-size: 13px;
  }

  #pilotLine,
  #operatorLine,
  #supportAbility {
    font-size: 10px;
  }

  #operatorLine {
    height: 2.4em;
  }

  #supportAbility {
    min-height: 0;
    margin-top: 3px;
    padding-top: 3px;
    font-size: 8.5px;
    line-height: 1.12;
  }

  .meters,
  .status {
    padding: 8px;
  }

  .status p,
  .meters span,
  .meter-action span,
  .meter-action strong {
    font-size: 10px;
  }

  .move-pad {
    left: 16px;
    bottom: 14px;
    width: 112px;
    height: 112px;
  }

  .action-pad {
    right: 14px;
    bottom: 14px;
    grid-template-columns: 64px 78px;
    grid-template-rows: 42px 42px 42px 42px;
    gap: 7px;
  }

  .stance-pad {
    bottom: 14px;
    grid-template-columns: repeat(3, 64px);
  }

  .stance-pad button {
    min-height: 34px;
  }

  .briefing-panel[data-layout="caption"] .briefing-copy {
    left: 34px;
    right: 224px;
    bottom: 18px;
    max-height: 42%;
    overflow: visible;
  }

  .briefing-panel[data-layout="caption"] #briefingKicker {
    display: none;
  }

  .briefing-panel[data-layout="caption"] #briefingTitle {
    font-size: 13px;
    line-height: 1.12;
  }

  .briefing-panel[data-layout="caption"] #briefingBody {
    margin-top: 4px;
    font-size: 11.5px;
    line-height: 1.3;
  }

  .briefing-panel[data-layout="caption"] .briefing-actions {
    right: 24px;
    bottom: 18px;
  }

  .briefing-panel[data-layout="caption"] .briefing-actions button {
    min-width: 86px;
    min-height: 34px;
    font-size: 12px;
  }

  .opening-panel[data-frame^="opening-world-route-cast-map"] .opening-copy {
    left: 14px;
    right: 190px;
    bottom: 42px;
    min-height: 108px;
    padding: 10px 13px 11px;
  }

  .opening-panel[data-frame^="opening-world-route-cast-map"] #openingKicker {
    font-size: 10px;
  }

  .opening-panel[data-frame^="opening-world-route-cast-map"] #openingSpeaker {
    display: block;
    margin-top: 4px;
    font-size: 18px;
  }

  .opening-panel[data-frame^="opening-world-route-cast-map"] #openingLine {
    max-width: none;
    margin-top: 4px;
    font-size: 14px;
    line-height: 1.44;
  }
}

@media (max-width: 760px) and (orientation: portrait) {
  .stage {
    height: calc(100vw * 9 / 16);
  }

  .support-dock {
    left: 50%;
    top: 10px;
    right: auto;
    gap: 3px;
    transform: translateX(-50%);
  }

  .support-chip {
    width: 38px;
    height: 38px;
  }

  .support-chip span {
    left: 3px;
    right: 3px;
    bottom: 3px;
    font-size: 7px;
  }

  .top-right {
    top: 54px;
    right: 12px;
  }

  .bottom-left,
  .bottom-right {
    bottom: 18px;
  }

  .operator-card {
    width: min(45vw, 210px);
    min-height: 82px;
    gap: 6px;
    padding: 6px;
  }

  .operator-copy {
    grid-template-rows: auto auto minmax(1.7em, auto) auto;
  }

  .portrait.operator {
    width: 36px;
    height: 48px;
  }

  .operator-portrait-stack {
    gap: 3px;
  }

  .support-limit {
    max-width: 36px;
    padding: 2px;
    font-size: 6px;
    line-height: 1.05;
  }

  #operatorLine,
  #supportAbility {
    font-size: 8.5px;
    line-height: 1.12;
  }

  #supportAbility {
    margin-top: 3px;
    padding-top: 3px;
  }

  .orientation-lock {
    display: grid;
  }

  .touch-controls,
  .touch-controls.hidden {
    display: none;
  }
}

@media (hover: none), (pointer: coarse), (max-height: 560px) and (orientation: landscape) {
  .android-app .start-panel,
  .start-panel {
    place-content: start center;
    align-content: start;
    gap: 8px;
    padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(14px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  }

  .android-app .start-panel h2,
  .start-panel h2 {
    margin-top: 0;
    font-size: clamp(28px, 10vh, 42px);
    line-height: 0.95;
  }

  .android-app .start-panel #startDescription,
  .start-panel #startDescription {
    max-width: min(620px, 92vw);
    font-size: 12px;
    line-height: 1.35;
  }

  .android-app .start-panel .gamepad-hint,
  .android-app .start-panel .record-hint,
  .android-app .start-panel dl,
  .start-panel .gamepad-hint,
  .start-panel .record-hint,
  .start-panel dl {
    display: none;
  }

  .android-app .quality-select,
  .quality-select {
    transform: scale(0.92);
    transform-origin: center;
  }

  .android-app .start-panel .quality-description,
  .start-panel .quality-description {
    max-width: min(480px, 90vw);
    margin-top: -8px;
    font-size: 10.5px;
    line-height: 1.28;
  }

  .android-app .start-actions,
  .start-actions {
    gap: 8px;
  }

  .android-app .start-panel button,
  .start-panel button {
    min-width: 118px;
    min-height: 38px;
    padding: 0 12px;
    font-size: 13px;
  }

  .android-app .start-panel #controlsButton,
  .start-panel #controlsButton {
    display: none;
  }

  .android-app .top-left {
    top: 8px;
    left: 8px;
  }

  .android-app .perf-overlay {
    top: max(3px, env(safe-area-inset-top));
    left: 50%;
    right: auto;
    width: min(92vw, 560px);
    max-height: 22vh;
    overflow: hidden;
    padding: 3px 5px;
    font-size: 7.5px;
    line-height: 1.14;
    opacity: 0.9;
    text-align: left;
    transform: translateX(-50%);
  }

  .android-app .pilot-card {
    display: flex;
    max-width: min(220px, 34vw);
    min-height: 0;
    padding: 5px 6px;
    gap: 5px;
    opacity: 0.82;
    backdrop-filter: blur(4px);
  }

  .android-app .pilot-card .portrait {
    width: 30px;
    height: 30px;
  }

  .android-app .pilot-card .label {
    display: none;
  }

  .android-app #pilotLine {
    max-height: 2.25em;
    overflow: hidden;
    font-size: 8.5px;
    line-height: 1.12;
  }

  .android-app .support-dock {
    top: 8px;
    opacity: 0.74;
  }

  .android-app .support-chip {
    width: 36px;
    height: 36px;
  }

  .android-app .top-right {
    top: 8px;
    right: 8px;
  }

  .android-app .operator-card {
    width: min(238px, 38vw);
    min-height: 0;
    padding: 5px 6px;
    gap: 6px;
    opacity: 0.82;
    backdrop-filter: blur(4px);
  }

  .android-app #supportAbility,
  .android-app .operator-card .label span {
    display: none;
  }

  .android-app .operator-portrait-stack {
    display: grid;
    gap: 2px;
  }

  .android-app .portrait.operator {
    width: 34px;
    height: 44px;
  }

  .android-app #operatorLine {
    height: auto;
    max-height: 2.5em;
    overflow: hidden;
    font-size: 8.5px;
    line-height: 1.12;
  }

  .android-app .operator-copy {
    grid-template-rows: auto auto auto;
  }

  .android-app h1,
  .android-app h2 {
    font-size: 10px;
  }

  .android-app .bottom-left {
    left: 10px;
    bottom: max(10px, env(safe-area-inset-bottom));
  }

  .android-app .touch-controls {
    display: block;
  }

  .android-app .touch-controls.hidden {
    display: none;
  }

  .android-app .mobile-meter-row {
    display: flex;
    align-items: end;
    gap: 6px;
  }

  .android-app .bottom-right {
    display: none;
  }

  .android-app .meters {
    width: min(136px, 23vw);
    padding: 5px;
    gap: 4px;
    opacity: 0.76;
  }

  .android-app .meter-action {
    min-height: 18px;
  }

  .android-app .meter-action span,
  .android-app .meter-action strong {
    margin-bottom: 2px;
    font-size: 7.5px;
  }

  .android-app .touch-sp-button {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border: 1px solid rgba(255, 242, 168, 0.58);
    border-radius: 50%;
    color: #fff2a8;
    background: rgba(7, 16, 24, 0.62);
    box-shadow: 0 0 16px rgba(255, 242, 168, 0.16);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0;
    pointer-events: auto;
    touch-action: manipulation;
  }

  .android-app .touch-robot-button {
    width: 42px;
    height: 36px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border: 1px solid rgba(130, 242, 229, 0.54);
    border-radius: 8px;
    color: #82f2e5;
    background: rgba(7, 16, 24, 0.62);
    box-shadow: 0 0 16px rgba(130, 242, 229, 0.14);
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 0;
    pointer-events: auto;
    touch-action: manipulation;
  }

  .android-app .touch-robot-button.ready {
    color: #e9feff;
    border-color: rgba(130, 242, 229, 0.7);
  }

  .android-app .touch-robot-button.active {
    color: #fff2a8;
    border-color: rgba(255, 242, 168, 0.72);
  }

  .android-app .touch-robot-button.blocked {
    color: #7e8a98;
    border-color: rgba(126, 138, 152, 0.42);
  }

  .android-app .touch-sp-button.ready {
    color: #071018;
    background: linear-gradient(135deg, #fff2a8, #82f2e5);
  }

  .android-app .touch-sp-button.active {
    color: #9efff1;
    border-color: rgba(130, 242, 229, 0.7);
  }

  .android-app .touch-sp-button.blocked {
    color: #ff8a9a;
    border-color: rgba(255, 79, 104, 0.58);
  }

  .android-app .move-pad {
    display: none;
  }

  .android-app .stance-pad {
    bottom: max(10px, env(safe-area-inset-bottom));
    grid-template-columns: repeat(3, 44px);
    gap: 5px;
  }

  .android-app .stance-pad button {
    min-height: 26px;
    font-size: 7.5px;
  }

  .android-app .action-pad {
    right: max(8px, env(safe-area-inset-right));
    bottom: max(10px, env(safe-area-inset-bottom));
    grid-template-columns: 68px;
    grid-template-rows: 44px repeat(5, 32px);
    gap: 5px;
  }

  .android-app .touch-button {
    min-height: 32px;
    font-size: 7.5px;
    letter-spacing: 0;
    background: rgba(7, 16, 24, 0.5);
  }

  .android-app .touch-button.pause {
    left: auto;
    right: max(8px, env(safe-area-inset-right));
    top: calc(max(8px, env(safe-area-inset-top)) + 62px);
    min-width: 54px;
    min-height: 28px;
    padding: 0 8px;
    border-color: rgba(211, 235, 255, 0.2);
    background: rgba(7, 16, 24, 0.42);
    color: rgba(217, 232, 247, 0.86);
    font-size: 7px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  }

  .android-app .touch-button.shot {
    display: none;
  }

  .android-app.touch-shot-manual .touch-button.shot {
    display: grid;
    place-items: center;
  }

  .android-app .touch-button.missile {
    min-height: 44px;
    border-color: rgba(255, 242, 168, 0.5);
    color: #fff2a8;
    font-size: 9px;
  }

  .android-app .touch-button.sp {
    font-size: 9px;
  }

  .android-app .bar {
    height: 5px;
  }

  .android-app .comm-cutin {
    top: 38%;
    padding: 0;
  }

  .android-app .comm-band {
    width: min(50vw, 420px);
    min-height: 58px;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 8px;
    padding: 7px 10px 7px 9px;
    border-left-width: 3px;
    background:
      linear-gradient(90deg, rgba(5, 12, 20, 0.82), rgba(5, 12, 20, 0.58) 78%, rgba(5, 12, 20, 0.12)),
      linear-gradient(180deg, var(--support-accent-faint), transparent 58%);
  }

  .android-app .comm-portrait {
    width: 38px;
    height: 38px;
  }


  .android-app .comm-copy h3 {
    font-size: 11px;
  }

  .android-app #commLine,
  .android-app #commPilotLine {
    margin-top: 3px;
    font-size: 10.5px;
    line-height: 1.24;
  }

  .android-app .route-location-cutin[data-assets="loading"] .route-location-prompt {
    padding: 5px 8px;
    font-size: 10px;
  }

  .android-app .route-location-cutin {
    position: fixed;
    padding: 0;
  }

  .android-app .route-location-card {
    width: 100%;
    height: 100%;
    max-height: none;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: 6px;
    padding: max(6px, env(safe-area-inset-top)) max(8px, env(safe-area-inset-right)) max(6px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
    border: 0;
    border-radius: 0;
  }

  .android-app .route-location-heading {
    grid-template-columns: minmax(86px, 0.22fr) 1fr;
    gap: 8px;
    margin: 0;
  }

  .android-app #routeLocationKicker {
    font-size: 9px;
  }

  .android-app #routeLocationStage {
    font-size: 20px;
  }

  .android-app #routeLocationName {
    font-size: 12px;
  }

  .android-app #routeLocationTag {
    margin-top: 2px;
    font-size: 9px;
  }

  .android-app .route-location-map-frame {
    width: 100%;
    height: 100%;
    min-height: 0;
    aspect-ratio: auto;
    transform: none;
  }

  .android-app .route-control-history {
    display: none;
  }

  .android-app .route-location-prompt {
    margin: 0;
    font-size: 10px;
  }

  .android-app .opening-copy {
    left: 10px;
    right: 10px;
    bottom: 48px;
    max-height: calc(100% - 86px);
    overflow: hidden;
    padding: 10px 12px;
  }

  .android-app .opening-panel[data-anchor="lower-left"] .opening-copy,
  .android-app .opening-panel[data-anchor="news"] .opening-copy,
  .android-app .opening-panel[data-anchor="guide"] .opening-copy,
  .android-app .opening-panel[data-frame^="opening-world-route-cast-map"] .opening-copy {
    left: 10px;
    right: 10px;
    bottom: 48px;
    min-height: 0;
    padding: 10px 12px;
  }

  .android-app .opening-actions {
    left: auto;
    right: max(8px, env(safe-area-inset-right));
    bottom: max(6px, env(safe-area-inset-bottom));
    z-index: 8;
  }

  .android-app .opening-actions button {
    min-width: 72px;
    min-height: 30px;
    padding: 0 10px;
    font-size: 11px;
  }
}

html.test-mode .orientation-lock,
body.test-mode .orientation-lock,
.test-mode .orientation-lock {
  display: none !important;
}

/* Ending motion uses only compositor transforms/opacity on adopted stills. */
.story-panel[data-image-mode="ending-stills"] .story-visual { overflow: hidden; }
.story-panel[data-image-mode="ending-stills"] .story-visual::before { display: none; }
.story-panel[data-image-mode="ending-stills"] .story-visual::after {
  background: radial-gradient(ellipse at 78% 28%, rgba(255, 242, 210, 0.09), transparent 62%);
  opacity: 0.4;
  pointer-events: none;
}
.story-panel[data-image-mode="ending-stills"] .story-visual img {
  opacity: 0.86;
  filter: saturate(0.96) brightness(0.9);
  transform-origin: center;
}
.story-panel[data-image-mode="ending-stills"] .ending-previous-still {
  pointer-events: none;
}
