:root{color-scheme:light;--ink:#444b4d;--muted:#798184;--line:#a8afb04d;--paper:#f1f3f2}*{box-sizing:border-box}body{margin:0;background:#e9edec;color:var(--ink);font:13px -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;overflow:hidden}button{font:inherit;color:inherit;border:1px solid var(--line);background:#f6f8f65e;border-radius:3px;padding:10px 15px;cursor:pointer;backdrop-filter:blur(14px);transition:background .2s}button:hover{background:#fff9}button:focus-visible{outline:2px solid #626f75;outline-offset:4px}button:disabled{opacity:.5;cursor:wait}[hidden]{display:none!important}#world,#world canvas,.shade,#transition{position:fixed;inset:0;width:100%;height:100%}.shade{pointer-events:none;background:linear-gradient(90deg,#edf0efa3,transparent 55%),linear-gradient(0deg,#edf0efc9,transparent 22%,transparent 80%,#eff1f1b0)}header{position:fixed;top:34px;left:42px;right:42px;display:flex;align-items:center;justify-content:space-between;z-index:5}.wordmark{display:flex;gap:13px;align-items:center;letter-spacing:4px;font-size:18px}.hex{font-size:40px;font-weight:200;color:#6f7b7d}.wordmark small{display:block;letter-spacing:2.5px;font:9px Georgia,serif;margin-top:7px}nav{display:flex;gap:7px}nav button{font-size:11px}#settings{width:35px;padding:8px}#intro{position:fixed;top:27%;left:8%;max-width:460px;z-index:4}.eyebrow{font:10px Georgia,serif;letter-spacing:3px;color:#738084}h1{font:400 clamp(38px,4.8vw,74px)/1.4 "Songti SC","Noto Serif CJK SC",SimSun,serif;letter-spacing:6px;margin:23px 0}.lead{font-size:14px;letter-spacing:2px;margin:0 0 29px}.primary{padding:16px 20px;min-width:235px;background:#4d595d;color:#fff;border:0}.primary:hover{background:#354449}.primary span{float:right;margin-left:30px}.text-button{display:block;background:none;border:0;padding:17px 0;font-size:12px}.privacy{font-size:10px;color:#778184;line-height:1.9}#startError{max-width:350px;line-height:1.8;color:#805c4e}footer{position:fixed;bottom:30px;left:42px;right:42px;display:flex;align-items:end;justify-content:space-between;pointer-events:none;z-index:3}.tiny{font-size:9px;color:var(--muted);display:block;letter-spacing:2px;margin-bottom:8px}.location{position:relative;padding-left:49px;font-size:11px}.minihex{position:absolute;left:0;top:0;font-size:35px;line-height:1;color:#8b9597}.minihex span{position:absolute;left:13px;top:1px}.edition{text-align:right;font:12px "Songti SC",serif;letter-spacing:2px;line-height:1.8}.edition span{font:9px sans-serif;letter-spacing:1px;color:var(--muted)}#guidance{text-align:center;font-size:12px;letter-spacing:1px;position:absolute;left:50%;bottom:8px;transform:translateX(-50%);width:460px;max-width:60vw}.status-dot{display:inline-block;width:5px;height:5px;border-radius:50%;background:#718883;margin-right:9px}#progress{height:2px;width:110px;background:#88949426;margin:13px auto 0}#progress i{display:block;width:0;height:100%;background:#718883}.actions{pointer-events:auto;position:absolute;left:50%;transform:translateX(-50%);bottom:62px;display:flex;gap:7px;white-space:nowrap}.actions button{font-size:10px;padding:8px 12px}#cameraPanel{position:fixed;right:42px;bottom:155px;width:180px;background:#eaf0eebb;border:1px solid #fff9;border-radius:4px;overflow:hidden;z-index:5}#cameraPanel video{width:100%;display:block;transform:scaleX(-1);opacity:.55}#handCanvas{position:absolute;top:0;left:0;width:100%;height:135px}#cameraPanel>div{padding:8px;font-size:10px}#cameraDot{display:inline-block;width:5px;height:5px;border-radius:50%;background:#91a7a0;margin-right:6px}#stopCamera{position:absolute;right:3px;bottom:3px;font-size:8px;padding:5px;border:0}#reticle{position:fixed;width:34px;height:34px;border:1px solid #647e81;border-radius:50%;transform:translate(-50%,-50%);z-index:8;pointer-events:none;box-shadow:0 0 0 5px #ffffff30;transition:width .15s,height .15s}#reticle i{display:block;background:#59767b;width:4px;height:4px;border-radius:50%;margin:14px}#reticle.pinch{width:24px;height:24px;background:#8aaca53b}#reticle.pinch i{margin:9px}#transition{pointer-events:none;background:#f0f3f2;opacity:0;z-index:2}#reader{position:fixed;left:50%;top:20%;transform:translateX(-50%);width:440px;max-width:85vw;text-align:center;pointer-events:none;z-index:4}#bookAuthor{font:12px "Songti SC",serif;letter-spacing:4px}#reader h2{font:400 40px "Songti SC",SimSun,serif;letter-spacing:10px;margin:17px 0}#bookNote{font:14px/2 "Songti SC",serif;margin-top:38vh}#reader small{display:block;color:#7d8788;font-size:10px}#returnBook{pointer-events:auto;margin-top:16px;font-size:10px}dialog{border:1px solid #c4cdcc;background:#f2f5f3f5;color:var(--ink);padding:42px;width:490px;max-width:90vw;border-radius:4px;box-shadow:0 25px 100px #3c4a4a25}dialog::backdrop{background:#b0bcba55;backdrop-filter:blur(12px)}dialog h2{font:28px "Songti SC",serif}dialog ol{padding-left:20px;line-height:2.4;font-size:12px}dialog p:not(.eyebrow){font-size:11px;line-height:1.9;color:var(--muted)}dialog .close{position:absolute;right:12px;top:12px;border:0;background:none;font-size:20px}body.active .shade{background:linear-gradient(0deg,#edf0efc9,transparent 22%,transparent 83%,#eff1f17d)}body.exhibition{font-size:16px}body.exhibition #guidance{font-size:17px;width:650px}body.exhibition .actions button{font-size:14px}@media(max-width:700px){header{top:20px;left:20px;right:20px}.wordmark{font-size:14px;letter-spacing:2px}.wordmark small{font-size:7px}.hex{display:none}nav{gap:3px}nav button{padding:8px;font-size:9px}#intro{left:8%;top:24%;max-width:84%}h1{font-size:44px}footer{left:20px;right:20px;bottom:20px}.edition{display:none}#guidance{bottom:75px;max-width:90vw;width:90vw;font-size:11px}.actions{bottom:113px}.location{font-size:10px}#cameraPanel{width:128px;right:20px;bottom:177px}#handCanvas{height:96px}.privacy{font-size:9px}#reader{top:22%}#reader h2{font-size:30px}#bookNote{margin-top:36vh}#mode{max-width:88px}#sound{display:none}}@media(prefers-reduced-motion:reduce){*{transition:none!important}}

#bookNote{max-width:490px;margin-left:auto;margin-right:auto;line-height:1.8}#noteCredit{margin:8px 0 12px;font-size:9px;letter-spacing:1px}#bookTitle{font-size:clamp(23px,3.4vw,40px)!important;letter-spacing:5px!important}

.location{padding:0;width:166px;background:#f2f4f0b8;padding:12px;border:1px solid #aeb8ae40;border-radius:3px}#map{display:block;width:132px;height:72px;margin-top:8px}#map polygon{fill:none;stroke:#a4afa9;stroke-width:1}#mapDot{fill:#b83935;stroke:#fff;stroke-width:1.5}#reader.full-reading{top:12%;left:50%;width:620px;max-width:74vw;background:#f3f4edeF;padding:22px 32px 18px;max-height:77vh;overflow:auto;pointer-events:auto;border:1px solid #a8b4a344;border-radius:3px;box-shadow:0 15px 70px #56614d15}#reader.full-reading h2{margin:12px 0;font-size:25px!important}#reader.full-reading #bookAuthor{font-size:10px;letter-spacing:1px;margin:0}#reader.full-reading #bookNote{margin:8px 0;font-size:15px}#reader.full-reading #bookNote:empty{display:none}.reading-paper{text-align:left;border-top:1px solid #aab59b55;border-bottom:1px solid #aab59b55;padding:13px 0;margin:12px 0;min-height:180px}#pageText{font:16px/1.95 'Songti SC',serif;white-space:pre-wrap;margin:0;overflow-wrap:anywhere;letter-spacing:.5px}.page-controls{display:flex;align-items:center;justify-content:space-between;margin:12px 0;font-size:11px}#bookSource{display:inline-block;color:#64765f;font-size:10px;margin:8px 12px;text-decoration:none}#importTextLabel{display:block;font-size:11px;padding:12px;border:1px dashed #a3b19d;cursor:pointer}#importText{display:block;max-width:100%;margin-top:10px;font-size:10px}#reader.full-reading #returnBook{margin:8px;font-size:11px}@media(max-width:700px){#reader.full-reading{max-width:93vw;width:93vw;top:12%;padding:17px;max-height:73vh}#pageText{font-size:14px}.location{width:124px;padding:8px}#map{width:105px;height:57px}.location #roomLabel{font-size:9px}}

#pageText{font-size:18px;line-height:1.9}body.exhibition #pageText{font-size:20px}body.exhibition #reader.full-reading{width:700px}#reader.full-reading .reading-paper{min-height:240px}#bookSource{max-width:100%;overflow-wrap:anywhere}

body.reading .actions{display:none}body.reading footer{z-index:6}#reader.full-reading #returnBook{position:sticky;bottom:0;background:#e6ebe0;box-shadow:0 0 0 5px #f3f4ed}#importTextLabel{padding:9px}body.reading .location{box-shadow:0 0 0 3px #f2f4f0c9}#reader.full-reading{max-width:calc(100vw - 280px);left:calc(50% + 65px)}@media(max-width:700px){#reader.full-reading{left:50%;max-width:93vw;max-height:68vh}body.reading .location{width:auto}body.reading #map{width:76px;height:40px}}

.opening-note{margin:20px 0 26px;font-family:serif;font-size:22px;letter-spacing:.12em;color:#55625b}.opening-note cite{display:block;margin-top:13px;font:11px/1.9 sans-serif;letter-spacing:.08em;font-style:normal}.opening-note cite span{display:block;font-size:10px;opacity:.65}

#intro{top:17%}@media(max-height:720px){#intro{top:15%}#intro h1{font-size:36px;margin:12px 0;line-height:1.25}.opening-note{margin:12px 0 16px;font-size:20px}#intro .privacy{margin-top:8px}}

/* Narrative layer remains a small, readable part of the room. */
#chapterPanel{position:fixed;top:110px;left:40px;width:min(350px,38vw);z-index:7;background:rgba(246,248,246,.9);padding:18px 22px;border-left:2px solid #647368;backdrop-filter:blur(12px)}
#chapterName{font:22px/1.3 "Songti SC",serif;margin:0 0 10px}#chapterGoal{font-size:15px;line-height:1.8;margin:0 0 12px}#storyActions{display:flex;gap:8px;flex-wrap:wrap}#storyActions button{font-size:14px;padding:10px 13px;border:1px solid #a5b1a9;background:#f9faf6;color:#38473d}#storyActions button:disabled{opacity:.5}#branchLabel{display:block;font-size:12px;line-height:1.7;margin-top:10px;color:#626e66}#routeWarning{color:#7a3439;font-size:14px;line-height:1.7}
body.reading #chapterPanel{display:none}#returnZone{position:fixed;bottom:12px;left:50%;transform:translateX(-50%);padding:12px 25px;background:#e4eadff0;color:#43513f;z-index:22;font-size:14px;pointer-events:none;border-top:2px solid #869780}#reticle{pointer-events:none;z-index:60}button.gesture-hover{outline:3px solid #8ca78c;outline-offset:3px}
#reader.full-reading{width:510px;max-width:calc(100vw - 300px);max-height:82vh;top:48%;left:calc(50% + 70px);overflow:auto;padding:24px 28px 20px}#reader h2{font-size:27px;margin:12px 0}#reader .reading-paper{min-height:160px}#reader #pageText{font-size:18px;line-height:1.85;white-space:pre-wrap}#reader .page-controls{position:sticky;bottom:52px;background:#f3f4ed;padding:12px 0;z-index:2;display:flex;justify-content:space-between;gap:12px}#reader .page-controls button{font-size:15px;border:1px solid #89998a;padding:10px}#reader #returnBook{font-size:15px;width:100%;padding:12px}#reader small{font-size:12px;line-height:1.6}#bookSource{font-size:12px}.reading #guidance{display:none}
#ending{position:fixed;inset:0;z-index:40;background:rgba(236,241,235,.96);overflow:auto;padding:8vh max(8vw,24px);color:#344137}#ending h1{font-size:clamp(30px,4vw,60px);margin:18px 0}#endingText{font:20px/1.9 "Songti SC",serif;max-width:700px;white-space:pre-line}.ending-records{display:grid;grid-template-columns:1fr 1fr;gap:30px;max-width:850px;margin:28px 0}.ending-records>div{border-top:1px solid #8b998a;padding:15px 0}.ending-records small{font-size:13px}.ending-records p{font-size:16px;line-height:1.85;white-space:pre-line}#endingNote{font-size:13px;line-height:1.8}#ending button{margin:12px 10px 0 0;font-size:15px;padding:13px 22px}body.ended header,body.ended footer,body.ended #chapterPanel{visibility:hidden}body.danger #chapterPanel{background:#292d30e8;color:#f0eeea;border-color:#a45757}body.danger #branchLabel{color:#c5c1bf}body.danger #routeWarning{color:#e6a8a8}
@media(max-width:700px){#chapterPanel{top:100px;left:18px;width:calc(100vw - 36px);max-width:330px;padding:12px 16px}#chapterName{font-size:19px}#chapterGoal{font-size:14px}#reader.full-reading{left:50%;max-width:94vw;width:94vw;max-height:75vh;padding:18px}#reader #pageText{font-size:16px}.ending-records{grid-template-columns:1fr;gap:12px}#returnZone{font-size:12px;width:85%;text-align:center}#ending{padding-top:5vh}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}
#reader.full-reading{top:52%;transform:translate(-50%,-50%);max-height:76vh;z-index:20}#reader.full-reading .reading-paper{min-height:170px}#reader.full-reading #bookAuthor{font-size:12px;line-height:1.7}#reader.full-reading #returnBook{margin:8px 0 0;font-size:15px}#reader.full-reading small{font-size:12px}#reader.full-reading .page-controls{bottom:50px}#reader.full-reading #pageText{margin:14px 0;font-size:18px;line-height:1.75}.page-controls button:disabled{opacity:.38}button:focus-visible{outline:3px solid #759272;outline-offset:3px}
@media(max-height:700px){#reader.full-reading{top:53%;max-height:73vh;padding:14px 22px}#reader.full-reading .reading-paper{min-height:100px}#reader.full-reading #pageText{font-size:16px;line-height:1.6}}

#returnZone{background:linear-gradient(to right,#a9bea5 var(--return-progress,0%),#e4eadff0 var(--return-progress,0%))}

#whiteout{position:fixed;inset:0;background:#fcfdfa;pointer-events:none;z-index:2;transition:opacity 1.8s ease}#chapterPanel{z-index:8}#coverCredit{display:block;font-size:12px;line-height:1.6;margin:5px 0;color:#68776b}#map{width:150px}.actions button{font-size:13px}#storyActions button{min-height:42px}body.danger #whiteout{display:none}

#keyboardHelp{position:fixed;left:30px;top:100px;z-index:35;display:flex;flex-direction:column;gap:7px;padding:14px 18px;background:rgba(249,249,245,.9);border:1px solid #dddcd5;color:#535750;font-size:11px;line-height:1.5;pointer-events:none;max-width:310px}#keyboardHelp[hidden],body.ended #keyboardHelp{display:none}#keyboardHelp b{font-weight:500;letter-spacing:3px}button:focus-visible,a:focus-visible,summary:focus-visible{outline:2px solid #657e72;outline-offset:5px}.keyboard-mode #reader>small:not(#noteCredit){font-size:0}.keyboard-mode #reader>small:not(#noteCredit):after{content:"← / → 翻页 · R / Esc 归还";font-size:11px}@media(max-width:800px){#keyboardHelp{top:75px;left:12px;max-width:245px;font-size:10px;padding:8px}.reading #keyboardHelp{display:none}}

#wingMap{position:fixed;left:28px;bottom:150px;width:180px;padding:10px;z-index:30;background:rgba(242,245,239,.92);color:#53665b}#wingMap[hidden]{display:none}#wingMap svg{width:100%;height:150px}#wingMap small{font-size:10px}body.reading #wingMap{display:none}

body.in-wing #map{visibility:hidden}body.in-wing #chapterPanel{max-height:65vh;overflow-y:auto}@media(max-width:700px){#wingMap{left:12px;bottom:130px;width:100px}#wingMap svg{height:90px}}

.cover-shelf-link{font-size:12px;color:inherit;text-decoration:none;padding:9px 10px;border:1px solid #c4cec5;border-radius:3px;white-space:nowrap}.cover-shelf-link:hover{background:#e5ebe3}@media(max-width:650px){.cover-shelf-link{padding:6px;font-size:10px}}

/* v14: an employee's task file sits beside, rather than over, the library. */
#intro{top:19%;max-width:530px}#intro h1{font-size:clamp(42px,5vw,72px);letter-spacing:.08em;margin:16px 0 20px}#intro .lead{line-height:1.9;letter-spacing:.06em;margin-bottom:22px}.opening-note{border-left:2px solid #8b9b8e;padding-left:19px;margin:22px 0;font-size:23px}.intro-task{font-size:13px;line-height:1.8;margin:20px 0}#intro .privacy{letter-spacing:0;max-width:460px}
#chapterPanel{width:360px;max-width:37vw;top:105px;left:30px;max-height:calc(100dvh - 300px);overflow:auto;scrollbar-width:thin;background:rgba(246,248,246,.95);border-left:2px solid #657a6c;padding:19px 20px 17px}.quest-label{margin:0 0 9px;font-size:9px;letter-spacing:.16em}#chapterName{font-size:23px;line-height:1.4}#chapterGoal{font-size:13px;line-height:1.75;color:#405d4d}#questBody{white-space:pre-line;font-size:13px;line-height:1.95;margin:13px 0 18px;color:#4b554f}#storyActions{display:grid;grid-template-columns:1fr;gap:7px}#storyActions button{text-align:left;line-height:1.6;font-size:13px;padding:9px 12px;min-height:42px;background:#f8faf7}#storyActions button:disabled{cursor:default}#branchLabel{font-size:10px;margin-top:13px}#saveStatus{display:block;font-size:9px;line-height:1.5;color:#809083;margin-top:5px}#galleryControls{display:flex;flex-wrap:wrap;gap:5px;border-top:1px solid #cad3cc;margin-top:12px;padding-top:12px}#galleryControls button{font-size:11px;padding:7px 9px}
#keyboardHelp{left:auto;right:30px;top:105px;max-width:275px;background:#f4f7f0c9;border-color:#c5cec24d;font-size:10px;gap:4px}#keyboardHelp b{font-size:10px;letter-spacing:.12em}#notebook{width:min(760px,92vw);max-height:84dvh;overflow:auto;padding:32px 40px}#notebook>p{font-size:12px}#notebookEntries article{border-top:1px solid #c6cfc7;margin-top:22px;padding-top:17px}#notebookEntries small{font-size:10px;color:#6d7f72}#notebookEntries h3{font:22px 'Songti SC',serif;margin:9px 0}#notebookEntries p{font-size:14px;color:#4d5e51;white-space:pre-line;line-height:1.9}.notebook-books{display:flex;gap:8px;flex-wrap:wrap}.notebook-books button{font-size:12px}#fogSetting{display:block;width:100%;margin:12px 0;accent-color:#657a6c}.reading #keyboardHelp{display:none}
@media(max-height:750px){#intro{top:15%}#intro h1{font-size:42px;margin:12px 0}.opening-note{margin:15px 0}.lead{font-size:13px}.intro-task{margin:12px 0}#chapterPanel{top:90px;max-height:calc(100dvh - 250px)}#keyboardHelp{top:90px}}
@media(max-width:900px){header{left:24px;right:24px;top:24px}nav{gap:4px}nav button{padding:8px}#mode{display:none}.wordmark small{font-size:7px;letter-spacing:1px}#chapterPanel{max-width:46vw;left:20px}#keyboardHelp{display:none}#reader.full-reading{left:50%;max-width:80vw}#notebookButton{font-size:10px}}
@media(max-width:620px){header{left:16px;right:16px;top:16px}.wordmark{font-size:12px}.wordmark small{display:none}nav button{font-size:10px;padding:7px}.cover-shelf-link{display:none}#intro{top:20%;left:7%;max-width:86%}#intro h1{font-size:42px}#intro .lead{font-size:13px}#chapterPanel{top:78px;left:16px;max-width:none;width:calc(100vw - 32px);max-height:50dvh;padding:14px 17px}#chapterName{font-size:21px}#questBody{font-size:12px;margin:8px 0 12px}#storyActions button{font-size:12px;padding:8px 10px}#chapterGoal{font-size:12px}.actions{bottom:90px}.actions button{font-size:11px;padding:8px}#guidance{bottom:45px;max-width:90vw;width:90vw}footer{bottom:18px}.location{width:132px}#reader.full-reading{max-width:94vw}#notebook{padding:24px}#notebookEntries p{font-size:13px}.opening-note{font-size:21px}.intro-task{font-size:12px}}

#intro{padding:20px 24px;margin-left:-24px;background:linear-gradient(90deg,#eff2eefa,#eff2eecf 68%,#eff2ee00);border-radius:2px}#intro .eyebrow{font-size:9px;letter-spacing:.18em}#intro .lead{color:#455449}.opening-note cite span{opacity:1;color:#69776c}
@media(max-width:620px){#intro{padding:18px 20px;margin-left:-20px;max-width:94vw}#intro .privacy{font-size:9px;line-height:1.9}}

/* Vertical observation controls share the same click and hand-dwell actions. */
#viewControls{position:fixed;right:30px;bottom:190px;z-index:8;text-align:right;pointer-events:auto}#viewControls small{display:block;color:#526459;font-size:10px;letter-spacing:.12em;margin-bottom:8px;text-shadow:0 1px 4px #fff}#viewControls>div{display:flex;gap:5px}#viewControls button{min-height:42px;padding:8px 12px;font-size:12px;background:#f4f7f0df;border-color:#a5b2a877}#viewControls button[aria-pressed="true"]{background:#64796b;color:#fff}body.camera-on #viewControls{right:240px}body.reading #viewControls,body.ended #viewControls{display:none}#viewControls[hidden]{display:none}
@media(max-width:700px){#viewControls{right:16px;bottom:165px}#viewControls button{font-size:11px;padding:8px 10px}body.camera-on #viewControls{right:163px;bottom:165px}}

body.observing #chapterPanel{visibility:hidden;pointer-events:none}

/* The offer letter introduces the story before the player is asked to solve anything. */
.offer-number{font:10px monospace;letter-spacing:.1em;color:#738176;margin:19px 0 0}.offer-detail{display:grid;gap:9px;padding:15px 0;border-top:1px solid #a9b3ac66;border-bottom:1px solid #a9b3ac66;font-size:12px;line-height:1.5}.offer-date{color:#825348}#intro h1{margin:10px 0 19px}#intro .intro-task{font-family:'Songti SC',serif;font-size:15px;line-height:1.85}#intro{top:13%;}#chapterPanel{background:rgba(246,248,246,.92)}
@media(max-width:620px){#intro{top:12%;}#intro .lead{font-size:12px;letter-spacing:.02em}#intro .intro-task{font-size:13px;margin:15px 0}.offer-detail{font-size:11px;gap:6px;padding:10px 0}#intro h1{font-size:39px}.offer-number{margin-top:12px}}
@media(max-height:690px){#intro{top:9%;}#intro h1{font-size:34px;margin:8px 0}#intro .lead{margin-bottom:12px}#intro .intro-task{margin:12px 0}.offer-detail{padding:8px 0;gap:4px}#intro .primary{padding:12px 16px}}

body.task-collapsed #chapterPanel{display:none}#taskToggle[hidden]{display:none}
