@font-face {
  font-family: "Newsreader";
  src: url("fonts/Newsreader.ttf") format("truetype");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("fonts/Newsreader-Italic.ttf") format("truetype");
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}

:root {
  --bg: #07090d;
  --ink: #f5efe8;
  --ink-2: rgba(245, 239, 232, 0.78);
  --ink-3: rgba(245, 239, 232, 0.56);
  --line: rgba(255, 255, 255, 0.15);
  --panel: rgba(13, 16, 24, 0.66);
  --panel-solid: #11141c;
  --blush: #ff7d8f;
  --blush-ink: #2a0b12;
  --amber: #ffb347;
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow: hidden;
  overscroll-behavior: none;
}
button,
textarea {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
[hidden] {
  display: none !important;
}

/* ------------------------------------------------------------ shell */
.app {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: var(--vvh, 100dvh);
  transform: translateY(var(--vvtop, 0px));
  overflow: hidden;
  background: radial-gradient(120% 80% at 70% 30%, #16202c 0%, var(--bg) 70%);
}
.stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.shot {
  position: absolute;
  inset: 0;
}
.cam {
  position: absolute;
  left: 0;
  top: 0;
  width: 1600px;
  height: 1600px;
  transform-origin: 0 0;
  will-change: transform;
}
.cam-drift {
  position: relative;
  width: 1600px;
  height: 1600px;
  transform-origin: 50% 45%;
  animation: camdrift 16s ease-in-out infinite alternate;
}
@keyframes camdrift {
  to {
    transform: scale(1.025) translateX(-6px);
  }
}

.scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(4, 6, 10, 0.7) 0, rgba(4, 6, 10, 0) 110px),
    linear-gradient(to top, rgba(4, 6, 10, 0.94) 0%, rgba(4, 6, 10, 0.8) 26%, rgba(4, 6, 10, 0.25) 48%, rgba(4, 6, 10, 0) 60%);
  transition: opacity 0.5s;
}
.grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(130% 90% at 50% 40%, transparent 55%, rgba(0, 0, 0, 0.55) 100%),
    url("art/grain.png");
  background-size: auto, 160px 160px;
  opacity: 0.9;
  mix-blend-mode: normal;
}
.grain::after {
  content: "";
}

/* ------------------------------------------------------------ in-picture motion
   Every continuous motion is a transform on a whole layer, so the GPU just slides
   pre-painted pictures around; nothing inside an SVG animates per frame. */
.cam {
  overflow: hidden;
}
.shot-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.layer {
  position: absolute;
  top: 0;
  height: 1600px;
  pointer-events: none;
}
.layer svg {
  display: block;
  overflow: visible;
}
.moving .layer-city {
  animation: drift 46s linear infinite;
  will-change: transform;
}
@keyframes drift {
  to {
    transform: translateX(-1800px);
  }
}
.layer-rain {
  animation: rain 1.5s linear infinite;
  will-change: transform;
}
@keyframes rain {
  to {
    transform: translateY(800px);
  }
}
.leaving .layer-platform {
  animation: pullout 3.4s cubic-bezier(0.55, 0, 0.9, 0.6) 0.5s forwards;
  will-change: transform;
}
@keyframes pullout {
  to {
    transform: translateX(-1800px);
  }
}
.led-alt-1,
.led-b .led-alt-0 {
  opacity: 0;
}
.led-b .led-alt-1 {
  opacity: 1;
}
.lid {
  transform-box: fill-box;
  transform-origin: 50% 0;
  transform: scaleY(0);
}
.blink .lid {
  transform: scaleY(1);
}
.layer-cast {
  animation: breathe 5.2s ease-in-out infinite;
}
@keyframes breathe {
  50% {
    transform: translateY(-4px);
  }
}
.reflection {
  mix-blend-mode: screen;
}
.departing {
  animation: depart 18s cubic-bezier(0.6, 0, 0.85, 0.5) forwards;
  will-change: transform;
}
@keyframes depart {
  to {
    transform: translateX(-1500px);
  }
}
.paused *,
.paused *::before,
.paused *::after {
  animation-play-state: paused !important;
}
@media (prefers-reduced-motion: reduce) {
  .cam-drift,
  .layer-cast,
  .layer-rain {
    animation: none;
  }
  .moving .layer-city {
    animation-duration: 140s;
  }
}

