/* ============================================================
   MOONWIRE / 月面协议
   A fan-made Night City romance sandbox.
   ============================================================ */

:root {
  --bg: #060709;
  --bg-raised: #0b0d10;
  --panel: #0d0f12;
  --panel-2: #121519;
  --panel-3: #171a1f;
  --ink: #f2efe4;
  --ink-soft: #d4d2c8;
  --muted: #abb0ad;
  --dim: #7f8583;
  --line: rgba(242, 239, 228, 0.13);
  --line-bright: rgba(242, 239, 228, 0.26);
  --acid: #e6ff38;
  --acid-soft: rgba(230, 255, 56, 0.12);
  --pink: #ff3e94;
  --pink-soft: rgba(255, 62, 148, 0.12);
  --cyan: #67edf4;
  --cyan-soft: rgba(103, 237, 244, 0.12);
  --red: #ff5a4a;
  --moon: #eae6d8;
  --font-cn: "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", "Noto Sans SC", sans-serif;
  --font-hud: "Bahnschrift", "DIN Alternate", "Arial Narrow", "Segoe UI", sans-serif;
  --font-mono: "Consolas", "SFMono-Regular", "Cascadia Mono", monospace;
  --font-blunt: "Arial Black", "Impact", "Microsoft YaHei UI", sans-serif;
  --cut: 12px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --fast: 180ms;
  --slow: 520ms;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-cn);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  color: inherit;
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

a {
  color: inherit;
  text-decoration: none;
}

p,
h1,
h2,
h3,
h4,
blockquote {
  margin: 0;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--acid);
  outline-offset: 3px;
}

::selection {
  color: #070806;
  background: var(--acid);
}

[hidden] {
  display: none !important;
}

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

/* ============================================================
   SHARED
   ============================================================ */

.brand-mark {
  position: relative;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  border: 1px solid var(--acid);
  background:
    linear-gradient(135deg, transparent 0 47%, var(--acid) 48% 52%, transparent 53%),
    radial-gradient(circle at 66% 30%, var(--acid) 0 2px, transparent 2.5px);
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  background: var(--acid);
}

.brand-mark::before {
  left: 7px;
  right: 7px;
  top: 8px;
  height: 1px;
  transform: rotate(-27deg);
  transform-origin: left center;
}

.brand-mark::after {
  left: 7px;
  bottom: 8px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  box-shadow: 13px -12px 0 var(--acid);
}

.brand-mark--small {
  width: 27px;
  height: 27px;
}

.eyebrow,
.overline,
.micro-label,
.panel-kicker,
.pass-label,
.pass-grid span,
.scene-code,
.scene-eyebrow,
.route-meta,
.comms-input,
.objective-topline,
.escape-heading,
.save-line {
  font-family: var(--font-hud);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.panel {
  position: relative;
  border: 1px solid var(--line);
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.026), transparent 38%),
    linear-gradient(150deg, var(--panel-2), var(--panel));
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
}

.panel::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 34px;
  height: 1px;
  background: var(--acid);
  opacity: 0.85;
}

.micro-label {
  display: inline-block;
  color: var(--dim);
  font-size: 9px;
  line-height: 1.2;
  letter-spacing: 0.18em;
}

.panel-kicker {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.25;
  letter-spacing: 0.16em;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 1px solid transparent;
  background: transparent;
  text-align: left;
  transition:
    background var(--fast),
    color var(--fast),
    border-color var(--fast),
    transform var(--fast);
}

.btn--large {
  min-height: 74px;
  padding: 12px 22px 12px 18px;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
}

.btn--primary {
  color: #070806;
  background: var(--acid);
}

.btn--primary:hover {
  background: #f2ff7b;
}

.btn--primary:active {
  transform: translateY(1px);
}

.btn--ghost {
  color: var(--ink);
  border-color: var(--line-bright);
  background: rgba(7, 8, 10, 0.55);
  backdrop-filter: blur(12px);
}

.btn--ghost:hover {
  border-color: var(--acid);
  color: var(--acid);
}

.btn-index {
  align-self: flex-start;
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 10px;
  opacity: 0.62;
}

.btn-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 4px;
}

.btn-copy b {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.btn-copy small {
  font-family: var(--font-hud);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.14em;
  opacity: 0.58;
}

.btn-arrow {
  font-family: var(--font-hud);
  font-size: 23px;
  line-height: 1;
  transition: transform var(--fast);
}

.btn:hover .btn-arrow {
  transform: translateX(4px);
}

.icon-text-btn {
  border: 0;
  padding: 4px 0;
  color: var(--muted);
  background: transparent;
  font-family: var(--font-hud);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.icon-text-btn span {
  display: inline-grid;
  place-items: center;
  width: 17px;
  height: 17px;
  margin-left: 5px;
  border: 1px solid var(--line-bright);
  border-radius: 50%;
}

.icon-text-btn:hover {
  color: var(--acid);
}

/* ============================================================
   TITLE SCREEN
   ============================================================ */

.title-screen {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(180deg, rgba(5, 6, 8, 0.1) 0%, rgba(5, 6, 8, 0.15) 45%, rgba(5, 6, 8, 0.94) 100%),
    #060709;
}

.title-visual,
.title-sky,
.title-stars,
.title-cloud,
.title-rain,
.title-scanlines,
.title-vignette,
.title-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.title-sky {
  background:
    radial-gradient(ellipse 48% 50% at 71% 34%, rgba(153, 138, 118, 0.12), transparent 68%),
    radial-gradient(ellipse 46% 35% at 74% 76%, rgba(255, 62, 148, 0.12), transparent 70%),
    radial-gradient(ellipse 52% 34% at 51% 88%, rgba(65, 125, 137, 0.19), transparent 72%),
    linear-gradient(180deg, #040507 0%, #080b10 48%, #0b0c0e 76%, #050607 100%);
}

.title-stars {
  opacity: 0.35;
  background-image:
    radial-gradient(1px 1px at 20% 22%, rgba(255, 255, 255, 0.8) 50%, transparent 51%),
    radial-gradient(1px 1px at 64% 13%, rgba(255, 255, 255, 0.6) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 82% 28%, rgba(255, 255, 255, 0.52) 50%, transparent 51%),
    radial-gradient(1px 1px at 37% 35%, rgba(255, 255, 255, 0.4) 50%, transparent 51%),
    radial-gradient(1px 1px at 90% 8%, rgba(255, 255, 255, 0.42) 50%, transparent 51%);
  background-size: 510px 460px, 700px 600px, 460px 500px, 800px 600px, 420px 500px;
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.35) 56%, transparent 85%);
}

.title-moon-wrap {
  position: absolute;
  top: 10%;
  right: 9%;
  width: min(47vw, 690px);
  aspect-ratio: 1;
  pointer-events: none;
}

.title-moon {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 36% 31%, rgba(255, 252, 238, 0.92) 0 1.2%, transparent 1.8%),
    radial-gradient(circle at 58% 22%, rgba(172, 164, 146, 0.38) 0 3.8%, transparent 4.5%),
    radial-gradient(circle at 67% 63%, rgba(154, 145, 128, 0.35) 0 5.2%, transparent 6%),
    radial-gradient(circle at 31% 66%, rgba(158, 148, 129, 0.28) 0 7.2%, transparent 8%),
    radial-gradient(circle at 48% 80%, rgba(167, 157, 135, 0.32) 0 4%, transparent 4.8%),
    radial-gradient(circle at 75% 40%, rgba(255, 252, 238, 0.14) 0 10%, transparent 10.8%),
    radial-gradient(circle at 34% 33%, #f5f0df 0%, #ddd7c4 34%, #bdb7a4 68%, #8d897c 100%);
  box-shadow:
    inset -42px -52px 80px rgba(15, 18, 22, 0.67),
    inset 22px 15px 42px rgba(255, 255, 247, 0.19),
    0 0 100px rgba(236, 230, 210, 0.09);
  filter: saturate(0.78);
  opacity: 0.92;
}

.title-moon::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 44% 43%, transparent 0 19%, rgba(86, 81, 71, 0.2) 19.2% 19.7%, transparent 20%),
    radial-gradient(circle at 67% 71%, transparent 0 10%, rgba(95, 89, 77, 0.24) 10.2% 10.7%, transparent 11%),
    repeating-radial-gradient(circle at 42% 47%, transparent 0 35px, rgba(113, 107, 93, 0.06) 36px 37px, transparent 38px 68px);
  mix-blend-mode: multiply;
}

.title-moon::after {
  content: "";
  position: absolute;
  inset: -18%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(238, 232, 211, 0.16) 0%, rgba(238, 232, 211, 0.03) 37%, transparent 67%);
  z-index: -1;
}

.title-moon-haze {
  position: absolute;
  inset: -32%;
  border-radius: 50%;
  background: radial-gradient(circle, transparent 45%, rgba(255, 73, 147, 0.06) 56%, transparent 70%);
  filter: blur(20px);
}

.title-grid {
  top: auto;
  bottom: -9%;
  height: 37%;
  opacity: 0.17;
  background-image:
    linear-gradient(rgba(230, 255, 56, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(230, 255, 56, 0.22) 1px, transparent 1px);
  background-size: 72px 54px;
  transform: perspective(560px) rotateX(62deg) scale(1.4);
  transform-origin: center bottom;
  mask-image: linear-gradient(to top, #000 0%, transparent 85%);
}

.title-city {
  position: absolute;
  left: -2%;
  right: -2%;
  bottom: 0;
  height: 34%;
  opacity: 0.86;
  pointer-events: none;
  mask-image: linear-gradient(to top, #000 42%, rgba(0, 0, 0, 0.58) 76%, transparent 100%);
}

.title-city .building {
  filter: blur(0.3px);
}

.title-cloud {
  top: auto;
  bottom: 22%;
  height: 28%;
  background:
    radial-gradient(ellipse 33% 46% at 22% 80%, rgba(173, 190, 188, 0.08), transparent 72%),
    radial-gradient(ellipse 40% 60% at 70% 82%, rgba(255, 62, 148, 0.075), transparent 75%),
    radial-gradient(ellipse 56% 36% at 48% 94%, rgba(231, 255, 56, 0.06), transparent 72%);
  filter: blur(16px);
}

.title-rain {
  opacity: 0.21;
  background-image: repeating-linear-gradient(110deg, transparent 0 121px, rgba(207, 238, 235, 0.4) 122px 123px, transparent 124px 241px);
  background-size: 310px 310px;
  animation: rainDrift 1.8s linear infinite;
  mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.55) 42%, #000 100%);
}

.title-scanlines {
  opacity: 0.22;
  background: repeating-linear-gradient(to bottom, transparent 0 3px, rgba(0, 0, 0, 0.32) 4px, transparent 5px);
  mix-blend-mode: multiply;
}

.title-vignette {
  background:
    radial-gradient(ellipse 60% 72% at 64% 43%, transparent 0%, rgba(3, 4, 5, 0.2) 60%, rgba(3, 4, 5, 0.8) 100%),
    linear-gradient(90deg, rgba(4, 5, 6, 0.89) 0%, rgba(4, 5, 6, 0.48) 35%, transparent 63%);
}

.title-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.065;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: screen;
  pointer-events: none;
}

.title-signal {
  position: absolute;
  inset: 0;
  opacity: 0.6;
  pointer-events: none;
}

.title-signal svg {
  width: 100%;
  height: 100%;
}

.signal-path {
  fill: none;
  stroke: rgba(230, 255, 56, 0.3);
  stroke-width: 1;
  stroke-dasharray: 5 8;
}

.signal-path--two {
  stroke: rgba(255, 62, 148, 0.22);
  stroke-dasharray: 2 13;
}

.signal-node--d {
  fill: var(--acid);
  filter: drop-shadow(0 0 6px rgba(230, 255, 56, 0.8));
}

.signal-node--l {
  fill: var(--pink);
  filter: drop-shadow(0 0 6px rgba(255, 62, 148, 0.8));
}

.signal-label {
  fill: rgba(242, 239, 228, 0.6);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
}

/* title nav */
.landing-nav {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 24px clamp(22px, 4.6vw, 68px) 0;
}

.landing-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.brand-copy b {
  font-family: var(--font-hud);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.26em;
}

.brand-copy small {
  color: var(--dim);
  font-family: var(--font-hud);
  font-size: 8px;
  letter-spacing: 0.19em;
}

.landing-nav-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-signal {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
}

.nav-signal i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 10px var(--acid);
  animation: signalPulse 2.1s ease-in-out infinite;
}

/* title content */
.landing-content {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 386px);
  align-items: center;
  gap: clamp(34px, 5vw, 88px);
  width: 100%;
  max-width: 1540px;
  margin: auto;
  padding: clamp(48px, 8vh, 102px) clamp(22px, 4.6vw, 68px) 70px;
}

.landing-main {
  max-width: 770px;
}

.overline {
  color: var(--acid);
  font-size: clamp(8px, 0.78vw, 10px);
  line-height: 1.3;
  letter-spacing: 0.24em;
}

.title-lockup {
  margin-top: 20px;
}

.title-lockup h1 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.06em;
  color: var(--ink);
  font-family: var(--font-blunt);
  font-size: clamp(78px, 9.8vw, 148px);
  font-weight: 900;
  line-height: 0.88;
  letter-spacing: -0.11em;
  text-shadow: 0 8px 42px rgba(0, 0, 0, 0.36);
}

.title-cn {
  display: inline-block;
  transform: translateX(-0.03em);
}

.title-cn--accent {
  color: var(--acid);
  text-shadow: 0 0 45px rgba(230, 255, 56, 0.11);
}

.title-en {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 20px;
  color: var(--acid);
  font-family: var(--font-hud);
  font-size: clamp(10px, 1vw, 13px);
  font-weight: 500;
  letter-spacing: 0.72em;
}

.title-en-mark {
  color: var(--dim);
  font-size: 8px;
  letter-spacing: 0;
}

.landing-lede {
  max-width: 430px;
  margin-top: clamp(28px, 4vh, 48px);
  padding-left: 17px;
  border-left: 1px solid var(--line-bright);
  color: var(--ink-soft);
  font-size: clamp(14px, 1.25vw, 17px);
  line-height: 2.05;
  letter-spacing: 0.02em;
}

.landing-lede .hl {
  position: relative;
  color: var(--acid);
}

.landing-lede .hl::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 1px;
  background: var(--acid);
  opacity: 0.5;
}

.landing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: clamp(28px, 4vh, 44px);
}

.landing-actions .btn {
  min-width: 254px;
}

.landing-stats {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-top: clamp(32px, 5vh, 56px);
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.landing-stats > div {
  display: flex;
  align-items: baseline;
  gap: 9px;
  min-width: 104px;
  padding-right: 20px;
  margin-right: 20px;
  border-right: 1px solid var(--line);
}

.landing-stats > div:last-child {
  border-right: 0;
}

.landing-stats b {
  color: var(--ink);
  font-family: var(--font-hud);
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
}

.landing-stats span {
  color: var(--dim);
  font-family: var(--font-hud);
  font-size: 8px;
  line-height: 1.4;
  letter-spacing: 0.12em;
}

.landing-endings b {
  color: var(--pink);
}

/* boarding pass */
.boarding-pass {
  position: relative;
  align-self: center;
  width: 100%;
  max-width: 386px;
  margin-left: auto;
  padding: 24px 24px 18px;
  border: 1px solid rgba(242, 239, 228, 0.22);
  background:
    linear-gradient(135deg, rgba(230, 255, 56, 0.055), transparent 27%),
    linear-gradient(180deg, rgba(13, 16, 19, 0.82), rgba(8, 10, 12, 0.76));
  box-shadow:
    0 32px 90px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.055);
  backdrop-filter: blur(16px);
  clip-path: polygon(0 0, calc(100% - 21px) 0, 100% 21px, 100% 100%, 0 100%);
  transform: rotate(-1.8deg);
}

.boarding-pass::before,
.boarding-pass::after {
  content: "";
  position: absolute;
  left: -8px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid rgba(242, 239, 228, 0.2);
  clip-path: inset(0 0 0 50%);
}

.boarding-pass::before {
  top: 38%;
}

.boarding-pass::after {
  bottom: 24%;
  transform: rotate(180deg);
  clip-path: inset(0 50% 0 0);
}

.pass-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--line);
}

.pass-label {
  display: block;
  color: var(--dim);
  font-size: 8px;
  line-height: 1.2;
  letter-spacing: 0.16em;
}

.pass-top strong {
  display: block;
  margin-top: 7px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.pass-code {
  color: var(--acid);
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.5;
  text-align: right;
  letter-spacing: 0.1em;
}

.pass-route {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 0 18px;
}

.pass-port {
  color: var(--muted);
  font-family: var(--font-hud);
  font-size: 13px;
  letter-spacing: 0.08em;
}

.pass-line {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: space-between;
  height: 1px;
  background: rgba(242, 239, 228, 0.18);
}

.pass-line i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--line-bright);
}

.pass-line i:nth-child(3) {
  width: 5px;
  height: 5px;
  background: var(--acid);
  box-shadow: 0 0 8px rgba(230, 255, 56, 0.55);
}

.pass-moon {
  width: 23px;
  height: 23px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.6), transparent 22%),
    radial-gradient(circle at 70% 64%, rgba(100, 95, 84, 0.24), transparent 15%),
    var(--moon);
  box-shadow: 0 0 20px rgba(234, 230, 216, 0.2);
}

.pass-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px 20px;
  padding: 16px 0;
  border-top: 1px dashed rgba(242, 239, 228, 0.21);
  border-bottom: 1px dashed rgba(242, 239, 228, 0.21);
}

.pass-grid div {
  min-width: 0;
}

.pass-grid span {
  display: block;
  color: var(--dim);
  font-size: 7px;
  letter-spacing: 0.15em;
}

