:root{color-scheme:dark;--ivory:#fff9e9;--gold:#f0ce89;--ink:#13292a;--muted:#c4d1c6;--gutter:clamp(20px,5vw,88px);font-family:"PingFang SC","Microsoft YaHei",system-ui,sans-serif;color:var(--ivory);background:var(--ink)}
*{box-sizing:border-box}html,body,#screen{width:100%;height:100%;margin:0;overflow:hidden}#screen{position:relative;isolation:isolate;background:#27434b}button,select{font:inherit}button{color:inherit;cursor:pointer}button:focus-visible,select:focus-visible,a:focus-visible{outline:3px solid #f8d28d;outline-offset:5px}button{-webkit-tap-highlight-color:transparent}button:hover{filter:brightness(1.1)}button:disabled{opacity:.6;cursor:wait}[hidden],.symbols{display:none!important}
#heroArt,#view,#homeShade,#hudShade,#touchLook,#flash{position:absolute;inset:0;width:100%;height:100%}#heroArt{background:#26474e url("assets/cover.webp") center 51%/cover no-repeat}#view{display:block}body.home #view{visibility:hidden}body.playing #heroArt,body.playing #intro,body.playing #homeShade,body.playing #heroFoot{display:none}#homeShade{background:linear-gradient(90deg,rgba(5,23,27,.48),transparent 66%),linear-gradient(0deg,rgba(3,20,24,.63),transparent 48%,transparent 80%,rgba(8,23,27,.32));pointer-events:none}#hudShade{display:none;pointer-events:none;background:linear-gradient(180deg,rgba(4,18,21,.45),transparent 24%,transparent 82%,rgba(5,18,21,.29))}.playing #hudShade{display:block}#touchLook{touch-action:none;cursor:grab}#touchLook:active{cursor:grabbing}
header{position:absolute;top:max(22px,env(safe-area-inset-top));left:var(--gutter);right:var(--gutter);display:flex;align-items:center;justify-content:space-between;z-index:3;pointer-events:none}header nav,header button{pointer-events:auto}header nav{display:flex;align-items:center;gap:9px}.brand{display:flex;align-items:center;gap:11px;text-shadow:0 1px 9px #182c30}.brand>svg{width:38px;height:38px;color:#f5dfa9}.brand b,.brand small{display:block}.brand b{font-family:"Songti SC","STSong","SimSun",serif;font-size:19px;letter-spacing:3px;font-weight:600;line-height:1.2}.brand small{font-family:Georgia,serif;font-size:10px;letter-spacing:2.2px;margin-top:4px}svg{stroke:currentColor;fill:none;stroke-width:1.55;stroke-linecap:round;stroke-linejoin:round;width:21px;height:21px;flex:none}.navBtn,.iconBtn{display:inline-flex;align-items:center;justify-content:center;border:1px solid #f7f4df61;background:#112c2e66;backdrop-filter:blur(8px);border-radius:24px;height:44px}.navBtn{gap:9px;padding:0 15px;font-size:14px}.iconBtn{width:44px}
#intro{position:absolute;left:var(--gutter);bottom:clamp(116px,20vh,220px);text-shadow:0 2px 16px #11282f80}.place{display:flex;align-items:center;gap:13px;font-size:15px;letter-spacing:4px;margin:0 0 13px;color:#f6dfac}.place span{width:30px;height:1px;background:currentColor}h1,#task h2,#panel h2{font-family:"Songti SC","STSong","SimSun","Noto Serif CJK SC",serif}h1{display:flex;align-items:flex-start;gap:12px;font-weight:500;font-size:clamp(66px,8.3vw,135px);line-height:1.15;letter-spacing:.045em;margin:0}.seal{font-family:"Songti SC","SimSun",serif;font-size:13px;line-height:1.12;writing-mode:vertical-rl;letter-spacing:2px;border:1px solid #f4dcc5b0;color:#ffe5bb;background:#974f3d;border-radius:3px;padding:4px 2px;margin-top:10px;text-shadow:none}.lead{font-size:clamp(17px,1.5vw,23px);letter-spacing:.12em;margin:17px 0 29px;color:#fcf5e6}.pill{padding:0 24px;min-height:48px;display:inline-flex;justify-content:center;align-items:center;gap:10px;background:#f8e9c6;color:#223331;border:1px solid #fff5da;border-radius:30px;box-shadow:0 4px 20px #17272636;font-weight:650;font-size:16px;letter-spacing:.08em}.pill:active,.navBtn:active,.iconBtn:active{transform:translateY(1px)}#heroFoot{position:absolute;left:var(--gutter);right:var(--gutter);bottom:max(26px,env(safe-area-inset-bottom));border-top:1px solid #efe5c94d;padding-top:14px;display:flex;justify-content:space-between;color:#e5e2d3;font-size:13px;letter-spacing:2px}#heroFoot i{display:inline-block;width:7px;height:7px;border:1px solid var(--gold);transform:rotate(45deg);margin:0 7px 1px 2px}#heroFoot em{font-style:normal;opacity:.5}
#task{position:absolute;top:95px;left:var(--gutter);max-width:min(335px,65vw);padding:13px 16px;border-left:2px solid var(--gold);background:linear-gradient(90deg,#13292bdc,#13292b88 78%,transparent);pointer-events:none}#moment{display:flex;align-items:center;gap:6px;font-size:13px;color:var(--gold);letter-spacing:2px}#moment svg{width:16px;height:16px}#task h2{font-size:24px;letter-spacing:.07em;font-weight:580;margin:4px 0}#task p{font-size:14px;line-height:1.55;color:#f5f2e6;margin:0}#sketch{position:absolute;top:96px;right:var(--gutter);color:#4c5243;background:#f6e8cbe8;border:1px solid #f8f0d6ae;border-radius:3px;box-shadow:0 4px 18px #0c202c40;width:144px;padding:4px 8px 8px;transform:rotate(1.6deg);text-align:center;pointer-events:none}#sketch svg{width:100%;height:48px}#sketch span{font:13px "Songti SC","SimSun",serif;letter-spacing:.15em}#crosshair{position:absolute;left:50%;top:50%;width:7px;height:7px;border:1px solid #fff9;border-radius:50%;transform:translate(-50%,-50%);pointer-events:none}#commands{position:absolute;bottom:max(26px,calc(env(safe-area-inset-bottom) + 12px));right:var(--gutter);display:flex;flex-direction:column;align-items:flex-end;gap:8px}#keyHint{font-size:13px;color:#fff8e7;letter-spacing:.045em;background:#162d30b8;border-radius:5px;padding:4px 8px}#keyHint:empty{display:none}#joy{position:absolute;bottom:max(25px,calc(env(safe-area-inset-bottom) + 12px));left:var(--gutter);width:95px;height:95px;border-radius:50%;border:1px solid #fef9df75;background:#152b3052;touch-action:none;align-items:center;justify-content:center;display:none}#joy div{pointer-events:none;width:38px;height:38px;border-radius:50%;background:#eee6cb91;border:1px solid #fff6dcab}
#toast{position:absolute;left:50%;bottom:max(100px,20vh);transform:translateX(-50%);width:max-content;max-width:86%;text-align:center;border-radius:18px;background:#12282ce8;color:#fff9e8;padding:9px 17px;font-size:14px;opacity:0;transition:opacity .22s;pointer-events:none}#toast.show{opacity:1}#flash{background:#fff9e6;opacity:0;pointer-events:none}#flash.pop{animation:blink .36s ease-out}@keyframes blink{from{opacity:.75}to{opacity:0}}
dialog{color:var(--ivory);background:#152c2f;border:1px solid #62746a;border-radius:16px;padding:22px;width:min(480px,calc(100vw - 28px));max-height:82vh;box-shadow:0 20px 100px #041113a8}dialog::backdrop{background:#0b1b1e9c;backdrop-filter:blur(4px)}.panelHead{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}.panelHead h2{margin:0;font-size:27px;letter-spacing:.08em}.panelHead .iconBtn{flex:none}.choice{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid #68807965;padding:12px 0}.choice select,.choice button,.smallBtn,.photo a{padding:8px 12px;border-radius:9px;background:#284145;border:1px solid #698078;color:var(--ivory);font-size:14px;text-decoration:none}.notes{line-height:1.7;color:#c6d1c8;font-size:14px}.photo{margin:0 0 16px}.photo img{width:100%;max-height:45vh;object-fit:contain;border-radius:5px;background:#0c1e21}.photo figcaption{display:flex;align-items:center;justify-content:space-between;padding:5px;font-size:14px}.empty{color:#d8e2d9;line-height:1.65}.playing #touchLook{z-index:0}
@media(pointer:coarse),(max-width:700px){#joy:not([hidden]){display:flex}#keyHint{display:none}header{top:max(14px,env(safe-area-inset-top))}.brand>svg{width:31px;height:31px}.brand{gap:7px}.brand b{font-size:16px}.navBtn,.iconBtn{height:42px}.iconBtn{width:42px}.navBtn{padding:0 11px}#intro{bottom:18vh}.lead{font-size:16px}.place{font-size:14px}#task{top:74px;padding:8px 12px;max-width:63vw}#task h2{font-size:20px}#task p{font-size:13px}#sketch{top:78px;width:86px;padding:2px 4px 5px}#sketch svg{height:34px}#sketch span{font-size:11px}.pill{padding:0 19px}#heroArt{background-position:58% center}#heroFoot{font-size:12px;letter-spacing:1px}}
@media(max-height:500px){#intro{bottom:16vh}h1{font-size:52px}.place{margin:0 0 4px}.lead{margin:4px 0 10px}#heroFoot{bottom:10px;padding-top:5px}#task{top:66px}#sketch{top:66px}#joy{width:75px;height:75px}.brand small{display:none}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important}}
#timeSwitch,.home #guideBtn,.playing .brand{display:none}
.playing #timeSwitch{display:inline-flex;align-items:center;gap:3px;padding:4px;border-radius:30px;border:1px solid #f9eed47d;background:#11292ddd;box-shadow:0 3px 18px #05171a3b;pointer-events:auto}
#timeSwitch button{background:transparent;color:#fbf3dc;display:flex;align-items:center;gap:7px;min-height:42px;padding:0 18px;font-size:16px;font-weight:600;border:0;border-radius:24px;white-space:nowrap}
#timeSwitch button[aria-pressed=true]{background:#f2dca8;color:#263d3c}
#timeSwitch #nightBtn[aria-pressed=true]{background:#c7dde9;color:#223449}
#timeSwitch svg{width:20px;height:20px}
.actionRow{display:flex;gap:10px;align-items:center}
#action{border-radius:28px;height:48px;background:#183337dc;padding:0 20px;letter-spacing:.04em}
#shutter{min-width:115px}.playing #touchLook{cursor:crosshair}.playing #touchLook:active{cursor:crosshair}
#guide{position:absolute;z-index:2;top:94px;left:var(--gutter);width:min(334px,calc(100vw - 2 * var(--gutter)));padding:16px 19px;background:#142e30f3;color:#f6efdf;border:1px solid #b2a78383;border-radius:13px;box-shadow:0 8px 29px #00121545}
#guide .guideHead,#guide .guideFoot{display:flex;align-items:center;justify-content:space-between}.guideHead>span{font-size:13px;color:#f5d793;letter-spacing:.08em}#guidePage{margin-left:5px;letter-spacing:.12em;color:#d2cfb7}
#guide h2{font:600 22px "Songti SC","SimSun",serif;margin:9px 0 5px;letter-spacing:.05em}
#guide p{margin:0 0 11px;font-size:14px;line-height:1.6;color:#e5e6d8}
#guide button{border:none;min-height:31px;cursor:pointer;padding:2px 6px;border-radius:5px;color:#e3e6d7;background:transparent;font-size:14px}
#guide #guideNext{background:#ead8ad;color:#203433;font-weight:600;padding:5px 15px;border-radius:15px}#guideBack[disabled]{visibility:hidden}
.withGuide #task,.withGuide #sketch{visibility:hidden}
.playing #albumBtn{display:none}
#settingsBtn kbd,.menuKey{font:600 13px/1.2 system-ui,sans-serif;background:#e8dfbb19;border:1px solid #dcdec377;border-radius:5px;padding:3px 5px;color:#f5e6b9}
#crosshair{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:24px;height:24px;pointer-events:none;background:none;border:none;box-shadow:none;z-index:1}
#crosshair svg{width:100%;height:100%;color:#fff8ea;stroke-width:1.7;filter:drop-shadow(0 0 1px #073037) drop-shadow(0 1px 1px #172c2f)}
.playing #touchLook,.playing #touchLook:active{cursor:none}
.withGuide #crosshair,.menuOpen #crosshair{visibility:hidden}
.inLook:not(.withGuide):not(.menuOpen) #screen,.inLook:not(.withGuide):not(.menuOpen) #screen button{cursor:none}
@media(pointer:fine){.inLook:not(.withGuide):not(.menuOpen) #commands,.inLook:not(.withGuide):not(.menuOpen) #commands button,.inLook:not(.withGuide):not(.menuOpen) header,.inLook:not(.withGuide):not(.menuOpen) header button,.inLook:not(.withGuide):not(.menuOpen) header nav,.inLook:not(.withGuide):not(.menuOpen) #timeSwitch{pointer-events:none}}
#routeBtn{border-radius:28px;height:48px;background:#183337dc;padding:0 18px;letter-spacing:.04em}
#boundaryHint{position:absolute;z-index:2;top:calc(50% + 30px);left:50%;transform:translateX(-50%);pointer-events:none;display:flex;gap:7px;align-items:center;color:#eafffc;background:#173d49d9;border:1px solid #9fd6d7a8;border-radius:20px;padding:5px 12px;font-size:14px;white-space:nowrap}
#boundaryDir{display:inline-block;color:#9ceded;font-size:19px;line-height:1}
.menuOpen #boundaryHint{visibility:hidden}
.menuActions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:12px 0}.menuActions button{display:flex;align-items:center;justify-content:space-between;text-align:left;min-height:43px}
.photoPicker{display:flex;align-items:center;justify-content:space-between;margin:0 0 10px;gap:6px}
.photoPicker button:disabled{opacity:.35}.albumNav{display:flex;align-items:center;gap:10px}
@media(max-width:700px){.playing header nav #settingsBtn{width:auto;gap:5px;padding:0 10px}.playing header nav #settingsBtn span{display:inline}#routeBtn{height:41px;padding:0 14px}}
@media(max-width:700px){.playing .navBtn span{display:none}.playing #albumBtn{width:40px;padding:0}.playing header nav{gap:5px}.playing header nav button{width:40px;height:40px}.playing #timeSwitch button{padding:0 10px;gap:5px;min-height:37px}#guide{top:73px;width:min(285px,calc(100vw - 2 * var(--gutter)));padding:10px 14px}#guide h2{font-size:19px;margin:5px 0}#guide p{margin-bottom:6px}#shutter{min-width:89px}.actionRow{align-items:flex-end;flex-direction:column;gap:6px}#action{height:42px;padding:0 14px}}
@media(max-height:500px){.playing header{top:10px}.playing #timeSwitch button{min-height:33px}#guide{top:64px;padding:8px 14px;width:270px}#guide h2{font-size:18px;margin:3px 0}#guide p{margin:0 0 4px;font-size:13px}#guide button{min-height:27px}.actionRow{flex-direction:row}}
#leftHud{position:absolute;z-index:2;left:var(--gutter);top:max(87px,calc(env(safe-area-inset-top) + 70px));width:min(346px,calc(100vw - 2 * var(--gutter)));max-height:calc(100% - 100px);display:grid;gap:8px;pointer-events:none}
.home #leftHud,.menuOpen #leftHud,.withGuide #controls,.withGuide #task,.withGuide #commands,.withGuide #joy{display:none}
#leftHud #guide,#leftHud #task{position:static;width:100%;max-width:none;margin:0}
#controls,#leftHud #guide{background:#142d30ed;border:1px solid #e2c68288;border-left:3px solid #f3d192;border-radius:10px;box-shadow:0 4px 18px #07131744}
#controls{padding:10px 13px;color:#fff8e6}#controls h2{font-size:15px;letter-spacing:.12em;margin:0 0 8px;color:#f4d79c}
.controlKeys{display:grid;grid-template-columns:repeat(4,auto);gap:7px 8px}.controlKeys span{white-space:nowrap;font-size:13px}
.controlKeys kbd,.desktopKey{font:600 12px/1.3 system-ui,sans-serif;border:1px solid #f1d99f70;background:#f1d99f20;border-radius:4px;padding:1px 4px;color:#ffdf98}.pill .desktopKey,#guideNext .desktopKey{color:#263e3d;border-color:#53685b80}
#controls #dockCall{font-weight:700;font-size:15px;color:#ffe1a5;margin:8px 0 0;padding-top:6px;border-top:1px solid #c9b47e50}
#leftHud #guide{pointer-events:auto;overflow:auto;overscroll-behavior:contain;max-height:calc(100dvh - 102px)}
.withGuide #touchLook,.withGuide #touchLook:active,.menuOpen #touchLook,.playing:not(.inLook) #touchLook{cursor:default}.withGuide #guide button,.menuOpen dialog button{cursor:pointer}
.withGuide #touchLook{pointer-events:none}.withGuide #timeSwitch{pointer-events:none}
.touchLegend,#jumpBtn{display:none}
@media(pointer:coarse){.controlKeys,.desktopKey{display:none}.touchLegend{display:block;margin:0;font-size:14px;line-height:1.5}#jumpBtn:not([hidden]){display:inline-flex}}
@media(max-width:700px){#leftHud{top:max(68px,calc(env(safe-area-inset-top) + 62px));gap:5px;width:min(281px,calc(100vw - 2 * var(--gutter)))}#controls{padding:7px 11px}#controls h2{margin-bottom:3px}.controlKeys{grid-template-columns:repeat(3,auto)}#leftHud #task{max-width:calc(100vw - 2 * var(--gutter) - 80px)}}
@media(max-height:500px){#leftHud{top:61px;gap:4px}#leftHud #guide{max-height:calc(100dvh - 74px)}}

.skyIcon{display:inline-block;flex:none;width:21px;height:21px;border-radius:50%;background-image:var(--celestial-map,url("assets/celestial.webp"));background-size:200% 100%}
.sunIcon{background-position:left;box-shadow:0 0 6px #efab5980}
.moonIcon{background-position:right;box-shadow:0 0 5px #a7cbeb85}
.actionKey{display:inline-grid;place-items:center;min-width:20px;height:17px;padding:0 3px;font:650 11px/1 system-ui,sans-serif;letter-spacing:0;color:#f9e5b5;background:#f5deb51c;border:1px solid #ead4a887;border-radius:4px}
#timeSwitch>.actionKey{margin:0 5px 0 2px}
#controls h2{margin:0}
#foldControls{pointer-events:auto;display:flex;width:100%;align-items:center;justify-content:space-between;gap:18px;min-height:28px;padding:0;background:transparent;border:0;color:inherit;font:inherit;letter-spacing:inherit;text-align:left}
.foldAffordance{display:inline-flex;align-items:center;gap:7px;font:500 12px system-ui,sans-serif;letter-spacing:0;color:#e3d6b8}
#foldControls[aria-expanded="true"] .foldAffordance{min-height:28px;padding:3px 7px 3px 11px;border:1px solid #ffe5a9;border-radius:6px;background:#f2cf88;color:#233532;font-size:14px;font-weight:700}
#foldControls[aria-expanded="true"] .actionKey{background:#fff3d1;color:#334236;border-color:#806d45}
#controlBody{margin-top:7px}
#controls.resting [data-travel]{display:none}
#controls.folded{width:max-content}
.playing #commands{top:max(175px,32%);right:calc(env(safe-area-inset-right,0px) + 8px);bottom:auto;align-items:stretch;width:146px}
#commands .actionRow{display:grid;gap:6px;align-items:stretch}
#commands .contextAction{position:relative;display:flex;align-items:center;justify-content:flex-start;gap:7px;width:100%;min-width:0;height:43px;padding:0 32px 0 13px;border:1px solid #d5dfcf74;border-radius:9px;background:#163234e8;box-shadow:0 2px 9px #0a1b252d;color:#fff7e8;font-size:14px;font-weight:550;letter-spacing:.025em;white-space:nowrap;text-align:left}
#commands .contextAction svg{width:18px;height:18px}
#commands .contextAction .actionKey{position:absolute;right:6px;top:5px}
#commands #action{color:#fff0c7;border-color:#eec887;background:#253d36f0}
#commands #seatBtn{position:absolute;top:0;right:calc(100% + 8px);width:106px}
#commands #jumpBtn{display:none}
.playing.withGuide #commands,.playing.menuOpen #commands{display:none}
@media(pointer:coarse){
  #commands #jumpBtn:not([hidden]){display:flex}
  #foldControls{min-height:36px}
}
@media(max-width:700px){
  .playing #commands{width:121px;top:min(max(250px,34%),calc(100% - 207px - env(safe-area-inset-bottom,0px)))}
  #commands .contextAction{font-size:13px;padding-left:9px;gap:4px;height:44px}
  #commands #seatBtn{width:98px}
  #controls{max-width:calc(100vw - 120px)}
  #controls.folded{max-width:100%}
  #timeSwitch .skyIcon{width:17px;height:17px}
  #timeSwitch>.actionKey{margin:0 3px 0 0;min-width:16px}
}
@media(max-height:500px) and (orientation:landscape){
  .playing #commands{top:min(max(134px,34%),calc(100% - 158px - env(safe-area-inset-bottom,0px)));width:136px}
  #commands .actionRow{gap:3px}
  #commands .contextAction{height:35px}
  #sketch{top:58px}
}