/* ------------------------------------------------------------ top bar */
.bar {
  position: absolute;
  z-index: 30;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: calc(var(--safe-t) + 10px) 14px 0 16px;
}
.brand {
  text-decoration: none;
  border: 0;
  background: none;
  padding: 6px 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.brand span {
  color: var(--blush);
  font-style: normal;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.06em;
  margin-left: 1px;
}
.led-chip {
  position: absolute;
  left: 50%;
  top: calc(var(--safe-t) + 68px);
  transform: translateX(-50%);
  max-width: calc(100% - 32px);
  padding: 6px 10px 5px;
  border-radius: 7px;
  background: #0d0a06;
  border: 1px solid rgba(255, 179, 71, 0.18);
  font-family: "Courier New", Courier, monospace;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--amber);
  text-shadow: 0 0 6px rgba(255, 170, 60, 0.7);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0;
  transition: opacity 0.4s;
}
.led-chip::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, transparent 0.7px, rgba(13, 10, 6, 0.85) 1.1px) 0 0 / 2.5px 2.5px;
  pointer-events: none;
}
.led-chip.blink span {
  animation: chipblink 1.6s steps(1) infinite;
}
@keyframes chipblink {
  50% {
    opacity: 0.25;
  }
}
[data-view="play"] .led-chip:not(:empty) {
  opacity: 1;
}
.bar-tools {
  display: flex;
  gap: 6px;
  margin-left: auto;
}
.icon-btn {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(10, 12, 18, 0.42);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  padding: 0;
}
.icon-btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-btn:focus-visible,
.choice:focus-visible,
.cta:focus-visible,
.ghost:focus-visible,
.link:focus-visible,
.brand:focus-visible {
  outline: 2px solid var(--blush);
  outline-offset: 3px;
}
#btn-path svg circle {
  fill: currentColor;
  stroke: none;
}
.i-play,
.i-off {
  display: none;
}
#btn-pause[aria-pressed="true"] .i-play,
#btn-sound[aria-pressed="true"] .i-off {
  display: block;
}
#btn-pause[aria-pressed="true"] .i-pause,
#btn-sound[aria-pressed="true"] .i-on {
  display: none;
}
#btn-pause[aria-pressed="true"] {
  background: var(--ink);
  color: #0b0c10;
}
.play-only {
  display: none !important;
}
[data-view="play"] .play-only {
  display: grid !important;
}
.acts {
  position: absolute;
  left: 16px;
  right: 16px;
  top: calc(var(--safe-t) + 58px);
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}
.acts i {
  height: 2px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.16);
  transition: background 0.5s;
}
.acts i.on {
  background: rgba(255, 255, 255, 0.7);
}

/* ------------------------------------------------------------ home */
.home {
  position: absolute;
  z-index: 10;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0 20px calc(var(--safe-b) + 20px);
  display: none;
}
[data-view="home"] .home {
  display: block;
}
[data-view="home"] .scrim {
  background:
    linear-gradient(to bottom, rgba(4, 6, 10, 0.6) 0, rgba(4, 6, 10, 0) 120px),
    linear-gradient(to top, rgba(4, 6, 10, 0.97) 0%, rgba(4, 6, 10, 0.86) 34%, rgba(4, 6, 10, 0.3) 58%, rgba(4, 6, 10, 0) 70%);
}
.home-copy {
  max-width: 560px;
  animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both 0.2s;
}
.kicker {
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.film-title {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(46px, 13vw, 92px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  font-variation-settings: "opsz" 72;
}
.logline {
  margin: 14px 0 8px;
  font-size: 17px;
  line-height: 1.45;
  color: var(--ink);
  max-width: 34em;
  text-wrap: pretty;
}
.cast {
  margin: 0 0 20px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink-3);
}
.home-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 56px;
  padding: 0 26px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: #0b0c10;
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.005em;
  transition: transform 0.15s, background 0.2s;
}
.cta small {
  font-weight: 500;
  opacity: 0.6;
  font-size: 14px;
}
.cta svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cta:active {
  transform: scale(0.98);
}
.cta--small {
  height: 48px;
  font-size: 16px;
}
.ghost {
  height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  font-size: 15px;
  color: var(--ink-2);
}
.ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}
.link {
  border: 0;
  background: none;
  padding: 0;
  color: var(--ink-2);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255, 255, 255, 0.3);
  font-size: inherit;
}
.found {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 13px;
  color: var(--ink-3);
}
.found i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
}
.found i.on {
  background: var(--blush);
  border-color: var(--blush);
}
.fineprint {
  margin: 16px 0 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-3);
}

