
html,body {height:auto;overflow:visible}
.workspace,.preview,.preview .screen {display:block;height:auto;max-height:none;overflow:visible}
.workspace {width:min(100%, 540px);max-width:540px;margin:auto;padding:0}
.preview .screen {width:100%;aspect-ratio:auto;border:0;border-radius:0}
.screen article.slide {position:relative;inset:auto;display:flex;flex-direction:column;min-height:100svh;height:auto;overflow:clip;padding-bottom:28px}
.screen .sound-control {position:fixed;top:max(12px,env(safe-area-inset-top));right:max(18px,calc((100vw - 540px)/2 + 18px));z-index:12}
.screen .cover .foot {display:flex;align-items:center;justify-content:space-between}
.scroll-cue {display:inline-flex;align-items:center;min-height:38px;color:#fff0d4;text-decoration:none;font:12px/1.4 Georgia,serif;letter-spacing:.08em}
@media (prefers-reduced-motion:no-preference){html{scroll-behavior:smooth}}

.screen .merged-dashboard .metric {
  background: linear-gradient(125deg, #464b32, #303622);
  border-color: #777c5c;
  box-shadow: inset 0 1px 0 #f0e6bd19, 0 4px 15px #10150c30;
}
.screen .merged-dashboard .metric .label,
.screen .merged-dashboard .metric .unit { color: #f1ecd8; }
.screen .merged-dashboard .metric .metric-emblem { color: #ddd8ae; }

.cover-flurries { display:none; }
@media (prefers-reduced-motion:no-preference) {
  .cover-flurries { display:block; position:absolute; inset:0; z-index:1; overflow:hidden; pointer-events:none; }
  .cover-flurries i {
    position:absolute; top:-34px; left:var(--x); height:calc(100% + 68px); width:var(--size);
    animation:cover-snowfall var(--time) linear var(--delay) infinite paused;
  }
  .cover-flurries i::before {
    content:""; display:block; width:100%; height:var(--size); opacity:.62;
    background:center / contain no-repeat url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2040%2040%22%20fill%3D%22none%22%20stroke%3D%22%23fff9ed%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20transform%3D%22rotate%280%2020%2020%29%22%20d%3D%22M20%2020V3m0%207-4-4m4%204%204-4m-4%209-5-5m5%205%205-5%22%2F%3E%3Cpath%20transform%3D%22rotate%2860%2020%2020%29%22%20d%3D%22M20%2020V3m0%207-4-4m4%204%204-4m-4%209-5-5m5%205%205-5%22%2F%3E%3Cpath%20transform%3D%22rotate%28120%2020%2020%29%22%20d%3D%22M20%2020V3m0%207-4-4m4%204%204-4m-4%209-5-5m5%205%205-5%22%2F%3E%3Cpath%20transform%3D%22rotate%28180%2020%2020%29%22%20d%3D%22M20%2020V3m0%207-4-4m4%204%204-4m-4%209-5-5m5%205%205-5%22%2F%3E%3Cpath%20transform%3D%22rotate%28240%2020%2020%29%22%20d%3D%22M20%2020V3m0%207-4-4m4%204%204-4m-4%209-5-5m5%205%205-5%22%2F%3E%3Cpath%20transform%3D%22rotate%28300%2020%2020%29%22%20d%3D%22M20%2020V3m0%207-4-4m4%204%204-4m-4%209-5-5m5%205%205-5%22%2F%3E%3C%2Fsvg%3E");
    transform:rotate(var(--angle,12deg)); filter:drop-shadow(0 0 1px #fff6);
  }
  .cover-flurries i:nth-child(3n) { --angle:-17deg; opacity:.74; }
  .cover-flurries i:nth-child(4n) { --angle:28deg; }
  .slide.active .cover-flurries i { animation-play-state:running; }
  @keyframes cover-snowfall {
    0% { transform:translate(0,0); }
    48% { transform:translate(var(--drift),48%); }
    100% { transform:translate(0,100%); }
  }
}
