:root {
  --bg: #061018;
  --bg-soft: #0a1822;
  --panel: rgba(13, 29, 40, .82);
  --panel-solid: #0d1d28;
  --text: #e9f4f5;
  --muted: #91a8b0;
  --line: rgba(165, 207, 215, .17);
  --teal: #56e0c2;
  --blue: #78baff;
  --gold: #ffc86b;
  --red: #ff7b80;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  overflow-x: clip;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 8%, rgba(71, 190, 177, .11), transparent 28rem),
    radial-gradient(circle at 88% 34%, rgba(85, 132, 219, .11), transparent 34rem),
    linear-gradient(rgba(120, 186, 255, .022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 186, 255, .022) 1px, transparent 1px),
    var(--bg);
  background-size: auto, auto, 48px 48px, 48px 48px, auto;
  font-family: "Segoe UI", Arial, sans-serif;
  line-height: 1.55;
}

button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible { outline: 0; box-shadow: inset 0 0 0 2px var(--text); }
a:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }

.hover-overload-layer {
  position: fixed;
  inset: 0;
  z-index: 80;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  mix-blend-mode: screen;
}
.overload-target {
  --overload-x: 50%;
  --overload-y: 50%;
  position: relative;
  isolation: isolate;
  transition: color .18s ease, border-color .18s ease, background-color .18s ease, box-shadow .18s ease, filter .18s ease, transform .18s ease;
}
.overload-target::after {
  content: "";
  position: absolute;
  z-index: 3;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(150px circle at var(--overload-x) var(--overload-y), rgba(236, 255, 252, .34), rgba(86, 224, 194, .11) 28%, transparent 68%),
    linear-gradient(105deg, transparent 18%, rgba(218, 255, 250, .12) 48%, transparent 78%);
  mix-blend-mode: screen;
  transition: opacity .13s ease;
}
.overload-target.overload-live {
  border-color: rgba(155, 255, 238, .86) !important;
  box-shadow:
    0 0 0 1px rgba(208, 255, 248, .24),
    0 0 15px rgba(86, 224, 194, .36),
    0 0 42px rgba(86, 224, 194, .19),
    inset 0 0 19px rgba(108, 241, 220, .12);
  filter: brightness(1.12) saturate(1.16);
}
.overload-target.overload-live::after { opacity: 1; }
.primary-button.overload-live,
.map-filters button.overload-live {
  color: #02120e;
  background-color: #82f2dc;
}

.debrief-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  width: min(1280px, calc(100% - 48px));
  min-height: 74px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(6, 16, 24, .88);
  backdrop-filter: blur(18px);
}
.debrief-brand { display: flex; align-items: center; gap: 13px; color: inherit; text-decoration: none; }
.debrief-brand span:last-child, .debrief-brand small, .debrief-brand strong { display: block; }
.debrief-brand small { color: var(--muted); font: 10px Consolas, monospace; letter-spacing: .16em; }
.debrief-brand strong { font-size: 14px; font-weight: 550; letter-spacing: .08em; }
.debrief-brand-mark { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--teal); border-radius: 50%; color: var(--teal); font: 700 10px Consolas, monospace; box-shadow: 0 0 28px rgba(86, 224, 194, .13); }
.debrief-status { padding: 7px 10px; border: 1px solid var(--line); color: var(--gold); font: 11px Consolas, monospace; letter-spacing: .08em; }
.debrief-status.ready { color: var(--teal); }

main, footer { width: min(1280px, calc(100% - 48px)); margin: 0 auto; }
main { padding: 48px 0 80px; }
.access-panel { min-height: 58vh; display: grid; align-content: center; justify-items: start; max-width: 760px; }
.access-panel h1 { margin: 16px 0 12px; font-size: clamp(2.5rem, 7vw, 5.2rem); line-height: .98; font-weight: 330; letter-spacing: -.05em; }
.access-panel p { max-width: 620px; color: var(--muted); }
.text-link { color: var(--teal); }
.kicker { color: var(--teal); font: 11px Consolas, monospace; letter-spacing: .14em; text-transform: uppercase; }

.chapter-nav { position: sticky; top: 74px; z-index: 15; display: grid; grid-template-columns: repeat(3, 1fr); margin-bottom: 56px; border: 1px solid var(--line); background: rgba(6, 16, 24, .94); backdrop-filter: blur(14px); }
.chapter-nav a { padding: 14px 18px; border-right: 1px solid var(--line); color: var(--muted); text-decoration: none; font-size: 13px; }
.chapter-nav a:last-child { border-right: 0; }
.chapter-nav a:hover { color: var(--text); background: rgba(86, 224, 194, .05); }
.chapter-nav span { margin-right: 10px; color: var(--teal); font: 11px Consolas, monospace; }

.reveal-section { min-height: 64vh; display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(260px, .7fr); align-items: center; gap: clamp(36px, 8vw, 110px); padding: 40px 0 80px; }
.reveal-copy h1 { max-width: 920px; margin: 18px 0; font-size: clamp(3rem, 7.2vw, 7rem); line-height: .9; font-weight: 300; letter-spacing: -.06em; }
.lead { max-width: 780px; color: var(--muted); font-size: clamp(1rem, 1.5vw, 1.25rem); }
.safety-list { display: grid; gap: 10px; max-width: 820px; margin: 30px 0 0; padding: 0; list-style: none; }
.safety-list li { padding: 12px 14px 12px 42px; position: relative; border: 1px solid var(--line); background: rgba(86, 224, 194, .035); font-size: 14px; }
.safety-list li::before { content: "✓"; position: absolute; left: 15px; color: var(--teal); font-weight: 700; }
.identity-card { padding: 28px; border: 1px solid var(--line); border-top-color: var(--teal); background: var(--panel); box-shadow: 0 24px 70px rgba(0, 0, 0, .25); }
.identity-card strong { display: block; margin-top: 16px; font: 500 clamp(1.6rem, 4vw, 2.6rem) Consolas, monospace; word-break: break-word; }
.identity-card p { color: var(--muted); font-size: 13px; }

