html, body {
  height: 100%;
  margin: 0;
  background: #0b1020;
  overflow: hidden;
}
canvas {
  display: block;
  width: 100vw;
  height: 100vh;
  touch-action: none;
}
.hud {
  position: fixed;
  inset: 12px auto auto 12px;
  font: 14px/1.4 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 10px 12px;
  backdrop-filter: blur(6px);
  user-select: none;
  display: none;
}
.hud kbd {
  font: inherit;
  padding: 1px 6px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
}
.hint {
  opacity: 0.85;
}

/* --- Touch controls (shown on phones/tablets) --- */
.touch {
  position: fixed;
  inset: 0;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  display: none;
}
.stick {
  position: absolute;
  left: 18px;
  bottom: 18px;
  width: 132px;
  height: 132px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(6px);
  pointer-events: auto;
  touch-action: none;
}
.stick::after {
  content: '';
  position: absolute;
  inset: 50% auto auto 50%;
  width: 6px;
  height: 6px;
  margin-left: -3px;
  margin-top: -3px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.25);
}
.knob {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 58px;
  height: 58px;
  margin-left: -29px;
  margin-top: -29px;
  border-radius: 999px;
  background: rgba(76, 195, 255, 0.18);
  border: 1px solid rgba(76, 195, 255, 0.35);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
  transform: translate3d(0, 0, 0);
  will-change: transform;
}
.fire {
  position: absolute;
  right: 18px;
  bottom: 26px;
  width: 90px;
  height: 90px;
  border-radius: 999px;
  background: rgba(255, 100, 100, 0.15);
  border: 2px solid rgba(255, 100, 100, 0.4);
  backdrop-filter: blur(6px);
  pointer-events: auto;
  touch-action: none;
  color: rgba(255, 255, 255, 0.95);
  font: 700 18px/1 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 20px rgba(255, 100, 100, 0.3);
}
.fire:active {
  background: rgba(255, 100, 100, 0.28);
  transform: scale(0.95);
}

@media (hover: hover) and (pointer: fine) {
  .touch {
    display: none;
  }
}
