:root {
  color-scheme: light;
  font-family: system-ui, sans-serif;
  color: #4e4135;
  background: #b39a8b;
}

*, *::before, *::after { box-sizing: border-box; }
html, body, main, #view { width: 100%; height: 100%; margin: 0; overflow: hidden; }
#view { position: absolute; inset: 0; touch-action: none; }
canvas { display: block; width: 100%; height: 100%; cursor: grab; touch-action: none; }
canvas:active { cursor: grabbing; }

.controls {
  position: absolute;
  left: 50%;
  bottom: max(16px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  padding: 3px 9px;
  border: 1px solid #fff5e47d;
  border-radius: 13px;
  background: #f7eadddc;
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 12px #3c271e24;
  user-select: none;
}

.controls label {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 7px;
  font-size: 12px;
  font-weight: 600;
}

.controls label + label { border-left: 1px solid #6b503427; padding-left: 13px; margin-left: 3px; }

.controls svg {
  width: 15px;
  height: 15px;
  flex: none;
  stroke: currentColor;
  stroke-width: 1.45;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

input[type="range"] {
  width: clamp(60px, 9vw, 102px);
  min-height: 28px;
  margin: 0;
  accent-color: #876747;
  cursor: pointer;
}

input[type="range"]:focus-visible { outline: 2px solid #5c4e38; outline-offset: 1px; border-radius: 4px; }

#error {
  position: absolute;
  top: 40%;
  left: 0;
  width: 100%;
  padding: 20px;
  text-align: center;
}