/* ------------------------------------------------------------ play */
.play {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: none;
}
[data-view="play"] .play {
  display: block;
}
.skip-zone {
  position: absolute;
  inset: 0;
  border: 0;
  background: transparent;
  cursor: default;
}
.dock {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0 14px calc(var(--safe-b) + 12px);
  max-width: 640px;
  margin: 0 auto;
  pointer-events: none;
}
.dock > * {
  pointer-events: auto;
}
.caption {
  padding: 0 4px 12px;
  pointer-events: none;
}
.caption p {
  margin: 0;
}
.you-said {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  align-items: baseline;
  margin-bottom: 10px !important;
  font-size: 15px;
  color: var(--ink-2);
}
.you-said b {
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 600;
}
.you-said span {
  max-width: 82%;
  padding: 7px 12px;
  border-radius: 14px 14px 4px 14px;
  background: rgba(255, 255, 255, 0.1);
}
.narration {
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-2);
  text-wrap: pretty;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.6);
}
.line {
  margin-top: 12px !important;
  font-family: var(--serif);
  font-size: 25px;
  line-height: 1.25;
  font-weight: 420;
  font-variation-settings: "opsz" 24;
  text-wrap: balance;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.7);
}
.speaker {
  display: block;
  margin-bottom: 4px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blush);
}
.after {
  margin-top: 12px !important;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-2);
  text-wrap: pretty;
}
.beat {
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.6s ease,
    transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.beat.in {
  opacity: 1;
  transform: none;
}

.respond {
  animation: rise 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}
.choices {
  display: grid;
  gap: 8px;
}
.choice {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  padding: 11px 14px;
  text-align: left;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--panel);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  backdrop-filter: blur(16px) saturate(1.2);
  font-size: 16.5px;
  line-height: 1.3;
  font-weight: 520;
  transition:
    transform 0.15s,
    background 0.2s,
    border-color 0.2s,
    opacity 0.35s;
}
.choice:hover {
  background: rgba(24, 28, 40, 0.8);
  border-color: rgba(255, 255, 255, 0.28);
}
.choice:active {
  transform: scale(0.985);
}
.choice .tag {
  flex: none;
  width: 38px;
  padding: 4px 0;
  border-radius: 6px;
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.choice[data-kind="say"] .tag {
  background: rgba(255, 125, 143, 0.16);
  color: var(--blush);
}
.choice[data-kind="do"] .tag {
  background: rgba(255, 179, 71, 0.14);
  color: var(--amber);
}
.choice .txt {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.choice[data-kind="say"] .main {
  font-family: var(--serif);
  font-size: 18.5px;
  font-weight: 450;
}
.choice .note {
  font-size: 13px;
  font-weight: 400;
  color: var(--ink-3);
}
.choice .key {
  margin-left: auto;
  flex: none;
  font-size: 12px;
  color: var(--ink-3);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 6px;
  display: none;
}
.choice .seen {
  position: absolute;
  top: -8px;
  right: 12px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  background: #2a2f3c;
  color: var(--ink-2);
  border: 1px solid var(--line);
}
.choice.picked {
  border-color: var(--ink);
  background: rgba(245, 239, 232, 0.14);
}
.respond.locked .choice:not(.picked),
.respond.locked .composer {
  opacity: 0.25;
  pointer-events: none;
}

.composer {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin-top: 8px;
  padding: 5px 5px 5px 16px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: var(--panel);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  backdrop-filter: blur(16px) saturate(1.2);
  transition: border-color 0.2s;
}
.composer:focus-within {
  border-color: rgba(255, 125, 143, 0.6);
}
.composer textarea {
  flex: 1;
  min-width: 0;
  min-height: 42px;
  max-height: 104px;
  padding: 10px 0;
  border: 0;
  outline: 0;
  resize: none;
  background: transparent;
  font-size: 16px;
  line-height: 1.4;
  scrollbar-width: none;
}
.composer textarea::-webkit-scrollbar {
  display: none;
}
.composer textarea::placeholder {
  color: var(--ink-3);
}
.send {
  flex: none;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--blush);
  color: var(--blush-ink);
  transition:
    opacity 0.2s,
    transform 0.15s;
}
.send svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.send:disabled {
  opacity: 0.3;
}
.send:not(:disabled):active {
  transform: scale(0.92);
}
.keys {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--ink-3);
  text-align: center;
}
kbd {
  font: inherit;
  font-size: 11px;
  padding: 1px 5px;
  border: 1px solid var(--line);
  border-radius: 4px;
  margin: 0 1px;
}
.desktop-only {
  display: none;
}

/* composing: keep her line in view, hide everything else */
.composing .narration,
.composing .after,
.composing .choices,
.composing .keys,
.composing .you-said {
  display: none;
}
.composing .line {
  font-size: 21px;
}
.composing .scrim {
  background: linear-gradient(to top, rgba(4, 6, 10, 0.96) 0%, rgba(4, 6, 10, 0.75) 40%, rgba(4, 6, 10, 0.1) 75%);
}
.composing .acts {
  display: none !important;
}

