:root{color-scheme:dark;--bg:#10241e;--paper:#f2ecd9;--muted:#b3c0b3;--line:#ffffff28;--accent:#dfc990}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--paper);font:15px/1.7 system-ui,-apple-system,sans-serif}button,a,input{touch-action:manipulation}button{font:inherit;cursor:pointer;color:inherit;border:1px solid var(--line);background:transparent;padding:12px 20px;border-radius:3px}button:hover{background:#ffffff12}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid var(--accent);outline-offset:4px}button:disabled{opacity:.4;cursor:default}.primary{background:var(--accent);color:#16271e;border-color:var(--accent)}.primary:hover{background:#efddb2}header{max-width:1500px;margin:auto;padding:24px 4vw;display:flex;align-items:center;justify-content:space-between}header a{color:inherit;text-decoration:none;font:27px 'Songti TC',serif;letter-spacing:.12em}header a span{display:block;font:9px system-ui;letter-spacing:.25em;margin-top:8px}header p{font-size:12px;color:var(--muted)}i{font-style:normal;margin-left:12px;border:1px solid var(--line);padding:4px 8px}main{max-width:1500px;margin:0 auto;padding:0 4vw 32px}.scene{position:relative;aspect-ratio:1672/941;overflow:hidden;background:#233c31}.scene img{width:100%;height:100%;display:block;object-fit:contain}.entry{position:absolute;inset:0;background:linear-gradient(90deg,#0b1d18f2 0%,#0b1d18c9 30%,#0b1d1800 80%);display:flex;flex-direction:column;justify-content:center;align-items:flex-start;padding:5%}.eyebrow{font-size:11px;letter-spacing:.13em;color:var(--accent);margin:0 0 12px}h1{font:clamp(24px,3vw,42px)/1.4 'Songti TC',serif;margin:0 0 14px}h2{font:29px/1.4 'Songti TC',serif;margin:0 0 20px}.entry>p:not(.eyebrow){color:var(--muted);margin:0 0 25px}.entry button span{padding-left:24px}.caption{display:flex;justify-content:space-between;gap:20px;color:var(--muted);font-size:11px}.caption p{margin:10px 0}.stopbar{display:flex;justify-content:space-between;align-items:center;border-top:1px solid var(--line);padding:28px 0;gap:20px}.stopbar h1{font-size:27px;margin-bottom:5px}.stopbar p{margin:0;color:var(--muted)}.stopbar .eyebrow{color:var(--accent);margin-bottom:10px}.actions{display:flex;gap:12px}.hotspot{position:absolute;transform:translate(-50%,-50%);background:#10241ee8;border-color:#e8d8a4b0;border-radius:30px;display:flex;gap:8px;align-items:center;padding:8px 14px;box-shadow:0 3px 20px #0005}.hotspot b{font-size:20px;font-weight:400}.device{left:68%;top:66%}.route{left:76%;top:48%}.hotspot:hover{background:#18382e}dialog{width:min(530px,calc(100vw - 32px));max-height:90dvh;overflow:auto;background:#142c23;color:var(--paper);border:1px solid #617367;border-radius:8px;padding:34px;box-shadow:0 15px 80px #0006}dialog::backdrop{background:#06110cc7}.close{position:absolute;right:12px;top:8px;border:0;font-size:24px;padding:4px 12px}.note,.intro{font-size:13px;color:var(--muted)}.note{border-top:1px solid var(--line);padding-top:16px;margin:24px 0}fieldset{border:0;padding:0;margin:24px 0}legend{font-size:12px;color:var(--muted);margin-bottom:8px}label{display:flex;align-items:center;gap:12px;border:1px solid var(--line);padding:16px;margin-bottom:10px;cursor:pointer}label:has(input:checked){border-color:var(--accent);background:#dfc9900b}input{accent-color:var(--accent)}label span{flex:1}strong{font-weight:500}small{display:block;color:var(--muted);font-size:12px}em{font-size:11px;color:var(--muted);font-style:normal}#selection{font-size:13px;color:var(--muted)}[hidden]{display:none!important}@media(max-width:600px){header{padding-top:18px;padding-bottom:18px}header a{font-size:23px}header p{font-size:10px}main{padding:0 16px 20px}.scene{aspect-ratio:1672/941}.entry{position:relative;padding:26px;background:#1a342a;min-height:270px}.scene:has(.entry:not([hidden])){aspect-ratio:auto}.entry h1{font-size:28px}.caption{display:block}.caption p{margin:7px 0}.stopbar{display:block;padding-top:22px}.actions{margin-top:20px;flex-wrap:wrap}.hotspot{padding:4px 8px;font-size:10px;gap:4px}.hotspot b{font-size:16px}.device{left:65%;top:80%}.route{left:76%;top:48%}dialog{padding:28px 22px}label{padding:12px;gap:8px}em{font-size:10px}}
.hotspot{min-height:44px;min-width:44px}

.scene video{width:100%;height:auto;display:block;aspect-ratio:1280/720}

/* Transparent text HUD; scene remains visible, no solid panel or countdown. */
:root{--accent:#a1ffbc}.hud,.hud-reopen,dialog{color:#adffc3;text-shadow:0 1px 2px #092319,0 0 4px #133c25;font-weight:500}
.hud{position:absolute;left:5%;bottom:9%;width:min(520px,63%);max-height:80%;overflow:auto;font-size:clamp(16px,1.4vw,20px);line-height:1.85;background:transparent;scrollbar-width:thin}.hud p{margin:.7em 0}.hud .eyebrow{color:#c4ffd3}.hud button,.hud summary{font-size:14px;min-height:44px}.hud summary{cursor:pointer}.hud details[open]{font-size:16px}.hud-reopen{position:absolute;left:4%;bottom:6%;background:transparent}
dialog{background:transparent;border:0;box-shadow:none;backdrop-filter:none}dialog::backdrop{background:#03170c33}dialog p,dialog h2,dialog label,dialog button{color:#adffc3}dialog .note,dialog .intro,dialog small,dialog em{color:#d0ffda}dialog .primary{background:transparent;color:#adffc3}.hotspot{background:#09291d55;color:#b8ffca;border-color:#9bffc2aa;box-shadow:none}.primary{background:transparent;color:#b8ffca;border-color:#9bffc2aa}.primary:hover{background:#153d2855}
@media(max-width:600px){.scene{aspect-ratio:auto;min-height:70dvh}.scene video{height:70dvh;width:100%;object-fit:cover;object-position:65% center}.hud{left:6%;bottom:8%;width:88%;max-height:72%;font-size:17px}.hud details[open]{font-size:16px}.device{left:59%;top:45%}.route{left:80%;top:30%}dialog{max-height:80dvh}header p{max-width:110px}.caption{font-size:10px}}
body:has(dialog[open]) #hotspots,body:has(dialog[open]) .hud-reopen,body:has(dialog[open]) .hud,body:has(dialog[open]) .caption,body:has(dialog[open]) .stopbar{visibility:hidden}
dialog{position:fixed;top:12dvh;bottom:auto;margin:0 auto;max-height:76dvh}

/* Readability: thin dark edge, restrained soft shadow, no opaque panel. */
.hud,.hud-reopen,dialog{font-weight:400;-webkit-text-stroke:.28px #103323;paint-order:stroke fill;text-shadow:0 1px 1px #092319,0 0 2px #092319,0 2px 5px #092319c0}
.hud details[open]{line-height:2.05;letter-spacing:.025em}.hud details p{margin:1.05em 0}.hud .eyebrow{font-weight:600}.hud summary{margin:.65em 0}
@media(max-width:600px){.hud{max-height:76%;font-size:17px}.hud details[open]{font-size:16px;line-height:2}.hud details p{margin:1em 0}}

.hud{width:min(460px,52%);height:340px;max-height:85%;overflow:auto;display:flex;flex-direction:column;justify-content:flex-start;gap:12px;bottom:8%;line-height:1.95}.hud p{margin:0}.hud #reading-text{font-size:20px;line-height:2;max-width:22em;min-height:6em;letter-spacing:.035em}.reading-count{font-size:12px;color:#c5ffd6}.reading-nav,.reading-actions{display:flex;gap:12px;flex-wrap:wrap}.hud button{min-height:44px;padding:8px 14px}.hud button:disabled{opacity:.35}.reading-actions{margin-top:auto}.hud .eyebrow{margin:0}button{overflow-anchor:none}html{scroll-behavior:auto}.hud{overflow-anchor:none}
@media(max-width:600px){.hud{width:88%;height:365px;max-height:83%;left:6%;bottom:6%;gap:10px}.hud #reading-text{font-size:19px;line-height:1.95;min-height:7.8em;max-width:18em}.hud button{font-size:14px;padding:8px 12px}.reading-actions{gap:8px}.reading-nav{gap:12px}}

.hud{height:420px;max-height:88%}.hud #reading-text{white-space:pre-line;min-height:10em;line-height:1.8}.reading-nav{margin-top:auto}.reading-actions{margin-top:0}label:has(input:disabled){cursor:default}label input:disabled{display:none}@media(max-width:600px){.hud{height:460px;max-height:88%;gap:8px}.hud #reading-text{font-size:18px;min-height:11em;line-height:1.85}}

/* Immersive viewport: image fills bounds without nonuniform scaling. */
html,body{width:100%;height:100%;overflow:hidden;background:#101b19}main{position:fixed;inset:0;max-width:none;margin:0;padding:0}.scene{position:absolute;inset:0;width:100%;height:100%;min-height:0;aspect-ratio:auto;background:#101b19}.scene video{position:absolute;inset:0;width:100%;height:100%;aspect-ratio:auto;object-fit:cover;object-position:65% 50%}
header{position:fixed;z-index:5;inset:0 0 auto;max-width:none;margin:0;padding:max(14px,env(safe-area-inset-top)) max(22px,env(safe-area-inset-right)) 12px max(22px,env(safe-area-inset-left));pointer-events:none;text-shadow:0 2px 5px #000b}header a{font-size:22px;pointer-events:auto}header p{font-size:11px;color:#edffe9}header i{border:0}header a span{margin-top:2px;font-size:8px}
.hud{left:max(24px,env(safe-area-inset-left));bottom:max(28px,env(safe-area-inset-bottom));width:min(460px,48vw);height:min(440px,calc(100dvh - 110px));max-height:none;padding:0;z-index:3;overflow:auto}.hud #reading-text{min-height:10em}.hud-reopen{z-index:4;left:max(22px,env(safe-area-inset-left));bottom:max(24px,env(safe-area-inset-bottom))}
.caption{position:fixed;z-index:4;right:max(22px,env(safe-area-inset-right));bottom:max(22px,env(safe-area-inset-bottom));margin:0}.caption p{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.caption:has(#start-forward:not([hidden])){display:none}.stopbar{position:fixed;z-index:4;bottom:max(20px,env(safe-area-inset-bottom));right:max(22px,env(safe-area-inset-right));border:0;padding:0;margin:0}.stopbar>div:first-child{display:none}.stopbar .actions{margin:0;gap:8px}.actions button{padding:8px 12px;min-height:44px;background:#10271d33;color:#baffcd}.hud:has(~*){border:0}dialog{z-index:10;top:max(75px,env(safe-area-inset-top));max-height:calc(100dvh - 100px)}
@media(max-width:600px){header{padding: max(12px,env(safe-area-inset-top)) 16px 10px}header a{font-size:19px}header p{font-size:10px}.scene{min-height:0}.scene video{width:100%;height:100%;object-fit:cover;object-position:65% 50%}.hud{left:max(18px,env(safe-area-inset-left));bottom:max(20px,env(safe-area-inset-bottom));width:calc(100% - 36px);height:min(460px,calc(100dvh - 100px));max-height:none;gap:8px}.hud #reading-text{font-size:18px;min-height:11em}.stopbar{right:16px;bottom:max(16px,env(safe-area-inset-bottom))}.hud-reopen{bottom:max(16px,env(safe-area-inset-bottom));left:16px}.stopbar .actions button{font-size:13px;padding:8px 10px}dialog{top:72px;max-height:calc(100dvh - 90px)}}
@media(max-height:500px){header{padding-top:max(8px,env(safe-area-inset-top));padding-bottom:4px}header a{font-size:17px}header a span{display:none}header p{margin:0}.hud{left:max(18px,env(safe-area-inset-left));bottom:max(12px,env(safe-area-inset-bottom));width:min(540px,68vw);height:calc(100dvh - 65px);gap:4px}.hud .eyebrow{display:none}.hud #reading-text{font-size:16px;line-height:1.65;min-height:0;flex:1;max-width:none}.hud .reading-count{font-size:11px}.hud button{padding:6px 12px;min-height:44px}.reading-nav{margin-top:0}.reading-actions{position:absolute;left:calc(100% + 16px);bottom:0;width:180px;display:flex;flex-direction:column}.hud{overflow:visible}dialog{top:45px;max-height:calc(100dvh - 55px)}}
@media(min-width:601px) and (min-height:501px){.hud{width:min(520px,48vw)}.hud #reading-text{max-width:none}}
@media(max-height:500px){.reading-actions{width:calc(100vw - min(540px,68vw) - 52px)}}
@media(max-height:500px){.reading-actions{position:fixed;left:auto;right:max(18px,env(safe-area-inset-right));bottom:max(12px,env(safe-area-inset-bottom));width:clamp(120px,23vw,180px)}}

.caption:has(#start-forward:not([hidden])){display:flex}.caption #start-forward{min-height:48px;background:#10271d40;color:#baffcd}

body.moving header{visibility:hidden}body.moving .hud,body.moving .hud-reopen,body.moving #hotspots,body.moving .stopbar{display:none!important}
main:has(.hud:not([hidden])) .stopbar{display:none}

.scene #stop-frame{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover;object-position:65% 50%;pointer-events:none}.scene #stop-frame[hidden]{display:none}

.scene-heading{display:flex;align-items:center;gap:20px}.scene-heading p{margin:0}.scene-heading button{pointer-events:auto;min-height:44px;border:1px solid #baffcd50;border-radius:6px;padding:8px 12px;background:#10271d40;color:#d1ffd9;font-size:14px;text-shadow:0 1px 4px #000}#viewpoint-dialog .viewpoint-options{display:grid;gap:12px;margin:20px 0}#viewpoint-dialog .viewpoint-options button{display:grid;gap:6px;text-align:left;padding:16px;background:#12312630;border:1px solid #baffcd50;border-radius:8px;color:inherit}#viewpoint-dialog strong{font-size:21px}#viewpoint-dialog span{font-size:15px;line-height:1.65}#viewpoint-dialog small{color:#baffcd}#viewpoint-dialog [disabled]{opacity:.65;cursor:default}@media(max-width:600px){.scene-heading{gap:8px}.scene-heading p{display:none}.scene-heading button{font-size:13px;padding:8px 10px}}
/* Reading stays layered, voluntary and anchored in the viewport. */
.hud{display:flex;flex-direction:column;gap:10px}.hud[hidden]{display:none}.reading-content{min-height:0;flex:1;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#baffcd80 transparent;padding-right:8px}.hud #reading-text{min-height:0;flex:unset;margin:0;white-space:pre-line;font-size:20px;line-height:1.85}.hud #reading-detail{font-size:18px;line-height:1.85;white-space:pre-line;margin:18px 0 0;color:#d0ffda}.reading-nav,.reading-actions{flex-shrink:0}.reading-nav{display:flex;justify-content:space-between;gap:6px;margin-top:0}.reading-nav button{font-size:15px;min-height:44px;padding:8px 10px}.scene #lucy-room{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover;object-position:50% 50%;pointer-events:none}.scene #lucy-room[hidden],.scene video[hidden]{display:none}.lucy-next{position:absolute;right:max(22px,env(safe-area-inset-right));bottom:max(22px,env(safe-area-inset-bottom));z-index:4;color:#baffcd;background:#10271d40;padding:10px 14px;min-height:44px}.lucy-next[hidden],main:has(.hud:not([hidden])) .lucy-next{display:none}body.switching .hud,body.switching .hud-reopen,body.switching #hotspots{display:none!important}.viewpoint-options [aria-pressed=true]{border-color:#baffcd!important}.reading-actions button:disabled{opacity:.65;cursor:default}@media(max-width:600px){.hud #reading-text{font-size:18px;line-height:1.85}.hud #reading-detail{font-size:17px;line-height:1.85}.hud{gap:8px}.reading-nav button{font-size:14px;padding:8px}.reading-content{padding-right:5px}.scene #lucy-room{object-position:43% 50%}}@media(max-height:500px){.hud #reading-text{font-size:16px;line-height:1.65;min-height:0}.hud #reading-detail{font-size:16px;line-height:1.65}.hud{gap:4px}.reading-nav button{font-size:13px;padding:6px 9px}.reading-content{flex:1;min-height:0}.reading-actions{gap:8px}.reading-actions button{white-space:normal}}
