/* Mancala identity: "carved teak". Deep coffee background, teak board with grain, glass seeds, gold accents. */
:root {
  --bg: #2b1d10; --surface: #3a2a18; --surface-2: #4a3620; --ink: #f4e9d8; --ink-2: #c9b499; --line: #55402a;
  --accent: #e8b04e; --accent-ink: #2b1d10; --ok: #9fd8a6; --warn: #f2d38a; --bad: #f0958a; --info: #d9b98a;
  --teak: #6b4423; --teak-2: #4a2e17; --teak-rim: #9a6a3a; --pit: #2c1a0d; --gold: #e8b04e;
  --font-display: "Comfortaa", "Nunito Sans", cursive; --font-ui: "Nunito Sans", system-ui, sans-serif;
}
:root[data-theme="light"] { --bg: #f0e2cc; --surface: #fff8ec; --surface-2: #ecdcbf; --ink: #2b1d10; --ink-2: #6e5a40; --line: #ddc7a0; --accent: #b8822a; --accent-ink: #fff; --teak: #8a5a34; --teak-2: #6b4423; --teak-rim: #c99a5e; --pit: #3d2612; }
:root[data-colorblind="1"] { --gold: #e2a233; }
body { background: radial-gradient(ellipse at 50% -10%, #46301a 0%, var(--bg) 60%); }
:root[data-theme="light"] body { background: radial-gradient(ellipse at 50% -10%, #fff8ec 0%, var(--bg) 60%); }
h1, h2, .title, .sheet-title, .mode b, .cta { font-family: var(--font-display); }
.logo { display: flex; justify-content: center; margin-bottom: -6px; } .logo canvas { width: 240px; height: 96px; }
.title { font-size: clamp(2.6rem, 13vw, 4.8rem); font-weight: 700; letter-spacing: .01em; color: var(--accent); text-shadow: 0 2px 0 rgba(0,0,0,.4), 0 0 24px color-mix(in oklab, var(--accent) 45%, transparent); }
.tagline { color: var(--ink-2); font-size: 1.05rem; }
.modes { grid-template-columns: 1fr; gap: 8px; }
.play .hud .btn-icon { flex: 0 0 auto; }
.play .stage { padding: 4px 6px; }
.play .stage-canvas { border-radius: 20px; box-shadow: 0 0 0 1px rgba(255,255,255,.06), 0 20px 50px rgba(0,0,0,.5); }
.seat[data-side="0"] { --pc: #e8a33d; } .seat[data-side="1"] { --pc: #4a7fc9; }
.seat .avatar { width: 30px; height: 30px; background: radial-gradient(circle at 35% 30%, color-mix(in oklab, var(--pc) 70%, #fff), var(--pc) 55%, color-mix(in oklab, var(--pc) 60%, #000)); box-shadow: inset 0 0 0 2px color-mix(in oklab, var(--pc) 60%, #000), 0 2px 4px rgba(0,0,0,.4); }
.seat .who b { font-family: var(--font-display); font-size: .95rem; }
.seat .count { font-family: var(--font-display); font-size: 1.1rem; color: var(--gold); }
.seat-row .seat-name { font-family: var(--font-display); font-size: 1rem; }
.overlay h2 { font-family: var(--font-display); text-transform: none; font-size: clamp(2.2rem, 10vw, 3.4rem); }
.overlay p { color: var(--ink-2); }
.result-verdict { font-family: var(--font-display); font-size: 1.2rem; color: var(--ink); text-align: center; }
.best-line { gap: 16px; }
/* keep toasts clear of the HUD icons on the play screen */
body:has(.play:not([hidden])) .toast-host { top: 104px; }
@container screen (min-width: 640px) { .board-home .modes { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) and (min-aspect-ratio: 4/3) {
  .play { grid-template-columns: 1fr minmax(0, 170dvh) 1fr; }
  .play .stage { padding: 14px 16px; }
  .seat { height: 52px; max-width: none; }
  .seat .avatar { width: 38px; height: 38px; }
}

/* room for "Grandmaster" beside the store count on 360 px phones */
.play .seat { max-width: 58vw; }
