html, body { margin: 0; background: #000; color: #00f099; font: 14px/1.4 "Courier New", monospace; }
main { padding: 4px 0; }
button { font: inherit; background: #111; color: inherit; border: 1px solid #888; padding: 6px; min-height: 44px; cursor: pointer; touch-action: none; }
button:focus-visible, canvas:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }
button.held { background: #234a38; }
.game-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
#game { display: block; width: 100%; height: auto; aspect-ratio: 4/3; image-rendering: pixelated; touch-action: none; }
#game-status { margin: 5px 0; font-size: 12px; }
#play { width: 100%; margin-top: 6px; }
[hidden] { display: none !important; }
.pads { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; }
.pad { display: flex; align-items: center; justify-content: center; flex-direction: column; white-space: pre-line; width: 44%; height: 100px; border: 1px solid #666; background: #111; text-align: center; touch-action: none; user-select: none; -webkit-user-select: none; }
.buttons { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.buttons button { flex: 1; }
.instructions { font-size: 12px; margin: 8px 0 0; color: #a1c8b8; }
@media (hover: hover) and (pointer: fine) { .pads { display: none; } }