.pass-grid b {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: var(--ink-soft);
  font-family: var(--font-hud);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pass-status {
  color: var(--pink) !important;
}

.pass-status.is-archived {
  color: var(--acid) !important;
}

.pass-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 15px;
}

.barcode {
  display: block;
  width: 142px;
  height: 24px;
  opacity: 0.55;
  background: repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 3px, var(--ink) 3px 4px, transparent 4px 7px, var(--ink) 7px 9px, transparent 9px 12px);
}

.pass-serial {
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.pass-note {
  margin-top: 12px;
  color: var(--dim);
  font-size: 10px;
  letter-spacing: 0.04em;
}

.landing-footer {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: space-between;
  width: 100%;
  padding: 17px clamp(22px, 4.6vw, 68px);
  border-top: 1px solid rgba(242, 239, 228, 0.08);
  color: var(--dim);
  font-family: var(--font-hud);
  font-size: 8px;
  letter-spacing: 0.07em;
}

.footer-link {
  border: 0;
  padding: 0;
  color: var(--muted);
  background: transparent;
  font-family: var(--font-hud);
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-link:hover {
  color: var(--acid);
}

.footer-version {
  margin-left: auto;
  font-family: var(--font-mono);
  opacity: 0.65;
}

.reveal-item {
  opacity: 0;
  transform: translateY(16px);
  animation: revealUp 0.9s var(--ease) forwards;
}

.reveal-item:nth-child(1) { animation-delay: 0.08s; }
.reveal-item:nth-child(2) { animation-delay: 0.16s; }
.reveal-item:nth-child(3) { animation-delay: 0.26s; }
.reveal-item:nth-child(4) { animation-delay: 0.34s; }
.reveal-item:nth-child(5) { animation-delay: 0.44s; }
.boarding-pass.reveal-item { animation-delay: 0.22s; }

/* ============================================================
   GAME SHELL / TOP BAR
   ============================================================ */

.game-shell {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100svh;
  min-height: 680px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.012), transparent 22%),
    var(--bg);
}

.topbar {
  position: relative;
  z-index: 20;
  display: grid;
  grid-template-columns: 220px minmax(300px, 1fr) auto auto;
  align-items: center;
  gap: clamp(14px, 2vw, 30px);
  height: 72px;
  flex: 0 0 72px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 8, 10, 0.9);
  backdrop-filter: blur(18px);
}

.topbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.topbar-title {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.topbar-title b {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.topbar-title small {
  color: var(--dim);
  font-family: var(--font-hud);
  font-size: 8px;
  letter-spacing: 0.2em;
}

.topbar-day {
  display: flex;
  align-items: center;
  gap: 22px;
  min-width: 0;
}

.eyebrow-mini {
  display: block;
  margin-bottom: 2px;
  color: var(--dim);
  font-family: var(--font-hud);
  font-size: 7px;
  letter-spacing: 0.15em;
}

.day-readout {
  display: flex;
  align-items: baseline;
  gap: 4px;
  line-height: 1;
}

.day-readout b {
  color: var(--acid);
  font-family: var(--font-hud);
  font-size: 31px;
  font-weight: 400;
  letter-spacing: -0.04em;
}

.day-readout span {
  color: var(--dim);
  font-family: var(--font-hud);
  font-size: 10px;
  letter-spacing: 0.06em;
}

.ap-block {
  min-width: 110px;
}

.ap-pips {
  display: flex;
  gap: 5px;
  margin-top: 5px;
}

.ap-pips i {
  position: relative;
  display: block;
  width: 27px;
  height: 5px;
  overflow: hidden;
  background: rgba(242, 239, 228, 0.1);
  transform: skewX(-24deg);
}

.ap-pips i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--acid);
  transform: translateX(-102%);
  transition: transform 0.45s var(--ease);
}

.ap-pips i.is-full::after {
  transform: translateX(0);
}

.ap-pips i.is-empty {
  background: rgba(255, 62, 148, 0.1);
}

.topbar-resources {
  display: flex;
  align-items: center;
  gap: 0;
  min-width: 0;
}

.resource {
  min-width: 92px;
  padding: 0 16px;
  border-left: 1px solid var(--line);
}

.resource:first-child {
  border-left: 0;
}

.resource > span {
  display: block;
  color: var(--dim);
  font-family: var(--font-hud);
  font-size: 7px;
  letter-spacing: 0.14em;
}

.resource > b {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 3px;
  color: var(--ink-soft);
  font-family: var(--font-hud);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.15;
  white-space: nowrap;
}

.resource > b small {
  color: var(--dim);
  font-family: var(--font-cn);
  font-size: 9px;
  font-weight: 400;
}

.resource--ticket > b {
  color: var(--pink);
  font-family: var(--font-cn);
  font-size: 11px;
}

.resource--ticket.is-owned > b {
  color: var(--acid);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.square-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.015);
  color: var(--muted);
  transition: color var(--fast), border-color var(--fast), background var(--fast);
}

.square-btn:hover {
  color: var(--acid);
  border-color: rgba(230, 255, 56, 0.5);
  background: var(--acid-soft);
}

.square-btn-icon {
  color: var(--pink);
  font-family: var(--font-hud);
  font-size: 12px;
  font-weight: 700;
}

.unread-dot {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 7px var(--pink);
}

.sound-bars {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 12px;
}

.sound-bars i {
  display: block;
  width: 2px;
  height: 5px;
  background: currentColor;
}

.sound-bars i:nth-child(2) { height: 9px; }
.sound-bars i:nth-child(3) { height: 12px; }
.sound-bars i:nth-child(4) { height: 7px; }

.is-muted .sound-bars i {
  height: 2px;
  opacity: 0.45;
}

/* mobile hud */
.mobile-hud {
  display: none;
  align-items: stretch;
  gap: 0;
  padding: 0 12px;
  border-bottom: 1px solid var(--line);
  background: #080a0c;
  flex: 0 0 46px;
}

.mobile-stat {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  min-width: 0;
  border-right: 1px solid var(--line);
  padding: 0 7px;
  font-family: var(--font-hud);
}

.mobile-stat span {
  color: var(--dim);
  font-family: var(--font-cn);
  font-size: 9px;
  white-space: nowrap;
}

.mobile-stat b {
  font-size: 12px;
  font-weight: 500;
}

.mobile-stat i {
  display: none;
  position: absolute;
}

.mobile-stat--bond b { color: var(--pink); }
.mobile-stat--trust b { color: var(--cyan); }
.mobile-stat--human b { color: var(--acid); }
.mobile-stat--money b { color: var(--ink-soft); }

.mobile-comms-btn {
  flex: 0 0 auto;
  border: 0;
  border-left: 1px solid var(--line);
  padding: 0 10px;
  color: var(--muted);
  background: transparent;
  font-size: 10px;
}

.mobile-comms-btn span {
  color: var(--pink);
  font-size: 8px;
}

/* layout */
.game-layout {
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr) 326px;
  gap: 13px;
  min-height: 0;
  height: calc(100vh - 72px);
  height: calc(100svh - 72px);
  padding: 13px 18px 17px;
}

.rail {
  min-height: 0;
}

.rail-profile {
  display: flex;
  flex-direction: column;
  gap: 9px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--line-bright) transparent;
  padding-right: 1px;
}

.rail-profile::-webkit-scrollbar {
  width: 3px;
}

.rail-profile::-webkit-scrollbar-thumb {
  background: var(--line-bright);
}

.play-column {
  display: grid;
  grid-template-rows: auto minmax(320px, 1fr) auto;
  gap: 12px;
  min-height: 0;
}

/* ============================================================
   LEFT RAIL
   ============================================================ */

.profile-card {
  flex: 0 0 auto;
  padding: 13px 14px 12px;
}

.profile-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.live-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--acid);
  font-family: var(--font-hud);
  font-size: 7px;
  letter-spacing: 0.12em;
}

.live-status i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 7px var(--acid);
}

.profile-identity {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 13px;
}

.profile-monogram {
  position: relative;
  display: grid;
  place-items: center;
  width: 47px;
  height: 54px;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid rgba(230, 255, 56, 0.35);
  background:
    linear-gradient(145deg, rgba(230, 255, 56, 0.14), transparent 60%),
    #101317;
  color: var(--acid);
  font-family: var(--font-blunt);
  font-size: 30px;
  line-height: 1;
}

.profile-monogram::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 12px;
  height: 12px;
  background: var(--acid);
  clip-path: polygon(100% 0, 100% 100%, 0 0);
  opacity: 0.55;
}

.profile-monogram span {
  transform: translate(-2px, -2px);
}

.profile-monogram i {
  position: absolute;
  right: 5px;
  bottom: 4px;
  color: var(--pink);
  font-family: var(--font-hud);
  font-size: 8px;
  font-style: normal;
  letter-spacing: 0;
}

.profile-name {
  min-width: 0;
}

.profile-name h2 {
  margin-top: 3px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.01em;
}

.profile-name p {
  margin-top: 2px;
  color: var(--dim);
  font-family: var(--font-hud);
  font-size: 7px;
  letter-spacing: 0.12em;
}

.profile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 11px;
  padding-top: 9px;
  border-top: 1px solid var(--line);
}

.profile-tags span {
  padding: 3px 5px;
  border: 1px solid rgba(242, 239, 228, 0.11);
  color: var(--dim);
  font-family: var(--font-hud);
  font-size: 7px;
  letter-spacing: 0.08em;
}

.relationship-card {
  flex: 0 0 auto;
  padding: 12px 14px 10px;
}

.relationship-card--bond {
  background:
    linear-gradient(125deg, rgba(255, 62, 148, 0.06), transparent 43%),
    linear-gradient(150deg, var(--panel-2), var(--panel));
}

.relationship-card--trust {
  padding-bottom: 12px;
  background:
    linear-gradient(125deg, rgba(103, 237, 244, 0.04), transparent 43%),
    linear-gradient(150deg, var(--panel-2), var(--panel));
}

.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 6px;
}

.panel-heading--tight {
  align-items: center;
}

.panel-value {
  display: flex;
  align-items: baseline;
  gap: 2px;
  flex: 0 0 auto;
  color: var(--ink);
  font-family: var(--font-hud);
  line-height: 1;
}

.panel-value b {
  font-size: 18px;
  font-weight: 400;
}

.panel-value small {
  color: var(--dim);
  font-size: 8px;
}

.relationship-label {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  color: var(--muted);
  font-size: 10px;
}

.relationship-label span:last-child {
  color: var(--dim);
  font-family: var(--font-hud);
  font-size: 7px;
  letter-spacing: 0.16em;
}

.meter {
  position: relative;
  height: 5px;
  margin-top: 6px;
  overflow: hidden;
  background: rgba(242, 239, 228, 0.08);
}

.meter > i {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  display: block;
  width: 0;
  background: var(--muted);
  transition: width 0.7s var(--ease);
}

.meter--bond > i {
  background: linear-gradient(90deg, rgba(255, 62, 148, 0.55), var(--pink));
  box-shadow: 0 0 12px rgba(255, 62, 148, 0.22);
}

.meter--trust > i {
  background: linear-gradient(90deg, rgba(103, 237, 244, 0.45), var(--cyan));
  box-shadow: 0 0 12px rgba(103, 237, 244, 0.17);
}

.meter--human > i {
  background: linear-gradient(90deg, rgba(230, 255, 56, 0.4), var(--acid));
  box-shadow: 0 0 12px rgba(230, 255, 56, 0.1);
}

.meter-ticks {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(90deg, transparent 0 calc(10% - 1px), rgba(5, 6, 8, 0.78) calc(10% - 1px) 10%);
  pointer-events: none;
}

.relationship-desc {
  min-height: 18px;
  margin-top: 7px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.relationship-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  padding-top: 6px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-family: var(--font-hud);
  font-size: 7px;
  letter-spacing: 0.11em;
}

.bond-heart {
  color: var(--pink);
  font-size: 9px;
  opacity: 0.8;
}

.telemetry {
  flex: 0 0 auto;
  padding: 12px 14px 11px;
}

.bio-state {
  padding: 2px 5px;
  color: var(--acid);
  border: 1px solid rgba(230, 255, 56, 0.3);
  font-family: var(--font-cn);
  font-size: 8px;
}

.bio-state.is-warn {
  color: var(--red);
  border-color: rgba(255, 90, 74, 0.4);
}

.humanity-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 10px;
  color: var(--muted);
  font-family: var(--font-hud);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.humanity-head b {
  color: var(--acid);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0;
}

.chrome-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 7px;
  color: var(--dim);
  font-size: 9px;
}

.chrome-line b {
  color: var(--ink-soft);
  font-family: var(--font-hud);
  font-weight: 400;
}

.chrome-pips {
  display: flex;
  gap: 2px;
  flex: 0 0 auto;
}

.chrome-pips i {
  display: block;
  width: 5px;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.chrome-pips i.is-on {
  background: var(--pink);
  opacity: 0.7;
}

.telemetry-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px solid var(--line);
}

.telemetry-grid div {
  min-width: 0;
}

.telemetry-grid span {
  display: block;
  color: var(--dim);
  font-size: 8px;
}

.telemetry-grid b {
  display: block;
  margin-top: 2px;
  color: var(--ink-soft);
  font-family: var(--font-hud);
  font-size: 11px;
  font-weight: 400;
  white-space: nowrap;
}

.telemetry-grid em {
  color: var(--muted);
  font-family: var(--font-cn);
  font-size: 8px;
  font-style: normal;
}

.memory-card {
  flex: 0 0 auto;
  padding: 12px 14px 10px;
}

.memory-intro {
  margin-top: 7px;
  color: var(--dim);
  font-size: 10px;
  line-height: 1.5;
}

.memory-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 8px;
}

.memory-chip {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 5px;
  width: 100%;
  min-height: 25px;
  padding: 3px 5px;
  border: 1px solid rgba(242, 239, 228, 0.08);
  color: var(--dim);
  background: rgba(255, 255, 255, 0.012);
  text-align: left;
  transition: border-color var(--fast), background var(--fast), color var(--fast);
}

.memory-chip:disabled {
  opacity: 0.58;
}

.memory-chip.is-unlocked {
  opacity: 1;
  border-color: rgba(255, 62, 148, 0.23);
  color: var(--ink-soft);
  background: rgba(255, 62, 148, 0.045);
  cursor: pointer;
}

.memory-chip.is-unlocked:hover {
  border-color: var(--pink);
}

.memory-index {
  color: var(--pink);
  font-family: var(--font-hud);
  font-size: 8px;
  letter-spacing: 0.06em;
}

.memory-name {
  overflow: hidden;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.memory-state {
  font-family: var(--font-hud);
  font-size: 6px;
  letter-spacing: 0.08em;
}

.memory-chip.is-unlocked .memory-state {
  color: var(--pink);
}

/* ============================================================
   ROUTE MAP
   ============================================================ */

.route-panel {
  min-height: 0;
  padding: 11px 14px 8px;
}

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

.route-header h2 {
  margin-top: 3px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.025em;
}

.route-meta {
  display: flex;
  align-items: center;
  gap: 13px;
  color: var(--dim);
  font-size: 7px;
  letter-spacing: 0.1em;
}

.route-day b {
  color: var(--acid);
  font-size: 13px;
  font-weight: 400;
}

.route-weather {
  color: var(--muted);
}

.route-map-wrap {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  margin-top: 5px;
}

.route-scroll {
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}

.route-scroll::-webkit-scrollbar {
  display: none;
}

.route-map {
  position: relative;
  display: grid;
  grid-template-columns: repeat(7, minmax(72px, 1fr));
  min-width: 610px;
  height: 70px;
}

.route-map::before {
  content: "";
  position: absolute;
  top: 21px;
  left: 7%;
  right: 7%;
  height: 1px;
  background: repeating-linear-gradient(90deg, rgba(242, 239, 228, 0.24) 0 4px, transparent 4px 8px);
}

.route-map::after {
  content: "";
  position: absolute;
  top: 17px;
  left: 7%;
  width: var(--route-progress, 0%);
  height: 9px;
  background: linear-gradient(90deg, rgba(230, 255, 56, 0.02), rgba(230, 255, 56, 0.26));
  clip-path: polygon(0 48%, 100% 0, 100% 100%, 0 52%);
  pointer-events: none;
  transition: width 0.5s var(--ease);
}

/* generated city buildings */
.building {
  position: absolute;
  bottom: 0;
  min-width: 5px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.018), transparent 32%, rgba(255, 255, 255, 0.012)),
    #05070a;
  border-top: 1px solid rgba(150, 195, 193, 0.12);
}

.building::after {
  content: "";
  position: absolute;
  top: -7px;
  left: 44%;
  width: 1px;
  height: 7px;
  background: rgba(137, 164, 159, 0.24);
}

.building:nth-child(4n)::after {
  height: 13px;
  top: -13px;
}

.building .windows {
  position: absolute;
  inset: 8% 14% 12%;
  display: grid;
  gap: 2px;
  align-content: start;
}

.building .windows i {
  display: block;
  min-height: 1px;
  background: rgba(230, 255, 56, 0.025);
}

.building .windows i.lit {
  background: rgba(255, 228, 153, 0.48);
  box-shadow: 0 0 4px rgba(255, 228, 153, 0.25);
}

.building .windows i.lit--pink {
  background: rgba(255, 62, 148, 0.45);
  box-shadow: 0 0 4px rgba(255, 62, 148, 0.26);
}

.building .windows i.lit--cyan {
  background: rgba(103, 237, 244, 0.38);
  box-shadow: 0 0 4px rgba(103, 237, 244, 0.22);
}

.building .windows i.lit--white {
  background: rgba(242, 239, 228, 0.35);
}

.building .windows i.lit--acid {
  background: rgba(230, 255, 56, 0.35);
}

.building--wide {
  border-left: 1px solid rgba(255, 255, 255, 0.03);
}

