html, body {
  margin: 0;
  height: 100%;
  background: #0b1026;
  color: #e8ecf4;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  overflow: hidden;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}

body {
  display: flex;
  flex-direction: column;
  height: 100dvh;
}

#stage {
  position: relative;
  flex: 1;
  min-height: 0;
}

canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

#controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: #11162b;
  border-top: 1px solid #232a48;
}

.pair {
  display: flex;
  gap: 8px;
}

#controls button {
  font: inherit;
  color: #e8ecf4;
  background: #1f2747;
  border: 1px solid #34406e;
  border-radius: 16px;
  touch-action: none;
  cursor: pointer;
  padding: 0;
}

#controls #left, #controls #right {
  width: min(76px, 19vw);
  height: 72px;
  font-size: 26px;
}

#controls #burn {
  width: min(140px, 34vw);
  height: 72px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.08em;
  background: #5a2a14;
  border-color: #b5541f;
  color: #ffd7b0;
}

#controls #mute {
  width: 40px;
  height: 40px;
  font-size: 17px;
  opacity: 0.8;
}

#controls button.on {
  filter: brightness(1.7);
  transform: scale(0.97);
}
