:root {
  --ink: #08090b;
  --ink-soft: #0d0f12;
  --panel: #121418;
  --panel-raised: #181b20;
  --panel-warm: #1b1815;
  --line: rgba(201, 168, 106, 0.2);
  --line-strong: rgba(201, 168, 106, 0.42);
  --gold: #c9a86a;
  --gold-bright: #ebcf95;
  --gold-dim: #827055;
  --wine: #762229;
  --wine-bright: #a83a43;
  --paper: #e8ddc5;
  --text: #d9d1c1;
  --text-dim: #958d7e;
  --text-faint: #625d54;
  --green: #3c5948;
  --green-bright: #77a88b;
  --blue: #5b7187;
  --serif: "Iowan Old Style", "Baskerville", "Songti SC", "STSong", "Noto Serif SC", Georgia, serif;
  --sans: "Avenir Next", "PingFang SC", "Hiragino Sans GB", "Helvetica Neue", sans-serif;
  --mono: "SFMono-Regular", Menlo, Monaco, Consolas, monospace;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  font-family: var(--sans);
  background:
    radial-gradient(ellipse at 18% -8%, rgba(118, 34, 41, 0.2), transparent 44%),
    radial-gradient(ellipse at 82% 12%, rgba(60, 89, 72, 0.13), transparent 38%),
    radial-gradient(ellipse at 50% 110%, rgba(201, 168, 106, 0.06), transparent 52%),
    linear-gradient(180deg, #0a0b0e 0%, #07080a 100%);
  background-attachment: fixed;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 50% 30%, black, transparent 78%);
  pointer-events: none;
}

.startup-error {
  position: relative;
  z-index: 600;
  margin: 14px 20px 0;
  padding: 12px 16px;
  border: 1px solid rgba(168, 58, 67, 0.65);
  background: rgba(118, 34, 41, 0.22);
  color: #f0d9d9;
  font-size: 12px;
  line-height: 1.7;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 500;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

button {
  font: inherit;
  color: inherit;
}

button:focus-visible {
  outline: 1px solid var(--gold-bright);
  outline-offset: 3px;
}

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

.is-hidden {
  display: none !important;
}

.app-shell {
  width: 100%;
  max-width: 1680px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 16px 22px 10px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.eyebrow {
  color: var(--gold-dim);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-family: var(--mono);
}

.mono {
  font-family: var(--mono);
}

/* ---------- Top bar ---------- */

.topbar {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 64px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

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

.brand-seal {
  width: 44px;
  height: 50px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--gold-bright);
  font-family: var(--serif);
  font-size: 23px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background:
    linear-gradient(135deg, rgba(201, 168, 106, 0.11), transparent 50%),
    linear-gradient(180deg, #1a1510, #0d0b09);
  box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.8), 0 0 0 3px rgba(10, 11, 13, 0.9), 0 0 0 4px rgba(201, 168, 106, 0.13);
  position: relative;
}

.brand-seal::before,
.brand-seal::after {
  content: "";
  position: absolute;
  width: 4px;
  height: 4px;
  border: 1px solid var(--gold-dim);
  transform: rotate(45deg);
}

.brand-seal::before {
  left: 4px;
  top: 4px;
}

.brand-seal::after {
  right: 4px;
  bottom: 4px;
}

.brand-copy {
  min-width: 0;
}

.brand-copy h1 {
  margin-top: 3px;
  font-family: var(--serif);
  font-size: clamp(18px, 1.7vw, 25px);
  font-weight: 500;
  letter-spacing: 0.09em;
  color: #eee4cf;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 2px 18px rgba(201, 168, 106, 0.1);
}

.main-nav {
  display: flex;
  align-items: stretch;
  align-self: stretch;
  gap: 2px;
}

.nav-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 0;
  border-left: 1px solid transparent;
  border-right: 1px solid transparent;
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 13px;
  letter-spacing: 0.08em;
  transition: color 180ms ease, background 180ms ease;
  white-space: nowrap;
}

.nav-num {
  color: var(--gold-dim);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
}

.nav-btn:hover:not(:disabled) {
  color: var(--paper);
  background: rgba(201, 168, 106, 0.04);
}

.nav-btn.is-active {
  color: var(--gold-bright);
  background: linear-gradient(180deg, rgba(201, 168, 106, 0.06), transparent);
}

.nav-btn.is-active::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: -13px;
  height: 1px;
  background: var(--gold);
  box-shadow: 0 0 10px rgba(201, 168, 106, 0.5);
}

.nav-btn:disabled {
  opacity: 0.34;
  cursor: not-allowed;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.case-clock {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding-right: 14px;
  border-right: 1px solid var(--line);
}

.case-clock span {
  color: var(--paper);
  font-family: var(--mono);
  font-size: 19px;
  line-height: 1;
  letter-spacing: 0.08em;
}

.case-clock small {
  margin-top: 5px;
  color: var(--text-faint);
  font-size: 9px;
  letter-spacing: 0.18em;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 9px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: transparent;
  color: var(--text);
  font-size: 12px;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
  white-space: nowrap;
}

.btn:hover:not(:disabled) {
  border-color: var(--gold);
  color: var(--gold-bright);
  background: rgba(201, 168, 106, 0.06);
}

.btn:active:not(:disabled) {
  transform: translateY(1px);
}

.btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.btn-primary {
  border-color: rgba(118, 34, 41, 0.85);
  color: #f0e2cb;
  background:
    linear-gradient(180deg, rgba(168, 58, 67, 0.5), rgba(94, 25, 31, 0.6)),
    #4a151a;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.1), 0 8px 24px rgba(0, 0, 0, 0.3);
}

.btn-primary:hover:not(:disabled) {
  border-color: var(--wine-bright);
  color: #fff4e2;
  background:
    linear-gradient(180deg, rgba(190, 68, 78, 0.58), rgba(109, 29, 36, 0.7)),
    #58191f;
}

.btn-ghost {
  border-color: var(--line);
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.018);
}

.btn-hint {
  border-color: rgba(201, 168, 106, 0.44);
  color: var(--gold-bright);
  background:
    radial-gradient(circle at 10% 50%, rgba(201, 168, 106, 0.16), transparent 55%),
    rgba(20, 17, 12, 0.75);
  box-shadow: 0 0 0 0 rgba(201, 168, 106, 0.1);
  animation: hint-breathe 4.5s ease-in-out infinite;
}

.ad-badge {
  padding: 2px 4px;
  border: 1px solid currentColor;
  color: var(--gold);
  font-family: var(--mono);
  font-size: 7px;
  line-height: 1;
  letter-spacing: 0.06em;
  opacity: 0.7;
}

.btn-large {
  min-height: 48px;
  padding: 13px 36px;
  font-size: 14px;
  letter-spacing: 0.16em;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  transition: color 160ms ease, border-color 160ms ease;
}

.icon-btn:hover {
  color: var(--gold-bright);
  border-color: var(--gold-dim);
}

.evidence-toggle {
  display: none;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 9px;
  border: 1px solid rgba(201, 168, 106, 0.32);
  border-radius: 2px;
  background:
    linear-gradient(180deg, rgba(201, 168, 106, 0.07), transparent),
    rgba(15, 17, 20, 0.8);
  color: var(--gold-bright);
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 160ms ease, background 160ms ease;
}

.evidence-toggle:hover {
  border-color: var(--gold);
  background: rgba(201, 168, 106, 0.08);
}

.evidence-toggle-label {
  font-size: 9.5px;
  letter-spacing: 0.04em;
}

.evidence-toggle-count {
  display: grid;
  place-items: center;
  min-width: 27px;
  height: 20px;
  padding: 0 5px;
  border: 1px solid rgba(201, 168, 106, 0.28);
  color: var(--gold);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0;
}

.icon-lines,
.icon-lines::before,
.icon-lines::after {
  display: block;
  width: 15px;
  height: 1px;
  background: currentColor;
  position: relative;
}

.icon-lines::before,
.icon-lines::after {
  content: "";
  position: absolute;
  left: 0;
}

.icon-lines::before {
  top: -5px;
}

.icon-lines::after {
  top: 5px;
}

/* ---------- Workspace ---------- */

.workspace {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 326px;
  gap: 16px;
  align-items: stretch;
}

.stage {
  min-width: 0;
}

.view {
  display: none;
  animation: view-in 360ms ease both;
}

.view.is-active {
  display: block;
}

/* ---------- Study scene ---------- */

.scene-objective {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 3px 18px;
  margin-bottom: 10px;
  padding: 11px 15px 12px;
  border: 1px solid var(--line-strong);
  border-left: 2px solid var(--gold);
  background:
    linear-gradient(90deg, rgba(201, 168, 106, 0.075), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent),
    rgba(13, 15, 18, 0.86);
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.2);
}

.objective-copy {
  min-width: 0;
}

.objective-copy p {
  margin-top: 5px;
  color: #e8deca;
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: 0.03em;
}

.objective-state {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  padding-left: 14px;
  border-left: 1px solid rgba(201, 168, 106, 0.16);
  text-align: right;
}

.objective-state strong {
  color: var(--gold-bright);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.objective-state span {
  color: var(--text-faint);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.12em;
}

.scene-objective .objective-track {
  grid-column: 1 / -1;
  margin-top: 5px;
}

.scene-frame {
  position: relative;
  border: 1px solid var(--line-strong);
  background: #07080a;
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.55),
    inset 0 0 0 4px #0b0c0e,
    inset 0 0 0 5px rgba(201, 168, 106, 0.12);
  overflow: hidden;
}

.scene-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 110px 30px rgba(0, 0, 0, 0.6);
}

#studyCanvas {
  display: block;
  width: 100%;
  aspect-ratio: 1100 / 650;
  cursor: crosshair;
  touch-action: manipulation;
}

.frame-corner {
  position: absolute;
  z-index: 4;
  width: 25px;
  height: 25px;
  pointer-events: none;
  opacity: 0.65;
}

.frame-corner.tl {
  left: 9px;
  top: 9px;
  border-left: 1px solid var(--gold);
  border-top: 1px solid var(--gold);
}

.frame-corner.tr {
  right: 9px;
  top: 9px;
  border-right: 1px solid var(--gold);
  border-top: 1px solid var(--gold);
}

.frame-corner.bl {
  left: 9px;
  bottom: 9px;
  border-left: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
}

.frame-corner.br {
  right: 9px;
  bottom: 9px;
  border-right: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
}

.scene-topline {
  position: absolute;
  top: 18px;
  left: 24px;
  right: 24px;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  pointer-events: none;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  color: rgba(232, 221, 197, 0.56);
  text-transform: uppercase;
}

