/* The sign-in card, then the game's canvas over the whole window once it starts. */
:root { color-scheme: dark; --bg: #070c15; --panel: #0d1726; --line: #26354a; --ink: #eef4ff; --muted: #a3b2c7;
  --accent: #71e4fa; --accent-ink: #04202a; --warn: #ffcf7a; }
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--ink); font: 1rem/1.5 system-ui, sans-serif; }
body.playing { overflow: hidden; }
a { color: var(--accent); text-underline-offset: 3px; }
body > canvas { position: fixed; inset: 0; width: 100vw !important; height: 100vh !important; display: block; outline: none; touch-action: none; }

#entry { min-height: 100vh; display: grid; place-items: center; gap: 24px; padding: 32px 16px; grid-template-rows: 1fr auto; }
#entry[hidden] { display: none; }
.card { width: min(380px, 100%); display: grid; gap: 14px; padding: 28px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
h1 { margin: 0; font-size: 1.6rem; letter-spacing: .01em; }
.dim { color: var(--muted); margin: 0; }
.small { font-size: .85rem; }
label { display: grid; gap: 4px; font-size: .9rem; color: var(--muted); }
input { font: inherit; color: var(--ink); background: #060d18; border: 1px solid var(--line); border-radius: 8px; padding: 9px 11px; }
input:focus-visible, button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
button { font: inherit; font-weight: 600; color: var(--accent-ink); border: 0; border-radius: 8px; padding: 11px; cursor: pointer;
  background: linear-gradient(90deg, var(--accent) var(--p, 100%), #3c7f8c var(--p, 100%)); }
button:disabled { opacity: .6; cursor: default; }
#status { margin: 0; min-height: 1.5em; font-size: .9rem; }
#status.error { color: var(--warn); }
footer { max-width: 640px; text-align: center; }
