.stage { background: #000; width: 100%; max-width: 804px; margin: 0 auto; }
#canvas {
  position: static !important; display: block;
  width: 100% !important; height: auto !important;
  image-rendering: pixelated; image-rendering: crisp-edges;
}
.pad { display: none; justify-content: space-between; align-items: center; margin: 16px 0; user-select: none; -webkit-user-select: none; touch-action: none; }
.pad button { font: 700 18px var(--mono); color: var(--hi); background: var(--dark); border: 2px solid var(--fg); border-radius: 8px; touch-action: none; }
.pad button.on { background: var(--border); }
.dpad { display: grid; grid-template-columns: 56px 56px 56px; grid-template-rows: 56px 56px 56px; gap: 4px; }
.dpad .up { grid-column: 2; grid-row: 1; }
.dpad .left { grid-column: 1; grid-row: 2; }
.dpad .right { grid-column: 3; grid-row: 2; }
.dpad .down { grid-column: 2; grid-row: 3; }
.pad .fire { width: 96px; height: 96px; border-radius: 50%; }
@media (pointer: coarse) { .pad { display: flex; } }
