:root{color-scheme:dark;font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;color:#fff;background:#2d4050;--edge:clamp(18px,3.6vw,60px);--panel:rgba(29,35,40,.80);--soft:#dbe4e8;--mono:"SFMono-Regular",Consolas,monospace}
*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden}button,input{font:inherit}button,summary{color:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:manipulation}button{border:0}button:focus-visible,input:focus-visible,summary:focus-visible{outline:2px solid #c0e7fd;outline-offset:2px}button:active{transform:translateY(1px)}.symbols,[hidden]{display:none!important}
svg{width:18px;height:18px;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;fill:none;flex:none}
#scene{position:fixed;inset:0;width:100%;height:100%;display:block;touch-action:none;cursor:grab}#scene:active{cursor:grabbing}
.shade,.frame{position:fixed;inset:0;pointer-events:none}
.shade{background:linear-gradient(180deg,rgba(15,26,35,.16),transparent 15%,transparent 84%,rgba(15,26,35,.16))}
.frame{display:flex;flex-direction:column;padding:calc(24px + env(safe-area-inset-top,0px)) max(var(--edge),env(safe-area-inset-right,0px)) calc(22px + env(safe-area-inset-bottom,0px)) max(var(--edge),env(safe-area-inset-left,0px))}
.mast{position:relative;z-index:3;display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.identity,.camera-controls,.desk{background:var(--panel);backdrop-filter:blur(18px) saturate(1.08);-webkit-backdrop-filter:blur(18px) saturate(1.08);box-shadow:inset 0 0 0 1px #ffffff30,0 3px 16px #11223016}

/* A single plaque keeps the seal, site name, snow gauge and its actions together. */
.identity{position:relative;flex:none;border-radius:17px;width:max-content;max-width:100%;padding:13px 14px 4px;--panel:rgba(27,36,42,.80)}
.school-lockup{display:flex;align-items:center;gap:12px;padding-bottom:9px;white-space:nowrap}
.univ-mark{width:42px;height:42px;object-fit:contain;flex:none}
.work-copy h1{font-family:"Songti SC","STSong","Noto Serif CJK SC",serif;font-size:26px;font-weight:600;letter-spacing:.09em;line-height:1.14;margin:0;color:#fffaf2}
.work-copy p{margin:5px 0 0;font-size:10.5px;line-height:1.25;color:#dfe7e9;letter-spacing:.033em}
.identity-tools{display:flex;align-items:center;gap:4px;border-top:1px solid #ffffff29;min-height:33px}
.readings{display:flex;align-items:center;gap:5px;color:#e5edf0;font-size:11px;line-height:1;white-space:nowrap}
.readings svg{width:14px;height:14px;color:#dbe9f0}
.snow-meter{display:inline-flex;width:26px;height:3px;background:#ffffff3c;border-radius:2px;overflow:hidden}
.snow-meter i{background:#c5e5f4;width:72%;border-radius:inherit}
#snow-value{font:550 11px var(--mono);min-width:3.55ch;text-align:right;font-variant-numeric:tabular-nums}
#clear-cover,.work-help summary{pointer-events:auto;display:inline-flex;align-items:center;justify-content:center;gap:4px;background:transparent;color:#e4edf0;border-radius:7px;min-height:29px}
#clear-cover{font-size:10.5px;padding:0 5px;margin-left:auto}
#clear-cover svg{display:none}
.work-help summary{list-style:none;width:29px}.work-help summary::-webkit-details-marker,#photo-reference summary::-webkit-details-marker{display:none}
.work-help summary svg{width:16px;height:16px}
#clear-cover:hover,.work-help summary:hover,.work-help[open] summary{background:#ffffff17;color:#fff}
.work-help p,#photo-reference figure{pointer-events:auto;position:absolute;margin:0;left:0;top:calc(100% + 5px);border-radius:11px;background:#19262ff5;box-shadow:inset 0 0 0 1px #ffffff32,0 6px 20px #07141e2b}
.work-help p{padding:10px 13px;width:max-content;max-width:80vw;white-space:nowrap;color:#f2f4f2;font-size:11px;line-height:1.4}
.hint-separator{opacity:.58;padding:0 .3em}.touch-hint{display:none}
#photo-reference{border-top:1px solid #ffffff27;color:#e7ecec;font-size:11px}
#photo-reference summary{pointer-events:auto;display:flex;align-items:center;gap:7px;min-height:30px;width:max-content;list-style:none}
#photo-reference summary::before{content:"";width:5px;height:5px;border:solid currentColor;border-width:0 1px 1px 0;transform:rotate(-45deg)}
#photo-reference[open] summary::before{transform:rotate(45deg)}
#photo-reference figure{padding:6px;width:min(266px,calc(100vw - 2*var(--edge)));max-height:49vh;overflow:auto;overscroll-behavior:contain}
#photo-reference img{display:block;width:100%;height:auto;border-radius:7px}
#photo-reference figcaption{padding:5px 3px 2px;font-size:10px;line-height:1.5;color:#e0e8ef}
#photo-reference a{color:#e8f6ff}

.camera-controls,.view-list,.weather-options,.clock-header,.desk,.reset-button{display:flex;align-items:center}
.camera-controls,.desk{pointer-events:auto}
.camera-controls{padding:3px;border-radius:15px;flex:none}
.camera-controls button{background:transparent;height:38px;border-radius:11px;justify-content:center}
.camera-controls button:hover,.weather-options button:hover{background:#ffffff17}
.scene-tab{font-size:12px;letter-spacing:.03em;padding:0 12px;color:#d8dfe4;white-space:nowrap}
.scene-tab:hover{color:white}
.camera-controls .scene-tab[aria-pressed=true]{background:#ece9e2;color:#24313b}
.reset-button{position:relative;width:39px}
.reset-button::before,#clock-toggle::before{content:"";position:absolute;left:0;top:11px;height:16px;width:1px;background:#ffffff30}
.lower{margin-top:auto;display:flex;justify-content:flex-end;align-items:flex-end}
.desk{border-radius:19px;padding:14px 18px;gap:18px;color:white}
.weather-field,.clock-field{display:flex;flex-direction:column;gap:7px}
.field-label{font-size:11px;letter-spacing:.06em;color:#dce5ea;font-weight:520}
.weather-heading,.clock-header{display:flex;align-items:center;justify-content:space-between;min-height:16px}
.weather-heading button{background:none;margin:0;padding:4px 6px;color:#edf5fb;font-size:11px;line-height:1;border-radius:5px;letter-spacing:.03em}
.weather-heading button:hover{background:#ffffff24}.weather-heading button span{margin-left:3px;opacity:.75}
.weather-options{gap:2px}
.weather-options button{height:36px;background:transparent;display:flex;align-items:center;justify-content:center;gap:5px;min-width:61px;padding:0 8px;border-radius:9px;font-size:12px;font-weight:560}
.weather-options button[aria-pressed=true]{background:#e6eff4;color:#1c3244;box-shadow:0 1px 4px #0d172436}
.weather-options svg{height:16px;width:16px}
.clock-field{border-left:1px solid #ffffff38;padding-left:18px;min-width:145px;width:clamp(145px,15vw,240px)}
.clock-header{gap:14px}#time-value{font:600 13px var(--mono);font-variant-numeric:tabular-nums}
#time{appearance:none;-webkit-appearance:none;border:0;cursor:pointer;display:block;width:100%;min-width:0;height:36px;margin:0;background:transparent;touch-action:pan-y;--level:65.263%}
#time::-webkit-slider-runnable-track{height:3px;border-radius:3px;background:linear-gradient(to right,#e5f1f8 var(--level),#ffffff40 var(--level))}
#time::-moz-range-track{height:3px;border-radius:3px;background:#ffffff40}#time::-moz-range-progress{height:3px;border-radius:3px;background:#e5f1f8}
#time::-webkit-slider-thumb{-webkit-appearance:none;width:15px;height:15px;background:#f5faff;border-radius:50%;box-shadow:0 1px 4px #0a1e2b66;margin-top:-6px}#time::-moz-range-thumb{width:15px;height:15px;border:none;background:#f5faff;border-radius:50%}
.mobile-view,#clock-toggle{display:none}
.load-state{position:absolute;left:50%;top:44%;transform:translate(-50%,-50%);display:flex;align-items:center;justify-content:center;gap:9px;border:1px solid #ffffff34;background:#23333fea;color:#f5f8fa;padding:12px 16px;border-radius:12px;font-size:13px;line-height:1.5;max-width:min(26em,88vw);width:max-content}
.load-dot{width:8px;height:8px;flex:none;background:#dceaf2;border-radius:50%;animation:pulse 1.4s ease-in-out infinite}.load-state.error .load-dot{display:none}@keyframes pulse{50%{opacity:.3}}
@media(prefers-reduced-motion:reduce){.load-dot{animation:none}}

@media(max-width:740px),(max-width:1050px) and (max-height:500px){
  .frame{--edge:clamp(10px,3.1vw,20px);padding:calc(9px + env(safe-area-inset-top,0px)) max(var(--edge),env(safe-area-inset-right,0px)) calc(7px + env(safe-area-inset-bottom,0px)) max(var(--edge),env(safe-area-inset-left,0px))}
  .mast{gap:6px}
  .identity{border-radius:14px;padding:8px 8px 0}
  .school-lockup{gap:7px;padding:0 2px 6px}
  .univ-mark{width:28px;height:28px}
  .work-copy h1{font-size:19px;line-height:1.1;letter-spacing:.07em}
  .work-copy p{font-size:9px;line-height:1.2;margin-top:3px;letter-spacing:.005em}
  .identity-tools{gap:0;min-height:44px}
  .readings{font-size:10px;gap:4px}
  .readings .snow-meter{display:none}
  .readings svg{width:12px;height:12px}
  #snow-value{font-size:10px}
  #clear-cover,.work-help summary{height:44px;min-height:44px;min-width:44px;padding:0}
  #clear-cover span{display:none}#clear-cover svg{display:block;width:17px;height:17px}
  .work-help p{font-size:11px}.touch-hint{display:inline}.wheel-hint{display:none}
  #photo-reference summary{min-height:44px}
  .camera-controls{position:relative;padding:2px;border-radius:14px}
  .camera-controls button,.camera-controls .reset-button{height:44px;min-width:44px}
  .camera-controls .mobile-view{display:flex;gap:5px;align-items:center;padding:0 8px;font-size:12px}
  .mobile-view svg{width:17px;height:17px}.mobile-view .chev{width:10px;height:10px}
  .mobile-view[aria-expanded=true] .chev{transform:rotate(180deg)}.camera-controls .reset-button:before{top:14px}
  .view-list{display:none;position:absolute;right:0;top:calc(100% + 5px);padding:4px;background:rgba(29,36,40,.96);box-shadow:inset 0 0 0 1px #ffffff2e,0 7px 22px #03112044;border-radius:14px;grid-template-columns:repeat(2,1fr);width:190px}
  .mobile-view[aria-expanded=true]+.view-list{display:grid}
  .camera-controls .scene-tab{height:44px;padding:0 6px;font-size:12px;font-weight:550}
  .desk{width:min(390px,100%);display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:0 3px;padding:4px;border-radius:15px;align-items:center}
  .desk .weather-field{display:contents}
  .weather-options{grid-column:1;grid-row:1;gap:0;min-width:0}
  .weather-options button{min-width:44px;height:44px;flex:1;padding:0 3px;font-size:12px;gap:4px}
  .weather-options svg{width:15px;height:15px}
  .weather-heading{grid-column:2;grid-row:1;height:44px}.weather-heading .field-label{display:none}
  #intensity,#clock-toggle{height:44px;min-width:44px;font-size:12px;font-weight:560;color:#f8f9f9;background:transparent;padding:0 7px}
  #intensity{border-radius:9px}#intensity span{margin-left:1px;opacity:.85}
  #clock-toggle{grid-column:3;grid-row:1;display:flex;align-items:center;justify-content:center;gap:4px;border-radius:9px;position:relative}
  #clock-toggle::before{left:-2px;top:13px;height:18px}
  #clock-toggle svg{width:16px;height:16px}#mobile-time{font:570 11px var(--mono);font-variant-numeric:tabular-nums}
  #clock-toggle[aria-expanded=true]{background:#ffffff17}
  .desk .clock-field{grid-column:1/-1;grid-row:2;display:none;border:0;border-top:1px solid #ffffff2b;margin:3px 4px 0;padding:3px 6px 0;width:auto;min-width:0;max-width:none}
  #clock-toggle[aria-expanded=true]+.clock-field{display:flex;flex-direction:row;align-items:center;gap:11px}
  .clock-header{gap:5px;flex:none}.clock-header #time-value{display:none}
  #time{height:44px}#time::-webkit-slider-thumb{width:20px;height:20px;margin-top:-8.5px}#time::-moz-range-thumb{width:20px;height:20px}
}
@media(max-width:390px){
  .view-list{width:clamp(117px,calc(100vw - 197px),178px);grid-template-columns:1fr}
}
@media(max-width:360px){
  .mobile-view #view-name{display:none}.camera-controls .mobile-view{padding:0 7px}
  .work-copy p{font-size:8.5px}
}
@media(max-width:1050px) and (max-height:500px) and (min-aspect-ratio:1/1){
  .frame{padding-top:max(5px,env(safe-area-inset-top,0px));padding-bottom:max(5px,env(safe-area-inset-bottom,0px))}
  .desk{width:min(350px,100%)}
  #photo-reference figure{max-height:calc(100dvh - 161px);width:208px}
}
@media(pointer:coarse){.touch-hint{display:inline}.wheel-hint{display:none}}
@media(pointer:coarse) and (min-width:741px) and (min-height:501px){
  .camera-controls button,.weather-options button,#intensity,#clear-cover,#time,.work-help summary,#photo-reference summary{min-height:44px}
  .camera-controls .reset-button,.work-help summary{min-width:44px}.weather-heading{height:44px}.weather-field{gap:2px}
}

.load-state{display:grid;grid-template-columns:1fr;gap:7px}.load-state .load-dot{display:none}
#scene-progress{border:0;width:100%;height:3px;border-radius:4px;overflow:hidden;appearance:none;background:#7d8b92;color:#eacb91}
#scene-progress::-webkit-progress-bar{background:#657078}#scene-progress::-webkit-progress-value{background:#ead7ac}#scene-progress::-moz-progress-bar{background:#ead7ac}
