:root {
  --ink: #dbe8ed;
  --ink-soft: #aebfc7;
  --ink-dim: #78909c;
  --ice: #b9dce6;
  --ice-bright: #e6f4f7;
  --warm: #e4bb85;
  --night: #02070d;
  --night-soft: #07121d;
  --navy: #0a1b2a;
  --line: rgba(183, 216, 227, 0.26);
  --line-soft: rgba(183, 216, 227, 0.13);
  --font-display: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --ease-cinema: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  padding: 0;
  background: var(--night);
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-height: 100svh;
  overflow: hidden;
  overscroll-behavior: none;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}

button {
  margin: 0;
  border: 0;
  border-radius: 0;
  color: inherit;
  font: inherit;
  background: none;
  cursor: pointer;
  touch-action: manipulation;
}

button:focus-visible {
  outline: 2px solid var(--ice);
  outline-offset: 5px;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.experience {
  position: relative;
  width: 100%;
  height: 100svh;
  min-height: 100%;
  overflow: hidden;
  isolation: isolate;
  background: var(--night);
}

@supports (height: 100dvh) {
  .experience,
  body {
    height: 100dvh;
  }
}

/* --------------------------------------------------------------------------
   Pixel scene & cinematic layers
   -------------------------------------------------------------------------- */

.scene {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  filter: saturate(0.94) contrast(1.02);
}

.scene-grade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(1, 5, 10, 0.78) 0%, rgba(1, 5, 10, 0.04) 25%, transparent 45%, rgba(1, 4, 8, 0.18) 72%, rgba(1, 4, 8, 0.82) 100%),
    radial-gradient(ellipse at 50% 42%, transparent 0%, rgba(2, 7, 13, 0.16) 58%, rgba(1, 4, 8, 0.55) 100%);
}

.vignette {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 36%, rgba(1, 4, 8, 0.38) 78%, rgba(1, 3, 6, 0.82) 100%);
}

.grain {
  position: absolute;
  inset: -20%;
  z-index: 2;
  pointer-events: none;
  opacity: 0.052;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.8'/%3E%3C/svg%3E");
  animation: grain-shift 0.72s steps(2) infinite;
  will-change: transform;
}

@keyframes grain-shift {
  0% { transform: translate3d(0, 0, 0); }
  25% { transform: translate3d(-2%, 1%, 0); }
  50% { transform: translate3d(1%, -2%, 0); }
  75% { transform: translate3d(2%, 2%, 0); }
  100% { transform: translate3d(-1%, -1%, 0); }
}

.letterbox {
  position: absolute;
  left: 0;
  z-index: 5;
  width: 100%;
  height: max(9px, 1.25svh);
  pointer-events: none;
  background: #010407;
}

.letterbox--top { top: 0; }
.letterbox--bottom { bottom: 0; }

/* --------------------------------------------------------------------------
   HUD
   -------------------------------------------------------------------------- */

.hud {
  position: absolute;
  top: calc(env(safe-area-inset-top) + max(22px, 2.6svh));
  right: clamp(18px, 4vw, 48px);
  left: clamp(18px, 4vw, 48px);
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  pointer-events: none;
}

.route-stamp {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--ink-soft);
  opacity: 0.86;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
}

.route-stamp__mark {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  color: var(--ice);
}

.route-stamp__rule {
  display: block;
  width: clamp(16px, 3vw, 34px);
  height: 1px;
  background: var(--line);
}

.route-stamp__label {
  overflow: hidden;
  font-size: 0.57rem;
  letter-spacing: 0.2em;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.sound-toggle {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 9px;
  min-height: 36px;
  padding: 7px 2px 7px 10px;
  color: var(--ink-soft);
  pointer-events: auto;
  opacity: 0.85;
  transition: color 220ms ease, opacity 220ms ease;
}

.sound-toggle:hover {
  color: var(--ice-bright);
  opacity: 1;
}

.sound-bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  width: 13px;
  height: 11px;
}