.station {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  flex-direction: column;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--muted);
  text-align: center;
  transition: color var(--fast);
}

.station:hover:not(:disabled) {
  color: var(--ink);
}

.station:disabled {
  cursor: not-allowed;
}

.station-index {
  color: var(--dim);
  font-family: var(--font-hud);
  font-size: 6px;
  line-height: 1;
  letter-spacing: 0.04em;
  opacity: 0.7;
}

.station-dot {
  position: relative;
  display: block;
  width: 11px;
  height: 11px;
  margin: 8px 0 6px;
  border: 1px solid rgba(242, 239, 228, 0.35);
  border-radius: 50%;
  background: #0b0d10;
  transition: border-color var(--fast), background var(--fast), box-shadow var(--fast), transform var(--fast);
}

.station-name {
  display: block;
  max-width: 100%;
  overflow: hidden;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.station-en {
  display: block;
  max-width: 100%;
  margin-top: 2px;
  overflow: hidden;
  color: var(--dim);
  font-family: var(--font-hud);
  font-size: 6px;
  letter-spacing: 0.04em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.station-en.is-lock-label {
  color: rgba(255, 62, 148, 0.54);
  font-family: var(--font-cn);
  font-size: 7px;
  letter-spacing: 0.02em;
}

.station.is-current {
  color: var(--ink);
}

.station.is-current .station-dot {
  border-color: var(--acid);
  background: var(--acid);
  box-shadow:
    0 0 0 4px rgba(230, 255, 56, 0.08),
    0 0 15px rgba(230, 255, 56, 0.5);
  transform: scale(1.12);
}

.station.is-current .station-name {
  color: var(--acid);
}

.station.is-visited .station-dot {
  border-color: rgba(230, 255, 56, 0.55);
}

.station.is-locked {
  opacity: 0.33;
}

.station.is-locked .station-dot {
  border-style: dashed;
}

.station.is-locked .station-dot::after {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  top: 4px;
  height: 1px;
  background: var(--dim);
  transform: rotate(-45deg);
}

.station:not(:disabled):focus-visible {
  outline-offset: 6px;
}

.station.is-orbital .station-dot {
  width: 18px;
  height: 18px;
  margin-top: 4px;
  border: 0;
  background:
    radial-gradient(circle at 36% 32%, rgba(255, 255, 255, 0.88) 0 10%, transparent 12%),
    radial-gradient(circle at 66% 66%, rgba(81, 78, 70, 0.45) 0 15%, transparent 18%),
    var(--moon);
  box-shadow: 0 0 14px rgba(234, 230, 216, 0.24);
}

.station.is-orbital.is-current .station-dot {
  box-shadow:
    0 0 0 4px rgba(234, 230, 216, 0.1),
    0 0 22px rgba(234, 230, 216, 0.5);
}

.station.is-orbital.is-locked .station-dot {
  opacity: 0.65;
}

.station.is-orbital.is-locked .station-dot::after {
  display: none;
}

.route-direction {
  display: flex;
  align-items: center;
  gap: 5px;
  align-self: center;
  flex: 0 0 auto;
  margin-bottom: 20px;
  color: var(--dim);
  font-family: var(--font-hud);
  font-size: 6px;
  letter-spacing: 0.08em;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.route-direction i {
  width: 1px;
  height: 21px;
  background: linear-gradient(to top, var(--line-bright), transparent);
}

.route-moon-label {
  color: var(--moon);
}

/* ============================================================
   SCENE
   ============================================================ */

.scene-panel {
  position: relative;
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #07090c;
  isolation: isolate;
}

.scene-art,
.scene-sky,
.scene-stars,
.scene-cloud,
.scene-city,
.scene-fog,
.scene-grain,
.scene-scanlines,
.scene-vignette,
.scene-rain {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.scene-sky {
  background:
    radial-gradient(ellipse 52% 54% at 68% 34%, rgba(242, 239, 228, 0.09), transparent 67%),
    radial-gradient(ellipse 58% 46% at 29% 91%, rgba(255, 62, 148, 0.11), transparent 76%),
    radial-gradient(ellipse 48% 60% at 80% 96%, rgba(103, 237, 244, 0.08), transparent 75%),
    linear-gradient(180deg, #040507 0%, #080b10 54%, #0b0d10 73%, #060708 100%);
}

.scene-stars {
  opacity: 0.35;
  background-image:
    radial-gradient(1px 1px at 13% 20%, rgba(255, 255, 255, 0.55), transparent 55%),
    radial-gradient(1px 1px at 47% 12%, rgba(255, 255, 255, 0.5), transparent 55%),
    radial-gradient(1.4px 1.4px at 77% 24%, rgba(255, 255, 255, 0.34), transparent 55%),
    radial-gradient(1px 1px at 92% 44%, rgba(255, 255, 255, 0.38), transparent 55%);
  background-size: 270px 240px, 380px 300px, 340px 280px, 500px 420px;
  mask-image: linear-gradient(to bottom, #000, transparent 72%);
}

.scene-moon {
  position: absolute;
  top: 9%;
  right: 12%;
  width: clamp(110px, 15vw, 220px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 37% 32%, rgba(255, 255, 255, 0.9) 0 1.5%, transparent 2%),
    radial-gradient(circle at 64% 27%, rgba(175, 167, 148, 0.38) 0 4%, transparent 5%),
    radial-gradient(circle at 69% 65%, rgba(144, 137, 120, 0.34) 0 5%, transparent 6%),
    radial-gradient(circle at 31% 69%, rgba(155, 146, 128, 0.24) 0 7%, transparent 8%),
    radial-gradient(circle at 35% 32%, #ebe7d9 0%, #cfc9b8 43%, #a39e8e 75%, #777468 100%);
  box-shadow:
    inset -20px -24px 38px rgba(11, 14, 17, 0.6),
    0 0 58px rgba(234, 230, 216, 0.15);
  opacity: 0.88;
  transition: opacity 0.6s var(--ease), transform 0.9s var(--ease);
}

.scene-moon span {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 45% 43%, transparent 0 17%, rgba(96, 90, 78, 0.24) 17.4% 18%, transparent 18.3%),
    radial-gradient(circle at 67% 71%, transparent 0 9%, rgba(103, 96, 82, 0.3) 9.4% 9.8%, transparent 10.2%),
    repeating-radial-gradient(circle at 42% 47%, transparent 0 18px, rgba(111, 104, 90, 0.09) 19px 20px, transparent 21px 34px);
  mix-blend-mode: multiply;
}

.scene-moon i {
  position: absolute;
  inset: -22%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(237, 231, 213, 0.15), transparent 65%);
}

.scene-cloud {
  opacity: 0.5;
  background:
    linear-gradient(180deg, transparent 46%, rgba(5, 7, 9, 0.82) 80%),
    radial-gradient(ellipse 48% 34% at 58% 78%, rgba(255, 255, 255, 0.06), transparent 70%);
}

.scene-city {
  inset: auto 0 0 0;
  height: 31%;
  overflow: hidden;
  mask-image: linear-gradient(to top, #000 25%, rgba(0, 0, 0, 0.74) 73%, transparent 100%);
}

.scene-city--far {
  bottom: 12%;
  height: 22%;
  opacity: 0.3;
  filter: blur(1.2px);
}

.scene-city--near {
  opacity: 0.7;
}

.scene-city .building {
  background: #07090b;
}

.scene-city--near .building {
  box-shadow: inset 0 0 22px rgba(103, 237, 244, 0.025);
}

.scene-flyers {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.flyer {
  position: absolute;
  left: 0;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: rgba(240, 240, 220, 0.85);
  box-shadow: 0 0 5px rgba(240, 240, 220, 0.8);
  animation: flyerMove var(--dur, 16s) linear var(--delay, 0s) infinite;
  opacity: 0;
}

.flyer::before {
  content: "";
  position: absolute;
  top: 0;
  right: 2px;
  width: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5));
}

.scene-rain {
  display: none;
  opacity: 0.35;
  background-image: repeating-linear-gradient(108deg, transparent 0 71px, rgba(186, 225, 226, 0.32) 72px 73px, transparent 74px 139px);
  background-size: 190px 190px;
  animation: rainDrift 1.45s linear infinite;
  mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.38) 28%, #000 100%);
}

.scene-fog {
  background:
    radial-gradient(ellipse 54% 30% at 52% 88%, rgba(118, 134, 136, 0.12), transparent 72%),
    linear-gradient(180deg, transparent 62%, rgba(3, 4, 5, 0.73) 100%);
}

.scene-grain {
  opacity: 0.055;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: screen;
}

.scene-scanlines {
  opacity: 0.13;
  background: repeating-linear-gradient(to bottom, transparent 0 3px, rgba(0, 0, 0, 0.36) 4px, transparent 5px);
}

.scene-vignette {
  background:
    linear-gradient(90deg, rgba(4, 5, 7, 0.78) 0%, rgba(4, 5, 7, 0.18) 24%, transparent 48%, rgba(4, 5, 7, 0.13) 65%, rgba(4, 5, 7, 0.72) 100%),
    linear-gradient(0deg, rgba(4, 5, 7, 0.92) 0%, rgba(4, 5, 7, 0.14) 46%, transparent 72%);
}

/* scene props */
.prop {
  position: absolute;
  inset: 0;
  display: none;
  pointer-events: none;
}

.scene-panel[data-location="h10"] .prop-h10,
.scene-panel[data-location="transit"] .prop-transit,
.scene-panel[data-location="afterlife"] .prop-afterlife,
.scene-panel[data-location="rooftop"] .prop-rooftop,
.scene-panel[data-location="bd"] .prop-bd,
.scene-panel[data-location="docks"] .prop-docks,
.scene-panel[data-location="orbital"] .prop-orbital {
  display: block;
}

.scene-panel[data-location="h10"] .scene-moon,
.scene-panel[data-location="transit"] .scene-moon,
.scene-panel[data-location="afterlife"] .scene-moon,
.scene-panel[data-location="docks"] .scene-moon {
  opacity: 0;
}

.scene-panel[data-location="h10"] .scene-rain,
.scene-panel[data-location="rooftop"] .scene-rain,
.scene-panel[data-location="docks"] .scene-rain,
.scene-panel[data-location="transit"] .scene-rain {
  display: block;
}

.scene-panel[data-location="transit"] .scene-rain {
  opacity: 0.12;
}

.scene-panel[data-location="bd"] .scene-rain {
  display: block;
  opacity: 0.11;
}

.scene-panel[data-location="h10"] .scene-city--near {
  opacity: 0.74;
}

.scene-panel[data-location="transit"] .scene-city--near {
  opacity: 0.34;
  filter: blur(2px);
}

.scene-panel[data-location="afterlife"] .scene-city--far,
.scene-panel[data-location="afterlife"] .scene-city--near {
  opacity: 0.1;
  filter: blur(2px);
}

.scene-panel[data-location="bd"] .scene-city--far,
.scene-panel[data-location="bd"] .scene-city--near,
.scene-panel[data-location="orbital"] .scene-city--near {
  opacity: 0.06;
  filter: blur(2px);
}

.scene-panel[data-location="docks"] .scene-city--near {
  opacity: 0.35;
  bottom: 16%;
}

.scene-panel[data-location="docks"] .scene-city--far {
  opacity: 0.2;
}

/* H10 prop */
.h10-window,
.h10-sill,
.h10-blind {
  position: absolute;
}

.h10-window {
  inset: 8% 17% 27% 5%;
  border: 7px solid rgba(8, 10, 12, 0.94);
  border-bottom-width: 13px;
  background:
    linear-gradient(115deg, transparent 0 11%, rgba(174, 219, 220, 0.06) 11.2% 11.35%, transparent 11.6% 42%, rgba(174, 219, 220, 0.04) 42.2% 42.35%, transparent 42.6% 63%, rgba(255, 62, 148, 0.025) 63.2% 63.35%, transparent 63.6%),
    linear-gradient(180deg, rgba(8, 12, 16, 0.02), rgba(4, 6, 9, 0.3));
  box-shadow:
    0 0 0 1px rgba(176, 205, 206, 0.12),
    inset 0 0 55px rgba(3, 5, 9, 0.62);
}

.h10-window::before {
  content: "";
  position: absolute;
  top: 45%;
  left: -7px;
  right: -7px;
  height: 7px;
  background: #07090b;
  box-shadow: 0 1px 0 rgba(230, 255, 56, 0.05);
}

.h10-window::after {
  content: "";
  position: absolute;
  top: -7px;
  bottom: -13px;
  left: 61%;
  width: 7px;
  background: #07090b;
}

.h10-sill {
  left: 3%;
  right: 14%;
  bottom: 24%;
  height: 4%;
  background: linear-gradient(180deg, #111418, #07090b);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.h10-blind {
  top: 0;
  right: 7%;
  width: 20%;
  height: 60%;
  background: repeating-linear-gradient(180deg, rgba(11, 13, 16, 0.97) 0 5px, rgba(21, 24, 26, 0.95) 5px 7px);
  transform: skewY(-3deg);
  transform-origin: top right;
  opacity: 0.8;
}

.h10-neon {
  position: absolute;
  left: 14%;
  top: 18%;
  color: var(--pink);
  font-family: var(--font-hud);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-shadow:
    0 0 7px rgba(255, 62, 148, 0.85),
    0 0 24px rgba(255, 62, 148, 0.3);
  opacity: 0.72;
  transform: rotate(-90deg) translateX(-50%);
  transform-origin: left top;
}

.h10-lamp {
  position: absolute;
  left: 45%;
  bottom: 13%;
  width: 10%;
  height: 24%;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(255, 205, 114, 0.24), transparent 65%),
    linear-gradient(90deg, transparent 44%, rgba(255, 219, 145, 0.17) 49%, transparent 56%);
  filter: blur(4px);
}

.prop-h10::after {
  content: "";
  position: absolute;
  right: 5%;
  bottom: 3%;
  width: 43%;
  height: 17%;
  background:
    linear-gradient(180deg, rgba(37, 39, 35, 0.95), rgba(7, 9, 10, 0.99)),
    repeating-linear-gradient(90deg, transparent 0 27px, rgba(255, 255, 255, 0.035) 28px 29px);
  clip-path: polygon(0 23%, 100% 0, 100% 100%, 0 100%);
  border-top: 1px solid rgba(210, 207, 185, 0.1);
  box-shadow: 0 -12px 30px rgba(0, 0, 0, 0.4);
}

.prop-h10::before {
  content: "";
  position: absolute;
  left: 5%;
  bottom: 23%;
  width: 56%;
  height: 67%;
  border-left: 1px solid rgba(255, 62, 148, 0.1);
  border-right: 1px solid rgba(103, 237, 244, 0.07);
  background:
    linear-gradient(112deg, transparent 0 30%, rgba(103, 237, 244, 0.035) 30.2% 30.6%, transparent 30.8% 64%, rgba(255, 62, 148, 0.035) 64.2% 64.6%, transparent 64.8%);
  filter: blur(3px);
  opacity: 0.8;
}

.scene-panel[data-location="h10"] .scene-fog {
  background:
    radial-gradient(ellipse 45% 32% at 51% 68%, rgba(255, 204, 117, 0.07), transparent 70%),
    radial-gradient(ellipse 42% 32% at 25% 78%, rgba(255, 62, 148, 0.08), transparent 74%),
    linear-gradient(180deg, transparent 58%, rgba(3, 4, 5, 0.72) 100%);
}

.scene-panel[data-location="h10"] .scene-sky {
  background:
    radial-gradient(ellipse 48% 42% at 22% 62%, rgba(255, 62, 148, 0.1), transparent 72%),
    radial-gradient(ellipse 48% 38% at 64% 72%, rgba(103, 237, 244, 0.09), transparent 74%),
    radial-gradient(ellipse 80% 55% at 52% 100%, rgba(255, 203, 110, 0.07), transparent 72%),
    linear-gradient(180deg, #050709 0%, #080b10 50%, #0a0c0f 76%, #070809 100%);
}

.scene-panel[data-location="h10"] .scene-city--near {
  opacity: 0.74;
  filter: brightness(1.32);
}

.scene-panel[data-location="h10"] .scene-city--far {
  opacity: 0.44;
  filter: brightness(1.45) blur(0.9px);
}

.scene-panel[data-location="h10"] .scene-vignette {
  background:
    linear-gradient(90deg, rgba(4, 5, 7, 0.72) 0%, rgba(4, 5, 7, 0.12) 22%, transparent 45%, rgba(4, 5, 7, 0.08) 66%, rgba(4, 5, 7, 0.66) 100%),
    linear-gradient(0deg, rgba(4, 5, 7, 0.9) 0%, rgba(4, 5, 7, 0.08) 43%, transparent 68%);
}

/* Transit prop */
.train-ceiling,
.train-pillar,
.train-floor,
.train-streaks {
  position: absolute;
}

.train-ceiling {
  top: 0;
  left: 0;
  right: 0;
  height: 22%;
  background:
    linear-gradient(180deg, rgba(7, 9, 11, 0.97), rgba(11, 13, 15, 0.62) 62%, transparent),
    repeating-linear-gradient(90deg, transparent 0 110px, rgba(230, 255, 56, 0.16) 111px 113px, transparent 114px 220px);
}

.train-ceiling::after {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  top: 16%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(235, 255, 201, 0.33), transparent);
  box-shadow: 0 0 20px rgba(235, 255, 201, 0.18);
}

.train-pillar {
  top: 5%;
  bottom: 8%;
  width: 8%;
  background: linear-gradient(90deg, #06080a, #0d1013 40%, #06080a);
  border-left: 1px solid rgba(203, 219, 217, 0.07);
  transform: skewY(-2deg);
}

.train-pillar--a { left: 15%; }
.train-pillar--b { left: 71%; }

.train-floor {
  left: 0;
  right: 0;
  bottom: 0;
  height: 20%;
  background:
    linear-gradient(180deg, rgba(7, 9, 11, 0.2), rgba(5, 6, 8, 0.95) 65%),
    repeating-linear-gradient(96deg, rgba(255, 255, 255, 0.02) 0 1px, transparent 1px 30px);
}

.train-streaks {
  left: 0;
  right: 0;
  top: 34%;
  height: 24%;
  opacity: 0.34;
  background: repeating-linear-gradient(90deg, transparent 0 12%, rgba(117, 225, 231, 0.36) 12.2% 12.5%, transparent 12.7% 27%, rgba(255, 62, 148, 0.22) 27.2% 27.5%, transparent 27.7% 46%);
  filter: blur(1px);
  animation: trainStreak 7s linear infinite;
}

.train-window-view {
  position: absolute;
  inset: 12% 8% 22%;
  overflow: hidden;
  border: 6px solid rgba(4, 6, 8, 0.97);
  background:
    radial-gradient(ellipse 52% 48% at 30% 51%, rgba(255, 62, 148, 0.14), transparent 72%),
    radial-gradient(ellipse 52% 55% at 76% 38%, rgba(103, 237, 244, 0.13), transparent 75%),
    linear-gradient(180deg, #080c11 0%, #0b1016 50%, #05090c 100%);
  box-shadow:
    inset 0 0 52px rgba(2, 4, 6, 0.95),
    inset 0 1px 0 rgba(179, 218, 209, 0.1);
}

.train-window-view::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.9;
  background:
    radial-gradient(2px 1px at 11% 28%, rgba(255, 238, 195, 0.75), transparent 70%),
    radial-gradient(1px 1px at 23% 41%, rgba(255, 115, 177, 0.6), transparent 70%),
    radial-gradient(1px 1px at 37% 24%, rgba(133, 240, 243, 0.56), transparent 70%),
    radial-gradient(2px 1px at 58% 32%, rgba(255, 238, 195, 0.5), transparent 70%),
    radial-gradient(1px 1px at 71% 18%, rgba(255, 115, 177, 0.65), transparent 70%),
    radial-gradient(1px 1px at 88% 38%, rgba(133, 240, 243, 0.5), transparent 70%),
    repeating-linear-gradient(90deg, transparent 0 8%, rgba(202, 224, 215, 0.15) 8.2% 8.4%, transparent 8.6% 18%),
    linear-gradient(180deg, transparent 0 50%, rgba(255, 62, 148, 0.08) 70%, rgba(4, 7, 9, 0.94) 100%);
  background-size: 100% 100%;
  filter: blur(0.35px);
  animation: trainWindowGlide 18s linear infinite;
}

.train-window-view::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 41%;
  background:
    linear-gradient(180deg, transparent 0 16%, rgba(5, 9, 12, 0.9) 17% 100%),
    repeating-linear-gradient(90deg, transparent 0 4%, rgba(230, 255, 56, 0.04) 4.3% 4.5%, transparent 4.7% 11%);
  clip-path: polygon(0 61%, 5% 52%, 9% 70%, 15% 35%, 21% 61%, 29% 46%, 36% 72%, 44% 51%, 52% 79%, 61% 40%, 68% 60%, 75% 48%, 84% 72%, 91% 50%, 100% 66%, 100% 100%, 0 100%);
  opacity: 0.92;
}

.train-ceiling {
  z-index: 4;
}

.train-pillar {
  z-index: 5;
  background:
    linear-gradient(90deg, rgba(4, 6, 8, 0.98) 0%, rgba(14, 19, 22, 0.99) 41%, rgba(223, 230, 213, 0.08) 45%, rgba(7, 9, 11, 0.98) 48%),
    #050709;
  box-shadow: 6px 0 20px rgba(0, 0, 0, 0.65);
}

.train-floor {
  z-index: 6;
  height: 17%;
  background:
    linear-gradient(180deg, transparent 0%, rgba(4, 6, 8, 0.55) 18%, #040607 66%),
    repeating-linear-gradient(94deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 36px);
}

.train-seat {
  position: absolute;
  bottom: 0;
  z-index: 7;
  display: block;
  width: 32%;
  height: 23%;
  border-top: 1px solid rgba(197, 213, 204, 0.17);
  background:
    linear-gradient(180deg, rgba(20, 27, 29, 0.94), rgba(5, 7, 9, 0.99)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 17px);
  box-shadow: 0 -8px 22px rgba(0, 0, 0, 0.35);
}

.train-seat::before {
  content: "";
  position: absolute;
  left: 5%;
  right: 5%;
  top: 19%;
  height: 1px;
  background: rgba(230, 255, 56, 0.11);
  box-shadow: 0 7px 0 rgba(230, 255, 56, 0.04);
}

.train-seat--a {
  left: -2%;
  clip-path: polygon(0 27%, 9% 18%, 82% 18%, 100% 39%, 100% 100%, 0 100%);
}

.train-seat--b {
  right: -5%;
  width: 38%;
  clip-path: polygon(5% 22%, 88% 14%, 100% 34%, 100% 100%, 0 100%);
  opacity: 0.78;
}

.scene-panel[data-location="transit"] .scene-fog {
  background:
    radial-gradient(ellipse 60% 26% at 52% 94%, rgba(255, 62, 148, 0.07), transparent 70%),
    linear-gradient(180deg, transparent 55%, rgba(3, 4, 5, 0.8) 100%);
}

@keyframes trainWindowGlide {
  from { background-position: 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0; transform: translateX(-2.2%); }
  to { background-position: 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0; transform: translateX(2.2%); }
}

/* Afterlife prop */
.bar-glow,
.neon-sign,
.bar-shelf,
.bar-counter,
.bottle {
  position: absolute;
}

.bar-glow {
  inset: 0;
  background:
    radial-gradient(ellipse 42% 42% at 63% 35%, rgba(255, 62, 148, 0.19), transparent 74%),
    linear-gradient(180deg, transparent 50%, rgba(4, 5, 6, 0.9) 100%);
}

.neon-sign {
  top: 12%;
  left: 8%;
  color: var(--pink);
  font-family: var(--font-hud);
  font-size: clamp(18px, 2.4vw, 31px);
  font-weight: 600;
  letter-spacing: 0.24em;
  text-shadow:
    0 0 8px rgba(255, 62, 148, 0.7),
    0 0 28px rgba(255, 62, 148, 0.35);
  opacity: 0.85;
  transform: skewX(-5deg);
}

.neon-sign::after {
  content: "来生 / OPEN ALL NIGHT";
  display: block;
  margin-top: 5px;
  color: rgba(255, 62, 148, 0.52);
  font-family: var(--font-cn);
  font-size: 8px;
  font-weight: 400;
  letter-spacing: 0.24em;
}

.bar-shelf {
  left: 6%;
  right: 42%;
  bottom: 34%;
  height: 2px;
  background: rgba(216, 203, 175, 0.26);
  box-shadow: 0 -24px 0 rgba(216, 203, 175, 0.13);
}

.bar-counter {
  left: 0;
  right: 0;
  bottom: 0;
  height: 25%;
  background:
    linear-gradient(180deg, rgba(24, 18, 18, 0.72), rgba(8, 7, 8, 0.98)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 23px);
  clip-path: polygon(0 14%, 100% 0, 100% 100%, 0 100%);
}

.bottle {
  bottom: 38%;
  width: 9px;
  height: 49px;
  border-radius: 3px 3px 1px 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.13), rgba(255, 62, 148, 0.17) 45%, rgba(255, 255, 255, 0.03));
  box-shadow: inset 0 0 8px rgba(255, 242, 200, 0.12);
}

.bottle::before {
  content: "";
  position: absolute;
  top: -11px;
  left: 3px;
  width: 3px;
  height: 12px;
  background: rgba(221, 201, 172, 0.35);
}

.bottle--a { left: 24%; height: 57px; }
.bottle--b { left: 29%; height: 40px; }
.bottle--c { left: 35%; height: 50px; }

/* rooftop prop */
.roof-floor,
.roof-railing,
.roof-ac,
.roof-dish,
.roof-cable {
  position: absolute;
}

.roof-floor {
  left: 0;
  right: 0;
  bottom: 0;
  height: 22%;
  background:
    linear-gradient(180deg, rgba(17, 19, 21, 0.85), #070809 72%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 62px);
}

.roof-railing {
  left: 0;
  right: 0;
  bottom: 18%;
  height: 17%;
  border-top: 1px solid rgba(198, 210, 206, 0.2);
  border-bottom: 1px solid rgba(198, 210, 206, 0.13);
  background:
    repeating-linear-gradient(90deg, transparent 0 9%, rgba(198, 210, 206, 0.19) 9.1% 9.35%, transparent 9.5% 18%);
}

.roof-railing::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 44%;
  height: 1px;
  background: rgba(198, 210, 206, 0.12);
}

.roof-ac {
  bottom: 20%;
  width: 13%;
  height: 11%;
  border: 1px solid rgba(191, 204, 201, 0.13);
  background: linear-gradient(145deg, #121518, #080a0c);
  box-shadow: 0 8px 13px rgba(0, 0, 0, 0.4);
}

.roof-ac::before {
  content: "";
  position: absolute;
  inset: 20% 14%;
  background: repeating-linear-gradient(90deg, transparent 0 3px, rgba(255, 255, 255, 0.08) 4px 5px);
}

.roof-ac--a { left: 5%; }
.roof-ac--b { right: 18%; width: 10%; height: 8%; }

.roof-dish {
  right: 7%;
  bottom: 26%;
  width: 8%;
  aspect-ratio: 1;
  border: 1px solid rgba(205, 216, 211, 0.2);
  border-radius: 50%;
  transform: rotateX(52deg) rotateZ(-28deg);
}

.roof-dish::after {
  content: "";
  position: absolute;
  left: 49%;
  top: 49%;
  width: 140%;
  height: 1px;
  background: rgba(205, 216, 211, 0.22);
  transform: translate(-20%, 0) rotate(26deg);
}

.roof-cable {
  left: 0;
  right: 0;
  bottom: 41%;
  height: 1px;
  background: rgba(200, 205, 195, 0.11);
  transform: rotate(-2deg);
}

.roof-beacon {
  position: absolute;
  z-index: 2;
  display: block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 8px rgba(255, 90, 74, 0.85);
  animation: beaconBlink 3.2s ease-in-out infinite;
}

.roof-beacon::after {
  content: "";
  position: absolute;
  left: 1px;
  top: 4px;
  width: 1px;
  height: 18px;
  background: linear-gradient(to bottom, rgba(255, 90, 74, 0.38), transparent);
}

.roof-beacon--a {
  right: 27%;
  bottom: 42%;
}

.roof-beacon--b {
  left: 23%;
  bottom: 47%;
  animation-delay: 1.4s;
  opacity: 0.6;
}

.scene-panel[data-location="rooftop"] .scene-city--near {
  opacity: 0.97;
  filter: brightness(1.6) contrast(1.05);
}

.scene-panel[data-location="rooftop"] .scene-city--far {
  opacity: 0.55;
  filter: brightness(1.7) blur(0.8px);
}

.scene-panel[data-location="rooftop"] .scene-fog {
  background:
    radial-gradient(ellipse 72% 28% at 72% 88%, rgba(255, 62, 148, 0.13), transparent 71%),
    radial-gradient(ellipse 45% 23% at 27% 92%, rgba(103, 237, 244, 0.1), transparent 72%),
    linear-gradient(180deg, transparent 58%, rgba(3, 5, 6, 0.68) 100%);
}

.roof-floor {
  height: 23%;
  background:
    linear-gradient(115deg, transparent 0 18%, rgba(255, 193, 91, 0.075) 18.2% 18.8%, transparent 19% 52%, rgba(255, 62, 148, 0.045) 52.2% 52.8%, transparent 53%),
    linear-gradient(180deg, rgba(24, 25, 23, 0.96), #070809 78%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 74px);
  box-shadow: 0 -12px 35px rgba(0, 0, 0, 0.45);
}

.roof-railing {
  bottom: 19%;
  height: 19%;
  border-top: 1px solid rgba(198, 210, 206, 0.28);
  border-bottom: 1px solid rgba(198, 210, 206, 0.2);
  background:
    repeating-linear-gradient(90deg, transparent 0 8.8%, rgba(198, 210, 206, 0.24) 8.9% 9.15%, transparent 9.25% 17.7%);
}

.roof-railing::after {
  background: rgba(198, 210, 206, 0.19);
}

.roof-ac {
  border-color: rgba(191, 204, 201, 0.22);
  box-shadow:
    0 8px 13px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(219, 228, 218, 0.08);
}

@keyframes beaconBlink {
  0%, 39%, 100% { opacity: 0.18; }
  46%, 54% { opacity: 1; }
  61% { opacity: 0.3; }
}

/* BD prop */
.bd-ring,
.bd-horizon,
.bd-crosshair {
  position: absolute;
}

.bd-ring {
  left: 50%;
  top: 46%;
  border: 1px solid rgba(103, 237, 244, 0.15);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.bd-ring--a { width: 31%; aspect-ratio: 1; }
.bd-ring--b { width: 51%; aspect-ratio: 1; border-color: rgba(255, 62, 148, 0.1); }
.bd-ring--c { width: 75%; aspect-ratio: 1; border-color: rgba(255, 255, 255, 0.045); }

.bd-ring--a::after,
.bd-ring--b::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(103, 237, 244, 0.22), transparent);
}

.bd-horizon {
  left: -5%;
  right: -5%;
  bottom: 14%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(230, 255, 56, 0.26), transparent);
  box-shadow: 0 0 18px rgba(230, 255, 56, 0.12);
}

.bd-horizon::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 2px;
  height: 17%;
  background: linear-gradient(180deg, rgba(230, 255, 56, 0.07), transparent);
}

.bd-crosshair {
  left: 50%;
  top: 46%;
  width: 54%;
  height: 54%;
  transform: translate(-50%, -50%);
  opacity: 0.36;
  background:
    linear-gradient(90deg, transparent 49.8%, rgba(103, 237, 244, 0.4) 50%, transparent 50.2%),
    linear-gradient(0deg, transparent 49.8%, rgba(103, 237, 244, 0.4) 50%, transparent 50.2%);
  mask-image: radial-gradient(circle, transparent 0 45%, #000 46%);
}

/* docks prop */
.dock-crane,
.dock-water,
.dock-container,
.dock-reflection {
  position: absolute;
}

.dock-crane {
  top: 18%;
  width: 2px;
  height: 46%;
  background: rgba(13, 17, 20, 0.9);
  box-shadow: 20px 0 0 rgba(13, 17, 20, 0.82);
}

.dock-crane::before {
  content: "";
  position: absolute;
  left: -45px;
  top: 12%;
  width: 91px;
  height: 2px;
  background: rgba(18, 22, 24, 0.95);
}

.dock-crane::after {
  content: "";
  position: absolute;
  left: 18px;
  top: 12%;
  width: 1px;
  height: 35%;
  background: rgba(220, 198, 154, 0.17);
}

.dock-crane--a { left: 15%; }
.dock-crane--b { left: 77%; height: 39%; opacity: 0.65; }

.dock-water {
  left: 0;
  right: 0;
  bottom: 0;
  height: 23%;
  background:
    repeating-linear-gradient(0deg, transparent 0 4px, rgba(139, 210, 211, 0.05) 5px 6px, transparent 7px 13px),
    linear-gradient(180deg, rgba(7, 12, 15, 0.5), #05080b);
}

.dock-container {
  bottom: 21%;
  width: 21%;
  height: 13%;
  border: 1px solid rgba(134, 153, 148, 0.11);
  background:
    linear-gradient(180deg, rgba(22, 26, 26, 0.84), rgba(8, 11, 13, 0.96)),
    repeating-linear-gradient(90deg, transparent 0 7px, rgba(255, 255, 255, 0.025) 8px 9px);
}

.dock-container::before {
  content: "";
  position: absolute;
  inset: 18% 7%;
  border-top: 1px solid rgba(255, 255, 255, 0.055);
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
}

.dock-container--a { left: 8%; }
.dock-container--b { right: 11%; width: 28%; height: 17%; opacity: 0.72; }
.dock-container--c {
  left: 39%;
  bottom: 25%;
  width: 13%;
  height: 9%;
  border-color: rgba(255, 62, 148, 0.16);
  background:
    linear-gradient(180deg, rgba(32, 24, 27, 0.86), rgba(8, 11, 13, 0.96)),
    repeating-linear-gradient(90deg, transparent 0 6px, rgba(255, 62, 148, 0.05) 7px 8px);
  opacity: 0.8;
}

.dock-container {
  border-top-color: rgba(156, 177, 168, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(221, 220, 200, 0.07),
    0 9px 25px rgba(0, 0, 0, 0.35);
}

.dock-container::after {
  content: "";
  position: absolute;
  top: 23%;
  left: 8%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 185, 96, 0.9);
  box-shadow: 0 0 7px rgba(255, 185, 96, 0.65);
}

.dock-ship {
  position: absolute;
  left: 47%;
  bottom: 22%;
  width: 44%;
  height: 12%;
  background:
    linear-gradient(180deg, rgba(11, 15, 17, 0.98), rgba(4, 6, 8, 0.99)),
    repeating-linear-gradient(90deg, rgba(230, 255, 56, 0.06) 0 1px, transparent 1px 30px);
  clip-path: polygon(0 58%, 8% 27%, 62% 18%, 77% 0, 86% 1%, 82% 22%, 100% 49%, 100% 100%, 0 100%);
  border-top: 1px solid rgba(184, 199, 190, 0.16);
  opacity: 0.82;
}

.dock-ship::before {
  content: "";
  position: absolute;
  left: 18%;
  right: 15%;
  bottom: 29%;
  height: 3px;
  background: repeating-linear-gradient(90deg, rgba(255, 209, 123, 0.38) 0 5px, transparent 5px 13px);
  box-shadow: 0 0 10px rgba(255, 193, 90, 0.12);
}

.dock-reflection {
  left: 18%;
  right: 22%;
  bottom: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 62, 148, 0.6), rgba(103, 237, 244, 0.45), transparent);
  box-shadow: 0 0 20px rgba(255, 62, 148, 0.28);
  filter: blur(1px);
}

.dock-water {
  height: 26%;
  background:
    radial-gradient(ellipse 22% 64% at 72% 15%, rgba(234, 230, 216, 0.18), transparent 72%),
    radial-gradient(ellipse 60% 24% at 45% 35%, rgba(255, 62, 148, 0.09), transparent 71%),
    repeating-linear-gradient(0deg, transparent 0 4px, rgba(139, 210, 211, 0.09) 5px 6px, transparent 7px 13px),
    linear-gradient(180deg, rgba(7, 13, 17, 0.45), #04070a 77%);
}

.dock-beacon {
  position: absolute;
  display: block;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 7px rgba(255, 90, 74, 0.8);
  animation: beaconBlink 2.8s ease-in-out infinite;
}

.dock-beacon--a {
  left: 15.2%;
  top: 19%;
}

.dock-beacon--b {
  left: 77.2%;
  top: 31%;
  animation-delay: 1.1s;
}

.scene-panel[data-location="docks"] .scene-moon {
  top: 12%;
  right: 19%;
  width: clamp(88px, 11vw, 150px);
  opacity: 0.62;
  filter: saturate(0.65) brightness(0.92);
}

.scene-panel[data-location="docks"] .scene-city--near {
  opacity: 0.58;
  filter: brightness(1.3) blur(0.6px);
}

.scene-panel[data-location="docks"] .scene-city--far {
  opacity: 0.34;
  filter: brightness(1.2) blur(1.4px);
}

.scene-panel[data-location="docks"] .scene-fog {
  background:
    radial-gradient(ellipse 72% 24% at 71% 63%, rgba(255, 62, 148, 0.09), transparent 70%),
    radial-gradient(ellipse 44% 30% at 48% 78%, rgba(103, 237, 244, 0.08), transparent 72%),
    linear-gradient(180deg, transparent 49%, rgba(3, 5, 7, 0.7) 100%);
}

/* orbital prop */
.launch-tower,
.launch-beam,
.shuttle,
.launch-pad,
.launch-smoke {
  position: absolute;
}

.launch-tower {
  right: 19%;
  bottom: 19%;
  width: 2px;
  height: 50%;
  background: rgba(139, 147, 143, 0.38);
  box-shadow:
    -16px 0 0 -1px rgba(139, 147, 143, 0.06),
    18px 0 0 -1px rgba(139, 147, 143, 0.1);
}

.launch-tower::before {
  content: "";
  position: absolute;
  left: -15px;
  right: -17px;
  top: 20%;
  height: 1px;
  background: rgba(187, 192, 181, 0.2);
  box-shadow: 0 12px 0 rgba(187, 192, 181, 0.09), 0 26px 0 rgba(187, 192, 181, 0.06);
}

.launch-beam {
  left: 50%;
  bottom: 17%;
  width: 16%;
  height: 58%;
  background: linear-gradient(to top, rgba(230, 255, 56, 0.15), rgba(230, 255, 56, 0.015) 65%, transparent);
  clip-path: polygon(42% 100%, 58% 100%, 100% 0, 0 0);
  filter: blur(3px);
  opacity: 0.8;
}

.shuttle {
  left: 48.5%;
  bottom: 43%;
  width: 15px;
  height: 56px;
  border-radius: 50% 50% 7% 7%;
  background: linear-gradient(90deg, #202626, #cdd0c4 45%, #eeeadd 55%, #777b75);
  transform: rotate(2deg);
  box-shadow: 0 0 17px rgba(238, 234, 221, 0.15);
}

.shuttle i {
  position: absolute;
  left: 2px;
  right: 2px;
  bottom: -9px;
  height: 16px;
  background: linear-gradient(180deg, rgba(230, 255, 56, 0.75), transparent);
  filter: blur(3px);
}

.launch-pad {
  left: 0;
  right: 0;
  bottom: 0;
  height: 20%;
  background:
    linear-gradient(180deg, rgba(14, 16, 17, 0.2), rgba(6, 7, 8, 0.96) 70%),
    repeating-linear-gradient(90deg, rgba(230, 255, 56, 0.18) 0 1px, transparent 1px 90px);
}

.launch-pad::before {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  top: 36%;
  height: 1px;
  background: repeating-linear-gradient(90deg, rgba(234, 230, 216, 0.22) 0 9px, transparent 9px 18px);
}

.launch-smoke {
  left: 40%;
  right: 38%;
  bottom: 12%;
  height: 12%;
  background: radial-gradient(ellipse at center, rgba(218, 213, 198, 0.12), transparent 67%);
  filter: blur(9px);
}

/* scene UI */
.scene-hud {
  position: absolute;
  top: 14px;
  left: 17px;
  right: 17px;
  z-index: 9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 0.1em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
}

.scene-code {
  color: var(--acid);
}

.scene-clock {
  font-family: var(--font-hud);
}

.scene-title-block {
  position: absolute;
  left: clamp(18px, 2.8vw, 36px);
  bottom: clamp(70px, 15%, 120px);
  z-index: 9;
  max-width: 66%;
}

.scene-eyebrow {
  display: block;
  color: var(--acid);
  font-size: 8px;
  letter-spacing: 0.17em;
  text-shadow: 0 0 12px rgba(230, 255, 56, 0.2);
}

.scene-title-block h2 {
  margin-top: 8px;
  font-size: clamp(27px, 3.1vw, 43px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.045em;
  text-shadow: 0 3px 20px rgba(0, 0, 0, 0.6);
}

.scene-title-block > p {
  margin-top: 6px;
  color: var(--muted);
  font-family: var(--font-hud);
  font-size: 8px;
  letter-spacing: 0.1em;
}

.scene-desc-block {
  position: absolute;
  left: clamp(18px, 2.8vw, 36px);
  right: clamp(18px, 2.8vw, 36px);
  bottom: 16px;
  z-index: 9;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.scene-desc-block > p {
  max-width: 52%;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.55;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.8);
}

.scene-desc-block blockquote {
  max-width: 40%;
  padding-left: 12px;
  border-left: 1px solid rgba(255, 62, 148, 0.55);
  color: rgba(242, 239, 228, 0.7);
  font-family: var(--font-cn);
  font-size: 11px;
  line-height: 1.55;
  text-align: right;
}

.scene-mark {
  position: absolute;
  right: clamp(18px, 2.8vw, 36px);
  bottom: 44%;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  opacity: 0.18;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.14);
}

.scene-mark span {
  color: var(--moon);
  font-family: var(--font-blunt);
  font-size: clamp(54px, 7vw, 98px);
  line-height: 0.78;
  letter-spacing: -0.08em;
}

.scene-mark i {
  margin-top: 6px;
  color: var(--moon);
  font-family: var(--font-hud);
  font-size: 7px;
  font-style: normal;
  letter-spacing: 0.3em;
}

.scene-corners {
  position: absolute;
  inset: 8px;
  z-index: 10;
  pointer-events: none;
}

.scene-corners i {
  position: absolute;
  width: 13px;
  height: 13px;
  border-color: rgba(242, 239, 228, 0.27);
  border-style: solid;
}

.scene-corners i:nth-child(1) { top: 0; left: 0; border-width: 1px 0 0 1px; }
.scene-corners i:nth-child(2) { top: 0; right: 0; border-width: 1px 1px 0 0; }
.scene-corners i:nth-child(3) { bottom: 0; left: 0; border-width: 0 0 1px 1px; }
.scene-corners i:nth-child(4) { bottom: 0; right: 0; border-width: 0 1px 1px 0; }

.scene-panel.is-changing .scene-art {
  animation: sceneShift 0.52s var(--ease);
}

.scene-panel.is-changing .scene-title-block,
.scene-panel.is-changing .scene-desc-block {
  animation: copyShift 0.5s var(--ease);
}

/* ============================================================
   COMMAND DECK / ACTIONS
   ============================================================ */

.command-deck {
  flex: 0 0 auto;
}

.command-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: 1px 1px 8px;
}

.command-heading h2 {
  margin-top: 2px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.command-hint {
  color: var(--dim);
  font-family: var(--font-hud);
  font-size: 8px;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.command-hint span {
  color: var(--acid);
  font-size: 12px;
}

.action-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.action-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 114px;
  padding: 11px 12px 9px;
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.025), transparent 48%),
    var(--panel);
  text-align: left;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
  transition:
    border-color var(--fast),
    background var(--fast),
    transform var(--fast);
}

.action-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 12px;
  width: 23px;
  height: 1px;
  background: var(--acid);
  opacity: 0.65;
}

.action-card:hover:not(:disabled) {
  z-index: 1;
  border-color: rgba(230, 255, 56, 0.42);
  background:
    linear-gradient(145deg, rgba(230, 255, 56, 0.065), transparent 52%),
    var(--panel-2);
  transform: translateY(-2px);
}

.action-card:active:not(:disabled) {
  transform: translateY(0);
}

.action-card:disabled {
  border-color: rgba(242, 239, 228, 0.07);
  background: rgba(13, 15, 18, 0.58);
  opacity: 0.62;
}

.action-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.action-number {
  color: var(--acid);
  font-family: var(--font-hud);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.action-tag {
  color: var(--dim);
  font-family: var(--font-hud);
  font-size: 7px;
  letter-spacing: 0.09em;
  text-align: right;
}

.action-card[data-special="memory"] .action-tag,
.action-card[data-special="ticket"] .action-tag {
  color: var(--pink);
}

.action-title {
  margin-top: 7px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.012em;
}

.action-desc {
  display: -webkit-box;
  margin-top: 4px;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.action-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 6px;
  margin-top: auto;
  padding-top: 8px;
}

.action-cost {
  color: var(--dim);
  font-family: var(--font-hud);
  font-size: 8px;
  letter-spacing: 0.04em;
}

.action-cost b {
  color: var(--ink-soft);
  font-weight: 400;
}

.action-cost .cost-warn {
  color: var(--red);
}

.action-go {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 1px solid var(--line-bright);
  color: var(--muted);
  font-family: var(--font-hud);
  font-size: 11px;
  line-height: 1;
  transition: background var(--fast), color var(--fast), border-color var(--fast);
}

.action-card:hover:not(:disabled) .action-go {
  color: #060706;
  background: var(--acid);
  border-color: var(--acid);
}

.action-reason {
  display: block;
  margin-top: auto;
  padding-top: 8px;
  color: var(--dim);
  font-size: 10px;
}

.action-card.is-locked {
  opacity: 0.38;
}

.action-card.is-unaffordable .action-cost {
  color: var(--red);
}

.action-card.is-unaffordable .action-cost b {
  color: var(--red);
}

.action-card[data-req="true"] {
  opacity: 0.42;
}

.ap-cost {
  color: var(--dim);
}

.ap-cost::before {
  content: "AP ";
  color: var(--acid);
}

/* ============================================================
   RIGHT RAIL
   ============================================================ */

.rail-comms {
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-height: 0;
}

.comms-card {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 220px;
  overflow: hidden;
  padding: 13px 13px 0;
}

.comms-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--line);
}

