html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #0c0b08;
}

#stage {
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
}

.controls {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  width: min(280px, calc(100vw - 28px));
  display: grid;
  gap: 10px;
  margin: 0;
  border: 1px solid rgba(245, 238, 220, 0.22);
  border-radius: 8px;
  padding: 12px;
  background: rgba(12, 11, 8, 0.72);
  color: rgba(245, 238, 220, 0.92);
  font: 12px/1.2 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  backdrop-filter: blur(14px);
}

.controls[hidden] {
  display: none;
}

.controls label {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.controls input {
  width: 100%;
}

@media (max-width: 620px) {
  .controls {
    right: 10px;
    bottom: 10px;
    width: calc(100vw - 20px);
  }
}