.scene-weather {
  color: rgba(91, 113, 135, 0.9);
}

.scene-hint {
  position: absolute;
  left: 50%;
  bottom: 48px;
  transform: translateX(-50%);
  z-index: 3;
  width: max-content;
  max-width: 80%;
  padding: 7px 15px;
  border: 1px solid rgba(201, 168, 106, 0.22);
  background: rgba(7, 8, 10, 0.72);
  backdrop-filter: blur(6px);
  color: rgba(232, 221, 197, 0.8);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-align: center;
  pointer-events: none;
  transition: opacity 300ms ease;
}

.scene-caption {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 16px;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: rgba(232, 221, 197, 0.4);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  pointer-events: none;
}

.blink {
  color: rgba(168, 58, 67, 0.72);
  animation: blink 2.4s steps(1) infinite;
}

.touch-hotspots {
  display: none;
}

.notebook {
  display: grid;
  grid-template-columns: 1.15fr 1fr 0.9fr;
  gap: 0;
  margin-top: 14px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.014), transparent),
    rgba(15, 17, 20, 0.72);
}

.notebook > div {
  min-width: 0;
  padding: 15px 18px;
}

.notebook > div + div {
  border-left: 1px solid var(--line);
}

.section-label {
  color: var(--gold-dim);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.notebook-main p {
  margin-top: 7px;
  color: var(--text);
  font-size: 12.5px;
  line-height: 1.6;
}

.objective-track {
  display: flex;
  gap: 5px;
  margin-top: 11px;
}

.objective-track span {
  flex: 1;
  height: 2px;
  background: rgba(201, 168, 106, 0.12);
  transition: background 300ms ease, box-shadow 300ms ease;
}

.objective-track span.is-done {
  background: var(--gold);
  box-shadow: 0 0 8px rgba(201, 168, 106, 0.35);
}

.deduction-fold {
  margin-top: 11px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.014), transparent),
    rgba(14, 16, 19, 0.72);
}

.deduction-fold summary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 9px 14px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.deduction-fold summary::-webkit-details-marker {
  display: none;
}

.deduction-fold summary:hover {
  background: rgba(201, 168, 106, 0.035);
}

.deduction-fold summary:focus-visible {
  outline: 1px solid var(--gold-bright);
  outline-offset: -3px;
}

.fold-summary {
  flex: 1;
  color: var(--text-faint);
  font-size: 10px;
  line-height: 1.4;
}

.fold-chevron {
  width: 6px;
  height: 6px;
  margin-right: 2px;
  border-right: 1px solid var(--gold-dim);
  border-bottom: 1px solid var(--gold-dim);
  transform: rotate(45deg);
  transition: transform 180ms ease;
}

.deduction-fold[open] .fold-chevron {
  transform: rotate(-135deg);
}

.fold-body {
  padding: 0 14px 13px;
  border-top: 1px solid rgba(201, 168, 106, 0.1);
}

.fold-body .chain-list {
  margin-top: 11px;
}

.notes-bench-link {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin-top: 11px;
  color: var(--gold-dim);
}

.chain-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}

.chain-empty {
  color: var(--text-faint);
  font-size: 11px;
  line-height: 1.6;
}

.chain-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border: 1px solid rgba(201, 168, 106, 0.3);
  background: rgba(201, 168, 106, 0.055);
  color: var(--gold-bright);
  font-size: 10px;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.chain-chip .chain-seal {
  font-family: var(--serif);
  color: var(--gold);
}

.witness-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  margin-top: 9px;
}

.witness-segment {
  position: relative;
  height: 4px;
  background: rgba(201, 168, 106, 0.14);
  overflow: hidden;
  transition: background 240ms ease, box-shadow 240ms ease;
}

.witness-segment::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
  transform: translateX(-100%);
}

.witness-segment.is-broken {
  background: var(--green-bright);
  box-shadow: 0 0 7px rgba(119, 168, 139, 0.35);
}

.witness-segment.is-broken::after {
  display: none;
}

/* ---------- Interrogation ---------- */

#interrogationView.is-active {
  height: 100%;
}

.interrogation-layout {
  display: grid;
  grid-template-columns: 196px minmax(0, 1fr);
  gap: 14px;
  min-height: 560px;
  height: 100%;
}

.suspect-rail {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.016), transparent),
    rgba(14, 16, 19, 0.8);
}

.interrogation-overview {
  padding: 13px 14px 12px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(60, 89, 72, 0.08), transparent 64%),
    rgba(8, 9, 11, 0.24);
}

.interrogation-overview-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.interrogation-overview-head strong {
  color: var(--green-bright);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.interrogation-overview .witness-strip {
  margin-top: 8px;
}

.interrogation-overview-note {
  margin-top: 8px;
  color: var(--text-faint);
  font-size: 9px;
  line-height: 1.55;
}

.rail-heading {
  display: flex;
  justify-content: space-between;
  padding: 15px 15px 11px;
  border-bottom: 1px solid var(--line);
  color: var(--gold-dim);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
}

.suspect-list {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.suspect-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 13px;
  border: 0;
  border-bottom: 1px solid rgba(201, 168, 106, 0.09);
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: background 160ms ease;
}

.suspect-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 1px;
  background: transparent;
  transition: background 160ms ease;
}

.suspect-card:hover {
  background: rgba(201, 168, 106, 0.035);
}

.suspect-card.is-active {
  background: linear-gradient(90deg, rgba(118, 34, 41, 0.18), transparent);
}

.suspect-card.is-active::before {
  background: var(--wine-bright);
  box-shadow: 0 0 8px rgba(168, 58, 67, 0.5);
}

.suspect-card.is-broken::before {
  background: var(--green);
}

.suspect-mini-seal {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 34px;
  height: 38px;
  border: 1px solid rgba(201, 168, 106, 0.26);
  background: rgba(201, 168, 106, 0.04);
  color: var(--gold);
  font-family: var(--serif);
  font-size: 16px;
}

.suspect-card.is-broken .suspect-mini-seal {
  border-color: rgba(119, 168, 139, 0.32);
  color: var(--green-bright);
}

.suspect-meta {
  min-width: 0;
  flex: 1;
}

.suspect-meta strong {
  display: block;
  color: var(--text);
  font-family: var(--serif);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.05em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.suspect-meta span {
  display: block;
  margin-top: 3px;
  color: var(--text-faint);
  font-size: 9px;
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.suspect-status {
  flex: 0 0 auto;
  color: var(--wine-bright);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.06em;
}

.suspect-card.is-broken .suspect-status {
  color: var(--green-bright);
}

.rail-note {
  display: flex;
  gap: 8px;
  padding: 13px;
  border-top: 1px solid var(--line);
  background: rgba(118, 34, 41, 0.05);
}

.rail-note-mark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  border: 1px solid rgba(168, 58, 67, 0.4);
  color: var(--wine-bright);
  font-family: var(--serif);
  font-size: 10px;
}

.rail-note p {
  color: var(--text-faint);
  font-size: 9.5px;
  line-height: 1.6;
}

.interrogation-stage {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.suspect-header {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 104px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  background:
    linear-gradient(105deg, rgba(118, 34, 41, 0.17), transparent 56%),
    radial-gradient(circle at 90% 30%, rgba(201, 168, 106, 0.06), transparent 40%),
    rgba(15, 17, 20, 0.85);
  overflow: hidden;
}

.suspect-header::after {
  content: attr(data-glyph);
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--serif);
  font-size: 96px;
  color: rgba(201, 168, 106, 0.045);
  pointer-events: none;
}

.suspect-portrait {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 64px;
  height: 72px;
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(135deg, rgba(201, 168, 106, 0.1), transparent 50%),
    #0e0f12;
  color: var(--gold-bright);
  font-family: var(--serif);
  font-size: 30px;
}

.suspect-portrait::after {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(201, 168, 106, 0.14);
}

.suspect-title {
  position: relative;
  z-index: 1;
}

.suspect-title h2 {
  margin-top: 4px;
  font-family: var(--serif);
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 500;
  letter-spacing: 0.09em;
  color: #efe5d0;
}

.suspect-title p {
  margin-top: 5px;
  color: var(--text-dim);
  font-size: 11px;
  letter-spacing: 0.05em;
}

.suspect-badge {
  position: relative;
  z-index: 1;
  margin-left: auto;
  padding: 5px 10px;
  border: 1px solid rgba(168, 58, 67, 0.35);
  color: var(--wine-bright);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
}

.suspect-badge.is-broken {
  border-color: rgba(119, 168, 139, 0.35);
  color: var(--green-bright);
}

.dialogue-panel {
  position: relative;
  flex: 1;
  padding: 22px 24px 18px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent 28%),
    linear-gradient(135deg, rgba(201, 168, 106, 0.035), transparent 40%),
    rgba(17, 18, 22, 0.9);
}

.dialogue-panel::before {
  content: "“";
  position: absolute;
  right: 26px;
  top: 4px;
  color: rgba(201, 168, 106, 0.08);
  font-family: var(--serif);
  font-size: 88px;
  line-height: 1;
  pointer-events: none;
}

.dialogue-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.testimony-progress {
  color: var(--text-faint);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.statement-text {
  position: relative;
  margin-top: 13px;
  color: #ddd3c1;
  font-family: var(--serif);
  font-size: clamp(16px, 1.45vw, 20px);
  line-height: 1.8;
  letter-spacing: 0.035em;
}

.claim-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}

.claim-chip {
  padding: 4px 8px;
  border: 1px solid rgba(201, 168, 106, 0.14);
  color: var(--text-faint);
  font-size: 9.5px;
  letter-spacing: 0.04em;
}

.response-box {
  min-height: 112px;
  margin-top: 20px;
  padding: 15px 16px;
  border-left: 2px solid rgba(201, 168, 106, 0.32);
  background: rgba(8, 9, 11, 0.44);
}

.response-box.is-cracked {
  border-left-color: var(--wine-bright);
  background: rgba(118, 34, 41, 0.08);
  animation: crack-in 420ms ease both;
}

.response-box.is-confession {
  border-left-color: var(--green-bright);
  background: rgba(60, 89, 72, 0.1);
}

.response-placeholder {
  color: var(--text-faint);
  font-size: 11.5px;
  line-height: 1.8;
}

.response-speaker {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 7px;
  color: var(--gold-dim);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
}

.response-speaker::before {
  content: "";
  width: 16px;
  height: 1px;
  background: currentColor;
}

.response-text {
  color: var(--text);
  font-size: 12.5px;
  line-height: 1.85;
}

.response-text em {
  color: var(--gold-bright);
  font-style: normal;
}

.response-text + .response-text {
  margin-top: 9px;
}