/* ending card */
.ending {
  margin-top: 4px;
  padding: 18px 18px 16px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(11, 13, 19, 0.78);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  animation: rise 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.ending-kicker {
  margin: 0;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
}
.ending-title {
  margin: 4px 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 32px;
  line-height: 1.05;
}
.ending-words {
  margin: 8px 0 2px;
  height: 40px;
}
.ending-words svg {
  height: 100%;
  width: auto;
  max-width: 100%;
  overflow: visible;
}
.ending-words path {
  fill: none;
  stroke: #dfe9f5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ending-how {
  margin: 4px 0 14px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink-2);
}
.ending-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.ending-actions .cta {
  grid-column: 1 / -1;
}
.ended .caption {
  display: none;
}
.ending-actions .ghost {
  height: 42px;
}

/* waiting + failure */
.loading {
  position: absolute;
  top: calc(var(--safe-t) + 104px);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 12px;
  border-radius: 999px;
  background: rgba(11, 13, 19, 0.75);
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  font-size: 13px;
  color: var(--ink-2);
  white-space: nowrap;
  animation: rise 0.3s both;
}
.loading i {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-top-color: var(--blush);
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.fail {
  position: absolute;
  z-index: 5;
  left: 16px;
  right: 16px;
  top: 22%;
  max-width: 420px;
  margin: 0 auto;
  padding: 20px;
  border-radius: 20px;
  background: rgba(11, 13, 19, 0.88);
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  text-align: center;
}
.fail-title {
  margin: 0;
  font-family: var(--serif);
  font-size: 23px;
}
.fail-sub {
  margin: 6px 0 16px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink-2);
}
.fail-actions {
  display: grid;
  gap: 8px;
}
.textshot {
  position: absolute;
  left: 16px;
  right: 16px;
  top: calc(var(--safe-t) + 110px);
  max-width: 560px;
  margin: 0 auto;
  padding: 16px 18px;
  border-left: 2px solid var(--amber);
  background: rgba(255, 179, 71, 0.06);
  border-radius: 4px 14px 14px 4px;
}
.textshot-label {
  margin: 0 0 6px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
}
.textshot-body {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  line-height: 1.45;
  color: var(--ink);
}
.textshot .link {
  font-size: 13px;
}
.textmode .stage {
  visibility: hidden;
}

/* ------------------------------------------------------------ sheets */
.sheet {
  width: 100%;
  max-width: 560px;
  max-height: min(88dvh, 760px);
  margin: auto auto 0;
  padding: 0;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 24px 24px 0 0;
  background: var(--panel-solid);
  color: var(--ink);
  overflow: auto;
}
.sheet[open] {
  animation: sheetin 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}
@keyframes sheetin {
  from {
    transform: translateY(40px);
    opacity: 0;
  }
}
.sheet::backdrop {
  background: rgba(3, 4, 7, 0.6);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.sheet-inner {
  padding: 18px 18px calc(var(--safe-b) + 22px);
}
.sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.sheet h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 450;
  font-size: 26px;
}
.sheet-h3 {
  margin: 24px 0 2px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 650;
}
.sheet-sub {
  margin: 6px 0 14px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink-3);
}
.trail {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}
.trail li {
  position: relative;
  padding: 0 0 0 26px;
}
.trail li::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(255, 255, 255, 0.12);
}
.trail li::after {
  content: "";
  position: absolute;
  left: 2px;
  top: 18px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--panel-solid);
  border: 2px solid rgba(255, 255, 255, 0.5);
}
.trail li.now::after {
  background: var(--blush);
  border-color: var(--blush);
}
.trail button {
  width: 100%;
  display: grid;
  gap: 2px;
  text-align: left;
  padding: 12px 12px;
  margin: 2px 0;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
}
.trail button:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--line);
}
.trail .t-scene {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.trail .t-choice {
  font-size: 15.5px;
  color: var(--ink);
}
.trail .t-act {
  font-size: 12.5px;
  color: var(--blush);
}
.endings {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.endings li {
  min-height: 92px;
  padding: 12px;
  border-radius: 14px;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  font-size: 13px;
  line-height: 1.4;
  color: var(--ink-3);
}
.endings li.on {
  border-style: solid;
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink-2);
}
.endings li b {
  display: block;
  margin-bottom: 4px;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 450;
  font-size: 19px;
  color: var(--ink);
}
.endings li.off b {
  color: var(--ink-3);
}
.endings .e-sent {
  font-family: var(--serif);
  font-size: 15px;
  color: #dfe9f5;
}
.sheet-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 22px;
  font-size: 13px;
}
.facts {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-2);
}
.facts b {
  color: var(--ink);
}

