html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: #b8aaa0;
  font-family: system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  -webkit-user-select: none;
  user-select: none;
  touch-action: none;
  overscroll-behavior: none;
}

#app {
  position: fixed;
  inset: 0;
}

#app canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* Small panel in the bottom-left corner. Two stacked rows work in both
   portrait and landscape, and it stays out of the way of the island. */
#controls {
  position: fixed;
  left: max(10px, env(safe-area-inset-left));
  bottom: max(10px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 10px;
  background: rgba(40, 32, 26, 0.55);
  color: #fbf3e4;
  font-size: 12px;
  line-height: 1;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 2;
}

.ctl {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ctl span {
  width: 74px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.ctl input[type="range"] {
  width: 110px;
  margin: 0;
  accent-color: #f2b33d;
}

@media (max-width: 420px) {
  #controls {
    font-size: 11px;
    gap: 5px;
    padding: 6px 8px;
  }
  .ctl span {
    width: 66px;
  }
  .ctl input[type="range"] {
    width: 90px;
  }
}
