@font-face {
  font-family: "Source Han Serif";
  src: url("assets/fonts/story-serif.otf") format("opentype");
  font-display: swap;
}

@font-face {
  font-family: "Source Han Sans";
  src: url("assets/fonts/ui-sans.otf") format("opentype");
  font-display: swap;
}

:root {
  --ink: #f3efe7;
  --ink-muted: #b8b4ad;
  --paper: #111113;
  --paper-soft: rgba(18, 18, 20, 0.82);
  --line: rgba(243, 239, 231, 0.2);
  --line-strong: rgba(243, 239, 231, 0.5);
  --accent: #a84d46;
  --accent-light: #d9948d;
  --focus: #f0c9a5;
  --safe-top: max(20px, env(safe-area-inset-top));
  --safe-bottom: max(18px, env(safe-area-inset-bottom));
  color-scheme: dark;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

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

body {
  min-height: 100svh;
  color: var(--ink);
  font-family: "Source Han Sans", system-ui, sans-serif;
  overflow-x: hidden;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
  font: inherit;
  touch-action: manipulation;
}

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

.game {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  overflow-x: hidden;
  background: #111113;
}

.scene,
.scene::before,
.scene::after,
.grain {
  position: absolute;
  inset: 0;
}

.scene {
  z-index: -3;
  background-position: center;
  background-size: cover;
  transform: scale(1.025);
  transition: opacity 700ms ease, transform 9s ease;
}

.scene::before {
  content: "";
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(9, 10, 12, 0.92) 0%, rgba(9, 10, 12, 0.72) 40%, rgba(9, 10, 12, 0.16) 75%),
    linear-gradient(0deg, rgba(9, 10, 12, 0.88) 0%, transparent 46%, rgba(9, 10, 12, 0.42) 100%);
}

.scene::after {
  content: "";
  z-index: 2;
  box-shadow: inset 0 0 180px rgba(0, 0, 0, 0.65);
}

.character-stage {
  position: absolute;
  z-index: 0;
  right: clamp(-70px, 1vw, 12px);
  bottom: 0;
  width: min(46vw, 660px);
  height: min(88svh, 920px);
  margin: 0;
  pointer-events: none;
  transform-origin: bottom right;
}

.character-sprite {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: right bottom;
  filter: saturate(0.88) contrast(1.03) drop-shadow(-24px 12px 44px rgba(0, 0, 0, 0.52));
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 18%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 18%, #000 100%);
}

.character-sprite.blend-screen {
  mix-blend-mode: screen;
}

.character-stage figcaption {
  position: absolute;
  right: 20px;
  bottom: 18px;
  padding: 6px 9px;
  border-left: 1px solid var(--accent-light);
  background: rgba(8, 8, 10, 0.6);
  color: rgba(243, 239, 231, 0.64);
  font-size: 8px;
  letter-spacing: 0.12em;
  backdrop-filter: blur(8px);
}

.claude-figure {
  position: absolute;
  right: 9%;
  bottom: 22%;
  display: grid;
  width: min(420px, 88%);
  min-height: 260px;
  place-content: center;
  gap: 22px;
  border: 1px solid rgba(217, 148, 141, 0.34);
  background:
    linear-gradient(rgba(13, 13, 15, 0.78), rgba(13, 13, 15, 0.95)),
    repeating-linear-gradient(0deg, transparent 0 7px, rgba(217, 148, 141, 0.055) 7px 8px);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.52);
  color: var(--ink);
  text-align: center;
}

.claude-figure > span {
  font-family: "Source Han Serif", serif;
  font-size: clamp(34px, 5vw, 62px);
  letter-spacing: 0.2em;
}

.claude-figure small {
  color: var(--accent-light);
  font-size: 8px;
  letter-spacing: 0.22em;
}

