/* SPDX-License-Identifier: MIT */
:root { color-scheme: dark; --bg: #1c1230; --panel: #2a1d47; --text: #efe7ff; --muted: #b9a8d9; --accent: #e6b422; }
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.5 system-ui, sans-serif; background: var(--bg); color: var(--text); }
main { max-width: 820px; margin: 0 auto; padding: 24px 16px 64px; }
h1 { font-size: 1.6rem; margin: 0 0 4px; display: flex; align-items: center; gap: 12px; }
h1 img { width: 48px; height: 48px; }
p.lead { color: var(--muted); margin-top: 0; }
section { background: var(--panel); border-radius: 12px; padding: 16px 20px; margin: 16px 0; }
section h2 { margin: 0 0 8px; font-size: 1.1rem; }
.systems { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
button { font: inherit; padding: 10px 14px; border-radius: 8px; border: 0; background: var(--accent); color: #241400; cursor: pointer; font-weight: 600; }
button:disabled { opacity: 0.45; cursor: default; }
button.secondary { background: #4a3a72; color: var(--text); }
#status { white-space: pre-wrap; color: var(--muted); min-height: 1.5em; }
small, .note { color: var(--muted); }
code { background: #0003; padding: 1px 4px; border-radius: 4px; }

/* The player */
body.play { background: #000; overflow: hidden; height: 100vh; display: flex; align-items: center; justify-content: center; }
#screen { image-rendering: pixelated; image-rendering: crisp-edges; width: min(100vw, calc(100vh * 160 / 144)); height: auto; aspect-ratio: 160 / 144; background: #fff; touch-action: none; }
#overlay { position: fixed; inset: 0; pointer-events: none; }
#bar { position: fixed; top: 8px; right: 8px; display: flex; gap: 6px; opacity: 0.6; }
#bar button { padding: 6px 10px; font-size: 14px; }
#message { position: fixed; bottom: 12px; left: 0; right: 0; text-align: center; color: #ccc; font-size: 14px; pointer-events: none; }
#settings { background: var(--panel); color: var(--text); border: 0; border-radius: 12px; padding: 16px 20px; max-width: 440px; }
#settings::backdrop { background: #0008; }
#settings h2 { margin: 0 0 4px; font-size: 1.1rem; }
#settings label { display: block; margin: 10px 0; }
#settings select, #settings input[type=range] { display: block; width: 100%; margin-top: 4px; font: inherit; }
#settings .buttons { text-align: right; margin-top: 12px; }
