/* Slide: lacquered wooden tiles in a deep plum tray; a tile in its right place turns gold. */
:root { --page: #e9e4f0; --card: #f6f3fa; --ink: #211b2b; --soft: #675d75; --line: #d4cbe0; --tray: #3d2b52; --tile: #f4ead6; --act: #5b3d82; --on-act: #ffffff; --stop: #b3261e; --wide: 480px; color-scheme: light; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --page: #14121a; --card: #1d1a25; --ink: #efe9f7; --soft: #a99fb8; --line: #332d3f; --tray: #2a1d3a; --tile: #e6dcc6; --act: #c3a6ee; --on-act: #1e0f33; --stop: #ff8a80; color-scheme: dark; }
}
.between { justify-content: space-between; align-items: center; } .scores { display: flex; gap: 12px; color: var(--soft); font-variant-numeric: tabular-nums; } .scores b { color: var(--ink); }
.chips { display: flex; gap: 6px; margin-bottom: 12px; }
.board { position: relative; aspect-ratio: 1; background: var(--tray); border-radius: 18px; padding: 8px; box-shadow: inset 0 3px 10px rgba(0,0,0,.45); touch-action: manipulation; }
.t { all: unset; position: absolute; box-sizing: border-box; display: grid; place-items: center; border-radius: 12px; cursor: pointer; font-weight: 800; color: #3a2a12; font-variant-numeric: tabular-nums;
  background: linear-gradient(160deg, #fffaf0, var(--tile)); box-shadow: inset 0 -5px 0 rgba(0,0,0,.14), 0 3px 0 rgba(0,0,0,.35); transition: left .1s ease-out, top .1s ease-out; }
.t.ok { background: linear-gradient(160deg, #fbe9a9, #e4bd52); }
.t:focus-visible { outline: 3px solid var(--act); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .t { transition: none; } }
.msg { text-align: center; font-weight: 700; min-height: 1.5em; }
