* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #000; }
.hidden { display: none !important; }

/* Low-res canvases scaled up with sharp pixels (size set from game.js) */
#game, #hud { position: fixed; left: 0; top: 0; display: block;
  image-rendering: crisp-edges; image-rendering: pixelated; }
#game { z-index: 0; }
#hud { z-index: 2; }

/* CRT lines: one dark line per low-res pixel row (--px), plus a soft vignette */
#crt { position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(to bottom, transparent 60%, rgba(0, 0, 0, .28) 60%),
    radial-gradient(ellipse at center, transparent 60%, rgba(0, 0, 0, .45) 100%);
  background-size: 100% var(--px, 3px), 100% 100%; }

/* Help box when the browser has no Bluetooth (needs copyable text, so plain HTML) */
.help { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 3; width: min(520px, 92vw); padding: 14px 18px; cursor: pointer;
  background: rgba(10, 8, 30, .94); color: #e6e6f0; border: 2px solid #ff2e88;
  font: 13px/1.45 ui-monospace, "Cascadia Mono", Menlo, monospace; }
.help ol { margin: 6px 0; padding-left: 20px; }
.help p { margin: 6px 0 0; opacity: .85; }
.help .close { color: #ff2e88; }
.help code { user-select: all; background: rgba(255, 255, 255, .12); padding: 1px 4px; color: #ffe14a; word-break: break-all; }
