/* Episode Zero retains its cinematic pacing; the surrounding controls share the approved reader system. */
html[data-rv-reader=episode-zero]{--black:#08090d;--paper:#f1ece3;--muted:#c8c3ba;--gold:#dcc28a;--serif:Cinzel,Georgia,serif;--sans:Inter,system-ui,sans-serif;--reading-size:18px}
html.rv-unified[data-rv-reader=episode-zero]{scroll-padding-top:0!important}
html[data-rv-reader=episode-zero] body{background:var(--rv-exterior);min-width:0}
.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
html[data-rv-reader=episode-zero] .threshold{min-height:calc(100svh - var(--rv-measured-nav-h,80px))}
html[data-rv-reader=episode-zero] .threshold-content{width:min(860px,100%);padding:64px 48px}
html[data-rv-reader=episode-zero] h1{font-size:clamp(44px,6.8vw,88px);line-height:1.15;letter-spacing:normal;font-weight:400}
html[data-rv-reader=episode-zero] :is(.threshold-line,.scene-copy p,.ending>p:not(.kicker)){font:300 var(--reading-size)/1.7 'Source Serif 4',Georgia,serif;color:var(--rv-text);max-width:68ch}
html[data-rv-reader=episode-zero] :is(.threshold-line,.ending>p){margin-inline:auto}
html[data-rv-reader=episode-zero] :is(.kicker,.movement-label,.movement-subtitle,.entry-note,.scene-id){font:400 12px/1.6 Inter,system-ui,sans-serif;color:var(--rv-muted)}
html[data-rv-reader=episode-zero] .kicker,html[data-rv-reader=episode-zero] .movement-label{color:var(--rv-gold)}
html[data-rv-reader=episode-zero] :is(.enter-button,.silent-button){font:400 14px/1.5 Inter,system-ui,sans-serif;min-height:48px;min-width:44px;border-radius:4px;padding:12px 20px;gap:8px}
html[data-rv-reader=episode-zero] .enter-button{background:var(--rv-gold);border-color:var(--rv-gold);color:var(--rv-exterior)}
html[data-rv-reader=episode-zero] .silent-button{border-color:var(--rv-gold);color:var(--rv-gold);background:#08090dc9}
html[data-rv-reader=episode-zero] :is(.entry-actions,.ending-actions){gap:12px}
html[data-rv-reader=episode-zero] [hidden]{display:none!important}
html[data-rv-reader=episode-zero] .movement-card{scroll-margin-top:calc(var(--rv-measured-nav-h,80px) + var(--rv-sticky-bar-h,68px));padding:64px 24px}
html[data-rv-reader=episode-zero] .movement-card h2{font-size:44px;line-height:1.15;font-weight:400}
html[data-rv-reader=episode-zero] .scene-stage{top:calc(var(--rv-measured-nav-h,80px) + var(--rv-sticky-bar-h,68px));height:calc(100svh - var(--rv-measured-nav-h,80px) - var(--rv-sticky-bar-h,68px));min-height:300px}
html[data-rv-reader=episode-zero] .scene{scroll-margin-top:calc(var(--rv-measured-nav-h,80px) + var(--rv-sticky-bar-h,68px))}
html[data-rv-reader=episode-zero] .scene-image{inset:16px 24px 24px;width:calc(100% - 48px);height:calc(100% - 40px)}
html[data-rv-reader=episode-zero] .scene-copy{width:min(100%,900px);padding:24px 48px 56px;opacity:1;transform:none}
html[data-rv-reader=episode-zero] .scene-copy p{margin:0 auto;text-shadow:0 2px 12px #000}
html[data-rv-reader=episode-zero] .scene-stage:has(.scene-copy)::after{background:linear-gradient(180deg,#08090d30,transparent 24%,transparent 50%,#08090dcc 80%,#08090df2)}
html[data-rv-reader=episode-zero] .scene-id{z-index:5;left:24px;bottom:16px;color:var(--rv-muted)}
html[data-rv-reader=episode-zero] .scene-backdrop{background-image:none}
html[data-rv-reader=episode-zero] .scene.is-active .scene-backdrop{background-image:var(--scene-image)}
html[data-rv-reader=episode-zero]:not(.rv-episode-ready) .scene-image{opacity:1;filter:none;transform:none}
html[data-rv-reader=episode-zero]:not(.rv-episode-ready) #enter-sound{display:none}
html[data-rv-reader=episode-zero]:not(.rv-episode-ready) .scroll-cue{display:none}
html[data-rv-reader=episode-zero].rv-episode-ready .scene:not(.is-active) .scene-copy{opacity:0;transform:translateY(1.5rem)}
html[data-rv-reader=episode-zero] .rv-expand-scene{position:absolute;right:24px;bottom:8px;z-index:5;display:flex;align-items:center;gap:8px;min-height:44px;padding:8px 12px;border:1px solid #dcc28a80;border-radius:4px;background:#08090de6;color:var(--rv-gold);font:400 12px/1.6 Inter,system-ui,sans-serif;text-decoration:none}
html[data-rv-reader=episode-zero] .ending{padding:64px 24px;min-height:70svh}
html[data-rv-reader=episode-zero] .ending h2{font-size:44px;line-height:1.15}
html[data-rv-reader=episode-zero] .rv-audio-status{font:400 14px/1.6 Inter,system-ui,sans-serif;color:var(--rv-muted);background:var(--rv-panel);margin:0;padding:12px 24px;text-align:center}
html[data-rv-reader=episode-zero] .rv-audio-status:empty{display:none}
html[data-rv-reader=episode-zero] #viewer-stage{position:relative;overflow:hidden;min-height:0;touch-action:none;display:grid;place-items:center}
html[data-rv-reader=episode-zero] #viewer-image{position:absolute;max-width:none;max-height:none;transform-origin:center;user-select:none;pointer-events:none}
html[data-rv-reader=episode-zero] #viewer-status{z-index:1;background:var(--rv-panel);color:var(--rv-text);padding:12px 16px;font:400 14px/1.5 Inter,system-ui,sans-serif}
html[data-rv-reader=episode-zero] #viewer-status:empty{display:none}
html[data-rv-reader=episode-zero] #viewer-retry{position:absolute;bottom:24px;z-index:2}
html[data-rv-reader=episode-zero] .rv-media-error{position:absolute;top:16px;left:16px;right:16px;z-index:6;background:var(--rv-panel);border:1px solid var(--rv-border);padding:16px;font:400 14px/1.7 Inter,system-ui,sans-serif;color:var(--rv-muted)}
html[data-rv-reader=episode-zero] .rv-media-error button{background:var(--rv-panel);color:var(--rv-gold);border:1px solid var(--rv-gold);padding:8px 16px}
@media(max-width:900px),(max-height:620px){
 html[data-rv-reader=episode-zero] .scene{min-height:0;padding:32px 0 48px}
 html[data-rv-reader=episode-zero] .scene-stage{position:relative;top:auto;height:auto;min-height:0;display:flex;flex-direction:column;overflow:visible}
 html[data-rv-reader=episode-zero] .scene-image{position:relative;inset:auto;width:100%;height:auto;aspect-ratio:var(--rv-scene-ratio,16/9);object-fit:contain;opacity:1;transform:none!important;filter:none!important;z-index:1}
 html[data-rv-reader=episode-zero] .scene-backdrop,html[data-rv-reader=episode-zero] .scene-stage::after{display:none}
 html[data-rv-reader=episode-zero] .scene-copy,html[data-rv-reader=episode-zero].rv-episode-ready .scene:not(.is-active) .scene-copy{opacity:1;transform:none;text-align:left;padding:24px;order:2}
 html[data-rv-reader=episode-zero] .scene-copy p{text-shadow:none}
 html[data-rv-reader=episode-zero] .scene-id{position:static;align-self:flex-start;order:3;padding:0 24px}
 html[data-rv-reader=episode-zero] .rv-expand-scene{position:relative;right:auto;bottom:auto;align-self:flex-start;order:1;margin:12px 24px 0}
 html[data-rv-reader=episode-zero] .movement-card{min-height:60svh;padding:48px 24px}
 html[data-rv-reader=episode-zero] .movement-card h2,html[data-rv-reader=episode-zero] .ending h2{font-size:32px}
 html[data-rv-reader=episode-zero] .threshold-content{padding:48px 24px}
}
@media(max-width:560px){
 html[data-rv-reader=episode-zero] #reader-bar{grid-template-columns:auto 1fr;gap:8px;padding:8px 16px}
 html[data-rv-reader=episode-zero] #reader-bar :is(.rv-scene-nav,.rv-reader-tools){width:auto;gap:4px;flex-wrap:nowrap}
 html[data-rv-reader=episode-zero] #scene-count{min-width:44px}
 html[data-rv-reader=episode-zero] #open-contents span,html[data-rv-reader=episode-zero] #sound-label{display:none}
 html[data-rv-reader=episode-zero] #sound-toggle::after{content:'';width:5px;height:5px;background:var(--rv-muted);border-radius:50%;position:absolute;bottom:3px}
 html[data-rv-reader=episode-zero] #sound-toggle{position:relative}
 html[data-rv-reader=episode-zero] #sound-toggle[aria-pressed=true]::after{background:var(--rv-gold)}
 html[data-rv-reader=episode-zero] .rv-reader-fallback{margin-inline:16px}
 html[data-rv-reader=episode-zero] .ending-actions{width:min(100%,320px)}
}
@media(max-width:360px){html[data-rv-reader=episode-zero] :is(.threshold-content,.scene-copy){padding-inline:16px}html[data-rv-reader=episode-zero] h1{font-size:36px}}
@media(prefers-reduced-motion:reduce){html[data-rv-reader=episode-zero] .scene-image,html[data-rv-reader=episode-zero].rv-episode-ready .scene .scene-copy{opacity:1!important;transform:none!important}html[data-rv-reader=episode-zero] .scene-image{filter:none}}
@media print{html[data-rv-reader=episode-zero] .scene{min-height:0;break-inside:avoid}html[data-rv-reader=episode-zero] .scene-stage{position:relative;top:0;height:auto;display:block}html[data-rv-reader=episode-zero] .scene-image{position:relative;inset:auto;width:100%;height:auto;opacity:1;transform:none}html[data-rv-reader=episode-zero] .scene-copy{opacity:1!important;transform:none!important}html[data-rv-reader=episode-zero] .rv-expand-scene{display:none}}