.response-note {
  margin-top: 11px;
  padding-top: 9px;
  border-top: 1px dashed rgba(201, 168, 106, 0.2);
  color: var(--gold);
  font-size: 10.5px;
  line-height: 1.7;
}

.interrogation-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.present-tray {
  padding: 18px;
  border: 1px solid rgba(201, 168, 106, 0.36);
  background:
    radial-gradient(circle at 0% 0%, rgba(118, 34, 41, 0.16), transparent 45%),
    #111317;
  animation: tray-in 240ms ease both;
}

.present-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.present-head p {
  margin-top: 5px;
  color: var(--text-dim);
  font-size: 11px;
}

.present-attempts {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  padding: 10px 12px;
  border: 1px solid rgba(201, 168, 106, 0.18);
  background: rgba(255, 255, 255, 0.018);
}

.present-attempts.is-empty {
  border-color: rgba(139, 44, 52, 0.5);
  background: rgba(118, 34, 41, 0.09);
}

.attempt-copy {
  flex: 1 1 210px;
  min-width: 0;
}

.attempt-title {
  margin: 0;
  color: var(--text);
  font-size: 11.5px;
  letter-spacing: 0.02em;
}

.attempt-title strong {
  color: var(--gold);
  font-weight: 500;
}

.attempt-note {
  margin-top: 4px;
  color: var(--text-dim);
  font-size: 10px;
  line-height: 1.55;
}

.attempt-pips {
  display: flex;
  gap: 5px;
  flex: 0 0 auto;
}

.attempt-pip {
  width: 18px;
  height: 5px;
  border: 1px solid rgba(201, 168, 106, 0.2);
  background: rgba(0, 0, 0, 0.28);
}

.attempt-pip.is-on {
  border-color: rgba(201, 168, 106, 0.58);
  background: var(--gold);
  box-shadow: 0 0 8px rgba(201, 168, 106, 0.22);
}

.attempt-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  margin-left: auto;
}

.attempt-timer {
  color: var(--text-dim);
  font-size: 9.5px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.attempt-ad-btn {
  padding: 8px 12px;
  font-size: 10.5px;
  white-space: nowrap;
}

.attempt-ad-btn:disabled {
  cursor: progress;
  opacity: 0.6;
}

.present-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(146px, 1fr));
  gap: 7px;
  max-height: 250px;
  overflow: auto;
  padding-right: 4px;
}

.present-item {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 7px 9px;
  border: 1px solid rgba(201, 168, 106, 0.16);
  background: rgba(255, 255, 255, 0.018);
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease;
}

.present-item:hover {
  border-color: var(--gold-dim);
  background: rgba(201, 168, 106, 0.05);
}

.present-item.is-hinting {
  animation: evidence-hint 1.1s ease 3;
}

.present-item-seal {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 27px;
  height: 30px;
  border: 1px solid rgba(201, 168, 106, 0.24);
  color: var(--gold);
  font-family: var(--serif);
  font-size: 12px;
}

.present-item-name {
  display: block;
  color: var(--text);
  font-size: 10.5px;
  line-height: 1.35;
}

.present-item-tag {
  display: block;
  margin-top: 3px;
  color: var(--text-faint);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------- Verdict ---------- */

.verdict-shell {
  min-height: 100%;
  padding: clamp(20px, 4vw, 44px);
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 50% 0%, rgba(118, 34, 41, 0.15), transparent 38%),
    linear-gradient(180deg, rgba(201, 168, 106, 0.03), transparent 40%),
    rgba(13, 15, 18, 0.86);
}

.verdict-intro {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
}

.verdict-intro h2 {
  margin-top: 8px;
  font-family: var(--serif);
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 400;
  letter-spacing: 0.15em;
  color: #f0e6d1;
}

.verdict-intro p:last-child {
  margin-top: 10px;
  color: var(--text-dim);
  font-size: 12px;
  line-height: 1.8;
  letter-spacing: 0.04em;
}

.verdict-locked {
  max-width: 540px;
  margin: 0 auto;
  padding: 26px;
  border: 1px dashed rgba(201, 168, 106, 0.2);
  color: var(--text-dim);
  text-align: center;
  font-size: 12px;
  line-height: 1.8;
}

.verdict-questions {
  max-width: 730px;
  margin: 30px auto 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.verdict-question {
  padding: 18px 20px;
  border: 1px solid var(--line);
  background: rgba(8, 9, 11, 0.38);
}

.verdict-question.is-wrong {
  border-color: rgba(168, 58, 67, 0.75);
  animation: shake 360ms ease;
}

.verdict-question h3 {
  color: var(--paper);
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.verdict-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.verdict-option {
  padding: 10px 13px;
  border: 1px solid rgba(201, 168, 106, 0.14);
  background: transparent;
  color: var(--text-dim);
  text-align: left;
  font-size: 11.5px;
  line-height: 1.5;
  cursor: pointer;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.verdict-option:hover {
  border-color: var(--gold-dim);
  color: var(--text);
}

.verdict-option.is-selected {
  border-color: var(--gold);
  background: rgba(201, 168, 106, 0.08);
  color: var(--gold-bright);
  box-shadow: inset 1px 0 var(--gold);
}

.verdict-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
}

.verdict-note {
  color: var(--text-faint);
  font-size: 9.5px;
  letter-spacing: 0.06em;
}

.verdict-solved {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.verdict-solved .solved-mark {
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  margin: 0 auto 18px;
  border: 1px solid var(--green);
  color: var(--green-bright);
  font-family: var(--serif);
  font-size: 30px;
  transform: rotate(45deg);
}

.verdict-solved .solved-mark span {
  transform: rotate(-45deg);
}

.verdict-solved h2 {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 400;
  letter-spacing: 0.16em;
  color: var(--paper);
}

.verdict-solved > p {
  margin: 12px auto 0;
  max-width: 600px;
  color: var(--text-dim);
  font-size: 12.5px;
  line-height: 1.9;
}

.solved-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}

/* ---------- Evidence panel ---------- */

.evidence-backdrop {
  position: fixed;
  inset: 0;
  z-index: 89;
  background:
    radial-gradient(circle at 72% 18%, rgba(201, 168, 106, 0.045), transparent 36%),
    rgba(4, 5, 7, 0.64);
  backdrop-filter: blur(2px);
  animation: fade-in 180ms ease both;
}

.evidence-backdrop[hidden] {
  display: none;
}

body.evidence-drawer-open {
  overflow: hidden;
}

.evidence-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-height: calc(100vh - 132px);
  padding: 16px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(201, 168, 106, 0.035), transparent 22%),
    rgba(13, 15, 18, 0.88);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
}

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

.panel-head h2 {
  margin-top: 3px;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: #ece2cd;
}

.evidence-tools {
  display: flex;
  align-items: center;
  gap: 7px;
}

.count-pill {
  display: grid;
  place-items: center;
  min-width: 30px;
  height: 24px;
  padding: 0 7px;
  border: 1px solid var(--line);
  color: var(--gold);
  font-family: var(--mono);
  font-size: 10px;
}

.evidence-close {
  display: none;
  width: 28px;
  height: 28px;
  font-size: 17px;
}

.evidence-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-top: 12px;
  padding-right: 3px;
  overflow-y: auto;
  min-height: 120px;
  flex: 1 1 auto;
  align-content: start;
}

.evidence-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  min-height: 88px;
  padding: 9px;
  border: 1px solid rgba(201, 168, 106, 0.14);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.025), transparent 60%),
    rgba(20, 22, 26, 0.7);
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
  overflow: hidden;
}

.evidence-card::after {
  content: "";
  position: absolute;
  right: -8px;
  bottom: -8px;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(201, 168, 106, 0.06);
  transform: rotate(45deg);
}

.evidence-card:hover {
  border-color: rgba(201, 168, 106, 0.45);
  background: rgba(201, 168, 106, 0.045);
  transform: translateY(-1px);
}

.evidence-card.is-new::before {
  content: "";
  position: absolute;
  top: 6px;
  right: 6px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold-bright);
  box-shadow: 0 0 6px var(--gold);
}

.evidence-card.is-hinting {
  animation: evidence-hint 1.1s ease 3;
}

.evidence-seal {
  display: grid;
  place-items: center;
  width: 34px;
  height: 38px;
  border: 1px solid rgba(201, 168, 106, 0.3);
  background: rgba(201, 168, 106, 0.04);
  color: var(--gold-bright);
  font-family: var(--serif);
  font-size: 16px;
}

.evidence-card[data-category="testimony"] .evidence-seal {
  border-color: rgba(91, 113, 135, 0.4);
  color: #8ca5ba;
}

.evidence-card[data-category="deduction"] .evidence-seal {
  border-color: rgba(119, 168, 139, 0.4);
  color: var(--green-bright);
}

.evidence-card[data-category="forensic"] .evidence-seal {
  border-color: rgba(168, 58, 67, 0.42);
  color: #c9777e;
}

.evidence-name {
  color: var(--text);
  font-family: var(--serif);
  font-size: 11.5px;
  line-height: 1.35;
  letter-spacing: 0.03em;
}

.evidence-cat {
  color: var(--text-faint);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.evidence-empty {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 116px;
  padding: 16px;
  border: 1px dashed rgba(201, 168, 106, 0.13);
  color: var(--text-faint);
  text-align: center;
  font-size: 10px;
  line-height: 1.8;
}

.evidence-empty .empty-seal {
  margin-bottom: 7px;
  color: rgba(201, 168, 106, 0.28);
  font-family: var(--serif);
  font-size: 22px;
}

.reasoning-bench {
  margin-top: 13px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
}

.bench-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.text-btn {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text-faint);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  cursor: pointer;
}

.text-btn:hover {
  color: var(--gold-bright);
}

.text-btn.danger:hover {
  color: var(--wine-bright);
}

.bench-slots {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 9px;
}

.bench-slot {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 5px 8px;
  border: 1px dashed rgba(201, 168, 106, 0.22);
  background: rgba(255, 255, 255, 0.014);
  color: var(--text-faint);
  font-size: 9.5px;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
}

.bench-slot.is-filled {
  border-style: solid;
  border-color: rgba(201, 168, 106, 0.42);
  color: var(--text);
  background: rgba(201, 168, 106, 0.045);
}

.slot-plus {
  color: var(--gold-dim);
  font-family: var(--mono);
}

.slot-char {
  color: var(--gold-bright);
  font-family: var(--serif);
  font-size: 12px;
}

