/* v0.3 — the illustration is the playing surface. */
:root{--gold:#f2c782;--ink:#fff8e9}
html,body{background:#101513}
.app-shell{width:100%;max-width:none;padding:0;min-height:100svh}
.topbar{position:absolute;z-index:10;inset:0 0 auto;height:76px;padding:env(safe-area-inset-top,0px) 32px 0;border:0;background:linear-gradient(#08100bd9,transparent);gap:12px}
.wordmark{font-size:1rem;text-shadow:0 2px 12px #000}.chapter-mark{display:none}.tools{gap:12px}
.journal-button{border:0;background:#0c17165c;border-radius:0;font-family:var(--serif);font-style:italic;font-size:.95rem}.journal-button span{background:transparent;border-bottom:1px solid #d9b66f88;border-radius:0}
#menuButton{font-size:1.5rem;background:#0c17165c}.quiet-footer{display:none}
.reader{position:relative;display:grid;grid-template-columns:1fr;align-items:end;width:100%;max-width:none;height:auto;min-height:100svh;margin:0;border:0;box-shadow:none;overflow:hidden;background:#101513}
.stage{position:absolute;inset:0;min-height:0;max-height:none;height:100%;overflow:hidden}
.artwork img{object-fit:cover;object-position:center 36%;background:#101513}
.art-vignette{background:linear-gradient(0deg,#070e0efa 0%,#071010dc 15%,#08121188 35%,transparent 68%),linear-gradient(90deg,#07101065,transparent 75%)}
.scene-label{display:none}
.reading-dock{position:relative;z-index:2;align-self:end;width:min(100%,720px);min-width:0;border:0;background:none;pointer-events:none;margin:0 0 0 clamp(0px,5vw,90px)}
.dock-inner{max-width:none;max-height:none;overflow:visible;padding:140px 32px 42px;pointer-events:none}
.scene-heading{margin:0 0 16px}.scene-heading .eyebrow{display:none}.scene-heading h1{font-family:var(--sans);font-size:clamp(1.3rem,2vw,1.8rem);font-weight:800;letter-spacing:-.035em;line-height:1.12;text-shadow:0 3px 18px #000}
.prose{max-width:56ch;font-size:clamp(1rem,1.5vw,1.15rem);line-height:1.65;color:#fff7e7;text-shadow:0 2px 9px #000,0 1px 2px #000}
.speech{display:inline-block;position:relative;margin:20px 0 0;padding:12px 19px;background:#f5edd8;color:#252d2c;border:0;box-shadow:4px 5px 0 #0004;transform:rotate(-1deg)}
.speech[hidden]{display:none}.speech:before{content:'';position:absolute;top:-9px;left:28px;border-bottom:12px solid #f5edd8;border-right:15px solid transparent}.speech span{color:#556153}.speech p{color:#172522;font-family:var(--sans);font-weight:650;font-size:1rem}
.decision{margin-top:24px;pointer-events:auto}.decision h2{display:none}.choices{gap:10px}
.choice-button{width:fit-content;max-width:100%;min-height:52px;padding:12px 24px 12px 15px;border:0;border-left:3px solid #e3b975;border-radius:0;background:#f2ead9;color:#182924;box-shadow:5px 5px 0 #060d0d66;transform:rotate(-.5deg);transition:transform .18s,background .18s;gap:14px}
.choice-button:nth-child(2){margin-left:19px;transform:rotate(.5deg)}.choice-button:nth-child(3){margin-left:7px;transform:rotate(-.35deg)}
.choice-button:hover{background:#fff7e6;transform:translateX(5px)}.choice-key{color:#425247;border:0;border-right:1px solid #72827670;border-radius:0;width:25px;flex-basis:25px;font-family:var(--serif);font-size:1.05rem;font-style:italic;padding-right:10px}.choice-label{font-size:.95rem;font-weight:650;line-height:1.35}
.continue-cue{background:transparent;color:#efce94;box-shadow:none;border:0;border-bottom:1px solid #efce9466;min-height:48px;padding:8px 2px;transform:none;letter-spacing:.07em}
.continue-cue .choice-label{font-size:.74rem;font-weight:550;text-transform:uppercase}.continue-cue:hover{background:transparent;color:#fff6dc;transform:translateX(3px)}
.scene-action{background:#efc47f;color:#172723;clip-path:polygon(0 0,100% 0,calc(100% - 12px) 100%,0 100%);padding:15px 29px 15px 20px}.scene-action:hover{background:#ffdda7}
.hotspots{z-index:4;bottom:36%;top:70px}.hotspot{min-height:44px;min-width:44px;max-width:155px;padding:10px 12px;border:1px solid #f8dfa6;border-radius:2px;background:#18231de0;color:#fff4d7;box-shadow:0 0 0 5px #e3c67920;font-size:.78rem;white-space:normal;text-align:center}
.interaction{pointer-events:auto;background:#0a1413dc;backdrop-filter:blur(10px);border:1px solid #dfc28f5c;box-shadow:7px 7px 0 #0003;max-width:480px;padding:18px 22px;margin-top:18px}
.reader[data-mode=inspect] .interaction{border:0;background:none;padding:0;box-shadow:none;backdrop-filter:none}.reader[data-mode=inspect] .interaction h2{display:none}
.reader[data-mode=inspect] .reading-dock{max-width:540px}.reader[data-mode=inspect] .prose{display:none}
.reader[data-cover=true] .scene-heading h1{font-family:var(--serif);font-weight:400;font-size:clamp(3.1rem,6.5vw,6rem);max-width:8ch;line-height:.92;letter-spacing:-.045em}.reader[data-cover=true] .scene-heading{margin-bottom:22px}.reader[data-cover=true] .prose{max-width:30ch}.reader[data-cover=true] .decision{margin-top:28px}
.reader[data-cover=true] .dock-inner{padding-bottom:9svh}.reader[data-mode=decision] .prose{font-size:1rem}.ending-summary{pointer-events:auto}.feedback{pointer-events:auto}
.menu-modal #backButton,.menu-modal #soundButton{margin:0 10px 15px 0;border:1px solid #ffffff30;min-height:44px;padding:8px 14px;width:auto}
@media(min-width:1000px){.art-vignette{background:linear-gradient(90deg,#07100fe8 0%,#07100fb0 30%,transparent 74%),linear-gradient(0deg,#07100fd6,transparent 70%)}.reading-dock{width:54%;max-width:720px}.hotspots{left:42%;bottom:12%;top:80px}.reader[data-mode=inspect] .reading-dock{width:39%}}
@media(max-width:767px){.topbar{height:65px;padding-inline:19px}.wordmark{font-size:.9rem}.tools{gap:5px}.journal-button{font-size:.86rem}.reader{min-height:100svh}.reading-dock{width:100%;margin:0}.dock-inner{padding:44svh 24px max(28px,env(safe-area-inset-bottom));}.scene-heading h1{font-size:1.45rem}.prose{font-size:1rem;line-height:1.56}.art-vignette{background:linear-gradient(0deg,#07100ffc 0%,#07100fe6 26%,#07100f75 53%,transparent 80%)}.artwork img{object-position:52% 28%}.reader[data-cover=true] .dock-inner{padding-top:49svh;padding-bottom:7svh}.reader[data-cover=true] .scene-heading h1{font-size:3.5rem}.reader[data-mode=decision] .dock-inner{padding-top:32svh}.reader[data-mode=lock] .dock-inner,.reader[data-mode=fragment] .dock-inner{padding-top:24svh}.reader[data-mode=inspect] .dock-inner{padding-top:66svh}.choice-label{font-size:.87rem}.choice-button{max-width:calc(100% - 20px)}.continue-cue{max-width:100%}.speech{margin-top:14px}.hotspots{bottom:34%;top:65px}.interaction{padding:14px}.decision{margin-top:20px}}
@media(max-width:360px){.dock-inner{padding-inline:19px}.reader[data-cover=true] .scene-heading h1{font-size:3rem}.prose{font-size:.94rem}}
@media(prefers-reduced-motion:reduce){.choice-button{transition:none}.hotspot{animation:none}}

.hotspot{width:128px;max-width:128px}
/* Workshop material: washed oak, old paint, cord and iron. Text remains live. */
.hotspot{--tilt:-4deg;width:166px;max-width:166px;height:68px;padding:15px 20px;border:0;border-radius:0;background:none;box-shadow:none;color:#30291e;font-family:Georgia,'Times New Roman',serif;font-size:.88rem;font-weight:700;letter-spacing:.015em;text-shadow:0 1px 0 #fff8ddc9;isolation:isolate;transform:translate(-50%,-50%) rotate(var(--tilt));animation:none;transition:filter .2s,transform .2s;filter:drop-shadow(0 5px 3px #0009)}
.hotspot::before{content:'';position:absolute;inset:0;z-index:-1;background:url('material/wood-sign.webp') center/100% 100% no-repeat;pointer-events:none}
.hotspot:nth-child(2){--tilt:3deg}.hotspot:nth-child(2)::before{transform:scaleX(-1);filter:saturate(.72)}
.hotspot:nth-child(3){--tilt:-2deg}.hotspot:nth-child(3)::before{filter:sepia(.16) brightness(1.09)}
.hotspot:hover,.hotspot:focus-visible{background:none;color:#21190e;filter:drop-shadow(0 0 6px #f1d59899) drop-shadow(0 6px 3px #000a);transform:translate(-50%,-50%) rotate(0deg) scale(1.04)}
.hotspot:active{transform:translate(-50%,-50%) rotate(0deg) scale(.97)}
@media(prefers-reduced-motion:reduce){.hotspot{transition:none}}
/* The carried secret notebook: leather cover outside, worn paper inside. */
.journal-button{position:relative;min-height:48px;padding:8px 14px 8px 19px;border:1px solid #94734d;border-left:5px solid #30251c;border-radius:3px 8px 8px 3px;background:linear-gradient(105deg,#171d18,#424638 48%,#232d26);box-shadow:inset 0 0 0 3px #151c1955,inset -2px 0 0 #c6aa7133,2px 3px 6px #0007;color:#e8d6a5;transform:rotate(-3deg);font-size:.88rem;text-shadow:0 1px 2px #000}
.journal-button:before{content:'';position:absolute;inset:5px 5px 5px 8px;border:1px dashed #b39b6660;border-radius:2px 5px 5px 2px;pointer-events:none}.journal-button span{color:#ead6a7}.journal-button:hover{border-color:#d5bb80;transform:rotate(0deg)}
#journalDialog{color-scheme:light;width:min(calc(100% - 24px),600px);max-height:88svh;padding:clamp(28px,6vw,46px) clamp(24px,6vw,45px) 48px clamp(32px,7vw,56px);color:#352d23;border:0;border-radius:5px 12px 9px 4px;background:#e9ddbf url('material/journal-paper.webp') center/100% 100% no-repeat;box-shadow:-7px 3px 0 #292a20,3px 4px 0 #8d7756,6px 7px 0 #c1ac85,10px 12px 35px #000a;scrollbar-color:#89754f transparent;transform:rotate(-.6deg)}
#journalDialog::backdrop{background:#040c0de3;backdrop-filter:blur(7px)}
#journalDialog .modal-head{margin-bottom:25px;border-bottom:2px solid #70583e75;padding-bottom:18px;gap:8px}
#journalDialog .eyebrow{color:#73563e;letter-spacing:.11em;font-family:Georgia,serif;font-style:italic;font-weight:400;font-size:.73rem}
#journalDialog h2{color:#302b24;font-family:Georgia,'Times New Roman',serif;font-size:clamp(1.9rem,7vw,2.8rem);font-style:italic;letter-spacing:-.04em;line-height:1.06}
#journalDialog .close-button{color:#4c3826;background:#e9dab866;border:1px solid #7a604f77;border-radius:50%;min-width:44px;flex-basis:44px}
#journalDialog .journal-items{gap:16px;counter-reset:entry}
#journalDialog .journal-entry{counter-increment:entry;background:transparent;border:0;border-bottom:1px solid #725d3f55;box-shadow:none}
#journalDialog .journal-entry summary{justify-content:flex-start;align-items:baseline;padding:12px 0 14px;color:#392e22;font-family:Georgia,'Times New Roman',serif;font-size:1.12rem;font-weight:bold;gap:10px;line-height:1.3}
#journalDialog .journal-entry summary:before{content:counter(entry,decimal-leading-zero);color:#8a4939;font-size:.78rem;font-weight:400;font-style:italic;transform:rotate(-8deg)}
#journalDialog .journal-entry summary:after{margin-left:auto;color:#745139;font-size:1.2rem;font-weight:400}
#journalDialog .journal-entry p{color:#463929;padding:0 0 19px 28px;font-family:Georgia,'Times New Roman',serif;font-size:1.02rem;line-height:1.72;white-space:pre-line}
#journalDialog .journal-entry[open] summary{text-decoration:underline;text-decoration-color:#9a684264;text-underline-offset:5px;text-decoration-thickness:2px}
#journalDialog .journal-empty{color:#64523c;font-family:Georgia,'Times New Roman',serif;font-size:1.08rem;line-height:1.75;font-style:italic;margin:30px 0 60px}
#journalDialog :focus-visible{outline-color:#65452f}
@media(prefers-reduced-motion:reduce){.journal-button{transition:none}}
/* A pocket-sized trail stone at the boundary of picture and story. */
.decision:has(.continue-cue){margin:0}
.continue-cue{position:absolute;right:32px;top:22px;display:flex;flex-direction:column;gap:0;width:100px;max-width:100px;min-height:116px;padding:0;border:0;background:none;color:#f8e9c8;box-shadow:none;transform:none;text-align:center;filter:drop-shadow(0 3px 5px #000a);isolation:isolate;transition:filter .2s,transform .2s}
.continue-cue:before{content:'';display:block;width:92px;height:92px;background:url('material/trail-stone.webp') center/contain no-repeat;transition:transform .2s}
.continue-cue .choice-label{font-family:Georgia,'Times New Roman',serif;font-size:1rem;line-height:1.4;font-weight:400;letter-spacing:.04em;text-transform:none;text-shadow:0 1px 4px #000,0 2px 8px #000;background:#09130f80;padding:0 10px 2px;border-radius:10px}
.continue-cue:hover,.continue-cue:focus-visible{background:none;color:#fff5d9;transform:translateY(-3px);filter:drop-shadow(0 0 7px #d7b87355) drop-shadow(0 4px 7px #000a)}
.continue-cue:hover:before{transform:rotate(7deg)}.continue-cue:active{transform:translateY(1px) scale(.96)}
@media(max-width:767px){.continue-cue{top:calc(44svh - 126px);right:18px}}
@media(prefers-reduced-motion:reduce){.continue-cue,.continue-cue:before{transition:none}.continue-cue:hover:before{transform:none}}
.continue-cue::after{content:'';position:absolute;pointer-events:none;left:7px;top:36px;width:86px;height:52px;opacity:0;background:radial-gradient(circle at 15% 85%,#fff 0 1px,transparent 3px),radial-gradient(circle at 30% 95%,#fff 0 2px,transparent 4px),radial-gradient(circle at 48% 75%,#fff 0 1px,transparent 3px),radial-gradient(circle at 65% 90%,#fff 0 2px,transparent 4px),radial-gradient(circle at 85% 82%,#fff 0 1px,transparent 3px),radial-gradient(ellipse at 50% 100%,#ffffffa0,transparent 65%)}
.continue-cue.stone-pressed:before{animation:stone-flash .26s ease-out both}.continue-cue.stone-pressed::after{animation:stone-dust .26s ease-out both}
@keyframes stone-flash{0%{filter:brightness(1)}35%{filter:grayscale(1) brightness(2.2) drop-shadow(0 0 5px #ffffff99)}100%{filter:brightness(1)}}
@keyframes stone-dust{0%{opacity:0;transform:translateY(14px) scale(.65)}25%{opacity:.9}100%{opacity:0;transform:translateY(-38px) scale(1.4)}}
@media(prefers-reduced-motion:reduce){.continue-cue.stone-pressed:before,.continue-cue.stone-pressed::after{animation:none}}

.reader[data-cover=true] .scene-heading .eyebrow{display:block;max-width:34ch;color:#f1d6a9;font-size:.68rem;line-height:1.6;letter-spacing:.07em;margin-bottom:18px}
/* Entry sticker: worn street-print lettering on torn safety-yellow paper. */
.choice-button.door-entry{position:relative;isolation:isolate;width:228px;max-width:calc(100% - 12px);min-height:92px;padding:17px 30px 16px 24px;border:0;border-radius:0;clip-path:polygon(2% 4%,24% 1%,25% 4%,58% 0,60% 3%,98% 1%,96% 16%,100% 19%,97% 70%,100% 73%,97% 96%,72% 99%,71% 95%,38% 100%,36% 96%,0 98%,3% 77%,0 74%,2% 43%,0 39%);background:repeating-linear-gradient(173deg,transparent 0 8px,#453a2520 9px,transparent 10px 19px),linear-gradient(105deg,#dba93f,#f2cf70 45%,#e3b44f);color:#142826;transform:rotate(-3deg);box-shadow:none;filter:drop-shadow(3px 5px 2px #0009);transition:transform .18s,filter .18s}
.door-entry .choice-label{position:relative;z-index:1;white-space:pre-line;font-family:'Arial Black','Helvetica Neue',Arial,sans-serif;font-size:1.38rem;font-weight:950;font-style:italic;text-transform:uppercase;letter-spacing:-.055em;line-height:.98;text-shadow:1px 1px 0 #fff1b63d}
.door-entry:before{content:'';position:absolute;inset:8px 8px 8px auto;width:14px;background:repeating-linear-gradient(-45deg,#20332ce0 0 5px,transparent 5px 11px);opacity:.8;transform:rotate(2deg)}
.door-entry:after{content:'';position:absolute;inset:0;pointer-events:none;background:repeating-linear-gradient(2deg,transparent 0 17px,#f7df9b90 18px,transparent 19px 31px);opacity:.4;z-index:2}
.choice-button.door-entry:hover{background-color:#f3d77f;transform:rotate(-1deg) translateY(-2px);filter:drop-shadow(4px 7px 3px #0009)}
.choice-button.door-entry:active{transform:rotate(-2deg) translateY(1px) scale(.97)}
.choice-button.door-entry:focus-visible{outline:none;filter:drop-shadow(0 0 4px white) drop-shadow(0 0 7px #f9d06c)}
@media(prefers-reduced-motion:reduce){.choice-button.door-entry{transition:none}}
/* Expedition kit: a stitched tab opens a canvas-and-leather pause menu. */
#menuButton{width:60px;height:51px;padding:7px 8px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;background:linear-gradient(120deg,#65553e,#302b22);border:1px solid #9e845a;border-radius:4px 4px 10px 5px;box-shadow:inset 0 0 0 3px #171a1760,2px 3px 5px #0007;transform:rotate(4deg);color:#e9d8ac}.menu-stitches{width:24px;height:12px;border-top:2px solid #dfcea4;border-bottom:2px solid #dfcea4;position:relative}.menu-stitches:before{content:'';position:absolute;left:0;right:0;top:3px;border-top:2px solid #dfcea4}.menu-word{font-size:.63rem;font-family:Georgia,serif;font-style:italic;line-height:1}#menuButton:hover{transform:rotate(0);border-color:#f4d494}
#menuDialog{width:min(calc(100% - 28px),470px);padding:40px 34px 48px;border:0;border-radius:17px 19px 24px 14px;background:#30372b url('material/expedition-menu.webp') center/100% 100%;box-shadow:0 20px 70px #000b;transform:rotate(.5deg);color:#f3e6c5}
#menuDialog .modal-head{margin-bottom:24px;padding-bottom:19px;border-bottom:1px dashed #e6ce9766}#menuDialog .eyebrow{color:#d9bb7b;font-family:Georgia,serif;font-style:italic;letter-spacing:.08em}#menuDialog h2{font-family:Georgia,serif;font-style:italic;color:#f4e3b6;font-size:2.6rem}#menuDialog .close-button{border:1px solid #b1a07e80;border-radius:50%;background:#15221b80;color:#f4e3b6}
#menuDialog #backButton,#menuDialog #soundButton,#menuDialog .menu-action{position:relative;display:flex;align-items:center;justify-content:flex-start;gap:10px;width:100%;height:auto;min-height:55px;margin:0 0 13px;padding:12px 19px;border:1px solid #c5b58a88;outline-offset:4px;border-radius:2px;background:repeating-linear-gradient(0deg,#ffffff04 0 1px,transparent 1px 3px),#b4aa8b;color:#253329;box-shadow:3px 4px 0 #101a1655;font-family:Georgia,serif;font-size:1.03rem;text-align:left;transform:rotate(-1deg)}
#menuDialog #soundButton{transform:rotate(1deg)}#menuDialog #backButton:before,#menuDialog #soundButton:before,#menuDialog .menu-action:before{content:'';position:absolute;inset:4px;border:1px dashed #42503b66;pointer-events:none}#menuDialog #backButton:disabled{opacity:.45}#menuDialog #closeMenuButton{background-color:#e1c27b;color:#243428;transform:rotate(.5deg);font-weight:bold;margin-top:24px}#menuDialog #restartButton{background-color:#817c66;color:#fff0d0;font-size:.92rem}#menuDialog .modal-copy{font-size:.78rem;color:#e1d7ba;line-height:1.6;margin:18px 2px}
#menuDialog button:hover:not(:disabled){filter:brightness(1.1)}
@media(max-width:380px){#menuDialog{padding:30px 25px 36px}#menuDialog h2{font-size:2.2rem}}

/* Worn metal trail marker, kept within the thumb's reach. */
.trail-back{position:fixed;z-index:9;left:max(13px,env(safe-area-inset-left));bottom:max(12px,env(safe-area-inset-bottom));width:76px;min-height:62px;display:flex;flex-direction:column;align-items:center;gap:0;padding:0 2px 3px;border:0;background:transparent;color:#e9dec0;cursor:pointer;filter:drop-shadow(0 2px 4px #000b);transition:transform .16s,filter .16s}
.trail-back svg{display:block;width:72px;height:44px;transform:rotate(-3deg)}.trail-back span{font-family:Georgia,serif;font-size:.69rem;line-height:1.2;text-shadow:0 1px 5px #000;background:#0a1714b0;border-radius:8px;padding:1px 7px}.trail-back:hover:not(:disabled){transform:translateX(-2px);filter:drop-shadow(0 0 4px #dfd5a855)}.trail-back:active:not(:disabled){transform:scale(.93)}.trail-back:disabled{visibility:hidden;pointer-events:none}.trail-back:focus-visible{outline:2px solid #f1d69c;outline-offset:2px;border-radius:8px}
.reader .dock-inner{padding-bottom:max(94px,calc(env(safe-area-inset-bottom) + 80px))}
@media(prefers-reduced-motion:reduce){.trail-back{transition:none}}
/* Navigation stays at the lower corners, without visible word labels. */
.continue-cue{position:fixed;z-index:9;top:auto;right:max(13px,env(safe-area-inset-right));bottom:max(12px,env(safe-area-inset-bottom));width:86px;max-width:86px;min-height:86px;height:86px;padding:0;justify-content:center}
.continue-cue:before{width:86px;height:86px}.continue-cue .choice-label,.trail-back span{display:none}
.continue-cue::after{left:0;top:25px}.trail-back{min-height:62px;justify-content:center;padding:0}
.reader .dock-inner{padding-bottom:max(112px,calc(env(safe-area-inset-bottom) + 100px))}
/* Matching navigation pair with a small, visible forward label. */
.continue-cue{width:68px;max-width:68px;height:83px;min-height:83px;bottom:max(11px,env(safe-area-inset-bottom));right:max(16px,env(safe-area-inset-right));gap:0}
.continue-cue:before{width:64px;height:64px}.continue-cue .choice-label{display:block;font-family:var(--sans);font-size:.73rem;font-weight:600;line-height:1.3;letter-spacing:.015em;padding:1px 5px;background:#07130f80}
.continue-cue::after{width:64px;left:2px;top:16px}.trail-back{width:64px;height:64px;min-height:64px;padding:0;bottom:max(24px,env(safe-area-inset-bottom));left:max(16px,env(safe-area-inset-left))}.trail-back svg{display:none}.trail-back:before{content:'';display:block;width:60px;height:60px;background:url('material/back-stone.webp') center/contain no-repeat}
.chapter-progress{position:absolute;left:20px;top:48px;margin:0;color:#f3e5c5;font-family:var(--sans);font-size:.64rem;letter-spacing:.03em;text-shadow:0 1px 5px #000}
.hotspot.paper-note{width:140px;max-width:140px;min-height:61px;height:auto;padding:15px 14px;color:#352f23;background:transparent;filter:drop-shadow(2px 4px 3px #0008)}.hotspot.paper-note:before{background:#e9dabc url('material/journal-paper.webp') center/cover;clip-path:polygon(2% 4%,97% 0,100% 90%,94% 97%,3% 100%,0 14%);transform:none}.hotspot.paper-note[aria-pressed=true]{filter:drop-shadow(0 0 4px #f2d29a99)}.hotspot.paper-note[aria-pressed=true]:after{content:'✓';margin-left:5px;color:#45543a}
.reader[data-mode=lock] .interaction{background:#dfcca4 url('material/journal-paper.webp') center/cover;border:2px solid #a08a57;color:#302b22;box-shadow:inset 0 0 0 3px #e9d8ad,4px 6px 13px #0007;backdrop-filter:none;padding:21px 22px}.reader[data-mode=lock] .interaction h2{color:#3a2d1e}.reader[data-mode=lock] .symbol-button{background:linear-gradient(135deg,#c4a66d,#ebd9a4 45%,#9d7e49);border:2px solid #806438;border-radius:50%;width:65px;height:65px;min-height:65px;padding:5px;margin:auto;color:#342d20;box-shadow:inset 2px 2px 0 #fff0c38c,2px 3px 3px #473a2d55}.reader[data-mode=lock] .symbol-icon{color:#443622}.reader[data-mode=lock] .sequence-slots>span{border-color:#86673f;color:#645231}.reader[data-mode=lock] .secondary-action{color:#493d29;border-color:#7d6845}.reader[data-mode=lock] .primary-action{background:#3d4c39;color:#fff0c9;border-color:#6b794d}.reader[data-mode=lock] .symbol-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.reader[data-mode=lock] .symbol-button>span:last-child{font-size:.65rem}
@media(max-width:360px){.reader[data-mode=lock] .interaction{padding:16px 12px}.reader[data-mode=lock] .symbol-button{width:52px;height:58px;min-height:58px}.reader[data-mode=lock] .symbol-grid{gap:3px}}
@media(min-width:768px) and (orientation:portrait){.prose{font-size:1.18rem;line-height:1.7}}
/* Wide screens read as an open illustrated book. */
@media(min-width:900px) and (orientation:landscape){
 .app-shell{position:relative;min-height:100svh}.topbar{position:relative;height:76px;padding:0 30px;background:#121c19}.chapter-progress{position:static;margin-left:auto;margin-right:25px;font-size:.78rem;text-shadow:none}.chapter-mark{display:none}
 .reader{display:grid;grid-template-columns:minmax(0,49fr) minmax(0,51fr);height:calc(100svh - 76px);min-height:min(520px,calc(100svh - 76px));align-items:stretch;overflow:hidden;max-width:1500px;margin:auto;background:#17211d}
 .stage{position:relative;inset:auto;height:100%;min-height:0;max-height:none;background:#101815}.artwork img{object-fit:contain;object-position:center}.art-vignette{background:linear-gradient(90deg,transparent 85%,#0003);pointer-events:none}
 .reading-dock,.reader[data-mode=inspect] .reading-dock{position:relative;align-self:stretch;display:block;width:100%;max-width:none;margin:0;min-height:0;background:linear-gradient(100deg,#18231e,#202b24);border-left:1px solid #bca87633}
 .dock-inner,.reader[data-cover=true] .dock-inner,.reader[data-mode=decision] .dock-inner,.reader[data-mode=inspect] .dock-inner{position:static;max-width:640px;max-height:calc(100svh - 182px);overflow:auto;margin:auto;padding:36px clamp(28px,3vw,58px) 28px;pointer-events:auto}
 .reader .dock-inner{padding-bottom:28px}.reader[data-cover=true] .scene-heading h1{font-size:clamp(3rem,4.7vw,5rem)}.scene-heading h1{font-size:1.8rem}.prose{font-size:1.05rem;line-height:1.7;text-shadow:none}.hotspots{left:0;right:0;top:0;bottom:0}
 .continue-cue{position:absolute;top:auto;right:28px;bottom:13px}.trail-back{position:absolute;left:calc(49% + 28px);bottom:25px;z-index:9}.speech{max-width:100%}.choice-button{max-width:calc(100% - 20px)}
}


/* Both labels sit above the home indicator, including when the viewport extends behind it. */
.continue-cue,.trail-back { bottom:calc(14px + env(safe-area-inset-bottom, 0px)); }
.continue-cue:before { filter:brightness(1.35) saturate(1.65) contrast(1.12); }
.trail-back { height:83px; min-height:83px; }
.trail-back:before { filter:grayscale(.84) brightness(.77); }
.trail-back span { display:block; font:600 .73rem/1.3 var(--sans); letter-spacing:.015em; padding:1px 5px; }
.reader[data-cover=true] h1 { text-wrap:balance; }
.cover-intro { display:none; }
.reader[data-cover=true] .cover-intro {
  display:block; max-width:44ch; margin:12px 0 0;
  color:#f4ddba; font:1rem/1.45 var(--serif); text-shadow:0 1px 6px #000;
}
.reader[data-cover=true] .prose { max-width:44ch; white-space:pre-line; }
.reader[data-cover=true] .artwork img { object-position:50% 30%; }
@media (max-width:767px) {
  .reader[data-cover=true] .dock-inner { padding:clamp(106px, calc(100svh - 480px), 40svh) 22px calc(24px + env(safe-area-inset-bottom,0px)); }
  .reader[data-cover=true] .scene-heading h1 { font-size:clamp(2.6rem,10vw,4.2rem); max-width:14ch; line-height:.96; }
  .reader[data-cover=true] .scene-heading { margin-bottom:12px; }
  .reader[data-cover=true] .scene-heading .eyebrow { margin-bottom:8px; }
  .reader[data-cover=true] .decision { margin-top:16px; }
  .door-entry .choice-label { max-width:8em; }
}

@media (max-width:767px) and (max-height:620px) {
  .reader[data-cover=true] .dock-inner { padding-top:90px; }
  .reader[data-cover=true] .scene-heading h1 { font-size:2.25rem; }
  .reader[data-cover=true] .prose { font-size:1rem; line-height:1.35; }
  .reader[data-cover=true] .door-entry { min-height:66px; }
}

@media (max-width:767px) {
  .reader[data-cover=true] .art-vignette {
    background:linear-gradient(to bottom,transparent 4%,#07100f99 22%,#07100fdf 46%,#07100ffa);
  }
}

/* Keep both ends of the clue visible in a narrow portrait viewport. */
@media (max-width: 767px) and (orientation: portrait) {
  .reader[data-node="tool"] .artwork img { object-fit:contain; object-position:center 15%; }
}

/* Preserve people and clues that would otherwise be cropped on phones. */
@media (max-width: 767px) and (orientation: portrait) {
  .reader:is(
    [data-node="photo"], [data-node="c3_flight"], [data-node="c5_compare"],
    [data-node="c7_water"], [data-node="c9_hands"]
  ) .artwork img {
    object-fit:contain;
    object-position:center 19%;
  }
  .reader[data-node="c5_compare"] .hotspots { inset:0 6px; }
  .reader[data-node="c5_compare"] .paper-note {
    /* The contained 3:2 image sits at 19% of the free height. */
    top:calc(19% + 54vw - 8px) !important;
    width:30%;
    min-height:44px;
    padding:7px 3px;
  }
  .reader[data-node="c5_compare"] .paper-note[data-label="Opas Karte"] { left:17% !important; }
  .reader[data-node="c5_compare"] .paper-note[data-label="Neue Tafel"] { left:50% !important; }
  .reader[data-node="c5_compare"] .paper-note[data-label="Altes Foto"] { left:83% !important; }
}

/* Keep the text button until the illustrated sign has loaded. */
.choice-button.has-choice-illustration {
  position:relative;
  display:block;
  width:310px;
  max-width:100%;
  min-height:44px;
  padding:0;
  border:0;
  clip-path:none;
  background:transparent;
  box-shadow:none;
  transform:none;
}
.choice-button.has-choice-illustration:active { transform:translateY(1px); }
.choice-button.has-choice-illustration:focus-visible {
  outline:2px solid #fff2d5;
  outline-offset:3px;
}
.choice-illustration {
  display:block;
  width:100%;
  height:auto;
  filter:drop-shadow(0 4px 4px #000a);
  pointer-events:none;
}
.has-choice-illustration:hover .choice-illustration {
  filter:brightness(1.08) drop-shadow(0 4px 4px #000a);
}
.has-choice-illustration .choice-label {
  position:absolute;
  width:1px;
  height:1px;
  overflow:hidden;
  clip-path:inset(50%);
  white-space:nowrap;
}