.comms-person {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.comms-avatar {
  position: relative;
  display: grid;
  place-items: center;
  width: 34px;
  height: 38px;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid rgba(255, 62, 148, 0.38);
  background:
    linear-gradient(145deg, rgba(255, 62, 148, 0.2), rgba(255, 62, 148, 0.02) 70%),
    #141016;
  color: var(--pink);
  font-family: var(--font-blunt);
  font-size: 21px;
}

.comms-avatar::after {
  content: "";
  position: absolute;
  left: -30%;
  right: -30%;
  bottom: 6px;
  height: 1px;
  background: var(--pink);
  opacity: 0.45;
  transform: rotate(-24deg);
}

.comms-avatar i {
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 7px var(--pink);
}

.comms-person h2 {
  margin-top: 3px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.1;
}

.comms-person h2 small {
  margin-left: 5px;
  color: var(--dim);
  font-family: var(--font-hud);
  font-size: 7px;
  font-weight: 400;
  letter-spacing: 0.1em;
}

.online-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
  padding: 2px 5px;
  border: 1px solid rgba(255, 62, 148, 0.24);
  color: var(--pink);
  font-family: var(--font-cn);
  font-size: 8px;
}

.online-pill i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--pink);
}

.comms-feed {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 11px 2px 10px;
  scrollbar-width: thin;
  scrollbar-color: var(--line-bright) transparent;
}

