:root {
  color-scheme: dark;
  font-family: system-ui, sans-serif;
  background: #ad9587;
}
* { box-sizing: border-box; }
html, body, main { width: 100%; height: 100%; margin: 0; overflow: hidden; }
#world { display: block; width: 100%; height: 100%; touch-action: none; cursor: grab; }
#world:active { cursor: grabbing; }
.interface {
  position: fixed;
  bottom: max(14px, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  width: min(306px, calc(100% - 24px));
  user-select: none;
}
.controls {
  display: flex;
  padding: 5px 14px;
  border: 1px solid #fff3de36;
  border-radius: 12px;
  background: #29241feb;
  box-shadow: 0 4px 20px #35231635;
}
.controls label {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
  color: #fff3e3;
  font-size: 12px;
  font-weight: 600;
}
.controls label + label {
  border-left: 1px solid #fff3de28;
  padding-left: 12px;
  margin-left: 12px;
}
input {
  appearance: none;
  background: transparent;
  width: 100%;
  min-width: 28px;
  height: 30px;
  margin: 0;
  cursor: pointer;
  --fill: 64%;
  --accent: #efb968;
}
#wind { --fill: 32%; --accent: #a8d0c8; }
input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-radius: 3px; }
input::-webkit-slider-runnable-track {
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(to right, var(--accent) var(--fill), #77706a var(--fill));
}
input::-webkit-slider-thumb {
  appearance: none;
  width: 12px;
  height: 12px;
  margin-top: -4.5px;
  background: var(--accent);
  border-radius: 50%;
  border: 1px solid #fff8e7a0;
}
input::-moz-range-track {
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(to right, var(--accent) var(--fill), #77706a var(--fill));
}
input::-moz-range-thumb {
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
  border: 1px solid #fff8e7a0;
}
.hint {
  margin: 5px 0 0;
  text-align: center;
  color: #30241e;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .015em;
  text-shadow: 0 0 8px #f4decb;
}
.touch { display: none; }
@media (pointer: coarse) {
  .desktop { display: none; }
  .touch { display: inline; }
  input { height: 36px; }
}
#unavailable {
  position: absolute;
  inset: 40% 0 auto;
  text-align: center;
  color: #30241e;
}