.slot-name {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.bench-link {
  color: var(--gold-dim);
  font-family: var(--mono);
  font-size: 10px;
}

.btn-bench {
  width: 100%;
  min-height: 33px;
  margin-top: 8px;
  border-color: rgba(201, 168, 106, 0.25);
  font-size: 10.5px;
}

.bench-note {
  margin-top: 7px;
  color: var(--text-faint);
  font-size: 8.5px;
  line-height: 1.6;
}

.panel-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(201, 168, 106, 0.1);
}

/* ---------- Status bar ---------- */

.statusbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  min-height: 28px;
  padding-top: 4px;
  color: var(--text-faint);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.1em;
}

#statusMessage {
  color: var(--text-dim);
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.04em;
}

.status-platform {
  opacity: 0.6;
  white-space: nowrap;
}

.status-meta {
  display: flex;
  align-items: center;
  gap: 14px;
}

.privacy-link {
  color: var(--text-faint);
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}

.privacy-link:hover,
.privacy-link:focus-visible {
  color: var(--gold-bright);
}

/* ---------- Archive ---------- */

.archive-shell {
  min-height: 100%;
  padding: clamp(20px, 3vw, 36px);
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 82% 0%, rgba(118, 34, 41, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(201, 168, 106, 0.035), transparent 34%),
    rgba(13, 15, 18, 0.86);
}

.archive-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.archive-hero-copy {
  min-width: 0;
}

.archive-hero-copy h2 {
  margin-top: 7px;
  font-family: var(--serif);
  font-size: clamp(27px, 3vw, 38px);
  font-weight: 400;
  letter-spacing: 0.13em;
  color: #f0e6d1;
}

.archive-hero-copy > p:last-child {
  max-width: 610px;
  margin-top: 9px;
  color: var(--text-dim);
  font-size: 11.5px;
  line-height: 1.8;
  letter-spacing: 0.03em;
}

.archive-progress {
  flex: 0 0 260px;
  padding: 13px 15px;
  border: 1px solid rgba(201, 168, 106, 0.2);
  background: rgba(8, 9, 11, 0.42);
}

.archive-progress-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  color: var(--gold-dim);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.1em;
}

.archive-progress-head strong {
  color: var(--gold-bright);
  font-size: 13px;
  font-weight: 500;
}

.archive-progress-track {
  height: 3px;
  margin-top: 10px;
  background: rgba(201, 168, 106, 0.12);
  overflow: hidden;
}

.archive-progress-track span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--gold-dim), var(--gold-bright));
  box-shadow: 0 0 9px rgba(201, 168, 106, 0.4);
  transition: width 400ms ease;
}

.archive-progress p {
  margin-top: 9px;
  color: var(--text-faint);
  font-size: 9px;
  line-height: 1.6;
}

.archive-section {
  margin-top: 24px;
}

.archive-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.archive-section-head h3 {
  margin-top: 4px;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--paper);
}

.archive-count {
  color: var(--gold-dim);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
}

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

.chapter-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.022), transparent 58%),
    rgba(15, 17, 20, 0.72);
}

.chapter-card.is-current {
  border-color: rgba(201, 168, 106, 0.45);
  box-shadow: inset 2px 0 var(--gold), 0 12px 34px rgba(0, 0, 0, 0.2);
}

.chapter-card.is-completed {
  border-color: rgba(119, 168, 139, 0.22);
}

.chapter-card.is-coming,
.chapter-card.is-locked {
  opacity: 0.64;
}

.chapter-card-top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.chapter-glyph {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 42px;
  height: 48px;
  border: 1px solid rgba(201, 168, 106, 0.28);
  background: rgba(201, 168, 106, 0.04);
  color: var(--gold-bright);
  font-family: var(--serif);
  font-size: 20px;
}

.chapter-card.is-completed .chapter-glyph {
  border-color: rgba(119, 168, 139, 0.35);
  color: var(--green-bright);
}

.chapter-copy {
  min-width: 0;
  flex: 1;
}

.chapter-order {
  color: var(--gold-dim);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.12em;
}

.chapter-copy h4 {
  margin-top: 4px;
  color: var(--paper);
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0.04em;
}

.chapter-subtitle {
  margin-top: 4px;
  color: var(--text-dim);
  font-size: 10px;
  line-height: 1.5;
}

.chapter-state {
  flex: 0 0 auto;
  padding: 3px 7px;
  border: 1px solid rgba(201, 168, 106, 0.2);
  color: var(--gold-dim);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.chapter-card.is-completed .chapter-state {
  border-color: rgba(119, 168, 139, 0.28);
  color: var(--green-bright);
}

.chapter-card.is-current .chapter-state {
  border-color: rgba(201, 168, 106, 0.4);
  color: var(--gold-bright);
}

.chapter-card.is-early .chapter-state {
  border-color: rgba(168, 58, 67, 0.4);
  color: #c9777e;
}

.chapter-summary {
  flex: 1;
  color: var(--text-dim);
  font-size: 10.5px;
  line-height: 1.75;
}

.chapter-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 11px;
  border-top: 1px solid rgba(201, 168, 106, 0.1);
}

.chapter-extra {
  color: var(--text-faint);
  font-size: 8.5px;
  line-height: 1.55;
}

.chapter-action {
  flex: 0 0 auto;
  min-height: 32px;
  padding: 6px 11px;
  font-size: 9.5px;
}

.archive-locked {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
  padding: 17px 18px;
  border: 1px dashed rgba(201, 168, 106, 0.2);
  background: rgba(8, 9, 11, 0.35);
}

.archive-lock-mark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 34px;
  height: 38px;
  border: 1px solid rgba(168, 58, 67, 0.35);
  color: var(--wine-bright);
  font-family: var(--serif);
  font-size: 15px;
}

.archive-locked strong {
  color: var(--text);
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.archive-locked p {
  margin-top: 4px;
  color: var(--text-faint);
  font-size: 10px;
  line-height: 1.6;
}

.archive-footnote {
  margin-top: 12px;
  color: var(--text-faint);
  font-size: 9px;
  line-height: 1.7;
}

/* ---------- Modal ---------- */

.modal-layer {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(4, 5, 7, 0.78);
  backdrop-filter: blur(7px);
  animation: fade-in 200ms ease both;
}

.modal-card {
  width: min(620px, 100%);
  max-height: min(82vh, 760px);
  overflow: auto;
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(circle at 80% 0%, rgba(118, 34, 41, 0.18), transparent 42%),
    linear-gradient(180deg, #17191d, #0d0f12 80%);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.7), inset 0 0 0 4px rgba(7, 8, 10, 0.9);
  animation: modal-in 300ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.modal-head {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 24px 26px 18px;
  border-bottom: 1px solid var(--line);
}

.modal-seal {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 50px;
  height: 56px;
  border: 1px solid var(--line-strong);
  background: rgba(201, 168, 106, 0.04);
  color: var(--gold-bright);
  font-family: var(--serif);
  font-size: 23px;
}

.modal-title-wrap {
  flex: 1;
  min-width: 0;
}

.modal-kicker {
  color: var(--gold-dim);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.modal-head h2 {
  margin-top: 6px;
  color: #f0e6d1;
  font-family: var(--serif);
  font-size: clamp(20px, 3vw, 27px);
  font-weight: 500;
  letter-spacing: 0.07em;
}

.modal-close {
  flex: 0 0 auto;
}

.modal-body {
  padding: 22px 26px;
  color: var(--text);
  font-size: 12.5px;
  line-height: 1.9;
}

.modal-body p + p {
  margin-top: 11px;
}

.modal-body .lead {
  color: #e4d9c5;
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.85;
}

.modal-body .muted {
  color: var(--text-dim);
  font-size: 11.5px;
}

.modal-evidence-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 15px;
}

.modal-evidence {
  display: flex;
  gap: 11px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid rgba(201, 168, 106, 0.16);
  background: rgba(201, 168, 106, 0.03);
}

.modal-evidence-seal {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 30px;
  height: 34px;
  border: 1px solid rgba(201, 168, 106, 0.28);
  color: var(--gold);
  font-family: var(--serif);
  font-size: 13px;
}

.modal-evidence strong {
  display: block;
  color: var(--gold-bright);
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.modal-evidence p {
  margin-top: 3px;
  color: var(--text-dim);
  font-size: 10.5px;
  line-height: 1.65;
}

.modal-evidence .new-tag {
  margin-left: auto;
  color: var(--gold);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 9px;
  padding: 0 26px 24px;
}

.modal-actions .btn {
  min-width: 100px;
}

.modal-letter {
  font-family: var(--serif);
  color: #dcd1bc;
  font-size: 13.5px;
  line-height: 2;
  letter-spacing: 0.03em;
}

.modal-letter .letter-date {
  margin-bottom: 14px;
  color: var(--text-faint);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
}

.modal-letter .letter-sign {
  margin-top: 18px;
  color: var(--gold);
  text-align: right;
  font-style: italic;
}

.modal-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 16px;
}

.modal-stat {
  padding: 11px;
  border: 1px solid rgba(201, 168, 106, 0.14);
  text-align: center;
}

.modal-stat strong {
  display: block;
  color: var(--gold-bright);
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 400;
}

.modal-stat span {
  display: block;
  margin-top: 3px;
  color: var(--text-faint);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.evidence-insight {
  margin-top: 16px;
  padding: 13px 15px;
  border-left: 2px solid var(--gold);
  background: rgba(201, 168, 106, 0.055);
}

.evidence-insight span {
  display: block;
  color: var(--gold);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.evidence-insight p {
  margin-top: 6px;
  color: #e0d5c0;
  font-family: var(--serif);
  font-size: 13px;
  line-height: 1.8;
}

.brief-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-top: 16px;
}

.brief-grid > div {
  padding: 10px 12px;
  border: 1px solid rgba(201, 168, 106, 0.13);
  background: rgba(255, 255, 255, 0.014);
}

.brief-grid span {
  display: block;
  color: var(--text-faint);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.1em;
}

.brief-grid strong {
  display: block;
  margin-top: 5px;
  color: var(--text);
  font-family: var(--serif);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
}

.btn-bench.is-hinting {
  animation: shake 360ms ease;
}

/* ---------- Ad overlay ---------- */

.ad-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(3, 4, 6, 0.9);
  backdrop-filter: blur(9px);
  animation: fade-in 220ms ease both;
}

.ad-shell {
  width: min(430px, 100%);
  border: 1px solid var(--line-strong);
  background: #0a0b0e;
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.8);
}

.ad-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 13px;
  border-bottom: 1px solid rgba(201, 168, 106, 0.18);
  color: var(--text-faint);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.12em;
}

.ad-live {
  padding: 2px 4px;
  border: 1px solid var(--wine-bright);
  color: var(--wine-bright);
  font-size: 7px;
}

.ad-screen {
  position: relative;
  min-height: 390px;
  padding: 24px 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 42%, rgba(201, 168, 106, 0.13), transparent 38%),
    radial-gradient(circle at 12% 90%, rgba(118, 34, 41, 0.32), transparent 50%),
    linear-gradient(135deg, #121417, #08090b);
}

.ad-grid {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(201, 168, 106, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 168, 106, 0.16) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(circle at 50% 45%, black, transparent 72%);
}

.ad-brand {
  position: absolute;
  top: 15px;
  left: 18px;
  color: rgba(201, 168, 106, 0.5);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.18em;
}

.ad-brand span {
  color: var(--wine-bright);
}

.ad-art {
  position: relative;
  width: 126px;
  height: 126px;
  margin-bottom: 20px;
  display: grid;
  place-items: center;
}

.ad-ring {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(201, 168, 106, 0.22);
  border-radius: 50%;
  animation: ad-spin 14s linear infinite;
}

.ad-ring::before,
.ad-ring::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(168, 58, 67, 0.32);
  border-radius: 50%;
}