.comms-feed::-webkit-scrollbar {
  width: 3px;
}

.comms-feed::-webkit-scrollbar-thumb {
  background: var(--line-bright);
}

.msg {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  margin-bottom: 9px;
  animation: messageIn 0.38s var(--ease);
}

.msg-body {
  max-width: 88%;
}

.msg-who {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 3px;
  color: var(--dim);
  font-family: var(--font-hud);
  font-size: 6px;
  letter-spacing: 0.12em;
}

.msg-who b {
  color: var(--pink);
  font-family: var(--font-cn);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0;
}

.msg-bubble {
  padding: 7px 8px;
  border: 1px solid rgba(255, 62, 148, 0.13);
  border-top-left-radius: 0;
  background: rgba(255, 62, 148, 0.055);
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.55;
}

.msg--you {
  flex-direction: row-reverse;
}

.msg--you .msg-who {
  justify-content: flex-end;
}

.msg--you .msg-who b {
  color: var(--acid);
}

.msg--you .msg-bubble {
  border-color: rgba(230, 255, 56, 0.13);
  background: rgba(230, 255, 56, 0.045);
}

.msg--system {
  display: block;
  margin: 8px 0 10px;
  padding: 6px 7px;
  border-left: 1px solid rgba(103, 237, 244, 0.38);
  background: rgba(103, 237, 244, 0.035);
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 8px;
  line-height: 1.5;
}

.msg--system .msg-who {
  color: var(--cyan);
}

.msg--system .msg-who b {
  color: var(--cyan);
}

.msg-time {
  margin-top: 3px;
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 6px;
  letter-spacing: 0.04em;
  opacity: 0.7;
}

.msg--you .msg-time {
  text-align: right;
}

.msg-avatar {
  display: grid;
  place-items: center;
  width: 19px;
  height: 20px;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 62, 148, 0.2);
  color: var(--pink);
  font-family: var(--font-hud);
  font-size: 7px;
}

.msg--you .msg-avatar {
  border-color: rgba(230, 255, 56, 0.2);
  color: var(--acid);
}

.msg--system .msg-avatar {
  display: none;
}

.comms-input {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 0 0 auto;
  margin: 0 -13px;
  padding: 8px 13px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 7px;
  letter-spacing: 0.09em;
}

.comms-input button {
  display: grid;
  place-items: center;
  width: 19px;
  height: 19px;
  border: 1px solid var(--line-bright);
  border-radius: 50%;
  background: transparent;
  color: var(--pink);
  font-size: 9px;
}

.objective-card {
  flex: 0 0 auto;
  padding: 12px 13px 11px;
  background:
    linear-gradient(130deg, rgba(230, 255, 56, 0.045), transparent 42%),
    linear-gradient(150deg, var(--panel-2), var(--panel));
}

.objective-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.objective-status {
  color: var(--acid);
  font-family: var(--font-hud);
  font-size: 7px;
  letter-spacing: 0.1em;
}

.objective-card h3 {
  margin-top: 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}

.objective-card > p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.objective-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 9px;
}

.objective-check {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 5px;
  border: 1px solid rgba(242, 239, 228, 0.09);
  color: var(--dim);
  font-family: var(--font-hud);
  font-size: 7px;
  letter-spacing: 0.04em;
}

.objective-check i {
  display: block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--dim);
}

.objective-check.is-done {
  color: var(--acid);
  border-color: rgba(230, 255, 56, 0.2);
}

.objective-check.is-done i {
  background: var(--acid);
  box-shadow: 0 0 5px var(--acid);
}

.escape-card {
  flex: 0 0 auto;
  padding: 11px 13px 10px;
}

.escape-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.escape-mark {
  color: var(--pink);
  font-family: var(--font-hud);
  font-size: 7px;
  letter-spacing: 0.1em;
}

.escape-progress {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 9px;
}

.escape-progress div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line);
}

.escape-progress span {
  color: var(--dim);
  font-size: 8px;
}

.escape-progress b {
  color: var(--ink-soft);
  font-family: var(--font-hud);
  font-size: 10px;
  font-weight: 400;
}

.escape-progress b.is-complete {
  color: var(--acid);
}

.escape-track {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 1px;
  margin-top: 12px;
  background: rgba(242, 239, 228, 0.14);
}

.escape-track i {
  position: absolute;
  top: -2px;
  left: 0;
  height: 5px;
  width: 0;
  background: linear-gradient(90deg, var(--pink), var(--acid));
  transition: width 0.6s var(--ease);
}

.escape-track span {
  position: relative;
  z-index: 1;
  width: 7px;
  height: 7px;
  border: 1px solid var(--line-bright);
  border-radius: 50%;
  background: var(--panel);
}

.escape-track span.is-on {
  border-color: var(--acid);
  background: var(--acid);
}

.escape-card p {
  margin-top: 7px;
  color: var(--dim);
  font-size: 8px;
}

.end-day-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 0 0 auto;
  gap: 12px;
  min-height: 56px;
  padding: 8px 13px;
  border: 1px solid rgba(230, 255, 56, 0.3);
  background:
    linear-gradient(130deg, rgba(230, 255, 56, 0.09), transparent 53%),
    rgba(11, 14, 12, 0.92);
  text-align: left;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
  transition: background var(--fast), border-color var(--fast), color var(--fast);
}