.identity-reveal { padding: 88px 0; border-top: 1px solid var(--line); }
.age-portrait { position: relative; width: 100%; height: min(78vh, 850px); min-height: 520px; overflow: hidden; border: 1px solid var(--line); background: #02080c; box-shadow: 0 38px 110px rgba(0,0,0,.42); }
.age-portrait::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg,rgba(4,13,20,.46),transparent 22%,transparent 72%,rgba(4,13,20,.56)),linear-gradient(0deg,rgba(4,13,20,.72),transparent 42%); }
.portrait-old,.portrait-young,.portrait-young img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 47%; }
.portrait-old { filter: saturate(.72) contrast(1.08) brightness(.82); }
.portrait-young { z-index: 2; clip-path: inset(0 var(--age) 0 0); will-change: clip-path; }
.portrait-young img { filter: saturate(.76) contrast(1.06) brightness(.86); }
.portrait-young::after { content: ""; position: absolute; top: 0; right: var(--age); width: 2px; height: 100%; background: rgba(183,247,238,.92); box-shadow: 0 0 22px var(--teal),0 0 70px rgba(86,224,194,.5); transform: translateX(1px); }
.portrait-scan { position: absolute; z-index: 4; inset: 0; pointer-events: none; opacity: 0; background: linear-gradient(180deg,transparent 0,rgba(135,236,224,.07) 48%,rgba(164,255,243,.75) 50%,rgba(135,236,224,.07) 52%,transparent 100%); transform: translateY(-100%); }
.age-portrait.playing .portrait-scan { opacity: .65; animation: portrait-scan 1.15s linear 4; }
.portrait-caption { position: absolute; z-index: 5; left: clamp(20px,4vw,54px); right: clamp(20px,4vw,54px); bottom: clamp(20px,4vw,48px); display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.portrait-caption span { color: #d0ecea; font: 10px Consolas,monospace; letter-spacing: .13em; }
.portrait-caption strong { font-size: clamp(2.2rem,7vw,6.8rem); line-height: .8; font-weight: 280; letter-spacing: -.065em; text-shadow: 0 6px 34px #000; }
.age-control { padding: 20px clamp(18px,3vw,34px); border: 1px solid var(--line); border-top: 0; background: rgba(9,23,32,.92); }
.age-control>div:first-child { display: flex; justify-content: space-between; color: var(--muted); font: 9px Consolas,monospace; letter-spacing: .12em; }
.age-control input { width: 100%; margin: 13px 0 9px; accent-color: var(--teal); cursor: ew-resize; }
.age-control input:disabled { cursor: wait; opacity: .55; }
.age-control-foot { display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.age-control-foot p { margin: 0; color: var(--muted); font-size: 12px; }
.age-control-foot button { flex: none; padding: 8px 11px; border: 1px solid var(--teal); color: var(--teal); background: transparent; cursor: pointer; }
.age-control-foot button:disabled { opacity: .35; cursor: wait; }
@keyframes portrait-scan { from { transform: translateY(-100%); } to { transform: translateY(100%); } }

.audio-section, .map-section, .mechanics-section, .credits-section, .review-section { padding: 88px 0; border-top: 1px solid var(--line); scroll-margin-top: 125px; }
.section-heading { display: flex; align-items: center; gap: 18px; margin-bottom: 26px; }
.section-heading.compact { margin-bottom: 34px; }
.section-number { width: 46px; height: 46px; display: grid; place-items: center; flex: none; border: 1px solid var(--teal); border-radius: 50%; color: var(--teal); font: 700 12px Consolas, monospace; }
.section-heading h2 { margin: 4px 0 0; font-size: clamp(2rem, 5vw, 4rem); line-height: 1; font-weight: 320; letter-spacing: -.04em; }
.section-intro { max-width: 760px; color: var(--muted); }

.audio-layout { display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; }
.audio-console, .transcript-card { min-height: 280px; padding: clamp(24px, 4vw, 42px); border: 1px solid var(--line); background: var(--panel); }
.audio-console strong { display: block; margin-top: 30px; font-size: 20px; font-weight: 500; }
.audio-console p { color: var(--muted); }
.audio-console audio {
  box-sizing: border-box;
  width: 100%;
  margin-top: 24px;
  border: 2px solid transparent;
  border-radius: 999px;
  outline: 0;
  color-scheme: dark;
  accent-color: #b89465;
  background: transparent;
  box-shadow: none;
  clip-path: inset(0 round 999px);
  filter: saturate(.72) brightness(.86);
}
.audio-console audio:focus-visible { border-color: var(--gold); outline: 0; }
.audio-console button { margin-top: 24px; padding: 11px 14px; border: 1px solid var(--line); color: var(--muted); background: rgba(255,255,255,.02); }
.audio-signal { width: 100%; height: 82px; display: flex; align-items: center; justify-content: space-between; gap: clamp(2px, .42vw, 6px); overflow: hidden; }
.audio-signal i {
  flex: 1 1 0;
  width: auto;
  max-width: 4px;
  min-width: 2px;
  height: var(--signal-height, 22%);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(226, 193, 139, .96), rgba(143, 99, 53, .82));
  opacity: .48;
  transform-origin: center;
  transition: height 90ms linear, opacity 120ms linear;
}
.audio-signal.is-playing i { box-shadow: 0 0 10px rgba(212, 163, 98, .24); }
.transcript-card summary { cursor: pointer; color: var(--teal); font: 12px Consolas, monospace; letter-spacing: .08em; }
.transcript-card div { margin-top: 22px; color: var(--muted); white-space: pre-wrap; }
.transcript-inline {
  align-self: start;
  min-height: 0;
  padding: clamp(12px, 2vw, 24px) 0;
  border: 0;
  background: transparent;
  backdrop-filter: none;
}
.transcript-inline summary {
  cursor: pointer;
  color: var(--gold);
  font: 12px Consolas, monospace;
  letter-spacing: .08em;
}
.transcript-inline div {
  margin-top: 24px;
  color: rgba(239, 234, 220, .82);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.8;
  white-space: pre-wrap;
  text-wrap: pretty;
}

.map-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0; }
.map-filters button { padding: 9px 12px; border: 1px solid var(--line); color: var(--muted); background: rgba(255,255,255,.02); cursor: pointer; }
.map-filters button.active { color: #041410; border-color: var(--teal); background: var(--teal); }
.map-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(320px, .65fr); gap: 22px; align-items: start; }
.map-lanes { display: grid; gap: 18px; }
.map-lane { padding: 20px; border: 1px solid var(--line); background: rgba(9, 24, 33, .64); }
.map-lane-head { display: flex; justify-content: space-between; gap: 18px; margin-bottom: 16px; }
.map-lane-head strong { font-size: 15px; font-weight: 550; }
.map-lane-head span { color: var(--muted); font: 10px Consolas, monospace; }
.map-node-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px; }
.map-node { min-height: 122px; padding: 15px; display: flex; flex-direction: column; align-items: flex-start; border: 1px solid var(--line); color: var(--text); background: var(--panel-solid); text-align: left; cursor: pointer; transition: transform .16s ease, border-color .16s ease, background .16s ease; }
.map-node:hover { transform: translateY(-2px); border-color: rgba(86, 224, 194, .55); }
.map-node.active { border-color: var(--teal); background: rgba(86, 224, 194, .08); box-shadow: inset 0 2px var(--teal); }
.map-node small { color: var(--teal); font: 9px Consolas, monospace; letter-spacing: .1em; }
.map-node strong { margin-top: auto; font-size: 15px; font-weight: 550; }
.map-node span { margin-top: 6px; color: var(--muted); font-size: 11px; }
.node-detail { position: sticky; top: 140px; min-height: 450px; padding: clamp(24px, 4vw, 36px); border: 1px solid var(--line); border-top-color: var(--gold); background: rgba(9, 23, 32, .96); }
.node-detail h3 { margin: 12px 0 8px; font-size: 30px; line-height: 1.05; font-weight: 350; }
.node-detail > p { color: var(--muted); }
.node-detail dl { margin: 28px 0 0; }
.node-detail dl div { padding: 13px 0; border-top: 1px solid var(--line); }
.node-detail dt { color: var(--gold); font: 10px Consolas, monospace; letter-spacing: .1em; text-transform: uppercase; }
.node-detail dd { margin: 6px 0 0; font-size: 13px; }
.connection-section { display: grid; grid-template-columns: .7fr 1.3fr; gap: 42px; margin-top: 42px; padding: 32px; border: 1px solid var(--line); background: var(--panel); }
.connection-section h3 { margin: 8px 0 0; font-size: 28px; font-weight: 350; }
.connection-list { display: grid; gap: 8px; }
.connection-list button { padding: 12px 14px; border: 1px solid var(--line); color: var(--text); background: rgba(255,255,255,.02); text-align: left; cursor: pointer; }
.connection-list button:hover { border-color: var(--blue); }
.connection-list small { display: block; margin-top: 4px; color: var(--muted); }

.mechanics-list { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; border: 1px solid var(--line); background: var(--line); }
.mechanics-list article { min-height: 190px; padding: 20px; background: var(--panel-solid); }
.mechanics-list strong { display: block; color: var(--gold); font-size: 14px; }
.mechanics-list p { color: var(--muted); font-size: 12px; }
.reflection-card { margin-top: 28px; padding: 30px; border-left: 3px solid var(--blue); background: rgba(120, 186, 255, .05); }
.reflection-card ol { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 36px; margin: 20px 0 0; padding-left: 24px; }
.reflection-card li { padding-left: 6px; }

.review-layout { display: grid; grid-template-columns: 1.25fr .75fr; gap: 24px; align-items: start; }
.review-form, .review-aside { padding: clamp(24px, 4vw, 40px); border: 1px solid var(--line); background: var(--panel); }
.review-alias { display: grid; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.review-alias span, .review-form label, .review-form legend { color: var(--muted); font: 11px Consolas, monospace; letter-spacing: .08em; text-transform: uppercase; }
.review-alias strong { margin: 5px 0; font: 500 24px Consolas, monospace; }
.review-alias small { color: var(--muted); }
.review-form fieldset { margin: 26px 0; padding: 0; border: 0; }
.star-rating { display: flex; gap: 4px; margin: 12px 0 6px; }
.star-rating button { padding: 0 4px; border: 0; color: #40515c; background: transparent; font-size: clamp(2.2rem, 7vw, 3.5rem); line-height: 1; cursor: pointer; }
.star-rating button.active { color: var(--gold); text-shadow: 0 0 20px rgba(255, 200, 107, .22); }
.star-rating button.overload-target::after { display: none; }
.star-rating button.overload-target.overload-live {
  border-color: transparent !important;
  box-shadow: none;
  filter:
    brightness(1.12)
    saturate(1.16)
    drop-shadow(0 0 7px rgba(143, 181, 195, .7))
    drop-shadow(0 0 18px rgba(212, 173, 115, .32));
}
.star-rating button:focus-visible {
  outline: none;
  color: var(--gold);
  transform: scale(1.08);
  text-shadow:
    0 0 2px #fff,
    0 0 12px rgba(229, 239, 239, .75),
    0 0 25px rgba(212, 173, 115, .55);
}
#rating-label { color: var(--muted); font-size: 12px; }
.review-form > label { display: block; margin: 20px 0 7px; }
.review-form label small { color: #6f8790; text-transform: none; }
.review-form textarea, .review-form input[type="email"] { width: 100%; border: 1px solid var(--line); color: var(--text); background: #07131b; padding: 13px 14px; }
.review-form textarea { min-height: 180px; resize: vertical; }
.character-count { display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; }
.consent-row { display: flex !important; align-items: flex-start; gap: 10px; margin-top: 14px !important; color: var(--text) !important; font-family: inherit !important; letter-spacing: 0 !important; text-transform: none !important; }
.consent-row input { margin-top: 4px; accent-color: var(--teal); }
.privacy-note { padding: 12px 14px; border-left: 2px solid var(--blue); color: var(--muted); background: rgba(120, 186, 255, .035); font-size: 12px; }
.primary-button { width: 100%; margin-top: 12px; padding: 14px 18px; border: 1px solid var(--teal); color: #03130e; background: var(--teal); font-weight: 650; cursor: pointer; }
.primary-button:disabled { opacity: .45; cursor: wait; }
.form-message { min-height: 22px; margin-top: 13px; color: var(--muted); }
.form-message.error { color: var(--red); }
.form-message.success { color: var(--teal); }
.review-aside h3 { margin: 14px 0; font-size: 30px; line-height: 1.08; font-weight: 350; }
.review-aside p, .review-aside li { color: var(--muted); font-size: 13px; }
.review-aside ul { padding-left: 20px; }
.thank-you { margin-top: -46px; margin-bottom: 70px; padding: 32px; border: 1px solid var(--teal); background: rgba(86, 224, 194, .06); }
.thank-you h2 { margin: 10px 0; font-size: 36px; font-weight: 350; }
.thank-you p { margin: 0; color: var(--muted); }

footer { display: flex; justify-content: space-between; gap: 20px; padding: 24px 0 34px; border-top: 1px solid var(--line); color: var(--muted); font: 10px Consolas, monospace; letter-spacing: .08em; }

@media (max-width: 1040px) {
  .reveal-section, .audio-layout, .map-layout, .review-layout, .connection-section { grid-template-columns: 1fr; }
  .node-detail { position: relative; top: auto; min-height: 0; }
  .mechanics-list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .debrief-topbar, main, footer { width: calc(100% - 28px); }
  .debrief-status { display: none; }
  main { padding-top: 24px; }
  .chapter-nav { top: 73px; }
  .chapter-nav a { padding: 12px 8px; text-align: center; font-size: 11px; }
  .chapter-nav span { display: block; margin: 0; }
  .reveal-section { min-height: auto; padding-top: 20px; }
  .reveal-copy h1 { font-size: 3.7rem; }
  .age-portrait { height: 68vh; min-height: 480px; }
  .portrait-caption { align-items: flex-start; flex-direction: column-reverse; }
  .portrait-caption strong { font-size: 3.5rem; }
  .age-control-foot { align-items: stretch; flex-direction: column; }
  .audio-section, .map-section, .mechanics-section, .credits-section, .review-section { padding: 64px 0; }
  .map-node-grid { grid-template-columns: 1fr; }
  .mechanics-list, .reflection-card ol { grid-template-columns: 1fr; }
  footer { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .hover-overload-layer { display: none; }
}

/* Cinematic archive redesign. The photographic asset carries the atmosphere;
   the interface deliberately stays quiet and legible above it. */
:root {
  --bg: #080705;
  --bg-soft: #12100d;
  --panel: rgba(17, 15, 12, .78);
  --panel-solid: rgba(18, 16, 13, .94);
  --text: #f2eee7;
  --muted: #aaa398;
  --line: rgba(224, 211, 190, .17);
  --teal: #a9ced8;
  --blue: #8fb5c3;
  --gold: #d4ad73;
  --red: #e89086;
}

body {
  position: relative;
  isolation: isolate;
  background: var(--bg);
  font-family: "Bahnschrift", "Segoe UI Variable", "Segoe UI", Arial, sans-serif;
  letter-spacing: .004em;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: -34px;
  z-index: -2;
  pointer-events: none;
}

body::before {
  background: #040403 url("assets/debriefing/debrief-cave-bg-v3.png") center / cover no-repeat;
  opacity: .62;
  filter: saturate(.54) contrast(1.18) brightness(.55);
  transform: translate3d(var(--scene-x, 0), var(--scene-y, 0), 0) scale(1.06);
  will-change: transform;
}

body::after {
  z-index: -1;
  background: rgba(5, 5, 4, .48);
  backdrop-filter: blur(.3px);
}

.debrief-topbar {
  width: min(1440px, calc(100% - 64px));
  min-height: 68px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 7, 6, .62);
  backdrop-filter: blur(20px) saturate(.7);
}

.debrief-brand { gap: 16px; }
.debrief-brand-mark {
  width: 34px;
  height: 34px;
  border-color: rgba(212, 173, 115, .62);
  border-radius: 3px;
  color: var(--gold);
  box-shadow: none;
}
.debrief-brand small { color: #8f887d; }
.debrief-brand strong { color: #dad3c8; font-size: 12px; font-weight: 520; }
.debrief-status { border: 0; border-left: 1px solid var(--line); color: var(--gold); }
.debrief-status.ready { color: #b8d1d7; }

main,
footer { width: min(1440px, calc(100% - 64px)); }
main { padding-top: 26px; }

.chapter-nav {
  top: 68px;
  display: flex;
  justify-content: center;
  gap: clamp(2px, 1.1vw, 14px);
  width: max-content;
  max-width: 100%;
  margin: 0 auto 72px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(10, 9, 7, .72);
  backdrop-filter: blur(22px);
}

.story-frame-outro .story-chapter-aurora {
  opacity: .72;
  filter: saturate(.72) contrast(1.08);
}

.story-frame-outro .story-chapter-copy::after {
  content: "";
  display: block;
  width: min(320px, 72%);
  height: 1px;
  margin: 34px auto 0;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  box-shadow: 0 0 24px rgba(212, 173, 115, .5);
}

.story-outro-continue {
  text-decoration: none;
}

.story-control[hidden] {
  display: none;
}

.story-scene-continue {
  align-self: flex-start;
  margin-top: 32px;
  padding: 12px 18px;
  border: 1px solid rgba(212, 173, 115, .38);
  border-radius: 999px;
  background: rgba(212, 173, 115, .07);
  color: #e9dfd0;
  font: 600 11px/1 Consolas, monospace;
  letter-spacing: .11em;
  text-transform: uppercase;
  cursor: pointer;
}

.story-scene-continue span {
  margin-left: 10px;
  color: var(--gold);
}

.story-scene-continue:hover,
.story-scene-continue:focus-visible {
  border-color: rgba(212, 173, 115, .78);
  background: rgba(212, 173, 115, .13);
  box-shadow: 0 0 28px rgba(212, 173, 115, .15);
}
.chapter-nav a {
  padding: 8px 13px;
  border: 0;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: .04em;
}
.chapter-nav a:hover { color: var(--text); background: rgba(212, 173, 115, .1); }
.chapter-nav span { color: var(--gold); }

.kicker { color: var(--gold); font-size: 10px; letter-spacing: .18em; }
.text-link { color: var(--gold); }

.reveal-section {
  min-height: calc(100vh - 94px);
  min-height: calc(100svh - 94px);
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  padding: clamp(34px, 6vh, 76px) 0;
}
.reveal-copy {
  width: 100%;
  max-width: 1100px;
  margin-inline: auto;
  text-align: center;
  transform: translateY(-47px);
}
.reveal-copy h1 {
  max-width: 960px;
  margin: 22px auto 20px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.8rem, 8vw, 8.5rem);
  font-weight: 400;
  line-height: .84;
  letter-spacing: -.055em;
  text-wrap: balance;
}
.lead { max-width: 690px; margin-inline: auto; color: #c4bdb2; font-size: clamp(1rem, 1.35vw, 1.18rem); }
.safety-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 1040px;
  margin: 48px auto 0;
}
.safety-list li {
  padding: 16px 12px;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
  color: #bbb4a9;
  font-size: 12px;
  text-align: center;
}
.safety-list li::before { position: static; margin-right: 8px; color: var(--gold); }
.identity-card {
  width: 280px;
  padding: 20px 0 0;
  border: 0;
  border-top: 1px solid var(--gold);
  background: transparent;
  box-shadow: none;
}
.identity-card strong { margin-top: 10px; color: #e8e1d7; font: 500 1.35rem Consolas, monospace; }
.identity-card p { margin-bottom: 0; font-size: 11px; }

.identity-reveal,
.audio-section,
.map-section,
.knowledge-section,
.mechanics-section,
.credits-section,
.review-section {
  padding: 96px 0;
  border-top: 1px solid var(--line);
}

.credits-section {
  position: relative;
  isolation: isolate;
  scroll-margin-top: 148px;
}
.credits-section::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 12% -8% 4%;
  background:
    radial-gradient(circle at 18% 30%, rgba(212, 173, 115, .07), transparent 34%),
    radial-gradient(circle at 78% 72%, rgba(169, 206, 216, .055), transparent 32%);
  pointer-events: none;
}
.credits-carousel {
  position: relative;
  width: min(100%, 1120px);
  height: 750px;
  margin: 34px auto 0;
  overflow: hidden;
  perspective: 1200px;
  touch-action: pan-y;
}
.credits-stage {
  position: absolute;
  inset: 0 76px 48px;
  transform-style: preserve-3d;
}
.credit-card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(370px, 42vw);
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid rgba(212, 173, 115, .2);
  border-radius: 3px;
  background: #080907;
  box-shadow: 0 18px 48px rgba(0, 0, 0, .32);
  opacity: 0;
  filter: blur(15px) brightness(.36) saturate(.48);
  transform: translate3d(-50%, -50%, -300px) scale(.52);
  transition:
    width .78s cubic-bezier(.2, .75, .18, 1),
    transform .78s cubic-bezier(.2, .75, .18, 1),
    filter .78s ease,
    opacity .55s ease,
    border-color .55s ease,
    box-shadow .7s ease;
  cursor: pointer;
  pointer-events: none;
  will-change: transform, filter, opacity;
}
.credit-card.is-active {
  z-index: 5;
  width: min(490px, 55vw);
  opacity: 1;
  filter: none;
  transform: translate(-50%, -50%);
  border-color: rgba(212, 173, 115, .56);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .58), 0 0 42px rgba(212, 173, 115, .1);
  pointer-events: auto;
  cursor: default;
  will-change: auto;
}
.credit-card.is-prev,
.credit-card.is-next {
  z-index: 3;
  opacity: .62;
  filter: blur(7px) brightness(.52) saturate(.62);
  pointer-events: auto;
}
.credit-card.is-prev { transform: translate3d(-112%, -50%, -105px) rotateY(15deg) scale(.76); }
.credit-card.is-next { transform: translate3d(12%, -50%, -105px) rotateY(-15deg) scale(.76); }
.credit-card.is-far-prev,
.credit-card.is-far-next {
  z-index: 1;
  opacity: .24;
  filter: blur(13px) brightness(.35) saturate(.42);
  pointer-events: auto;
}
.credit-card.is-far-prev { transform: translate3d(-160%, -50%, -230px) rotateY(22deg) scale(.58); }
.credit-card.is-far-next { transform: translate3d(60%, -50%, -230px) rotateY(-22deg) scale(.58); }
.credit-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 43%, rgba(3, 4, 3, .22) 60%, rgba(3, 4, 3, .96) 100%),
    linear-gradient(115deg, rgba(212, 173, 115, .1), transparent 30%);
  pointer-events: none;
}
.credit-card img {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  display: block;
  object-fit: cover;
  object-position: center 38%;
  filter: saturate(.78) contrast(1.04) brightness(.86);
  transform: scale(1.002);
  transition: transform .7s cubic-bezier(.2, .75, .2, 1), filter .7s ease;
}
.credit-card:hover img,
.credit-card:focus-within img {
  transform: scale(1.035);
  filter: saturate(.9) contrast(1.03) brightness(.94);
}
.credit-card > div {
  position: absolute;
  z-index: 1;
  right: 20px;
  bottom: 20px;
  left: 20px;
  transform: translateZ(0);
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}
.credit-card h3 {
  margin: 0;
  color: #f1ece3;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  font-weight: 400;
  letter-spacing: -.02em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .9);
}
.credit-card p {
  margin: 8px 0 0;
  color: #d1c6b6;
  font: 650 11px/1.48 "Segoe UI", system-ui, sans-serif;
  letter-spacing: .055em;
  text-transform: uppercase;
  text-shadow: 0 1px 5px rgba(0, 0, 0, .96);
}
.credit-svenja img { object-position: center 30%; }
.credit-sandra img { object-position: center 35%; }
.credit-sven {
  background:
    radial-gradient(ellipse at 50% 28%, rgba(205, 207, 202, .34), transparent 36%),
    linear-gradient(160deg, #777873 0%, #565752 42%, #2e302d 76%, #202220 100%);
}
.credit-sven img { padding: 5% 0 0; object-fit: contain; object-position: center bottom; }
.credit-benedikt img { object-position: center 36%; }
.credit-jan-melina img { object-position: center 44%; }
.credit-jan-melina h3 { font-size: clamp(1.2rem, 1.9vw, 1.8rem); }
.credit-jan-melina p { display: grid; gap: 5px; }
.credit-jan-melina p span { display: block; }
.credit-michael img { object-position: center 38%; }
.credit-anonymous {
  background:
    radial-gradient(circle at 50% 40%, rgba(212, 173, 115, .16), transparent 34%),
    linear-gradient(145deg, #24231f, #10110f 68%, #070807);
}
.credit-card .credit-thanks {
  inset: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 18px;
  padding: clamp(34px, 6vw, 62px);
  text-align: center;
}
.credit-thanks span {
  color: var(--gold);
  font: 700 10px/1 Consolas, monospace;
  letter-spacing: .24em;
}
.credit-thanks h3 {
  max-width: 360px;
  font-size: clamp(1.8rem, 3.4vw, 3rem);
  line-height: 1.04;
}
.credit-thanks p {
  max-width: 290px;
  margin: 0;
  color: #cfc5b6;
  font: 400 14px/1.6 "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
  text-transform: none;
}
.credits-control {
  position: absolute;
  z-index: 10;
  top: 47%;
  width: 50px;
  height: 50px;
  border: 1px solid rgba(212, 173, 115, .42);
  border-radius: 50%;
  outline: 0;
  background: rgba(7, 8, 7, .76);
  color: #e0c18f;
  font: 400 22px/1 Consolas, monospace;
  box-shadow: 0 0 25px rgba(0, 0, 0, .5);
  backdrop-filter: blur(12px);
  transform: translateY(-50%);
  cursor: pointer;
  transition: border-color .25s ease, background .25s ease, box-shadow .25s ease, color .25s ease;
}
.credits-control:hover,
.credits-control:focus-visible {
  border-color: rgba(232, 198, 143, .9);
  background: rgba(212, 173, 115, .13);
  color: #fff2db;
  box-shadow: 0 0 24px rgba(212, 173, 115, .18);
}
.credits-control-prev { left: 8px; }
.credits-control-next { right: 8px; }
.credits-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  min-height: 30px;
  margin-top: -35px;
  color: #a89d8e;
  font: 600 10px/1 Consolas, monospace;
  letter-spacing: .13em;
}
.credits-dots { display: flex; align-items: center; gap: 8px; }
.credits-dots button {
  width: 26px;
  height: 3px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  outline: 0;
  background: rgba(225, 217, 204, .2);
  cursor: pointer;
  transition: width .3s ease, background .3s ease, box-shadow .3s ease;
}
.credits-dots button[aria-selected="true"] {
  width: 46px;
  background: var(--gold);
  box-shadow: 0 0 14px rgba(212, 173, 115, .38);
}
.credits-dots button:focus-visible { box-shadow: 0 0 0 2px #080907, 0 0 0 4px var(--gold); }
.credits-feature {
  width: min(100%, 1120px);
  margin: 42px auto 0;
  border-top: 1px solid rgba(212, 173, 115, .22);
  border-bottom: 1px solid rgba(212, 173, 115, .14);
  background: rgba(7, 8, 7, .36);
}
.credits-feature summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px 24px;
  padding: 24px 2px;
  list-style: none;
  cursor: pointer;
}
.credits-feature summary::-webkit-details-marker { display: none; }
.credits-feature summary span {
  grid-column: 1;
  color: var(--gold);
  font: 700 10px/1 Consolas, monospace;
  letter-spacing: .2em;
}
.credits-feature summary strong {
  grid-column: 1;
  color: #f1ece3;
  font: 400 clamp(1.35rem, 2.6vw, 2.2rem)/1.15 Georgia, "Times New Roman", serif;
}
.credits-feature summary em {
  grid-column: 2;
  grid-row: 1 / span 2;
  color: #c9b99f;
  font: 600 10px/1 Consolas, monospace;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-style: normal;
}
.credits-feature summary em::after { content: "  +"; color: var(--gold); }
.credits-feature[open] summary em::after { content: "  −"; }
.credits-feature-carousel {
  position: relative;
  height: clamp(470px, 64vw, 720px);
  padding: 0 64px 54px;
  overflow: hidden;
  perspective: 1350px;
  touch-action: pan-y;
  outline: none;
}
.credits-feature-stage {
  position: absolute;
  inset: 0 66px 58px;
  transform-style: preserve-3d;
}
.credits-feature-stage figure {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(78%, 760px);
  aspect-ratio: 16 / 10;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(212, 173, 115, .2);
  border-radius: 4px;
  background: #080907;
  box-shadow: 0 28px 72px rgba(0, 0, 0, .54);
  opacity: .38;
  filter: blur(5px) brightness(.55) saturate(.64);
  transition: transform .82s cubic-bezier(.18, .78, .16, 1), opacity .55s ease, filter .7s ease, border-color .55s ease, box-shadow .7s ease;
  cursor: pointer;
  pointer-events: auto;
}
.credits-feature-stage figure.is-active {
  z-index: 4;
  opacity: 1;
  filter: none;
  transform: translate(-50%, -50%);
  border-color: rgba(212, 173, 115, .58);
  box-shadow: 0 36px 100px rgba(0, 0, 0, .64), 0 0 44px rgba(212, 173, 115, .09);
  cursor: default;
}
.credits-feature-stage figure.is-prev {
  z-index: 2;
  transform: translate3d(-104%, -50%, -150px) rotateY(38deg) scale(.72);
  transform-origin: right center;
}
.credits-feature-stage figure.is-next {
  z-index: 2;
  transform: translate3d(4%, -50%, -150px) rotateY(-38deg) scale(.72);
  transform-origin: left center;
}
.credits-feature-stage figure.is-far {
  z-index: 1;
  opacity: .14;
  filter: blur(11px) brightness(.3) saturate(.46);
  transform: translate3d(-50%, -50%, -360px) scale(.56);
}
.credits-feature-stage figure.feature-portrait { width: min(54%, 480px); aspect-ratio: 2 / 3; }
.credits-feature-stage img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.84) contrast(1.03) brightness(.9);
}
.credits-feature-stage figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 42px 18px 16px;
  background: linear-gradient(transparent, rgba(3, 4, 3, .92));
  color: #d8cbb8;
  font: 650 11px/1.4 "Segoe UI", system-ui, sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-shadow: 0 1px 5px rgba(0, 0, 0, .96);
  -webkit-font-smoothing: antialiased;
}
.feature-control {
  position: absolute;
  z-index: 8;
  top: calc(50% - 28px);
  width: 52px;
  height: 52px;
  border: 1px solid rgba(212, 173, 115, .62);
  border-radius: 50%;
  background: rgba(7, 8, 7, .86);
  color: #f1ece3;
  box-shadow: 0 0 24px rgba(212, 173, 115, .12);
  cursor: pointer;
}
.feature-control:hover,
.feature-control:focus-visible { border-color: var(--gold); box-shadow: 0 0 28px rgba(212, 173, 115, .28); outline: none; }
.feature-control-prev { left: 8px; }
.feature-control-next { right: 8px; }
.feature-meta {
  position: absolute;
  z-index: 8;
  right: 66px;
  bottom: 18px;
  left: 66px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 22px;
  color: #c8b99f;
  font: 700 10px/1 Consolas, monospace;
  letter-spacing: .14em;
}
.feature-dots { display: flex; gap: 8px; }
.feature-dots button {
  width: min(68px, 20vw);
  height: 2px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(216, 203, 184, .2);
  cursor: pointer;
}
.feature-dots button[aria-selected="true"] { background: var(--gold); box-shadow: 0 0 12px rgba(212, 173, 115, .48); }
.feature-dots button:focus-visible { outline: 1px solid var(--gold); outline-offset: 5px; }
.credits-feature-carousel[data-direction="next"] .credits-feature-stage figure.is-active { animation: feature-drum-next .82s cubic-bezier(.18, .78, .16, 1); }
.credits-feature-carousel[data-direction="prev"] .credits-feature-stage figure.is-active { animation: feature-drum-prev .82s cubic-bezier(.18, .78, .16, 1); }
@keyframes feature-drum-next { from { opacity: .5; transform: translate3d(4%, -50%, -150px) rotateY(-38deg) scale(.72); } to { opacity: 1; transform: translate(-50%, -50%); } }
@keyframes feature-drum-prev { from { opacity: .5; transform: translate3d(-104%, -50%, -150px) rotateY(38deg) scale(.72); } to { opacity: 1; transform: translate(-50%, -50%); } }
}
.section-heading { margin-bottom: 34px; }
.section-number {
  width: 34px;
  height: 34px;
  border-color: rgba(212, 173, 115, .55);
  border-radius: 3px;
  color: var(--gold);
}
.section-heading h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.25rem, 5vw, 4.8rem);
  font-weight: 400;
  letter-spacing: -.035em;
}

