:root{color-scheme:dark;--paper:#f1f0e9;--gold:#dfd3b4;--sans:"PingFang SC","Microsoft YaHei","Hiragino Sans GB",Arial,sans-serif;--serif:"Songti SC","STSong","Noto Serif CJK SC","Noto Serif SC","SimSun",Georgia,serif;--edge:clamp(22px,3.7vw,68px)}
*{box-sizing:border-box}
html,body{background:#20282b;margin:0;width:100%;height:100%;overflow:hidden}
body{font:14px/1.5 var(--sans);color:var(--paper);-webkit-font-smoothing:antialiased}
button{font:inherit;color:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent}
button{border:0;background:none;padding:0}
button:focus-visible,a:focus-visible,canvas:focus-visible{outline:2px solid #ffe6a3;outline-offset:4px}
button:hover{color:#fff}
[hidden]{display:none!important}
#experience{isolation:isolate;position:relative;width:100%;height:100%;height:100dvh;min-height:250px;overflow:hidden}
#scene,#flat,#shade{position:absolute;inset:0;width:100%;height:100%}
#scene{display:block;cursor:grab;touch-action:none;outline-offset:-5px}
#scene:active{cursor:grabbing}
#flat{background:#6591bd;overflow:hidden;touch-action:none;cursor:grab}
#flat-plate{position:absolute;inset:-9%;background-position:center;background-size:cover;will-change:transform}

#shade{pointer-events:none;background:linear-gradient(180deg,rgba(8,19,22,.48),rgba(8,17,20,0) 16%,transparent 53%,rgba(9,18,20,.10) 66%,rgba(9,17,19,.60) 91%,rgba(8,17,19,.66));transition:opacity .45s}
.topbar{position:absolute;left:var(--edge);right:var(--edge);top:max(23px,env(safe-area-inset-top));height:40px;display:flex;justify-content:space-between;align-items:center;pointer-events:none}
.topbar>*{pointer-events:auto}
.tools{display:flex;align-items:center;gap:8px}
.tools button,.show-ui{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-width:36px;height:36px;border-radius:32px;background:rgba(23,33,34,.48);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);border:1px solid #ffffff30}
.tools button:hover,.show-ui:hover{background:#263739b8}
[data-icon]{display:inline-flex;align-items:center;justify-content:center;flex:none}
[data-icon] svg{width:17px;height:17px;display:block;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.foot{position:absolute;left:var(--edge);right:var(--edge);bottom:calc(max(16px,env(safe-area-inset-bottom)) + 32px);display:flex;align-items:center;justify-content:space-between;gap:22px;pointer-events:none}
.foot>*{pointer-events:auto}
.movement,.palette,.segment,.underbar,.underbar button,.speed{display:flex;align-items:center}
.movement{gap:18px;transition:opacity .28s ease}
.world-action{display:inline-flex;align-items:center;gap:10px;min-height:46px;padding:0 6px 0 0;border-radius:24px;color:#fffdf5;white-space:nowrap;font-weight:500;font-size:14px;letter-spacing:.07em;text-shadow:0 1px 5px #131a20,0 0 11px #1b262f85}
.action-glyph{display:grid;place-items:center;width:29px;height:29px;border-radius:50%;border:1px solid #f4f2e6a8;background:#212b2f66;box-shadow:0 1px 6px #14202744;backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px);transition:background .17s,transform .17s}
.action-glyph kbd{font:500 13px/1.1 'SFMono-Regular',Consolas,monospace;letter-spacing:0;color:#fffdf8;text-shadow:none}
.action-glyph [data-icon]{display:none}.secondary-action{font-size:13px;color:#f2f0e7}.secondary-action .action-glyph{width:25px;height:25px}
.world-action:hover .action-glyph,.world-action:focus-visible .action-glyph{background:#283438b8;border-color:#fffff0}
.world-action:active .action-glyph{transform:scale(.91)}
body.walking .movement{opacity:0;pointer-events:none}
@media(hover:none),(pointer:coarse){.world-action{gap:8px;min-width:80px;min-height:48px}.action-glyph{width:33px;height:33px}.action-glyph kbd{display:none}.action-glyph [data-icon]{display:flex}.action-glyph svg{width:17px;height:17px}.secondary-action .action-glyph{width:29px;height:29px}}
.palette{padding:5px 6px;min-height:44px;border-radius:9px;color:#f1f0e9;background:#243030bc;backdrop-filter:blur(15px);-webkit-backdrop-filter:blur(15px);border:1px solid #f4f1e43e;box-shadow:0 2px 13px #0002}
.segment{gap:2px}
.segment button,.speed{height:32px;min-width:32px;border-radius:5px;display:inline-flex;justify-content:center;align-items:center;gap:6px;font-size:13px;font-weight:500}
.segment button[aria-pressed=true]{background:#ebeae1;color:#273335}
.segment button:not([aria-pressed=true]):hover,.speed:hover{background:#ffffff20}
.daynight button,.speed{padding:0 9px}
.speed [data-icon] svg{width:19px;height:19px}
.speed[aria-pressed=true]{color:#f9e3a7}
.divider{width:1px;height:17px;margin:0 8px;background:#ffffff42}
.underbar{position:absolute;bottom:max(9px,env(safe-area-inset-bottom));left:var(--edge);right:var(--edge);height:25px;justify-content:space-between;color:#f6f3e8df;text-shadow:0 1px 5px #0008;font-size:11px;letter-spacing:.055em;pointer-events:none}
.show-ui{position:absolute;right:var(--edge);top:max(22px,env(safe-area-inset-top));padding:0 13px;z-index:2}
.arrival{position:fixed;inset:0;z-index:10;display:grid;place-items:center;overflow:auto;background:#000;color:#c2c2c2;padding:max(16px,env(safe-area-inset-top)) max(24px,env(safe-area-inset-right)) max(16px,env(safe-area-inset-bottom)) max(24px,env(safe-area-inset-left))}
.arrival-content{width:min(510px,100%,100vh);width:min(510px,100%,100svh)}
.arrival-print{position:relative;isolation:isolate;aspect-ratio:3/2}
.arrival-print i{position:absolute;inset:0;background-image:url("./assets/season-print.webp");background-repeat:no-repeat;background-size:200% 200%;background-position:var(--season-position);opacity:0;animation:season-print 6.4s linear var(--season-delay) infinite}
.arrival-print i:first-child{opacity:1;animation:none}
.arrival-print i:last-child{animation-name:winter-print}
.arrival-print i:nth-child(1){--season-position:0% 0%}
.arrival-print i:nth-child(2){--season-position:100% 0%;--season-delay:-5.25s}
.arrival-print i:nth-child(3){--season-position:0% 100%;--season-delay:-3.65s}
.arrival-print i:nth-child(4){--season-position:100% 100%;--season-delay:-2.05s}
@keyframes season-print{0%,33%,100%{opacity:0}7%,32%{opacity:1}}
@keyframes winter-print{0%,32%,100%{opacity:0}7%,25%{opacity:1}}
.arrival-status{display:grid;justify-items:center;gap:10px;margin-top:clamp(15px,3vh,24px);text-align:center}
.arrival-status p{font-size:13px;letter-spacing:.075em;margin:0}
.arrival progress{display:block;appearance:none;-webkit-appearance:none;width:min(132px,72%);height:2px;border:0;background:#383838;color:#c2c2c2;overflow:hidden}
.arrival progress::-webkit-progress-bar{background:transparent}.arrival progress::-webkit-progress-value{background:#c2c2c2;transition:width .15s}
.arrival progress::-moz-progress-bar{background:#c2c2c2}
.arrival progress:not([value]){background:linear-gradient(90deg,#383838,#b6b6b6,#383838) 0/200% 100%;animation:arrival-light 1.6s linear infinite}
@keyframes arrival-light{to{background-position:200% 0}}
#loading-retry{min-height:40px;padding:7px 15px;border:1px solid #606060;border-radius:3px;color:#eee}
#loading-retry:hover{background:#232323}
.arrival button:focus-visible{outline:2px solid #ddd;outline-offset:3px}
@media(prefers-reduced-motion:reduce){
  .arrival-print i,.arrival progress:not([value]){animation:none!important}
}
@media(scripting:none){.arrival{display:none}}
body[data-place=seated] #shade,body[data-place=balcony] #shade{opacity:.6;background:linear-gradient(180deg,#11202a85,transparent 13%,transparent 73%,#121c2399)}
.topbar,.foot,.underbar{transition:opacity .25s,visibility 0s}
body.quiet .topbar,body.quiet .foot,body.quiet .underbar{visibility:hidden;opacity:0;transition:opacity .25s,visibility 0s .25s}
body.quiet .topbar *,body.quiet .foot *,body.quiet .underbar *{pointer-events:none}
body.walking .topbar,body.walking .foot,body.walking .underbar{opacity:0}
body.quiet #shade{opacity:0}
.sr-only{position:absolute;height:1px;width:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
noscript{position:fixed;top:40%;left:15%;right:15%;background:#273532;padding:16px;text-align:center;color:white}noscript a{color:inherit}
@media(max-width:715px){
 :root{--edge:20px}.topbar{top:max(15px,env(safe-area-inset-top))}
 .foot{align-items:flex-start;flex-direction:column;gap:13px;bottom:calc(max(10px,env(safe-area-inset-bottom)) + 24px)}
 .movement{gap:17px}
 .palette{align-self:stretch;justify-content:space-around;gap:0;min-height:43px}.divider{margin:0 3px}
 .daynight button{padding:0 7px}.speed{padding:0 6px}
 .underbar{bottom:max(3px,env(safe-area-inset-bottom));height:23px}
}
@media(max-width:395px){:root{--edge:15px}.mode-label{display:none}.palette .segment button{min-width:32px}}
@media(max-height:500px) and (min-aspect-ratio:13/10){
 :root{--edge:20px}.topbar{top:10px}.foot{bottom:31px;flex-direction:row;align-items:center}
 .underbar{bottom:3px}.palette{align-self:auto}.mode-label{display:none}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition-duration:.01ms!important;animation-duration:.01ms!important}}

body.quiet.resting .show-ui{opacity:0}
body.quiet.resting .show-ui:focus-visible{opacity:1}
.show-ui{transition:opacity .3s}
.speed:disabled{opacity:.62;cursor:default}
.fieldlog{padding:5px 0 0}

.identity{display:flex;align-items:center;gap:clamp(11px,1.6vw,25px)}
.system-clock{display:flex;align-items:center;gap:6px;color:#f3f1e8;font-size:11px;letter-spacing:.035em;padding:5px 0;text-shadow:0 1px 6px #091420a3;white-space:nowrap}
.system-clock time{font-family:'SFMono-Regular',Consolas,monospace;font-variant-numeric:tabular-nums;font-size:11px;letter-spacing:.012em}
.clock-dot{width:5px;height:5px;border-radius:50%;background:#b3d5bd;box-shadow:0 0 0 2px #223b332e}
.system-clock[data-live=false] .clock-dot{background:#e9c58f}.reset-clock{display:none}
.system-clock[data-live=false] .reset-clock{display:inline-block;border-bottom:1px solid #f2eedc9c;margin-left:4px;font-size:10px}
@media(max-width:650px){.identity{align-items:flex-start;flex-direction:column;gap:1px}.system-clock{padding:0;gap:5px;font-size:10px}.system-clock time{font-size:10px}.topbar{align-items:flex-start}.tools{padding-top:1px}}


.weather-control{position:relative}.weather-panel{position:absolute;bottom:calc(100% + 13px);right:-6px;width:176px;padding:6px;border:1px solid #f3f4ef44;background:#233032f2;border-radius:9px;box-shadow:0 4px 24px #0a171a55;backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}
.weather-choices{display:grid;grid-template-columns:1fr 1fr;gap:3px}.weather-choices button{height:33px;font-size:13px;border-radius:5px;text-align:center}
.weather-choices [data-weather=auto]{grid-column:1/-1}
.weather-choices [aria-pressed=true]{background:#ebeae1;color:#283335}.weather-choices button:not([aria-pressed=true]):hover{background:#ffffff1f}
.weather-panel>.speed{width:100%;justify-content:flex-start;border-top:1px solid #e4e7da40;border-radius:0;margin-top:5px;padding:8px 8px 3px;height:35px}.weather-panel>.speed[aria-pressed=true]{color:#f4dda6}

.show-ui{width:36px;height:36px;padding:0}
body.quiet.resting .show-ui{opacity:0;pointer-events:none}
body.quiet.resting .show-ui:focus-visible{opacity:1;pointer-events:auto}
body.quiet #shade{opacity:0!important}
.underbar{justify-content:flex-end}.underbar #static-notice{margin-right:auto}
.identity{align-items:center}.topbar{align-items:center}
@media(max-width:650px){.topbar{align-items:flex-start}.system-clock{min-height:34px}}

body.landscape-player{
 --player-left:max(18px,env(safe-area-inset-left));
 --player-right:max(18px,env(safe-area-inset-right));
 --player-top:max(8px,env(safe-area-inset-top));
 --player-bottom:max(4px,env(safe-area-inset-bottom));
}
.landscape-player .topbar,.landscape-player .foot,.landscape-player .underbar{left:var(--player-left);right:var(--player-right)}
.landscape-player .topbar,.landscape-player .show-ui{top:var(--player-top)}
.landscape-player .show-ui{right:var(--player-right)}
.landscape-player .foot{bottom:calc(28px + var(--player-bottom));flex-direction:row;align-items:center;gap:10px}
.landscape-player .palette{align-self:center;justify-content:center}
.landscape-player .underbar{bottom:var(--player-bottom)}
.landscape-player .mode-label{display:none}
@media(orientation:portrait){
 body.landscape-player{
  --player-left:max(18px,env(safe-area-inset-top));
  --player-right:max(18px,env(safe-area-inset-bottom));
  --player-top:max(8px,env(safe-area-inset-right));
  --player-bottom:max(4px,env(safe-area-inset-left));
 }
 .landscape-player #experience{
  position:fixed;left:100%;top:0;width:100vh;width:100dvh;height:100vw;min-height:0;
  transform-origin:top left;transform:rotate(90deg);
 }
}

.terrain-credit{display:block;color:inherit;font-size:11px;margin:9px 0;text-underline-offset:3px}
#experience[aria-busy="true"]{visibility:hidden}

body.quiet #show-ui {top:auto;left:auto;right:max(16px,env(safe-area-inset-right));bottom:max(14px,env(safe-area-inset-bottom));border-radius:4px}
@media (pointer:coarse) {
  body.quiet.resting #show-ui {opacity:.56;pointer-events:auto;width:44px;height:44px}
}

.scene-hud {
  --edge:max(16px,3vw,env(safe-area-inset-right));
  --foot:max(14px,2.7vh,env(safe-area-inset-bottom));
  position:absolute!important; inset:0!important; width:auto!important; height:auto!important;
  padding:0!important; margin:0!important; display:block!important; pointer-events:none;
  color:#fffaf1; z-index:3; text-shadow:0 1px 4px #101817,0 1px 10px #111c;
  container:scenehud / size; font-family:"Avenir Next","PingFang SC",system-ui,sans-serif;
}
.scene-hud::before {content:"";position:absolute;inset:auto 0 0;height:122px;background:linear-gradient(transparent,rgba(10,17,19,.60))}
.scene-hud .hud-caption {position:absolute;left:max(var(--edge),env(safe-area-inset-left));bottom:var(--foot);text-align:left}
.scene-hud .hud-caption h1 {font:500 clamp(17px,1.65vw,25px)/1.15 Baskerville,Georgia,serif;color:inherit;margin:0}
.scene-hud .hud-caption p {font:500 clamp(9px,.8vw,12px)/1.4 "Avenir Next",system-ui,sans-serif;color:#efece3;letter-spacing:.055em;margin:4px 0 0}
.scene-controls {position:absolute;right:var(--edge);bottom:var(--foot);display:flex;align-items:end;gap:clamp(10px,1.4vw,22px);max-width:calc(100% - 2 * var(--edge))}
.scene-hud .action-bar {position:relative;z-index:1;display:flex;align-items:end;justify-content:flex-end;gap:clamp(3px,.65vw,11px);pointer-events:auto}
.scene-hud .action-bar button {position:relative;appearance:none;display:grid;place-content:center;justify-items:center;gap:4px;min-width:46px;min-height:49px;margin:0;padding:3px 4px 7px;border:0;border-radius:0;box-shadow:none;background:transparent;color:#fffaf1;text-shadow:inherit;cursor:pointer;font:550 11px/1.1 "Avenir Next","PingFang SC",system-ui,sans-serif;white-space:nowrap;letter-spacing:.035em;touch-action:manipulation}
.scene-hud .action-bar svg {display:block;width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 1px 2px #171b19)}
.scene-hud .action-bar button::after {content:"";position:absolute;bottom:0;left:50%;height:2px;width:13px;background:currentColor;transform:translateX(-50%) scaleX(0);transition:transform .15s}
.scene-hud .action-bar button:is(:hover,:focus-visible,:active,[aria-pressed=true]) {color:#ffe1a2}
.scene-hud .action-bar button:is(:hover,:focus-visible,:active,[aria-pressed=true])::after {transform:translateX(-50%) scaleX(1)}
.scene-hud .action-bar button:focus-visible {outline:1px dashed #ffe1a2;outline-offset:1px}
.scene-hud .action-bar button:disabled {opacity:.48}
.scene-hud [hidden]{display:none!important}
.quiet .scene-hud{visibility:hidden;opacity:0}
.terrain-credit{position:absolute;right:var(--edge-x,20px);top:0;font:10px/1.5 system-ui;color:inherit;pointer-events:auto;text-decoration:none}
@container scenehud (max-width:760px){
  .scene-controls{right:max(8px,env(safe-area-inset-right));max-width:calc(100% - 16px);flex-direction:column;align-items:flex-end;gap:5px}
  .scene-hud .action-bar{gap:1px}
  .scene-hud .action-bar button{min-width:44px;padding-inline:1px;min-height:44px;font-size:10px}
  .scene-hud .hud-caption{bottom:calc(var(--foot) + 54px);max-width:calc(100% - 166px)}
}
@media (prefers-reduced-motion:reduce){.scene-hud .action-bar button::after{transition:none}}
.scene-hud .direction-pad {position:relative;display:grid;align-self:flex-end;grid-template-columns:repeat(3,24px);gap:2px;pointer-events:auto}
.direction-pad button {appearance:none;box-sizing:border-box;min-width:0;width:24px;height:22px;padding:0;margin:0;border:0;border-bottom:1px solid #ffffff60;border-radius:2px;background:#131a1c38;color:#f2eee7;text-shadow:0 1px 3px #171a1b;font:500 11px/1 system-ui;cursor:pointer;touch-action:none;user-select:none;-webkit-user-select:none}
.direction-pad [data-direction=up]{grid-column:2}.direction-pad [data-direction=left]{grid-column:1}
.direction-pad .arrow{display:none}.direction-pad button.pressed,.direction-pad button:active{color:#ffda91;background:#453d2ed9;border-color:#ffda91}
.direction-pad button:focus-visible{outline:1px solid #ffda91;outline-offset:1px}
@media(pointer:coarse){.scene-hud .direction-pad{grid-template-columns:repeat(3,44px);gap:2px}.direction-pad button{width:44px;height:44px;font-size:19px}.direction-pad .arrow{display:inline}.direction-pad .letter{display:none}}
.choice-slot {position:relative}
.choice-slot > button::before {content:"";position:absolute;right:3px;top:6px;width:4px;height:4px;border-top:1px solid currentColor;border-left:1px solid currentColor;transform:rotate(45deg);opacity:.8}
.choice-list {position:absolute;bottom:100%;left:50%;transform:translateX(-50%);display:grid;min-width:64px;padding:4px;background:rgba(17,24,25,.9);backdrop-filter:blur(8px);border-radius:3px}
.choice-slot:first-child .choice-list {left:0;transform:none}
.choice-slot:last-child .choice-list {left:auto;right:0;transform:none}
.scene-hud .choice-list button {min-width:56px;min-height:34px;padding:5px 7px;font-size:12px}
.scene-hud .choice-list button[aria-pressed=true]{background:#ffe1a216}
.scene-hud .choice-list button::after {bottom:2px}
.scene-hud .action-bar .seat-prompt {color:#f7e6be}
.seat-prompt kbd {position:absolute;top:1px;right:0;font:600 8px/1 system-ui;opacity:.8}
@media(pointer:coarse){
  .seat-prompt kbd{display:none}
  .scene-hud .choice-list button{min-height:44px}
  .direction-pad button{background:transparent;border:0;font-size:16px}
  .direction-pad button::after{content:"";position:absolute;inset:8px;border-bottom:1px solid #fff5;background:#17202747;border-radius:2px;z-index:-1}
  .direction-pad button{position:relative;isolation:isolate}
}
@container scenehud (max-width:760px){
  .choice-list{max-height:54cqh;overflow-y:auto;overscroll-behavior:contain}
}
@container scenehud (max-width:335px){
  .scene-controls{right:max(2px,env(safe-area-inset-right));max-width:calc(100% - 4px)}
  .scene-hud .action-bar{gap:0}
}