.end-day-btn:hover {
  border-color: var(--acid);
  background:
    linear-gradient(130deg, rgba(230, 255, 56, 0.16), transparent 53%),
    rgba(14, 17, 13, 0.96);
}

.end-day-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.end-day-copy small {
  color: var(--dim);
  font-family: var(--font-hud);
  font-size: 7px;
  letter-spacing: 0.12em;
}

.end-day-copy b {
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}

.end-day-time {
  color: var(--dim);
  font-family: var(--font-hud);
  font-size: 9px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.end-day-time i {
  margin-left: 4px;
  color: var(--acid);
  font-style: normal;
}

.end-day-btn.is-ready {
  color: #060706;
  background: var(--acid);
  border-color: var(--acid);
  animation: readyPulse 2.4s ease-in-out infinite;
}

.end-day-btn.is-ready .end-day-copy small,
.end-day-btn.is-ready .end-day-copy b,
.end-day-btn.is-ready .end-day-time,
.end-day-btn.is-ready .end-day-time i {
  color: #060706;
}

.save-line {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--dim);
  font-size: 7px;
  letter-spacing: 0.09em;
}

.save-line i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(230, 255, 56, 0.7);
}

.save-line.is-error {
  color: var(--red);
}

.save-line.is-error i {
  background: var(--red);
}

.mobile-dock {
  display: none;
}

/* ============================================================
   MODALS / STORY
   ============================================================ */

.modal-root {
  position: fixed;
  inset: 0;
  z-index: 100;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(3, 4, 5, 0.78);
  backdrop-filter: blur(10px) saturate(0.8);
  animation: overlayIn 0.25s ease both;
}

.modal {
  position: relative;
  width: min(960px, 100%);
  max-height: calc(100vh - 44px);
  max-height: calc(100svh - 44px);
  overflow: hidden;
  border: 1px solid rgba(242, 239, 228, 0.21);
  background:
    radial-gradient(ellipse 52% 48% at 70% 20%, rgba(255, 62, 148, 0.05), transparent 70%),
    #0a0c0f;
  box-shadow:
    0 38px 100px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(0, 0, 0, 0.5);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
  animation: modalIn 0.34s var(--ease) both;
}

.modal--small {
  width: min(510px, 100%);
}

.modal--medium {
  width: min(720px, 100%);
}

.modal--moment {
  width: min(760px, 100%);
}

.modal--story {
  display: grid;
  grid-template-columns: minmax(240px, 35%) minmax(0, 1fr);
  min-height: 540px;
}

.modal-overlay.is-update,
.modal.is-update {
  animation: none;
}

.modal--final {
  width: min(990px, 100%);
}

.modal-close {
  position: absolute;
  z-index: 4;
  top: 13px;
  right: 13px;
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border: 1px solid var(--line-bright);
  background: rgba(5, 6, 8, 0.64);
  color: var(--muted);
  font-family: var(--font-hud);
  font-size: 13px;
  line-height: 1;
}

.modal-close:hover {
  border-color: var(--acid);
  color: var(--acid);
}

.modal-close svg {
  width: 15px;
  height: 15px;
}

.landing-brand .v2-brand-mark {
  width: 33px;
  height: 33px;
  color: var(--acid);
}

.story-art {
  position: relative;
  min-height: 540px;
  overflow: hidden;
  border-right: 1px solid var(--line);
  background:
    linear-gradient(90deg, transparent 0 16%, rgba(154, 193, 193, 0.055) 16.2% 16.5%, transparent 16.7% 72%, rgba(154, 193, 193, 0.04) 72.2% 72.5%, transparent 72.7%),
    radial-gradient(ellipse at 66% 31%, rgba(255, 255, 255, 0.1), transparent 36%),
    radial-gradient(ellipse 80% 32% at 51% 78%, rgba(255, 62, 148, 0.11), transparent 70%),
    radial-gradient(ellipse at 48% 92%, rgba(255, 62, 148, 0.18), transparent 56%),
    #06080b;
  isolation: isolate;
}

.story-art::before {
  content: "";
  position: absolute;
  top: 18%;
  right: 12%;
  width: 43%;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 36% 31%, rgba(255, 255, 255, 0.72) 0 3%, transparent 4%),
    radial-gradient(circle at 65% 62%, rgba(123, 118, 106, 0.33) 0 9%, transparent 10%),
    radial-gradient(circle at 33% 69%, rgba(123, 118, 106, 0.2) 0 11%, transparent 12%),
    radial-gradient(circle at 35% 32%, #e5e0d2, #a49f8e 76%, #6b695e);
  box-shadow:
    inset -24px -22px 32px rgba(4, 5, 7, 0.58),
    0 0 80px rgba(234, 230, 216, 0.16);
  opacity: 0.98;
}

.story-art::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 35%;
  background:
    linear-gradient(180deg, transparent, rgba(4, 5, 6, 0.95)),
    repeating-linear-gradient(90deg, transparent 0 9%, rgba(15, 19, 22, 0.96) 9.2% 17%, transparent 17.2% 28%);
  clip-path: polygon(0 38%, 7% 31%, 13% 42%, 22% 25%, 33% 44%, 42% 21%, 55% 39%, 64% 20%, 77% 45%, 85% 27%, 94% 42%, 100% 33%, 100% 100%, 0 100%);
  opacity: 0.9;
}

.story-art--bd::before {
  top: 32%;
  right: 23%;
  width: 54%;
  background: transparent;
  border: 1px solid rgba(103, 237, 244, 0.4);
  box-shadow:
    0 0 0 35px rgba(103, 237, 244, 0.025),
    0 0 0 70px rgba(255, 62, 148, 0.025),
    0 0 80px rgba(103, 237, 244, 0.13);
}

.story-art--h10::before,
.story-art--afterlife::before {
  opacity: 0.42;
}

.story-art--transit::before {
  opacity: 0.22;
}

.story-art--afterlife {
  background:
    radial-gradient(ellipse at 62% 36%, rgba(255, 62, 148, 0.18), transparent 53%),
    linear-gradient(180deg, #09070a, #08090b);
}

.story-art--rooftop {
  background:
    radial-gradient(ellipse at 63% 31%, rgba(255, 255, 255, 0.05), transparent 38%),
    linear-gradient(180deg, #05070a, #0a0e12 53%, #070708);
}

.story-art--orbital {
  background:
    radial-gradient(ellipse at 50% 70%, rgba(230, 255, 56, 0.15), transparent 35%),
    linear-gradient(180deg, #040507, #0b1013);
}

.story-art--orbital::after {
  height: 46%;
  background:
    linear-gradient(180deg, transparent, rgba(4, 5, 6, 0.97)),
    linear-gradient(90deg, transparent 49.6%, rgba(230, 255, 56, 0.22) 50%, transparent 50.4%);
  clip-path: polygon(0 58%, 11% 52%, 25% 61%, 42% 42%, 56% 63%, 71% 45%, 88% 56%, 100% 49%, 100% 100%, 0 100%);
}

.story-art-inner {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  background: linear-gradient(180deg, rgba(4, 6, 8, 0.25), rgba(4, 6, 8, 0.08) 44%, rgba(4, 6, 8, 0.84));
}

.story-art-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-family: var(--font-hud);
  font-size: 7px;
  letter-spacing: 0.12em;
}

.story-art-top b {
  color: var(--acid);
  font-weight: 400;
}

.story-art-bottom {
  max-width: 250px;
}

.story-art-bottom span {
  color: var(--pink);
  font-family: var(--font-hud);
  font-size: 8px;
  letter-spacing: 0.13em;
}

.story-art-bottom h3 {
  margin-top: 8px;
  font-size: clamp(22px, 2.3vw, 31px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.story-art-bottom p {
  margin-top: 7px;
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 8px;
  line-height: 1.6;
  letter-spacing: 0.04em;
}

.story-art-scan {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.2;
  background: repeating-linear-gradient(to bottom, transparent 0 4px, rgba(0, 0, 0, 0.42) 5px, transparent 6px);
}

.story-content {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 540px;
  max-height: calc(100vh - 44px);
  max-height: calc(100svh - 44px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--line-bright) transparent;
}

.story-main {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  padding: clamp(22px, 3.1vw, 38px) clamp(22px, 3.4vw, 40px) 20px;
}

.story-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--dim);
  font-family: var(--font-hud);
  font-size: 8px;
  letter-spacing: 0.1em;
}

.story-meta b {
  color: var(--acid);
  font-weight: 400;
}

.story-title {
  margin-top: 18px;
}

.story-title h2 {
  font-size: clamp(28px, 3.1vw, 42px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.story-title p {
  margin-top: 8px;
  color: var(--dim);
  font-family: var(--font-hud);
  font-size: 8px;
  letter-spacing: 0.15em;
}

.story-dialogue {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  min-height: 208px;
  padding: 28px 0 20px;
}

.dialogue-ghost {
  min-height: 45px;
  margin-bottom: 19px;
  color: var(--dim);
  font-size: 11px;
  line-height: 1.6;
  opacity: 0.42;
}

.dialogue-line {
  animation: dialogueIn 0.32s var(--ease);
}

.dialogue-who {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
  color: var(--pink);
  font-family: var(--font-hud);
  font-size: 8px;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.dialogue-who::before {
  content: "";
  width: 14px;
  height: 1px;
  background: currentColor;
}

.dialogue-line--you .dialogue-who {
  color: var(--acid);
}

.dialogue-line--system .dialogue-who {
  color: var(--cyan);
}

.dialogue-line--narr .dialogue-who {
  display: none;
}

.dialogue-text {
  color: var(--ink);
  font-size: clamp(16px, 1.7vw, 20px);
  line-height: 1.8;
  letter-spacing: 0.015em;
}

.dialogue-line--narr .dialogue-text {
  color: var(--ink-soft);
  font-size: clamp(15px, 1.45vw, 17px);
  line-height: 1.85;
}

.dialogue-line--system .dialogue-text {
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.7;
  letter-spacing: 0.02em;
}

.dialogue-line--lucy .dialogue-text {
  position: relative;
  padding-left: 21px;
}

.dialogue-line--lucy .dialogue-text::before {
  content: "“";
  position: absolute;
  left: 0;
  top: -5px;
  color: var(--pink);
  font-family: Georgia, serif;
  font-size: 30px;
  line-height: 1;
  opacity: 0.65;
}

.story-step-count {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 12px;
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.04em;
}

.story-step-count i {
  display: block;
  width: 15px;
  height: 2px;
  background: rgba(242, 239, 228, 0.15);
}

.story-step-count i.is-past {
  background: var(--acid);
}

.story-step-count i.is-current {
  background: var(--pink);
}

.story-actions {
  padding: 0 clamp(22px, 3.4vw, 40px) clamp(22px, 3vw, 30px);
}

.story-result-lines {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.story-result-line {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.8;
}

.story-result-line--lucy {
  padding-left: 12px;
  border-left: 1px solid rgba(255, 62, 148, 0.43);
  color: var(--ink);
}

.story-result-line--you {
  padding-left: 12px;
  border-left: 1px solid rgba(230, 255, 56, 0.35);
  color: var(--ink);
}

.story-result-line--system {
  padding: 7px 9px;
  border: 1px solid rgba(103, 237, 244, 0.14);
  background: rgba(103, 237, 244, 0.035);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.6;
}

.story-result-line .result-who {
  display: inline-block;
  margin-right: 6px;
  color: var(--pink);
  font-family: var(--font-hud);
  font-size: 7px;
  letter-spacing: 0.09em;
  vertical-align: 2px;
}

.story-result-line--you .result-who {
  color: var(--acid);
}

.story-result-separator {
  height: 1px;
  margin: 14px 0 4px;
  background: linear-gradient(90deg, var(--line-bright), transparent);
}

.story-closing-line {
  color: var(--dim);
  font-size: 12px;
  line-height: 1.75;
}

.action-empty {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 105px;
  border: 1px dashed var(--line);
  color: var(--dim);
  font-size: 11px;
}

.action-placeholder {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 114px;
  overflow: hidden;
  padding: 12px;
  border: 1px dashed rgba(242, 239, 228, 0.12);
  background:
    linear-gradient(135deg, transparent 0 49.7%, rgba(242, 239, 228, 0.035) 49.8% 50.2%, transparent 50.3%),
    rgba(11, 13, 16, 0.36);
  color: var(--dim);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
}

.action-placeholder::after {
  content: "07";
  position: absolute;
  right: 10px;
  bottom: -10px;
  color: rgba(242, 239, 228, 0.045);
  font-family: var(--font-blunt);
  font-size: 63px;
  line-height: 1;
  letter-spacing: -0.08em;
}

.action-placeholder p {
  max-width: 90%;
  margin-top: 9px;
  color: rgba(171, 176, 173, 0.72);
  font-size: 10px;
  line-height: 1.5;
}

.action-placeholder .placeholder-line {
  position: relative;
  z-index: 1;
  color: var(--dim);
  font-family: var(--font-hud);
  font-size: 7px;
  letter-spacing: 0.12em;
}

.comms-card.is-highlight {
  animation: commsHighlight 1s ease;
}

@keyframes commsHighlight {
  0%, 100% { border-color: var(--line); }
  30% { border-color: rgba(255, 62, 148, 0.7); }
}

.story-continue {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  min-height: 49px;
  padding: 8px 13px 8px 17px;
  border: 1px solid var(--line-bright);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.025);
  transition: background var(--fast), border-color var(--fast), color var(--fast);
}

.story-continue:hover {
  border-color: var(--acid);
  color: var(--acid);
  background: var(--acid-soft);
}

.story-continue span {
  color: var(--dim);
  font-family: var(--font-hud);
  font-size: 8px;
  letter-spacing: 0.12em;
}

.story-continue b {
  font-size: 12px;
  font-weight: 500;
}

.story-continue i {
  color: var(--acid);
  font-family: var(--font-hud);
  font-size: 17px;
  font-style: normal;
}

.choices {
  display: flex;
  flex-direction: column;
  gap: 7px;
  animation: choicesIn 0.45s var(--ease);
}

.choice-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 3px;
  color: var(--pink);
  font-family: var(--font-hud);
  font-size: 8px;
  letter-spacing: 0.12em;
}

.choice-intro span:last-child {
  color: var(--dim);
}

.choice-btn {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  width: 100%;
  padding: 10px 11px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.018);
  text-align: left;
  transition: border-color var(--fast), background var(--fast), transform var(--fast);
}

.choice-btn:hover {
  border-color: rgba(255, 62, 148, 0.5);
  background: var(--pink-soft);
  transform: translateX(2px);
}

.choice-index {
  flex: 0 0 auto;
  padding-top: 1px;
  color: var(--pink);
  font-family: var(--font-hud);
  font-size: 9px;
  letter-spacing: 0.05em;
}

.choice-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.choice-copy b {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
}

.choice-copy small {
  color: var(--dim);
  font-size: 10px;
  line-height: 1.45;
}

.choice-arrow {
  margin-left: auto;
  color: var(--dim);
  font-family: var(--font-hud);
  font-size: 15px;
}

.choice-btn:hover .choice-arrow {
  color: var(--pink);
}

/* moment modal */
.moment-art {
  position: relative;
  height: 148px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse at 68% 28%, rgba(255, 255, 255, 0.08), transparent 38%),
    linear-gradient(180deg, #06080b, #0c1013);
}

.moment-art::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.65;
  background:
    linear-gradient(0deg, rgba(5, 6, 8, 0.95), transparent 70%),
    radial-gradient(ellipse at 72% 35%, rgba(255, 62, 148, 0.2), transparent 55%);
}

.moment-art::after {
  content: "";
  position: absolute;
  top: 16%;
  right: 11%;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.8) 0 3%, transparent 4%),
    radial-gradient(circle at 64% 62%, rgba(124, 117, 101, 0.33) 0 8%, transparent 9%),
    linear-gradient(145deg, #e6e0d0, #8f8b7a);
  box-shadow: 0 0 42px rgba(234, 230, 216, 0.16);
  opacity: 0.6;
}

.moment-art[data-scene="afterlife"]::after,
.moment-art[data-scene="bd"]::after,
.moment-art[data-scene="h10"]::after {
  opacity: 0.14;
  filter: blur(3px);
}

.moment-art-label {
  position: absolute;
  z-index: 1;
  left: 24px;
  bottom: 16px;
  color: var(--acid);
  font-family: var(--font-hud);
  font-size: 8px;
  letter-spacing: 0.14em;
}

.moment-art-time {
  position: absolute;
  z-index: 1;
  right: 24px;
  bottom: 16px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.05em;
}

.moment-main {
  padding: 22px 25px 18px;
  max-height: calc(100vh - 230px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--line-bright) transparent;
}

.moment-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.moment-title h2 {
  font-size: 25px;
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.035em;
}

.moment-title span {
  color: var(--pink);
  font-family: var(--font-mono);
  font-size: 8px;
  white-space: nowrap;
}

.moment-lines {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 15px;
}

.moment-line {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.75;
}

.moment-line--lucy {
  padding-left: 11px;
  border-left: 1px solid rgba(255, 62, 148, 0.4);
  color: var(--ink);
}

.moment-line--you {
  padding-left: 11px;
  border-left: 1px solid rgba(230, 255, 56, 0.35);
  color: var(--ink);
}

.moment-line--system {
  padding: 7px 9px;
  border: 1px solid rgba(103, 237, 244, 0.13);
  background: rgba(103, 237, 244, 0.035);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.55;
}

.moment-line .line-who {
  display: inline-block;
  margin-right: 7px;
  color: var(--pink);
  font-family: var(--font-hud);
  font-size: 7px;
  letter-spacing: 0.1em;
  vertical-align: 2px;
}

.moment-line--you .line-who {
  color: var(--acid);
}

.memory-unlock {
  margin-top: 16px;
  padding: 12px 13px;
  border: 1px solid rgba(255, 62, 148, 0.27);
  background:
    radial-gradient(ellipse at 100% 0, rgba(255, 62, 148, 0.12), transparent 55%),
    rgba(255, 62, 148, 0.035);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
}

.memory-unlock-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--pink);
  font-family: var(--font-hud);
  font-size: 7px;
  letter-spacing: 0.13em;
}