.sound-bars i {
  display: block;
  width: 2px;
  background: currentColor;
  transform-origin: bottom;
  animation: sound-bar 1.2s ease-in-out infinite alternate;
}

.sound-bars i:nth-child(1) { height: 4px; animation-delay: -0.2s; }
.sound-bars i:nth-child(2) { height: 8px; animation-delay: -0.7s; }
.sound-bars i:nth-child(3) { height: 6px; animation-delay: -0.4s; }

.sound-toggle[aria-pressed="false"] .sound-bars i {
  animation: none;
  height: 2px;
  opacity: 0.6;
}

.sound-toggle[aria-pressed="false"] .sound-bars {
  align-items: center;
}

.sound-label {
  font-size: 0.55rem;
  letter-spacing: 0.16em;
  white-space: nowrap;
}

@keyframes sound-bar {
  from { transform: scaleY(0.55); opacity: 0.6; }
  to { transform: scaleY(1); opacity: 1; }
}

/* --------------------------------------------------------------------------
   Shared typography & buttons
   -------------------------------------------------------------------------- */

.eyebrow {
  margin: 0;
  color: var(--ice);
  font-family: var(--font-mono);
  font-size: clamp(0.55rem, 1.2vw, 0.64rem);
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.signal-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(28px, 7vw, 58px);
  min-width: min(278px, 78vw);
  min-height: 52px;
  padding: 0 17px 0 22px;
  overflow: hidden;
  border: 1px solid rgba(184, 219, 230, 0.34);
  color: var(--ice-bright);
  background: rgba(4, 14, 24, 0.42);
  font-family: var(--font-mono);
  font-size: clamp(0.6rem, 1.5vw, 0.66rem);
  letter-spacing: 0.19em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition:
    border-color 300ms ease,
    background-color 300ms ease,
    color 300ms ease,
    transform 180ms ease;
}

.signal-button::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(100deg, transparent 10%, rgba(191, 225, 235, 0.11) 50%, transparent 90%);
  opacity: 0;
  transform: translateX(-55%);
  transition: opacity 500ms ease, transform 700ms var(--ease-cinema);
}

.signal-button:hover {
  border-color: rgba(201, 232, 240, 0.72);
  background: rgba(16, 38, 52, 0.55);
}

.signal-button:hover::before {
  opacity: 1;
  transform: translateX(55%);
}

.signal-button:active {
  transform: scale(0.988);
}

.signal-button__arrow {
  color: var(--ice);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0;
  transition: transform 300ms var(--ease-cinema);
}

.signal-button:hover .signal-button__arrow {
  transform: translateX(4px);
}

.signal-button:disabled {
  cursor: default;
  opacity: 0.45;
}

.text-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 0;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: color 220ms ease;
}

.text-button .text-button__arrow {
  color: var(--ice);
  transition: transform 300ms var(--ease-cinema);
}

.text-button:hover {
  color: var(--ice-bright);
}

