:root{--ink:#10272b;--paper:#f5f0e6;--gold:#e6c58b;--muted:#becbc6;--line:#e6c58b40;color-scheme:dark}
*{box-sizing:border-box}html,body{margin:0;height:100%}body{background:var(--ink);color:var(--paper);font-family:'Noto Sans TC',sans-serif;overflow:hidden}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer;min-height:44px}button:focus-visible,a:focus-visible,summary:focus-visible{outline:2px solid var(--gold);outline-offset:5px}button{transition:background .2s,border-color .2s}p,h2,h3{margin:0}[hidden]{display:none!important}
.app-navbar{position:absolute;inset:0 0 auto;z-index:3;display:flex;justify-content:space-between;align-items:center;padding:24px 4vw;background:linear-gradient(#10272be0,transparent);gap:12px}.brand{font:600 22px 'Noto Serif TC',serif;letter-spacing:.18em}.brand small{display:block;font:400 10px 'Noto Sans TC',sans-serif;letter-spacing:.2em;margin-top:8px;color:var(--muted)}.nav-actions{display:flex;gap:20px;align-items:center}.time-switch{display:flex;gap:4px}.time-switch button{border:0;background:transparent;color:var(--muted);width:44px}.time-switch button[aria-pressed=true]{color:var(--gold);border-bottom:1px solid var(--gold)}.story-launch{background:transparent;border:1px solid var(--line);color:var(--paper);padding:0 20px;border-radius:3px}.story-launch:hover{background:#e6c58b20}.app-viewport,.scene{height:100%;position:relative}.scene-bg-photo{position:absolute;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity .8s}.scene-bg-photo.active{opacity:1}.scene:after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,#10272be8,transparent 78%),linear-gradient(0deg,#10272b99,transparent 60%);pointer-events:none}.scene-label{position:absolute;right:4vw;bottom:36px;z-index:1;writing-mode:vertical-rl;font:400 12px 'Noto Serif TC',serif;letter-spacing:.35em;color:var(--paper)}.entry{position:absolute;left:9vw;bottom:18vh;z-index:1;max-width:490px;padding-right:24px}.entry>p{color:var(--gold);font-size:11px;letter-spacing:.3em}.entry h1{font:600 clamp(58px,8vw,108px)/1.3 'Noto Serif TC',serif;letter-spacing:.15em;margin:18px 0 0}.entry-subtitle{font:600 20px 'Noto Serif TC',serif;letter-spacing:.2em;margin:10px 0 28px}.description{font:400 15px/2 'Noto Serif TC',serif;color:#e1e6dd}.entry button{margin-top:32px;background:var(--gold);color:var(--ink);border:1px solid var(--gold);padding:14px 32px;border-radius:2px;letter-spacing:.13em}.entry button:hover{background:#f4dba9}
.story-overlay{position:fixed;inset:0;z-index:10;display:none;background:var(--ink)}.story-shell{position:relative;width:100%;height:100dvh;overflow:hidden}.story-topbar{position:absolute;inset:0 0 auto;z-index:3;padding:20px 4vw;display:flex;justify-content:space-between;align-items:center;gap:12px;background:linear-gradient(#10272bf5,#10272b90,transparent)}.story-topbar h2{font:600 16px 'Noto Serif TC',serif;letter-spacing:.12em}.story-topbar p{font-size:10px;color:var(--muted);margin-top:7px}.story-top-actions{display:flex;gap:8px}.story-top-actions button,#story-journal-close{border:1px solid var(--line);border-radius:2px;background:#10272bcc;color:var(--paper);padding:8px 15px;font-size:12px}.story-top-actions button:hover,#story-journal-close:hover{background:#2b4445}.story-layout,.story-main{height:100%}.story-stage{position:absolute;inset:0;background-size:cover;background-position:center;transition:background-image .4s}.story-stage:after{content:'';position:absolute;inset:0;background:linear-gradient(0deg,#10272bd9,transparent 65%)}.story-stage>div{position:absolute;left:5vw;top:18vh;z-index:1;text-shadow:0 2px 12px #10272b}.story-stage-kicker{display:inline-block;background:#10272bbd;padding:6px 10px;font-size:11px;letter-spacing:.18em;color:var(--gold)}.story-stage h3{font:600 clamp(24px,3vw,38px) 'Noto Serif TC',serif;letter-spacing:.12em;margin-top:12px}.story-reading{position:absolute;left:50%;bottom:5vh;transform:translateX(-50%);width:min(880px,90vw);max-height:65dvh;overflow-y:auto;padding:24px 32px;background:#10272bf5;border:1px solid var(--line);border-top:2px solid var(--gold);border-radius:3px;box-shadow:0 16px 60px #07191c80;scrollbar-width:thin;scrollbar-color:#7b887d var(--ink)}.dialogue-meta{display:flex;align-items:center;gap:12px;margin-bottom:18px}.speaker-seal{display:grid;place-items:center;width:34px;height:34px;border:1px solid var(--gold);color:var(--gold);font:600 17px 'Noto Serif TC',serif}.story-speaker{font:600 15px 'Noto Serif TC',serif;color:var(--gold);letter-spacing:.15em}.story-beat{margin-left:auto;font-size:10px;letter-spacing:.1em;color:var(--muted)}.story-text{font:400 clamp(16px,1.4vw,19px)/1.95 'Noto Serif TC',serif;letter-spacing:.035em;min-height:74px}.story-text p{animation:reveal .3s ease-out}.story-actions{display:grid;gap:9px;margin-top:20px}.story-actions button{padding:12px 18px;text-align:left;border-radius:2px;font-size:14px;line-height:1.6}.story-choice{border:1px solid #8c9c8a;background:#193337;color:var(--paper)}.story-choice:hover{border-color:var(--gold);background:#2c4545}.choice-number{display:inline-block;margin-right:16px;font-size:11px;color:var(--gold)}.story-continue{justify-self:end;color:var(--gold);border:1px solid var(--line);background:transparent;min-width:140px}.story-continue:hover{background:#e6c58b15}.choice-prompt{font-size:11px;letter-spacing:.15em;margin-top:22px;color:var(--gold)}.story-decrypt{margin-top:18px;border-top:1px solid var(--line);padding-top:16px}.story-decrypt summary{color:var(--gold);cursor:pointer;font-size:13px;min-height:44px;display:flex;align-items:center}.story-decrypt p{font-size:14px;line-height:1.85;margin:12px 0;color:var(--paper)}.story-decrypt a{font-size:12px;color:var(--gold)}
.story-side{position:absolute;inset:0 0 0 auto;z-index:5;width:min(400px,100%);overflow-y:auto;padding:24px;background:#10272b;border-left:1px solid var(--line);box-shadow:-30px 0 80px #07191c80}.story-side section{margin-top:28px}.story-side h4{font:600 18px 'Noto Serif TC',serif;color:var(--gold);margin:0 0 14px}.story-side p,.story-side li{font-size:13px;line-height:1.85;color:var(--muted)}.story-side ul,.story-side ol{padding-left:20px}.story-side li+li{margin-top:12px}.story-marker{padding:10px 0;border-bottom:1px solid var(--line);font-size:12px;color:var(--muted)}.story-marker.is-current{color:var(--gold)}.story-marker.is-done{color:#d4dfc7}.story-note{margin-top:16px}.story-reading.has-choices{border-top-color:#efdaaf}@keyframes reveal{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:none}}
@media(max-width:760px){.app-navbar{padding:18px}.brand{font-size:18px}.nav-actions{gap:8px}.story-launch{display:none}.entry{left:8vw;bottom:14vh}.entry h1{font-size:64px}.entry-subtitle{font-size:18px}.description{font-size:14px}.scene:after{background:linear-gradient(0deg,#10272bf2,transparent),linear-gradient(90deg,#10272b88,transparent)}.story-topbar{padding:12px 16px}.story-topbar h2{font-size:13px}.story-top-actions{gap:5px}.story-top-actions button{padding:6px 10px;font-size:11px}.story-stage>div{top:16vh;left:6vw}.story-stage h3{font-size:23px}.story-reading{bottom:max(16px,env(safe-area-inset-bottom));width:calc(100% - 24px);padding:18px 20px;max-height:66dvh}.story-text{font-size:16px}.story-actions button{font-size:13px}.story-stage{background-position:60% center}.story-side{padding:20px}.scene-label{display:none}}
@media(max-height:550px){.story-stage>div{top:22vh}.story-stage h3{font-size:20px}.story-reading{left:auto;right:3vw;transform:none;width:62vw;bottom:3vh;max-height:70dvh}.entry{bottom:8vh}.entry h1{font-size:52px}.entry-subtitle{margin-bottom:12px}.entry button{margin-top:16px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}

/* 第一幕的調查、人物記憶與手札；沿用既定水墨視覺契約。 */
.story-objective{max-width:360px;margin-top:12px;padding:8px 12px;background:#10272bca;font-size:11px;line-height:1.7;color:#e1e7dc;border-left:1px solid var(--gold)}
.story-discovery{margin-top:16px;color:var(--gold);font-size:11px;line-height:1.7;border-left:2px solid var(--gold);padding-left:10px}.choice-hint{display:block;margin:4px 0 0 31px;color:var(--muted);font-size:11px;font-weight:400}.story-choice:disabled{cursor:default;color:#b8c1bc;background:#152b2d;border-color:#65746c;opacity:.75}.story-choice:disabled:hover{background:#152b2d;border-color:#65746c}.is-exploring .story-actions{grid-template-columns:repeat(3,minmax(0,1fr))}.is-exploring .story-choice{padding:18px 14px;min-height:100px}.is-exploring .choice-number{display:block;margin:0 0 10px}.is-exploring .choice-hint{margin-left:0}.story-side{width:min(460px,100%)}.journal-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.journal-heading h3{font:600 22px 'Noto Serif TC',serif;letter-spacing:.07em;margin-top:8px}.journal-eyebrow{font-size:10px!important;letter-spacing:.18em;color:var(--gold)!important}.journal-tabs{display:flex;gap:6px;margin-top:22px;border-bottom:1px solid var(--line)}.journal-tabs button{flex:1;border:0;border-bottom:2px solid transparent;background:transparent;color:var(--muted);font-size:12px}.journal-tabs button[aria-pressed=true]{color:var(--gold);border-color:var(--gold)}.person-card{padding:18px 0;border-bottom:1px solid var(--line)}.person-card h5{font:600 19px 'Noto Serif TC',serif;margin:0 0 6px;color:var(--paper)}.person-card small,.story-side li small{font-size:10px;color:var(--muted);line-height:1.6;display:block}.person-card p{margin-top:10px}.person-memory{border-left:2px solid var(--gold);padding-left:10px;color:var(--gold)!important}.clue-kind{display:inline-block;color:var(--gold);font-size:10px;border:1px solid var(--line);padding:2px 7px;margin-bottom:6px}.clue-kind.is-unconfirmed{color:#eed0b4;border-color:#eed0b450}#story-clue-list{list-style:none;padding-left:0}.story-side li small{margin-top:6px}.knowledge-card{border-bottom:1px solid var(--line);padding:14px 0}.knowledge-card summary{min-height:44px;cursor:pointer;font-size:13px;line-height:1.7;color:var(--gold)}.knowledge-card p{margin-top:12px}.knowledge-card small{font-size:11px;color:var(--gold)}.knowledge-card a{display:inline-block;color:var(--gold);font-size:12px;margin-top:12px}#story-transcript{list-style:none;padding:0}#story-transcript li{border-bottom:1px solid var(--line);padding:10px 0}#story-transcript li small{color:var(--gold)}
@media(max-width:760px){.story-objective{max-width:270px;font-size:10px}.is-exploring .story-actions{grid-template-columns:1fr}.is-exploring .story-choice{padding:12px 14px;min-height:64px}.is-exploring .choice-number{display:inline-block;margin:0 10px 0 0}.is-exploring .choice-hint{margin-left:31px}.story-stage>div{top:13vh}.story-stage h3{font-size:22px}.story-reading{max-height:65dvh}}
@media(max-height:550px){.story-objective{max-width:25vw}.is-exploring .story-actions{grid-template-columns:1fr}.is-exploring .story-choice{min-height:60px}.is-exploring .choice-number{display:inline-block}.is-exploring .choice-hint{margin-left:31px}}

.transcript-fold summary{min-height:44px;cursor:pointer;color:var(--gold);font-size:13px;line-height:1.8}

.story-artifact{margin-top:16px;border:1px solid var(--line);border-radius:2px}.story-artifact summary{padding:12px 14px;min-height:44px;cursor:pointer;color:var(--gold);font-size:12px}.story-artifact>div{background:#eee6d4;color:#203d39;padding:18px 20px;border-top:1px solid var(--gold);font:400 14px/1.85 'Noto Serif TC',serif}.story-artifact p{padding:8px 0;border-bottom:1px solid #203d3926}.story-artifact small{display:block;margin-top:12px;color:#43554c;font-size:11px}

/* 連續閱讀保留同場景前文，原有水墨設計維持。 */
.story-text p+p{margin-top:1.15em}.story-text{max-width:42em}.choice-prompt{letter-spacing:.08em}

.story-reading{z-index:2}.story-stage>div{top:12vh}.story-stage h3{font-size:clamp(22px,2vw,28px)}
