/* Draughts: a café board. Cream and olive squares, ebony and bone pieces, a brass ring for kings. */
:root { --page: #e9e2d0; --card: #f5f0e3; --ink: #23201a; --soft: #6c6555; --line: #d3c9b2; --field: #f0e6cc; --dark-sq: #6f7a4a; --act: #8c5a1c; --on-act: #ffffff; --stop: #b3261e; --wide: 560px; color-scheme: light; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --page: #14130f; --card: #1e1c17; --ink: #efe9da; --soft: #aba493; --line: #37332a; --field: #cfc3a3; --dark-sq: #4d5634; --act: #e6b36e; --on-act: #2b1802; --stop: #ff8a80; color-scheme: dark; }
}
.between { justify-content: space-between; align-items: center; } .scores { display: flex; gap: 12px; color: var(--soft); font-size: 15px; } .scores b { color: var(--ink); }
.bar { justify-content: space-between; gap: 8px; margin-bottom: 10px; } .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.board { display: grid; grid-template-columns: repeat(8, 1fr); aspect-ratio: 1; border: 8px solid #3b2a1a; border-radius: 10px; overflow: hidden; box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.sq { all: unset; display: grid; place-items: center; background: var(--field); position: relative; }
.sq.d { background: var(--dark-sq); cursor: pointer; } .sq.d:focus-visible { outline: 3px solid var(--act); outline-offset: -3px; }
.sq.last { background: color-mix(in srgb, var(--dark-sq) 70%, #e6b36e); }
.sq.to::after { content: ""; width: 30%; height: 30%; border-radius: 50%; background: rgba(255,240,200,.75); }
.pc { width: 78%; height: 78%; border-radius: 50%; display: grid; place-items: center; transition: translate .12s; }
.pc.p1 { background: radial-gradient(circle at 35% 30%, #5a5048, #1a1510 70%); box-shadow: 0 3px 0 #000, inset 0 0 0 4px rgba(255,255,255,.07); }
.pc.p-1 { background: radial-gradient(circle at 35% 30%, #fffaf0, #d8ccb4 70%); box-shadow: 0 3px 0 #9c8f76, inset 0 0 0 4px rgba(0,0,0,.05); }
.pc.k::after { content: ""; width: 46%; height: 46%; border-radius: 50%; border: 3px solid #d4a63c; }
.sq.sel .pc { translate: 0 -3px; box-shadow: 0 0 0 3px var(--act), 0 6px 0 rgba(0,0,0,.4); }
.msg { text-align: center; font-weight: 700; min-height: 1.5em; }
details { margin-top: 12px; color: var(--soft); }
@media (prefers-reduced-motion: reduce) { .pc { transition: none; } }
