/* Loves me, loves me not: page styles (kept out of index.html so a strict CSP needs no 'unsafe-inline'). */
html, body { margin: 0; height: 100%; height: 100dvh; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; overscroll-behavior: none; background: #0c0620; overflow: hidden; }
body { display: flex; align-items: center; justify-content: center; box-sizing: border-box;
       padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px); }
/* <main> is the only flex item: it shrinks to the canvas, so the canvas stays centred exactly as before. */
main { display: block; margin: 0; padding: 0; }
canvas { image-rendering: pixelated; image-rendering: crisp-edges; display: block; touch-action: none; }

/* Text for search engines and screen readers; takes no space and is never painted. */
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important;
           overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; clip-path: inset(50%) !important; white-space: nowrap !important; border: 0 !important; }

/* Shown only when JavaScript is off (the game cannot run then). */
.noscript { max-width: 28em; margin: 0 16px; padding: 16px; color: #f1e6ff; background: #351a78; border: 2px solid #9b5de5;
            font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; text-align: center; -webkit-user-select: text; user-select: text; }
.noscript a { color: #ff8fc8; }