.text-button:hover .text-button__arrow {
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   Title curtain
   -------------------------------------------------------------------------- */

.start-overlay {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding:
    calc(env(safe-area-inset-top) + clamp(66px, 10svh, 92px))
    clamp(22px, 6vw, 70px)
    calc(env(safe-area-inset-bottom) + clamp(42px, 8svh, 76px));
  text-align: center;
  background:
    linear-gradient(180deg, rgba(1, 5, 10, 0.18) 0%, rgba(1, 5, 10, 0.06) 38%, rgba(1, 4, 8, 0.56) 82%, rgba(1, 4, 8, 0.84) 100%),
    radial-gradient(ellipse at 50% 48%, rgba(6, 18, 29, 0.08) 0%, rgba(1, 5, 10, 0.3) 72%, rgba(1, 4, 8, 0.7) 100%);
  transition: opacity 900ms var(--ease-cinema), visibility 900ms;
  animation: curtain-in 1.5s var(--ease-cinema) both;
}

.start-overlay.is-leaving {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

@keyframes curtain-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.start-overlay__meta {
  display: flex;
  align-self: stretch;
  align-items: center;
  justify-content: space-between;
  color: var(--ink-dim);
  font-size: clamp(0.5rem, 1.1vw, 0.58rem);
  letter-spacing: 0.26em;
  opacity: 0.84;
}

.title-lockup {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(100%, 980px);
  margin: auto 0;
  padding: 3svh 0;
  animation: title-rise 1.8s var(--ease-cinema) both;
}

@keyframes title-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.main-title {
  margin: clamp(18px, 3.4svh, 32px) 0 clamp(12px, 2.2svh, 22px);
  color: var(--ice-bright);
  font-family: var(--font-display);
  font-size: clamp(4.1rem, 18.2vw, 8.6rem);
  font-weight: 500;
  line-height: 0.79;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  text-shadow:
    0 1px 0 rgba(236, 248, 251, 0.14),
    0 0 42px rgba(138, 191, 210, 0.16),
    0 12px 40px rgba(0, 0, 0, 0.32);
}

.main-title span {
  display: block;
}

.main-title span:last-child {
  padding-left: 0.12em;
}

.title-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: min(260px, 56vw);
  margin: 0 auto clamp(16px, 2.5svh, 24px);
  opacity: 0.66;
}

.title-ornament span {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(196, 226, 235, 0.6));
}

.title-ornament span:last-child {
  background: linear-gradient(90deg, rgba(196, 226, 235, 0.6), transparent);
}

.title-ornament i {
  width: 4px;
  height: 4px;
  background: var(--ice);
  transform: rotate(45deg);
  box-shadow: 0 0 12px rgba(175, 218, 231, 0.55);
}

.main-subtitle {
  width: min(30rem, 86vw);
  margin: 0;
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-size: clamp(1.02rem, 2.7vw, 1.36rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.6;
  letter-spacing: 0.012em;
  text-wrap: balance;
}

.start-overlay__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.listen-note {
  margin: 0;
  color: var(--ink-dim);
  font-size: clamp(0.47rem, 1.1vw, 0.54rem);
  letter-spacing: 0.16em;
  opacity: 0.8;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Arrival
   -------------------------------------------------------------------------- */

.arrival-overlay {
  position: absolute;
  inset: 0;
  z-index: 21;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding:
    calc(env(safe-area-inset-top) + clamp(74px, 18svh, 170px))
    clamp(22px, 6vw, 70px)
    calc(env(safe-area-inset-bottom) + clamp(44px, 11svh, 110px));
  text-align: center;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(1, 5, 10, 0.26) 0%, transparent 36%, transparent 63%, rgba(1, 4, 8, 0.74) 100%);
  animation: soft-reveal 1.4s var(--ease-cinema) both;
}

@keyframes soft-reveal {
  from { opacity: 0; }
  to { opacity: 1; }
}

.arrival-copy {
  animation: title-rise 1.4s var(--ease-cinema) 0.15s both;
}

.arrival-title {
  margin: 13px 0 10px;
  color: var(--ice-bright);
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 10.2vw, 5.2rem);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: 0.06em;
  text-shadow: 0 0 36px rgba(150, 200, 216, 0.16);
}

.arrival-subtitle {
  width: min(27rem, 84vw);
  margin: 0 auto;
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-size: clamp(0.98rem, 2.4vw, 1.2rem);
  font-style: italic;
  line-height: 1.55;
  text-wrap: balance;
}

.arrival-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 13px;
  pointer-events: auto;
  animation: title-rise 1.2s var(--ease-cinema) 0.6s both;
}

.arrival-prompt {
  margin: 0;
  color: var(--ink-dim);
  font-size: 0.53rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Interlude
   -------------------------------------------------------------------------- */

.interlude-overlay {
  position: absolute;
  inset: 0;
  z-index: 22;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 0 clamp(24px, 6vw, 70px) calc(env(safe-area-inset-bottom) + clamp(58px, 13svh, 130px));
  text-align: center;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, transparent 55%, rgba(1, 4, 8, 0.42) 74%, rgba(1, 4, 8, 0.9) 100%);
  animation: soft-reveal 1.6s var(--ease-cinema) both;
}