.identity-reveal.cave-descent {
  --cave-progress: 0;
  --cave-left-x: 0vw;
  --cave-right-x: 0vw;
  --cave-stone-y: 0vh;
  --cave-depth-y: 4vh;
  --cave-depth-scale: 1.1;
  --cave-content-y: 26vh;
  --cave-content-opacity: 0;
  --cave-hint-opacity: 1;
  position: relative;
  width: 100vw;
  height: 235vh;
  margin-left: calc(50% - 50vw);
  padding: 0;
  border-top: 1px solid rgba(214, 224, 221, .12);
}
.cave-stage {
  position: sticky;
  top: 68px;
  height: calc(100vh - 68px);
  overflow: hidden;
  isolation: isolate;
  background: #020302;
}
.cave-depth,
.cave-stone {
  position: absolute;
  inset: -4%;
  background: #030403 url("assets/debriefing/debrief-cave-bg-v3.png") center / cover no-repeat;
  pointer-events: none;
  will-change: transform, opacity;
}
.cave-depth {
  z-index: 0;
  filter: saturate(.58) contrast(1.14) brightness(.7);
  transform: translate3d(0, var(--cave-depth-y), 0) scale(var(--cave-depth-scale));
}
.cave-depth::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 48%, transparent 9%, rgba(0, 0, 0, .18) 48%, rgba(0, 0, 0, .82) 100%);
}
.cave-stone {
  z-index: 4;
  filter: saturate(.52) contrast(1.2) brightness(.58);
}
.cave-stone-left {
  right: 47%;
  background-size: 200% 100%;
  background-position: left center;
  clip-path: polygon(0 0, 100% 0, 91% 34%, 98% 63%, 86% 100%, 0 100%);
  transform: translate3d(var(--cave-left-x), var(--cave-stone-y), 0) scale(1.05);
  transform-origin: left center;
}
.cave-stone-right {
  left: 47%;
  background-size: 200% 100%;
  background-position: right center;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 14% 100%, 2% 63%, 9% 34%);
  transform: translate3d(var(--cave-right-x), var(--cave-stone-y), 0) scale(1.05);
  transform-origin: right center;
}
.cave-atmosphere {
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .7), transparent 22%, transparent 72%, rgba(0, 0, 0, .82)),
    radial-gradient(ellipse at 50% 72%, rgba(138, 164, 158, .08), transparent 46%);
  box-shadow: inset 0 0 180px rgba(0, 0, 0, .72);
}
.cave-scroll-hint {
  position: absolute;
  z-index: 7;
  left: 50%;
  bottom: 34px;
  display: grid;
  justify-items: center;
  gap: 10px;
  opacity: var(--cave-hint-opacity);
  transform: translateX(-50%);
  color: rgba(225, 226, 219, .68);
  font: 9px Consolas, monospace;
  letter-spacing: .18em;
  pointer-events: none;
}
.cave-scroll-hint i {
  width: 1px;
  height: 38px;
  background: linear-gradient(#d4ad73, transparent);
}
.cave-content {
  position: relative;
  z-index: 3;
  width: min(1320px, calc(100% - 64px));
  height: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(300px, .72fr) minmax(390px, .8fr);
  grid-template-rows: auto auto;
  align-content: center;
  align-items: center;
  gap: 28px clamp(36px, 6vw, 88px);
  opacity: var(--cave-content-opacity);
  transform: translate3d(0, var(--cave-content-y), 0);
  will-change: transform, opacity;
  pointer-events: none;
}
.cave-open .cave-content { pointer-events: auto; }
.cave-content > .section-heading { grid-column: 1; grid-row: 1; align-self: end; margin: 0; }
.cave-content > .age-control { grid-column: 1; grid-row: 2; align-self: start; }
.cave-content > .age-portrait { grid-column: 2; grid-row: 1 / span 2; }
.cave-content .section-heading h2 { font-size: clamp(2.2rem, 4vw, 4.7rem); }

.age-portrait {
  height: auto;
  min-height: 0;
  width: min(880px, 100%);
  aspect-ratio: 1122 / 1402;
  margin: 0 auto;
  border-color: rgba(224, 211, 190, .2);
  background: #050504;
  box-shadow: 0 45px 130px rgba(0, 0, 0, .72);
  cursor: col-resize;
}
.age-portrait::after { background: rgba(8, 7, 5, .08); }
.portrait-old,
.portrait-young img { object-position: center center; }
.portrait-old { filter: saturate(.72) contrast(1.08) brightness(.82); }
.portrait-young img { filter: saturate(.76) contrast(1.05) brightness(.88); }
.portrait-young::after {
  width: 1px;
  background: #eee4d4;
  box-shadow: 0 0 18px rgba(169, 206, 216, .75), 0 0 42px rgba(212, 173, 115, .28);
}
.portrait-caption {
  left: auto;
  right: 28px;
  bottom: 26px;
  display: grid;
  justify-items: end;
  gap: 5px;
}
.portrait-caption span { color: #d9d1c4; font-size: 9px; }
.portrait-caption strong { font-size: clamp(1.5rem, 3vw, 2.6rem); font-weight: 350; letter-spacing: -.025em; }
.portrait-scan { display: none; }
.age-control {
  width: min(880px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(180px, .5fr) minmax(360px, 1fr);
  gap: 8px 34px;
  padding: 20px 24px;
  background: rgba(12, 11, 9, .86);
}
.cave-content .age-control {
  width: 100%;
  grid-template-columns: 1fr;
  gap: 10px;
  border: 1px solid rgba(224, 211, 190, .16);
  background: rgba(5, 6, 5, .76);
  backdrop-filter: blur(18px);
}
.cave-content .age-control > div:first-child,
.cave-content .age-control input,
.cave-content .age-control-foot { grid-column: 1; grid-row: auto; }
.age-control > div:first-child { grid-column: 2; grid-row: 1; }
.age-control input { grid-column: 2; grid-row: 2; margin: 5px 0 0; accent-color: var(--gold); }
.age-control-foot { grid-column: 1; grid-row: 1 / span 2; }
.age-control-foot button { border-color: rgba(212, 173, 115, .55); color: var(--gold); }

.audio-layout { grid-template-columns: minmax(0, 1.15fr) minmax(320px, .55fr); gap: clamp(28px, 5vw, 72px); background: transparent; }
.audio-console,
.transcript-card,
.review-form,
.review-aside {
  border: 0;
  background: rgba(14, 13, 10, .88);
  backdrop-filter: blur(18px);
}
.audio-signal i { background: linear-gradient(180deg, rgba(226, 193, 139, .96), rgba(143, 99, 53, .82)); }
.transcript-card summary { color: var(--gold); }

.map-filters { margin: 30px 0 40px; }
.map-filters button {
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
}
.map-filters button.active { color: var(--text); border-color: var(--gold); background: transparent; }
.map-layout { grid-template-columns: minmax(0, 1.35fr) minmax(330px, .58fr); gap: 34px; }
.map-lanes { gap: 1px; background: var(--line); }
.map-lane { border: 0; background: rgba(14, 13, 10, .78); backdrop-filter: blur(18px); }
.map-node-grid { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1px; background: var(--line); }
.map-node {
  min-height: 145px;
  border: 0;
  background: rgba(17, 15, 12, .96);
}
.map-node:hover { border: 0; background: rgba(42, 36, 28, .96); }
.map-node.active { border: 0; background: rgba(57, 46, 32, .96); box-shadow: inset 0 2px var(--gold); }
.map-node small { color: var(--gold); }
.node-detail {
  border: 0;
  border-top: 1px solid var(--gold);
  background: rgba(12, 11, 9, .9);
  backdrop-filter: blur(22px);
}
.node-detail dt { color: var(--gold); }
.connection-section {
  grid-template-columns: .68fr 1.32fr;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
}
.connection-list button { border: 0; border-bottom: 1px solid var(--line); background: rgba(14, 13, 10, .42); }
.connection-list button:hover { border-color: var(--gold); }

.knowledge-section {
  padding: 96px 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 125px;
}
.deep-dive-list {
  margin-top: 38px;
  border-top: 1px solid var(--line);
}
.deep-dive-card {
  border-bottom: 1px solid var(--line);
  background: rgba(10, 10, 8, .68);
  backdrop-filter: blur(18px);
}
.deep-dive-card summary {
  min-height: 112px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 22px;
  padding: 20px 24px;
  cursor: pointer;
  list-style: none;
}
.deep-dive-card summary::-webkit-details-marker { display: none; }
.deep-dive-card summary > span:first-child {
  color: var(--gold);
  font: 11px Consolas, monospace;
  letter-spacing: .12em;
}
.deep-dive-card summary > span:nth-child(2) { display: grid; gap: 8px; }
.deep-dive-card summary strong {
  color: #eee7dd;
  font: 400 clamp(1.3rem, 2.2vw, 2rem) Georgia, "Times New Roman", serif;
  letter-spacing: -.02em;
}
.deep-dive-card summary small { max-width: 880px; color: #a9a298; font-size: 12px; line-height: 1.55; }
.deep-dive-card summary i {
  position: relative;
  width: 20px;
  height: 20px;
}
.deep-dive-card summary i::before,
.deep-dive-card summary i::after {
  content: "";
  position: absolute;
  top: 9px;
  left: 2px;
  width: 16px;
  height: 1px;
  background: var(--gold);
  transition: transform .24s ease;
}
.deep-dive-card summary i::after { transform: rotate(90deg); }
.deep-dive-card[open] summary i::after { transform: rotate(0deg); }
.deep-dive-card[open] summary { background: rgba(212, 173, 115, .045); }
.deep-dive-body {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 0 24px 24px 84px;
  background: var(--line);
}
.deep-dive-body section { padding: 24px; background: rgba(15, 14, 11, .96); }
.deep-dive-body h4 { margin: 0 0 12px; color: var(--gold); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.deep-dive-body p { margin: 0; color: #c4bdb2; font-size: 13px; line-height: 1.72; }

.factsheet-library {
  margin-top: 88px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}
.factsheet-library > header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, .65fr);
  align-items: end;
  gap: 42px;
  margin-bottom: 28px;
}
.factsheet-library h3 {
  margin: 8px 0 0;
  font: 400 clamp(2.1rem, 4vw, 3.9rem) Georgia, "Times New Roman", serif;
  letter-spacing: -.035em;
}
.factsheet-library > header p { margin: 0; color: var(--muted); }
.factsheet-list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; background: var(--line); }
.factsheet-card {
  min-height: 255px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 20px;
  padding: 22px;
  background: rgba(11, 11, 9, .92);
}
.factsheet-card > span { color: var(--gold); font: 10px Consolas, monospace; letter-spacing: .12em; }
.factsheet-card strong { display: block; color: #ede6dc; font: 400 1.45rem Georgia, "Times New Roman", serif; }
.factsheet-card p { margin: 12px 0; color: #a8a198; font-size: 12px; line-height: 1.6; }
.factsheet-card small { color: #787168; font: 9px Consolas, monospace; letter-spacing: .08em; text-transform: uppercase; }
.factsheet-card a {
  width: fit-content;
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(212, 173, 115, .55);
  color: var(--gold);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.factsheet-card a:hover { color: #f1d8ad; border-color: #f1d8ad; }

.mechanics-list { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; border: 0; background: transparent; }
.mechanics-list article { min-height: 165px; border-top: 1px solid var(--line); background: rgba(14, 13, 10, .5); }
.mechanics-list strong { color: var(--gold); }
.reflection-card { border: 0; border-left: 1px solid var(--gold); background: rgba(14, 13, 10, .52); }

.review-layout { grid-template-columns: minmax(0, 1.2fr) 330px; gap: 1px; background: var(--line); }
.review-form textarea,
.review-form input[type="email"],
.review-form input[type="text"] { width: 100%; border: 1px solid var(--line); color: var(--text); background: rgba(5, 5, 4, .64); padding: 13px 14px; }
.star-rating button.active { color: var(--gold); }
.privacy-note { border-left-color: var(--gold); background: rgba(212, 173, 115, .05); }
.primary-button { border-color: var(--gold); color: #17110a; background: var(--gold); }
.consent-row input { accent-color: var(--gold); }
.review-aside h3 { font-family: Georgia, "Times New Roman", serif; }
.thank-you { border-color: var(--gold); background: rgba(212, 173, 115, .06); }
.review-part { margin: 26px 0; padding: clamp(18px, 3vw, 28px); border: 1px solid var(--line); background: rgba(212, 173, 115, .035); }
.review-part-private { border-left: 2px solid #8ea8a3; }
.review-part-public { border-left: 2px solid var(--gold); }
.review-part-number { margin-bottom: 18px; color: var(--muted); font: 9px Consolas, monospace; letter-spacing: .14em; }
.feedback-heading span,
.film-review-heading span { color: var(--gold); font: 10px Consolas, monospace; letter-spacing: .1em; text-transform: uppercase; }
.feedback-heading h3,
.film-review-heading h3 { margin: 7px 0 5px; font: 400 clamp(1.4rem, 3vw, 2rem) Georgia, "Times New Roman", serif; }
.feedback-heading p,
.film-review-heading p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.review-feedback { display: grid; gap: 8px; margin-top: 22px; }
.review-form .review-feedback textarea { min-height: 220px; font: 14px/1.6 system-ui, sans-serif; text-transform: none; letter-spacing: normal; }
.film-review-heading { margin: 0 0 20px; }
.review-part-private > label[for="review-email"] { margin-top: 22px; }

.review-wall {
  margin-top: 44px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}
.review-wall > header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 24px;
}
.review-wall h3 {
  margin: 8px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.8rem);
  font-weight: 400;
  letter-spacing: -.035em;
}
.review-summary { display: grid; justify-items: end; color: var(--muted); }
.review-summary strong { color: var(--gold); font: 400 2rem Georgia, serif; }
.public-review-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); }
.public-review-card,
.public-review-empty { margin: 0; padding: 24px; background: rgba(11, 11, 9, .88); }
.public-review-card { min-height: 190px; display: flex; flex-direction: column; gap: 16px; }
.public-review-card header { display: flex; justify-content: space-between; gap: 20px; }
.public-review-card header strong { overflow-wrap: anywhere; }
.public-review-card header span { color: var(--gold); letter-spacing: .12em; white-space: nowrap; }
.public-review-card p { margin: 0; color: #c9c2b7; white-space: pre-line; }
.public-review-card time { color: #797268; font: 10px Consolas, monospace; letter-spacing: .08em; text-transform: uppercase; }
.public-review-card > time { margin-top: auto; }
.public-review-response { padding: 16px 0 0 18px; border-left: 1px solid var(--gold); }
.public-review-response span { display: block; margin-bottom: 8px; color: var(--gold); font: 9px Consolas, monospace; letter-spacing: .11em; }
.public-review-response p { color: #e1dace; }
.public-review-empty { grid-column: 1 / -1; color: var(--muted); }

.overload-target::after {
  background: rgba(169, 206, 216, .08);
}
.overload-target.overload-live {
  border-color: rgba(197, 222, 228, .82) !important;
  box-shadow: 0 0 0 1px rgba(229, 239, 239, .16), 0 0 16px rgba(143, 181, 195, .32), 0 0 46px rgba(212, 173, 115, .15), inset 0 0 18px rgba(169, 206, 216, .08);
}
.primary-button.overload-live,
.map-filters button.overload-live { color: #17110a; background-color: #e0bd86; }

@media (max-width: 1040px) {
  .reveal-section { grid-template-columns: 1fr; align-items: center; }
  .audio-layout,
  .map-layout,
  .review-layout,
  .connection-section { grid-template-columns: minmax(0, 1fr); }
  .node-detail { position: relative; top: auto; min-height: 0; }
  .connection-section { gap: 24px; }
  .identity-card { width: min(420px, 100%); }
  .safety-list { grid-template-columns: 1fr; gap: 4px; }
  .age-control { grid-template-columns: 1fr; }
  .age-control > div:first-child,
  .age-control input,
  .age-control-foot { grid-column: 1; grid-row: auto; }
  .mechanics-list { grid-template-columns: repeat(2, 1fr); }
  .credits-carousel { height: 680px; }
  .credit-card.is-active { width: min(440px, 58vw); }
  .credits-stage { inset: 0 50px 48px; }
  .cave-content { grid-template-columns: minmax(260px, .65fr) minmax(320px, .85fr); gap: 24px; }
  .public-review-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .deep-dive-body { grid-template-columns: 1fr; }
  .factsheet-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .factsheet-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
  html { width: 100%; max-width: 100%; overflow-x: hidden; }
  body { width: 100%; max-width: 100%; overflow-x: hidden; }
  body * { min-width: 0; }
  .debrief-topbar,
  main,
  footer { width: calc(100% - 28px); }
  .debrief-topbar { gap: 10px; }
  .debrief-status { display: none; }
  .debrief-brand { min-width: 0; }
  .debrief-brand span:last-child { min-width: 0; }
  .debrief-brand strong { overflow-wrap: anywhere; }
  main { padding-top: 18px; }
  .chapter-nav { top: 68px; gap: 2px; width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; }
  .chapter-nav a { flex: 1 0 auto; min-width: 0; padding: 8px 9px; text-align: center; }
  .chapter-nav span { display: block; margin: 0; }
  .reveal-section { min-height: calc(100svh - 86px); padding: 24px 0; gap: 36px; }
  .reveal-copy { transform: translateY(-43px); }
  .reveal-copy h1 { font-size: clamp(2.85rem, 15vw, 4.5rem); overflow-wrap: anywhere; }
  .identity-reveal,
  .audio-section,
  .map-section,
  .knowledge-section,
  .mechanics-section,
  .credits-section,
  .review-section { padding: 64px 0; }
  .identity-reveal.cave-descent {
    width: 100vw;
    height: auto;
    min-height: 0;
    padding: 0;
    overflow: clip;
  }
  .cave-stage {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 0;
    overflow: hidden;
    contain: layout paint;
  }
  .cave-stone,
  .cave-scroll-hint { display: none; }
  .cave-content {
    width: calc(100% - 28px);
    height: auto;
    min-height: 0;
    padding: 64px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 14px;
    box-sizing: border-box;
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
  .cave-content > .section-heading,
  .cave-content > .age-portrait,
  .cave-content > .age-control { grid-column: 1; grid-row: auto; }
  .cave-content > .section-heading { display: none; }
  .cave-content > .age-portrait {
    flex: 0 0 auto;
    width: min(370px, calc((100svh - 260px) * .8003), 100%);
    max-height: none;
  }
  .cave-content > .age-control { flex: 0 0 auto; width: min(420px, 100%); padding: 12px 14px; }
  .age-control-foot p { font-size: 10px; }
  .age-portrait { min-height: 0; aspect-ratio: 1122 / 1402; }
  .portrait-old,
  .portrait-young img { object-position: center center; }
  .portrait-caption { right: 18px; bottom: 18px; }
  .portrait-caption span { display: none; }
  .audio-layout,
  .map-layout,
  .review-layout,
  .connection-section { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .audio-console,
  .review-form,
  .review-aside,
  .connection-section,
  .node-detail { padding: 20px 16px; }
  .audio-console audio,
  .connection-list,
  .connection-list button { width: 100%; max-width: 100%; }
  .connection-list button,
  .connection-list small,
  .map-node,
  .map-node span,
  .map-node strong { overflow-wrap: anywhere; }
  .section-heading { align-items: flex-start; }
  .section-heading h2 { font-size: clamp(2rem, 11vw, 3.2rem); overflow-wrap: anywhere; }
  .map-node-grid { grid-template-columns: minmax(0, 1fr); }
  .map-lane-head { align-items: flex-start; flex-direction: column; gap: 4px; }
  .public-review-card header { flex-wrap: wrap; }
  .star-rating { width: 100%; justify-content: space-between; }
  .star-rating button { flex: 1; padding: 0; font-size: clamp(2rem, 12vw, 3.3rem); }
  .review-form textarea,
  .review-form input,
  .primary-button { max-width: 100%; }
  .mechanics-list { grid-template-columns: 1fr; }
  .credits-carousel {
    width: calc(100vw - 28px);
    height: min(660px, 160vw);
    margin-left: calc(50% - 50vw + 14px);
  }
  .credits-stage { inset: 0 26px 48px; }
  .credit-card { width: min(72vw, 300px); }
  .credit-card.is-active { width: min(88vw, 390px); }
  .credit-card.is-prev { transform: translate3d(-116%, -50%, -110px) rotateY(12deg) scale(.7); }
  .credit-card.is-next { transform: translate3d(16%, -50%, -110px) rotateY(-12deg) scale(.7); }
  .credit-card.is-far-prev { transform: translate3d(-155%, -50%, -220px) scale(.54); }
  .credit-card.is-far-next { transform: translate3d(55%, -50%, -220px) scale(.54); }
  .credits-control { top: 46%; width: 44px; height: 44px; }
  .credits-control-prev { left: 0; }
  .credits-control-next { right: 0; }
  .credits-meta { margin-top: -28px; }
  .credit-card > div { right: 16px; bottom: 16px; left: 16px; }
  .credit-jan-melina h3 { font-size: clamp(1.15rem, 6vw, 1.55rem); }
  .credit-jan-melina p { font-size: 10px; letter-spacing: .035em; }
  .credits-feature { margin-top: 34px; }
  .credits-feature summary { grid-template-columns: minmax(0, 1fr); padding: 20px 0; }
  .credits-feature summary em { grid-column: 1; grid-row: auto; margin-top: 6px; }
  .credits-feature-carousel { height: min(118vw, 520px); padding: 0 22px 48px; }
  .credits-feature-stage { inset: 0 18px 52px; }
  .credits-feature-stage figure { width: min(84%, 360px); aspect-ratio: 4 / 5; }
  .credits-feature-stage figure.feature-portrait { width: min(74%, 290px); aspect-ratio: 2 / 3; }
  .credits-feature-stage figure.is-prev { transform: translate3d(-109%, -50%, -130px) rotateY(34deg) scale(.68); }
  .credits-feature-stage figure.is-next { transform: translate3d(9%, -50%, -130px) rotateY(-34deg) scale(.68); }
  .credits-feature-stage img { object-position: center; }
  .feature-control { top: calc(50% - 25px); width: 44px; height: 44px; }
  .feature-control-prev { left: 0; }
  .feature-control-next { right: 0; }
  .feature-meta { right: 18px; bottom: 16px; left: 18px; }
  .review-wall > header { align-items: start; flex-direction: column; }
  .review-summary { justify-items: start; }
  .public-review-list { grid-template-columns: 1fr; }
  .deep-dive-card summary { grid-template-columns: 28px minmax(0, 1fr) 22px; gap: 12px; padding: 18px 12px; }
  .deep-dive-card summary small { font-size: 11px; }
  .deep-dive-body { margin: 0 12px 16px 40px; }
  .factsheet-library > header { grid-template-columns: 1fr; gap: 14px; }
  .factsheet-list { grid-template-columns: 1fr; }
  .factsheet-card:last-child:nth-child(odd) { grid-column: auto; }
  .factsheet-card { min-height: 0; }
}

@media (max-width: 430px) {
  .debrief-brand small { display: none; }
  .debrief-brand strong { font-size: 10px; letter-spacing: .05em; }
  .chapter-nav { border-radius: 16px; }
  .chapter-nav a { font-size: 10px; }
  .cave-content > .age-portrait { max-height: none; }
  .age-control-foot button { width: 100%; }
  .factsheet-card { grid-template-columns: 30px minmax(0, 1fr); padding: 18px 12px; }
  .factsheet-card a { grid-column: 2; }
}

@media (prefers-reduced-motion: reduce) {
  body::before { transform: none; }
  .identity-reveal.cave-descent { height: auto; }
  .cave-stage { position: relative; top: 0; min-height: 100vh; }
  .cave-stone { display: none; }
  .cave-content { opacity: 1; transform: none; pointer-events: auto; }
  .cave-scroll-hint { display: none; }
  .credit-card,
  .credit-card img,
  .credits-dots button { transition: none; }
}

/* Kapitelweise Bildergeschichte */
.story-section {
  position: relative;
  padding: 104px 0 112px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 138px;
  isolation: isolate;
}
.story-section::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 8% 0 0;
  background:
    radial-gradient(circle at 12% 18%, rgba(212, 173, 115, .09), transparent 30%),
    radial-gradient(circle at 86% 62%, rgba(143, 181, 195, .08), transparent 34%);
  pointer-events: none;
}
.story-section .section-intro { max-width: 820px; }
.story-chapters {
  display: flex;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  gap: 8px;
  margin: 36px 0 22px;
  padding: 0 0 10px;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(212, 173, 115, .38) transparent;
  overscroll-behavior-inline: contain;
}
.story-chapter-button {
  flex: 0 0 auto;
  display: grid;
  gap: 4px;
  min-width: 175px;
  padding: 13px 16px;
  border: 1px solid rgba(212, 173, 115, .16);
  border-radius: 999px;
  color: #aaa39a;
  background: rgba(8, 8, 7, .46);
  text-align: left;
  cursor: pointer;
  transition: border-color .25s ease, color .25s ease, background .25s ease, box-shadow .25s ease;
}
.story-chapter-button span {
  color: var(--gold);
  font: 9px Consolas, monospace;
  letter-spacing: .14em;
}
.story-chapter-button strong {
  overflow: hidden;
  font: 500 11px/1.2 system-ui, sans-serif;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.story-chapter-button:hover,
.story-chapter-button:focus-visible,
.story-chapter-button.is-active {
  border-color: rgba(212, 173, 115, .72);
  color: #f0e9df;
  background: rgba(212, 173, 115, .09);
  box-shadow: 0 0 26px rgba(212, 173, 115, .1);
}
.story-viewer {
  position: relative;
  width: 100%;
  outline: none;
  touch-action: pan-y;
  overflow-anchor: none;
}
.story-stage {
  position: relative;
  min-height: clamp(620px, 72vh, 820px);
  overflow: hidden;
  border: 1px solid rgba(212, 173, 115, .2);
  background:
    radial-gradient(circle at 50% 14%, rgba(143, 181, 195, .055), transparent 36%),
    #050505;
  box-shadow: 0 32px 88px rgba(0, 0, 0, .52), inset 0 0 84px rgba(0, 0, 0, .46);
}
.story-stage:focus-visible { outline: 1px solid var(--gold); outline-offset: 4px; }
.story-frame {
  min-height: inherit;
  animation: story-enter-next .62s cubic-bezier(.22, .78, .2, 1) both;
}
.story-viewer[data-direction="prev"] .story-frame { animation-name: story-enter-prev; }
.story-viewer[data-direction="none"] .story-frame { animation-name: story-enter-still; }
@keyframes story-enter-next {
  from { opacity: .18; transform: translate3d(3.2%, 0, 0) scale(1.012); filter: blur(4px); }
  to { opacity: 1; transform: none; filter: none; }
}
@keyframes story-enter-prev {
  from { opacity: .18; transform: translate3d(-3.2%, 0, 0) scale(1.012); filter: blur(4px); }
  to { opacity: 1; transform: none; filter: none; }
}
@keyframes story-enter-still {
  from { opacity: 0; }
  to { opacity: 1; }
}
.story-frame-chapter {
  position: relative;
  display: grid;
  place-items: center;
  min-height: clamp(620px, 72vh, 820px);
  padding: clamp(46px, 8vw, 118px);
  text-align: center;
  isolation: isolate;
}
.story-frame-chapter::before,
.story-frame-chapter::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
}
.story-frame-chapter::before {
  inset: 0;
  background:
    linear-gradient(90deg, rgba(212, 173, 115, .13) 1px, transparent 1px) 50% / 11.11% 100%,
    linear-gradient(rgba(143, 181, 195, .07) 1px, transparent 1px) 50% / 100% 20%,
    radial-gradient(circle at 50% 43%, rgba(212, 173, 115, .16), transparent 28%);
  mask-image: radial-gradient(circle at center, #000 0 34%, transparent 78%);
}
.story-frame-chapter::after {
  inset: 8%;
  border: 1px solid rgba(212, 173, 115, .12);
  clip-path: polygon(0 0, 18% 0, 18% 1px, 82% 1px, 82% 0, 100% 0, 100% 100%, 82% 100%, 82% calc(100% - 1px), 18% calc(100% - 1px), 18% 100%, 0 100%);
}
.story-chapter-aurora {
  position: absolute;
  z-index: -2;
  width: min(66vw, 820px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(from 20deg, rgba(212, 173, 115, .09), rgba(143, 181, 195, .11), transparent 42%, rgba(212, 173, 115, .06), transparent 76%);
  filter: blur(22px);
  animation: story-aurora 16s linear infinite;
}
@keyframes story-aurora { to { transform: rotate(1turn); } }
.story-chapter-copy { max-width: 780px; }
.story-frame-bonus {
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 46%, rgba(212, 173, 115, .115), transparent 33%),
    linear-gradient(145deg, rgba(58, 43, 23, .22), rgba(3, 7, 9, .72) 47%, rgba(39, 29, 17, .18));
}
.story-frame-bonus::before {
  inset: -18%;
  background:
    repeating-radial-gradient(circle at center, transparent 0 74px, rgba(212, 173, 115, .085) 75px 76px, transparent 77px 112px),
    conic-gradient(from 0deg, transparent, rgba(212, 173, 115, .16), transparent 14%, transparent 48%, rgba(143, 181, 195, .1), transparent 64%);
  mask-image: radial-gradient(circle at center, #000 0 43%, transparent 76%);
  animation: story-bonus-orbit 24s linear infinite;
}
.story-frame-bonus::after {
  inset: 5%;
  border-color: rgba(212, 173, 115, .28);
  box-shadow: inset 0 0 70px rgba(212, 173, 115, .035), 0 0 36px rgba(212, 173, 115, .05);
}
.story-frame-bonus .story-chapter-aurora {
  width: min(78vw, 940px);
  background: conic-gradient(from 18deg, transparent, rgba(212, 173, 115, .2), transparent 26%, rgba(99, 154, 167, .11), transparent 58%, rgba(212, 173, 115, .13), transparent 82%);
  filter: blur(18px);
  animation-duration: 21s;
}
.story-frame-bonus h3 { text-shadow: 0 0 44px rgba(212, 173, 115, .16); }
.story-frame-bonus .story-chapter-continue {
  border-color: rgba(230, 190, 119, .72);
  box-shadow: 0 0 22px rgba(212, 173, 115, .12), inset 0 0 18px rgba(212, 173, 115, .04);
}
.story-bonus-reveal {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 25px;
  color: #e2be82;
  font: 10px Consolas, monospace;
  letter-spacing: .2em;
  text-transform: uppercase;
  animation: story-bonus-reveal 1.1s ease both;
}
.story-bonus-reveal i {
  display: block;
  width: clamp(24px, 4vw, 58px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(226, 190, 130, .8));
  box-shadow: 0 0 10px rgba(226, 190, 130, .38);
}
.story-bonus-reveal i:last-child { transform: scaleX(-1); }
@keyframes story-bonus-orbit { to { transform: rotate(1turn) scale(1.02); } }
@keyframes story-bonus-reveal {
  from { opacity: 0; transform: translateY(10px); filter: blur(4px); }
  to { opacity: 1; transform: none; filter: none; }
}
.story-chapter-kicker,
.story-chapter-number,
.story-frame-chapter time {
  display: block;
  font-family: Consolas, monospace;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.story-chapter-kicker { margin-bottom: 26px; color: #9b958b; font-size: 10px; }
.story-chapter-number { color: var(--gold); font-size: 12px; }
.story-frame-chapter h3 {
  max-width: 760px;
  margin: 18px auto 16px;
  color: #f1ece5;
  font: 400 clamp(3.1rem, 6.5vw, 6.9rem)/.88 Georgia, "Times New Roman", serif;
  letter-spacing: -.055em;
  text-wrap: balance;
}
.story-frame-chapter time { color: #adc3c8; font-size: 10px; }
.story-frame-chapter p {
  max-width: 700px;
  margin: 34px auto 0;
  color: #bfb8ae;
  font-size: clamp(.96rem, 1.25vw, 1.12rem);
  line-height: 1.8;
  text-wrap: pretty;
}
.story-chapter-continue {
  margin-top: 34px;
  padding: 12px 19px;
  border: 1px solid rgba(212, 173, 115, .5);
  border-radius: 999px;
  color: #e4d6c2;
  background: transparent;
  font: 10px Consolas, monospace;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
}
.story-chapter-continue span { margin-left: 8px; color: var(--gold); }
.story-scene-figure {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(360px, .72fr);
  min-height: clamp(620px, 72vh, 820px);
  margin: 0;
}
.story-image-wrap {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: #020202;
}
.story-image-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 72%, rgba(5, 5, 5, .56)), linear-gradient(0deg, rgba(0, 0, 0, .24), transparent 24%);
  pointer-events: none;
}
.story-image-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: clamp(620px, 72vh, 820px);
  object-fit: contain;
  image-rendering: auto;
}
.story-image-index {
  position: absolute;
  z-index: 2;
  right: 22px;
  bottom: 18px;
  color: rgba(255, 255, 255, .68);
  font: 9px Consolas, monospace;
  letter-spacing: .13em;
}
.story-scene-figure figcaption {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: clamp(32px, 3.3vw, 54px);
  border-left: 1px solid rgba(212, 173, 115, .17);
  background: linear-gradient(145deg, rgba(18, 17, 14, .98), rgba(5, 6, 6, .98));
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: auto;
}
.story-scene-figure figcaption::before {
  content: "";
  width: 42px;
  height: 1px;
  margin-bottom: 28px;
  background: var(--gold);
  box-shadow: 0 0 18px rgba(212, 173, 115, .62);
}
.story-scene-kicker { color: var(--gold); font: 9px Consolas, monospace; letter-spacing: .15em; }
.story-scene-figure h3 {
  margin: 16px 0 22px;
  color: #eee8df;
  font: 400 clamp(2.2rem, 3.2vw, 4.2rem)/.95 Georgia, "Times New Roman", serif;
  letter-spacing: -.045em;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
.story-scene-figure figcaption p {
  margin: 0;
  color: #bbb4aa;
  font-size: clamp(.92rem, 1.08vw, 1.04rem);
  line-height: 1.75;
  text-wrap: pretty;
  overflow-wrap: anywhere;
}
.story-control {
  position: absolute;
  z-index: 8;
  top: var(--story-control-top, 50%);
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  padding: 0;
  border: 1px solid rgba(212, 173, 115, .54);
  border-radius: 50%;
  color: #f0e7da;
  background: radial-gradient(circle, rgba(17, 16, 13, .94), rgba(5, 5, 5, .84));
  box-shadow: 0 0 0 7px rgba(4, 4, 4, .48), 0 0 26px rgba(212, 173, 115, .12);
  font: 300 25px/1 Consolas, monospace;
  cursor: pointer;
  appearance: none;
  transform: translateY(-50%);
  transition: color .2s ease, border-color .2s ease, box-shadow .2s ease, opacity .2s ease;
}
.story-control-prev { left: -34px; }
.story-control-next { right: -34px; }
.story-control:hover,
.story-control:focus-visible,
.story-control.overload-live {
  border-color: rgba(214, 238, 241, .9) !important;
  color: #fff;
  box-shadow: 0 0 0 7px rgba(4, 4, 4, .52), 0 0 20px rgba(143, 181, 195, .5), 0 0 48px rgba(212, 173, 115, .26) !important;
}
.story-control:disabled { opacity: .22; cursor: default; box-shadow: none; }
.story-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 18px 2px 0;
}
.story-progress { height: 1px; overflow: hidden; background: rgba(255, 255, 255, .13); }
.story-progress i {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #7f9daa, var(--gold));
  box-shadow: 0 0 12px rgba(212, 173, 115, .64);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s ease;
}
.story-meta { display: flex; align-items: center; gap: 18px; font: 9px Consolas, monospace; letter-spacing: .12em; }
.story-meta span { color: var(--gold); }
.story-meta strong { color: #bbb4aa; font-weight: 400; }

@media (max-width: 1040px) {
  .story-scene-figure { grid-template-columns: minmax(0, 1.18fr) minmax(330px, .82fr); }
  .story-scene-figure figcaption { padding: 34px 28px; }
  .story-control { width: 58px; height: 58px; }
  .story-control-prev { left: -18px; }
  .story-control-next { right: -18px; }
}

@media (max-width: 760px) {
  .story-section { padding: 72px 0 76px; }
  .story-chapters { margin-top: 28px; }
  .story-chapter-button { min-width: 150px; padding: 11px 14px; }
  .story-viewer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px;
  }
  .story-stage,
  .story-frame,
  .story-frame-chapter,
  .story-scene-figure { min-height: 0; }
  .story-stage { grid-column: 1 / -1; grid-row: 1; }
  .story-frame-chapter { min-height: clamp(560px, 82svh, 720px); padding: 54px 24px; }
  .story-frame-chapter h3 { font-size: clamp(2.7rem, 14vw, 4.4rem); }
  .story-frame-chapter p { font-size: .93rem; line-height: 1.67; }
  .story-scene-figure { display: flex; flex-direction: column; }
  .story-image-wrap {
    order: 2;
    display: grid;
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: var(--story-image-ratio, 16 / 9);
  }
  .story-image-wrap img { width: 100%; height: 100%; max-height: none; object-fit: contain; }
  .story-image-wrap::after { background: linear-gradient(0deg, rgba(0, 0, 0, .4), transparent 25%); }
  .story-scene-figure figcaption { order: 1; min-height: 0; padding: 30px 26px 34px; border-top: 0; border-bottom: 1px solid rgba(212, 173, 115, .17); border-left: 0; }
  .story-scene-figure figcaption::before { margin-bottom: 20px; }
  .story-scene-figure h3 { margin: 14px 0 18px; font-size: clamp(2rem, 9vw, 3.15rem); }
  .story-scene-figure figcaption p { font-size: .94rem; line-height: 1.7; }
  .story-control {
    position: relative;
    top: auto;
    width: 100%;
    height: 48px;
    border-radius: 999px;
    box-shadow: 0 0 0 5px rgba(4, 4, 4, .48), 0 0 24px rgba(212, 173, 115, .14);
    transform: none;
  }
  .story-control-prev { grid-column: 1; grid-row: 2; left: auto; }
  .story-control-next { grid-column: 2; grid-row: 2; right: auto; }
  .story-footer { grid-column: 1 / -1; grid-row: 3; grid-template-columns: 1fr; gap: 12px; }
  .story-meta { justify-content: space-between; }
}

@media (max-width: 430px) {
  .story-scene-figure figcaption { padding-right: 22px; padding-left: 22px; }
  .story-control { height: 46px; }
}

@media (prefers-reduced-motion: reduce) {
  .story-frame,
  .story-chapter-aurora,
  .story-frame-bonus::before,
  .story-bonus-reveal { animation: none !important; }
  .story-progress i { transition: none; }
}
