* { box-sizing: border-box; }
:root { color-scheme: light; font-family: system-ui, -apple-system, sans-serif; }
html, body, main { width: 100%; height: 100%; margin: 0; overflow: hidden; }
body { background: #c7b5a7; }
main { position: relative; }
#world { display: block; width: 100%; height: 100%; touch-action: none; outline: 0; cursor: grab; }
#world:active { cursor: grabbing; }
#world:focus-visible { outline: 2px solid #fff3da; outline-offset: -3px; }
.controls {
  position: absolute;
  left: 50%;
  bottom: max(15px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 5px 16px;
  background: rgba(57, 48, 39, .87);
  border: 1px solid rgba(255, 242, 219, .27);
  border-radius: 24px;
  box-shadow: 0 2px 9px #3b2a1e26, inset 0 1px #fffae809;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  color: #fff4e3;
  user-select: none;
}
.controls label, .caption { display: flex; align-items: center; }
.controls label { gap: 9px; min-height: 31px; cursor: pointer; }
.caption { gap: 6px; font-size: 12px; font-weight: 550; letter-spacing: .02em; }
.caption svg { width: 16px; height: 16px; fill: none; stroke: #f0d7b1; stroke-width: 1.6; stroke-linecap: round; }
.divider { width: 1px; height: 17px; background: #fff1d830; }
input[type=range] {
  --fill: 35%;
  width: clamp(48px, 6.5vw, 88px);
  height: 28px;
  margin: 0;
  background: transparent;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  touch-action: none;
}
input[type=range]::-webkit-slider-runnable-track {
  height: 3px; border-radius: 3px;
  background: linear-gradient(to right, #e1bc80 var(--fill), #b8ac9b68 var(--fill));
}
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 10px; height: 10px; margin-top: -3.5px;
  border-radius: 50%; border: 1px solid #fffae4; background: #f4dfb9; box-shadow: 0 1px 3px #31241c70;
}
input[type=range]::-moz-range-track { height: 3px; border-radius: 3px; background: #a2988c7d; }
input[type=range]::-moz-range-progress { height: 3px; background: #e1bc80; }
input[type=range]::-moz-range-thumb { width: 9px; height: 9px; border: 1px solid #fffae4; border-radius: 50%; background: #f4dfb9; }
input[type=range]:focus-visible { outline: 1px solid #f4dfb9; outline-offset: 3px; border-radius: 5px; }
noscript { position: absolute; top: 50%; width: 100%; text-align: center; }
@media (max-width: 420px), (max-height: 480px) {
  .controls { gap: 10px; padding: 3px 12px; bottom: max(10px, env(safe-area-inset-bottom)); }
  .controls label { gap: 7px; }
}