.interlude-copy {
  animation: title-rise 1.5s var(--ease-cinema) 0.4s both;
}

.interlude-title {
  max-width: min(50rem, 94vw);
  margin: 14px auto 8px;
  color: var(--ice-bright);
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 5.8vw, 3.65rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: 0.065em;
  text-wrap: balance;
  text-shadow: 0 0 30px rgba(150, 200, 216, 0.14);
}

.interlude-note {
  margin: 0;
  color: var(--ink-dim);
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.6vw, 1.25rem);
  font-style: italic;
  letter-spacing: 0.04em;
}

.route-pips {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: clamp(16px, 2.8svh, 24px);
}

.route-pips span {
  width: 4px;
  height: 4px;
  border: 1px solid rgba(181, 216, 226, 0.4);
  background: transparent;
  transform: rotate(45deg);
  transition: width 500ms var(--ease-cinema), background-color 500ms ease, border-color 500ms ease;
}

.route-pips span.is-past {
  border-color: rgba(181, 216, 226, 0.65);
  background: rgba(181, 216, 226, 0.42);
}

.route-pips span.is-active {
  width: 16px;
  border-color: rgba(210, 238, 245, 0.9);
  background: rgba(210, 238, 245, 0.86);
}

/* --------------------------------------------------------------------------
   Station 01
   -------------------------------------------------------------------------- */

.station-hud {
  position: absolute;
  top: calc(env(safe-area-inset-top) + clamp(92px, 16svh, 158px));
  left: clamp(20px, 4.4vw, 58px);
  z-index: 12;
  pointer-events: none;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55);
  animation: station-slide 1.6s var(--ease-cinema) 0.5s both;
}

@keyframes station-slide {
  from { opacity: 0; transform: translateX(-12px); }
  to { opacity: 1; transform: translateX(0); }
}

.station-index {
  margin: 0 0 10px;
  color: var(--ink-dim);
  font-size: 0.53rem;
  letter-spacing: 0.22em;
}

.station-index span {
  color: var(--ice);
  font-size: 0.67rem;
}

.station-heading {
  display: flex;
  align-items: center;
  gap: 11px;
}

.station-heading__rule {
  display: block;
  width: clamp(20px, 4vw, 38px);
  height: 1px;
  background: var(--line);
}

.station-heading h2 {
  margin: 0;
  color: rgba(220, 235, 240, 0.88);
  font-family: var(--font-mono);
  font-size: clamp(0.55rem, 1.2vw, 0.64rem);
  font-weight: 400;
  letter-spacing: 0.21em;
  line-height: 1.5;
}

.narration-panel {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 18;
  padding: clamp(92px, 16svh, 170px) clamp(22px, 6vw, 70px) calc(env(safe-area-inset-bottom) + clamp(18px, 3.4svh, 34px));
  pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, rgba(2, 7, 12, 0.6) 26%, rgba(2, 7, 12, 0.9) 62%, rgba(2, 7, 12, 0.98) 100%);
  animation: soft-reveal 1.6s var(--ease-cinema) both;
}

.narration-inner {
  width: min(46rem, 100%);
  margin: 0 auto;
  pointer-events: auto;
}

.narration-kicker {
  margin: 0 0 14px;
  color: var(--ink-dim);
  font-size: clamp(0.47rem, 1.1vw, 0.55rem);
  letter-spacing: 0.2em;
  line-height: 1.6;
  text-transform: uppercase;
}

.narration-kicker span {
  color: var(--ice);
  opacity: 0.7;
}

.narration-text {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.17rem, 3.4vw, 1.62rem);
  font-weight: 400;
  line-height: 1.58;
  letter-spacing: 0.006em;
  text-wrap: pretty;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.4);
}

.narration-text .sentence {
  opacity: 0;
  filter: blur(3px);
  transition:
    opacity 1.4s var(--ease-cinema),
    filter 1.4s var(--ease-cinema);
  transition-delay: calc(var(--sentence-index, 0) * 1.15s + 0.25s);
}

