:root {
  color-scheme: light;
  --theme-accent:#269bc5;
  --ui-accent:color-mix(in srgb,var(--theme-accent) 43%,#173740);
  --ui-ink:#233e46;
  --ui-muted:#4e6669;
  --ui-paper:#fffdf6;
  --ui-veil:rgba(255,253,246,.94);
  --ui-edge:#dce5e1;
  --ui-soft:#edf2ed;
  --ui-shadow:0 12px 35px #30484b16,0 2px 7px #30484b0b;
  --gutter:clamp(24px,3.25vw,54px);
  --rail:clamp(190px,16vw,232px);
  --app-width:100vw;
  --app-height:100vh;
}
:root.night {
  color-scheme:dark;
  --ui-accent:#ffd590;
  --ui-ink:#f1eee5;
  --ui-muted:#becbd6;
  --ui-paper:#1e2b42;
  --ui-veil:rgba(24,36,57,.96);
  --ui-edge:#394761;
  --ui-soft:#283850;
  --ui-shadow:0 12px 35px #080f234a,0 2px 7px #080f233d;
}
* {box-sizing:border-box}
html,body {width:100%;min-width:0;min-height:100%;margin:0;overflow:hidden;overscroll-behavior:none}
body {font-family:"Inter","Microsoft YaHei","PingFang SC","Noto Sans CJK SC","Segoe UI",sans-serif;background:#dce7e8;color:var(--ui-ink)}
button,select,input {font:inherit}
button {cursor:pointer}
button:disabled {opacity:.5;cursor:wait}
button,a,input,select {-webkit-tap-highlight-color:transparent}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible {outline:2px solid var(--ui-accent);outline-offset:3px}
[hidden] {display:none!important}
#scene {position:fixed;inset:0;width:var(--app-width);height:var(--app-height);overflow:hidden}
#scene canvas {display:block;width:100%;height:100%;touch-action:none;cursor:grab}
#scene canvas:active {cursor:grabbing}
header {position:fixed;z-index:12;top:27px;left:var(--gutter);right:var(--gutter);display:flex;align-items:center;justify-content:space-between;gap:10px;pointer-events:none}
header>* {pointer-events:auto}
.brand {display:flex;align-items:center;gap:11px;color:var(--ui-ink);text-decoration:none;font-size:15px;font-weight:800;letter-spacing:.12em;white-space:nowrap}
.brand-icon,.about-brandmark {display:grid;place-items:center;width:40px;height:40px;border-radius:12px;background:var(--ui-ink);color:var(--ui-paper);font-size:26px;line-height:1}
.brand small {display:block;margin-top:4px;color:var(--ui-muted);font-size:10px;font-weight:500;letter-spacing:.1em}
.edition {padding:8px 13px;border:1px solid color-mix(in srgb,var(--ui-ink) 18%,transparent);border-radius:999px;font-size:10px;font-weight:700;letter-spacing:.11em;white-space:nowrap}
.edition i,footer i {color:var(--ui-accent);font-style:normal;margin:0 .35em}
.header-actions {display:flex;align-items:center;gap:8px}
.about-button,.round,#restore-ui {
  height:40px;border:1px solid var(--ui-edge);border-radius:999px;
  padding:0 13px;background:var(--ui-veil);color:var(--ui-ink);font-size:12px;white-space:nowrap
}
.round {width:40px;padding:0;font-size:15px;font-weight:600}
.about-button:hover,.round:hover,#restore-ui:hover {background:var(--ui-soft);color:var(--ui-accent)}
.intro {position:fixed;left:var(--gutter);top:clamp(108px,16vh,160px);width:var(--rail);pointer-events:none}
.eyebrow {color:var(--ui-muted);font-size:9px;font-weight:750;letter-spacing:.15em}
.intro h1 {font-size:clamp(27px,3.15vw,49px);font-weight:750;letter-spacing:-.065em;line-height:1.14;margin:8px 0 8px}
.intro p {margin:0;color:var(--ui-muted);font-size:12px;line-height:1.6}
.weather {display:inline-block;margin-top:15px;padding:5px 10px;border-radius:999px;background:var(--ui-veil);border:1px solid var(--ui-edge);color:var(--ui-ink);font-size:11px;font-weight:650;white-space:nowrap}

.environment-panel,.explore,.appearance-panel,.toolbar {
  position:fixed;border:1px solid var(--ui-edge);border-radius:18px;
  background:var(--ui-veil);box-shadow:var(--ui-shadow);color:var(--ui-ink)
}
.environment-panel {left:var(--gutter);top:clamp(245px,34vh,340px);width:var(--rail);padding:14px 15px;max-height:calc(100dvh - clamp(245px,34vh,340px) - 97px);overflow:auto}
.environment-heading,.appearance-title {display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:14px;font-weight:750}
.environment-heading button,.activity-focus {border:0;background:none;color:var(--ui-accent);font-size:11px;padding:4px}
.setting-grid {margin-top:12px;display:grid;grid-template-columns:1fr 1fr;gap:8px}
.setting-grid label,.time-label,.appearance-label {display:block;color:var(--ui-muted);font-size:11px}
select {
  display:block;width:100%;min-width:0;margin-top:5px;padding:7px 4px;
  border:1px solid var(--ui-edge);border-radius:7px;background:var(--ui-soft);
  color:var(--ui-ink);font-size:11px;cursor:pointer
}
.time-label {display:flex;justify-content:space-between;margin-top:11px}
.time-label output {color:var(--ui-ink);font-weight:750;font-variant-numeric:tabular-nums}
#time-range {width:100%;margin:6px 0 4px;accent-color:var(--ui-accent);cursor:pointer}
.time-marks {display:flex;justify-content:space-between;color:var(--ui-muted);font-size:9px}
.environment-presets,.activity-links {display:flex;gap:5px;margin-top:10px}
.environment-presets button,.activity-links button,.appearance-footer button {
  flex:1;min-width:0;padding:6px 2px;border:1px solid var(--ui-edge);border-radius:7px;
  background:var(--ui-paper);color:var(--ui-ink);font-size:10px
}
.environment-presets button:hover,.activity-links button:hover,.appearance-footer button:hover {background:var(--ui-soft);color:var(--ui-accent)}
#activity-description {margin:11px 0 2px;padding-top:8px;border-top:1px solid var(--ui-edge);color:var(--ui-muted);font-size:11px;line-height:1.55}
.activity-focus {margin:4px 0 0;padding:2px 0;text-align:left;font-weight:600}
.explore {top:clamp(108px,16vh,160px);right:var(--gutter);width:var(--rail);padding:17px 15px 10px;overflow:auto;max-height:calc(100dvh - clamp(108px,16vh,160px) - 94px)}
.explore h2,.appearance-title h2 {margin:5px 0 12px;font-size:17px;line-height:1.25}
.explore>button {
  display:flex;gap:7px;align-items:center;width:100%;padding:10px 5px;border:0;
  border-top:1px solid var(--ui-edge);text-align:left;background:none;color:var(--ui-ink);font-size:12px;font-weight:650
}
.explore>button:hover,.explore>button.active,.activity-focus.active {background:var(--ui-soft);color:var(--ui-accent)}
.explore small {display:block;margin-top:4px;color:var(--ui-muted);font-size:8px;font-weight:650;letter-spacing:.07em;line-height:1.2}
.explore b {margin-left:auto;color:var(--ui-accent);font-size:12px;font-weight:500}
.activity-links {margin:6px 0 9px}
.guide-foot {padding-top:8px;border-top:1px solid var(--ui-edge);font-size:9px;color:var(--ui-muted);line-height:1.4}
.live {display:inline-block;width:6px;height:6px;margin-right:6px;border-radius:50%;background:#5c987b}
.caption {position:fixed;left:var(--gutter);bottom:32px;width:var(--rail);font-size:12px;font-weight:750;pointer-events:none}
.caption-line {display:block;width:21px;height:2px;margin-bottom:7px;background:var(--ui-accent)}
.caption small {display:block;margin-top:5px;font-size:10px;font-weight:500;line-height:1.4;color:var(--ui-muted)}

.toolbar {z-index:12;left:50%;bottom:34px;transform:translateX(-50%);display:flex;align-items:center;gap:3px;padding:6px;border-radius:999px;white-space:nowrap}
.toolbar button {display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:37px;padding:0 10px;border:0;border-radius:999px;background:none;color:var(--ui-ink);font-size:11px;font-weight:700}
.toolbar button span {color:var(--ui-accent);font-size:16px;line-height:1}
.toolbar button:hover,.toolbar button.active {background:var(--ui-soft);color:var(--ui-accent)}
.toolbar .square {width:34px;padding:0;font-size:17px}
.divider {width:1px;height:18px;margin:0 2px;background:var(--ui-edge);flex:0 0 1px}
footer {position:fixed;right:var(--gutter);bottom:28px;color:var(--ui-muted);font-size:10px;pointer-events:none}
#mobile-settings,#mobile-settings-backdrop,#restore-ui {display:none}
.ui-hidden :is(header,.intro,.caption,footer,.toolbar,.environment-panel,.explore,.appearance-panel) {display:none!important}
.ui-hidden #restore-ui {display:block;position:fixed;z-index:12;right:var(--gutter);bottom:max(24px,env(safe-area-inset-bottom));opacity:.82}

.appearance-panel {z-index:20;top:76px;right:var(--gutter);width:280px;max-height:calc(100dvh - 96px);padding:17px;overflow:auto}
.appearance-title h2 {margin:0}
#close-appearance,.dialog-close,#close-help {border:0;background:none;color:var(--ui-muted);font-size:24px;line-height:1}
.appearance-label {margin-top:14px;font-weight:650}
.appearance-label select {padding:8px 7px}
.custom-colors {display:grid;grid-template-columns:repeat(4,1fr);gap:7px;margin-top:10px;color:var(--ui-muted);text-align:center;font-size:10px}
.custom-colors input {display:block;width:100%;height:30px;margin-bottom:4px;padding:2px;border:1px solid var(--ui-edge);border-radius:7px;background:var(--ui-paper);cursor:pointer}
.appearance-footer {display:flex;justify-content:space-between;align-items:center;gap:8px;margin-top:15px;padding-top:11px;border-top:1px solid var(--ui-edge)}
.appearance-footer small {font-size:10px;color:var(--ui-muted)}
.appearance-footer button {flex:0 0 auto;padding:6px 9px}
dialog {width:min(460px,calc(100vw - 24px));max-height:calc(100dvh - 24px);padding:26px;border:1px solid var(--ui-edge);border-radius:18px;background:var(--ui-paper);color:var(--ui-ink);box-shadow:var(--ui-shadow);overflow:auto}
dialog::backdrop {background:#131e4480}
dialog h2 {font-size:22px;margin:10px 0 14px}
dialog p {font-size:13px;line-height:1.8}
dialog small,#copy-status,.about-footer,.contact-heading span {font-size:11px;color:var(--ui-muted)}
#close-help,.dialog-close {float:right}
.about-brandmark {margin-bottom:12px}
.about-intro,.about-description {margin:5px 0}
.about-features {display:flex;flex-wrap:wrap;gap:6px;margin:12px 0 18px}
.about-features span {border-radius:7px;background:var(--ui-soft);padding:5px 7px;font-size:10px}
.contact-heading span {margin-left:6px}
.contact-card {display:flex;align-items:center;gap:9px;margin-top:8px;padding:8px;border:1px solid var(--ui-edge);border-radius:9px}
.contact-card small {display:block}
.contact-icon {display:grid;place-items:center;width:32px;height:32px;border-radius:8px;background:var(--ui-soft);color:var(--ui-accent)}
.contact-card button {margin-left:auto;padding:6px;border:1px solid var(--ui-edge);border-radius:6px;background:var(--ui-soft);color:var(--ui-ink);font-size:11px}
.about-footer {display:flex;justify-content:space-between;border-top:1px solid var(--ui-edge);padding-top:10px}
#scene-status {position:fixed;z-index:30;left:50%;bottom:99px;transform:translateX(-50%);max-width:90vw;padding:9px 14px;border-radius:12px;background:var(--ui-ink);color:var(--ui-paper);font-size:12px;text-align:center;pointer-events:none}
#loading,.script-error {position:fixed;z-index:40;inset:0;display:grid;place-content:center;justify-items:center;margin:0;padding:24px;background:#eaf0e9;color:#285462;text-align:center;transition:opacity .24s ease}
#loading.loaded {opacity:0;pointer-events:none}
#loading p {max-width:320px;font-size:13px;line-height:1.7}
.loader {font-size:42px;animation:pulse .9s ease-in-out infinite alternate}
.load-error .loader {animation:none}
@keyframes pulse {to{opacity:.4;transform:translateY(-3px)}}
@media(prefers-reduced-motion:reduce) {
 * {animation-duration:.01ms!important;transition-duration:.01ms!important}
}

#language {min-width:42px;font-weight:800;letter-spacing:.04em}
.toolbar button [data-en],.toolbar button b {color:inherit;font-size:inherit;font-weight:inherit}
:root[lang="en"] .intro h1 {font-size:clamp(26px,2.7vw,43px);letter-spacing:-.045em}
:root[lang="en"] .intro p {max-width:190px}
