:root {
  color-scheme: dark;
  --black: #11120f;
  --ivory: #f2f0e6;
  --brass: #c7b47e;
  --label-cream: #f2e6c9;
  --label-ink: #29271f;
  --muted: #c0c0b6;
  --line: rgba(242, 240, 230, .2);
  --sans: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; }
body { background: var(--black); color: var(--ivory); font-family: var(--sans); }
button, input { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }
button { color: inherit; cursor: pointer; }
button:disabled { cursor: wait; }
button:focus-visible, input:focus-visible, a:focus-visible { outline: 2px solid var(--brass); outline-offset: 5px; }
button, a, input { touch-action: manipulation; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

#pano { position: fixed; inset: 0; width: 100%; height: 100%; background: #171915; }
.scene-shade { position: fixed; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(7, 9, 7, .66), transparent 140px), linear-gradient(180deg, transparent 62%, rgba(7, 9, 7, .72)); }
.viewer-header { position: fixed; z-index: 5; top: max(25px, env(safe-area-inset-top)); left: max(32px, env(safe-area-inset-left)); right: max(32px, env(safe-area-inset-right)); display: flex; align-items: flex-start; justify-content: space-between; gap: 28px; pointer-events: none; }
.chapter-heading { max-width: min(720px, calc(100vw - 140px)); }
.chapter-heading h2 { margin: 0; font: 400 clamp(23px, 2.6vw, 34px)/1.08 var(--serif); letter-spacing: -.025em; text-shadow: 0 2px 18px #000; }
.header-actions { display: flex; align-items: center; gap: 14px; margin-left: auto; pointer-events: auto; }
.icon-button { flex: 0 0 auto; width: 44px; height: 44px; padding: 10px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 3px; background: transparent; color: var(--ivory); transition: background-color .18s, border-color .18s, color .18s; }
.icon-button svg { width: 22px; height: 22px; flex: 0 0 auto; }
svg[fill="none"] { stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
svg:not([fill="none"]) { fill: currentColor; }
.icon-button:hover { border-color: var(--line); background: rgba(242, 240, 230, .09); }
#fullscreen { border-color: rgba(242, 240, 230, .34); background: rgba(12, 16, 12, .35); }

.intro { position: fixed; inset: 0; z-index: 3; display: flex; align-items: center; padding: 100px max(7vw, 32px); background: linear-gradient(90deg, rgba(8, 11, 8, .88), rgba(8, 11, 8, .53) 38%, rgba(8, 11, 8, .08) 78%); transition: opacity .65s ease, visibility .65s; }
.intro-copy { max-width: 760px; margin-top: 30px; }
.eyebrow { margin: 0; color: var(--brass); font-size: 10px; font-weight: 600; line-height: 1.5; letter-spacing: .19em; text-transform: uppercase; }
.intro .eyebrow { display: flex; align-items: center; gap: 16px; }
.intro .eyebrow>span { width: 40px; height: 1px; background: var(--brass); }
.intro h1 { margin: 26px 0; font: 400 clamp(52px, 6.9vw, 106px)/.98 var(--serif); letter-spacing: -.055em; }
.intro h1 em { color: #e1d8b9; font-weight: 400; }
.intro-location { margin: 0 0 10px; color: var(--brass); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.intro-description { max-width: 390px; margin: 0 0 33px; color: #d2d2c7; font-size: 16px; line-height: 1.7; }
.start-button { min-height: 52px; min-width: 196px; padding: 15px 23px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; border: 1px solid var(--ivory); border-radius: 1px; background: var(--ivory); color: var(--black); font-size: 12px; font-weight: 600; letter-spacing: .035em; transition: background-color .2s, opacity .2s; }
.start-button svg { width: 17px; height: 17px; }
.start-button:hover:not(:disabled) { background: var(--brass); border-color: var(--brass); }
.start-button:disabled { opacity: .57; }
.load-status { min-height: 18px; margin: 15px 0 0; color: #b2b6aa; font-size: 11px; line-height: 1.55; }
.entry-hint { max-width: 300px; margin: -15px 0 24px; color: #d3c8aa; font-size: 13px; line-height: 1.6; }
.model-progress { display: block; width: 196px; height: 3px; margin-top: 10px; border: 0; appearance: none; background: #ffffff20; color: var(--brass); }
.model-progress::-webkit-progress-bar { background: #ffffff20; }
.model-progress::-webkit-progress-value { background: var(--brass); }
.model-progress::-moz-progress-bar { background: var(--brass); }
.buffer-status { position: fixed; z-index: 4; left: 50%; top: 24px; transform: translateX(-50%); margin: 0; padding: 8px 13px; border: 1px solid var(--line); border-radius: 3px; background: rgba(17,22,17,.8); color: var(--muted); font-size: 11px; }
.slow-load { position:fixed; z-index:8; top:90px; left:50%; transform:translateX(-50%); width:max-content; max-width:calc(100% - 32px); padding:12px 16px; display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:10px; border:1px solid var(--brass); border-radius:8px; background:#1b1b15; color:var(--ivory); font-size:13px; box-shadow:0 6px 24px #0008; }
.slow-load button { min-height:44px; padding:8px 12px; border:1px solid var(--brass); border-radius:5px; background:transparent; color:var(--ivory); }
.chapter-nav>button:disabled, #progress:disabled { opacity: .4; cursor: wait; }
body[data-mode="intro"] .chapter-heading, body[data-mode="intro"] .transport, body[data-mode="intro"] .captions { visibility: hidden; opacity: 0; pointer-events: none; }
body:not([data-mode="intro"]) #intro { visibility: hidden; opacity: 0; pointer-events: none; }

.transport { position: fixed; z-index: 5; left: 50%; bottom: max(24px, env(safe-area-inset-bottom)); transform: translateX(-50%); width: min(1000px, calc(100% - 64px)); padding: 10px 15px; border: 1px solid rgba(242, 240, 230, .19); border-radius: 8px; background: rgba(17, 22, 17, .9); box-shadow: 0 8px 38px rgba(0, 0, 0, .25); backdrop-filter: blur(14px); transition: opacity .4s; }
.chapter-nav { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); align-items: stretch; gap: 5px; min-height: 44px; padding-bottom: 7px; margin-bottom: 7px; border-bottom: 1px solid rgba(242, 240, 230, .12); }
.chapter-nav>button { min-width: 0; min-height: 44px; padding: 7px 8px; display: flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid rgba(199, 180, 126, .22); border-radius: 8px; background: transparent; color: var(--brass); font-size: 12px; line-height: 1.3; text-align: center; transition: background-color .18s, border-color .18s, color .18s; }
.chapter-nav>button:hover { background: rgba(242, 240, 230, .07); color: var(--ivory); }
.chapter-nav>button[aria-current="step"], .chapter-nav>button[aria-current="true"], .chapter-nav>button[aria-pressed="true"], .chapter-nav>button.is-active { color: var(--label-ink); border-color: #e7b66a; background: var(--label-cream); font-weight: 600; }
.chapter-nav .chapter-label { min-width: 0; }
.chapter-nav>.explore-button { border-color: rgba(199, 180, 126, .35); color: #e2d6b5; background: rgba(199, 180, 126, .06); }
.chapter-nav>.explore-button:hover { border-color: var(--brass); color: var(--ivory); background: rgba(199, 180, 126, .13); }
.explore-button svg { width: 20px; height: 20px; flex: 0 0 auto; }
.transport-main { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 16px; }
.play-button { position: relative; isolation: isolate; width: 44px; height: 44px; padding: 6px; border: 0; border-radius: 50%; background: transparent; color: var(--ivory); }
.play-button::before { content: ""; position: absolute; z-index: -1; inset: 2px; border: 1px solid rgba(242, 240, 230, .8); border-radius: 50%; background: transparent; transition: background-color .18s, border-color .18s; }
.play-button svg { width: 30px; height: 30px; }
.play-button:hover { background: transparent; color: var(--black); }
.play-button:hover::before { border-color: var(--ivory); background: var(--ivory); }
.icon-play { display: none; }
body[data-mode="paused"] .icon-play, body[data-mode="exploring"] .icon-play, body[data-mode="ended"] .icon-play { display: block; }
body[data-mode="paused"] .icon-pause, body[data-mode="exploring"] .icon-pause, body[data-mode="ended"] .icon-pause { display: none; }
.timeline { min-width: 0; flex: 1 1 auto; display: flex; align-items: center; gap: 15px; }
.timeline-track { position: relative; flex: 1 1 0; min-width: 0; height: 44px; }
.chapter-track { position: absolute; inset: 0 3.5px; pointer-events: none; user-select: none; }
.timeline-segment { position: absolute; top: 0; bottom: 0; }
.segment-marker { position: absolute; top: 12px; left: 0; width: 1px; height: 16px; background: rgba(242, 240, 230, .2); }
.segment-bar { position: absolute; top: 19px; left: 0; right: 3px; height: 6px; overflow: hidden; border-radius: 1px; background: rgba(242, 240, 230, .22); }
.timeline-segment:last-of-type .segment-bar { right: 0; }
.segment-fill { display: block; height: 100%; width: calc(100% + 3px); transform: scaleX(var(--played, 0)); transform-origin: left; background: var(--brass); }
.timeline-segment:last-of-type .segment-fill { width: 100%; }
.timeline-segment[data-active="true"] .segment-bar { background: rgba(199, 180, 126, .38); }
.timeline-end { position: absolute; top: 12px; right: 0; width: 1px; height: 16px; background: rgba(242, 240, 230, .2); }
#progress { position: relative; z-index: 1; display: block; -webkit-appearance: none; appearance: none; width: 100%; min-width: 0; height: 44px; margin: 0; padding: 0; background: transparent; cursor: pointer; accent-color: var(--brass); }
#progress::-webkit-slider-runnable-track { height: 3px; background: transparent; }
#progress::-moz-range-track { height: 3px; background: transparent; }
#progress::-moz-range-progress { height: 3px; background: transparent; }
#progress::-webkit-slider-thumb { -webkit-appearance: none; width: 7px; height: 24px; margin-top: -10.5px; border: 0; border-radius: 1px; background: var(--ivory); box-shadow: 0 0 0 2px rgba(17, 22, 17, .5); }
#progress::-moz-range-thumb { width: 7px; height: 24px; border: 0; border-radius: 1px; background: var(--ivory); box-shadow: 0 0 0 2px rgba(17, 22, 17, .5); }
.time { flex-shrink: 0; color: #c6c9bf; font-size: 10px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.playback-options { display: flex; align-items: center; gap: 5px; }
.cc-button span { padding: 1px 3px; border: 1.5px solid currentColor; border-radius: 2px; font-size: 10px; font-weight: 700; line-height: 15px; letter-spacing: -.06em; }
.cc-button[aria-pressed="true"] { color: var(--brass); background: rgba(199, 180, 126, .1); }
.icon-muted { display: none; }
#sound[data-muted="true"] .icon-sound, #sound.is-muted .icon-sound, #mute[aria-pressed="true"] .icon-sound { display: none; }
#sound[data-muted="true"] .icon-muted, #sound.is-muted .icon-muted, #mute[aria-pressed="true"] .icon-muted { display: block; }
#sound[aria-expanded="true"] { color: var(--brass); border-color: rgba(199, 180, 126, .35); background: rgba(199, 180, 126, .1); }
#volume-control { position: relative; }
#volume-popover { position: absolute; z-index: 8; right: -12px; bottom: calc(100% + 12px); width: 228px; padding: 7px 9px; display: flex; align-items: center; gap: 8px; border: 1px solid rgba(199, 180, 126, .36); border-radius: 5px; background: rgba(17, 22, 17, .98); box-shadow: 0 8px 30px rgba(0, 0, 0, .35); }
#volume-popover::after { content: ""; position: absolute; right: 27px; bottom: -5px; width: 8px; height: 8px; transform: rotate(45deg); border-right: 1px solid rgba(199, 180, 126, .36); border-bottom: 1px solid rgba(199, 180, 126, .36); background: #111611; }
#volume { -webkit-appearance: none; appearance: none; flex: 1 1 auto; width: 100%; min-width: 60px; height: 44px; margin: 0; padding: 0; background: transparent; cursor: pointer; accent-color: var(--brass); }
#volume::-webkit-slider-runnable-track { height: 3px; border-radius: 2px; background: rgba(242, 240, 230, .35); }
#volume::-moz-range-track { height: 3px; border-radius: 2px; background: rgba(242, 240, 230, .35); }
#volume::-moz-range-progress { height: 3px; background: var(--brass); }
#volume::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; margin-top: -4.5px; border: 0; border-radius: 50%; background: var(--brass); }
#volume::-moz-range-thumb { width: 12px; height: 12px; border: 0; border-radius: 50%; background: var(--brass); }
#volume-value { flex: 0 0 34px; color: var(--ivory); text-align: right; font-size: 10px; font-variant-numeric: tabular-nums; }
.captions { position: fixed; z-index: 4; left: 50%; bottom: calc(max(24px, env(safe-area-inset-bottom)) + 146px); transform: translateX(-50%); width: min(680px, calc(100% - 64px)); text-align: center; pointer-events: none; }
#caption-copy { display: inline; padding: 7px 11px; background: rgba(8, 11, 8, .92); color: #fff; font-size: clamp(17px, 1.7vw, 22px); font-weight: 500; line-height: 1.65; box-decoration-break: clone; -webkit-box-decoration-break: clone; white-space: pre-line; text-wrap: balance; }
#caption-copy:empty { display: none; }

#explore-surface { position: fixed; inset: 0; z-index: 2; touch-action: none; cursor: grab; }
#explore-surface.is-dragging, body.is-dragging #explore-surface { cursor: grabbing; }
.explore-controls { position: fixed; z-index: 6; right: max(28px, env(safe-area-inset-right)); bottom: max(28px, env(safe-area-inset-bottom)); width: 170px; padding: 34px 12px 12px; border: 1px solid rgba(242, 240, 230, .18); border-radius: 7px; background: rgba(17, 22, 17, .86); box-shadow: 0 8px 32px rgba(0, 0, 0, .22); backdrop-filter: blur(12px); }
.explore-panel-top { position: absolute; top: 2px; right: 2px; }
.explore-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin-bottom: 8px; }
.explore-modes button { min-width: 0; min-height: 44px; padding: 8px; border: 1px solid rgba(199, 180, 126, .26); border-radius: 3px; background: rgba(199, 180, 126, .025); color: #c4c9bd; font-size: 12px; }
.explore-modes button:hover { background: rgba(242, 240, 230, .07); color: var(--ivory); }
.explore-modes button[aria-pressed="true"], .explore-modes button.is-active { border-color: rgba(199, 180, 126, .38); background: rgba(199, 180, 126, .11); color: var(--brass); }
.explore-tools { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.joystick { position: relative; flex: 0 0 96px; width: 96px; height: 96px; padding: 0; overflow: hidden; border: 1px solid rgba(199, 180, 126, .38); border-radius: 50%; background: radial-gradient(circle, rgba(199, 180, 126, .11), rgba(199, 180, 126, .02) 65%); cursor: grab; touch-action: none; }
.joystick:active, .joystick.is-dragging { cursor: grabbing; border-color: var(--brass); }
.joystick-cross { position: absolute; inset: 14px; pointer-events: none; }
.joystick-cross::before, .joystick-cross::after { content: ""; position: absolute; background: rgba(199, 180, 126, .24); }
.joystick-cross::before { left: 0; right: 0; top: 50%; height: 1px; }
.joystick-cross::after { top: 0; bottom: 0; left: 50%; width: 1px; }
#joystick-knob { position: absolute; left: 50%; top: 50%; width: 30px; height: 30px; margin-left: -15px; margin-top: -15px; border: 1px solid #dfd2ac; border-radius: 50%; background: #b9a975; box-shadow: 0 2px 10px rgba(0, 0, 0, .35); pointer-events: none; }
.explore-zoom { display: grid; grid-template-columns: repeat(3, 44px); gap: 6px; }
.explore-zoom button { width: 44px; height: 44px; min-height: 44px; padding: 10px; display: flex; align-items: center; justify-content: center; border: 1px solid rgba(242, 240, 230, .17); border-radius: 3px; background: rgba(242, 240, 230, .025); color: var(--ivory); font-size: 23px; line-height: 1; }
.explore-zoom button:hover { background: rgba(199, 180, 126, .12); border-color: rgba(199, 180, 126, .4); color: var(--brass); }
.explore-zoom svg { width: 21px; height: 21px; }
.explore-back { position: relative; width: 28px; height: 28px; padding: 5px; border-color: transparent; color: #c4c9bd; background: transparent; }
/* Extend the tap target upward, away from the adjacent Orbit/Pan controls. */
.explore-back::after { content: ""; position: absolute; top: -16px; left: -8px; width: 44px; height: 44px; }
.explore-back svg { width: 16px; height: 16px; stroke-width: 1.8; }
.explore-back:hover { border-color: rgba(199, 180, 126, .35); background: rgba(199, 180, 126, .1); color: var(--ivory); }
body[data-mode="exploring"] .transport, body[data-mode="exploring"] .captions { display: none !important; }
body[data-mode="exploring"] .scene-shade { background: linear-gradient(180deg, rgba(7, 9, 7, .5), transparent 22%, transparent 75%, rgba(7, 9, 7, .22)); }
.load-error { position: fixed; inset: 0; z-index: 10; display: grid; place-items: center; padding: 35px; background: rgba(11, 15, 10, .92); text-align: center; }
.load-error>div { max-width: 480px; }
.load-error h2 { margin: 22px 0 16px; font: 400 40px/1.05 var(--serif); letter-spacing: -.03em; }
.load-error #error-detail { margin-bottom: 25px; color: #c2c8bb; font-size: 14px; line-height: 1.6; }
.noscript-message { position: fixed; z-index: 20; inset: 0; display: grid; place-items: center; padding: 40px; color: var(--ivory); background: var(--black); text-align: center; }

@media (max-width: 850px) {
  .viewer-header { left: max(22px, env(safe-area-inset-left)); right: max(22px, env(safe-area-inset-right)); gap: 12px; }
  .header-actions { gap: 5px; }
  .intro { padding-left: 6vw; padding-right: 6vw; }
  .intro h1 { font-size: clamp(52px, 8.5vw, 76px); }
  .transport { width: calc(100% - 36px); padding: 10px 12px; }
  .transport-main { gap: 10px; }
  .timeline { gap: 9px; }
  .time { font-size: 9px; }
  .playback-options { gap: 1px; }
  .chapter-nav { gap: 3px; }
  .chapter-nav>button { font-size: 11px; padding-left: 5px; padding-right: 5px; gap: 5px; }
  .chapter-nav>.explore-button { gap: 5px; }
}
@media (max-width: 600px) {
  .viewer-header { top: max(16px, env(safe-area-inset-top)); left: max(18px, env(safe-area-inset-left)); right: max(14px, env(safe-area-inset-right)); }
  .chapter-heading { max-width: calc(100vw - 102px); }
  .chapter-heading h2 { font-size: 24px; }
  .intro { padding: 80px 27px 40px; align-items: center; background: linear-gradient(90deg, rgba(8, 11, 8, .83), rgba(8, 11, 8, .35)), linear-gradient(0deg, rgba(8, 11, 8, .52), transparent 75%); }
  .intro-copy { margin-top: 0; }
  .intro .eyebrow { font-size: 9px; gap: 10px; letter-spacing: .14em; }
  .intro .eyebrow>span { width: 27px; }
  .intro h1 { font-size: clamp(41px, 10.8vw, 63px); margin: 25px 0; }
  .intro-description { max-width: 310px; font-size: 14px; margin-bottom: 25px; }
  .start-button { min-height: 50px; min-width: 188px; padding: 13px 18px; }
  .transport { bottom: max(14px, env(safe-area-inset-bottom)); width: calc(100% - 24px); padding: 8px 9px 9px; border-radius: 6px; }
  .chapter-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; margin-bottom: 6px; padding-bottom: 6px; }
  .chapter-nav>button { gap: 5px; padding: 5px 4px; font-size: 11px; min-height: 44px; line-height: 1.25; }
  .chapter-nav .chapter-label { max-width: 100%; }
  .chapter-nav>.explore-button { gap: 5px; }
  .explore-button svg { width: 18px; height: 18px; }
  .transport-main { grid-template-columns: 44px minmax(0, 1fr) auto; gap: 6px; }
  .timeline { min-height: 44px; gap: 8px; }
  .playback-options { gap: 0; }
  .captions { width: calc(100% - 28px); bottom: calc(max(14px, env(safe-area-inset-bottom)) + 184px); }
  #caption-copy { font-size: 17px; padding: 6px 9px; line-height: 1.6; white-space: normal; }
  .explore-controls { right: max(14px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); width: 166px; padding: 34px 10px 10px; }
  .explore-modes { margin-bottom: 8px; }
  .explore-modes button { min-width: 0; font-size: 12px; }
}
@media (max-height: 560px) and (min-width: 601px) {
  .viewer-header { top: max(14px, env(safe-area-inset-top)); }
  .chapter-heading h2 { font-size: 25px; }
  .intro { padding-top: 65px; padding-bottom: 20px; }
  .intro-copy { margin-top: 0; }
  .intro h1 { font-size: clamp(40px, 7vw, 65px); margin: 13px 0 15px; }
  .intro-description { font-size: 13px; margin-bottom: 17px; }
  .load-status { margin-top: 8px; }
  .transport { bottom: max(12px, env(safe-area-inset-bottom)); width: min(1000px, calc(100% - 44px - env(safe-area-inset-left) - env(safe-area-inset-right))); padding-top: 6px; padding-bottom: 6px; }
  .chapter-nav { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); padding-bottom: 4px; margin-bottom: 4px; gap: 2px; }
  .chapter-nav>button { min-height: 44px; font-size: 11px; padding: 4px; gap: 4px; }
  .captions { bottom: calc(max(12px, env(safe-area-inset-bottom)) + 128px); }
  #caption-copy { font-size: 17px; }
  .explore-controls { right: max(18px, env(safe-area-inset-right)); bottom: max(14px, env(safe-area-inset-bottom)); width: 164px; padding: 34px 9px 9px; }
  .explore-modes { margin-bottom: 6px; }
}
@media (max-width: 360px) {
  .transport { padding-left: 7px; padding-right: 7px; }
  .transport-main { gap: 4px; }
  .timeline { gap: 5px; }
  .time { font-size: 8px; }
  .chapter-nav>button { font-size: 11px; gap: 4px; }
}
@media (max-height: 340px) {
  .explore-controls { padding-top: 30px; }
  .explore-tools { gap: 6px; }
}
@media (max-width: 600px) and (max-height: 480px) {
  .intro { padding: 24px; align-items: flex-start; overflow-y: auto; }
  .intro-copy { margin: auto 0; }
  .intro h1 { margin: 12px 0; font-size: clamp(32px, 8vw, 42px); }
  .intro-description { font-size: 13px; line-height: 1.45; margin-bottom: 14px; }
  .intro-location { margin-bottom: 8px; font-size: 9px; }
  .intro .eyebrow { font-size: 8px; }
  .start-button { min-height: 44px; padding: 10px 18px; }
  .load-status { margin-top: 7px; }
  .buffer-status { top: 70px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* One compact collection row; the retained story controls remain unchanged. */
:root { --collection-space: 56px; }
.viewer-notice { position:fixed; z-index:25; top:68px; right:20px; max-width:min(340px,calc(100% - 40px)); margin:0; padding:10px 14px; border:1px solid #b8975c; border-radius:8px; background:#24261f; color:#f2e6c9; font:13px/1.5 var(--sans); }
body[data-collection-size="1"] { --collection-space:0px; }
body[data-collection-embedded="true"] { --collection-space:0px; }
.author-inspector { position:fixed; z-index:30; top:72px; right:10px; width:300px; max-height:calc(100svh - 150px); overflow:auto; padding:10px; border:1px solid #b8975c; border-radius:8px; background:rgba(20,22,19,.96); color:#f2e6c9; font:12px/1.45 monospace; }
.author-inspector summary { cursor:pointer; font-weight:700; }
.author-inspector label { display:block; margin:8px 0; }
.author-inspector button { min-height:32px; border:1px solid #a68b57; border-radius:4px; padding:4px 7px; background:#282b25; color:#f2e6c9; font:inherit; cursor:pointer; }
.author-inspector input,.author-inspector textarea { display:block; width:100%; margin-top:3px; padding:5px; border:1px solid #5d6255; border-radius:3px; background:#141710; color:#f2e6c9; font:11px/1.4 monospace; }
.author-inspector textarea { min-height:100px; resize:vertical; }
.inspector-row { display:flex; gap:5px; margin-top:8px; }
.author-inspector p { margin:8px 0; font:11px/1.4 monospace; }
.collection-nav { position: fixed; z-index: 11; left: 50%; bottom: max(8px, env(safe-area-inset-bottom)); transform: translateX(-50%); width: min(420px, calc(100% - 24px)); display: grid; grid-template-columns: 44px minmax(0,1fr) 44px; gap: 5px; align-items: center; padding: 2px 5px; border: 1px solid rgba(242,240,230,.19); border-radius: 8px; background: rgba(17,22,17,.94); backdrop-filter: blur(14px); }
.collection-nav select { min-width: 0; width: 100%; min-height: 44px; padding: 7px 10px; border: 0; border-radius: 4px; font: 12px var(--sans); color: var(--label-cream); background: #111611; cursor: pointer; }
.collection-nav select:focus-visible { outline: 2px solid var(--brass); outline-offset: 1px; }
.transport { bottom: calc(max(24px, env(safe-area-inset-bottom)) + var(--collection-space)); }
.captions { bottom: calc(max(24px, env(safe-area-inset-bottom)) + 146px + var(--collection-space)); }
.intro { padding-bottom: calc(100px + var(--collection-space)); }
body[data-mode="exploring"] .collection-nav { display: none; }
@media (max-width: 600px) {
  .transport { bottom: calc(max(14px, env(safe-area-inset-bottom)) + var(--collection-space)); }
  .captions { bottom: calc(max(14px, env(safe-area-inset-bottom)) + 184px + var(--collection-space)); }
  .intro { padding-bottom: calc(40px + var(--collection-space)); }
  .intro-location { font-size: 9px; line-height: 1.5; }
}
@media (max-height: 560px) and (min-width: 601px) {
  .transport { bottom: calc(max(12px, env(safe-area-inset-bottom)) + var(--collection-space)); }
  .captions { bottom: calc(max(12px, env(safe-area-inset-bottom)) + 128px + var(--collection-space)); }
  .intro { padding-bottom: calc(20px + var(--collection-space)); overflow-y: auto; align-items: flex-start; }
}
@media (max-width: 600px) and (max-height: 480px) {
  .intro { padding-bottom: calc(24px + var(--collection-space)); }
}