.narration-panel.is-visible .narration-text .sentence {
  opacity: 1;
  filter: blur(0);
}

.narration-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 38px;
  margin-top: 16px;
}

.narration-rule {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--line-soft), transparent);
}

/* --------------------------------------------------------------------------
   End card
   -------------------------------------------------------------------------- */

.end-card {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: calc(env(safe-area-inset-top) + 34px) clamp(24px, 7vw, 70px) calc(env(safe-area-inset-bottom) + 34px);
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 48%, rgba(6, 17, 27, 0.7) 0%, rgba(1, 5, 10, 0.9) 66%, rgba(1, 4, 8, 0.96) 100%);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: soft-reveal 1.3s var(--ease-cinema) both;
}

.end-card__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(38rem, 100%);
  animation: title-rise 1.4s var(--ease-cinema) 0.1s both;
}

.end-title {
  max-width: 12ch;
  margin: clamp(18px, 3vw, 28px) 0 13px;
  color: var(--ice-bright);
  font-family: var(--font-display);
  font-size: clamp(2.45rem, 7.2vw, 4.7rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: 0.015em;
  text-wrap: balance;
}

.end-copy {
  margin: 0 0 clamp(30px, 5svh, 48px);
  color: var(--ink-dim);
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.4vw, 1.2rem);
  font-style: italic;
  letter-spacing: 0.035em;
}

.end-card.is-final {
  align-items: end;
  background:
    linear-gradient(180deg, rgba(2, 7, 12, 0.02) 0%, rgba(2, 7, 12, 0.16) 24%, rgba(2, 7, 12, 0.78) 52%, rgba(2, 7, 12, 0.97) 78%, #02070d 100%);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.end-card.is-final .end-card__inner {
  width: min(42rem, 100%);
  padding-bottom: clamp(0px, 2svh, 24px);
}

.end-card.is-final .end-title {
  max-width: none;
  margin: clamp(10px, 1.6vw, 16px) 0 12px;
  font-size: clamp(2rem, 5.4vw, 3.7rem);
}

.end-title:focus {
  outline: none;
}

.end-card.is-final .end-copy {
  max-width: 36rem;
  margin-bottom: clamp(24px, 4svh, 38px);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.8vw, 1.34rem);
  font-style: normal;
  line-height: 1.67;
  letter-spacing: 0.012em;
  text-wrap: pretty;
}

/* --------------------------------------------------------------------------
   Transition layers
   -------------------------------------------------------------------------- */

.fade-curtain {
  position: absolute;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  background: #010407;
  opacity: 0;
  transition: opacity 850ms var(--ease-cinema);
}

.fade-curtain.is-opaque {
  opacity: 1;
}

.light-wash {
  position: absolute;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  background: #e7f4fa;
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 420ms ease;
}

.light-wash.is-active {
  opacity: 0.86;
}

.noscript {
  position: absolute;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  color: var(--ink);
  background: var(--night);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-align: center;
}

/* --------------------------------------------------------------------------
   Responsive refinements
   -------------------------------------------------------------------------- */

@media (max-width: 380px) {
  .route-stamp__label {
    display: none;
  }

  .route-stamp__rule {
    width: 18px;
  }

  .sound-label {
    display: none;
  }

  .main-title {
    font-size: clamp(3.75rem, 19vw, 4.8rem);
  }

  .station-heading h2 {
    letter-spacing: 0.14em;
  }
}

@media (min-width: 900px) {
  .main-title {
    font-size: clamp(6.8rem, 12.5vw, 9.6rem);
  }

  .main-subtitle {
    font-size: 1.45rem;
  }

  .arrival-title {
    font-size: clamp(3.2rem, 6.4vw, 5.6rem);
  }

  .narration-text {
    font-size: 1.62rem;
  }

  .station-hud {
    top: clamp(110px, 17svh, 180px);
  }
}

