:root{color-scheme:dark;--paper:#f6f2de;--ink:#244737;--glass:#14382bcc;--line:#e6ecd64d}*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden;background:#9cbeac;color:var(--paper);font-family:'PingFang SC','Microsoft YaHei',sans-serif;overscroll-behavior:none;-webkit-user-select:none;user-select:none}button{font:inherit;color:inherit;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent}button:focus-visible{outline:2px solid #f3d797;outline-offset:4px}button:disabled{opacity:.6;cursor:wait}button,[role=group]{-webkit-user-select:none;user-select:none}[hidden]{display:none!important}#game,#weatherfx{position:fixed;inset:0;display:block;width:100%;height:100%;touch-action:none}#game{background:linear-gradient(#8db9b5,#d2e0c9 66%,#e6e8c9)}#weatherfx{pointer-events:none;opacity:0}#vignette{position:fixed;inset:0;pointer-events:none;background:radial-gradient(ellipse,transparent 50%,#12352c24)}#hud{position:fixed;inset:0;pointer-events:none;transition:opacity .7s}#hud button{pointer-events:auto}header{display:flex;justify-content:space-between;align-items:center;padding:28px 36px;padding-top:max(24px,env(safe-area-inset-top));gap:10px}.brand{display:flex;align-items:center;gap:13px;text-shadow:0 2px 12px #183e38}.seal{display:grid;place-items:center;width:43px;height:48px;border:1px solid #ece9cb88;border-radius:18px 18px 3px 3px;font:27px 'Songti SC',SimSun,serif}.brand strong{display:block;font:26px 'Songti SC',SimSun,serif;letter-spacing:4px}.brand small{display:block;margin-top:7px;font-size:12px;letter-spacing:2px}.tools{display:flex;gap:8px}.tools button{border:1px solid var(--line);background:#1d4036bb;box-shadow:0 2px 14px #1a362f15;border-radius:30px;padding:11px 17px;font-size:14px;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}.sunIcon{font-size:20px;vertical-align:-1px}.offMark{font-size:12px;opacity:.65;padding-left:7px}#place{position:absolute;left:38px;top:39%;display:flex;flex-direction:column;gap:16px;text-shadow:0 1px 9px #224b3b}#placeName{font:20px serif;letter-spacing:4px}#placeSub{font-size:12px;letter-spacing:2px}.smallLine{width:26px;height:1px;background:#ecdfad}#hint{position:absolute;left:50%;bottom:29px;transform:translateX(-50%);background:#183f3299;border:1px solid #e3e4c52e;padding:10px 20px;border-radius:30px;font-size:14px;white-space:nowrap;backdrop-filter:blur(7px);transition:opacity .4s}#desktopHelp{position:absolute;bottom:37px;left:36px;font-size:12px;text-shadow:0 1px 9px #14382a}#desktopHelp span{font-size:11px;border:1px solid #fff6;padding:5px 7px;border-radius:4px;margin-right:7px}#desktopHelp i{font-style:normal;padding:0 7px}#homeBtn{position:absolute;bottom:30px;right:32px;font-size:12px;border:0;border-bottom:1px solid #f3eed266;background:none;padding:7px 0}#compass{position:absolute;right:38px;top:43%;text-align:center;font-size:12px;opacity:.85}#needle{font-size:32px;line-height:1.2;transform-origin:center}#interact{position:absolute;bottom:90px;left:50%;transform:translateX(-50%);border:1px solid #f4e7be99;border-radius:26px;padding:13px 24px;background:#294c3bd9;font-size:16px;box-shadow:0 8px 28px #132c2933}#welcome{position:fixed;inset:0;display:flex;align-items:center;background:linear-gradient(90deg,#123a30c9,#173c324d 45%,transparent 80%);transition:opacity .8s,visibility .8s}#welcome.hidden{opacity:0;visibility:hidden;pointer-events:none}.intro{padding:35px 0 35px 7vw;width:560px;max-width:72%;text-shadow:0 2px 18px #183d2a44}.eyebrow{font-size:12px;letter-spacing:5px;color:#e4d6b2;display:flex;align-items:center;gap:16px}.eyebrow span{height:1px;width:32px;background:#e4d6b2}.intro h1{font:normal clamp(54px,7vw,98px)/1.1 'Songti SC',SimSun,'Noto Serif CJK SC',serif;letter-spacing:10px;margin:28px 0}.verse{font:normal 31px/1.6 'Songti SC',SimSun,serif;letter-spacing:5px;margin:24px 0 18px}.introNote{font-size:14px;line-height:1.9;letter-spacing:2px;opacity:.75;margin:0 0 27px}#start{border:1px solid #fcf2cfaa;background:#f1e7cb;color:#294a39;padding:17px 27px;font-size:17px;letter-spacing:4px;min-width:212px;display:flex;align-items:center;justify-content:space-between;gap:26px;box-shadow:0 5px 25px #173a2f33}#start:hover{background:#fff6de}.buttonDot{width:5px;height:5px;background:#7d8f69;border-radius:50%}.controlNote{font-size:12px;line-height:1.9;opacity:.7;display:block;margin-top:18px}.introBottom{font-size:12px;margin-top:26px;display:flex;align-items:center;gap:18px;opacity:.65}#liteBtn{background:none;border:0;border-bottom:1px solid #ddd8bd66;padding:4px 0;font-size:12px}#statusNote,#loading{font-size:12px;color:#e7dab2;line-height:1.6;margin-top:12px;max-width:340px}.verticalVerse{position:absolute;right:5vw;top:30%;writing-mode:vertical-rl;font:16px/2.3 serif;letter-spacing:8px;text-shadow:0 1px 5px #253e2b}.edition{position:absolute;bottom:25px;right:36px;font-size:12px;letter-spacing:2px;opacity:.65}.edition span{padding:0 12px}body:not(.playing) #hud{opacity:0}#settings{position:fixed;right:30px;top:90px;width:286px;padding:22px;background:#173d30f0;border:1px solid #c8d2b766;border-radius:10px;backdrop-filter:blur(16px);box-shadow:0 15px 60px #0e2b2a44;z-index:10}.panelTop{display:flex;align-items:center;justify-content:space-between}.panelTop h2{font:normal 22px serif;letter-spacing:3px;margin:0}.panelTop button{border:0;background:none;font-size:27px;line-height:1;padding:0 0 0 10px}#settings label{display:block;font-size:14px;margin:22px 0 10px;letter-spacing:2px}.options{display:flex;gap:7px}.options button{flex:1;padding:10px 4px;border:1px solid #e6eadb44;border-radius:4px;background:#ffffff08;font-size:14px}.options button.chosen{background:#e6dfbd;color:#2b4936;border-color:#e6dfbd}#settings p{font-size:12px;line-height:1.8;opacity:.75;margin:17px 0}#fullscreen{width:100%;padding:11px;background:transparent;border:1px solid #d4d9bc66;font-size:14px;border-radius:4px}#diagnostic{display:block;font-size:12px;opacity:.5;line-height:1.7;margin-top:12px}#rest{position:fixed;bottom:6vh;left:50%;transform:translateX(-50%);text-align:center;width:350px;max-width:90vw;text-shadow:0 2px 15px #092e2b;background:linear-gradient(transparent,#163d3066);padding:30px 15px 20px;border-radius:20px}.restRule{width:35px;height:1px;background:#d6dab0;margin:auto}#rest h2{font:normal 30px serif;letter-spacing:6px;margin:23px 0 16px}#rest p{font-size:14px;line-height:1.9;letter-spacing:2px;margin:0}#restTime{font-size:12px;opacity:.7;margin:18px 0}#standUp{background:#1d493b99;border:1px solid #ece7c766;border-radius:24px;padding:11px 25px;font-size:14px;backdrop-filter:blur(7px)}body.resting #hud{opacity:0;pointer-events:none}body.resting #hud button{pointer-events:none}#dialog{display:none;position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);padding:30px;background:#183e32ed;text-align:center;border:1px solid #e5e5c866;z-index:15;width:320px;max-width:90vw}#dialog.open{display:block}#dialog h2{font:26px serif}#dialog p{line-height:2}#closeDialog{background:#ebe5cd;color:#294a38;border:0;padding:12px 24px}#error,.js-off{position:fixed;inset:0;background:#183d32ed;z-index:100;display:grid;place-items:center;padding:25px}#error>div,.js-off{max-width:480px}#error h2{font:30px serif}#error p{line-height:1.9;font-size:16px}#error button{padding:14px 18px;margin:14px 8px 0 0;border:1px solid #e4dfbc;background:#ebdfbf;color:#294b37}body.lite #rest{display:none}
@media(pointer:coarse),(max-width:760px){header{padding:17px 16px;padding-top:max(17px,env(safe-area-inset-top))}.brand{gap:9px}.seal{height:38px;width:32px;font-size:23px}.brand strong{font-size:20px;letter-spacing:2px}.brand small{font-size:10px;letter-spacing:1px;margin-top:4px}.tools{gap:5px}.tools button{padding:10px 11px;font-size:12px}.sunIcon{font-size:17px}#audioBtn{font-size:12px}.offMark{padding-left:4px;font-size:10px}#place{left:19px;top:20%;gap:11px}#placeName{font-size:17px;letter-spacing:3px}#placeSub{font-size:12px;max-width:135px;line-height:1.6}#desktopHelp{display:none}#compass{right:20px;top:24%;opacity:.6}#hint{font-size:12px;bottom:max(16px,env(safe-area-inset-bottom));padding:9px 14px;max-width:94vw;overflow:hidden;text-overflow:ellipsis}#homeBtn{bottom:191px;right:22px;font-size:12px;opacity:.7}#touchInteract{display:flex;flex-direction:column;align-items:center;justify-content:center;position:fixed;right:max(25px,env(safe-area-inset-right));bottom:max(78px,calc(50px + env(safe-area-inset-bottom)));width:72px;height:72px;border-radius:50%;background:#1b4438a3;border:1px solid #f0e7be88;backdrop-filter:blur(6px);gap:2px}#touchInteract>span{font:26px serif}#touchInteract small{font-size:10px;opacity:.75;letter-spacing:2px}#interact{bottom:203px;padding:11px 19px;font-size:14px}#settings{right:14px;top:75px;width:275px;max-height:calc(100% - 95px);overflow:auto}#welcome{background:linear-gradient(90deg,#10382ed4,#173b3266 64%,#173b321a)}.intro{padding:25px 7vw;max-width:88%;width:auto}.intro h1{font-size:57px;letter-spacing:5px;margin:25px 0}.verse{font-size:28px;letter-spacing:3px;margin:22px 0 16px}.introNote{font-size:13px;margin-bottom:24px}.eyebrow{font-size:11px;letter-spacing:4px}#start{font-size:16px;padding:16px 24px;min-width:207px}.controlNote{font-size:11px;line-height:1.9}.introBottom{font-size:11px;gap:12px;margin-top:22px}#liteBtn{font-size:11px}.verticalVerse{right:5vw;top:22%;font-size:13px;letter-spacing:5px}.edition{font-size:10px;bottom:18px;right:20px;letter-spacing:1px}#rest{bottom:8vh}#statusNote{font-size:11px;max-width:270px}}
@media(max-height:550px){.intro{padding-top:14px;padding-bottom:14px}.intro h1{font-size:48px;margin:12px 0}.verse{font-size:23px;line-height:1.4;margin:10px 0}.introNote,.controlNote{display:none}.introBottom{margin-top:14px}.verticalVerse{top:28%}header{padding:12px 20px}#touchInteract{bottom:49px}#homeBtn{bottom:146px}#hint{bottom:10px}#interact{bottom:61px}#place{top:30%}#settings{top:64px;max-height:calc(100% - 75px)}#rest{bottom:12px;padding:10px}#rest h2{font-size:24px;margin:13px 0}#restTime{margin:8px 0}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}

@media(max-width:380px){header{gap:5px;padding-left:12px;padding-right:12px}.brand small{display:none}.brand strong{font-size:18px}.brand{gap:6px}.tools button{padding:9px 10px}.tools{gap:4px}.seal{width:29px;height:34px}.intro h1{font-size:51px;letter-spacing:3px}}

#touchInteract{display:none}body:not(.playing) #touchInteract,body.resting #touchInteract{display:none!important}.restGuide{display:block;font-size:13px;letter-spacing:2px;margin-top:15px;color:#eee8c9}#rest{pointer-events:none;background:linear-gradient(transparent,#163d3066)}#rest button{pointer-events:auto}#dialog.restingView{top:auto;bottom:5vh;transform:translateX(-50%);pointer-events:none;border:0;background:linear-gradient(transparent,#153e32a8);border-radius:15px}#dialog.restingView button{pointer-events:auto}#vignette{background:radial-gradient(ellipse,transparent 67%,#12352c12)}@media(pointer:coarse),(max-width:760px){body.playing:not(.resting) #touchInteract{display:flex}#homeBtn{bottom:150px}#interact{bottom:154px}#rest{bottom:4vh}}

/* v0.3.3: compact text in the upper-left, leaving the character unobstructed. */
#rest,#dialog.restingView{left:max(16px,env(safe-area-inset-left));top:max(16px,env(safe-area-inset-top));right:auto;bottom:auto;transform:none;width:218px;max-width:calc(100vw - 32px);padding:12px 14px;text-align:left;border:1px solid #e9e5c42e;border-radius:12px;background:#173e33a6;box-shadow:0 4px 18px #102b2420;backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px);pointer-events:none}
#rest .restRule,#dialog.restingView .leaf{display:none}
#rest .restGuide,#dialog.restingView .restGuide{font-size:11px;line-height:1.4;letter-spacing:.6px;margin:0 0 7px;color:#e0e4cd}
#rest h2,#dialog.restingView h2{font-size:18px;line-height:1.35;letter-spacing:2px;margin:0 0 7px}
#rest p,#dialog.restingView p{font-size:13px;line-height:1.65;letter-spacing:.5px;margin:0;max-width:none}
#restTime{font-size:11px;line-height:1.4;margin:8px 0 9px;opacity:.7}
#standUp,#dialog.restingView button{font-size:13px;line-height:1.3;letter-spacing:1px;min-height:36px;padding:8px 16px;margin:0;border-radius:20px;pointer-events:auto}
#dialog.restingView button{margin-top:10px}
#place{top:104px;left:36px;gap:9px}#placeSub{display:none}
#hint{left:36px;top:151px;bottom:auto;transform:none;max-width:280px;white-space:normal;font-size:12px;line-height:1.6;padding:8px 12px}
@media(pointer:coarse),(max-width:760px){#rest,#dialog.restingView{width:198px;padding:11px 12px}#place{left:16px;top:88px;gap:6px}#placeName{font-size:15px}#hint{left:16px;top:128px;max-width:235px;font-size:11px;padding:7px 10px}#interact{bottom:130px}}
@media(max-height:550px){#rest,#dialog.restingView{top:max(12px,env(safe-area-inset-top));bottom:auto}#rest h2,#dialog.restingView h2{font-size:17px}#place{top:85px}#hint{top:126px}}