.memory-unlock h4 {
  margin-top: 7px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
}

.memory-unlock p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.reward-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.reward-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 7px;
  border: 1px solid rgba(230, 255, 56, 0.18);
  color: var(--acid);
  font-family: var(--font-hud);
  font-size: 9px;
  letter-spacing: 0.04em;
}

.reward-chip--pink {
  color: var(--pink);
  border-color: rgba(255, 62, 148, 0.22);
}

.reward-chip--cyan {
  color: var(--cyan);
  border-color: rgba(103, 237, 244, 0.2);
}

.reward-chip--red {
  color: var(--red);
  border-color: rgba(255, 90, 74, 0.22);
}

.modal-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 0 25px 20px;
}

.modal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 16px;
  border: 1px solid var(--line-bright);
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.025);
  font-size: 11px;
  transition: background var(--fast), border-color var(--fast), color var(--fast);
}

.modal-btn:hover {
  border-color: var(--acid);
  color: var(--acid);
}

.modal-btn--primary {
  border-color: var(--acid);
  background: var(--acid);
  color: #060706;
  font-weight: 600;
}

.modal-btn--primary:hover {
  background: #f1ff78;
  color: #060706;
}

.modal-btn--danger {
  border-color: rgba(255, 90, 74, 0.45);
  color: var(--red);
}

.modal-btn--danger:hover {
  background: rgba(255, 90, 74, 0.1);
  border-color: var(--red);
  color: var(--red);
}

/* generic content modal */
.content-modal-body {
  padding: 30px 30px 22px;
  max-height: calc(100vh - 44px);
  overflow-y: auto;
  scrollbar-width: thin;
}

.content-modal-kicker {
  color: var(--acid);
  font-family: var(--font-hud);
  font-size: 8px;
  letter-spacing: 0.15em;
}

.content-modal-body h2 {
  margin-top: 10px;
  font-size: clamp(25px, 3vw, 35px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.04em;
}

.content-modal-body > p {
  margin-top: 9px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.help-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 21px;
  border-top: 1px solid var(--line);
}

.help-item {
  display: grid;
  grid-template-columns: 31px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.help-item > span {
  color: var(--pink);
  font-family: var(--font-hud);
  font-size: 10px;
}

.help-item h3 {
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
}

.help-item p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.setting-row:first-of-type {
  margin-top: 17px;
  border-top: 1px solid var(--line);
}

.setting-copy h3 {
  font-size: 13px;
  font-weight: 500;
}

.setting-copy p {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.switch {
  position: relative;
  flex: 0 0 auto;
  width: 38px;
  height: 20px;
  border: 1px solid var(--line-bright);
  border-radius: 999px;
  padding: 0;
  background: rgba(255, 255, 255, 0.05);
  transition: background var(--fast), border-color var(--fast);
}

.switch::before {
  content: "";
  position: absolute;
  inset: -10px -8px;
}

.switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--muted);
  transition: transform var(--fast), background var(--fast);
}

.switch.is-on {
  border-color: var(--acid);
  background: var(--acid-soft);
}

.switch.is-on::after {
  background: var(--acid);
  transform: translateX(17px);
}

.settings-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 21px;
}

.credit-note {
  margin-top: 19px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 9px;
  line-height: 1.7;
}

/* final choice */
.final-body {
  padding: 28px 30px 23px;
  max-height: calc(100vh - 44px);
  overflow-y: auto;
}

.final-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 28px;
  align-items: start;
}

.final-head h2 {
  margin-top: 9px;
  font-size: clamp(28px, 3.2vw, 42px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.05em;
}

.final-head p {
  margin-top: 9px;
  max-width: 500px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.final-checks {
  padding: 13px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.final-checks h3 {
  color: var(--dim);
  font-family: var(--font-hud);
  font-size: 8px;
  font-weight: 400;
  letter-spacing: 0.13em;
}

.final-check {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(242, 239, 228, 0.07);
  color: var(--muted);
  font-size: 10px;
}

.final-check:last-child {
  border-bottom: 0;
}

.final-check b {
  color: var(--dim);
  font-family: var(--font-hud);
  font-size: 8px;
  font-weight: 400;
}

.final-check.is-ok {
  color: var(--ink-soft);
}

.final-check.is-ok b {
  color: var(--acid);
}

.final-check.is-bad b {
  color: var(--red);
}

.final-choices {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 23px;
}

.final-choice {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.017);
  text-align: left;
  transition: border-color var(--fast), background var(--fast), transform var(--fast);
}

.final-choice:hover:not(:disabled) {
  border-color: var(--acid);
  background: var(--acid-soft);
  transform: translateX(2px);
}

.final-choice:disabled {
  opacity: 0.44;
}

.final-choice-index {
  color: var(--dim);
  font-family: var(--font-hud);
  font-size: 9px;
}

.final-choice-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.final-choice-copy b {
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}

.final-choice-copy small {
  color: var(--dim);
  font-size: 10px;
  line-height: 1.45;
}

.final-choice-mark {
  color: var(--dim);
  font-family: var(--font-hud);
  font-size: 18px;
}

.final-choice:hover:not(:disabled) .final-choice-mark {
  color: var(--acid);
}

.final-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 17px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
}

.final-footer p {
  color: var(--muted);
  font-size: 10px;
}

/* confirm */
.confirm-body {
  padding: 27px 27px 20px;
}

.confirm-body h2 {
  margin-top: 8px;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.04em;
}

.confirm-body p {
  margin-top: 9px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 7px;
  margin-top: 24px;
}

/* ending */
.ending-screen {
  position: fixed;
  inset: 0;
  z-index: 110;
  overflow-y: auto;
  background: #060709;
  color: var(--ink);
  scrollbar-width: thin;
  animation: overlayIn 0.55s ease both;
}

.ending-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 63vh;
  overflow: hidden;
  padding: clamp(30px, 6vw, 80px);
  isolation: isolate;
  background:
    radial-gradient(ellipse 42% 50% at 72% 33%, rgba(244, 239, 224, 0.17), transparent 55%),
    radial-gradient(ellipse 70% 45% at 50% 100%, rgba(255, 62, 148, 0.18), transparent 70%),
    linear-gradient(180deg, #030405, #090c10 57%, #060709);
}

.ending-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 8%;
  right: 11%;
  width: min(34vw, 430px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.85) 0 1.6%, transparent 2.3%),
    radial-gradient(circle at 64% 62%, rgba(122, 115, 100, 0.34) 0 6%, transparent 7%),
    radial-gradient(circle at 33% 69%, rgba(112, 105, 91, 0.24) 0 9%, transparent 10%),
    linear-gradient(145deg, #e8e2d1, #aaa493 64%, #777468);
  box-shadow:
    inset -40px -40px 58px rgba(3, 5, 7, 0.7),
    0 0 110px rgba(234, 230, 216, 0.12);
  opacity: 0.78;
}

.ending-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.055;
  mix-blend-mode: screen;
}

.ending-hero--afterlife::before {
  opacity: 0.18;
  filter: blur(4px);
}

.ending-hero--bd::before {
  opacity: 0.22;
  border: 1px solid rgba(103, 237, 244, 0.3);
  background: transparent;
  box-shadow: 0 0 0 75px rgba(103, 237, 244, 0.03), 0 0 0 150px rgba(255, 62, 148, 0.022);
}

.ending-hero--h10::before {
  opacity: 0.16;
}

.ending-kicker {
  color: var(--acid);
  font-family: var(--font-hud);
  font-size: 9px;
  letter-spacing: 0.2em;
}

.ending-title {
  max-width: 1000px;
  margin-top: 18px;
  font-family: var(--font-blunt);
  font-size: clamp(58px, 9.5vw, 135px);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -0.09em;
}

.ending-en {
  margin-top: 16px;
  color: var(--pink);
  font-family: var(--font-hud);
  font-size: clamp(9px, 1vw, 12px);
  letter-spacing: 0.45em;
}

.ending-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: clamp(30px, 7vw, 100px);
  max-width: 1250px;
  margin: 0 auto;
  padding: clamp(36px, 6vw, 80px) clamp(22px, 6vw, 80px);
}

.ending-copy {
  max-width: 700px;
}

.ending-copy > p {
  margin-bottom: 19px;
  color: var(--ink-soft);
  font-size: clamp(14px, 1.4vw, 16px);
  line-height: 1.95;
}

.ending-copy > p:first-child::first-letter {
  float: left;
  margin: 6px 9px 0 0;
  color: var(--acid);
  font-family: var(--font-blunt);
  font-size: 56px;
  line-height: 0.8;
}

.ending-quote {
  margin: 37px 0;
  padding: 18px 0 18px 20px;
  border-left: 1px solid var(--pink);
  color: var(--ink);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.65;
  letter-spacing: -0.01em;
}

.ending-epilogue {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 11px;
  line-height: 1.8;
}

.ending-side {
  align-self: start;
  padding-top: 7px;
}

.ending-side h3 {
  color: var(--dim);
  font-family: var(--font-hud);
  font-size: 8px;
  font-weight: 400;
  letter-spacing: 0.16em;
}

.ending-stats {
  margin-top: 12px;
  border-top: 1px solid var(--line);
}

.ending-stat {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.ending-stat span {
  color: var(--muted);
  font-size: 10px;
}

.ending-stat b {
  color: var(--ink-soft);
  font-family: var(--font-hud);
  font-size: 11px;
  font-weight: 400;
}

.ending-stat b.pink { color: var(--pink); }
.ending-stat b.acid { color: var(--acid); }
.ending-stat b.cyan { color: var(--cyan); }

.ending-actions {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 22px;
}

.ending-actions .btn {
  justify-content: flex-start;
  width: 100%;
  min-height: 46px;
  padding: 9px 13px;
  border: 1px solid var(--line-bright);
  background: transparent;
}

.ending-actions .btn:hover {
  border-color: var(--acid);
  color: var(--acid);
}

.ending-actions .btn--primary {
  color: #060706;
  background: var(--acid);
  border-color: var(--acid);
}

.ending-actions .btn--primary:hover {
  background: #f1ff78;
  color: #060706;
}

.ending-actions .btn-copy b {
  font-size: 12px;
}

.ending-actions .btn-copy small {
  font-size: 8px;
}

.ending-unlocked {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 20px;
}

.ending-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 6px;
  border: 1px solid var(--line);
  color: var(--dim);
  font-family: var(--font-hud);
  font-size: 7px;
  letter-spacing: 0.03em;
}

.ending-badge.is-on {
  color: var(--pink);
  border-color: rgba(255, 62, 148, 0.24);
}

.toast-stack {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: min(360px, calc(100vw - 36px));
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 9px 11px;
  border: 1px solid rgba(230, 255, 56, 0.32);
  background: rgba(8, 10, 9, 0.94);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.5;
  animation: toastIn 0.32s var(--ease);
  backdrop-filter: blur(10px);
}

.toast::before {
  content: "";
  flex: 0 0 auto;
  width: 5px;
  height: 5px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 6px var(--acid);
}

.toast.is-error {
  border-color: rgba(255, 90, 74, 0.4);
}

.toast.is-error::before {
  background: var(--red);
  box-shadow: 0 0 6px var(--red);
}

.toast.is-pink {
  border-color: rgba(255, 62, 148, 0.35);
}

.toast.is-pink::before {
  background: var(--pink);
  box-shadow: 0 0 6px var(--pink);
}

/* day transition */
.day-transition {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #050607;
  pointer-events: none;
  animation: dayOverlay 1.55s var(--ease) forwards;
}

.day-transition::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(54vw, 650px);
  aspect-ratio: 1;
  border: 1px solid rgba(242, 239, 228, 0.08);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 1px rgba(242, 239, 228, 0.025), 0 0 120px rgba(242, 239, 228, 0.04);
}

.day-transition::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: screen;
}

.day-transition-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  animation: dayContent 1.55s var(--ease) forwards;
}

.day-transition-kicker {
  color: var(--dim);
  font-family: var(--font-hud);
  font-size: 8px;
  letter-spacing: 0.26em;
}

.day-transition h2 {
  margin-top: 10px;
  color: var(--ink);
  font-family: var(--font-blunt);
  font-size: clamp(70px, 11vw, 150px);
  font-weight: 900;
  line-height: 0.8;
  letter-spacing: -0.09em;
}

.day-transition h2 span {
  color: var(--acid);
}

.day-transition p {
  margin-top: 20px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.06em;
}

.day-transition-line {
  width: min(280px, 54vw);
  height: 1px;
  margin: 21px auto 0;
  background: linear-gradient(90deg, transparent, var(--acid), transparent);
}

/* ============================================================
   ANIMATIONS
   ============================================================ */

@keyframes revealUp {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes signalPulse {
  0%, 100% { opacity: 0.5; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1); }
}

@keyframes rainDrift {
  from { background-position: 0 0; }
  to { background-position: -42px 190px; }
}

@keyframes flyerMove {
  0% { opacity: 0; transform: translate3d(-9vw, 8vh, 0) scale(0.7); }
  12% { opacity: 0.8; }
  45% { opacity: 0.45; transform: translate3d(42vw, -3vh, 0) scale(1); }
  82% { opacity: 0.7; }
  100% { opacity: 0; transform: translate3d(96vw, -11vh, 0) scale(0.7); }
}

@keyframes trainStreak {
  from { transform: translateX(-8%); }
  to { transform: translateX(8%); }
}

@keyframes sceneShift {
  0% { opacity: 0.35; transform: scale(1.012); filter: brightness(0.55); }
  100% { opacity: 1; transform: scale(1); filter: brightness(1); }
}

@keyframes copyShift {
  0% { opacity: 0; transform: translateY(7px); }
  100% { opacity: 1; transform: translateY(0); }
}

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

@keyframes readyPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(230, 255, 56, 0.08); }
  50% { box-shadow: 0 0 0 5px rgba(230, 255, 56, 0.035); }
}

@keyframes overlayIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(17px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

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

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

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

@keyframes dayOverlay {
  0% { opacity: 0; }
  11%, 80% { opacity: 1; }
  100% { opacity: 0; }
}

@keyframes dayContent {
  0% { opacity: 0; transform: translateY(12px); }
  16%, 80% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-8px); }
}

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

body.reduce-motion *,
body.reduce-motion *::before,
body.reduce-motion *::after {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  scroll-behavior: auto !important;
  transition-duration: 0.01ms !important;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1320px) {
  .game-layout {
    grid-template-columns: 232px minmax(0, 1fr) 306px;
    gap: 11px;
    padding-left: 13px;
    padding-right: 13px;
  }

  .topbar {
    grid-template-columns: 195px minmax(260px, 1fr) auto auto;
    padding: 0 13px;
  }

  .resource {
    min-width: 80px;
    padding: 0 12px;
  }

  .station-name {
    font-size: 8px;
  }

  .action-title {
    font-size: 13px;
  }
}

@media (max-width: 1120px) {
  .game-shell {
    height: auto;
    min-height: 100vh;
    overflow: visible;
    padding-bottom: 78px;
  }

  .topbar {
    position: sticky;
    top: 0;
    grid-template-columns: 195px minmax(240px, 1fr) auto;
    height: 64px;
    flex-basis: 64px;
  }

  .topbar-resources {
    display: none;
  }

  .mobile-hud {
    display: flex;
  }

  .game-layout {
    grid-template-columns: minmax(0, 1fr) 306px;
    height: auto;
    min-height: 0;
    padding: 13px 13px 20px;
  }

  .rail-profile {
    display: none;
  }

  .play-column {
    grid-template-rows: auto minmax(390px, 46vh) auto;
  }

  .rail-comms {
    min-height: 0;
    height: calc(100vh - 140px);
    height: calc(100svh - 140px);
    position: sticky;
    top: 77px;
  }

  .scene-title-block {
    bottom: 87px;
  }

  .modal--story {
    grid-template-columns: minmax(210px, 32%) minmax(0, 1fr);
  }

  .landing-content {
    grid-template-columns: minmax(0, 1fr) minmax(290px, 350px);
    gap: 30px;
  }

  .boarding-pass {
    padding: 20px 20px 15px;
  }
}

@media (min-width: 901px) {
  .mobile-dock {
    display: none;
  }
}

