:root{color-scheme:dark;--ink:#15110e;--panel:#211914;--text:#f4e5cd;--muted:#c4ad93;--gold:#f0be77;--line:#4d382a;font-family:Noto Sans TC,Microsoft JhengHei,system-ui,sans-serif}*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 18% -20%,#493121 0,transparent 47%),var(--ink);color:var(--text);min-height:100dvh}button{font:inherit;color:inherit;cursor:pointer;border:1px solid var(--line);background:#2b2018;border-radius:8px}button:hover{border-color:var(--gold)}button:focus-visible{outline:2px solid var(--gold);outline-offset:3px}[hidden]{display:none!important}.masthead{max-width:1392px;margin:auto;display:flex;align-items:center;justify-content:space-between;padding:17px 34px;border-bottom:1px solid var(--line);gap:12px}.brand,.top-actions{display:flex;align-items:center;gap:10px}.brand{font-weight:750;white-space:nowrap}.brand span{display:block;color:var(--gold);font-size:9px;letter-spacing:.22em;margin-top:4px}.top-actions button,.hint{font-size:13px;padding:8px 11px}main{max-width:1392px;margin:auto;padding:34px 34px 28px}.heading{margin-bottom:23px}.chapter{font-size:12px;color:var(--gold);font-weight:750;letter-spacing:.16em;margin:0 0 7px;display:flex;align-items:center;gap:9px}.chapter span{height:1px;width:24px;background:var(--gold)}h1,h2{font-family:"Noto Serif TC",PMingLiU,serif}h1{font-size:clamp(36px,5vw,65px);line-height:1.08;margin:8px 0 12px;letter-spacing:.06em}.premise,.journal p{color:var(--muted);margin:0;font-size:14px;line-height:1.65}.layout{display:grid;grid-template-columns:minmax(0,1fr) 278px;align-items:start;gap:20px}.frame,.journal{border:1px solid var(--line);background:var(--panel);border-radius:14px;overflow:hidden}.map-top{display:flex;align-items:center;justify-content:space-between;padding:10px 14px;font-weight:700;font-size:13px;color:var(--gold)}.map-top i{display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--gold);box-shadow:0 0 8px #e8a651;margin-right:6px}#game{width:100%;aspect-ratio:18/13;background:#39261c;overflow:hidden}#game canvas{width:100%!important;height:100%!important;display:block;touch-action:none}#status{display:flex;align-items:center;margin:0;min-height:47px;padding:8px 14px;color:var(--text);font-size:14px;line-height:1.4}.controls{margin-top:12px}.desktop-controls{color:var(--muted);font-size:13px;display:flex;align-items:center;gap:8px;flex-wrap:wrap}kbd{background:#261d17;border:1px solid var(--line);border-radius:4px;padding:3px 7px}.touch-controls{display:none}.journal{padding:19px}.journal-title{display:flex;justify-content:space-between;align-items:center;gap:5px}h2{font-size:24px;margin:0 0 8px}output{border:1px solid #735232;padding:3px 8px;color:var(--gold);border-radius:20px;white-space:nowrap;font-size:13px}ol{list-style:none;padding:0;margin:16px 0;display:grid;gap:8px}li{display:flex;align-items:center;gap:9px;min-height:53px;padding:7px 9px;background:#2c2119;border:1px solid #483427;border-radius:8px;font-size:14px}li small{display:block;color:var(--muted);font-size:11px;margin-top:2px}.symbol{display:grid;place-items:center;width:34px;height:34px;border-radius:7px;background:#3d2b20;color:var(--gold);font-size:21px;flex:none}.symbol img{width:25px;height:25px}.mission{display:grid;gap:5px;border-top:1px solid var(--line);padding-top:13px;margin-bottom:14px}.mission span{color:var(--muted);font-size:12px}.mission strong{font-size:15px;color:var(--gold)}#hint-text{margin-top:10px}dialog{width:min(91vw,430px);padding:0;border:1px solid #8c5c32;border-radius:15px;background:#231a14;color:var(--text);box-shadow:0 20px 80px #000b}dialog::backdrop{background:#0e0907b9}dialog section{position:relative;padding:25px}dialog h2{font-size:30px;margin:7px 0 10px}#dialog-body,#feedback{color:var(--muted);line-height:1.65}#close{position:absolute;right:12px;top:12px;width:36px;height:36px;font-size:21px}.primary{background:#edb76d;color:#282016;font-weight:780;border-color:#e7ab5a;padding:9px 17px;min-height:42px}.primary:hover{background:#ffcb86}#slots{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:14px 0}.slot{padding:8px 4px;min-height:70px}.slot .symbol{margin:4px auto 0}#feedback{color:#ffc27d}@media(max-width:820px){.layout{grid-template-columns:minmax(0,1fr) 224px;gap:13px}.journal{padding:13px}}@media(max-width:650px){.masthead{padding:9px 12px}.brand img{width:32px;height:32px}.top-actions button{font-size:12px;padding:6px 8px}main{padding:16px 10px 20px}.heading{margin:0 2px 12px}h1{margin:5px 0 7px;font-size:34px}.premise{font-size:12px}.map-top{padding:7px 9px;font-size:12px}#status{padding:6px 9px;min-height:41px;font-size:12px}.layout{display:block}.journal{margin-top:12px}ol{grid-template-columns:repeat(3,minmax(0,1fr));gap:4px}li{padding:5px;gap:4px;font-size:11px}li .symbol{width:21px;height:24px}li .symbol img{width:17px;height:17px}}@media(max-width:650px),(pointer:coarse){.desktop-controls{display:none}.touch-controls{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:0 6px;touch-action:none;-webkit-user-select:none;user-select:none}.dpad{display:grid;grid-template-columns:repeat(3,43px);grid-template-rows:repeat(2,33px);gap:3px}.dpad button{touch-action:none;color:var(--gold);font-size:16px}.dpad button:first-child{grid-column:2}.dpad button:nth-child(2){grid-column:1}.dpad button:active{background:#59402a}#interact{min-width:87px;min-height:48px}.controls{margin-top:8px}}@media(min-width:821px)and (pointer:fine){main{max-width:clamp(820px,calc((100dvh - 343px) * 18 / 13 + 366px),1392px);padding-top:22px}.heading{margin-bottom:16px}h1{font-size:clamp(38px,5vh,60px)}}#chapters{display:flex;gap:6px;margin:0 0 10px}#chapters button{padding:5px 10px;font-size:12px}#chapters button[aria-current=step]{border-color:var(--gold);color:var(--gold);background:#3d2b20}#chapters button:disabled{opacity:.55;cursor:default}#chapters button:disabled:hover{border-color:var(--line)}#puzzle-notes{white-space:pre-line;padding:10px 12px;border-left:2px solid var(--gold);background:#312319;color:var(--muted);font-size:14px;line-height:1.55}.journal li small{line-height:1.5}@media(max-width:650px){.journal li:has(small[data-multiline]){grid-column:1/-1;font-size:13px;gap:8px}}.slot-caption{display:none}.chapter-one #clues li{font-size:16px}.chapter-one #clues li small{font-size:13px}.chapter-one #clues .symbol{width:42px;height:42px}.chapter-one #clues .symbol img{width:36px;height:36px}.chapter-one .slot{min-height:113px;font-weight:700}.chapter-one .slot .symbol{width:58px;height:58px;font-size:32px}.chapter-one .slot .symbol img{width:52px;height:52px}.chapter-one .slot-caption{display:block;margin-top:4px;color:var(--muted);font-size:14px}#clue-symbol .symbol{width:78px;height:78px;border:1px solid #9e794b}#clue-symbol .symbol img{width:68px;height:68px}.chapter-one #dialog-body{font-size:16px}@media(max-width:650px){.chapter-one #clues li{flex-direction:column;align-items:center;text-align:center;padding:8px 3px;gap:6px}.chapter-one .slot .symbol{width:52px;height:52px}.chapter-one .slot .symbol img{width:47px;height:47px}}