.claude-wave {
  display: flex;
  height: 34px;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.claude-wave i {
  width: 2px;
  height: 12px;
  background: var(--accent-light);
  animation: claude-pulse 1.8s ease-in-out infinite alternate;
}

.claude-wave i:nth-child(2),
.claude-wave i:nth-child(4) {
  height: 28px;
  animation-delay: -0.7s;
}

.claude-wave i:nth-child(3) {
  height: 18px;
  animation-delay: -1.1s;
}

@keyframes claude-pulse {
  to { transform: scaleY(0.35); opacity: 0.42; }
}

.game[data-scene="cover"] .scene {
  background-image: url("assets/scenes/two-coasts.webp");
}

.game[data-scene="dorm"] .scene {
  background-image: url("assets/scenes/dorm-2007.webp");
}

.game[data-scene="gallery"] .scene {
  background-image: url("assets/scenes/banana-gallery.webp");
}

.game[data-scene="cinema"] .scene {
  background-image: url("assets/scenes/private-cinema-v2.webp");
}

.game[data-scene="tenerife"] .scene {
  background-image: url("assets/scenes/tenerife-tape-v2.webp");
}

.game[data-scene="maldives"] .scene {
  background-image: url("assets/scenes/maldives-dawn.webp");
}

.game[data-scene="objects"] .scene {
  background-image: url("assets/scenes/aftermath-objects.webp");
}

.game[data-scene="fireworks"] .scene {
  background-image: url("assets/scenes/hong-kong-after-fireworks.webp");
}

.grain {
  z-index: -1;
  pointer-events: none;
  opacity: 0.11;
  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='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.topbar {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: var(--safe-top) clamp(20px, 4vw, 64px) 20px;
}

.wordmark {
  display: grid;
  gap: 2px;
  min-height: 48px;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.wordmark span {
  font-family: "Source Han Serif", serif;
  font-size: 15px;
  letter-spacing: 0.18em;
}

.wordmark small,
.chapter-counter,
.location,
.time,
.eyebrow,
.cover-meta,
.keyboard-hint,
.footer-note {
  font-size: 10px;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.wordmark small,
.chapter-counter,
.time,
.keyboard-hint,
.footer-note {
  color: var(--ink-muted);
}

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

.chapter-counter {
  min-width: 74px;
  padding-top: 14px;
  text-align: right;
}

.icon-button {
  display: inline-grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(10, 10, 12, 0.34);
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease;
}

.icon-button:hover {
  border-color: var(--line-strong);
  background: rgba(243, 239, 231, 0.08);
}

.icon-button svg {
  width: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.4;
}

.progress {
  position: absolute;
  z-index: 5;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
}

.progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--accent-light);
  transition: width 500ms ease;
}

.cover-panel {
  display: flex;
  width: min(920px, 100%);
  min-height: calc(100svh - 150px);
  flex-direction: column;
  justify-content: center;
  padding: 32px clamp(24px, 7vw, 110px) 90px;
}

.eyebrow {
  margin: 0 0 22px;
  color: var(--accent-light);
  line-height: 1.8;
}

.cover-panel h1 {
  margin: 0;
  font-family: "Source Han Serif", serif;
  font-size: clamp(64px, 10vw, 134px);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 0.98;
  text-wrap: balance;
}

.cover-deck {
  margin: 32px 0 36px;
  color: #dad5cd;
  font-family: "Source Han Serif", serif;
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.9;
}

.cover-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.primary-button,
.secondary-button,
.choice-button {
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: 2px;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.primary-button {
  display: flex;
  min-width: 216px;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 15px 18px;
  border-color: var(--ink);
  background: var(--ink);
  color: #171719;
}

.primary-button:hover {
  border-color: #fff;
  background: #fff;
}

.primary-button span:last-child {
  font-size: 10px;
  letter-spacing: 0.12em;
}

.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 18px;
  background: transparent;
  color: var(--ink);
  text-decoration: none;
}

.secondary-button:hover {
  border-color: var(--line-strong);
  background: rgba(243, 239, 231, 0.08);
}

.cover-meta {
  display: flex;
  gap: 24px;
  margin-top: 36px;
  color: var(--ink-muted);
}

.archive-cast {
  display: flex;
  gap: 12px;
  margin-top: 28px;
}

.archive-cast figure {
  display: grid;
  width: 154px;
  grid-template-columns: 48px 1fr;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 7px;
  border: 1px solid var(--line);
  background: rgba(8, 8, 10, 0.42);
}

.archive-cast img {
  width: 48px;
  height: 58px;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(1) contrast(1.06);
}

.archive-cast figcaption {
  font-family: "Source Han Serif", serif;
  font-size: 13px;
  line-height: 1.5;
}

.archive-cast figcaption span {
  display: block;
  color: var(--ink-muted);
  font-family: "Source Han Sans", sans-serif;
  font-size: 8px;
  letter-spacing: 0.08em;
}

.story-panel {
  position: relative;
  z-index: 2;
  display: grid;
  width: min(1260px, 100%);
  min-height: calc(100svh - 132px);
  grid-template-columns: minmax(128px, 0.32fr) minmax(0, 1fr);
  align-items: end;
  gap: clamp(28px, 6vw, 88px);
  padding: 54px clamp(24px, 7vw, 110px) 100px;
}

.story-context {
  align-self: center;
  padding-bottom: 18vh;
  border-top: 1px solid var(--line);
}

.location {
  margin: 15px 0 8px;
  color: var(--ink);
  line-height: 1.6;
}

.time {
  margin: 0;
  line-height: 1.6;
}

.story-card {
  position: relative;
  width: min(720px, 100%);
  padding: clamp(24px, 4vw, 48px);
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--paper-soft);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

.speaker {
  display: inline-flex;
  min-width: 92px;
  min-height: 30px;
  align-items: center;
  margin: -64px 0 22px -10px;
  padding: 7px 14px;
  border: 1px solid rgba(243, 239, 231, 0.36);
  background: #171719;
  color: var(--accent-light);
  font-family: "Source Han Serif", serif;
  font-size: 13px;
  letter-spacing: 0.14em;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.36);
}

.story-text {
  min-height: 150px;
  font-family: "Source Han Serif", serif;
  font-size: clamp(18px, 2.1vw, 24px);
  line-height: 1.85;
}

.story-text p {
  margin: 0 0 0.8em;
}

.story-text p:last-child {
  margin-bottom: 0;
}

.story-text .weight {
  font-size: 1.22em;
}

.story-text .quiet {
  color: var(--ink-muted);
}

.choices {
  display: grid;
  gap: 10px;
  margin-top: 34px;
}

.choice-drift {
  min-height: 1.5em;
  margin: 22px 0 -20px;
  color: var(--accent-light);
  font-family: "Source Han Serif", serif;
  font-size: 12px;
  line-height: 1.6;
}

.choice-prompt {
  margin: 28px 0 -22px;
  color: rgba(243, 239, 231, 0.58);
  font-size: 9px;
  letter-spacing: 0.16em;
}

.choice-button {
  display: grid;
  width: 100%;
  grid-template-columns: 24px 1fr;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--ink);
  text-align: left;
}

.counterfactual-choice {
  border-style: dashed;
  color: #e5c2bd;
}

.choice-response {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  border-left: 2px solid var(--accent-light);
  background: rgba(255, 255, 255, 0.035);
  color: #ddd7ce;
  font-family: "Source Han Serif", serif;
  line-height: 1.75;
}

