:root {
  color: #f6f1e8;
  background: #07100d;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  --ink: #f6f1e8;
  --muted: #afb7b1;
  --green: #10251c;
  --green-soft: #173528;
  --gold: #d3b073;
  --lime: #c8ef78;
  --line: rgb(225 215 190 / 18%);
}

* { box-sizing: border-box; }
body { min-width: 300px; min-height: 100vh; margin: 0; background: radial-gradient(circle at 50% -20%, #214d38 0, #0b1813 40%, #07100d 72%); }
button { font: inherit; }
button:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }

.storybook { width: min(100%, 92rem); min-height: 100vh; margin: 0 auto; padding: clamp(1rem, 2.6vw, 2.4rem); }
.story-header { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 1rem; }
.eyebrow, .panel-label { margin: 0 0 0.35rem; color: var(--gold); font-size: 0.68rem; font-weight: 800; letter-spacing: 0.15em; text-transform: uppercase; }
h1, h2, h3, p { text-wrap: pretty; }
h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.6rem, 3vw, 2.7rem); font-weight: 500; }
.header-tools { display: flex; align-items: center; gap: 1rem; }
.story-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 0.55rem; }
.outline-button { min-height: 2.4rem; padding: 0.5rem 0.8rem; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); background: rgb(255 255 255 / 3%); cursor: pointer; }
.outline-button:hover { border-color: var(--gold); }
.autoplay-toggle, .narrate-toggle, .background-toggle { display: inline-flex; align-items: center; gap: 0.5rem; }
.autoplay-toggle[aria-pressed="true"], .narrate-toggle[aria-pressed="true"], .background-toggle[aria-pressed="true"] { color: #132006; border-color: var(--lime); background: var(--lime); font-weight: 800; }
.mode-dot { width: 0.5rem; height: 0.5rem; border: 1px solid currentColor; border-radius: 50%; background: transparent; }
.autoplay-toggle[aria-pressed="true"] .mode-dot, .narrate-toggle[aria-pressed="true"] .mode-dot, .background-toggle[aria-pressed="true"] .mode-dot { background: currentColor; }
.scene-progress { width: min(15rem, 35vw); color: var(--muted); font-size: 0.72rem; text-align: right; }
.progress-track { height: 0.2rem; margin-top: 0.55rem; overflow: hidden; border-radius: 99px; background: rgb(255 255 255 / 12%); }
.progress-track span { display: block; width: 5.556%; height: 100%; border-radius: inherit; background: var(--gold); transition: width 300ms ease; }

.chapter-navigation { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: end; gap: 0.8rem; margin: 0 0 1rem; }
.chapter-marker-wrap { min-width: 0; }
#current-chapter-label { margin: 0 0 0.45rem; color: var(--muted); font-size: 0.68rem; letter-spacing: 0.04em; text-align: center; }
.chapter-markers { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.38rem; }
.chapter-markers::before { position: absolute; top: 50%; right: 0.5rem; left: 0.5rem; z-index: -1; height: 1px; background: var(--line); content: ""; }
.chapter-marker { display: grid; gap: 0.12rem; min-width: 0; min-height: 3.6rem; padding: 0.5rem 0.6rem; border: 1px solid var(--line); border-radius: 0.7rem; color: var(--muted); background: rgb(7 16 13 / 94%); text-align: left; cursor: pointer; }
.chapter-marker:hover:not(:disabled) { border-color: var(--gold); color: var(--ink); }
.chapter-marker.is-active { color: #142006; border-color: var(--lime); background: var(--lime); }
.chapter-marker:disabled { opacity: 0.42; cursor: default; }
.chapter-marker span { font-size: 0.57rem; font-weight: 850; letter-spacing: 0.08em; text-transform: uppercase; }
.chapter-marker strong { overflow: hidden; font-family: Georgia, "Times New Roman", serif; font-size: 0.75rem; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.chapter-marker small { overflow: hidden; font-size: 0.57rem; text-overflow: ellipsis; white-space: nowrap; }
.chapter-step { min-height: 2.4rem; padding: 0.5rem 0.7rem; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); background: rgb(255 255 255 / 3%); cursor: pointer; }
.chapter-step:hover:not(:disabled) { border-color: var(--gold); }
.chapter-step:disabled { opacity: 0.32; cursor: default; }

.scene-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: clamp(0.8rem, 1.5vw, 1.25rem); background: #111b17; box-shadow: 0 1.5rem 5rem rgb(0 0 0 / 42%); isolation: isolate; }
.scene-frame::before { position: absolute; inset: 0; z-index: 2; border: 1px solid rgb(255 255 255 / 5%); border-radius: inherit; content: ""; pointer-events: none; }
.scene-frame.is-changing #scene-image { opacity: 0; transform: scale(1.018); }
#scene-image { display: block; width: 100%; height: 100%; object-fit: cover; transform: scale(1); transition: opacity 260ms ease, transform 12s ease-out; }
.scene-frame.is-settled #scene-image { transform: scale(1.035); }
.scene-frame[data-has-tutorial] { cursor: pointer; }
.scene-frame[data-has-tutorial]:focus-visible { outline: 3px solid var(--lime); outline-offset: 4px; }
.scene-shade { position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgb(2 6 4 / 68%) 0, transparent 54%), linear-gradient(to top, rgb(2 6 4 / 72%) 0, transparent 42%); pointer-events: none; }
.scene-demo-cue { position: absolute; top: clamp(0.8rem, 2vw, 1.4rem); right: clamp(0.8rem, 2vw, 1.4rem); z-index: 4; display: grid; gap: 0.12rem; max-width: min(18rem, calc(100% - 1.6rem)); padding: 0.55rem 0.75rem; border: 1px solid rgb(200 239 120 / 42%); border-radius: 0.7rem; color: var(--ink); background: rgb(7 16 13 / 82%); box-shadow: 0 0.5rem 1.5rem rgb(0 0 0 / 25%); pointer-events: none; backdrop-filter: blur(0.45rem); }
.scene-demo-cue[hidden] { display: none; }
.scene-demo-cue strong { color: var(--lime); font-size: 0.72rem; letter-spacing: 0.04em; }
.scene-demo-cue small { overflow: hidden; color: var(--muted); font-size: 0.64rem; text-overflow: ellipsis; white-space: nowrap; }
.scene-copy { position: absolute; bottom: clamp(1rem, 4vw, 3.5rem); left: clamp(1rem, 4vw, 3.8rem); z-index: 3; width: min(38rem, calc(100% - 2rem)); text-shadow: 0 0.15rem 1rem #000; }
.scene-time { margin: 0 0 0.5rem; color: var(--gold); font-size: clamp(0.68rem, 1.4vw, 0.82rem); font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.scene-copy h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.7rem, 4vw, 3.6rem); font-weight: 500; line-height: 1.05; }
.scene-copy > p:not(.scene-time, .speaker) { margin: 0.7rem 0 0; color: #fff; font-size: clamp(0.92rem, 1.8vw, 1.2rem); line-height: 1.55; }
.scene-copy > p[hidden], .scene-dialogue[hidden] { display: none; }
.scene-dialogue { display: grid; gap: 0.42rem; margin-top: 0.78rem; }
.scene-dialogue p { display: grid; grid-template-columns: minmax(5.2rem, auto) minmax(0, 1fr); gap: 0.65rem; align-items: start; max-width: 42rem; margin: 0; padding: 0.42rem 0.58rem; border-left: 2px solid rgb(211 176 115 / 72%); border-radius: 0 0.4rem 0.4rem 0; color: #fff; background: rgb(5 12 9 / 52%); font-size: clamp(0.78rem, 1.45vw, 1rem); line-height: 1.42; backdrop-filter: blur(0.24rem); }
.scene-dialogue strong { color: var(--gold); font-size: 0.65rem; letter-spacing: 0.06em; text-transform: uppercase; }
.scene-dialogue span { min-width: 0; }
.speaker { margin: 0.7rem 0 0; color: #d7d8d4; font-size: 0.68rem; font-weight: 750; letter-spacing: 0.09em; text-transform: uppercase; }
.review-status { display: inline-flex; margin: 0.7rem 0 0; padding: 0.3rem 0.5rem; border: 1px solid rgb(239 189 114 / 45%); border-radius: 999px; color: #f6cf93; background: rgb(65 35 11 / 72%); font-size: 0.62rem; font-weight: 850; letter-spacing: 0.06em; text-transform: uppercase; }
.review-status[hidden] { display: none; }

.scene-actions { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 0.8rem; margin-top: 1rem; }
.center-actions { display: flex; justify-content: center; gap: 0.55rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 2.7rem; padding: 0.6rem 1rem; border: 1px solid #536159; border-radius: 999px; color: var(--ink); background: transparent; cursor: pointer; }
.button:hover:not(:disabled) { border-color: var(--gold); background: rgb(255 255 255 / 4%); }
.button:disabled { opacity: 0.36; cursor: default; }
.button.primary { justify-self: end; color: #11170e; border-color: var(--gold); background: var(--gold); font-weight: 800; }
.button.demo { color: #142006; border-color: var(--lime); background: var(--lime); font-weight: 800; }
.button[hidden] { display: none; }
.scene-status { min-height: 1.3em; margin: 0.65rem 0 0; color: #8f9a93; font-size: 0.73rem; text-align: center; }
.chapter-dots { display: flex; justify-content: center; gap: 0.45rem; margin-top: 0.6rem; }
.chapter-dot { width: 0.55rem; height: 0.55rem; padding: 0; border: 1px solid #6c776f; border-radius: 50%; background: transparent; cursor: pointer; }
.chapter-dot.is-active { border-color: var(--gold); background: var(--gold); }

.tutorial-dialog, .storyboard-dialog { width: min(94vw, 76rem); max-height: 92vh; padding: 0; overflow: auto; border: 1px solid rgb(200 239 120 / 22%); border-radius: 1.25rem; color: var(--ink); background: #09150f; box-shadow: 0 2rem 8rem #000; }
.tutorial-dialog { width: min(94vw, 62rem); }
.storyboard-dialog { width: min(96vw, 88rem); }
.tutorial-dialog::backdrop, .storyboard-dialog::backdrop { background: rgb(0 0 0 / 78%); backdrop-filter: blur(0.35rem); }
.tutorial-card { min-width: 0; }
.tutorial-header, .storyboard-header { display: flex; align-items: start; justify-content: space-between; gap: 1rem; padding: clamp(1rem, 3vw, 2rem); border-bottom: 1px solid var(--line); }
.tutorial-header h2, .storyboard-header h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.4rem, 3vw, 2.3rem); font-weight: 500; }
.tutorial-header p:last-child { max-width: 48rem; margin: 0.5rem 0 0; color: var(--muted); line-height: 1.55; }
.storyboard-header p:last-child { max-width: 54rem; margin: 0.5rem 0 0; color: var(--muted); line-height: 1.55; }
.close-demo { flex: 0 0 auto; width: 2.6rem; height: 2.6rem; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); background: transparent; font-size: 1.5rem; cursor: pointer; }
.tutorial-body { display: grid; gap: 1.2rem; padding: clamp(1rem, 3vw, 2rem); }
.tutorial-pending { display: grid; gap: 0.55rem; min-height: 15rem; place-content: center; padding: clamp(1.25rem, 4vw, 3rem); border: 1px dashed rgb(200 239 120 / 32%); border-radius: 1rem; text-align: center; background: radial-gradient(circle at 50% 0, rgb(200 239 120 / 8%), transparent 55%), #0d1c15; }
.tutorial-pending[hidden], #tutorial-video[hidden] { display: none; }
.tutorial-pending > span { justify-self: center; padding: 0.35rem 0.65rem; border: 1px solid rgb(211 176 115 / 35%); border-radius: 99px; color: var(--gold); font-size: 0.67rem; font-weight: 850; letter-spacing: 0.08em; text-transform: uppercase; }
.tutorial-pending strong { font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.35rem, 3vw, 2rem); font-weight: 500; }
.tutorial-pending p { max-width: 37rem; margin: 0; color: var(--muted); line-height: 1.55; }
.tutorial-plan-link { justify-self: center; margin-top: 0.55rem; text-decoration: none; }
#tutorial-video { display: block; width: 100%; max-height: 64vh; border: 1px solid var(--line); border-radius: 1rem; background: #000; }
.tutorial-details h3 { margin: 1.2rem 0 0; font-size: 1rem; }
.tutorial-metadata { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.65rem; }
.tutorial-metadata > span { display: grid; gap: 0.25rem; min-width: 0; padding: 0.75rem; border: 1px solid var(--line); border-radius: 0.7rem; background: var(--green); }
.tutorial-metadata small { color: var(--muted); font-size: 0.65rem; letter-spacing: 0.06em; text-transform: uppercase; }
.tutorial-metadata strong { overflow-wrap: anywhere; font-size: 0.8rem; }
.tutorial-topics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.55rem; margin: 0.75rem 0 0; padding: 0; list-style-position: inside; }
.tutorial-topics li { min-width: 0; padding: 0.7rem; border: 1px solid var(--line); border-radius: 0.65rem; color: var(--muted); background: rgb(255 255 255 / 2%); font-size: 0.78rem; line-height: 1.4; }
.tutorial-chapters-section { margin-top: 1rem; padding: 1rem; border: 1px solid rgb(211 176 115 / 24%); border-radius: 0.85rem; background: rgb(211 176 115 / 5%); }
.tutorial-chapters-section > div { display: flex; align-items: end; justify-content: space-between; gap: 1rem; }
.tutorial-chapters-section h3 { margin: 0; }
.tutorial-chapters-section p { max-width: 35rem; margin: 0; color: var(--muted); font-size: 0.72rem; line-height: 1.45; text-align: right; }
.tutorial-chapter-markers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.55rem; margin-top: 0.8rem; }
.tutorial-chapter-marker { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.2rem 0.55rem; align-items: center; min-width: 0; padding: 0.7rem; border: 1px solid var(--line); border-radius: 0.7rem; color: var(--ink); background: #102219; text-align: left; cursor: pointer; }
.tutorial-chapter-markers a.tutorial-chapter-marker { text-decoration: none; }
.tutorial-chapter-marker > span { grid-row: 1 / 3; display: grid; width: 1.85rem; height: 1.85rem; place-items: center; border-radius: 50%; color: var(--gold); background: rgb(211 176 115 / 10%); font-size: 0.65rem; font-weight: 850; }
.tutorial-chapter-marker strong { overflow: hidden; font-size: 0.72rem; text-overflow: ellipsis; white-space: nowrap; }
.tutorial-chapter-marker small { color: var(--muted); font-size: 0.64rem; }
.tutorial-chapter-marker:hover:not(:disabled), .tutorial-chapter-marker.is-active { border-color: var(--lime); background: rgb(200 239 120 / 8%); }
.tutorial-chapter-marker:disabled { cursor: not-allowed; opacity: 0.68; }
.tutorial-voice { display: grid; gap: 0.45rem; margin: 1rem 0 0; padding: 0.9rem 1rem; border-left: 3px solid var(--gold); color: var(--muted); background: rgb(211 176 115 / 6%); line-height: 1.5; }
.tutorial-voice[hidden] { display: none; }
.tutorial-voice strong { color: var(--gold); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; }
.tutorial-paths { display: grid; gap: 0.35rem; margin: 1rem 0 0; padding-top: 0.8rem; border-top: 1px solid var(--line); }
.tutorial-paths div { display: grid; grid-template-columns: 6rem minmax(0, 1fr); gap: 0.5rem; font-size: 0.7rem; }
.tutorial-paths dt { color: var(--muted); }
.tutorial-paths dd { margin: 0; overflow-wrap: anywhere; color: var(--ink); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.tutorial-footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem clamp(1rem, 3vw, 2rem); border-top: 1px solid var(--line); }
.tutorial-footer p { margin: 0; color: var(--muted); font-size: 0.78rem; }

.storyboard-sheet { padding-bottom: 2rem; }
.storyboard-sheet > section { margin: 1.2rem clamp(1rem, 3vw, 2rem) 0; }
.direction-card { padding: 1rem 1.1rem; border: 1px solid rgb(211 176 115 / 25%); border-radius: 0.9rem; background: rgb(211 176 115 / 6%); }
.direction-card h3, .section-heading h3, .production-loop h3 { margin: 0; font-size: 1.05rem; }
.direction-card ol { display: grid; gap: 0.45rem; margin: 0.8rem 0 0; padding-left: 1.25rem; color: var(--muted); line-height: 1.5; }
.direction-card strong { color: var(--ink); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 0.75rem; }
.status-chip { flex: 0 0 auto; padding: 0.35rem 0.6rem; border: 1px solid rgb(200 239 120 / 25%); border-radius: 99px; color: var(--lime); background: rgb(200 239 120 / 6%); font-size: 0.65rem; font-weight: 800; }
.status-chip.planned { color: var(--gold); border-color: rgb(211 176 115 / 25%); background: rgb(211 176 115 / 6%); }
.storyboard-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.65rem; }
.story-card { min-width: 0; padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 0.75rem; color: var(--ink); background: var(--green); text-align: left; cursor: pointer; }
.story-card:hover { border-color: var(--gold); transform: translateY(-2px); }
.story-card img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.story-card span { display: grid; gap: 0.4rem; padding: 0.75rem; }
.story-card b { font-size: 0.76rem; }
.story-card small { color: var(--muted); font-size: 0.65rem; line-height: 1.4; }
.chapter-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.65rem; }
.chapter-grid article { padding: 0.9rem; border: 1px solid var(--line); border-radius: 0.75rem; background: rgb(255 255 255 / 2%); }
.chapter-grid span { color: var(--gold); font-size: 0.7rem; font-weight: 850; letter-spacing: 0.08em; }
.chapter-grid h4 { margin: 0.45rem 0 0; font-family: Georgia, "Times New Roman", serif; font-size: 1.05rem; font-weight: 500; }
.chapter-grid p { margin: 0.45rem 0 0; color: var(--muted); font-size: 0.7rem; line-height: 1.45; }
.production-loop { padding: 1rem; border: 1px solid var(--line); border-radius: 0.85rem; background: #0d1c15; }
.production-loop > div { display: flex; align-items: center; flex-wrap: wrap; gap: 0.55rem; margin-top: 0.8rem; color: var(--muted); font-size: 0.72rem; }
.production-loop span { padding: 0.35rem 0.55rem; border-radius: 99px; background: rgb(255 255 255 / 5%); }
.production-loop i { color: var(--gold); font-style: normal; }

@keyframes panel-in { from { opacity: 0; transform: translateY(0.25rem); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 46rem) {
  .storybook { padding: 0.8rem; }
  .story-header { align-items: start; flex-direction: column; gap: 0.6rem; }
  .header-tools { align-items: stretch; flex-direction: column; width: 100%; gap: 0.6rem; }
  .story-controls { display: grid; grid-template-columns: 1fr 1fr; }
  #open-storyboard { grid-column: 1 / -1; }
  .scene-progress { width: 100%; text-align: left; }
  .chapter-navigation { grid-template-columns: 2.6rem minmax(0, 1fr) 2.6rem; align-items: center; }
  .chapter-step { width: 2.6rem; padding: 0; }
  .chapter-step span:not([aria-hidden="true"]) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .chapter-markers { display: flex; overflow-x: auto; padding: 0.1rem; scroll-snap-type: x proximity; }
  .chapter-marker { flex: 0 0 8.8rem; scroll-snap-align: start; }
  .scene-frame { aspect-ratio: 4 / 5; }
  #scene-image { object-position: center; }
  .scene-shade { background: linear-gradient(to top, rgb(2 6 4 / 82%) 0, transparent 60%); }
  .scene-copy { bottom: 1.2rem; left: 1rem; width: calc(100% - 2rem); }
  .scene-copy h2 { font-size: clamp(1.45rem, 7vw, 2.2rem); }
  .scene-dialogue p { grid-template-columns: 1fr; gap: 0.18rem; font-size: 0.82rem; }
  .scene-actions { grid-template-columns: 2.8rem minmax(0, 1fr) 2.8rem; }
  .button.secondary, .button.primary { width: 2.8rem; padding: 0; }
  .button.secondary span:not([aria-hidden="true"]), .button.primary span:not([aria-hidden="true"]) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .center-actions { flex-direction: column; }
  .center-actions .button { min-height: 2.5rem; padding: 0.45rem 0.75rem; font-size: 0.78rem; }
  .tutorial-metadata, .tutorial-topics { grid-template-columns: 1fr; }
  .tutorial-chapters-section > div { align-items: start; flex-direction: column; }
  .tutorial-chapters-section p { text-align: left; }
  .tutorial-chapter-markers { grid-template-columns: 1fr 1fr; }
  .tutorial-footer { align-items: stretch; flex-direction: column; }
  .tutorial-footer .button { width: 100%; }
  .storyboard-grid, .chapter-grid { grid-template-columns: 1fr; }
  .story-card { display: grid; grid-template-columns: 8rem minmax(0, 1fr); }
  .story-card img { height: 100%; aspect-ratio: auto; }
  .section-heading { align-items: start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  #scene-image { transform: none !important; }
}

.story-ending { text-align: center; padding: 1rem; }
.story-ending[hidden] { display: none; }
.ending-choices { display: flex; justify-content: center; gap: .75rem; flex-wrap: wrap; }
.ending-choices a { text-decoration: none; }

.construction-notice { color: #d1efae; max-width: 48rem; line-height: 1.5; }

/* Persistent controls occupy their own viewport space below the scene. */
body { padding-bottom: 155px; }
.playback-dock { position: fixed; inset: auto 0 0; z-index: 10; padding: .55rem max(1rem, calc((100vw - 88rem)/2)); background: #091710; border-top: 1px solid var(--line); }
.playback-dock .story-controls { justify-content: center; gap: .35rem; }
.playback-dock .outline-button { min-height: 36px; padding: .35rem .65rem; font-size: .75rem; }
.playback-dock .scene-actions { margin-top: .35rem; gap: .4rem; }
.playback-dock .button { min-height: 36px; padding: .35rem .65rem; font-size: .75rem; }
.playback-dock .scene-status { margin: .3rem 0 0; font-size: .65rem; }
.story-runtime { margin: .3rem 0; text-align: center; color: var(--muted); font-size: .7rem; }
.scene-frame { max-height: calc(100svh - 200px); }
#scene-image { object-fit: contain; }
@media (max-width: 46rem) { body { padding-bottom: 190px; } .playback-dock { padding: .4rem .6rem; } .playback-dock .outline-button { min-height: 36px; font-size: .68rem; } }
.chapter-dots { flex-wrap: wrap; }
@media (max-width: 46rem) {
  body { padding-bottom: 240px; }
  .scene-frame { aspect-ratio: auto; max-height: none; }
  #scene-image { height: auto; aspect-ratio: 16 / 9; }
  .scene-copy { position: relative; inset: auto; width: auto; padding: 1rem; }
  .scene-shade { display: none; }
}

.scene-picture { display: block; width: 100%; height: 100%; }
