:root {
  --bg: #0b1420; --ink: #e8f4ff; --muted: #8aa4c2; --accent: #4cc9f0; --cyan: #80ffdb;
  --card: rgba(8, 18, 32, 0.88);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { width: 100%; height: 100%; overflow: hidden; background: var(--bg); color: var(--ink); font-family: "Segoe UI", "Avenir Next", Futura, system-ui, sans-serif; user-select: none; touch-action: none; }
#game { display: block; width: 100%; height: 100%; cursor: none; }
#hud { position: fixed; inset: 0; pointer-events: none; z-index: 2; }
#hud-left { position: absolute; top: 18px; left: 20px; }
#brand { font-weight: 800; letter-spacing: 0.28em; font-size: 13px; color: var(--accent); }
#coverage { margin-top: 6px; font-size: 18px; font-variant-numeric: tabular-nums; }
#hud-center { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); text-align: center; }
#clock { font-weight: 800; letter-spacing: 0.12em; font-size: 22px; text-shadow: 0 2px 12px #000; }
#toast { min-height: 1.2em; font-weight: 700; text-shadow: 0 2px 12px #000; }
#board { position: absolute; top: 16px; right: 16px; width: 210px; padding: 12px 14px 10px; background: var(--card); border: 1px solid rgba(76,201,240,0.25); border-radius: 12px; }
.board-title { font-size: 10px; letter-spacing: 0.22em; color: var(--muted); margin-bottom: 8px; }
#board-list { list-style: none; font-size: 13px; }
#board-list li { display: flex; justify-content: space-between; gap: 8px; padding: 3px 0; }
#board-list .you { font-weight: 700; }
.swatch { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 6px; }
#inkbar-wrap { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 2; pointer-events: none; text-align: center; }
#hint { font-size: 11px; letter-spacing: 0.08em; color: var(--muted); text-transform: uppercase; }
#splash { position: fixed; inset: 0; z-index: 5; display: grid; place-items: center; background: radial-gradient(800px 500px at 80% 20%, rgba(76,201,240,0.22), transparent 55%), var(--bg); }
#over { position: fixed; inset: 0; z-index: 5; display: grid; place-items: end center; padding-bottom: 72px; background: none; pointer-events: none; }
#splash.hidden, #over.hidden { display: none; }
.splash-card { width: min(420px, 90vw); padding: 36px 32px 28px; background: var(--card); border: 1px solid rgba(76,201,240,0.28); border-radius: 20px; text-align: center; pointer-events: auto; }
#over .splash-card { width: min(340px, 86vw); padding: 22px 22px 18px; background: rgba(8, 18, 32, 0.86); }
.kicker { letter-spacing: 0.32em; font-size: 11px; color: var(--accent); margin-bottom: 10px; }
h1 { font-size: 44px; letter-spacing: 0.12em; line-height: 1; margin-bottom: 10px; }
.tag { color: var(--muted); margin-bottom: 22px; }
label { display: block; text-align: left; font-size: 11px; letter-spacing: 0.16em; color: var(--muted); text-transform: uppercase; }
input { width: 100%; margin: 8px 0 18px; padding: 12px 14px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.12); background: rgba(0,0,0,0.35); color: white; font-size: 16px; outline: none; }
button { width: 100%; padding: 14px; border: 0; border-radius: 12px; background: linear-gradient(90deg, var(--accent), var(--cyan)); color: #041018; font-weight: 800; letter-spacing: 0.22em; cursor: pointer; font-size: 15px; }
.fine { margin-top: 14px; font-size: 11px; color: var(--muted); }