.choice-response p {
  margin: 0;
}

.continue-button {
  flex: 0 0 auto;
  min-width: 76px;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
}

.choice-button:hover {
  border-color: var(--line-strong);
  background: rgba(243, 239, 231, 0.09);
}

.choice-button.unavailable-choice,
.choice-button.unavailable-choice:hover {
  border-color: rgba(243, 239, 231, 0.1);
  border-left-color: rgba(243, 239, 231, 0.18);
  background: rgba(255, 255, 255, 0.012);
  box-shadow: none;
  color: rgba(243, 239, 231, 0.38);
  cursor: not-allowed;
  transform: none;
}

.choice-button.unavailable-choice::before,
.choice-button.unavailable-choice::after {
  display: none;
}

.choice-button.unavailable-choice .choice-index {
  border-style: dashed;
  border-color: rgba(243, 239, 231, 0.16);
  color: rgba(243, 239, 231, 0.34);
}

.choice-index {
  color: var(--accent-light);
  font-size: 10px;
  letter-spacing: 0.1em;
}

.choice-consequence {
  color: var(--ink-muted);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.keyboard-hint {
  margin: 18px 0 0;
  line-height: 1.6;
}

.footer-note {
  position: absolute;
  z-index: 4;
  bottom: var(--safe-bottom);
  left: clamp(24px, 4vw, 64px);
  display: flex;
  gap: 16px;
  line-height: 1.6;
}

.footer-note a {
  color: inherit;
  text-underline-offset: 3px;
}

.journal-dialog {
  width: min(620px, calc(100% - 32px));
  max-height: min(760px, calc(100svh - 32px));
  padding: 28px;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  background: #171719;
  color: var(--ink);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.65);
}

.journal-dialog::backdrop {
  background: rgba(4, 4, 5, 0.78);
  backdrop-filter: blur(7px);
}

.dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.dialog-head h2 {
  margin: 0;
  font-family: "Source Han Serif", serif;
  font-size: 34px;
  font-weight: 400;
}

.journal-list {
  display: grid;
  gap: 0;
  margin: 28px 0;
  padding: 0;
  list-style: none;
  counter-reset: memory;
}

.journal-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 24px;
  background: var(--line);
}

.journal-stats div {
  display: grid;
  gap: 3px;
  padding: 14px;
  background: #171719;
}

.journal-stats strong {
  color: var(--accent-light);
  font-family: "Source Han Serif", serif;
  font-size: 24px;
  font-weight: 400;
}

.journal-stats span {
  color: var(--ink-muted);
  font-size: 9px;
  letter-spacing: 0.12em;
}

.journal-list .archive-note {
  color: var(--accent-light);
}

.journal-list li {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  color: #d8d3cb;
  font-family: "Source Han Serif", serif;
  line-height: 1.65;
  counter-increment: memory;
}

.journal-list li::before {
  content: counter(memory, decimal-leading-zero);
  color: var(--accent-light);
  font-family: "Source Han Sans", sans-serif;
  font-size: 10px;
  letter-spacing: 0.08em;
}

.journal-empty {
  color: var(--ink-muted) !important;
}

.dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.danger-button {
  color: #e7aaa5;
}

[hidden] {
  display: none !important;
}