.ad-ring::before {
  inset: 9px;
  border-style: dashed;
  animation: ad-spin 20s linear infinite reverse;
}

.ad-ring::after {
  inset: 23px;
  border-color: rgba(201, 168, 106, 0.32);
}

.ad-glyph {
  display: grid;
  place-items: center;
  width: 56px;
  height: 64px;
  border: 1px solid var(--line-strong);
  background: rgba(12, 13, 16, 0.8);
  color: var(--gold-bright);
  font-family: var(--serif);
  font-size: 28px;
  box-shadow: 0 0 30px rgba(201, 168, 106, 0.12);
}

.ad-kicker {
  position: relative;
  z-index: 1;
  color: var(--gold);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.ad-screen h3 {
  position: relative;
  z-index: 1;
  margin-top: 9px;
  color: #efe4ce;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0.06em;
}

.ad-subtitle {
  position: relative;
  z-index: 1;
  margin-top: 8px;
  color: var(--text-dim);
  font-size: 11px;
  line-height: 1.7;
}

.ad-countdown-wrap {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin-top: 22px;
  color: var(--text-faint);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.ad-countdown-wrap strong {
  color: var(--gold-bright);
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
}

.ad-actions {
  display: flex;
  gap: 9px;
  padding: 14px;
  border-top: 1px solid rgba(201, 168, 106, 0.15);
}

.ad-actions .btn {
  flex: 1;
}

.ad-footnote {
  padding: 0 14px 13px;
  color: var(--text-faint);
  font-size: 8.5px;
  line-height: 1.5;
  text-align: center;
}

/* ---------- Toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 38px;
  z-index: 300;
  padding: 9px 17px;
  border: 1px solid var(--line-strong);
  background: rgba(13, 15, 18, 0.95);
  color: var(--gold-bright);
  font-size: 10.5px;
  letter-spacing: 0.05em;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  transform: translate(-50%, 16px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease, transform 220ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- Animations ---------- */

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

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

@keyframes modal-in {
  from { opacity: 0; transform: translateY(14px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

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

@keyframes blink {
  0%, 68% { opacity: 1; }
  69%, 100% { opacity: 0.2; }
}

@keyframes hint-breathe {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201, 168, 106, 0.08); }
  50% { box-shadow: 0 0 0 5px rgba(201, 168, 106, 0.035); }
}

@keyframes evidence-hint {
  0%, 100% { border-color: rgba(201, 168, 106, 0.14); }
  50% { border-color: var(--gold); background: rgba(201, 168, 106, 0.11); }
}

@keyframes crack-in {
  from { opacity: 0.3; transform: translateX(-4px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes ad-spin {
  to { transform: rotate(360deg); }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  50% { transform: translateX(4px); }
  75% { transform: translateX(-2px); }
}

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

.chapter-context {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid rgba(201, 168, 106, 0.24);
  border-left: 2px solid var(--wine-bright);
  background:
    linear-gradient(90deg, rgba(118, 34, 41, 0.14), transparent 38%),
    rgba(14, 15, 18, 0.84);
  color: var(--text-dim);
  cursor: pointer;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.chapter-context-kicker {
  color: var(--gold-dim);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

#chapterContextText {
  color: var(--gold-bright);
  font-family: var(--serif);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.07em;
  white-space: nowrap;
}

.chapter-context-link {
  margin-left: 4px;
  color: var(--text-faint);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.chapter-context:hover,
.chapter-context:focus-visible {
  border-color: var(--line-strong);
  background:
    linear-gradient(90deg, rgba(118, 34, 41, 0.2), transparent 42%),
    rgba(27, 24, 21, 0.94);
  color: var(--gold);
}

.chapter-context:hover .chapter-context-link {
  color: var(--text-dim);
}

.chapter-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}

.chapter-replay {
  min-height: 32px;
  padding: 6px 10px;
  border-color: rgba(201, 168, 106, 0.16);
  color: var(--text-dim);
  font-size: 9.5px;
}

.chapter-replay:hover {
  border-color: var(--line-strong);
  color: var(--gold-bright);
}

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

.recap-grid > div {
  padding: 12px 13px;
  border: 1px solid rgba(201, 168, 106, 0.14);
  background: rgba(8, 9, 11, 0.38);
}

.recap-grid span {
  display: block;
  color: var(--gold-dim);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.recap-grid strong {
  display: block;
  margin-top: 5px;
  color: var(--text);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.65;
}

@media (max-width: 760px) {
  .chapter-context {
    max-width: 100%;
    gap: 8px;
    padding: 7px 10px;
  }

  .chapter-context-kicker {
    font-size: 7.5px;
  }

  #chapterContextText {
    font-size: 11.5px;
  }

  .chapter-context-link {
    font-size: 8px;
  }

  .chapter-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .recap-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1180px) {
  .workspace {
    grid-template-columns: minmax(0, 1fr) 290px;
  }

  .topbar {
    gap: 16px;
  }

  .nav-btn {
    padding: 8px 11px;
    font-size: 12px;
  }

  .notebook {
    grid-template-columns: 1fr 1fr;
  }

  .notebook-status {
    grid-column: 1 / -1;
    border-left: 0 !important;
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 959.98px) {
  .workspace {
    display: block;
  }

  .evidence-toggle {
    display: inline-flex;
  }

  .evidence-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    width: min(360px, 88vw);
    max-height: none;
    border-top: 0;
    border-bottom: 0;
    border-right: 0;
    background:
      linear-gradient(180deg, rgba(201, 168, 106, 0.04), transparent 22%),
      #0b0d10;
    box-shadow: -28px 0 80px rgba(0, 0, 0, 0.7);
    visibility: hidden;
    pointer-events: none;
    transform: translateX(104%);
    transition:
      transform 300ms cubic-bezier(0.22, 1, 0.36, 1),
      visibility 0s linear 300ms;
  }

  .evidence-panel.is-open {
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
    transition:
      transform 300ms cubic-bezier(0.22, 1, 0.36, 1),
      visibility 0s linear 0s;
  }

  .evidence-close {
    display: grid;
  }

  .evidence-grid {
    grid-template-columns: 1fr 1fr;
  }

  .interrogation-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .suspect-rail {
    display: block;
    min-width: 0;
    overflow: hidden;
  }

  .suspect-list {
    width: 100%;
    min-width: 0;
    flex-direction: row;
    overflow-x: auto;
    overscroll-behavior-x: contain;
  }

  .suspect-card {
    flex: 0 0 auto;
    min-width: 155px;
    border-bottom: 0;
    border-right: 1px solid rgba(201, 168, 106, 0.09);
  }

  .suspect-card::before {
    top: auto;
    left: 10px;
    right: 10px;
    bottom: 0;
    width: auto;
    height: 1px;
  }

  .rail-note {
    display: none;
  }
}

@media (max-width: 760px) {
  .app-shell {
    padding: 11px 12px 8px;
    gap: 11px;
  }

  .topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px 8px;
  }

  .brand {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    min-width: 0;
    gap: 9px;
  }

  .brand-seal {
    width: 36px;
    height: 41px;
    font-size: 18px;
  }

  .brand-copy {
    min-width: 0;
  }

  .brand-copy h1 {
    display: block;
    max-height: 2.44em;
    font-size: 15px;
    line-height: 1.22;
    white-space: normal;
    overflow: hidden;
    text-overflow: clip;
  }

  .brand-copy .eyebrow {
    display: none;
  }

  .case-clock {
    display: none;
  }

  .top-actions {
    grid-column: 2;
    grid-row: 1;
    margin-left: 0;
    gap: 6px;
  }

  .btn-hint {
    min-height: 34px;
    padding: 7px 10px;
    font-size: 10.5px;
  }

  .evidence-toggle {
    min-height: 34px;
    padding: 0 8px;
  }

  .main-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    min-width: 0;
    border-top: 1px solid rgba(201, 168, 106, 0.12);
  }

  .nav-btn {
    flex: 1 1 0;
    min-width: 0;
    justify-content: center;
    gap: 5px;
    padding: 9px 3px;
    font-size: 11px;
  }

  .nav-num {
    font-size: 8px;
  }

  .nav-btn.is-active::after {
    bottom: 0;
    left: 10px;
    right: 10px;
  }

  .scene-objective {
    gap: 2px 10px;
    margin-bottom: 8px;
    padding: 9px 11px 10px;
  }

  .objective-copy p {
    margin-top: 4px;
    font-size: 12.5px;
    line-height: 1.42;
  }

  .objective-state {
    padding-left: 9px;
  }

  .objective-state strong {
    font-size: 11px;
  }

  .objective-state span {
    font-size: 7.5px;
  }

  .scene-objective .objective-track {
    margin-top: 4px;
  }

  .scene-topline {
    top: 12px;
    left: 15px;
    right: 15px;
    font-size: 7.5px;
  }

  .scene-caption {
    display: none;
  }

  .scene-hint {
    display: none;
  }

  .touch-hotspots {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-top: 10px;
  }

  .touch-hotspot {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 7px 10px;
    border: 1px solid rgba(201, 168, 106, 0.18);
    background: rgba(15, 17, 20, 0.72);
    text-align: left;
    cursor: pointer;
  }

  .touch-hotspot:active {
    border-color: var(--gold);
    background: rgba(201, 168, 106, 0.07);
  }

  .touch-hotspot-num {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 23px;
    height: 23px;
    border: 1px solid rgba(201, 168, 106, 0.32);
    color: var(--gold);
    font-family: var(--mono);
    font-size: 8px;
  }

  .touch-hotspot-name {
    color: var(--text-dim);
    font-size: 10.5px;
    line-height: 1.35;
  }

  .touch-hotspot.is-done .touch-hotspot-num {
    border-color: rgba(119, 168, 139, 0.4);
    color: var(--green-bright);
  }

  .touch-hotspot.is-done .touch-hotspot-name {
    color: var(--text-faint);
  }

  .deduction-fold {
    margin-top: 9px;
  }

  .deduction-fold summary {
    min-height: 40px;
    padding: 8px 11px;
  }

  .fold-body {
    padding: 0 11px 11px;
  }

  .interrogation-overview {
    padding: 11px 12px 10px;
  }

  .interrogation-overview-note {
    font-size: 8.5px;
  }

  .witness-strip {
    grid-template-columns: repeat(4, 1fr);
  }

  .suspect-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
  }

  .suspect-card {
    min-width: 0;
    border-right: 1px solid rgba(201, 168, 106, 0.09);
    border-bottom: 1px solid rgba(201, 168, 106, 0.09);
  }

  .suspect-card:nth-child(2n) {
    border-right: 0;
  }

  .suspect-card:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .dialogue-panel {
    padding: 18px 16px 15px;
  }

  .suspect-header {
    padding: 14px 15px;
    gap: 12px;
    min-height: 86px;
  }

  .suspect-portrait {
    width: 50px;
    height: 58px;
    font-size: 22px;
  }

  .suspect-title h2 {
    font-size: 19px;
  }

  .suspect-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 7.5px;
  }

  .statement-text {
    font-size: 15.5px;
    line-height: 1.85;
  }

  .response-box {
    min-height: 96px;
    padding: 12px;
  }

  .interrogation-actions .btn {
    flex: 1;
  }

  .present-tray {
    padding: 14px;
  }

  .present-head {
    margin-bottom: 10px;
  }

  .present-attempts {
    align-items: flex-start;
    gap: 7px;
    padding: 9px 10px;
    margin-bottom: 16px;
  }

  .attempt-note {
    font-size: 9.5px;
    line-height: 1.45;
  }

  .attempt-copy {
    flex-basis: 100%;
  }

  .attempt-side {
    width: 100%;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    margin-left: 0;
  }

  .present-grid {
    grid-template-columns: 1fr 1fr;
  }

  .verdict-shell {
    padding: 22px 15px;
  }

  .verdict-options {
    grid-template-columns: 1fr;
  }

  .archive-shell {
    padding: 18px 14px;
  }

  .archive-hero {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .archive-progress {
    flex: 0 0 auto;
  }

  .chapter-grid {
    grid-template-columns: 1fr;
  }

  .chapter-card {
    padding: 14px;
  }

  .chapter-card-foot {
    flex-wrap: wrap;
  }

  .chapter-extra {
    flex: 1 1 150px;
  }

  .modal-head {
    padding: 18px 17px 14px;
    gap: 12px;
  }

  .modal-body {
    padding: 17px;
  }

  .modal-actions {
    padding: 0 17px 18px;
  }

  .modal-actions .btn {
    flex: 1;
    min-width: 0;
  }

  .modal-stats {
    grid-template-columns: 1fr;
  }

  .brief-grid {
    grid-template-columns: 1fr;
  }

  .status-platform {
    display: none;
  }

  .ad-screen {
    min-height: 340px;
    padding: 20px;
  }

  .ad-art {
    width: 104px;
    height: 104px;
  }
}

@media (max-width: 420px) {
  .brand-copy h1 {
    font-size: 14px;
    letter-spacing: 0.04em;
  }

  .brand-seal {
    width: 33px;
    height: 38px;
    font-size: 17px;
  }

  .nav-btn {
    gap: 3px;
    padding: 8px 2px;
    font-size: 9.5px;
    letter-spacing: 0.02em;
  }

  .nav-num {
    font-size: 7.5px;
  }

  .btn-hint span:first-child {
    display: none;
  }

  .btn-hint::before {
    content: "提示";
    letter-spacing: 0.08em;
  }

  .evidence-toggle {
    gap: 4px;
    padding: 0 6px;
  }

  .evidence-toggle-label {
    font-size: 9px;
  }

  .evidence-toggle-count {
    min-width: 25px;
    height: 19px;
    padding: 0 4px;
    font-size: 7.5px;
  }

  .suspect-card {
    gap: 7px;
    padding: 10px 8px;
  }

  .suspect-mini-seal {
    width: 28px;
    height: 32px;
    font-size: 14px;
  }

  .suspect-meta strong {
    max-height: 2.5em;
    font-size: 13px;
    line-height: 1.25;
    white-space: normal;
    text-overflow: clip;
  }

  .suspect-meta span {
    display: none;
  }

  .suspect-status {
    font-size: 7px;
  }

  .present-grid {
    grid-template-columns: 1fr;
  }

  .claim-chips {
    gap: 4px;
  }

  .claim-chip {
    font-size: 8.5px;
  }

  .archive-hero-copy h2 {
    font-size: 25px;
  }

  .chapter-copy h4 {
    font-size: 15px;
  }

  .chapter-state {
    padding: 2px 5px;
    font-size: 7.5px;
  }
}

/* ---------- First-run story ---------- */

body.intro-open,
html.intro-open {
  overflow: hidden;
}

.intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 700;
  display: grid;
  place-items: center;
  padding: clamp(10px, 3vw, 28px);
  overflow-y: auto;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 72% 28%, rgba(201, 168, 106, 0.08), transparent 34%),
    radial-gradient(circle at 22% 82%, rgba(118, 34, 41, 0.14), transparent 42%),
    rgba(4, 5, 7, 0.93);
  scrollbar-width: none;
  backdrop-filter: blur(9px);
  animation: fade-in 260ms ease both;
}

.intro-overlay::-webkit-scrollbar {
  display: none;
}

.intro-frame {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  width: min(1080px, 100%);
  height: min(640px, calc(100dvh - 56px));
  min-height: 480px;
  overflow: hidden;
  border: 1px solid rgba(201, 168, 106, 0.34);
  background: #0b0c0f;
  box-shadow:
    0 32px 100px rgba(0, 0, 0, 0.75),
    inset 0 0 0 4px rgba(4, 5, 7, 0.92),
    inset 0 0 0 5px rgba(201, 168, 106, 0.08);
}

.intro-frame::before,
.intro-frame::after {
  position: absolute;
  z-index: 12;
  width: 13px;
  height: 13px;
  border: 1px solid rgba(201, 168, 106, 0.42);
  content: "";
  pointer-events: none;
}

.intro-frame::before {
  top: 10px;
  left: 10px;
  border-right: 0;
  border-bottom: 0;
}

.intro-frame::after {
  right: 10px;
  bottom: 10px;
  border-top: 0;
  border-left: 0;
}

.intro-stage {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border-right: 1px solid rgba(201, 168, 106, 0.18);
  background:
    linear-gradient(180deg, #090b10 0%, #11131a 42%, #17130f 100%);
  isolation: isolate;
}

.intro-stage::before {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(3, 4, 7, 0.7), transparent 26%, transparent 72%, rgba(3, 4, 7, 0.65)),
    linear-gradient(180deg, rgba(3, 4, 7, 0.1), transparent 55%, rgba(3, 4, 7, 0.72));
  content: "";
  pointer-events: none;
}

.intro-storm {
  position: absolute;
  inset: -15%;
  z-index: 1;
  background:
    repeating-linear-gradient(112deg, transparent 0 28px, rgba(197, 205, 218, 0.025) 29px 30px, transparent 31px 58px),
    radial-gradient(ellipse at 50% 22%, rgba(92, 106, 128, 0.16), transparent 52%);
  animation: intro-storm-shift 12s ease-in-out infinite alternate;
}

.intro-moon {
  position: absolute;
  top: 11%;
  left: 14%;
  z-index: 1;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 35%, #e5d9bd, #9d8d70 58%, #4c4539 100%);
  box-shadow: 0 0 38px rgba(201, 168, 106, 0.18);
  opacity: 0.34;
  filter: blur(0.2px);
}

.intro-manor {
  position: absolute;
  right: 8%;
  bottom: 23%;
  left: 8%;
  z-index: 1;
  height: 46%;
  opacity: 0.66;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.4));
}

