/* Starts out matching the card page (its terminal look). The card page also sends its live values on load
   (api.js look()), so these only show until then — or for good, if you override them here. */
:root {
  --bg: #0b0d0c; --fg: #b8c4bb; --dim: #5d6a61; --hi: #7dff9b; --bad: #ff6b6b; --line: #1d2420; --red: #ff5c5c;
  --font: ui-monospace, "Cascadia Mono", Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: transparent; color: var(--fg); font: 15px/1.5 var(--font); }
body { padding: 2px 0 0; }
body.mock { background: var(--bg); padding: 24px 16px; }            /* opened on its own, on localhost */
.board { display: grid; grid-template-columns: repeat(3, 48px); grid-auto-rows: 48px; }
.cell {
  font: 22px/1 var(--font); color: var(--hi); background: none; padding: 0; cursor: pointer;
  border: 0 solid var(--dim); -webkit-tap-highlight-color: transparent;
}
.cell:nth-child(-n+6) { border-bottom-width: 1px; }
.cell:not(:nth-child(3n)) { border-right-width: 1px; }
.cell.o { color: var(--fg); }
.cell:disabled { cursor: default; }
.cell:not(:disabled):active { background: var(--line); }
.cell.win { background: var(--line); }
.status { color: var(--dim); font-size: 13px; margin: 8px 0 0; }
.status.won { color: var(--hi); }