.story-card.is-entering {
  animation: card-enter 520ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes card-enter {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}

@media (max-width: 720px) {
  .topbar {
    padding-inline: 18px;
  }

  .chapter-counter {
    display: none;
  }

  .cover-panel {
    min-height: calc(100svh - 110px);
    justify-content: flex-end;
    padding: 48px 20px 112px;
  }

  .cover-panel h1 {
    font-size: clamp(58px, 22vw, 90px);
  }

  .cover-deck {
    margin-block: 24px 28px;
  }

  .cover-actions,
  .primary-button,
  .secondary-button {
    width: 100%;
  }

  .cover-meta {
    flex-wrap: wrap;
    gap: 16px;
  }

  .archive-cast {
    margin-top: 20px;
  }

  .story-panel {
    min-height: calc(100svh - 94px);
    grid-template-columns: 1fr;
    align-content: end;
    gap: 12px;
    padding: 38px 14px 78px;
  }

  .character-stage {
    right: -24vw;
    bottom: 37vh;
    width: 88vw;
    height: 58svh;
    opacity: 0.78;
  }

  .character-stage figcaption {
    right: 26vw;
    bottom: 4px;
  }

  .claude-figure {
    right: 20vw;
    bottom: 10%;
    width: 66vw;
    min-height: 180px;
  }

  .story-context {
    display: flex;
    align-items: center;
    justify-content: space-between;
    align-self: auto;
    padding: 0 4px;
    border-top: 0;
  }

  .location,
  .time {
    margin: 0;
  }

  .story-card {
    padding: 24px 20px;
    background: rgba(17, 17, 19, 0.9);
    backdrop-filter: blur(12px);
  }

  .speaker {
    margin-top: -42px;
  }

  .story-text {
    min-height: 118px;
    font-size: 18px;
    line-height: 1.72;
  }

  .choices {
    margin-top: 24px;
  }

  .choice-button {
    min-height: 52px;
    grid-template-columns: 22px 1fr;
  }

  .choice-response {
    align-items: stretch;
    flex-direction: column;
  }

  .choice-consequence,
  .keyboard-hint {
    display: none;
  }

  .footer-note {
    right: 18px;
    left: 18px;
    justify-content: space-between;
    gap: 8px;
    font-size: 8px;
  }

  .footer-note span:last-child {
    display: none;
  }

  .scene::before {
    background:
      linear-gradient(0deg, rgba(9, 10, 12, 0.96) 0%, rgba(9, 10, 12, 0.52) 55%, rgba(9, 10, 12, 0.24) 100%),
      linear-gradient(90deg, rgba(9, 10, 12, 0.58), transparent);
  }

  .journal-dialog {
    padding: 22px 18px;
  }
}

@media (max-width: 960px) and (max-height: 700px) and (orientation: landscape) {
  .topbar {
    padding-top: 12px;
    padding-bottom: 8px;
  }

  .story-panel {
    min-height: calc(100svh - 70px);
    padding-top: 8px;
    padding-bottom: 38px;
  }

  .story-card {
    padding: 18px 24px;
  }

  .character-stage {
    right: -4vw;
    bottom: 0;
    width: 45vw;
    height: 92svh;
  }

  .story-text {
    min-height: 80px;
    font-size: 17px;
    line-height: 1.6;
  }

  .choices {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 18px;
  }

  .keyboard-hint,
  .footer-note {
    display: none;
  }
}

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

.credits-page {
  min-height: 100svh;
  background:
    linear-gradient(135deg, rgba(13, 13, 15, 0.95), rgba(20, 16, 18, 0.88)),
    url("assets/scenes/banana-gallery.webp") center / cover fixed;
}

.credits-shell {
  width: min(980px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(36px, 7vw, 90px) 0 80px;
}

.back-link,
.credits-page a {
  color: var(--ink);
  text-underline-offset: 4px;
}

.back-link {
  display: inline-block;
  margin-bottom: 70px;
  color: var(--ink-muted);
  font-size: 12px;
}

.credits-shell > h1 {
  margin: 0;
  font-family: "Source Han Serif", serif;
  font-size: clamp(40px, 7vw, 78px);
  font-weight: 400;
  line-height: 1.12;
}

.credits-intro {
  max-width: 720px;
  margin: 30px 0 48px;
  color: #d7d1c8;
  font-family: "Source Han Serif", serif;
  font-size: 18px;
  line-height: 1.9;
}

.credit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.credit-card {
  display: grid;
  grid-template-columns: 128px 1fr;
  gap: 22px;
  padding: 18px;
  border: 1px solid var(--line);
  background: rgba(17, 17, 19, 0.82);
  backdrop-filter: blur(14px);
}

.credit-card img {
  width: 128px;
  height: 166px;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(1);
}

.credit-card h2,
.credits-copy h2 {
  margin: 5px 0 14px;
  font-family: "Source Han Serif", serif;
  font-weight: 400;
}

.credit-card p,
.credits-copy p {
  color: var(--ink-muted);
  font-size: 12px;
  line-height: 1.9;
}

.credit-kicker {
  margin: 0 !important;
  color: var(--accent-light) !important;
  font-size: 8px !important;
  letter-spacing: 0.14em;
}

.credits-copy {
  max-width: 720px;
  margin-top: 56px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

@media (max-width: 720px) {
  .credit-grid {
    grid-template-columns: 1fr;
  }

  .credit-card {
    grid-template-columns: 92px 1fr;
  }

  .credit-card img {
    width: 92px;
    height: 124px;
  }
}

/* Cinematic visual-novel layer */
:root {
  --gold: #d9b77c;
  --gold-soft: rgba(217, 183, 124, 0.34);
  --signal: #e36d68;
  --hud-line: rgba(217, 183, 124, 0.24);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

.game::before,
.game::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
}

.game::before {
  z-index: -2;
  background:
    radial-gradient(circle at 82% 42%, rgba(227, 109, 104, 0.12), transparent 28%),
    radial-gradient(circle at 48% 110%, rgba(217, 183, 124, 0.1), transparent 38%);
}

.game::after {
  z-index: 1;
  opacity: 0;
  background: linear-gradient(90deg, #09090b 0%, rgba(9, 9, 11, 0.78) 48%, transparent 100%);
}

.game.scene-shifting::after {
  animation: scene-wipe 760ms var(--ease-out-expo) both;
}

@keyframes scene-wipe {
  0% { opacity: 0.9; transform: translateX(0); }
  100% { opacity: 0; transform: translateX(32%); }
}

.hud-frame {
  position: absolute;
  z-index: 7;
  inset: 14px;
  pointer-events: none;
}

.hud-frame::before,
.hud-frame::after {
  position: absolute;
  top: 50%;
  width: 28px;
  height: 1px;
  background: var(--hud-line);
  content: "";
}

.hud-frame::before { left: 0; }
.hud-frame::after { right: 0; }

.hud-frame i {
  position: absolute;
  width: 44px;
  height: 44px;
  border-color: var(--hud-line);
  border-style: solid;
}

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

.topbar { z-index: 12; }
.footer-note { z-index: 8; }

.wordmark small::before {
  display: inline-block;
  width: 18px;
  height: 1px;
  margin: 0 8px 3px 0;
  background: var(--gold);
  content: "";
}

.chapter-counter {
  position: relative;
  min-width: 138px;
  padding: 10px 14px 10px 28px;
  border: 1px solid var(--hud-line);
  background: rgba(9, 9, 11, 0.46);
  color: #d8c7a7;
  text-align: left;
  backdrop-filter: blur(12px);
}

.chapter-counter::before {
  position: absolute;
  top: 50%;
  left: 13px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 12px var(--signal);
  content: "";
  transform: translateY(-50%);
}

.icon-button {
  border-color: var(--hud-line);
  border-radius: 2px;
  background: rgba(9, 9, 11, 0.5);
  backdrop-filter: blur(12px);
}

.progress {
  z-index: 9;
  height: 2px;
}

.progress span {
  background: linear-gradient(90deg, var(--signal), var(--gold));
  box-shadow: 0 0 14px rgba(217, 183, 124, 0.7);
  transition: width 720ms var(--ease-out-expo);
}

.cover-panel {
  position: relative;
  z-index: 3;
}

.cover-panel h1 {
  text-shadow: 0 8px 45px rgba(0, 0, 0, 0.5), 0 0 80px rgba(227, 109, 104, 0.12);
}

.cover-panel h1::after {
  display: block;
  width: clamp(90px, 14vw, 180px);
  height: 2px;
  margin-top: 26px;
  background: linear-gradient(90deg, var(--signal), var(--gold), transparent);
  content: "";
}

.primary-button,
.secondary-button,
.choice-button,
.continue-button,
.interlude-button {
  transition: transform 240ms var(--ease-out-expo), background 240ms ease, border-color 240ms ease, box-shadow 240ms ease, color 240ms ease;
}

.primary-button {
  position: relative;
  overflow: hidden;
  border-color: var(--gold);
  background: linear-gradient(110deg, #ead5ac, var(--gold));
  box-shadow: 0 10px 42px rgba(217, 183, 124, 0.14);
}

.primary-button:hover {
  border-color: #f2e0bf;
  background: #f2e0bf;
  box-shadow: 0 14px 50px rgba(217, 183, 124, 0.26);
  transform: translateY(-2px);
}

.archive-cast figure {
  border-color: var(--hud-line);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
  transition: border-color 240ms ease, transform 240ms var(--ease-out-expo);
}

.archive-cast figure:hover {
  border-color: var(--gold-soft);
  transform: translateY(-3px);
}

.story-panel {
  z-index: 4;
}

.story-context {
  border-top-color: var(--gold-soft);
}

.location::before {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin: 0 9px 2px 0;
  border: 1px solid var(--gold);
  content: "";
  transform: rotate(45deg);
}

.story-card {
  overflow: hidden;
  border-color: var(--hud-line);
  background:
    linear-gradient(145deg, rgba(27, 25, 27, 0.92), rgba(11, 11, 13, 0.88)),
    var(--paper-soft);
  box-shadow: 0 36px 110px rgba(0, 0, 0, 0.46), inset 0 1px rgba(255, 255, 255, 0.035);
  clip-path: polygon(0 0, calc(100% - 19px) 0, 100% 19px, 100% 100%, 19px 100%, 0 calc(100% - 19px));
}

.story-card::before,
.story-card::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.story-card::before {
  top: 0;
  left: 0;
  width: 42%;
  height: 1px;
  background: linear-gradient(90deg, var(--signal), var(--gold), transparent);
}

.story-card::after {
  right: 15px;
  bottom: 14px;
  width: 38px;
  height: 6px;
  border-right: 1px solid var(--gold-soft);
  border-bottom: 1px solid var(--gold-soft);
}

.speaker {
  position: relative;
  overflow: visible;
  border-color: var(--gold-soft);
  border-left: 2px solid var(--signal);
  background: rgba(14, 14, 16, 0.96);
  color: #efd5a8;
}

.speaker::after {
  position: absolute;
  top: 50%;
  right: -18px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 10px var(--signal);
  content: "";
  animation: signal-pulse 1.8s ease-in-out infinite;
}

@keyframes signal-pulse {
  50% { opacity: 0.35; transform: scale(0.7); }
}

.story-text p {
  opacity: 0;
  animation: dialogue-line-in 560ms var(--ease-out-expo) forwards;
  animation-delay: calc(var(--line-index) * 105ms + 80ms);
}

@keyframes dialogue-line-in {
  from { opacity: 0; transform: translateY(9px); filter: blur(2px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

.choices {
  perspective: 900px;
}

.choice-button {
  position: relative;
  overflow: hidden;
  grid-template-columns: 34px 1fr 16px;
  border-color: rgba(217, 183, 124, 0.2);
  border-left: 2px solid rgba(227, 109, 104, 0.62);
  background: linear-gradient(90deg, rgba(227, 109, 104, 0.07), rgba(255, 255, 255, 0.018));
}

.choice-button::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 0 34%, rgba(217, 183, 124, 0.12) 50%, transparent 66%);
  content: "";
  transform: translateX(-130%);
  transition: transform 650ms var(--ease-out-expo);
}

.choice-button::after {
  position: relative;
  color: var(--gold);
  content: "›";
  font-size: 22px;
  opacity: 0.46;
  transition: opacity 220ms ease, transform 220ms var(--ease-out-expo);
}

.choice-button:hover {
  border-color: var(--gold-soft);
  border-left-color: var(--gold);
  background: linear-gradient(90deg, rgba(217, 183, 124, 0.12), rgba(255, 255, 255, 0.04));
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
  transform: translateX(5px);
}

.choice-button:hover::before { transform: translateX(130%); }
.choice-button:hover::after { opacity: 1; transform: translateX(3px); }
.choice-button:active { transform: translateX(3px) scale(0.995); }

.choice-index {
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid var(--gold-soft);
  color: var(--gold);
}

.choice-response {
  border: 1px solid var(--hud-line);
  border-left: 2px solid var(--signal);
  background: linear-gradient(90deg, rgba(227, 109, 104, 0.09), rgba(255, 255, 255, 0.025));
}

.continue-button {
  border-color: var(--gold);
  background: var(--gold);
  color: #121113;
}

.continue-button:hover {
  background: #f0d9ae;
  box-shadow: 0 8px 28px rgba(217, 183, 124, 0.22);
  transform: translateX(3px);
}

.character-stage {
  width: min(50vw, 730px);
  height: min(91svh, 980px);
}

.character-sprite {
  filter: saturate(0.9) contrast(1.06) drop-shadow(-32px 14px 58px rgba(0, 0, 0, 0.62));
}

.character-stage figcaption {
  border-color: var(--gold-soft);
  background: rgba(7, 7, 9, 0.7);
  color: rgba(235, 219, 189, 0.68);
}

.interlude {
  position: absolute;
  z-index: 10;
  inset: 0;
  display: grid;
  min-height: 100svh;
  place-items: center;
  padding: 120px 24px 100px;
  overflow: hidden;
  background:
    radial-gradient(circle at 63% 48%, rgba(227, 109, 104, 0.13), transparent 32%),
    linear-gradient(90deg, rgba(7, 7, 9, 0.97) 0%, rgba(7, 7, 9, 0.9) 53%, rgba(7, 7, 9, 0.55) 100%);
  backdrop-filter: blur(5px);
}

.interlude-content {
  position: relative;
  z-index: 2;
  width: min(680px, 100%);
  padding-left: clamp(0px, 5vw, 72px);
}

.interlude-label {
  margin: 0 0 22px;
  color: var(--gold);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.interlude-label::before {
  display: inline-block;
  width: 40px;
  height: 1px;
  margin: 0 12px 3px 0;
  background: linear-gradient(90deg, var(--signal), var(--gold));
  content: "";
}

.interlude h2 {
  max-width: 620px;
  margin: 0;
  font-family: "Source Han Serif", serif;
  font-size: clamp(48px, 7vw, 92px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.12;
  text-shadow: 0 15px 70px rgba(0, 0, 0, 0.8);
}

.interlude-text {
  max-width: 590px;
  margin: 30px 0 36px;
  color: #d7d0c4;
  font-family: "Source Han Serif", serif;
  font-size: clamp(16px, 1.8vw, 20px);
  line-height: 1.9;
}

.interlude-button {
  display: flex;
  width: min(290px, 100%);
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border: 1px solid var(--gold-soft);
  background: rgba(217, 183, 124, 0.06);
  color: var(--ink);
  cursor: pointer;
}

.interlude-button:hover {
  border-color: var(--gold);
  background: rgba(217, 183, 124, 0.14);
  box-shadow: 0 12px 42px rgba(0, 0, 0, 0.3);
  transform: translateX(5px);
}

.interlude-orbit {
  position: absolute;
  right: clamp(-180px, 3vw, 40px);
  top: 50%;
  width: min(54vw, 680px);
  aspect-ratio: 1;
  border: 1px solid rgba(217, 183, 124, 0.09);
  border-radius: 50%;
  transform: translateY(-50%);
  animation: orbit-breathe 8s ease-in-out infinite alternate;
}

.interlude-orbit::before,
.interlude-orbit::after,
.interlude-orbit i {
  position: absolute;
  border: 1px solid rgba(217, 183, 124, 0.12);
  border-radius: 50%;
  content: "";
}

.interlude-orbit::before { inset: 12%; }
.interlude-orbit::after { inset: 30%; }
.interlude-orbit i:nth-child(1) { top: 49%; left: -4px; width: 8px; height: 8px; background: var(--signal); box-shadow: 0 0 18px var(--signal); }
.interlude-orbit i:nth-child(2) { top: 18%; right: 12%; width: 5px; height: 5px; background: var(--gold); }
.interlude-orbit i:nth-child(3) { right: 26%; bottom: 10%; width: 3px; height: 3px; background: var(--gold); }

@keyframes orbit-breathe {
  to { opacity: 0.58; transform: translateY(-50%) rotate(8deg) scale(1.035); }
}

@media (max-width: 720px) {
  .hud-frame { inset: 8px; }
  .hud-frame i { width: 24px; height: 24px; }

  .cover-panel h1::after { margin-top: 18px; }

  .character-stage {
    right: -19vw;
    bottom: 39vh;
    width: 90vw;
    height: 60svh;
  }

  .story-card {
    clip-path: polygon(0 0, calc(100% - 13px) 0, 100% 13px, 100% 100%, 13px 100%, 0 calc(100% - 13px));
  }

  .choice-button { grid-template-columns: 32px 1fr 12px; }

  .interlude {
    align-items: end;
    padding: 118px 22px 104px;
    background: linear-gradient(0deg, rgba(7, 7, 9, 0.98) 0%, rgba(7, 7, 9, 0.9) 64%, rgba(7, 7, 9, 0.6) 100%);
  }

  .interlude-content { padding-left: 0; }
  .interlude h2 { font-size: clamp(42px, 13vw, 62px); }
  .interlude-text { margin-block: 22px 28px; font-size: 16px; }
  .interlude-button { width: 100%; }
  .interlude-orbit { top: 31%; right: -32%; width: 96vw; }
}

@media (prefers-reduced-motion: reduce) {
  .game.scene-shifting::after,
  .story-text p,
  .speaker::after,
  .interlude-orbit {
    animation: none !important;
  }

  .story-text p { opacity: 1; }
}

/* Final cinematic polish: centered desktop composition and layered motion */
@media (min-width: 721px) and (min-height: 760px) {
  .story-panel {
    min-height: calc(100svh - 116px);
    align-items: center;
    padding-top: clamp(32px, 4.5vh, 64px);
    padding-bottom: clamp(72px, 6.5vh, 104px);
  }

  .story-context {
    align-self: center;
    padding-bottom: 0;
  }
}

.scene {
  will-change: transform, filter;
}

.game.scene-shifting .scene {
  animation: scene-settle 1100ms var(--ease-out-expo) both;
}

@keyframes scene-settle {
  0% { filter: brightness(0.52) saturate(0.72); transform: scale(1.065); }
  100% { filter: brightness(1) saturate(1); transform: scale(1.025); }
}

.game.scene-shifting::after {
  background:
    linear-gradient(90deg, transparent 0 47%, rgba(217, 183, 124, 0.62) 49.8%, rgba(227, 109, 104, 0.72) 50%, transparent 50.3%),
    linear-gradient(90deg, #09090b 0%, rgba(9, 9, 11, 0.86) 48%, transparent 100%);
}

.character-sprite {
  -webkit-mask-image:
    linear-gradient(90deg, transparent 0%, #000 18%, #000 100%),
    linear-gradient(180deg, transparent 0%, #000 10%, #000 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(90deg, transparent 0%, #000 18%, #000 100%),
    linear-gradient(180deg, transparent 0%, #000 10%, #000 100%);
  mask-composite: intersect;
  will-change: opacity, transform, filter;
}

.story-context {
  position: relative;
  border-top: 0;
}

.story-context::before,
.story-context::after {
  display: block;
  height: 1px;
  content: "";
}

.story-context::before {
  width: 100%;
  margin-bottom: 14px;
  background: linear-gradient(90deg, var(--gold), rgba(217, 183, 124, 0.16));
  box-shadow: 0 0 16px rgba(217, 183, 124, 0.12);
}

.story-context::after {
  width: 22px;
  margin-top: 18px;
  background: var(--signal);
  box-shadow: 0 0 12px rgba(227, 109, 104, 0.38);
}

.story-card {
  background:
    radial-gradient(circle at 92% 8%, rgba(217, 183, 124, 0.07), transparent 29%),
    linear-gradient(145deg, rgba(28, 26, 29, 0.95), rgba(11, 11, 13, 0.91)),
    repeating-linear-gradient(135deg, transparent 0 7px, rgba(255, 255, 255, 0.012) 7px 8px);
  box-shadow:
    0 42px 120px rgba(0, 0, 0, 0.52),
    0 0 0 1px rgba(217, 183, 124, 0.035),
    inset 0 1px rgba(255, 255, 255, 0.045);
  will-change: opacity, transform;
}

.story-card.is-entering {
  animation: card-enter-polished 560ms var(--ease-out-expo) both;
}

.story-card.is-entering::before {
  animation: card-glint 840ms var(--ease-out-expo) both;
}

@keyframes card-enter-polished {
  from { opacity: 0.08; transform: translateY(18px) scale(0.992); filter: blur(3px); }
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

@keyframes card-glint {
  0% { width: 0; opacity: 0; }
  28% { opacity: 1; }
  100% { width: 42%; opacity: 1; }
}

.speaker {
  backdrop-filter: blur(16px);
}

.speaker::before {
  width: 18px;
  height: 1px;
  margin-right: 10px;
  background: linear-gradient(90deg, var(--signal), var(--gold));
  content: "";
}

.choice-prompt {
  display: flex;
  align-items: center;
  gap: 10px;
}

.choice-prompt::before {
  width: 14px;
  height: 1px;
  background: var(--signal);
  content: "";
  box-shadow: 0 0 8px rgba(227, 109, 104, 0.45);
}

.choice-button {
  opacity: 0;
  animation: choice-enter 460ms var(--ease-out-expo) forwards;
  animation-delay: calc(150ms + var(--choice-index) * 55ms);
  will-change: opacity, transform;
}

@keyframes choice-enter {
  from { opacity: 0; transform: translateY(9px); }
  to { opacity: 1; transform: translateY(0); }
}

.choice-button:focus-visible {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(217, 183, 124, 0.18), 0 12px 34px rgba(0, 0, 0, 0.3);
}

.choice-response {
  position: relative;
  overflow: hidden;
  animation: response-enter 440ms var(--ease-out-expo) both;
}

.choice-response::after {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 34%;
  height: 1px;
  background: linear-gradient(90deg, var(--signal), var(--gold), transparent);
  content: "";
  animation: response-line 900ms var(--ease-out-expo) both;
}

@keyframes response-enter {
  from { opacity: 0; transform: translateY(8px); }
}

@keyframes response-line {
  from { width: 0; opacity: 0; }
}

.interlude-content > * {
  animation: interlude-copy-enter 660ms var(--ease-out-expo) both;
}

.interlude-content > :nth-child(2) { animation-delay: 70ms; }
.interlude-content > :nth-child(3) { animation-delay: 130ms; }
.interlude-content > :nth-child(4) { animation-delay: 190ms; }

@keyframes interlude-copy-enter {
  from { opacity: 0; transform: translateY(16px); filter: blur(3px); }
}

.primary-button:active,
.secondary-button:active,
.continue-button:active,
.interlude-button:active,
.icon-button:active {
  transform: scale(0.985);
}

@media (max-width: 720px) {
  .character-sprite {
    -webkit-mask-image:
      linear-gradient(90deg, transparent 0%, #000 14%, #000 100%),
      linear-gradient(180deg, transparent 0%, #000 8%, #000 100%);
    mask-image:
      linear-gradient(90deg, transparent 0%, #000 14%, #000 100%),
      linear-gradient(180deg, transparent 0%, #000 8%, #000 100%);
  }

  .story-context::after { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .game.scene-shifting .scene,
  .story-card.is-entering,
  .story-card.is-entering::before,
  .choice-button,
  .choice-response,
  .choice-response::after,
  .interlude-content > * {
    animation: none !important;
  }

  .choice-button { opacity: 1; }
}

/* Mobile-only hardening; desktop geometry remains untouched. */
@media (max-width: 720px) {
  .game {
    min-height: 100dvh;
  }

  .topbar {
    padding-right: max(18px, env(safe-area-inset-right));
    padding-left: max(18px, env(safe-area-inset-left));
  }

  .cover-panel {
    min-height: calc(100dvh - 110px);
    padding-right: max(20px, calc(env(safe-area-inset-right) + 12px));
    padding-left: max(20px, calc(env(safe-area-inset-left) + 12px));
  }

  .archive-cast {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .archive-cast figure {
    width: 100%;
    min-width: 0;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 8px;
    padding: 6px;
  }

  .archive-cast img {
    width: 40px;
    height: 50px;
  }

  .archive-cast figcaption,
  .choice-button > span:nth-child(2),
  .choice-response p {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .story-panel {
    width: 100%;
    min-height: calc(100dvh - 94px);
    padding-right: max(14px, calc(env(safe-area-inset-right) + 8px));
    padding-left: max(14px, calc(env(safe-area-inset-left) + 8px));
  }

  .story-card,
  .choice-button,
  .choice-response {
    min-width: 0;
    max-width: 100%;
  }

  .character-stage {
    bottom: 39dvh;
    height: 60dvh;
  }

  .story-context {
    gap: 12px;
  }

  .story-context > * {
    min-width: 0;
  }

  .time {
    text-align: right;
  }

  .interlude {
    min-height: 100dvh;
    padding-right: max(22px, calc(env(safe-area-inset-right) + 14px));
    padding-bottom: max(104px, calc(env(safe-area-inset-bottom) + 76px));
    padding-left: max(22px, calc(env(safe-area-inset-left) + 14px));
  }

  .footer-note {
    right: max(18px, env(safe-area-inset-right));
    bottom: max(18px, env(safe-area-inset-bottom));
    left: max(18px, env(safe-area-inset-left));
  }

  .journal-dialog {
    width: min(620px, calc(100% - 24px));
    max-height: calc(100dvh - 24px);
  }
}

@media (max-width: 360px) {
  .cover-panel {
    padding-right: max(16px, calc(env(safe-area-inset-right) + 10px));
    padding-left: max(16px, calc(env(safe-area-inset-left) + 10px));
  }

  .cover-panel h1 {
    font-size: clamp(54px, 20vw, 72px);
  }

  .archive-cast figcaption {
    font-size: 12px;
  }

  .archive-cast figcaption span {
    font-size: 7px;
  }

  .story-card {
    padding-right: 16px;
    padding-left: 16px;
  }

  .choice-button {
    grid-template-columns: 30px minmax(0, 1fr) 10px;
    gap: 8px;
    padding-right: 12px;
    padding-left: 12px;
  }
}

/* FMV-style route language: choices signal intent, later scenes pay it off. */
.choice-copy {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.choice-consequence {
  display: block;
  color: rgba(243, 239, 231, 0.48);
  font-family: "Source Han Sans", sans-serif;
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1.45;
  text-transform: uppercase;
}

.choice-button[data-route="comply"] {
  border-left-color: #d06d68;
}

.choice-button[data-route="question"] {
  border-left-color: #80a9bd;
}

.choice-button[data-route="witness"] {
  border-left-color: var(--gold);
}

.choice-button.route-match {
  border-color: rgba(217, 183, 124, 0.62);
  background: linear-gradient(90deg, rgba(217, 183, 124, 0.15), rgba(255, 255, 255, 0.035));
  box-shadow: inset 0 0 0 1px rgba(217, 183, 124, 0.08), 0 12px 38px rgba(0, 0, 0, 0.2);
}

.choice-button[data-route="comply"] .choice-consequence,
.choice-response.route-comply .choice-consequence {
  color: #e29a94;
}

.choice-button[data-route="question"] .choice-consequence,
.choice-response.route-question .choice-consequence {
  color: #9bc2d5;
}

.choice-button[data-route="witness"] .choice-consequence,
.choice-response.route-witness .choice-consequence {
  color: #d9b77c;
}

.choice-response .choice-consequence {
  margin-top: 8px;
}

.story-card[data-route="comply"] {
  border-left-color: #d06d68;
  box-shadow: -14px 0 52px rgba(208, 109, 104, 0.08), var(--shadow-panel);
}

.story-card[data-route="question"] {
  border-left-color: #80a9bd;
  box-shadow: -14px 0 52px rgba(128, 169, 189, 0.08), var(--shadow-panel);
}

.story-card[data-route="witness"] {
  border-left-color: var(--gold);
  box-shadow: -14px 0 52px rgba(217, 183, 124, 0.08), var(--shadow-panel);
}

.journal-stats .route-summary {
  grid-column: 1 / -1;
  grid-template-columns: minmax(150px, 0.7fr) minmax(0, 1.3fr);
  align-items: center;
  gap: 14px;
  border-left: 2px solid var(--gold);
}

.journal-stats .route-summary[data-route="comply"] {
  border-left-color: #d06d68;
}

.journal-stats .route-summary[data-route="question"] {
  border-left-color: #80a9bd;
}

.journal-stats .route-summary strong {
  font-size: 16px;
}

.journal-stats .route-summary span {
  line-height: 1.65;
  letter-spacing: 0.06em;
}

@media (max-width: 720px) {
  .choice-consequence {
    display: block;
  }

  .journal-stats .route-summary {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}