@media (max-width: 900px) {
  .game-shell {
    padding-bottom: 82px;
  }

  .topbar {
    grid-template-columns: minmax(0, 1fr) auto auto;
    height: 58px;
    flex-basis: 58px;
    gap: 9px;
  }

  .topbar-day {
    gap: 12px;
  }

  .topbar-day .eyebrow-mini,
  .ap-block .eyebrow-mini {
    display: none;
  }

  .ap-block {
    min-width: 77px;
  }

  .ap-pips i {
    width: 19px;
  }

  .day-readout b {
    font-size: 26px;
  }

  .topbar-brand {
    gap: 8px;
  }

  .topbar-title b {
    font-size: 13px;
  }

  .topbar-title small {
    font-size: 7px;
  }

  .topbar-actions .js-sound {
    display: none;
  }

  .mobile-hud {
    position: sticky;
    top: 58px;
    z-index: 19;
    backdrop-filter: blur(14px);
  }

  .game-layout {
    display: flex;
    flex-direction: column;
    gap: 11px;
    padding: 11px 10px 0;
  }

  .play-column {
    display: flex;
    flex-direction: column;
    gap: 10px;
    order: 1;
  }

  .route-panel {
    padding: 10px 11px 6px;
  }

  .route-header h2 {
    font-size: 14px;
  }

  .route-meta {
    gap: 8px;
  }

  .route-weather {
    display: none;
  }

  .route-map-wrap {
    margin-top: 3px;
  }

  .route-map {
    min-width: 660px;
    height: 72px;
  }

  .route-direction {
    display: none;
  }

  .scene-panel {
    min-height: 360px;
  }

  .scene-title-block {
    bottom: 82px;
    max-width: 75%;
  }

  .scene-title-block h2 {
    font-size: clamp(29px, 6vw, 38px);
  }

  .scene-desc-block {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .scene-desc-block > p {
    max-width: 100%;
    font-size: 11px;
  }

  .scene-desc-block blockquote {
    max-width: 100%;
    padding-left: 9px;
    font-size: 9px;
    text-align: left;
  }

  .scene-mark {
    bottom: 45%;
  }

  .command-heading {
    padding: 2px 2px 7px;
  }

  .command-heading h2 {
    font-size: 15px;
  }

  .action-grid {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .action-card {
    display: grid;
    grid-template-columns: 8px minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    align-items: center;
    min-height: 78px;
    padding: 9px 11px;
    gap: 0 10px;
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
  }

  .action-card:disabled {
    opacity: 0.64;
  }

  .action-card::before {
    left: 0;
    top: 0;
    width: 2px;
    height: 100%;
    opacity: 0.55;
  }

  .action-top {
    grid-column: 1;
    grid-row: 1 / span 2;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    height: 100%;
  }

  .action-tag {
    display: none;
  }

  .action-number {
    font-size: 7px;
    letter-spacing: 0.05em;
  }

  .action-title {
    grid-column: 2;
    grid-row: 1;
    margin-top: 0;
    font-size: 14px;
  }

  .action-desc {
    grid-column: 2;
    grid-row: 2;
    margin-top: 2px;
    font-size: 10px;
    line-height: 1.4;
    -webkit-line-clamp: 1;
  }

  .action-card.is-locked .action-desc {
    display: none;
  }

  .action-card.is-locked .action-reason {
    grid-column: 2 / 4;
    grid-row: 2;
    padding-top: 2px;
    font-size: 9px;
    text-align: left;
  }

  .action-placeholder {
    display: none;
  }

  .action-bottom {
    grid-column: 3;
    grid-row: 1 / span 2;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 4px;
    padding-top: 0;
    margin-top: 0;
    min-width: 54px;
  }

  .action-cost {
    font-size: 7px;
    text-align: right;
  }

  .action-go {
    width: 22px;
    height: 22px;
  }

  .action-reason {
    grid-column: 2 / 4;
    grid-row: 2;
    padding-top: 2px;
    font-size: 8px;
    text-align: right;
  }

  .rail-comms {
    position: static;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 9px;
    height: auto;
    order: 2;
  }

  .comms-card {
    grid-column: 1 / -1;
    min-height: 330px;
    max-height: 420px;
  }

  .objective-card {
    grid-column: 1;
  }

  .escape-card {
    grid-column: 2;
  }

  .rail-comms > .end-day-btn,
  .save-line {
    display: none;
  }

  .mobile-dock {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 67px;
    padding: 9px 14px calc(9px + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(242, 239, 228, 0.16);
    background: rgba(6, 8, 10, 0.94);
    backdrop-filter: blur(17px);
  }

  .dock-ap {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--dim);
    font-family: var(--font-hud);
    font-size: 8px;
    letter-spacing: 0.06em;
  }

  .ap-pips--small i {
    width: 17px;
  }

  .btn--dock {
    min-height: 43px;
    padding: 7px 13px 7px 15px;
    border: 1px solid var(--acid);
    color: #060706;
    background: var(--acid);
    font-size: 12px;
    font-weight: 600;
    clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 0 100%);
  }

  .btn--dock span {
    margin-left: 12px;
    font-family: var(--font-hud);
    font-size: 16px;
    font-weight: 400;
  }

  .toast-stack {
    bottom: 80px;
  }

  .landing-content {
    grid-template-columns: 1fr;
    padding-top: 8vh;
    padding-bottom: 40px;
  }

  .landing-main {
    max-width: 700px;
  }

  .title-lockup h1 {
    font-size: clamp(72px, 15.5vw, 136px);
  }

  .landing-lede {
    max-width: 390px;
  }

  .boarding-pass {
    width: min(380px, 100%);
    margin: 12px 0 0;
    transform: rotate(-1deg);
  }

  .landing-footer {
    flex-wrap: wrap;
    gap: 7px 16px;
  }

  .landing-footer > span:first-child {
    width: 100%;
  }

  .footer-version {
    margin-left: 0;
  }

  .modal-overlay {
    align-items: flex-start;
    padding: 10px;
    overflow-y: auto;
  }

  .modal {
    max-height: none;
    margin: auto;
  }

  .modal--story {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .story-art {
    min-height: 148px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .story-art::before {
    top: 14%;
    right: 12%;
    width: 84px;
  }

  .story-art::after {
    height: 55%;
  }

  .story-art-inner {
    padding: 15px 17px;
  }

  .story-art-bottom {
    display: none;
  }

  .story-art-top span:last-child {
    display: none;
  }

  .story-content {
    position: relative;
    min-height: 0;
    max-height: calc(100vh - 170px);
    max-height: calc(100svh - 170px);
    background:
      radial-gradient(ellipse 54% 32% at 76% 65%, rgba(255, 62, 148, 0.045), transparent 74%),
      radial-gradient(ellipse 46% 28% at 22% 82%, rgba(103, 237, 244, 0.025), transparent 74%);
    isolation: isolate;
  }

  .story-content::before {
    content: "07";
    position: absolute;
    right: -5px;
    bottom: 63px;
    z-index: -1;
    color: rgba(242, 239, 228, 0.026);
    font-family: var(--font-blunt);
    font-size: clamp(150px, 46vw, 220px);
    font-weight: 900;
    line-height: 0.8;
    letter-spacing: -0.1em;
    pointer-events: none;
  }

  .story-content::after {
    content: "LIVE MEMORY / NC-2076";
    position: absolute;
    right: 20px;
    bottom: 50px;
    z-index: -1;
    color: rgba(242, 239, 228, 0.13);
    font-family: var(--font-hud);
    font-size: 7px;
    letter-spacing: 0.17em;
    pointer-events: none;
  }

  .story-main {
    padding: 19px 20px 14px;
  }

  .story-title {
    margin-top: 12px;
  }

  .story-title h2 {
    font-size: 29px;
  }

  .story-dialogue {
    justify-content: flex-start;
    min-height: 160px;
    padding: 19px 0 15px;
  }

  .dialogue-text {
    font-size: 16px;
    line-height: 1.75;
  }

  .dialogue-line--narr .dialogue-text {
    font-size: 14px;
    line-height: 1.8;
  }

  .story-actions {
    padding: 0 20px 18px;
  }

  .choice-btn {
    padding: 10px;
  }

  .moment-art {
    height: 112px;
  }

  .moment-main {
    padding: 18px 18px 13px;
  }

  .modal-actions {
    padding: 0 18px 17px;
  }

  .content-modal-body {
    padding: 23px 20px 19px;
  }

  .final-body {
    padding: 23px 20px 19px;
  }

  .final-head {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .final-head h2 {
    font-size: 31px;
  }

  .final-checks {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 12px;
  }

  .final-checks h3 {
    grid-column: 1 / -1;
    margin-bottom: 3px;
  }

  .final-choice {
    grid-template-columns: 22px minmax(0, 1fr) auto;
    gap: 9px;
    padding: 11px;
  }

  .ending-hero {
    min-height: 60vh;
    padding: 28px 20px 42px;
  }

  .ending-hero::before {
    top: 10%;
    right: 3%;
    width: 44vw;
    opacity: 0.55;
  }

  .ending-title {
    font-size: clamp(54px, 13.5vw, 96px);
  }

  .ending-body {
    grid-template-columns: 1fr;
    gap: 29px;
    padding: 33px 20px 45px;
  }

  .ending-side {
    padding-top: 0;
  }

  .ending-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .ending-actions .btn {
    flex: 1 1 150px;
  }
}

@media (max-width: 600px) {
  .landing-nav {
    padding-top: 18px;
  }

  .landing-nav-right {
    gap: 9px;
  }

  .nav-signal {
    display: none;
  }

  .landing-content {
    padding-top: 10vh;
    padding-bottom: 32px;
  }

  .overline {
    font-size: 8px;
    letter-spacing: 0.16em;
  }

  .title-lockup {
    margin-top: 17px;
  }

  .title-lockup h1 {
    font-size: clamp(65px, 19.3vw, 98px);
    letter-spacing: -0.13em;
  }

  .title-en {
    margin-top: 15px;
    font-size: 9px;
    letter-spacing: 0.56em;
  }

  .landing-lede {
    margin-top: 29px;
    padding-left: 14px;
    font-size: 14px;
    line-height: 2;
  }

  .landing-actions {
    flex-direction: column;
    margin-top: 27px;
  }

  .landing-actions .btn {
    width: 100%;
    min-width: 0;
    min-height: 63px;
  }

  .landing-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 0;
    margin-top: 31px;
  }

  .landing-stats > div {
    padding-right: 12px;
    margin-right: 12px;
  }

  .landing-stats > div:nth-child(2) {
    border-right: 0;
  }

  .landing-stats > div:nth-child(3),
  .landing-stats > div:nth-child(4) {
    padding-top: 12px;
    border-top: 1px solid var(--line);
  }

  .boarding-pass {
    padding: 18px 17px 14px;
    transform: none;
  }

  .pass-grid {
    gap: 11px 14px;
  }

  .pass-bottom {
    gap: 10px;
  }

  .barcode {
    width: 108px;
    height: 21px;
  }

  .pass-serial {
    font-size: 7px;
  }

  .landing-footer {
    padding: 14px 18px;
    font-size: 7px;
    line-height: 1.6;
  }

  .footer-version {
    display: none;
  }

  .topbar {
    padding: 0 9px;
  }

  .topbar-title small {
    display: none;
  }

  .topbar-title b {
    font-size: 12px;
  }

  .brand-mark--small {
    width: 23px;
    height: 23px;
  }

  .topbar-day {
    gap: 8px;
  }

  .ap-block {
    min-width: 62px;
  }

  .ap-pips {
    gap: 3px;
  }

  .ap-pips i {
    width: 15px;
    height: 4px;
  }

  .topbar-actions {
    gap: 4px;
  }

  .topbar-actions .js-sound {
    display: none;
  }

  .square-btn {
    width: 34px;
    height: 34px;
  }

  .modal-close {
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    font-size: 16px;
  }

  .mobile-hud {
    padding: 0 7px;
  }

  .mobile-stat {
    gap: 3px;
    padding: 0 5px;
  }

  .mobile-stat span {
    font-size: 8px;
  }

  .mobile-stat b {
    font-size: 11px;
  }

  .mobile-comms-btn {
    padding: 0 7px;
    font-size: 9px;
  }

  .game-layout {
    padding: 9px 8px 0;
  }

  .route-header h2 {
    font-size: 13px;
  }

  .route-day {
    font-size: 6px;
  }

  .route-map {
    min-width: 620px;
    height: 68px;
  }

  .scene-panel {
    min-height: 350px;
  }

  .scene-hud {
    top: 11px;
    left: 12px;
    right: 12px;
    font-size: 7px;
  }

  .scene-title-block {
    left: 15px;
    bottom: 101px;
    max-width: 82%;
  }

  .scene-title-block h2 {
    font-size: 28px;
  }

  .scene-title-block > p {
    font-size: 7px;
  }

  .scene-desc-block {
    left: 15px;
    right: 15px;
    bottom: 13px;
  }

  .scene-desc-block > p {
    font-size: 11px;
  }

  .scene-desc-block blockquote {
    font-size: 10px;
  }

  .scene-mark {
    right: 14px;
    bottom: 50%;
  }

  .scene-mark span {
    font-size: 48px;
  }

  .scene-moon {
    width: 108px;
    top: 12%;
  }

  .command-heading h2 {
    font-size: 14px;
  }

  .action-card {
    min-height: 73px;
  }

  .action-title {
    font-size: 13px;
  }

  .rail-comms {
    display: flex;
    flex-direction: column;
  }

  .comms-card {
    min-height: 340px;
    max-height: 380px;
  }

  .objective-card {
    order: 2;
  }

  .escape-card {
    order: 3;
  }

  .objective-card h3 {
    font-size: 13px;
  }

  .mobile-dock {
    min-height: 63px;
    padding-left: 12px;
    padding-right: 12px;
  }

  .dock-ap {
    gap: 7px;
    font-size: 7px;
  }

  .ap-pips--small i {
    width: 14px;
  }

  .modal-overlay {
    padding: 0;
    background: rgba(3, 4, 5, 0.9);
  }

  .modal {
    width: 100%;
    min-height: 100vh;
    min-height: 100svh;
    max-height: none;
    clip-path: none;
    border: 0;
  }

  .modal--small,
  .modal--medium,
  .modal--moment {
    width: 100%;
    min-height: 0;
    margin: auto;
  }

  .modal--story {
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
  }

  .story-art {
    min-height: 178px;
  }

  .story-content {
    flex: 1;
    max-height: none;
  }

  .story-content::before {
    bottom: 67px;
    font-size: 168px;
  }

  .story-content::after {
    bottom: 51px;
  }

  .story-main {
    padding: 18px 17px 13px;
  }

  .story-meta {
    font-size: 7px;
  }

  .story-title h2 {
    font-size: 27px;
  }

  .story-dialogue {
    flex: 1;
    min-height: 0;
    padding: 22px 0 17px;
  }

  .dialogue-text {
    font-size: 16px;
    line-height: 1.78;
  }

  .dialogue-line--narr .dialogue-text {
    font-size: 15px;
  }

  .choice-copy b {
    font-size: 12px;
  }

  .choice-copy small {
    font-size: 9px;
  }

  .story-actions {
    padding: 0 17px 17px;
  }

  .choices {
    gap: 6px;
  }

  .choice-copy b {
    font-size: 11px;
  }

  .choice-copy small {
    font-size: 8px;
  }

  .story-continue {
    min-height: 46px;
  }

  .moment-art {
    height: 101px;
  }

  .moment-main {
    max-height: calc(100vh - 180px);
    padding: 17px 16px 12px;
  }

  .moment-title h2 {
    font-size: 22px;
  }

  .moment-line {
    font-size: 12px;
  }

  .memory-unlock h4 {
    font-size: 15px;
  }

  .memory-unlock p {
    font-size: 10px;
  }

  .modal-actions {
    padding: 0 16px 15px;
  }

  .modal-btn {
    flex: 1;
  }

  .content-modal-body,
  .final-body,
  .confirm-body {
    padding: 21px 16px 18px;
  }

  .content-modal-body h2 {
    font-size: 26px;
  }

  .final-head h2 {
    font-size: 27px;
  }

  .final-checks {
    grid-template-columns: 1fr;
  }

  .final-check {
    font-size: 9px;
  }

  .final-choice-copy b {
    font-size: 12px;
  }

  .final-choice-copy small {
    font-size: 8px;
  }

  .final-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .final-footer .modal-btn {
    width: 100%;
  }

  .ending-hero {
    min-height: 56vh;
    padding: 24px 17px 35px;
  }

  .ending-kicker {
    font-size: 8px;
  }

  .ending-title {
    font-size: clamp(52px, 16.5vw, 78px);
  }

  .ending-en {
    font-size: 8px;
    letter-spacing: 0.31em;
  }

  .ending-body {
    padding: 29px 17px 35px;
  }

  .ending-copy > p {
    font-size: 14px;
    line-height: 1.9;
  }

  .ending-quote {
    font-size: 18px;
  }

  .ending-actions {
    flex-direction: column;
  }

  .ending-actions .btn {
    width: 100%;
  }

  .toast-stack {
    right: 12px;
    bottom: 77px;
    max-width: calc(100vw - 24px);
  }

  .day-transition h2 {
    font-size: 96px;
  }

  .day-transition p {
    padding: 0 20px;
  }
}

@media (max-width: 380px) {
  .title-lockup h1 {
    font-size: 62px;
  }

  .landing-lede {
    font-size: 13px;
  }

  .topbar-title b {
    font-size: 11px;
  }

  .mobile-stat span {
    font-size: 7px;
  }

  .mobile-stat b {
    font-size: 10px;
  }

  .mobile-comms-btn {
    font-size: 8px;
  }

  .action-title {
    font-size: 12px;
  }

  .scene-panel {
    min-height: 328px;
  }

  .ending-title {
    font-size: 48px;
  }
}

@media (max-height: 760px) and (min-width: 901px) {
  .game-layout {
    grid-template-rows: minmax(0, 1fr);
    padding-top: 10px;
    padding-bottom: 12px;
  }

  .play-column {
    grid-template-rows: auto minmax(260px, 1fr) auto;
    gap: 9px;
  }

  .route-panel {
    padding-top: 8px;
    padding-bottom: 5px;
  }

  .route-map {
    height: 62px;
  }

  .route-header h2 {
    font-size: 13px;
  }

  .scene-title-block {
    bottom: 66px;
  }

  .scene-desc-block {
    bottom: 10px;
  }

  .action-card {
    min-height: 96px;
    padding-top: 8px;
  }

  .action-desc {
    -webkit-line-clamp: 1;
  }

  .comms-card {
    min-height: 180px;
  }

  .memory-intro {
    display: none;
  }

  .profile-tags {
    margin-top: 7px;
    padding-top: 6px;
  }

  .memory-card {
    padding-top: 9px;
    padding-bottom: 8px;
  }

  .relationship-desc {
    min-height: 14px;
  }
}