.intro-manor span {
  position: absolute;
  bottom: 0;
  display: block;
  background:
    linear-gradient(90deg, #080a0d, #1d2025 46%, #090b0e);
  box-shadow: inset 0 1px 0 rgba(201, 168, 106, 0.08);
}

.intro-manor span:nth-child(1) {
  left: 2%;
  width: 24%;
  height: 38%;
}

.intro-manor span:nth-child(2) {
  left: 23%;
  width: 34%;
  height: 62%;
}

.intro-manor span:nth-child(3) {
  left: 55%;
  width: 20%;
  height: 45%;
}

.intro-manor span:nth-child(4) {
  right: 1%;
  width: 26%;
  height: 30%;
}

.intro-manor span:nth-child(2)::before {
  position: absolute;
  top: -27%;
  left: 40%;
  width: 22%;
  height: 28%;
  background: #11141a;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  content: "";
}

.intro-window {
  position: absolute;
  top: 12%;
  right: 9%;
  z-index: 2;
  width: 42%;
  height: 46%;
  border: 7px solid #12100d;
  background:
    linear-gradient(90deg, transparent 47%, rgba(9, 9, 11, 0.86) 48% 52%, transparent 53%),
    linear-gradient(180deg, transparent 47%, rgba(9, 9, 11, 0.86) 48% 52%, transparent 53%),
    radial-gradient(ellipse at 52% 42%, rgba(208, 178, 118, 0.2), rgba(58, 57, 64, 0.1) 54%, rgba(4, 6, 10, 0.88) 100%);
  box-shadow:
    0 0 0 1px rgba(201, 168, 106, 0.2),
    inset 0 0 32px rgba(0, 0, 0, 0.8),
    0 0 30px rgba(201, 168, 106, 0.05);
}

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

.intro-window::before {
  inset: 9px;
  border: 1px solid rgba(201, 168, 106, 0.18);
}

.intro-window::after {
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  background: rgba(201, 168, 106, 0.18);
}

.intro-window-pane {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0 42%, rgba(232, 221, 197, 0.055) 43% 44%, transparent 45% 100%);
}

.intro-window-glow {
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 168, 106, 0.2), transparent 68%);
  animation: intro-window-pulse 5s ease-in-out infinite alternate;
}

.intro-snow {
  position: absolute;
  inset: 0;
  z-index: 4;
  overflow: hidden;
  pointer-events: none;
  transition: opacity 600ms ease;
}

.intro-snow i {
  position: absolute;
  top: -10%;
  display: block;
  width: 2px;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(236, 242, 246, 0.7), rgba(236, 242, 246, 0));
  opacity: 0.55;
  animation: intro-snowfall 6.5s linear infinite;
}