@media (max-height: 640px) and (orientation: portrait) {
  .start-overlay {
    padding-top: calc(env(safe-area-inset-top) + 58px);
    padding-bottom: calc(env(safe-area-inset-bottom) + 26px);
  }

  .main-title {
    margin-top: 12px;
    font-size: clamp(3.4rem, 15vw, 5rem);
  }

  .title-ornament {
    margin-bottom: 12px;
  }

  .start-overlay__actions {
    gap: 10px;
  }

  .arrival-title {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .narration-panel {
    padding-top: 70px;
  }

  .narration-text {
    font-size: 1.04rem;
    line-height: 1.5;
  }
}

@media (orientation: landscape) and (max-height: 600px) {
  .letterbox {
    height: 7px;
  }

  .hud {
    top: calc(env(safe-area-inset-top) + 15px);
  }

  .start-overlay {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.9fr);
    grid-template-rows: auto 1fr;
    align-items: center;
    padding: calc(env(safe-area-inset-top) + 42px) clamp(28px, 5vw, 64px) calc(env(safe-area-inset-bottom) + 24px);
    text-align: left;
  }

  .start-overlay__meta {
    grid-column: 1 / -1;
    align-self: start;
  }

  .title-lockup {
    align-items: flex-start;
    padding: 0;
    text-align: left;
  }

  .main-title {
    margin: 10px 0 12px;
    font-size: clamp(3.2rem, 11vh, 5.2rem);
  }

  .title-ornament {
    width: min(220px, 40vw);
    margin-right: auto;
    margin-left: 0;
  }

  .title-ornament span:first-child {
    flex: 0;
    width: 24px;
  }

  .title-ornament span:last-child {
    display: none;
  }

  .main-subtitle {
    width: min(26rem, 46vw);
    font-size: 1rem;
  }

  .start-overlay__actions {
    align-items: flex-start;
    justify-self: end;
    margin-bottom: 9vh;
  }

  .signal-button {
    min-width: min(240px, 30vw);
  }

  .arrival-overlay {
    justify-content: center;
    gap: 4vh;
    padding-top: calc(env(safe-area-inset-top) + 54px);
    padding-bottom: calc(env(safe-area-inset-bottom) + 28px);
  }

  .arrival-title {
    font-size: clamp(2rem, 7.4vh, 3.2rem);
  }

  .arrival-subtitle {
    font-size: 0.92rem;
  }

  .arrival-actions {
    gap: 8px;
  }

  .signal-button {
    min-height: 46px;
  }

  .interlude-overlay {
    justify-content: center;
    padding-bottom: calc(env(safe-area-inset-bottom) + 26px);
    text-align: left;
    background: linear-gradient(90deg, rgba(1, 4, 8, 0.72) 0%, transparent 58%, transparent 100%);
  }

  .interlude-copy {
    width: min(48%, 480px);
    align-self: flex-start;
  }

  .interlude-title {
    max-width: 100%;
  }

  .route-pips {
    justify-content: flex-start;
    margin-top: 12px;
  }

  .station-hud {
    top: calc(env(safe-area-inset-top) + 64px);
  }

  .narration-panel {
    left: auto;
    width: min(48%, 620px);
    padding: 54px clamp(22px, 4vw, 46px) calc(env(safe-area-inset-bottom) + 18px) 0;
    background: linear-gradient(90deg, transparent 0%, rgba(2, 7, 12, 0.74) 22%, rgba(2, 7, 12, 0.94) 62%, rgba(2, 7, 12, 0.98) 100%);
  }

  .narration-text {
    font-size: clamp(0.92rem, 1.7vw, 1.08rem);
    line-height: 1.5;
  }

  .narration-kicker {
    margin-bottom: 8px;
  }

  .narration-actions {
    margin-top: 8px;
  }

  .end-title {
    max-width: 18ch;
    font-size: clamp(2rem, 9vh, 3rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.16s !important;
    transition-delay: 0ms !important;
  }

  .grain {
    animation: none;
  }

  .sound-bars i {
    animation: none;
  }
}
