:root{font-family:-apple-system,BlinkMacSystemFont,"SF Pro Display","Helvetica Neue","PingFang SC",sans-serif;color:#242622;background:transparent;font-synthesis:none;color-scheme:light}
html.dark{color-scheme:dark;color:#f8f1e4}
html,body,main,#viewport{background:transparent}
*{box-sizing:border-box}
body{margin:0;overflow:hidden}
button,input{-webkit-tap-highlight-color:transparent}
button{font:inherit;cursor:pointer}
button:disabled{cursor:wait;opacity:.35}
main{height:100dvh;position:relative}
#viewport{position:absolute;inset:0 0 94px;touch-action:none}
html.scroll-mode #viewport{inset:0;touch-action:auto}
html.scroll-mode .control-dock{display:none}
canvas{display:block;outline:none}
.control-dock{position:absolute;bottom:18px;left:50%;transform:translateX(-50%);width:min(440px,calc(100% - 40px));display:flex;align-items:center;padding:12px 16px;background:rgba(248,241,228,.9);border:1px solid rgba(24,20,12,.1);border-radius:25px;box-shadow:0 16px 50px -26px rgba(24,20,12,.4);backdrop-filter:blur(16px)}
.controls{flex:1;min-width:0;display:flex;gap:18px;align-items:center}
.play{width:48px;height:48px;border-radius:50%;flex-shrink:0;border:0;background:#18140c;color:#f8f1e4;display:grid;place-items:center;transition:background .2s}
.play:hover{background:#2a241a}
.play svg{width:19px;height:19px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.play #play-icon{fill:currentColor;stroke:none}
.play svg[hidden]{display:none}
input[type=range]{appearance:none;-webkit-appearance:none;flex:1;min-width:0;width:100%;height:36px;display:block;margin:0;background:transparent;cursor:ew-resize;touch-action:none}
input[type=range]::-webkit-slider-runnable-track{height:9px;background:linear-gradient(to right,#d09132 var(--progress,100%),#ebe0cc var(--progress,100%));border-radius:9px}
input[type=range]::-moz-range-track{height:9px;background:linear-gradient(to right,#d09132 var(--progress,100%),#ebe0cc var(--progress,100%));border-radius:9px}
input[type=range]::-webkit-slider-thumb{appearance:none;width:24px;height:24px;margin-top:-7.5px;background:#fff;border:3px solid #d09132;border-radius:50%;box-shadow:0 1px 4px #0002}
input[type=range]::-moz-range-thumb{width:18px;height:18px;background:#fff;border:3px solid #d09132;border-radius:50%}
button:focus-visible{outline:2px solid #d09132;outline-offset:4px}
@media(max-width:700px){
  .control-dock{width:calc(100% - 32px);bottom:calc(12px + env(safe-area-inset-bottom));padding:12px 14px}
  #viewport{inset:env(safe-area-inset-top) 0 calc(80px + env(safe-area-inset-bottom))}
  .controls{gap:14px}
  .play{width:44px;height:44px}
}
@media(max-height:650px) and (min-width:701px){
  #viewport{inset:0 0 82px}
  .control-dock{bottom:12px}
}
