:root{color-scheme:dark;font-family:system-ui,-apple-system,"Noto Sans TC",sans-serif;color:#fff3dd;font-size:16px;--ink:#102e3b;--gold:#ebc782;--line:#e8cc903d}*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden;overscroll-behavior:none;background:#164f63}body{height:100dvh}[hidden]{display:none!important}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;color:inherit;cursor:pointer;touch-action:manipulation}button:focus-visible,a:focus-visible{outline:3px solid #ffdb8b;outline-offset:4px}button{border:1px solid var(--line);background:#10323edb;border-radius:8px;min-height:44px;padding:9px 14px}button:hover{border-color:var(--gold);background:#214b59}button:disabled{opacity:.6;cursor:default}a{color:#f0cd8b}kbd{font:11px system-ui;border:1px solid #e6e1c848;border-radius:3px;padding:1px 4px;color:#f4e4bd;margin-left:4px}#world{position:absolute;inset:0;touch-action:none;outline:none}#world canvas{width:100%;height:100%;display:block}#hud{position:absolute;inset:0;pointer-events:none}#hud button,#joystick{pointer-events:auto;user-select:none;-webkit-user-select:none}#hud{background:linear-gradient(#0928355c,transparent 22%,transparent 75%,#0928354d)}.chapter{position:absolute;left:24px;top:22px;width:min(340px,42vw);text-shadow:0 2px 10px #092c39;padding:0 0 12px;border-bottom:1px solid var(--line)}.chapter small,.overline{letter-spacing:.18em;font-size:12px;text-transform:uppercase;color:var(--gold)}.chapter h1{font:600 clamp(18px,2vw,26px)/1.5 serif;letter-spacing:.07em;margin:4px 0}.chapter p{font-size:14px;line-height:1.7;margin:4px 0 9px;color:#f7f0dd}.health-row{display:flex;align-items:center;gap:8px;font-size:12px;margin-top:5px}.health-row b{min-width:25px;font-size:12px}.meter{height:5px;flex:1;background:#0c233ab0;overflow:hidden;border-radius:5px}.meter i{display:block;height:100%;width:100%;background:linear-gradient(90deg,#6db9b6,#efdfa8);transition:width .2s}.top-actions{position:absolute;right:24px;top:22px;display:flex;gap:7px}.top-actions button{font-size:13px;padding:8px 12px;background:#133b47c9}.map-wrap{position:absolute;right:24px;top:84px;width:138px;text-align:center}.map-wrap canvas{width:138px;height:138px;display:block;border-radius:50%;border:1px solid #eacb8699;box-shadow:0 6px 30px #071e3455}.map-wrap small{display:block;font-size:11px;margin-top:8px;text-shadow:0 2px 8px #000}#boss-bar{position:absolute;top:24px;left:50%;transform:translateX(-50%);width:min(310px,30vw);text-align:center;text-shadow:0 2px 5px #001b28}#boss-bar small{font-size:11px;letter-spacing:.18em;color:#eacbad}#boss-bar strong{display:block;font:25px/1.5 serif}#boss-bar strong span{font:12px system-ui;margin-left:8px}#boss-bar .meter{height:7px;margin-top:4px}#boss-health{background:linear-gradient(90deg,#5585aa,#e1bf89)}#target{position:absolute;top:34%;left:50%;transform:translateX(-50%);text-align:center;text-shadow:0 2px 6px #071e29}#target b{font-size:14px;font-weight:500}#target span{display:block;color:#fbd493;font-size:13px;line-height:2}#notice{position:absolute;left:50%;bottom:155px;transform:translateX(-50%);width:max-content;max-width:65%;padding:10px 18px;background:#123844df;border:1px solid var(--line);border-radius:7px;text-align:center;font-size:14px;line-height:1.6;opacity:0;transition:opacity .25s}#notice.visible{opacity:1}.navigation{position:absolute;bottom:26px;left:26px;display:flex;gap:8px;align-items:center}.navigation button{font-size:13px}.desktop-hint{font-size:12px;line-height:1.6;max-width:160px;color:#e3e7d6}.skills{position:absolute;right:26px;bottom:25px;display:flex;align-items:flex-end;gap:9px}.skills button{position:relative;overflow:hidden;touch-action:none;border-radius:50%;background:#12394be8;border-color:#ddc28a80;box-shadow:0 5px 25px #08263966}.skills b,.skills small{display:block}.skills b{font-family:serif;font-size:19px;letter-spacing:.1em;position:relative;z-index:1}.skills small{font-size:11px;margin-top:3px;position:relative;z-index:1}.small-skill{width:72px;height:72px;padding:9px 0}.skills .cast{height:100px;width:100px;background:radial-gradient(circle at 40% 20%,#f3dba2,#bf904d);color:#173744;border:2px solid #fff0bf;box-shadow:0 0 30px #ead5a23d}.cast b{font-size:26px}.cast kbd{color:#274652;border-color:#35525f55}.cooldown{position:absolute;bottom:0;left:0;right:0;pointer-events:none;background:#091d3799;height:0;transition:height .1s}#joystick{display:none;position:absolute;bottom:34px;left:30px;width:118px;height:118px;border:1px solid #e0d29d77;border-radius:50%;background:#1b56626b;touch-action:none;box-shadow:inset 0 0 30px #a9d1c425}#stick{position:absolute;left:35px;top:35px;width:46px;height:46px;background:#f1dda48f;border:1px solid #fff0ca;border-radius:50%;box-shadow:0 3px 15px #0c233833}#joystick small{position:absolute;bottom:-22px;left:0;right:0;text-align:center;font-size:12px;color:#e5e8d8}.menu{position:absolute;inset:0;display:flex;align-items:center;background:linear-gradient(90deg,#0c334bdc, #0c334b6b 33%,transparent 60%);pointer-events:none}.menu-content{width:min(430px,43%);margin-left:7%;pointer-events:auto}.overline{font-size:13px;font-weight:500;line-height:1.6;margin:0 0 18px}.menu h1{font:500 clamp(52px,7vw,104px)/1.13 "Noto Serif TC",serif;letter-spacing:.11em;margin:0 0 24px;text-shadow:0 5px 40px #102c4777}.menu h1 em{font-style:normal;color:#f4d7a1}.menu-content>p:not(.overline):not(.adaptation){font-size:16px;line-height:1.9;margin:20px 0 28px;color:#f8eed9}.primary{display:flex;align-items:center;justify-content:space-between;gap:30px;min-height:54px;padding:15px 25px;background:#e4c38c;color:#153d49;border-color:#f4dca8;border-radius:5px;font-weight:600;letter-spacing:.08em}.primary:hover{background:#f7d9a6;color:#103a45}.primary span{font-size:22px}.menu .primary{min-width:220px}.menu-options{display:flex;gap:20px;margin-top:18px}.menu-options button{background:transparent;border:0;padding:7px 0;color:#f3e7d0;border-bottom:1px solid #edd5a44d;border-radius:0;font-size:14px}.adaptation{font-size:11px;line-height:1.8;color:#c7d5d1;margin-top:27px}.reference{position:absolute;bottom:30px;right:28px;text-align:center}.reference img{width:85px;height:113px;object-fit:cover;border:1px solid #d2bb8499;border-radius:4px;box-shadow:0 5px 20px #0c263e66}.reference span{display:block;font-size:11px;letter-spacing:.12em;margin-top:6px}.dialog,.book{position:absolute;inset:0;z-index:5;background:#092637b5;display:flex;align-items:center;justify-content:center;padding:22px;backdrop-filter:blur(10px)}.dialog>article{width:560px;max-width:100%;max-height:100%;overflow:auto;border:1px solid #d8bd7b80;background:linear-gradient(140deg,#1c4854,#12313f);border-radius:10px;padding:40px;box-shadow:0 20px 100px #0004}.dialog h2{font:500 34px/1.5 serif;margin:8px 0 18px}.dialog p{font-size:16px;line-height:1.9;color:#ece5d4}.dialog .primary{width:100%;margin-top:24px}.dialog .secondary{width:100%;margin-top:12px}#chapter-result{font-size:14px;color:#f3cd89;line-height:1.8}.book>article{width:700px;max-width:100%;max-height:100%;overflow:auto;border:1px solid #cbb88566;background:#143645;border-radius:12px;padding:26px}.book header{display:flex;justify-content:space-between;align-items:center;gap:15px}.book h2{font:500 27px/1.5 serif;margin:5px 0 15px}.book header button{font-size:20px}.book-tabs{display:flex;gap:7px;border-bottom:1px solid var(--line);padding-bottom:14px}.book-tabs button{flex:1;min-width:0;font-size:14px}.book-tabs button[aria-pressed="true"]{color:#183744;background:#e8c689}.book-content{display:flex;gap:24px;padding:22px 0;border-bottom:1px solid var(--line)}.book-content img{width:150px;height:200px;object-fit:cover;border-radius:5px}.book-content h3{font:500 23px/1.5 serif;margin:0 0 10px}.book p{font-size:14px;line-height:1.9;color:#e1e4d7}.book-content a{font-size:14px}.book footer{padding-top:20px}.book footer small{font-size:12px;color:#c4d4d1}.inspect-panel{position:absolute;inset:0;pointer-events:none}.inspect-panel>div{position:absolute;top:15%;left:5%;max-width:31%;text-shadow:0 2px 10px #102a3b}.inspect-panel h2{font:500 30px/1.6 serif}.inspect-panel p{font-size:14px;line-height:1.9}.inspect-panel button{pointer-events:auto;margin-top:25px}.inspect-panel>img{position:absolute;right:30px;bottom:25px;width:145px;border:1px solid #d3ba8466;border-radius:6px}#error{position:absolute;inset:25% 10%;z-index:20;padding:35px;background:#143746;border:1px solid #eacb88;color:#fff;font-size:18px;line-height:1.8}
@media(pointer:coarse){#joystick{display:block}.navigation{left:24px;bottom:186px;gap:6px}.navigation button{font-size:12px;padding:8px 10px}.desktop-hint,kbd{display:none}.skills{right:24px;bottom:33px}.skills .small-skill{width:66px;height:66px}.skills .cast{width:93px;height:93px}}
@media(max-width:700px){.chapter{left:15px;top:15px;width:calc(100% - 135px)}.chapter h1{font-size:19px}.chapter p{font-size:12px;line-height:1.6}.chapter small{font-size:11px}.top-actions{right:12px;top:13px;display:grid;grid-template-columns:1fr 1fr;gap:4px;max-width:117px}.top-actions button{padding:5px 7px;font-size:11px;min-height:36px}.top-actions #sound{grid-column:1/-1}.map-wrap{right:15px;top:105px;width:96px}.map-wrap canvas{width:96px;height:96px}.map-wrap small{font-size:10px}.skills{right:13px;bottom:24px;display:grid;grid-template-columns:58px 78px;gap:8px}.skills .small-skill{width:58px;height:58px;padding:8px 0}.skills .cast{grid-column:2;grid-row:1/3;width:78px;height:78px;align-self:end}.skills #boost{grid-row:3;grid-column:2}.skills #ward{grid-row:2;grid-column:1}.skills #sense{grid-row:1;grid-column:1}.skills b{font-size:17px}.skills small{font-size:10px}.skills .cast b{font-size:24px}#joystick{left:20px;bottom:45px;width:104px;height:104px}#stick{left:28px;top:28px}.navigation{bottom:178px;left:14px;flex-direction:column;align-items:stretch;gap:5px}.navigation button{font-size:12px;min-height:38px;padding:5px 8px}#notice{bottom:250px;max-width:90%;font-size:13px;width:max-content}#target{top:36%;max-width:70%}#boss-bar{top:220px;width:220px;max-width:80%;left:50%}.menu{align-items:flex-start;background:linear-gradient(180deg,#14374988,transparent 40%,#0c304ddf 72%)}.menu-content{margin:0;position:absolute;left:24px;right:24px;bottom:23px;width:auto}.menu h1{font-size:54px;line-height:1.1;margin:0 0 10px}.menu h1 br{display:none}.menu-content .overline{font-size:11px;margin-bottom:10px}.menu-content>p:not(.overline):not(.adaptation){font-size:14px;line-height:1.7;margin:8px 0 17px}.menu .primary{width:100%;min-height:50px}.menu-options{margin-top:9px;gap:25px}.menu-options button{font-size:13px;min-height:35px}.adaptation{font-size:10px;margin:10px 0 0}.reference{top:18px;right:15px;bottom:auto}.reference img{width:57px;height:76px}.reference span{font-size:10px}.book,.dialog{padding:12px}.book>article{padding:20px}.book-content{gap:15px}.book-content img{width:95px;height:127px}.book-content h3{font-size:20px}.dialog>article{padding:26px}.dialog h2{font-size:28px}.inspect-panel>div{top:auto;bottom:24px;left:22px;max-width:75%}.inspect-panel h2{font-size:24px;margin:5px 0}.inspect-panel p{font-size:12px;margin:6px 0}.inspect-panel .overline{margin-bottom:0}.inspect-panel>img{width:75px;bottom:auto;top:20px;right:15px}.inspect-panel button{margin-top:12px}}
@media(max-height:500px) and (min-width:600px){.chapter{top:12px;left:18px;width:280px}.chapter h1{font-size:18px}.chapter p{font-size:12px;line-height:1.5}.map-wrap{top:65px;width:90px;right:18px}.map-wrap canvas{width:90px;height:90px}.map-wrap small{display:none}.top-actions{right:18px;top:10px}.top-actions button{min-height:36px}.menu-content{margin-left:5%;width:38%}.menu .overline{font-size:11px;margin-bottom:9px}.menu h1{font-size:48px;line-height:1.08;margin-bottom:10px}.menu h1 br{display:none}.menu-content>p:not(.overline):not(.adaptation){font-size:13px;line-height:1.6;margin:10px 0}.menu .primary{min-height:44px;padding:10px 18px}.menu-options{margin-top:7px}.adaptation{font-size:10px;margin-top:8px}.reference img{width:65px;height:86px}.reference{bottom:18px}.skills{right:18px;bottom:18px;display:flex;gap:7px}.skills .small-skill{width:61px;height:61px}.skills .cast{width:81px;height:81px}#joystick{bottom:23px;left:23px;width:92px;height:92px}#stick{left:22px;top:22px}.navigation{bottom:23px;left:138px;display:flex;flex-direction:column;align-items:stretch}.navigation button{min-height:34px;font-size:11px;padding:5px 8px}#notice{bottom:115px;font-size:12px;padding:8px 14px}#target{top:39%}#boss-bar{top:15px;left:54%;width:210px}.inspect-panel>div{top:30px;left:25px;max-width:35%}.inspect-panel h2{font-size:24px}.inspect-panel p{font-size:12px}.inspect-panel>img{width:100px}.inspect-panel button{margin-top:10px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}
@media(max-width:700px) and (min-height:501px){.chapter p{font-size:14px}}