.intro-snow i:nth-child(1) { left: 5%; animation-delay: -1.2s; animation-duration: 5.7s; }
.intro-snow i:nth-child(2) { left: 14%; animation-delay: -4.1s; animation-duration: 7.3s; height: 20px; }
.intro-snow i:nth-child(3) { left: 23%; animation-delay: -2.6s; animation-duration: 6.4s; }
.intro-snow i:nth-child(4) { left: 33%; animation-delay: -5.2s; animation-duration: 8.1s; height: 11px; }
.intro-snow i:nth-child(5) { left: 42%; animation-delay: -0.8s; animation-duration: 6.9s; }
.intro-snow i:nth-child(6) { left: 51%; animation-delay: -3.5s; animation-duration: 5.9s; height: 18px; }
.intro-snow i:nth-child(7) { left: 61%; animation-delay: -5.8s; animation-duration: 7.7s; }
.intro-snow i:nth-child(8) { left: 69%; animation-delay: -2.1s; animation-duration: 6.2s; height: 9px; }
.intro-snow i:nth-child(9) { left: 77%; animation-delay: -4.7s; animation-duration: 8.4s; }
.intro-snow i:nth-child(10) { left: 85%; animation-delay: -1.6s; animation-duration: 6.7s; height: 16px; }
.intro-snow i:nth-child(11) { left: 92%; animation-delay: -3.9s; animation-duration: 5.5s; }
.intro-snow i:nth-child(12) { left: 97%; animation-delay: -0.4s; animation-duration: 7.1s; height: 13px; }

.intro-floor {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 3;
  height: 27%;
  background:
    repeating-linear-gradient(90deg, transparent 0 38px, rgba(201, 168, 106, 0.035) 39px 40px),
    linear-gradient(180deg, rgba(27, 22, 17, 0.22), rgba(8, 7, 6, 0.92));
  border-top: 1px solid rgba(201, 168, 106, 0.14);
}

