*, *::before, *::after { box-sizing: border-box; }
html, body {
  margin: 0; height: 100%;
  background: #05060f; color: #88aaaa;
  font: 14px/1.4 system-ui, -apple-system, "Segoe UI", sans-serif;
  overscroll-behavior: none; touch-action: none;
  -webkit-user-select: none; user-select: none;
  -webkit-touch-callout: none;
}
#wrap {
  height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px;
  padding: env(safe-area-inset-top) 8px env(safe-area-inset-bottom);
}
canvas {
  display: block;
  image-rendering: pixelated; image-rendering: crisp-edges;
  background: #000;
  box-shadow: 0 0 40px rgba(93, 253, 203, .15);
}
#help { margin: 0; text-align: center; max-width: 34em; }
#pad { display: none; justify-content: space-between; align-items: stretch; gap: 12px; }
.touch #pad { display: flex; }
.touch #help { display: none; }
.pair { display: flex; gap: 10px; }
#pad button {
  height: 64px; min-width: 72px;
  border: 0; border-radius: 14px;
  background: #241f45; color: #f2ecff;
  font: 700 20px/1 system-ui, sans-serif;
  -webkit-tap-highlight-color: transparent;
  touch-action: none;
}
#pad button.on { background: #3d3478; }
#bf { min-width: 110px; background: #5a2a2a; color: #ffd8cc; letter-spacing: 0; }
#bf.on { background: #8a3b30; }
