/* Tiles: bone tiles on a linen table. Nine shapes in four inks; each ink also has its own dot count. */
:root { --page: #e7e2d8; --card: #f6f3ec; --ink: #1f1c17; --soft: #6b6457; --line: #d2cabb; --act: #2f5d7c; --on-act: #ffffff; --stop: #b3261e; --wide: 760px; color-scheme: light; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --page: #14130f; --card: #1e1c17; --ink: #efeae0; --soft: #aaa293; --line: #37332b; --act: #8cc4e8; --on-act: #08202f; --stop: #ff8a80; color-scheme: dark; }
}
.between { justify-content: space-between; align-items: center; } .scores { display: flex; gap: 12px; color: var(--soft); font-size: 15px; font-variant-numeric: tabular-nums; } .scores b { color: var(--ink); }
.stage { position: relative; width: 100%; margin: 6px 0; }
.stack { position: relative; margin: 0 auto; }
.t { all: unset; position: absolute; width: var(--w); height: var(--h); box-sizing: border-box; border-radius: calc(var(--w) * .14); background: linear-gradient(160deg, #fffdf7, #efe7d4);
  box-shadow: calc(var(--w) * .06) calc(var(--w) * .08) 0 #c9bda2, calc(var(--w) * .06) calc(var(--w) * .08) 0 1px rgba(0,0,0,.25), 0 0 0 1px rgba(0,0,0,.12);
  display: grid; place-items: center; cursor: default; }
.t svg { width: 62%; height: 62%; } .t .dots { position: absolute; top: 5%; left: 8%; display: flex; gap: 2px; } .t .dots i { width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.t.f { cursor: pointer; } .t:not(.f) { filter: brightness(.8) saturate(.8); }
.t.sel { background: linear-gradient(160deg, #fff6c9, #f3dd8a); } .t.hint { outline: 3px solid var(--act); }
.t:focus-visible { outline: 3px solid var(--act); }
.k0 { color: #b3362a; } .k1 { color: #2a6b3c; } .k2 { color: #24508f; } .k3 { color: #6a3d8c; }
.msg { text-align: center; font-weight: 700; min-height: 1.5em; }