.intro-clock,
.intro-door,
.intro-suspects,
.intro-letter {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.intro-clock {
  position: absolute;
  bottom: 10%;
  left: 12%;
  z-index: 5;
  width: 142px;
  height: 310px;
}

.intro-clock-face {
  position: absolute;
  top: 0;
  left: 0;
  width: 142px;
  height: 142px;
  border: 7px solid #241d14;
  border-radius: 50%;
  background:
    repeating-conic-gradient(from 0deg, rgba(201, 168, 106, 0.45) 0 1deg, transparent 1deg 30deg),
    radial-gradient(circle at 45% 40%, #d7c7a5, #88785e 58%, #322b21 100%);
  box-shadow:
    0 0 0 2px rgba(201, 168, 106, 0.22),
    inset 0 0 22px rgba(0, 0, 0, 0.72),
    0 14px 30px rgba(0, 0, 0, 0.45);
}

.intro-clock-face::before {
  position: absolute;
  inset: 15px;
  border: 1px solid rgba(62, 49, 33, 0.42);
  border-radius: 50%;
  content: "";
}

.intro-clock-hand {
  position: absolute;
  bottom: 50%;
  left: 50%;
  display: block;
  transform-origin: 50% 100%;
  border-radius: 999px;
  background: #2d2419;
}

.intro-clock-hour {
  width: 4px;
  height: 34px;
  transform: translateX(-50%) rotate(8.5deg);
}

.intro-clock-minute {
  width: 2px;
  height: 52px;
  transform: translateX(-50%) rotate(102deg);
  background: #4b3b27;
}

.intro-clock-face b {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2a2118;
  transform: translate(-50%, -50%);
}

.intro-clock-base {
  position: absolute;
  bottom: 0;
  left: 50%;
  display: block;
  width: 104px;
  height: 166px;
  border: 1px solid rgba(201, 168, 106, 0.28);
  background:
    linear-gradient(90deg, #100e0b, #2c251b 45%, #100e0b),
    repeating-linear-gradient(180deg, transparent 0 31px, rgba(201, 168, 106, 0.08) 32px 33px);
  box-shadow: 10px 18px 26px rgba(0, 0, 0, 0.42);
  transform: translateX(-50%);
  clip-path: polygon(12% 0, 88% 0, 100% 100%, 0 100%);
}

.intro-clock-base::before {
  position: absolute;
  top: 18px;
  left: 50%;
  width: 1px;
  height: 48px;
  background: #8e7957;
  content: "";
  transform: translateX(-50%);
}

.intro-clock-base::after {
  position: absolute;
  bottom: 18px;
  left: 50%;
  width: 27px;
  height: 27px;
  border: 1px solid rgba(201, 168, 106, 0.3);
  border-radius: 50%;
  content: "";
  transform: translateX(-50%);
}

.intro-door {
  position: absolute;
  right: 13%;
  bottom: 11%;
  z-index: 5;
  width: 184px;
  height: 332px;
  border: 8px solid #17120e;
  background:
    linear-gradient(90deg, rgba(201, 168, 106, 0.04), transparent 28% 72%, rgba(201, 168, 106, 0.035)),
    repeating-linear-gradient(180deg, transparent 0 79px, rgba(201, 168, 106, 0.12) 80px 81px),
    linear-gradient(110deg, #1e1711, #32271c 48%, #130f0b);
  box-shadow:
    0 0 0 1px rgba(201, 168, 106, 0.24),
    inset 0 0 0 5px rgba(7, 6, 5, 0.7),
    16px 18px 32px rgba(0, 0, 0, 0.5);
}

.intro-door::before {
  position: absolute;
  top: 6%;
  right: 7%;
  left: 7%;
  height: 39%;
  border: 1px solid rgba(201, 168, 106, 0.2);
  content: "";
}

.intro-door::after {
  position: absolute;
  top: 52%;
  right: 7%;
  left: 7%;
  height: 35%;
  border: 1px solid rgba(201, 168, 106, 0.16);
  content: "";
}

.intro-door i {
  position: absolute;
  top: 50%;
  right: 13%;
  width: 7px;
  height: 7px;
  border: 1px solid rgba(201, 168, 106, 0.65);
  border-radius: 50%;
  background: #080706;
}

.intro-suspects {
  position: absolute;
  right: 8%;
  bottom: 10%;
  left: 5%;
  z-index: 5;
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  height: 188px;
  pointer-events: none;
}

.intro-suspects i {
  position: relative;
  display: block;
  width: 45px;
  height: 132px;
  border-radius: 48% 48% 10px 10px;
  background: linear-gradient(180deg, #0d0e11, #191b20 65%, #08090b);
  box-shadow: 0 14px 24px rgba(0, 0, 0, 0.5);
}

.intro-suspects i::before {
  position: absolute;
  top: -25px;
  left: 50%;
  width: 31px;
  height: 34px;
  border-radius: 48% 48% 42% 42%;
  background: #111216;
  content: "";
  transform: translateX(-50%);
}

.intro-suspects i:nth-child(2) {
  width: 54px;
  height: 119px;
  opacity: 0.76;
}

.intro-suspects i:nth-child(3) {
  width: 39px;
  height: 143px;
  opacity: 0.9;
}

.intro-suspects i:nth-child(4) {
  width: 48px;
  height: 124px;
  opacity: 0.65;
}

.intro-letter {
  position: absolute;
  bottom: 13%;
  left: 50%;
  z-index: 6;
  width: min(250px, 48%);
  height: 154px;
  padding: 27px 22px;
  border: 1px solid rgba(133, 111, 74, 0.62);
  background:
    repeating-linear-gradient(180deg, transparent 0 21px, rgba(119, 96, 61, 0.2) 22px 23px),
    linear-gradient(108deg, #cfc0a1, #e6d9bd 42%, #b9a786);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.48),
    inset 0 0 30px rgba(113, 87, 50, 0.16);
  transform: rotate(-4deg) translateY(16px);
}

.intro-letter::before {
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(87, 68, 43, 0.2);
  content: "";
}

.intro-letter i {
  display: block;
  width: 76%;
  height: 2px;
  margin-bottom: 13px;
  background: rgba(76, 58, 35, 0.32);
}

.intro-letter i:nth-of-type(2) {
  width: 62%;
}

.intro-letter i:nth-of-type(3) {
  width: 81%;
}

.intro-letter i:nth-of-type(4) {
  width: 46%;
  margin-top: 22px;
}

.intro-wax {
  position: absolute;
  right: 18px;
  bottom: 16px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #d8b58c;
  font-family: var(--serif);
  font-size: 16px;
  background: radial-gradient(circle at 35% 30%, #94333a, #5a171d 65%, #2f0d10);
  box-shadow: 0 3px 8px rgba(32, 6, 8, 0.45);
  transform: rotate(8deg);
}

.intro-vignette {
  position: absolute;
  inset: 0;
  z-index: 8;
  background:
    radial-gradient(ellipse at center, transparent 45%, rgba(4, 5, 7, 0.62) 100%),
    linear-gradient(180deg, rgba(4, 5, 7, 0.35), transparent 24% 76%, rgba(4, 5, 7, 0.6));
  pointer-events: none;
}

.intro-case-tag {
  position: absolute;
  top: 16px;
  left: 18px;
  z-index: 10;
  color: rgba(232, 221, 197, 0.52);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.18em;
  line-height: 1.5;
}

.intro-case-tag b {
  color: var(--gold);
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.intro-overlay[data-scene="2"] .intro-clock,
.intro-overlay[data-scene="3"] .intro-door,
.intro-overlay[data-scene="3"] .intro-suspects,
.intro-overlay[data-scene="4"] .intro-letter {
  opacity: 1;
  transform: translateY(0);
}

.intro-overlay[data-scene="4"] .intro-letter {
  transform: rotate(-4deg) translateY(0);
}

.intro-overlay[data-scene="2"] .intro-window-glow {
  background: radial-gradient(circle, rgba(150, 46, 53, 0.25), transparent 70%);
}

.intro-overlay[data-scene="1"] .intro-stage {
  background:
    radial-gradient(ellipse at 62% 18%, rgba(153, 173, 200, 0.16), transparent 42%),
    linear-gradient(180deg, #0b111b 0%, #17212c 44%, #2a2118 100%);
}

.intro-overlay[data-scene="1"] .intro-storm {
  opacity: 1;
}

.intro-overlay[data-scene="1"] .intro-moon {
  opacity: 0.58;
  box-shadow: 0 0 52px rgba(208, 189, 151, 0.32);
}

.intro-overlay[data-scene="1"] .intro-manor {
  opacity: 0.92;
}

.intro-overlay[data-scene="1"] .intro-manor span {
  background: linear-gradient(90deg, #0b1017, #303844 46%, #0b0f15);
  box-shadow: inset 0 1px 0 rgba(201, 168, 106, 0.16);
}

.intro-overlay[data-scene="1"] .intro-window {
  border-color: #241b12;
  background:
    linear-gradient(90deg, transparent 47%, rgba(9, 9, 11, 0.9) 48% 52%, transparent 53%),
    linear-gradient(180deg, transparent 47%, rgba(9, 9, 11, 0.9) 48% 52%, transparent 53%),
    radial-gradient(ellipse at 52% 42%, rgba(226, 193, 124, 0.3), rgba(82, 83, 92, 0.18) 54%, rgba(5, 8, 13, 0.9) 100%);
  box-shadow:
    0 0 0 1px rgba(201, 168, 106, 0.26),
    inset 0 0 32px rgba(0, 0, 0, 0.72),
    0 0 48px rgba(201, 168, 106, 0.14);
}

.intro-overlay[data-scene="1"] .intro-window-glow {
  opacity: 0.9;
  background: radial-gradient(circle, rgba(233, 205, 150, 0.28), transparent 68%);
}

.intro-overlay[data-scene="1"] .intro-snow i {
  background: linear-gradient(180deg, rgba(245, 249, 252, 0.9), rgba(236, 242, 246, 0));
  opacity: 0.8;
}

.intro-overlay[data-scene="3"] .intro-moon,
.intro-overlay[data-scene="4"] .intro-moon {
  opacity: 0.18;
}

.intro-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: clamp(28px, 4.5vw, 56px);
  overflow-y: auto;
  background:
    radial-gradient(circle at 100% 0%, rgba(201, 168, 106, 0.07), transparent 34%),
    linear-gradient(150deg, #17191e 0%, #101216 58%, #0c0d10 100%);
}

.intro-copy::before {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 42px;
  height: 1px;
  background: rgba(201, 168, 106, 0.32);
  box-shadow: 0 5px 0 rgba(201, 168, 106, 0.12);
  content: "";
}

.intro-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.intro-eyebrow {
  color: var(--gold-dim);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.16em;
  line-height: 1.7;
  text-transform: uppercase;
}

.intro-scene-number {
  flex: 0 0 auto;
  padding: 4px 6px;
  border: 1px solid rgba(201, 168, 106, 0.22);
  color: var(--text-faint);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.intro-title {
  max-width: 100%;
  margin-top: 22px;
  color: #fff3dc;
  font-family: var(--serif);
  font-size: clamp(30px, 3.8vw, 48px);
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.25;
  overflow-wrap: anywhere;
  text-shadow: 0 2px 2px rgba(0, 0, 0, 0.42), 0 10px 34px rgba(0, 0, 0, 0.4);
}

.intro-description {
  max-width: 340px;
  margin-top: 18px;
  color: #e0d5c2;
  font-size: 14px;
  line-height: 1.95;
  letter-spacing: 0.02em;
  overflow-wrap: anywhere;
}

.intro-time {
  margin-top: 17px;
  color: var(--gold-dim);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  line-height: 1.7;
}

.intro-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 34px;
}

.intro-progress-track {
  display: block;
  flex: 1 1 auto;
  height: 2px;
  background: rgba(201, 168, 106, 0.14);
  overflow: hidden;
}

.intro-progress-fill {
  display: block;
  width: 25%;
  height: 100%;
  background: linear-gradient(90deg, var(--gold-dim), var(--gold-bright));
  transition: width 500ms ease;
}

.intro-dots {
  display: flex;
  flex: 0 0 auto;
  gap: 5px;
}

.intro-dot {
  display: block;
  width: 5px;
  height: 5px;
  border: 1px solid rgba(201, 168, 106, 0.34);
  border-radius: 50%;
}

.intro-dot.is-active {
  border-color: var(--gold-bright);
  background: var(--gold-bright);
  box-shadow: 0 0 8px rgba(235, 207, 149, 0.45);
}

.intro-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.intro-actions .btn {
  min-width: 112px;
  min-height: 44px;
  padding: 0 18px;
  font-size: 11px;
}

.intro-help {
  margin-top: 12px;
  color: var(--text-faint);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  line-height: 1.7;
}

@keyframes intro-snowfall {
  0% {
    opacity: 0;
    transform: translate3d(0, -8%, 0);
  }

  12% {
    opacity: 0.6;
  }

  88% {
    opacity: 0.42;
  }

  100% {
    opacity: 0;
    transform: translate3d(26px, 118%, 0);
  }
}

@keyframes intro-storm-shift {
  from {
    opacity: 0.72;
    transform: translate3d(-1.5%, 0, 0) scale(1.02);
  }

  to {
    opacity: 1;
    transform: translate3d(1.5%, 1%, 0) scale(1.04);
  }
}

@keyframes intro-window-pulse {
  from {
    opacity: 0.48;
  }

  to {
    opacity: 0.9;
  }
}

@media (max-width: 760px) {
  .intro-overlay {
    align-items: stretch;
    padding: 0;
  }

  .intro-frame {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(205px, 34vh) minmax(0, 1fr);
    width: 100%;
    height: 100dvh;
    max-height: none;
    min-height: 0;
    border: 0;
    box-shadow: none;
  }

  .intro-frame::before,
  .intro-frame::after {
    display: none;
  }

  .intro-stage {
    border-right: 0;
    border-bottom: 1px solid rgba(201, 168, 106, 0.18);
  }

  .intro-copy {
    justify-content: flex-start;
    padding: 24px 26px 22px;
  }

  .intro-copy::before {
    top: 18px;
    right: 18px;
  }

  .intro-title {
    margin-top: 13px;
    font-size: clamp(27px, 7vw, 38px);
  }

  .intro-description {
    max-width: 560px;
    margin-top: 12px;
    font-size: 13.5px;
    line-height: 1.85;
  }

  .intro-progress {
    margin-top: 22px;
  }

  .intro-actions {
    margin-top: 20px;
  }

  .intro-clock {
    bottom: 4%;
    left: 9%;
    width: 106px;
    height: 232px;
  }

  .intro-clock-face {
    width: 106px;
    height: 106px;
    border-width: 5px;
  }

  .intro-clock-hour {
    height: 27px;
  }

  .intro-clock-minute {
    height: 40px;
  }

  .intro-clock-base {
    width: 79px;
    height: 126px;
  }

  .intro-door {
    right: 10%;
    bottom: 5%;
    width: 142px;
    height: 248px;
  }

  .intro-letter {
    bottom: 7%;
    width: min(220px, 48%);
    height: 126px;
    padding: 22px 18px;
  }
}

@media (max-width: 420px) {
  .intro-frame {
    grid-template-rows: minmax(188px, 31vh) minmax(0, 1fr);
  }

  .intro-copy {
    padding: 18px 18px 16px;
  }

  .intro-topline {
    gap: 10px;
  }

  .intro-eyebrow {
    font-size: 7px;
    letter-spacing: 0.12em;
  }

  .intro-scene-number {
    padding: 3px 5px;
    font-size: 7px;
  }

  .intro-title {
    margin-top: 10px;
    font-size: 25px;
    letter-spacing: 0.06em;
  }

  .intro-description {
    margin-top: 9px;
    font-size: 12.5px;
    line-height: 1.8;
  }

  .intro-time {
    margin-top: 10px;
    font-size: 8px;
  }

  .intro-progress {
    gap: 8px;
    margin-top: 15px;
  }

  .intro-actions {
    gap: 8px;
    margin-top: 16px;
  }

  .intro-actions .btn {
    flex: 1 1 120px;
    min-width: 0;
    min-height: 42px;
    padding: 0 10px;
    font-size: 10px;
  }

  .intro-help {
    margin-top: 9px;
    font-size: 7.5px;
    line-height: 1.6;
  }

  .intro-clock {
    left: 7%;
    width: 88px;
    height: 194px;
  }

  .intro-clock-face {
    width: 88px;
    height: 88px;
  }

  .intro-clock-hour {
    height: 22px;
  }

  .intro-clock-minute {
    height: 33px;
  }

  .intro-clock-base {
    width: 66px;
    height: 107px;
  }

  .intro-door {
    right: 7%;
    width: 118px;
    height: 208px;
    border-width: 6px;
  }

  .intro-suspects {
    right: 3%;
    left: 2%;
    height: 155px;
  }

  .intro-suspects i {
    width: 34px;
    height: 105px;
  }

  .intro-suspects i::before {
    top: -21px;
    width: 25px;
    height: 27px;
  }

  .intro-suspects i:nth-child(2) {
    width: 40px;
    height: 93px;
  }

  .intro-suspects i:nth-child(3) {
    width: 31px;
    height: 112px;
  }

  .intro-suspects i:nth-child(4) {
    width: 37px;
    height: 99px;
  }

  .intro-letter {
    bottom: 7%;
    width: 176px;
    height: 112px;
    padding: 19px 15px;
  }

  .intro-window {
    top: 10%;
    right: 7%;
    width: 48%;
    height: 43%;
    border-width: 5px;
  }

  .intro-moon {
    top: 9%;
    left: 9%;
    width: 50px;
    height: 50px;
  }

  .intro-case-tag {
    top: 12px;
    left: 12px;
    font-size: 6px;
  }

  .intro-case-tag b {
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .intro-overlay,
  .intro-storm,
  .intro-snow i,
  .intro-window-glow,
  .intro-clock,
  .intro-door,
  .intro-suspects,
  .intro-letter,
  .intro-progress-fill {
    animation: none !important;
    transition: none !important;
  }
}

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

.privacy-page {
  width: min(760px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(36px, 7vw, 88px) 0;
  color: var(--text);
  line-height: 1.85;
}

.privacy-page h1 {
  margin: 8px 0 12px;
  color: var(--paper);
  font-family: var(--serif);
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 600;
}

.privacy-page h2 {
  margin: 34px 0 10px;
  color: var(--gold-bright);
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
}

.privacy-page p {
  margin: 10px 0;
  color: var(--text-dim);
  font-size: 14px;
}

.privacy-page ul {
  margin: 10px 0;
  padding-left: 22px;
  color: var(--text-dim);
  font-size: 14px;
}

.privacy-page li {
  margin: 6px 0;
}

.privacy-page a {
  color: var(--gold);
  text-underline-offset: 3px;
  word-break: break-all;
}

.privacy-page a:hover,
.privacy-page a:focus-visible {
  color: var(--gold-bright);
}

.privacy-page .privacy-meta {
  color: var(--text-faint);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.privacy-page .privacy-lead {
  margin-top: 18px;
  color: var(--text);
}

.privacy-page .privacy-back {
  margin-top: 44px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