.toast {
  position: absolute;
  z-index: 40;
  top: calc(var(--safe-t) + 104px);
  left: 50%;
  transform: translateX(-50%);
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: #0b0c10;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  animation: rise 0.3s both;
}

/* ------------------------------------------------------------ small phones */
@media (max-height: 700px) {
  .line {
    font-size: 22px;
  }
  .narration {
    font-size: 14px;
  }
  .choice {
    min-height: 50px;
    padding: 9px 12px;
  }
  .caption {
    padding-bottom: 8px;
  }
}

/* ------------------------------------------------------------ desktop */
@media (min-width: 900px) and (min-height: 560px) {
  .bar {
    padding: 18px 22px 0 26px;
  }
  .brand {
    font-size: 26px;
  }
  .led-chip {
    top: 22px;
    font-size: 13px;
  }
  .acts {
    left: 50%;
    right: auto;
    width: 240px;
    transform: translateX(-50%);
    top: 70px;
  }
  .home {
    padding: 0 56px 52px;
  }
  .home-actions {
    flex-direction: row;
    align-items: center;
  }
  .cta {
    padding: 0 30px;
  }
  .dock {
    max-width: 760px;
    padding-bottom: 26px;
  }
  .narration {
    font-size: 16px;
    max-width: 44em;
  }
  .line {
    font-size: 30px;
  }
  .choices {
    grid-template-columns: 1fr 1fr;
  }
  .choice .key {
    display: inline-block;
  }
  .desktop-only {
    display: block;
  }
  .sheet {
    margin: auto;
    border-radius: 24px;
    border-bottom: 1px solid var(--line);
  }
  .ending {
    display: grid;
    grid-template-columns: 1fr auto;
    column-gap: 24px;
    align-items: end;
  }
  .ending > *:not(.ending-actions) {
    grid-column: 1;
  }
  .ended .caption {
    display: block;
  }
  .ending-actions {
    grid-template-columns: 1fr;
    grid-column: 2;
    grid-row: 1 / span 5;
    align-self: end;
    min-width: 230px;
  }
  .scrim {
    background:
      linear-gradient(to bottom, rgba(4, 6, 10, 0.6) 0, rgba(4, 6, 10, 0) 120px),
      linear-gradient(to top, rgba(4, 6, 10, 0.92) 0%, rgba(4, 6, 10, 0.65) 24%, rgba(4, 6, 10, 0) 48%);
  }
}

/* ------------------------------------------------------------ photo shots */
.shot--photo .backdrop {
  position: absolute;
  inset: -60px;
  background-size: cover;
  background-position: center 20%;
  filter: blur(42px) brightness(0.42) saturate(1.2);
  transform: scale(1.25);
}
.layer-photo img.photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.layer-lamp {
  position: absolute;
  top: 0;
  background: radial-gradient(40% 30% at 92% 46%, rgba(255, 190, 120, 0.5), transparent 70%);
  mix-blend-mode: screen;
}
.layer-grade,
.layer-glass,
.layer-photo {
  left: 0;
}

/* phone-style notice replaces the tram's LED sign */
.led-chip.notice {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px 7px 8px;
  border-radius: 999px;
  border: 0;
  background: rgba(20, 20, 26, 0.72);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  font-family: var(--sans);
  font-weight: 650;
  font-size: 12.5px;
  letter-spacing: 0;
  color: var(--ink);
  text-shadow: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}
.led-chip.notice::after {
  display: none;
}
.led-chip.notice i {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: #f5c542 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 15l1.5-5h11l1.5 5v3H5z' fill='%23222'/%3E%3Ccircle cx='8' cy='18' r='1.6' fill='%23f5c542'/%3E%3Ccircle cx='16' cy='18' r='1.6' fill='%23f5c542'/%3E%3C/svg%3E") center/16px no-repeat;
  flex: none;
}
.led-chip.notice.alert {
  animation: noticein 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.led-chip.notice.alert i {
  background-color: #34c759;
}
.led-chip.notice.muted {
  color: var(--ink-2);
}
.led-chip.notice.muted i {
  background-color: #8e8e93;
}
@keyframes noticein {
  from {
    transform: translate(-50%, -14px);
    opacity: 0;
  }
}
.more-link {
  grid-column: 1 / -1;
  justify-self: center;
  margin-top: 2px;
  font-size: 13.5px;
}
