/* Code breaker: a walnut board with enamel pegs. Each colour also carries its number, so colour is never the only clue. */
:root { --page: #efe6d6; --card: #f8f2e7; --ink: #2b2016; --soft: #6e5f4d; --line: #d9ccb6; --field: #6b4a2f; --act: #8a3b1f; --on-act: #ffffff; --stop: #b3261e; --wide: 480px; color-scheme: light; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --page: #1a130d; --card: #241b13; --ink: #f1e7d8; --soft: #b3a38e; --line: #3d3024; --field: #4a3220; --act: #f0a27e; --on-act: #2a0f04; --stop: #ff8a80; color-scheme: dark; }
}
.between { justify-content: space-between; align-items: center; } .scores { display: flex; gap: 14px; color: var(--soft); } .scores b { color: var(--ink); font-variant-numeric: tabular-nums; }
.chips { display: flex; gap: 6px; margin-bottom: 10px; }
.board { list-style: none; margin: 0; padding: 10px 12px; border-radius: 16px; display: grid; gap: 6px;
  background: repeating-linear-gradient(95deg, rgba(0,0,0,.06) 0 3px, transparent 3px 11px), linear-gradient(160deg, color-mix(in srgb, var(--field) 85%, white), var(--field)); box-shadow: inset 0 2px 6px rgba(0,0,0,.35); }
.board li { display: flex; align-items: center; gap: 8px; padding: 4px 6px; border-radius: 10px; }
.board li.now { background: rgba(255,255,255,.14); }
.n { width: 20px; color: rgba(255,255,255,.6); font-size: 13px; text-align: right; font-variant-numeric: tabular-nums; }
.peg { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 14px; color: rgba(255,255,255,.95); text-shadow: 0 1px 1px rgba(0,0,0,.4);
  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.55), transparent 42%), var(--c); box-shadow: 0 2px 3px rgba(0,0,0,.4); }
.peg.hole { --c: rgba(0,0,0,.35); background: var(--c); box-shadow: inset 0 2px 3px rgba(0,0,0,.5); }
.pins { margin-left: auto; display: grid; grid-template-columns: repeat(2, 10px); gap: 3px; }
.pin { width: 10px; height: 10px; border-radius: 50%; background: rgba(0,0,0,.3); } .pin.e { background: #15110c; box-shadow: 0 0 0 1px rgba(255,255,255,.5); } .pin.m { background: #f6efe2; }
.palette { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 12px 0; }
.palette button { padding: 0; min-height: 0; border: 0; background: none; border-radius: 50%; } .palette .peg { width: 46px; height: 46px; font-size: 17px; }
.msg { text-align: center; font-weight: 700; min-height: 1.5em; margin: 10px 0 0; }
.c0 { --c: #c0392b; } .c1 { --c: #2e7d32; } .c2 { --c: #1f5fbf; } .c3 { --c: #d4a017; } .c4 { --c: #7b3fa0; } .c5 { --c: #1a8a8a; } .c6 { --c: #e06c1f; } .c7 { --c: #5d4037; }
