/* ===========================================================================
   KhelMates tokens, aligned to the house web UI kit (DeckMates kit.css):
   the same token names (--brand, --bg, --surface, --ink, --muted, --line, status ramp, --font),
   with KhelMates' brand values. Older KhelMates names stay as aliases so every rule keeps working.
   Dark mode remaps these at the bottom of the file; board materials keep their own colours.
   Fonts: no web-font download (as DeckMates). Noto per script is on every Android phone,
   iOS and macOS fall back to their own Indic system fonts.
   =========================================================================== */
:root {
    color-scheme:light;
    --brand:#064a26; --brand-600:#04381d; --brand-500:#2f7d55; --brand-300:#a9c9a6;
    --brand-soft:#e6efe1; --brand-mist:#edf6df; --on-brand:#ffffff;
    --accent:#ffb718; --accent-pressed:#e5a014; --accent-soft:#fceac2; --on-accent:#2a1a05;
    --bg:#fff5dd; --surface:#fffcf3; --surface-2:#f6ebd9; --chip:#f3e7cf; --chip-active:#fff3d4;
    --ink:#153020; --ink-2:#2c3b31; --muted:#465b4a; --line:#ddd6c2; --outline:#78866d;
    --ok:#1b7a3d; --ok-bg:#e8f6ee; --bad:#8f2418; --bad-bg:#f9e3d9; --warn:#8f6200; --warn-bg:#fff6dc; --info:#345481; --info-bg:#e5ecf4;
    --turn-1-bg:#f4e3d8; --turn-1-line:#985239; --pill:#ede3cf; --panel:#ebdfce; --die:#fff8e6;
    --radius-sm:8px; --radius:12px; --radius-lg:16px; --radius-pill:999px;
    --shadow-sm:0 1px 2px rgba(20,40,25,.06); --shadow:0 1px 3px rgba(20,40,25,.07),0 10px 30px rgba(20,40,25,.06);
    --font:'Noto Sans','Noto Sans Devanagari','Noto Sans Telugu','Noto Sans Tamil','Noto Sans Kannada','Noto Sans Malayalam',
        'Noto Sans Bengali','Noto Sans Gujarati','Noto Sans Gurmukhi','Noto Sans Oriya','Noto Sans Ol Chiki','Noto Sans Meetei Mayek',
        'Noto Nastaliq Urdu','Noto Sans Arabic','Segoe UI',system-ui,-apple-system,sans-serif;
    --font-display:'Noto Serif','Noto Serif Devanagari','Noto Serif Telugu','Noto Serif Tamil','Noto Serif Kannada','Noto Serif Malayalam',
        'Noto Serif Bengali',Georgia,var(--font);
    /* Older KhelMates names, kept as aliases. */
    --green:var(--brand); --green-deep:var(--brand-600); --gold:var(--accent); --gold-pressed:var(--accent-pressed);
    --paper:var(--bg); --mint:var(--brand-soft); --selected:#c3daae; --gold-tint:var(--accent-soft);
}

/* ===========================================================================
   BASE
   =========================================================================== */
*{box-sizing:border-box}
[hidden]{display:none!important}
body{margin:0;background:var(--paper);color:var(--ink);font:16px var(--font)}
main{width:min(92vw,1190px);margin:auto;padding-bottom:3rem}
h1{font-family:var(--font-display);font-weight:400;font-size:clamp(2.3rem,7vw,5rem);line-height:1;margin:.4em 0}
h2{font-family:var(--font-display);font-weight:400;font-size:2rem}
/* Indian scripts are "tall": more line height, nothing tiny, no letter-spaced capitals. */
html:not(:lang(en)) body {line-height:1.6}
html:not(:lang(en)) h1, html:not(:lang(en)) h2 {line-height:1.3}
/* Controls: one house style. Ordinary buttons are pills (as the lobby's), 44px tall, outlined in
   var(--outline) (3:1 against the page). Primary = brand fill; the gold primary move is in TABLE.
   Board buttons (points, squares, pits) and the game cards set their own shape. */
select{font:inherit;color:inherit;min-height:44px;margin:0;padding:0 .9rem;background:var(--surface);border:1px solid var(--outline);border-radius:var(--radius-pill)}
button{font:inherit;font-weight:700;color:inherit;min-height:44px;padding:.45rem 1rem;background:var(--surface);border:1px solid var(--outline);border-radius:var(--radius-pill);cursor:pointer}
button:disabled{cursor:default}
#join-room button, #actions button, .match-controls #create-room, .puzzle-card button, .first-tips button, .kit-button.primary,
#game-family button[aria-pressed="true"], .opponent-pick button[aria-checked="true"], #social .social-chips button[aria-pressed="true"],
#family-mode[aria-pressed="true"], .sow-direction button[aria-checked="true"] {background:var(--brand);border-color:var(--brand);color:var(--on-brand)}
/* Board buttons (squares, points, pits) are not controls: they keep their own small shape.
   :where() keeps this at the specificity of "button", so each board's own rules still win. */
:where(#board, #lesson-board) button {min-height:0;padding:.55rem .8rem;border-radius:.45rem;font-weight:400}
:focus-visible{outline:3px solid var(--focus,var(--green));outline-offset:3px}
.meta {font-size:.74rem;letter-spacing:.12em;text-transform:uppercase;color:var(--muted)}
.sr-only {position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}

/* ===========================================================================
   HEADER, LOGO, FOOTER
   =========================================================================== */
header{display:flex;gap:1rem;align-items:center;justify-content:space-between;width:100%;padding:.85rem max(4vw,1rem);background:var(--surface);border-bottom:1px solid var(--line)}
/* Logo: the icon, and beside it a two-line block (wordmark + tagline) centred vertically on the icon.
   Both parts are crops of the same logo image, so the logo keeps its original size.
   Measured from khelmates-logo.png (1370×320): icon 0–360, wordmark x 394–1350, y 95–236. */
.brand {display:flex;align-items:center;gap:2.48%;width:clamp(155px,36vw,242px);aspect-ratio:1370/320;min-height:44px;font:1.8rem/.92 var(--font-display);color:var(--ink);text-decoration:none}
.logo-icon {width:26.28%;height:100%;flex:none;background:url(/assets/khelmates-logo-548.png) 0 0/auto 100% no-repeat}
.logo-text {width:69.78%;display:flex;flex-direction:column;gap:.18em}
.logo-word {display:block;width:100%;aspect-ratio:956/141;background:url(/assets/khelmates-logo-548.png) 95.17% 53.07%/143.31% auto no-repeat}
.brand-tagline {display:block;width:100%;height:auto;aspect-ratio:956/64;overflow:visible}
.brand-tagline text {font:700 52px var(--font);text-transform:uppercase;fill:var(--muted)}
.language-control {display:flex;flex-wrap:wrap;align-items:center;gap:.45rem;font-size:.85rem;font-weight:700}
.language-control select {max-width:44vw}
.site-footer {display:flex;flex-wrap:wrap;gap:1rem;margin-top:2rem}
.site-footer a {display:inline-flex;align-items:center;min-height:44px;color:var(--green);text-underline-offset:.15em}

/* ===========================================================================
   LOBBY — hero
   =========================================================================== */
.intro {position:relative;isolation:isolate;display:grid;grid-template-columns:minmax(0,1.2fr) minmax(160px,.65fr);align-items:center;gap:clamp(1rem,4vw,4rem);overflow:hidden;
    min-height:300px;margin:1.4rem 0 2.1rem;padding:clamp(1.4rem,4vw,3.5rem);border-radius:1.45rem;color:var(--paper);background:radial-gradient(ellipse at 72% 32%,#177041,var(--green-deep) 68%)}
.intro :focus-visible {outline-color:var(--focus,var(--paper))}
.intro-copy {z-index:1}
.intro-copy h1 {margin:0;color:var(--gold);font-size:clamp(2.7rem,6.8vw,6rem);letter-spacing:-.035em}
.intro-copy p {max-width:34ch;margin:1rem 0 1.35rem;font-size:clamp(.98rem,1.5vw,1.15rem);line-height:1.55;color:var(--paper)}
.browse-link {display:inline-flex;gap:.8rem;align-items:center;min-height:44px;padding:.75rem 1.15rem;border-radius:100px;background:var(--gold);color:var(--ink);text-decoration:none;font-weight:700}
.browse-link:hover {background:#ffc642}
.hero-art {position:relative;display:grid;place-items:center;min-width:0}
.hero-board {justify-self:center;width:min(100%,250px);display:grid;grid-template-columns:repeat(5,1fr);gap:3px;padding:10px;border:3px solid #8e5e3d;border-radius:12px;background:#a87850;transform:rotate(-8deg);box-shadow:8px 12px 0 #182f27}
.hero-art .hero-board {width:min(73%,265px);transform:rotate(-13deg);border-radius:14px;padding:8px;box-shadow:8px 13px 0 #102e27,12px 24px 28px #0518138c}
.hero-board i {display:grid;place-items:center;aspect-ratio:1;background:#d7a975}
.hero-board i:nth-child(even) {background:#edce98}
.hero-board i[data-piece]:not([data-piece=""])::after {content:"";width:58%;aspect-ratio:1;border-radius:50%;background:#345f50;box-shadow:0 3px 0 #1b352b,inset 0 0 0 3px #ffffff30}
.hero-board i[data-piece="gold"]::after {background:#cc743f;box-shadow:0 3px 0 #713b24,inset 0 0 0 3px #ffffff30}
.hero-tray {position:absolute;display:grid;grid-template-columns:repeat(5,1fr);gap:5px;inset:auto -6% 1% auto;width:56%;padding:9px;background:#9f663b;border:3px solid #dda267;border-radius:25% / 42%;transform:rotate(14deg);box-shadow:2px 6px 0 #5c3729,4px 12px 15px #12251c9c}
.hero-tray i {aspect-ratio:1;border-radius:50%;background:radial-gradient(circle at 45% 42%,#f2d68d 0 13%,transparent 15%),radial-gradient(circle at 65% 62%,#e6a765 0 14%,transparent 16%),#6b462e;box-shadow:inset 0 2px 4px #4c2b1e}
.hero-die {position:absolute;width:12%;aspect-ratio:1;inset:auto auto -7% 7%;border-radius:20%;transform:rotate(25deg);background:radial-gradient(circle at 25% 25%,#253d31 0 7%,transparent 9%),radial-gradient(circle,#253d31 0 7%,transparent 9%),radial-gradient(circle at 75% 75%,#253d31 0 7%,transparent 9%),#f3dba9;box-shadow:2px 5px 0 #ba8f5a,4px 8px 18px #102b24b3}

/* ===========================================================================
   LOBBY — tools: heading, friends/history, join room, search and type filters, opponent
   =========================================================================== */
.lobby-tools {display:grid;grid-template-columns:minmax(0,1fr) auto;justify-content:space-between;align-items:start;flex-wrap:wrap;gap:.8rem 1rem;margin-bottom:1.2rem}
.lobby-tools h2 {font-size:clamp(2rem,4vw,3rem);margin:0}
.social-links {display:inline-flex;gap:.4rem;flex-wrap:wrap}
#join-panel {justify-self:end}
#join-panel summary {display:list-item;width:max-content;max-width:100%;margin-inline-start:auto;cursor:pointer;border:1px solid var(--outline);border-radius:100px;background:var(--surface);padding:.65rem .9rem;font-weight:700}
#join-room {display:flex;align-items:center;flex-wrap:wrap;gap:.6rem;margin-top:.5rem;padding:.55rem;background:var(--surface);border:1px solid var(--line);border-radius:.65rem}
.filters {grid-column:1/-1;display:grid;grid-template-columns:minmax(12rem,1fr) auto;flex-wrap:wrap;align-items:center;gap:.75rem}
.filters label,#join-room label {display:flex;gap:.4rem;align-items:center;font-weight:600;font-size:.86rem}
.filters .search-field {display:block}
.search-field span {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.filters input,#room-code {min-height:44px;background:var(--surface);border:1px solid var(--outline);border-radius:.5rem;padding:.5rem .65rem;margin:0;font:inherit}
#room-code {width:auto;min-width:14ch;text-transform:uppercase}
.filters #game-search {display:block;width:100%;min-height:48px;padding-inline:.9rem;border-radius:.75rem;background:var(--surface)}
#game-family {display:flex;flex-wrap:wrap;gap:.4rem}
#game-family button {font-size:.88rem;font-weight:400;padding:.38rem .75rem}   /* compact filter chips */
.opponent-pick {display:inline-flex;flex-wrap:wrap;gap:.4rem;margin:.2rem 0 .6rem}

/* ===========================================================================
   LOBBY — game cards. House rule: cards never lift on hover; they answer with border and shadow only.
   =========================================================================== */
.catalog {display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,205px),1fr));gap:.9rem}
.game {display:flex;flex-direction:column;gap:.5rem;padding:.7rem .7rem .9rem;text-align:start;background:var(--surface);border:1px solid var(--line);border-radius:.9rem;box-shadow:0 3px 0 #76614513;transition:background-color .15s,border-color .15s}
button.game {font-weight:400;position:relative;overflow:hidden;min-width:0;background:var(--surface);border-radius:1.1rem;padding:.55rem .55rem 1rem;gap:.36rem;transition:transform .16s,box-shadow .16s,border-color .16s}
button.game:hover {background:var(--surface);border-color:var(--outline);box-shadow:0 0 0 2px var(--outline),0 8px 22px #18372a1c}
.game span:last-child {font-size:.85rem;color:#684b32}
.game-region,.game-edition {margin-inline:.5rem;overflow-wrap:anywhere}
.game .meta {margin-inline:.5rem;overflow-wrap:anywhere;font-size:.68rem;font-weight:700;letter-spacing:.06em}
.game strong {margin-inline:.5rem;overflow-wrap:anywhere;font:400 clamp(1.2rem,2vw,1.65rem)/1.05 var(--font-display)}
.game .game-region {font-size:.78rem;color:var(--muted)}
.game .game-edition {font-size:.79rem;line-height:1.4;color:var(--muted)}
html:not(:lang(en)) .game .meta, html:not(:lang(en)) .meta {font-size:.84rem;letter-spacing:0;text-transform:none}
html:not(:lang(en)) .game .game-region, html:not(:lang(en)) .game .game-edition {font-size:.86rem;line-height:1.5}
/* Card picture: generated art (GAME ART, end of file) over a family colour. */
.game-art {position:relative;isolation:isolate;align-self:stretch;display:grid;place-items:center;overflow:hidden;height:96px;margin-bottom:.35rem;border-radius:.78rem;background:var(--green)}
.game-art::before {content:"";position:absolute;inset:0;z-index:-1;background:repeating-linear-gradient(125deg,transparent 0 11px,#fff2c512 12px 13px)}
.game-art i {width:52px;aspect-ratio:1;display:block;border:4px solid #bf905e;border-radius:5px;box-shadow:4px 5px 0 #263d2a85;background:repeating-conic-gradient(#f8dc9f 0% 25%,#b77d4c 0% 50%) 50%/15px 15px;transform:rotate(-12deg)}
.game-art b {position:absolute;width:13px;aspect-ratio:1;top:36%;left:45%;border-radius:50%;background:#285c4d;border:2px solid #91b5a0;box-shadow:10px 17px 0 -1px #9b4b33}
.game-art.pallanguzhi {background-color:#805826}
.game-art.navakankari {background-color:#254d42}
.game-art.moksha-patam {background-color:#475979}
.game-art.ashta-chamma {background-color:#956b39}
.game-art.sholo-guti {background-color:#784434}
.game[data-family="Capture"] .game-art,.game[data-family="Hunt"] .game-art {background-color:#783d37}
.game[data-family="Capture"] .game-art i,.game[data-family="Hunt"] .game-art i {width:56px;background:repeating-radial-gradient(circle,#e6af76 0 7px,#875335 8px 9px);border:3px solid #e0ac78;border-radius:18%}
.game[data-family="Seed sowing"] .game-art i {width:78px;aspect-ratio:2;border-radius:18px;background:radial-gradient(circle,#845a36 42%,transparent 47%) 0 0/14px 14px,#dfb479}
.game[data-family="Seed sowing"] .game-art b {width:7px;box-shadow:13px 12px 0 #e8c285;background:#eed49a;border:0}
.game[data-family="Dexterity"] .game-art {background-color:#435678}   /* a colour only: Carrom's card picture stays (audit 5) */
.game[data-family="Dexterity"] .game-art i {background:radial-gradient(circle,#b86f50 0 14%,#f4dcac 15% 23%,#704227 24% 26%,#d6ab73 27%);border-radius:12%;border-color:#9a633f}

/* ===========================================================================
   LOBBY — daily puzzle, your games, offline note
   =========================================================================== */
.puzzle-card {display:grid;gap:.35rem;margin:0 0 1rem;padding:1rem 1.1rem;border-radius:16px;border:1px solid var(--line);background:var(--surface)}
.puzzle-card p {margin:0}
.puzzle-label {font-weight:800;color:var(--brand-500,var(--green))}
.puzzle-streak {color:var(--muted);font-weight:700}
.puzzle-streak:empty {display:none}
.puzzle-card button {justify-self:start}
.your-games ul {list-style:none;margin:.4rem 0 1rem;padding:0;display:grid;gap:.5rem}
.your-games a {display:flex;flex-wrap:wrap;align-items:center;gap:.3rem .8rem;min-height:48px;padding:.7rem 1rem;border-radius:14px;border:1px solid var(--line);background:var(--surface);color:var(--ink);text-decoration:none}
.your-games em {font-style:normal;font-weight:800;padding:.05rem .6rem;border-radius:8px;background:var(--accent,#ffb718);color:var(--on-accent,#2a1a05)}
/* Whose move it is, and a clear way in. */
.your-games .yg-state {font-size:.8rem;font-weight:800;padding:.1rem .55rem;border-radius:999px;background:var(--mint,#dcebd9);color:var(--green,#0b4d2c)}
.your-games .yg-state.mine {background:#ffb718;color:#2a1a05}
.offline-note {margin:.6rem 0;padding:.7rem 1rem;border-radius:12px;background:var(--warn-bg);color:var(--ink);font-weight:600}

/* ===========================================================================
   TABLE — layout, heading, info panel. Board first: controls live under the board.
   =========================================================================== */
#table {padding-top:1.5rem}
.table-layout {display:grid;grid-template-columns:minmax(0,1fr) minmax(220px,280px);column-gap:1.25rem;row-gap:.85rem;margin-top:1rem;align-items:start}
.match-heading {grid-column:1 / -1;display:flex;align-items:end;justify-content:space-between;gap:1rem;flex-wrap:wrap}
.match-heading h1 {font-size:clamp(1.65rem,4vw,3.45rem);margin:0;overflow-wrap:anywhere}
.match-heading #play-mode {margin:0 0 .35rem;font-size:.86rem}
.play-area {position:relative;grid-column:1;grid-row:2;background:var(--surface);border:1px solid var(--line);border-radius:1rem;padding:clamp(.85rem,2.6vw,1.5rem)}
.table-info {grid-column:2;grid-row:2;display:grid;gap:.75rem;background:var(--surface);border:1px solid var(--line);border-radius:1rem;padding:clamp(.85rem,2.6vw,1.5rem)}
#rules {margin:0;white-space:pre-line;color:var(--muted)}   /* audit 5: the rules line and the edition note on separate lines */
#play-mode {color:var(--muted);font-weight:700;margin-bottom:.55rem}
#room-info {margin:.55rem 0}
#invite-tools {display:flex;align-items:center;flex-wrap:wrap;gap:.65rem}
#share-status {margin:0}
#share-status:empty {display:none}
#connection-status {margin:.55rem 0 0}
#move-hint {margin:.55rem 0 0;font-weight:600;color:var(--muted)}
#error {color:var(--bad);background:var(--bad-bg);padding:.75rem 1rem;border-radius:.5rem}

/* Status line: whose turn, the throw, the result */
#status {display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:.3rem .55rem;margin:0;padding:.75rem 1rem;background:var(--info-bg);border-inline-start:4px solid var(--info);border-radius:.75rem;font-weight:700;transition:background-color .25s,border-color .25s}
#status[data-turn="1"] {background:var(--turn-1-bg);border-inline-start-color:#985239}
#status[data-finished="true"] {background:var(--gold-tint);border-inline-start-color:#806223}
/* Four-player tables: Saffron and Green seats */
#status[data-turn="2"] {background:#c2740026;border-inline-start-color:#c27400}
#status[data-turn="3"] {background:#1f7a4d26;border-inline-start-color:#1f7a4d}
#status strong {font-size:1.2rem}
#status span {font-size:.85rem;font-weight:500}
html:not(:lang(en)) #status span {font-size:.95rem}
#status .turn-swatch + strong {margin-inline-end:auto}
#status .roll-result {border:1px solid #c28a17;border-radius:100px;background:var(--gold-tint);padding:.25rem .6rem;color:var(--green-deep);font-weight:700}
.roll-result {display:inline-flex;align-items:center;gap:.45rem}
.die {display:inline-grid;place-items:center;width:1.7em;aspect-ratio:1;border-radius:22%;background:var(--die);color:var(--ink);font-weight:800;
    box-shadow:inset 0 -2px 0 #d8c39b,0 2px 4px #24180f40;--pip:radial-gradient(circle,#1f2a1f 0 46%,transparent 52%)}
.die[data-face] {background-color:#fff8e6;background-repeat:no-repeat;background-size:28% 28%}
.die[data-face="1"] {background-image:var(--pip);background-position:center}
.die[data-face="2"] {background-image:var(--pip),var(--pip);background-position:22% 22%,78% 78%}
.die[data-face="3"] {background-image:var(--pip),var(--pip),var(--pip);background-position:20% 20%,center,80% 80%}
.die[data-face="4"] {background-image:var(--pip),var(--pip),var(--pip),var(--pip);background-position:22% 22%,78% 22%,22% 78%,78% 78%}
.die[data-face="5"] {background-image:var(--pip),var(--pip),var(--pip),var(--pip),var(--pip);background-position:20% 20%,80% 20%,center,20% 80%,80% 80%}
.die[data-face="6"] {background-image:var(--pip),var(--pip),var(--pip),var(--pip),var(--pip),var(--pip);background-position:22% 18%,78% 18%,22% 50%,78% 50%,22% 82%,78% 82%}

/* ===========================================================================
   TABLE — move buttons and match controls
   =========================================================================== */
#actions {display:flex;flex-wrap:wrap;gap:.5rem;margin:1rem 0}
#actions:empty {display:none}
#actions .move-choice[aria-pressed="true"] {background:var(--selected);border-color:#527453}
#actions .move-choice {background:var(--mint);color:var(--green);border-color:#b6c7b6}
#actions .primary-move {font-weight:700;min-width:min(100%,12rem);min-height:48px;font-size:1.05rem;background:var(--gold);color:var(--on-accent);border-color:var(--gold)}
#actions button:active,#board button:active:not(:disabled) {filter:brightness(.9)}
#actions button[aria-pressed="true"] {outline:2px solid #b27d31;outline-offset:2px}
#actions .primary-move:active {background:var(--gold-pressed)}
/* The "Point N" list stays for keyboards and screen readers only. */
#actions .point-choice:not(:focus):not(:focus-visible) {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;padding:0;border:0}
#retry-room {margin-top:.5rem}
.match-controls {display:flex;flex-wrap:wrap;gap:.5rem;margin-top:.75rem}
.match-controls > * {flex:1 1 9rem}
#reset,#game-sound {justify-self:start}
#game-sound[aria-pressed="true"] {background:var(--mint);border-color:#527453;font-weight:700}
/* Computer level (easy / medium / hard), shown only in a computer match */
.level-pick {display:inline-flex;align-items:center;gap:.5rem;min-height:44px;font-weight:600}
.speed-pick {display:grid;gap:.3rem;font-weight:700}
.read-aloud, #family-mode {margin:.4rem 0}
.reactions {display:flex;gap:.4rem;overflow-x:auto;padding:.2rem 0 .4rem;scrollbar-width:thin}
.reactions button {flex:0 0 auto}

/* How to Play: opens and closes with a chevron; a short clip and a lesson for Ashta Chamma */
#help {padding:.75rem 0;border-block:1px solid var(--line)}
#help summary {cursor:pointer;font-weight:700}
#help > summary {display:flex;align-items:center;gap:.5rem;min-height:44px;cursor:pointer}
#help > summary::before {content:"";width:.5em;height:.5em;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(-45deg);transition:transform .15s}
#help[open] > summary::before {transform:rotate(45deg)}
#guide {line-height:1.55}
.guide-clip {display:block;width:100%;max-width:360px;margin:.6rem auto;border-radius:14px;background:#1b130d;aspect-ratio:480/840}
.clip-caption {max-width:360px;margin:-.2rem auto .8rem;text-align:center;font-weight:600;color:var(--muted)}
#lesson-board {display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:3px;max-width:16rem;margin-block:.75rem}
#lesson-board button {min-width:0;padding:0;aspect-ratio:1;color:#345481;background:#f8efdd}
#lesson-board button[data-safe="true"] {background:#ecce97}
#lesson-board button[data-path="true"] {background:var(--mint)}
#lesson-board button[data-target="true"] {background:var(--selected);box-shadow:inset 0 0 0 2px #366245}
#lesson-instruction {line-height:1.45}

/* Coaching tip (coach.js) and first-game tips (Chaupar, Pagade) */
.coach {display:flex;flex-wrap:wrap;align-items:center;gap:.5rem .75rem;margin:.5rem 0;padding:.75rem 1rem;border-radius:14px;background:var(--info-bg,#e5ecf4);color:var(--ink);border-inline-start:4px solid var(--info,#345481)}
.coach p {margin:0;flex:1 1 14rem;font-weight:600;line-height:1.45}
.first-tips {margin:.6rem 0;padding:.75rem 1rem;border-radius:.8rem;background:var(--warn-bg);border:1px solid #e6c97a;display:grid;gap:.35rem}
.first-tips ol {margin:0;padding-inline-start:1.2rem;line-height:1.5}
.first-tips button {justify-self:start}

/* ===========================================================================
   BOARDS — shared: frame, points, squares, feedback (see docs/ui-ux-research.md)
   Board feedback follows the authoritative move and never intercepts input.
   =========================================================================== */
#board {position:relative;isolation:isolate;width:min(100%,520px);margin:1rem auto}
#board svg {position:absolute;width:100%;height:100%}
#board polyline {fill:none;stroke:#7e532f;stroke-width:.045}
#board .recent-square {animation:landing-ring .65s ease-out}
@keyframes landing-ring {0% {outline:3px solid #be842e;outline-offset:2px} 100% {outline:3px solid transparent;outline-offset:6px}}
#board .shot-trail {z-index:3;pointer-events:none}
#board [aria-disabled="true"] {cursor:default}
/* Graph boards (points joined by lines) */
#board.navakankari,#board.puli-meka,#board.sholo-guti,#board.pretwa,#board.dash-guti {position:relative;aspect-ratio:1;border-radius:1rem}
#board .point {position:absolute;transform:translate(-50%,-50%);width:clamp(20px,6vw,40px);aspect-ratio:1;padding:0;border-radius:50%;font-weight:bold;
    /* Audit 4: at least a 44px target. A transparent border widens what can be pressed; the drawn circle stays the same. */
    box-sizing:content-box;border:max(0px,calc((44px - clamp(20px,6vw,40px)) / 2)) solid transparent;background-clip:padding-box}
.point[data-side="0"]{color:#304872}.point[data-side="1"]{color:#a44533}
.point[data-selected="true"]{outline:3px solid #254d42}
.point-number {font-size:clamp(.62rem,2.8vw,.8rem);font-variant-numeric:tabular-nums}
#board .point[data-target="true"] {box-shadow:inset 0 0 0 3px #a9c9a6;background:#edf6df;background-clip:padding-box;color:#1f3326}   /* dark text on the light target, in both themes (audit 4) */
#board .point[data-selected="true"] {box-shadow:inset 0 0 0 4px #c7dec2}   /* inset: drawn on the point, not around its wider tap area */
/* A placed piece fills the point. */
#board .point:has(.piece) {background:transparent;border-color:transparent;box-shadow:none}
#board .point .piece {width:100%}
#board .point[data-selected="true"] .piece {transform:scale(1.15);box-shadow:inset 0 -3px 0 var(--rim),0 0 0 4px #ffb718,0 6px 10px #24180f66}
#board .point[data-target="true"]::after {content:"";position:absolute;inset:30%;border-radius:50%;background:#2f7d55aa;pointer-events:none}
/* The last move is marked */
#board .point[data-last="from"]::before {content:"";position:absolute;inset:26%;border-radius:50%;border:2px dashed #ffb718;pointer-events:none}
#board .point[data-last="to"] .piece {outline:3px solid #fff8dd;outline-offset:2px}
/* The lines a chosen piece can travel along */
#board svg polyline.legal-path {stroke:#ffb718;stroke-width:.09;stroke-linecap:round;fill:none;opacity:.9}
/* Square boards */
.square {position:relative;background:#fff6db;border:1px solid var(--line);min-height:2.6rem;display:grid;place-items:center;text-align:center;font-size:clamp(.55rem,1.9vw,.9rem)}
.square:nth-child(even),.square.safe{background:#eacfa2}
.square .piece-stack {position:absolute;inset:auto 0 8% 0}
#board .square[data-path="up"] {background:#dbebcf;color:#244734;font-weight:700}
#board .square[data-path="down"] {background:#f5d6c7;color:#743622;font-weight:700}
.race-square {position:relative;display:grid;place-items:center;aspect-ratio:1;border:1px solid #b98957;background:#f5dfb8;font-size:clamp(.4rem,1.4vw,.8rem);overflow:hidden}
.race-square.safe {background:#d3dfbb}
/* Legal moves: a soft pulsing ring, opacity only so it stays cheap on low-end phones. */
#board .point:not(:disabled):has(.piece)::before,
#board.ashta-chamma .square[data-source="true"]::before,
#board.pallanguzhi button:not(:disabled)::before {content:"";position:absolute;inset:-4px;border-radius:50%;border:3px solid #ffb718;pointer-events:none;animation:legal 1.4s ease-in-out infinite}
#board.ashta-chamma .square[data-source="true"]::before {border-radius:.4rem;inset:2px}
@keyframes legal {0%,100% {opacity:.25} 50% {opacity:1}}
/* Safe squares carry the traditional cross mark. */
#board.ashta-chamma .square.safe::after,.race-square.safe::after {content:"";position:absolute;inset:18%;pointer-events:none;opacity:.2;
    background:linear-gradient(45deg,transparent 46%,#6e4a22 46% 54%,transparent 54%),linear-gradient(-45deg,transparent 46%,#6e4a22 46% 54%,transparent 54%)}

/* ===========================================================================
   BOARDS — pieces. Source order here matters: later states win over earlier ones.
   =========================================================================== */
.piece {--piece:#2e3a87;--rim:#1b2357;display:inline-grid;place-items:center;width:clamp(14px,62%,34px);aspect-ratio:1;border-radius:50%;
    background:radial-gradient(circle at 35% 30%,#ffffff55 0 18%,transparent 40%),var(--piece);
    box-shadow:inset 0 -3px 0 var(--rim),0 2px 3px #24180f59;color:#fff;font:700 clamp(.5rem,1.6vw,.72rem)/1 var(--font);position:relative}
/* The swatch beside "X to play" is a piece sized to the text (after .piece, which it overrides). */
.turn-swatch {position:relative;display:inline-block;width:1.15rem;height:1.15rem;margin-inline-end:.15rem;flex:0 0 auto;vertical-align:middle}
.piece[data-side="1"] {--piece:#b23a2e;--rim:#6e2119}
/* A shape mark as well as colour, so the two sides never rely on hue alone. */
.piece[data-side="0"]:empty::after {content:"";width:30%;aspect-ratio:1;border-radius:50%;border:2px solid #ffffffb0}
.piece[data-side="1"]:empty::after {content:"";width:28%;aspect-ratio:1;background:#ffffffb0;transform:rotate(45deg)}
/* Puli Meka: tamarind goats, pebble tigers */
.piece[data-kind="goat"] {--piece:#5a2e14;--rim:#2b1407;border-radius:44%;background:radial-gradient(circle at 35% 30%,#ffffff40 0 15%,transparent 35%),radial-gradient(circle,#6e3a1a,#3a1a0a)}
.piece[data-kind="tiger"]::after,.piece[data-kind="goat"]::after {display:none}
.piece-stack {position:relative;display:flex;flex-wrap:wrap;justify-content:center;gap:1px;width:100%}
.piece-stack .piece {width:clamp(12px,44%,26px)}
.chamma-tokens {width:100%;display:flex;justify-content:center;flex-wrap:wrap;gap:2px}
.chamma-tokens .piece {width:clamp(16px,42%,30px)}
.piece.flying {position:fixed;z-index:60;pointer-events:none;aspect-ratio:1}
.piece .need {position:absolute;top:-38%;right:-38%;min-width:1.25em;padding:0 .2em;border-radius:100px;background:#ffb718;color:#2a1a05;font:800 .62rem/1.3 var(--font);font-style:normal;box-shadow:0 1px 2px #0006}
/* Race family: tappable pieces */
.piece[data-movable="true"] {cursor:pointer;z-index:2;animation:movable 1.2s ease-in-out infinite}
.piece[data-movable="true"]:focus-visible {outline:3px solid #ffb718;outline-offset:2px}
@keyframes movable {0%,100% {box-shadow:inset 0 -3px 0 var(--rim),0 0 0 2px #ffb71855} 50% {box-shadow:inset 0 -3px 0 var(--rim),0 0 0 4px #ffb718}}
.piece[data-returning="true"] {transform:scaleY(.62);border-radius:50%}
.piece[data-kind="tiger"] {--piece:#e0a100;--rim:#8a5a00;transform:scale(1.15);box-shadow:inset 0 -3px 0 var(--rim),0 0 0 2px #e0a100,0 2px 4px #0006;
    background:repeating-linear-gradient(115deg,transparent 0 5px,#3b2a12 5px 7px),radial-gradient(circle at 35% 30%,#fff6 0 18%,transparent 40%),var(--piece)}
/* Kept here, not in REDUCED MOTION: the locked, threatened, removable and chain rings below must still win over it. */
@media (prefers-reduced-motion: reduce) {.piece[data-movable="true"] {animation:none;box-shadow:inset 0 -3px 0 var(--rim),0 0 0 3px #ffb718}}
.piece[data-shield="true"]::before {content:"";position:absolute;inset:-18%;border-radius:50%;border:2px solid #f2d68d;box-shadow:0 0 6px #ffcf4d}
.piece[data-locked="true"] {box-shadow:inset 0 -3px 0 var(--rim),0 0 0 2px #b8862b,0 0 0 4px #2a1a05}
.piece[data-locked="true"]::after {content:"";position:absolute;width:38%;height:30%;bottom:-8%;right:-8%;border-radius:2px;background:#b8862b;box-shadow:0 -3px 0 -1px #2a1a05}
/* Puli Meka: threatened goats, trapped tigers */
.piece[data-threatened="true"] {box-shadow:inset 0 -3px 0 var(--rim),0 0 0 2px #c0392b}
.piece[data-trapped="true"] {opacity:.5;filter:grayscale(.6)}
.piece[data-trapped="true"]::after {display:block;content:"";position:absolute;inset:-12%;border-radius:50%;border:2px solid #2a1a05;animation:lock-in .2s ease-out}
@keyframes lock-in {from {transform:scale(.6);opacity:0}}
/* Navakankari: removable and protected pieces */
.piece[data-removable="true"] {box-shadow:inset 0 -3px 0 var(--rim),0 0 0 3px #e5484d;outline:2px dashed #e5484d;outline-offset:3px;animation:movable 1.1s ease-in-out infinite}
.piece[data-protected="true"]::before {content:"";position:absolute;top:-22%;right:-22%;width:48%;aspect-ratio:1;border-radius:3px;background:#2a1a05;opacity:.6;
    -webkit-mask:radial-gradient(circle at 50% 28%,transparent 0 20%,#000 21% 34%,transparent 35%) top/100% 55% no-repeat,linear-gradient(#000,#000) bottom/100% 55% no-repeat;
    mask:radial-gradient(circle at 50% 28%,transparent 0 20%,#000 21% 34%,transparent 35%) top/100% 55% no-repeat,linear-gradient(#000,#000) bottom/100% 55% no-repeat}
/* Capture games: forced captures, chains */
.piece[data-can-capture="true"] {animation:capture-ready .9s ease-in-out infinite}
@keyframes capture-ready {0%,100% {box-shadow:inset 0 -3px 0 var(--rim),0 0 0 2px #f2a90066} 50% {box-shadow:inset 0 -3px 0 var(--rim),0 0 0 5px #f2a900}}
.piece[data-dim="true"] {opacity:.55}
.piece[data-chain="true"] {box-shadow:inset 0 -3px 0 var(--rim),0 0 0 4px #ffb718,0 0 14px #ffb718}
/* Four-player tables: Saffron (square mark) and Green (bar mark), so no seat depends on colour alone. */
.piece[data-side="2"] {--piece:#c27400;--rim:#7a4800}
.piece[data-side="3"] {--piece:#1f7a4d;--rim:#0f4a2c}
.piece[data-side="2"]:empty::after {content:"";width:26%;aspect-ratio:1;background:#ffffffc0}
.piece[data-side="3"]:empty::after {content:"";width:38%;height:12%;border-radius:2px;background:#ffffffc0}
/* Puli Meka: a padlock on a trapped tiger */
.piece[data-trapped="true"]::before {content:"";position:absolute;top:-22%;right:-22%;width:52%;height:52%;border-radius:50%;background:#ffb718 url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 16 16%22%3E%3Crect x=%222.5%22 y=%227%22 width=%2211%22 height=%228%22 rx=%222%22 fill=%22%232a1a05%22/%3E%3Cpath d=%22M5 7V5a3 3 0 0 1 6 0v2%22 fill=%22none%22 stroke=%22%232a1a05%22 stroke-width=%222%22/%3E%3Ccircle cx=%228%22 cy=%2211%22 r=%221.3%22 fill=%22%23ffb718%22/%3E%3C/svg%3E") center/70% no-repeat;box-shadow:0 1px 3px #0006;z-index:2}

/* Trays: pieces waiting, home, in hand and captured */
.piece-tray {display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:.5rem 1rem;min-height:34px;width:min(100%,520px);margin:.5rem auto;padding:.3rem .6rem;border-radius:100px;
    background:var(--chip);border:1px solid var(--line);transition:box-shadow .25s,background-color .25s}
.piece-tray:empty {visibility:hidden}
.piece-tray[data-active="true"] {background:var(--chip-active);box-shadow:0 0 0 2px #ffb718}
.piece-tray[data-active="true"][data-side="1"] {box-shadow:0 0 0 2px #b23a2e}
.piece-tray[data-active="true"][data-side="0"] {box-shadow:0 0 0 2px #2e3a87}
.tray-group {display:inline-flex;align-items:center;gap:2px}
.tray-group .piece {width:20px;font-size:.6rem}
.tray-group.taken .piece {width:16px;opacity:.75;filter:saturate(.7)}
.tray-group.taken::before {content:"";width:14px;height:14px;margin-inline-end:3px;border-radius:50%;background:conic-gradient(#8f2418 0 25%,transparent 0 50%,#8f2418 0 75%,transparent 0)}
.tray-group b {font-size:.82rem;color:var(--ink);margin-inline-start:3px;font-variant-numeric:tabular-nums}
.tray-group.home b {color:#2f7d55}
/* Beehive pawns for the cross games */
#board.pachisi .piece,#board.chaupar .piece,#board.pagade .piece,#board.dayakattai .piece,
.piece-tray .piece:not([data-kind]) {border-radius:50% 50% 42% 42% / 62% 62% 38% 38%}

/* Throwing implements */
.throw-tray {display:flex;align-items:center;justify-content:center;gap:clamp(4px,1.4vw,10px);min-height:54px;margin:.6rem auto 0;padding:.45rem .8rem;width:min(100%,520px);
    border-radius:.9rem;background:linear-gradient(#5b3a22,#3f2716);box-shadow:inset 0 3px 8px #0007,0 1px 0 #fff4}
.throw-tray .throw-value {margin-inline-start:.4rem;color:#ffe3a0;font-size:1.05rem;white-space:nowrap;font-variant-numeric:tabular-nums}
.throw-tray[data-bonus="true"] {box-shadow:inset 0 3px 8px #0007,0 0 0 3px #ffb718,0 0 18px #ffb71888}
.throw-tray[data-bonus="true"] .throw-value {color:#ffcf4d}
.throw-tray.pasa,.throw-tray.brass {padding-top:1.2rem}
.throw-tray .count-mark {position:absolute;top:-.55rem;right:-.45rem;min-width:1.2rem;height:1.2rem;padding:0 .2rem;border-radius:999px;background:#ffb718;color:#2a1a05;font:800 .72rem/1.2rem system-ui,sans-serif;text-align:center;box-shadow:0 1px 3px #0006;font-style:normal}
.throw-tray .throw-again {margin-inline-start:.5rem;padding:.15rem .6rem;border-radius:999px;background:#ffb718;color:#2a1a05;font-weight:800;font-size:.85rem}
.implement {position:relative;display:inline-block;flex:none}
/* Chaupar: dice already played this throw are dimmed; the one being played is ringed. */
.implement[data-played="true"] {opacity:.35}
.implement[data-current="true"] {outline:2px solid #ffcf4d;outline-offset:2px;border-radius:4px}
/* Cowrie: domed back, or toothed mouth when it lands up */
.cowrie .implement {width:clamp(18px,4.6vw,26px);aspect-ratio:.72;border-radius:50%;background:radial-gradient(ellipse at 40% 30%,#fffaf0,#efdcb6 45%,#c9a777);box-shadow:0 2px 2px #0006}
.cowrie .implement[data-face="1"]::after {content:"";position:absolute;inset:18% 42%;border-radius:40%;background:repeating-linear-gradient(0deg,#3b2410 0 2px,#e6cfa3 2px 4px);box-shadow:0 0 0 1px #6b4a25}
.cowrie .implement[data-face="1"] {box-shadow:0 2px 2px #0006,0 0 0 2px #ffcf4d}
/* Bamboo sticks for Tabul Phale: one side painted */
.stick .implement {width:clamp(9px,2.2vw,12px);height:clamp(54px,12vw,70px);border-radius:5px;transform-origin:50% 50%;
    background:repeating-linear-gradient(180deg,transparent 0 30%,#7f6328 30% 33%),linear-gradient(90deg,#c9ad62,#ead690 50%,#b8994a);box-shadow:0 2px 3px #0007}
.stick .implement[data-face="1"] {background:repeating-linear-gradient(180deg,transparent 0 30%,#5a1a12 30% 33%),linear-gradient(90deg,#a3261c,#d0412f 50%,#8c1f16);box-shadow:0 2px 3px #0007,0 0 0 2px #ffcf4d}
/* Pasa: long ivory dice; Dayakattai: brass */
.pasa .implement,.brass .implement {display:inline-flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;width:clamp(20px,5vw,26px);height:clamp(56px,13vw,72px);border-radius:6px;
    background:linear-gradient(90deg,#d9c08f,#f7ebcf 50%,#d2b682);box-shadow:inset 0 5px 0 #a98a55,inset 0 -5px 0 #a98a55,0 2px 3px #0007}
.brass .implement {background:linear-gradient(90deg,#8a6a1f,#e8c45a 45%,#fff2b0 50%,#c9a23a 60%,#6e5214);box-shadow:inset 0 5px 0 #6e5214,inset 0 -5px 0 #6e5214,0 2px 3px #0007}
.pasa .implement i,.brass .implement i {width:6px;aspect-ratio:1;border-radius:50%;background:#3b2a08;box-shadow:inset 0 1px 1px #000}
.pasa .implement i {background:#7a1d16}
.face-value {position:absolute;left:50%;top:-1.35em;transform:translateX(-50%);font:800 .8rem/1 var(--font);font-style:normal;color:#ffe3a0}
/* Throw legend under the tray */
.throw-legend {width:min(100%,520px);margin:.35rem auto 0;font-size:.82rem;color:var(--muted)}
.throw-legend summary {cursor:pointer;font-weight:700;min-height:44px;display:flex;align-items:center;justify-content:center}
.throw-legend div {display:flex;flex-wrap:wrap;justify-content:center;gap:.3rem;padding:.35rem 0}
.throw-legend span {display:grid;place-items:center;min-width:2.6rem;padding:.2rem .35rem;border-radius:.5rem;background:var(--surface);border:1px solid var(--line);font-weight:800;color:var(--ink)}
.throw-legend small {font-weight:600;color:var(--muted);font-size:.68rem}
.throw-legend span[data-bonus="true"] {background:var(--gold-tint);border-color:#d4a017}
.throw-legend span[data-current="true"] {outline:3px solid #2f7d55;outline-offset:1px}

/* Motion layer and board callouts */
#board .moving-token {position:absolute;z-index:4;pointer-events:none;background:radial-gradient(circle at 35% 30%,#ffffff55 0 18%,transparent 40%),var(--piece);border:0;will-change:transform;box-shadow:inset 0 -3px 0 var(--rim),0 8px 12px #24180f55}
.spark {position:absolute;z-index:5;width:7px;aspect-ratio:1;border-radius:50%;pointer-events:none}
.seed {position:absolute;z-index:5;width:10px;aspect-ratio:1;border-radius:50%;pointer-events:none;background:radial-gradient(circle at 35% 30%,#ff8a7a,#c4121a 55%,#6e0a0e)}
.confetti {position:fixed;inset:0;width:100vw;height:100vh;pointer-events:none;z-index:50}
.board-banner {position:absolute;left:50%;z-index:20;transform:translate(-50%,-50%);max-width:88%;padding:.6rem 1.1rem;border-radius:100px;pointer-events:none;
    font:700 clamp(1rem,3.4vw,1.45rem)/1.2 var(--font);text-align:center;white-space:normal;box-shadow:0 8px 24px #0005}
.board-banner.gold {background:#ffb718;color:#2a1a05;border:3px solid #fff3cf}
.board-banner.green {background:#2f7d55;color:#fff;border:3px solid #d8f0dc}
.board-banner.soft {background:#fffcf3;color:var(--ink);border:2px solid var(--outline);font-size:clamp(.92rem,2.8vw,1.15rem)}
.engrave {position:absolute;bottom:4%;right:8%;font:700 .5rem/1 var(--font);font-style:normal;color:#f2d68d;opacity:.6;pointer-events:none}
.safe-chip {position:absolute;left:50%;top:0;z-index:6;padding:.1rem .45rem;border-radius:100px;background:#2f7d55;color:#fff;font:700 .7rem/1.3 var(--font);font-style:normal;white-space:nowrap;pointer-events:none}
.stack-count {position:absolute;top:-30%;right:2%;z-index:3;padding:0 .25em;border-radius:100px;background:var(--surface);color:var(--ink);font:800 .55rem/1.3 var(--font);font-style:normal;box-shadow:0 1px 2px #0006}
.chain-chip {padding:.1rem .45rem;border-radius:100px;background:#ffb718;color:#2a1a05;font:800 .8rem/1.3 var(--font);font-style:normal}

/* ===========================================================================
   BOARDS — race family (Pachisi, Chaupar, Pagade, Dayakattai, Vimaana, Ashtapada, Tabul Phale)
   =========================================================================== */
#board.race-board {display:grid;direction:ltr;gap:1px;padding:6px;border-radius:12px}
#board.race-board.pachisi,#board.race-board.chaupar,#board.race-board.pagade,#board.race-board.dayakattai {width:min(100%,640px)}
.play-area:has(#board.race-board) {padding-inline:clamp(.4rem,1.5vw,1.5rem)}
#board.race-board .race-square {overflow:visible}
#board.race-board .piece-stack {flex-wrap:nowrap;gap:0}
#board.race-board .piece-stack .piece {width:78%;flex:none;font-size:clamp(.42rem,1.3vw,.62rem)}
#board.race-board .piece-stack .piece + .piece {margin-inline-start:-52%}
.race-square[data-preview="true"] {box-shadow:inset 0 0 0 3px #ffb718!important}
/* Pachisi: maroon velvet, gold stitching */
#board.pachisi {background:radial-gradient(circle,#2b0a10 0 1px,transparent 1px) 0 0/6px 6px,#4a0d18}
#board.pachisi .race-square {background:repeating-linear-gradient(45deg,#7a1020 0 2px,#8b1426 2px 4px);border:1px dashed #d4a017;color:#f2d68d}
#board.pachisi .race-square.safe {background:repeating-linear-gradient(45deg,#8c5a0e 0 2px,#a06a12 2px 4px)}
/* Chaupar: indigo silk brocade */
#board.chaupar {background:#101a3f}
#board.chaupar .race-square {background:linear-gradient(135deg,#25357a,#1a2a66);border:1px solid #c9a227;color:#f2d68d}
#board.chaupar .race-square.safe {background:radial-gradient(circle,#c9a227 0 14%,transparent 15%),conic-gradient(from 22.5deg,#c9a22799 0 6%,transparent 0 12.5%,#c9a22799 0 18.5%,transparent 0 25%,#c9a22799 0 31%,transparent 0 37.5%,#c9a22799 0 43.5%,transparent 0 50%,#c9a22799 0 56%,transparent 0 62.5%,#c9a22799 0 68.5%,transparent 0 75%,#c9a22799 0 81%,transparent 0 87.5%,#c9a22799 0 93.5%,transparent 0),#1a2a66}
#board.chaupar .race-square.safe::after {display:none}
/* Pagade: printed cloth with coloured arms and rangoli castles */
#board.pagade {background:#f5ead2}
#board.pagade .race-square {border:1px solid #6b3f1d}
#board.pagade .race-square[data-arm="n"] {background:#d6463a}
#board.pagade .race-square[data-arm="e"] {background:#2f8a4f}
#board.pagade .race-square[data-arm="s"] {background:#e3a21a}
#board.pagade .race-square[data-arm="w"] {background:#2e5aa8}
#board.pagade .race-square.safe {background:conic-gradient(from 22deg,#fff3d4 0 12.5%,#f2b33d 0 25%,#fff3d4 0 37.5%,#f2b33d 0 50%,#fff3d4 0 62.5%,#f2b33d 0 75%,#fff3d4 0 87.5%,#f2b33d 0)}
/* Dayakattai: chalk on a dark floor */
#board.dayakattai {background:radial-gradient(circle at 30% 20%,#4a4a46,#2c2c29)}
#board.dayakattai .race-square {background:transparent;border:2px solid #f3f0e6d9;color:#f3f0e6;box-shadow:0 0 2px #fff6}
#board.dayakattai .race-square.safe::after {opacity:.8;filter:invert(1)}
/* Charkoni: the home square at the centre of the cross */
.charkoni {grid-row:9 / span 3;grid-column:9 / span 3;align-self:stretch;justify-self:stretch;border-radius:4px;pointer-events:none;
    background:conic-gradient(#b23a2e 0 25%,#2e3a87 0 50%,#b23a2e 0 75%,#2e3a87 0);clip-path:polygon(0 0,100% 0,100% 100%,0 100%);
    box-shadow:inset 0 0 0 3px #d4a017;opacity:.9}
.charkoni[data-ready="true"] {animation:home-ready 1.2s ease-in-out infinite}
@keyframes home-ready {0%,100% {opacity:.9} 50% {opacity:.55}}
#board.dayakattai .charkoni {background:none;border:2px solid #f3f0e6;box-shadow:none;background-image:linear-gradient(45deg,transparent 48%,#f3f0e6 48% 52%,transparent 52%),linear-gradient(-45deg,transparent 48%,#f3f0e6 48% 52%,transparent 52%)}
#board.chaupar .charkoni {background:repeating-conic-gradient(#c9a227 0 10deg,#25357a 0 20deg);box-shadow:inset 0 0 0 3px #c9a227,inset 0 0 0 10px #101a3f}
/* Ashtapada: carved and painted wood (Tabul Phale shares its squares) */
#board.ashtapada {background:linear-gradient(135deg,#6b3a1e,#4a2410);box-shadow:inset 0 0 0 3px #a8703f}
#board.ashtapada .race-square,#board.tabul-phale .race-square {border:1px solid #7a4a24;
    background:repeating-linear-gradient(90deg,#d8a868 0 3px,#c8955a 3px 7px)}
#board.ashtapada .race-square.safe {background:repeating-linear-gradient(90deg,#e9c48a 0 3px,#dcb276 3px 7px)}
#board.tabul-phale .race-square:nth-child(n+25) {background:repeating-linear-gradient(90deg,#c46a4a 0 3px,#b45c3e 3px 7px)}
#board.ashtapada .race-square.safe::after,#board.vimaana .race-square.safe::after {opacity:.55}
/* Vimaana: kalamkari cloth. Ashtapada: castles shield. Tabul Phale: Chitari lacquer box */
#board.vimaana {background:#f4ecd8;box-shadow:inset 0 0 0 4px #2e3a6b,inset 0 0 0 7px #9c2a1e}
#board.vimaana .race-square {background:repeating-linear-gradient(45deg,#00000008 0 2px,transparent 2px 5px),#fbf5e6;border:1.5px solid #2e3a6b;color:#2e3a6b}
#board.vimaana .race-square.safe {background:radial-gradient(circle,#9c2a1e 0 10%,transparent 11%),#f1e2bd}
#board.vimaana .race-square[data-own="0"] {background-color:#2e3a872e}
#board.vimaana .race-square[data-own="1"] {background-color:#b23a2e2e}
.chariot {position:absolute;inset:14%;pointer-events:none;opacity:.7;background:#9c2a1e;
    clip-path:polygon(50% 0,62% 18%,58% 18%,70% 40%,64% 40%,78% 66%,90% 66%,90% 76%,10% 76%,10% 66%,22% 66%,36% 40%,30% 40%,42% 18%,38% 18%)}
#board.vimaana .route-arrows path,#board.ashtapada .route-arrows path,#board.tabul-phale .route-arrows path {stroke:#2a1a05;opacity:.28}
#board.tabul-phale {border-radius:18px;padding:12px;background:linear-gradient(#a3221c,#7d1812);
    box-shadow:inset 0 0 0 4px #e0a100,inset 0 0 0 7px #2f7d55,inset 0 0 0 10px #e0a100,0 6px 14px #0005}
#locked-score {text-align:center;font-weight:800;margin:.35rem 0 0;color:var(--ink)}
/* Direction arrows (several race boards and Ashta Chamma) */
#board .route-arrows {position:absolute;inset:8px;width:calc(100% - 16px);height:calc(100% - 16px);pointer-events:none;z-index:1}
.route-arrows path {fill:none;stroke:#f2efe6;stroke-width:.035;stroke-linecap:round;stroke-linejoin:round;opacity:.35}
.route-arrows path[data-inner="true"] {stroke-dasharray:.04 .04}

/* ===========================================================================
   BOARDS — Ashta Chamma: chalk lines on a cement floor, tamarind-seed pieces, inner-ring gate
   =========================================================================== */
#board.ashta-chamma {display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:0;padding:8px;border-radius:12px;background:radial-gradient(circle at 70% 20%,#56544f,#34332f)}
#board.ashta-chamma .square {aspect-ratio:1;padding:.2rem;background:transparent;border:2px solid #f2efe6d0;color:#f2efe6}
#board.ashta-chamma .square[data-source="true"] {box-shadow:inset 0 0 0 2px var(--info)}
#board.ashta-chamma .square.safe::after {filter:invert(1);opacity:.7}
#board.ashta-chamma .square[data-route="true"] {background:#ffffff1f}
#board.ashta-chamma .square[data-destination="true"] {background:#ffb71840;box-shadow:inset 0 0 0 3px #366245}
#board.ashta-chamma .piece {border-radius:40%}
#board.ashta-chamma .square[data-locked="true"] {outline:2px dashed #ffffff66;outline-offset:-6px}
#board.ashta-chamma[data-lock-side="0"] .square[data-locked="true"] {outline-color:#8ea0ff99}
#board.ashta-chamma[data-lock-side="1"] .square[data-locked="true"] {outline-color:#ff9c8c99}
.gate-lock {position:absolute;top:6%;right:6%;width:28%;aspect-ratio:1;pointer-events:none;opacity:.85;
    background:radial-gradient(circle at 50% 70%,#1a1a18 0 16%,transparent 18%),linear-gradient(#f2efe6,#f2efe6) 50% 100%/80% 58% no-repeat;
    -webkit-mask:radial-gradient(circle at 50% 30%,transparent 0 22%,#000 23% 34%,transparent 35%) top/100% 60% no-repeat,linear-gradient(#000,#000) bottom/80% 58% no-repeat;
    mask:radial-gradient(circle at 50% 30%,transparent 0 22%,#000 23% 34%,transparent 35%) top/100% 60% no-repeat,linear-gradient(#000,#000) bottom/80% 58% no-repeat;background-color:#f2efe6}

/* ===========================================================================
   BOARDS — Moksha Patam (Snakes & Ladders): painted cloth, meanings, progress rail
   =========================================================================== */
#board.moksha-patam {display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:2px;padding:6px;border-radius:10px;background:#7a2a1a}
#board.moksha-patam .square {flex-direction:column;overflow:hidden;background:#f3d9a0;color:#5a3216;border:0;border-radius:3px;font-size:clamp(.5rem,1.6vw,.78rem);align-items:start;justify-items:start;padding:2px 3px}
#board.moksha-patam .square:nth-child(4n+1) {background:#e8c07a}
#board.moksha-patam .square:nth-child(4n+3) {background:#f6e2b8}
/* !important: square 100 keeps its gold even when a snake or ladder path runs through it. */
#board.moksha-patam .square[data-square="100"] {background:radial-gradient(circle,#f6d365,#c9952b)!important;display:grid;place-items:center;padding:0;font-weight:800}
#board.moksha-patam .square[data-path] {background-color:inherit;font-weight:700}
#board.moksha-patam .piece-stack {z-index:2}
#board.moksha-patam .square[data-path="up"] {background:#cfe3b4;color:#244734}
#board.moksha-patam .square[data-path="down"] {background:#f1c9b4;color:#743622}
#board.moksha-patam .square .meaning {position:absolute;left:2px;right:2px;bottom:1px;z-index:2;font:700 clamp(.36rem,1.15vw,.56rem)/1.05 var(--font);text-transform:uppercase;letter-spacing:.02em;opacity:.8;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;background:#fff7e3cc;border-radius:2px;padding-inline:1px}
#board.moksha-patam .meaning[data-kind="virtue"] {color:#8a5a00}
#board.moksha-patam .meaning[data-kind="vice"] {color:#8b1e2d}
#board .snl-layer {position:absolute;inset:6px;width:calc(100% - 12px);height:calc(100% - 12px);pointer-events:none;z-index:1}
.snl-layer .ladder line {stroke:#6b4423;stroke-width:.07;stroke-linecap:round}
.snl-layer .ladder .rung {stroke-width:.05}
.snl-layer .snake-body {fill:none;stroke:#2f7d55;stroke-width:.22;stroke-linecap:round;opacity:.85}
.snl-layer .snake-scales {fill:none;stroke:#e0a100;stroke-width:.08;stroke-dasharray:.06 .14;stroke-linecap:round}
.snl-layer .snake-head {fill:#1f5c3d}
.moksha {font:400 clamp(.5rem,1.6vw,.85rem)/1 var(--font-display);color:#fffaf0;text-shadow:0 1px 2px #6b3a0b;animation:moksha-glow 2.4s ease-in-out infinite}
.moksha::before {content:"";display:block;width:1.3em;height:.7em;margin:0 auto .15em;background:radial-gradient(ellipse at 50% 100%,#fffaf0 0 40%,transparent 42%) 50% 100%/50% 100% no-repeat,radial-gradient(ellipse at 0 100%,#fffaf0 0 40%,transparent 42%) 0 100%/50% 80% no-repeat,radial-gradient(ellipse at 100% 100%,#fffaf0 0 40%,transparent 42%) 100% 100%/50% 80% no-repeat}
@keyframes moksha-glow {0%,100% {opacity:.65} 50% {opacity:1}}
#race-rail {position:relative;width:min(100%,520px);height:10px;margin:1rem auto .4rem;border-radius:100px;background:linear-gradient(90deg,#e8c07a,#c9952b);box-shadow:inset 0 1px 2px #0004}
#race-rail .piece {position:absolute;top:50%;width:20px;transform:translate(-50%,-50%);transition:left .6s cubic-bezier(.22,1,.36,1)}
#race-rail .piece[data-active="true"] {box-shadow:inset 0 -3px 0 var(--rim),0 0 0 3px #ffb718}

/* ===========================================================================
   BOARDS — hunt and alignment games: Puli Meka / Bagh Chal (granite), Navakankari (sandstone)
   =========================================================================== */
#board.puli-meka {background:radial-gradient(circle at 30% 25%,#9b9289,#7c736b 70%);box-shadow:inset 0 0 30px #0005}
#board.puli-meka polyline {stroke:#3b3631;stroke-width:.06;filter:drop-shadow(0 .02px 0 #fff6)}
#phase-pill {width:max-content;max-width:100%;margin:.6rem auto .2rem;padding:.35rem .9rem;border-radius:100px;background:var(--pill);border:1px solid var(--line);font-weight:700;font-size:.88rem;text-align:center}
#board .point.tiger-start:not(:has(.piece)) {box-shadow:0 0 0 2px #e0a10088}
#board .threat-arc {fill:none;stroke:#d8402f;stroke-width:.09;stroke-dasharray:.12 .08;opacity:1;animation:threat-draw .4s ease-out}
@keyframes threat-draw {from {stroke-dashoffset:1;opacity:0}}
#board.navakankari {background:radial-gradient(circle at 40% 30%,#d8b88a,#b8925f);box-shadow:inset 0 0 24px #5a3a1a66}
#board.navakankari polyline {stroke:#5d3d1c;stroke-width:.07}
#board polyline.mill-glow {stroke:#ffb718;stroke-width:.16;stroke-linecap:round;opacity:.9;stroke-dasharray:20;stroke-dashoffset:20;animation:mill-draw .6s ease-out forwards}
@keyframes mill-draw {to {stroke-dashoffset:0}}
#board.navakankari .piece {border-radius:48% 52% 50% 50% / 52% 48% 52% 48%}
#board.navakankari .piece[data-side="0"] {--piece:#5a2e14;--rim:#2b1407}
#board.navakankari .piece[data-side="1"] {--piece:#f3ece0;--rim:#b9ad98;color:#3b2410}
#board.navakankari .piece[data-side="1"]:empty::after {background:#8a7a60}
#board.navakankari .point:not(:has(.piece)) {background:radial-gradient(circle at 50% 40%,#6b4a26,#a8814f 70%);background-clip:padding-box;border-color:transparent;box-shadow:inset 0 2px 4px #0008;color:#fff3cf}
/* !important: a threatened mill point is empty, and empty Navakankari cup-holes carry their own inset shadow. */
#board .point.mill-threat {box-shadow:0 0 0 3px #f5a52499!important}

/* ===========================================================================
   BOARDS — capture games: Sholo Guti (chalk on red earth), Dash Guti (woven cloth), Pretwa (lime on terracotta)
   =========================================================================== */
#board.sholo-guti {background:radial-gradient(circle at 40% 30%,#8e4a31,#6d3420)}
#board.sholo-guti polyline {stroke:#f2efe6;stroke-width:.05;opacity:.9}
#board.dash-guti {background:repeating-linear-gradient(0deg,#00000010 0 2px,transparent 2px 4px),repeating-linear-gradient(90deg,#00000010 0 2px,transparent 2px 4px),#d9c39a}
#board.dash-guti polyline {stroke:#7a2a1a;stroke-width:.06}
#board.pretwa {border-radius:50%;background:radial-gradient(circle,#c4704a,#a5522f 70%,#8a4126)}
#board.pretwa polyline {stroke:#f5f0e1;stroke-width:.06}
#board.sholo-guti .point:not(:has(.piece)),#board.pretwa .point:not(:has(.piece)),#board.dash-guti .point:not(:has(.piece)) {background:#00000030;background-clip:padding-box;border-color:transparent;color:#fff}
#board.sholo-guti .piece,#board.dash-guti .piece,#board.pretwa .piece {background:radial-gradient(circle at 40% 35%,#ffffff30 0 12%,transparent 30%),var(--piece);box-shadow:inset 0 -2px 3px #0005,0 1px 2px #0006}
#board .point.chain-target {outline:2px dashed #ffb718;outline-offset:3px;border-radius:50%}

/* ===========================================================================
   BOARDS — Chaturanga: carved board, red lacquer against ivory, drawn pieces
   =========================================================================== */
#board.chaturanga {display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:0;direction:ltr;padding:6px;border-radius:8px;background:#4a2a12}
.chess-square {position:relative;aspect-ratio:1;padding:0;border-radius:0;background:#e2c48f;color:#f3e9d2;font-weight:700}
.chess-square[data-dark="1"] {background:#9a6a3a}
.chess-square[data-side="1"] {color:#8c3026}
/* The last move's squares get a gold tint (app.js marks them "from"/"to"; the old "true" selector never matched). */
.chess-square[data-last="from"],.chess-square[data-last="to"] {box-shadow:inset 0 0 0 999px #ffd34d55}
.chess-square[data-highlight="true"] {box-shadow:inset 0 0 0 4px #2f7d55cc}
.chess-square .glyph {width:84%;height:84%;overflow:visible}
#board .chess-square svg.glyph {position:static;width:84%;height:84%}
.chess-square .glyph-body,.chess-square .glyph-base {fill:#f3e9d2;stroke:#3b2410;stroke-width:1.1;stroke-linejoin:round}
.chess-square[data-side="1"] .glyph-body,.chess-square[data-side="1"] .glyph-base {fill:#9e2b25;stroke:#3a0d0a}
.chess-square:not(:disabled) .glyph {filter:drop-shadow(0 2px 0 #0004)}
#board.chaturanga + #actions p {display:none}
.play-area:has(#board.chaturanga) #actions > p {display:none}
/* Check, destinations, captured strips. !important: check shows through the highlight ring. */
.chess-square[data-check="true"] {box-shadow:inset 0 0 0 999px #d6454555,inset 0 0 18px #d64545!important;animation:check-pulse .6s ease-in-out 2}
@keyframes check-pulse {50% {box-shadow:inset 0 0 0 999px #d6454588,inset 0 0 24px #d64545}}
.chess-square[data-dest="move"]::after {content:"";position:absolute;width:26%;aspect-ratio:1;border-radius:50%;background:#2f7d55bb;pointer-events:none}
.chess-square[data-dest="capture"]::after {content:"";position:absolute;inset:6%;border-radius:50%;border:4px solid #2f7d55bb;pointer-events:none}
.chess-square[data-highlight="true"]:not([data-dest]) {box-shadow:inset 0 0 0 4px #ffb718}
.chess-square[data-dest] {box-shadow:none}
.chess-taken {display:flex;flex-wrap:wrap;justify-content:center;gap:2px;min-height:28px;width:min(100%,520px);margin:.4rem auto;padding:.2rem .5rem;border-radius:100px;background:var(--chip);border:1px solid var(--line)}
.chess-taken[data-active="true"] {box-shadow:0 0 0 2px #ffb718}
.chess-taken svg.glyph {width:22px;height:22px}
.chess-taken .glyph-body {fill:#f3e9d2;stroke:#3b2410;stroke-width:1.2}
.chess-taken svg[data-side="1"] .glyph-body {fill:#9e2b25;stroke:#3a0d0a}

/* ===========================================================================
   BOARDS — Pallanguzhi and Ali Guli Mane: boat-shaped rosewood, carved pits, manjadi seeds
   =========================================================================== */
#board.pallanguzhi {position:relative;display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:clamp(3px,1vw,7px);width:min(100%,640px);
    padding:clamp(10px,3vw,18px) clamp(34px,9vw,60px);border:0;border-radius:50% / 22%;
    background:repeating-linear-gradient(92deg,#0000000f 0 2px,transparent 2px 9px),linear-gradient(#9a5a2c,#5e3218);box-shadow:inset 0 2px 0 #ffffff30,0 6px 0 #3a1d0c,0 10px 18px #0006}
#board.pallanguzhi button {position:relative;aspect-ratio:1;padding:0;overflow:visible;border:0;border-radius:50%;background:radial-gradient(circle at 50% 40%,#3a1d0c,#6b3a1e 72%);
    box-shadow:inset 0 4px 8px #000a,0 1px 0 #ffffff26;color:#342416;font-weight:800;font-size:clamp(.85rem,3vw,1.2rem)}
#board.pallanguzhi button:disabled {color:#fbebcc}
#board.pallanguzhi button:not(:disabled) {box-shadow:inset 0 4px 8px #000a,0 0 0 2px #ffcf4d}
#board.pallanguzhi button[data-lands] {box-shadow:inset 0 4px 8px #000a,0 0 0 3px #fff3d4}
#board.pallanguzhi button b {position:absolute;right:-4px;bottom:-4px;min-width:1.4em;padding:0 .3em;border-radius:100px;background:var(--chip-active);color:var(--ink);font-size:.72rem;line-height:1.4;box-shadow:0 1px 2px #0006}
#board.pallanguzhi button[data-gain]:not([data-gain=""])::after {content:attr(data-gain);position:absolute;top:-12px;left:50%;translate:-50% 0;padding:0 .35em;border-radius:100px;background:#2e7d32;color:#fff;font:800 .72rem/1.4 var(--font)}
.seeds {position:absolute;inset:0;pointer-events:none}
.seeds i {position:absolute;width:22%;aspect-ratio:1;border-radius:50%;transform:translate(-50%,-50%);background:radial-gradient(circle at 35% 30%,#ff8a7a,#c4121a 55%,#6e0a0e);box-shadow:0 1px 1px #0008}
.store {position:absolute;top:50%;translate:0 -50%;display:grid;place-items:center;width:clamp(26px,7vw,46px);height:70%;border-radius:40%;
    background:radial-gradient(circle at 50% 40%,#3a1d0c,#6b3a1e 72%);box-shadow:inset 0 4px 8px #000a;color:#ffe3a0;font-weight:800}
.store[data-side="0"] {right:clamp(4px,1.2vw,10px)}
.store[data-side="1"] {left:clamp(4px,1.2vw,10px)}
/* Hand, direction, landing preview */
.sow-hand {position:absolute;z-index:6;display:grid;place-items:center;width:clamp(30px,7vw,40px);aspect-ratio:1;border-radius:50% 50% 45% 45%;pointer-events:none;
    transform:translate(-50%,-80%);background:radial-gradient(circle at 50% 30%,#f2c9a0,#c98a5a);border:2px solid #fff3d4;color:#3a1d0c;font-weight:800;font-size:.85rem;box-shadow:0 6px 10px #0006;transition:left .12s ease-out,top .12s ease-out}
.sow-arrow {position:absolute;top:50%;width:clamp(12px,3vw,18px);height:40%;translate:0 -50%;pointer-events:none;opacity:.55;border:2px solid #ffe3a0;border-left:0;border-radius:0 100px 100px 0}
.sow-arrow.right {right:clamp(26px,7vw,52px)}
.sow-arrow.left {left:clamp(26px,7vw,52px);transform:scaleX(-1)}
.sow-direction {display:flex;gap:.5rem;margin:0 0 .6rem}
.sow-direction button {flex:1 1 0}

/* ===========================================================================
   BOARDS — Carrom: plywood, black frame, netted pockets, markings, ringed coins
   =========================================================================== */
#board.carrom-board {position:relative;aspect-ratio:1;border:clamp(10px,3.4vw,22px) solid #3b1f10;border-radius:10px;touch-action:none;cursor:crosshair;
    background:repeating-linear-gradient(100deg,#0000000a 0 2px,transparent 2px 11px),linear-gradient(135deg,#f3d9a4,#e2bf7f);box-shadow:inset 0 0 0 2px #00000030,0 6px 14px #0005}
.carrom-lines {position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.carrom-lines line {stroke:#3b1f10;stroke-width:.35}
.carrom-lines .arrow {stroke-width:.4;stroke-dasharray:1.2 .8}
.carrom-lines .base-dot,.carrom-lines .centre-dot {fill:#c1121f;stroke:#3b1f10;stroke-width:.3}
.carrom-lines .outer-ring {fill:none;stroke:#3b1f10;stroke-width:.35}
.carrom-lines .petal {fill:#c1121f55;stroke:#3b1f10;stroke-width:.2}
#board.carrom-board[data-turn="1"] .carrom-lines line:nth-child(-n+2),#board.carrom-board[data-turn="0"] .carrom-lines line:nth-child(n+3):nth-child(-n+4) {stroke:#2f7d55;stroke-width:.7}
.carrom-disc {position:absolute;transform:translate(-50%,-50%);width:4.8%;aspect-ratio:1;border-radius:50%;background:#eee1bc;border:1px solid #6c4b35}
.carrom-disc[data-side="4"] {background:#222;width:8%}
.carrom-disc.pocket {width:8%;background:repeating-linear-gradient(45deg,#ffffff14 0 1px,transparent 1px 4px),repeating-linear-gradient(-45deg,#ffffff14 0 1px,transparent 1px 4px),radial-gradient(circle,#000 55%,#2a2a2a);border:2px solid #1a0d05}
.carrom-disc:not(.pocket) {box-shadow:0 2px 3px #0006;background:repeating-radial-gradient(circle,#0000 0 2px,#00000020 2px 3px),#f4ead2;border:1px solid #b8a27a}
.carrom-disc[data-side="1"]:not(.pocket) {background:repeating-radial-gradient(circle,#0000 0 2px,#ffffff18 2px 3px),#1c1c1c;border-color:#000}
.carrom-disc[data-side="2"]:not(.pocket) {background:repeating-radial-gradient(circle,#0000 0 2px,#ffffff22 2px 3px),#c1121f;border-color:#6e0a0e}
.carrom-disc[data-side="3"] {z-index:2;width:6.5%;background:radial-gradient(circle,#ffffff 0 30%,#2f7d55 31% 38%,#f7f3e6 39%);border:2px solid #2f7d55}   /* the striker */
.carrom-aim {display:none}   /* replaced by .aim-guide */
.aim-guide {position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:3;overflow:visible}
.aim-line {stroke:#2f7d55;stroke-width:.6;stroke-dasharray:2 1.4}
.aim-guide .aim-line.bounce {opacity:.65;stroke-dasharray:1 1.4}
.pull-line {stroke:#3b1f1088;stroke-width:.5}
.power-ring {fill:none;stroke:#2f7d55;stroke-width:1.1;transform-box:fill-box;transform-origin:center;rotate:-90deg}
.power-ring[data-level="mid"] {stroke:#e0a100}
.power-ring[data-level="high"] {stroke:#c1121f}
.carrom-playback {position:absolute;inset:0;pointer-events:none;z-index:3}
.carrom-tip {text-align:center;font-weight:700;color:var(--muted);margin:.5rem 0 0}

/* ===========================================================================
   CHARACTER REACTIONS — a face badge per side at the board's edge, beside that side's tray (public/faces.js;
   faces from public/reactions.js). Never over the board. The badge uses theme tokens (light and dark); the
   faces keep their own folk palette, and marks drawn outside a face use currentColor. Script animates only
   transform and opacity. Settings: the Character Reactions switch sits with Animation Speed and Family Mode.
   =========================================================================== */
.face-row {display:flex;align-items:center;justify-content:center;gap:.5rem;width:min(100%,600px);margin:.4rem auto}
.face-row[data-top="true"] {flex-direction:row-reverse}
.face-row > .piece-tray, .face-row > .chess-taken {flex:1 1 auto;min-width:0;margin:0}
/* The Madhubani double rim: a dark outer line and a thin inner one. */
.face-badge {position:relative;flex:none;width:clamp(48px,13vw,60px);aspect-ratio:1;border-radius:50%;color:var(--ink);
    background:var(--surface);border:2px solid var(--ink-2);box-shadow:inset 0 0 0 3px var(--surface),inset 0 0 0 4px var(--line);
    cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:manipulation}
.face-badge[data-active="true"] {border-color:var(--accent)}
.face-badge.guest {width:clamp(40px,10vw,48px)}
.face-badge svg {position:absolute;inset:3px;width:calc(100% - 6px);height:calc(100% - 6px);overflow:visible;transform-origin:50% 85%}
/* The caught goat, dizzy then "phew", for a moment in the tigers' tray. */
.tray-face {display:inline-block;width:24px;height:24px;color:var(--ink)}
.tray-face svg {display:block;width:100%;height:100%;overflow:visible}
#character-reactions {margin:.4rem 0}
#character-reactions[aria-pressed="true"] {background:var(--brand);border-color:var(--brand);color:var(--on-brand)}

/* ===========================================================================
   DIALOGS AND TOASTS (dialog.js). Tokens only, so light and dark both work. No hover-lift.
   =========================================================================== */
.kit-dialog {border:1px solid var(--line);border-radius:var(--radius-lg);padding:1.25rem;width:min(92vw,26rem);background:var(--surface);color:var(--ink);box-shadow:var(--shadow)}
.kit-dialog::backdrop {background:rgba(10,20,14,.55)}
.kit-dialog h2 {margin:0 0 .4rem;font-size:1.35rem}
.kit-dialog p {margin:0 0 1.1rem;line-height:1.5;color:var(--ink-2)}
.kit-dialog label {display:block;margin:0 0 .6rem;line-height:1.5;color:var(--ink-2,var(--ink))}
.kit-select {width:100%;margin:0 0 1.1rem}
.kit-dialog-actions {display:grid;grid-template-columns:1fr 1fr;gap:.6rem}
.kit-button {white-space:normal}
.kit-button.ghost {background:transparent;border:1px solid var(--outline);color:var(--ink)}
.kit-button.danger {background:var(--danger-fill,var(--bad));border-color:var(--danger-fill,var(--bad));color:#fff}
.kit-button:hover {filter:brightness(1.05)}
.kit-toasts {position:fixed;left:50%;top:5.5rem;z-index:80;transform:translateX(-50%);display:grid;gap:.5rem;width:min(92vw,24rem);pointer-events:none}
.kit-toast {padding:.7rem 1rem;border-radius:var(--radius);background:var(--surface);color:var(--ink);border:1px solid var(--line);border-inline-start:4px solid var(--info);box-shadow:var(--shadow);font-weight:600}
.kit-toast.ok {border-inline-start-color:var(--ok)}
.kit-toast.err {border-inline-start-color:var(--bad)}
.kit-toast.warn {border-inline-start-color:var(--warn)}

/* ===========================================================================
   SOCIAL — friends and history (social.js)
   =========================================================================== */
#social {max-width:640px;margin:1rem auto;display:grid;gap:.9rem}
.social-card {display:grid;gap:.5rem;padding:1rem;border-radius:16px;border:1px solid var(--line);background:var(--surface)}
.social-card h2, #social h2 {margin:.2rem 0;font-size:1.15rem}
.social-card input {min-height:48px;padding:0 .8rem;border-radius:12px;border:1px solid var(--outline);background:var(--surface);color:var(--ink);font:inherit;text-transform:uppercase}
.social-nick {margin:0;font-size:1.4rem;font-weight:800;color:var(--brand-500,var(--green))}
.social-code {margin:0;font-size:2rem;font-weight:800;letter-spacing:.2em}
.social-chips {display:flex;flex-wrap:wrap;gap:.4rem}
.social-list {list-style:none;margin:0;padding:0;display:grid;gap:.6rem}
.social-row {display:flex;flex-wrap:wrap;align-items:center;gap:.4rem .8rem;padding:.8rem 1rem;border-radius:14px;border:1px solid var(--line);background:var(--surface)}
.social-actions {display:inline-flex;flex-wrap:wrap;gap:.4rem;margin-inline-start:auto}
#social button.danger {background:var(--danger-fill,var(--bad));border-color:var(--danger-fill,var(--bad));color:#fff}
.social-result {font-weight:800;padding:.1rem .6rem;border-radius:8px}
.social-result.won {color:var(--ok);background:var(--ok-bg)} .social-result.lost {color:var(--bad);background:var(--bad-bg)} .social-result.draw {color:var(--info);background:var(--info-bg)}
.social-empty {color:var(--muted)}

/* ===========================================================================
   LEGAL AND INFO PAGES; fair dice check (/{lang}/fair-dice/{match})
   =========================================================================== */
.product-info a {color:var(--green);text-underline-offset:.15em}
.product-info {max-width:46rem;padding-top:1.5rem;line-height:1.6}
.product-info h1 {font-size:clamp(2.4rem,7vw,4rem)}
.product-info h2 {font-size:1.55rem;margin-bottom:.2rem}
.legal-updated {color:var(--muted);font-size:.85rem;margin-top:2rem}
.fair-status {padding:.75rem 1rem;border-radius:12px;background:var(--surface-2);font-weight:700}
.fair-status[data-ok="true"] {background:var(--ok-bg);color:var(--ok)}
.fair-status[data-ok="false"] {background:var(--bad-bg);color:var(--bad)}
.fair-facts code {word-break:break-all;font-size:.85rem}
.fair-draws {columns:16rem;font-variant-numeric:tabular-nums}
.fair-note {margin:.35rem 0 0;font-size:.82rem;color:var(--muted)}
.fair-note a {font-weight:700}

/* ===========================================================================
   FESTIVALS — frame colours and motifs. The block below is generated.
   =========================================================================== */
/* FESTIVAL FRAMES — generated by tools/festival-motifs.py; do not edit by hand. */
.board-frame {border-radius:22px}
body[data-festival] .board-frame {padding:clamp(8px,2.4vw,16px);background-size:40px 40px;border:3px solid var(--fest-line)}
.festival-card {display:flex;flex-wrap:wrap;align-items:center;gap:.6rem 1rem;margin:0 0 1rem;padding:.9rem 1.1rem;border-radius:16px;border:2px solid var(--fest-line);background:var(--fest-frame);color:var(--fest-text)}
.festival-card strong {font-size:1.1rem}
.festival-card p {margin:0;flex:1 1 16rem}
.festival-card .festival-games {display:flex;flex-wrap:wrap;gap:.4rem}
.festival-card button {min-height:44px;border-radius:999px;border:1px solid var(--fest-line);background:var(--fest-accent);color:var(--fest-on-accent);font-weight:700;padding:.4rem 1rem}
.festival-card .festival-off {background:transparent;color:var(--fest-text)}
body[data-festival="sankranti"] {--fest-frame:#F3D9A4;--fest-accent:#C8501E;--fest-line:#6B3A1E;--fest-text:#1A1A1A;--fest-on-accent:#FFFFFF}
body[data-festival="sankranti"] .board-frame {background-color:#F3D9A4}
body[data-festival="holi"] {--fest-frame:#FCE4F1;--fest-accent:#D6246E;--fest-line:#4B1F6F;--fest-text:#1A1A1A;--fest-on-accent:#FFFFFF}
body[data-festival="holi"] .board-frame {background-color:#FCE4F1}
body[data-festival="eid"] {--fest-frame:#1E4D47;--fest-accent:#E7C46A;--fest-line:#F4E9C8;--fest-text:#FFFFFF;--fest-on-accent:#1A1A1A}
body[data-festival="eid"] .board-frame {background-color:#1E4D47}
body[data-festival="bihu"] {--fest-frame:#F5ECE0;--fest-accent:#B3001B;--fest-line:#5A0A10;--fest-text:#1A1A1A;--fest-on-accent:#FFFFFF}
body[data-festival="bihu"] .board-frame {background-color:#F5ECE0}
body[data-festival="onam"] {--fest-frame:#F9EBC0;--fest-accent:#2F7D32;--fest-line:#B8860B;--fest-text:#1A1A1A;--fest-on-accent:#FFFFFF}
body[data-festival="onam"] .board-frame {background-color:#F9EBC0}
body[data-festival="durga-puja"] {--fest-frame:#FBEFEA;--fest-accent:#C0161F;--fest-line:#3A0B0B;--fest-text:#1A1A1A;--fest-on-accent:#FFFFFF}
body[data-festival="durga-puja"] .board-frame {background-color:#FBEFEA}
body[data-festival="diwali"] {--fest-frame:#2C1B47;--fest-accent:#F5A623;--fest-line:#FFD27A;--fest-text:#FFFFFF;--fest-on-accent:#1A1A1A}
body[data-festival="diwali"] .board-frame {background-color:#2C1B47}
body[data-festival="christmas"] {--fest-frame:#E3EFE5;--fest-accent:#B22222;--fest-line:#1E5631;--fest-text:#1A1A1A;--fest-on-accent:#FFFFFF}
body[data-festival="christmas"] .board-frame {background-color:#E3EFE5}
body[data-motif="kolam"] .board-frame {background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2240%22%20height%3D%2240%22%20viewBox%3D%220%200%2040%2040%22%3E%3Cg%20fill%3D%22%236B3A1E%22%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22/%3E%3Ccircle%20cx%3D%2230%22%20cy%3D%2210%22%20r%3D%222%22/%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2230%22%20r%3D%222%22/%3E%3Ccircle%20cx%3D%2230%22%20cy%3D%2230%22%20r%3D%222%22/%3E%3Ccircle%20cx%3D%2220%22%20cy%3D%2220%22%20r%3D%222%22/%3E%3C/g%3E%3Cpath%20d%3D%22M20%204c9%200%2016%207%2016%2016s-7%2016-16%2016S4%2029%204%2020%2011%204%2020%204z%22%20fill%3D%22none%22%20stroke%3D%22%23C8501E%22%20stroke-width%3D%221.6%22/%3E%3C/svg%3E")}
body[data-motif="gulal"] .board-frame {background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2240%22%20height%3D%2240%22%20viewBox%3D%220%200%2040%2040%22%3E%3Ccircle%20cx%3D%2211%22%20cy%3D%2212%22%20r%3D%227%22%20fill%3D%22%23D6246E%22%20opacity%3D%22.55%22/%3E%3Ccircle%20cx%3D%2229%22%20cy%3D%2227%22%20r%3D%228%22%20fill%3D%22%23F5B700%22%20opacity%3D%22.5%22/%3E%3Ccircle%20cx%3D%2230%22%20cy%3D%229%22%20r%3D%224%22%20fill%3D%22%232A9D8F%22%20opacity%3D%22.55%22/%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2231%22%20r%3D%224%22%20fill%3D%22%234B1F6F%22%20opacity%3D%22.4%22/%3E%3C/svg%3E")}
body[data-motif="crescent"] .board-frame {background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2240%22%20height%3D%2240%22%20viewBox%3D%220%200%2040%2040%22%3E%3Cpath%20d%3D%22M15%208a11%2011%200%201%200%209%2017%209%209%200%201%201-9-17z%22%20fill%3D%22%23E7C46A%22/%3E%3Cpath%20d%3D%22M30%206l1.2%203.6H35l-3%202.2%201.1%203.6-3-2.2-3%202.2%201.1-3.6-3-2.2h3.8z%22%20fill%3D%22%23F4E9C8%22/%3E%3C/svg%3E")}
body[data-motif="gamosa"] .board-frame {background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2240%22%20height%3D%2240%22%20viewBox%3D%220%200%2040%2040%22%3E%3Crect%20width%3D%2240%22%20height%3D%2240%22%20fill%3D%22%23FFFDF8%22/%3E%3Crect%20y%3D%224%22%20width%3D%2240%22%20height%3D%225%22%20fill%3D%22%23B3001B%22/%3E%3Crect%20y%3D%2231%22%20width%3D%2240%22%20height%3D%225%22%20fill%3D%22%23B3001B%22/%3E%3Cpath%20d%3D%22M20%2014l6%206-6%206-6-6z%22%20fill%3D%22%23B3001B%22/%3E%3Cpath%20d%3D%22M20%2017l3%203-3%203-3-3z%22%20fill%3D%22%23FFFDF8%22/%3E%3C/svg%3E")}
body[data-motif="pookalam"] .board-frame {background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2240%22%20height%3D%2240%22%20viewBox%3D%220%200%2040%2040%22%3E%3Cg%20transform%3D%22translate%2820%2020%29%22%3E%3Ccircle%20r%3D%2212%22%20fill%3D%22%23F5B700%22/%3E%3Ccircle%20r%3D%228%22%20fill%3D%22%23E2611B%22/%3E%3Ccircle%20r%3D%224%22%20fill%3D%22%232F7D32%22/%3E%3Cellipse%20rx%3D%222.4%22%20ry%3D%225%22%20cy%3D%22-14%22%20fill%3D%22%23B8860B%22%20transform%3D%22rotate%280%29%22/%3E%3Cellipse%20rx%3D%222.4%22%20ry%3D%225%22%20cy%3D%22-14%22%20fill%3D%22%23B8860B%22%20transform%3D%22rotate%2845%29%22/%3E%3Cellipse%20rx%3D%222.4%22%20ry%3D%225%22%20cy%3D%22-14%22%20fill%3D%22%23B8860B%22%20transform%3D%22rotate%2890%29%22/%3E%3Cellipse%20rx%3D%222.4%22%20ry%3D%225%22%20cy%3D%22-14%22%20fill%3D%22%23B8860B%22%20transform%3D%22rotate%28135%29%22/%3E%3Cellipse%20rx%3D%222.4%22%20ry%3D%225%22%20cy%3D%22-14%22%20fill%3D%22%23B8860B%22%20transform%3D%22rotate%28180%29%22/%3E%3Cellipse%20rx%3D%222.4%22%20ry%3D%225%22%20cy%3D%22-14%22%20fill%3D%22%23B8860B%22%20transform%3D%22rotate%28225%29%22/%3E%3Cellipse%20rx%3D%222.4%22%20ry%3D%225%22%20cy%3D%22-14%22%20fill%3D%22%23B8860B%22%20transform%3D%22rotate%28270%29%22/%3E%3Cellipse%20rx%3D%222.4%22%20ry%3D%225%22%20cy%3D%22-14%22%20fill%3D%22%23B8860B%22%20transform%3D%22rotate%28315%29%22/%3E%3C/g%3E%3C/svg%3E")}
body[data-motif="alpona"] .board-frame {background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2240%22%20height%3D%2240%22%20viewBox%3D%220%200%2040%2040%22%3E%3Crect%20width%3D%2240%22%20height%3D%2240%22%20fill%3D%22%23C0161F%22/%3E%3Cpath%20d%3D%22M4%2020c0-9%207-16%2016-16%206%200%2010%204%2010%209%200%204-3%207-7%207-3%200-5-2-5-5%22%20fill%3D%22none%22%20stroke%3D%22%23fff%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22/%3E%3Ccircle%20cx%3D%2231%22%20cy%3D%2231%22%20r%3D%222.2%22%20fill%3D%22%23fff%22/%3E%3C/svg%3E")}
body[data-motif="diya"] .board-frame {background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2240%22%20height%3D%2240%22%20viewBox%3D%220%200%2040%2040%22%3E%3Cpath%20d%3D%22M8%2024h24c-1%206-6%209-12%209s-11-3-12-9z%22%20fill%3D%22%23F5A623%22/%3E%3Cpath%20d%3D%22M20%208c3%204%204%207%202%2010-1%202-3%202-4%200-2-3-1-6%202-10z%22%20fill%3D%22%23FFD27A%22/%3E%3C/svg%3E")}
body[data-motif="stars"] .board-frame {background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2240%22%20height%3D%2240%22%20viewBox%3D%220%200%2040%2040%22%3E%3Cpath%20d%3D%22M20%205l3%209h9l-7%205%203%209-8-6-8%206%203-9-7-5h9z%22%20fill%3D%22%23B22222%22/%3E%3Ccircle%20cx%3D%226%22%20cy%3D%2234%22%20r%3D%221.5%22%20fill%3D%22%231E5631%22/%3E%3Ccircle%20cx%3D%2234%22%20cy%3D%2233%22%20r%3D%221.5%22%20fill%3D%22%231E5631%22/%3E%3C/svg%3E")}
/* END FESTIVAL FRAMES */

/* ===========================================================================
   MODES — Family mode (bigger targets and text), TV (tv.js sets body[data-tv] from the browser's
   user agent: read from the sofa, driven by a remote), Demo (app.js, ?demo=GAME: only the board,
   filling the screen, for recording clips)
   =========================================================================== */
body[data-family="on"] #board .point {width:clamp(30px,9vw,54px)}
body[data-family="on"] #board, body[data-family="on"] #actions, body[data-family="on"] .coach p {font-size:1.12rem}
body[data-family="on"] #actions button {min-height:56px;font-size:1.1rem}
body[data-family="on"] #status {font-size:1.25rem}
body[data-family="on"] #actions .point-choice {position:static;width:auto;height:auto;clip-path:none;padding:.5rem 1rem;border:1px solid var(--outline)}
body[data-tv="on"] {font-size:125%}
body[data-tv="on"] :focus-visible, body[data-tv="on"] :focus {outline:5px solid #ffb718 !important;outline-offset:4px}
body[data-tv="on"] .catalog {grid-template-columns:repeat(auto-fill,minmax(260px,1fr))}
body[data-demo="on"] .site-header, body[data-demo="on"] header, body[data-demo="on"] .site-footer, body[data-demo="on"] #back,
body[data-demo="on"] .match-heading, body[data-demo="on"] .table-info, body[data-demo="on"] #actions, body[data-demo="on"] .match-controls,
body[data-demo="on"] .coach, body[data-demo="on"] #status, body[data-demo="on"] #move-hint, body[data-demo="on"] .reactions,
body[data-demo="on"] #festival-card, body[data-demo="on"] .first-tips, body[data-demo="on"] #error, body[data-demo="on"] .kit-toasts, body[data-demo="on"] #toasts {display:none !important}
body[data-demo="on"] .table-layout {grid-template-columns:1fr;margin:0}
body[data-demo="on"] .play-area {border:0;padding:8px;background:transparent}
body[data-demo="on"] main {max-width:560px;margin:0 auto;padding:0}

/* ===========================================================================
   RESPONSIVE — widest first; a narrower block may override a wider one, so keep this order.
   =========================================================================== */
@media (min-width:1600px) {
    main {max-width:1500px;margin-inline:auto}
    :focus-visible {outline-width:4px}
}
/* Wide screens: the board gets the room; info sits beside it. */
@media (min-width:1100px) {
    .table-layout {grid-template-columns:minmax(0,1fr) minmax(260px,320px)}
    .catalog {grid-template-columns:repeat(auto-fill,minmax(200px,1fr))}
}
@media (max-width:950px) {
    .filters {grid-template-columns:1fr}
}
@media (max-width:700px) {
    .intro {grid-template-columns:1fr auto;gap:.75rem;min-height:0;margin:1rem 0 1.4rem;padding:1.25rem}
    .intro-copy h1 {font-size:clamp(2.25rem,8vw,3.5rem)}
    .hero-art {width:clamp(88px,29vw,180px)}
    .hero-art .hero-board {width:82%;padding:4px;gap:2px}
    .hero-tray {gap:2px;padding:3px}
    .catalog {grid-template-columns:repeat(2,minmax(0,1fr));gap:.65rem}
    .game-art {height:77px}
    .game strong {font-size:clamp(1.15rem,5vw,1.45rem)}
    #table {padding-top:.75rem}
    #table > #back {min-height:44px;margin:.2rem 0 0}
    .table-layout {grid-template-columns:minmax(0,1fr);margin-top:.4rem;row-gap:.5rem}
    .play-area,.table-info {grid-column:1;grid-row:auto}
    .match-heading {gap:.5rem}
    .match-heading h1 {font-size:1.45rem}
    .match-heading #play-mode {font-size:.8rem;margin:0}
    /* The status stays in view while you play. */
    #status {position:sticky;top:0;z-index:5;box-shadow:0 2px 6px #0002}
    #move-hint {display:none}
    /* The tip floats at the bottom of the screen until dismissed, so it is seen without pushing the board down. */
    .play-area > .coach {position:sticky;bottom:.5rem;z-index:6;margin:.5rem 0 0;box-shadow:0 4px 16px #0004}
}
/* Phones: games first. A one-line hero, a compact puzzle row, "Your games" as a swipeable strip,
   so the first game cards show above the fold. */
@media (max-width:640px) {
    .intro {display:block;min-height:0;margin:.4rem 0 .7rem;padding:.75rem 1rem;border-radius:1rem}
    .intro .hero-art, .intro .browse-link {display:none}
    .intro-copy h1 {font-size:clamp(1.35rem,6vw,1.7rem);line-height:1.25}
    .intro-copy h1 br {display:none}
    .intro-copy p {display:none;margin:.4rem 0 0;font-size:.95rem}
    .puzzle-card {grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:.1rem .7rem;padding:.6rem .6rem .6rem .9rem;margin-bottom:.7rem}
    .puzzle-card #puzzle-goal {display:none}
    .puzzle-card .puzzle-label {grid-column:1}
    .puzzle-card .puzzle-streak {grid-column:1;font-size:.85rem}
    .puzzle-card button {grid-column:2;grid-row:1 / span 2;max-width:11rem}
    .your-games h2 {font-size:1.1rem;margin:0}
    .your-games ul {display:flex;overflow-x:auto;gap:.5rem;margin:.3rem 0 .7rem;padding-bottom:.2rem;scroll-snap-type:x mandatory}
    .your-games li {flex:0 0 auto;max-width:78%;scroll-snap-align:start}
    .lobby-tools {display:flex;flex-wrap:wrap;align-items:center;gap:.5rem}
    .lobby-tools h2 {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);margin:.2rem 0 .3rem;flex-basis:100%}
    .lobby-tools .filters {flex-basis:100%}
    .lobby-tools .social-links {flex:1 1 auto}
    #join-panel {margin:0}
    #join-panel summary {margin:0;min-height:44px}
    #game-family {display:flex;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;gap:.4rem;padding-bottom:.2rem}
    #game-family button {flex:none}
    /* Moksha Patam: the virtue/vice word only where a square is wide enough to read it; it stays in each
       square's spoken label and in How to Play (the app does the same). */
    #board.moksha-patam .square .meaning {display:none}
}
/* Phones: give the board the full width and keep tap targets near 44px */
@media (max-width:560px) {
    .play-area {padding:.6rem .35rem}
    #board.race-board {padding:3px}
    #board .point {width:clamp(26px,8.6vw,40px)}
    /* Small pieces get an invisible, larger touch area */
    .piece[data-movable="true"] {touch-action:manipulation}
    .piece[data-movable="true"] > .hit {position:absolute;inset:-70%;border-radius:50%}
    .throw-tray {min-height:46px;padding:.35rem .5rem}
    .piece-tray {gap:.3rem .6rem}
    .board-banner {font-size:1rem;max-width:94%}
    #phase-pill {font-size:.8rem;width:auto}
}
@media (max-width:370px) {
    .intro {grid-template-columns:1fr}
    .hero-art {display:none}
}

/* ---------------------------------------------------------------------------
   DARK MODE — follows the OS unless the page opts into light via data-theme (as the house kit).
   Only token values change; boards keep their wood, cloth, chalk and stone colours.
   The brand stays a deep green here because buttons put white text on it.
   --------------------------------------------------------------------------- */
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){
    color-scheme:dark;
    --brand:#1f6b45; --brand-600:#2b7a50; --brand-500:#6cc495; --brand-300:#2e5a40;
    --brand-soft:#17241a; --brand-mist:#15201a;
    --accent-soft:#3a2c0c; --on-accent:#2a1a05;
    --bg:#0e1511; --surface:#15201a; --surface-2:#1b2720; --chip:#1b2720; --chip-active:#2a3418;
    --ink:#e7efe8; --ink-2:#c3d2c6; --muted:#9db1a2; --line:#263029; --outline:#6a8270; --focus:#67d08a; --on-green:#ffffff; --danger-fill:#b5402c;
    --ok:#67d08a; --ok-bg:#16281d; --bad:#f08a74; --bad-bg:#2b1713; --warn:#e9c069; --warn-bg:#2a2210; --info:#79b2f0; --info-bg:#122133;
    --turn-1-bg:#2b1d16; --turn-1-line:#d0855f; --pill:#1d2a22; --panel:#1b2720; --die:#f4ead2;
    --selected:#2e5a40;
    --shadow-sm:0 1px 2px rgba(0,0,0,.4); --shadow:0 1px 3px rgba(0,0,0,.45),0 10px 30px rgba(0,0,0,.4);
  }
  :root:not([data-theme="light"]) a {color:var(--brand-500)}
  :root:not([data-theme="light"]) .browse-link {color:var(--on-accent)}
  :root:not([data-theme="light"]) .game .game-region,
  :root:not([data-theme="light"]) .game span:last-child {color:var(--muted)}
  /* The wordmark is dark green on transparent: in dark mode draw it in the ink colour, using the image as a mask. */
  :root:not([data-theme="light"]) .logo-word {background:var(--ink);
    -webkit-mask:url(/assets/khelmates-logo-548.png) 95.17% 53.07%/143.31% auto no-repeat;
    mask:url(/assets/khelmates-logo-548.png) 95.17% 53.07%/143.31% auto no-repeat}
  :root:not([data-theme="light"]) .logo-icon {filter:brightness(1.3)}
  :root:not([data-theme="light"]) .throw-legend span[data-bonus="true"] {border-color:#8a6a16}
}

/* ===========================================================================
   REDUCED MOTION (one exception, .piece[data-movable], sits in PIECES because of source order)
   =========================================================================== */
@media (prefers-reduced-motion: reduce) {
    .game, button.game {transition:none}
    #board .recent-square {animation:none}
    #board .point:not(:disabled):has(.piece)::before,
    #board.ashta-chamma .square[data-source="true"]::before,
    #board.pallanguzhi button:not(:disabled)::before {animation:none;opacity:.8}
    #board polyline.mill-glow {animation:none;stroke-dashoffset:0}
    .charkoni[data-ready="true"] {animation:none;box-shadow:inset 0 0 0 4px #ffb718}
    .moksha {animation:none;opacity:1}
    #race-rail .piece {transition:none}
    #board .threat-arc, .piece[data-trapped="true"]::after {animation:none}
    .piece[data-can-capture="true"] {animation:none;box-shadow:0 0 0 4px #f2a900}
    /* Removable pieces stop pulsing; the red ring still marks them (audit 4). */
    .piece[data-removable="true"] {animation:none}
    .chess-square[data-check="true"] {animation:none}
    .sow-hand {transition:none}
    #help > summary::before {transition:none}
    ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) {animation:none}
}
/* View Transitions (app.js swapView): a quick cross-fade between lobby and match. */
::view-transition-old(root), ::view-transition-new(root) {animation-duration:180ms}

/* GAME ART — generated by tools/game-art.py; do not edit by hand. */
.game-art {background-repeat:no-repeat;background-position:center;background-size:auto 88%}
.game-art[class*=" "] i, .game-art[class*=" "] b {display:none}
.game-art.pretwa {background-repeat:no-repeat;background-position:center;background-size:auto 88%;background-image:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%22120%22 height=%2264%22 viewBox=%220 0 120 64%22%3E%3Ccircle cx=%2260%22 cy=%2232%22 r=%2226%22 stroke=%22%23FFF3D8%22 stroke-width=%222%22 fill=%22none%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22/%3E%3Ccircle cx=%2260%22 cy=%2232%22 r=%2213%22 stroke=%22%23FFF3D8%22 stroke-width=%222%22 fill=%22none%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22/%3E%3Cpath d=%22M86.0 32.0L34.0 32.0M73.0 54.5L47.0 9.5M47.0 54.5L73.0 9.5%22 stroke=%22%23FFF3D8%22 stroke-width=%222%22 fill=%22none%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22/%3E%3Ccircle cx=%2234.0%22 cy=%2232.0%22 r=%223.2%22 fill=%22%23FFB718%22/%3E%3Ccircle cx=%2273.0%22 cy=%2232.0%22 r=%223.2%22 fill=%22%23FFB718%22/%3E%3C/svg%3E")}
.game-art.puli-meka {background-repeat:no-repeat;background-position:center;background-size:auto 88%;background-image:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%22120%22 height=%2264%22 viewBox=%220 0 120 64%22%3E%3Cpath d=%22M60 5L30 58H90ZM60 5L50 58M60 5L70 58M45 31H75M37 45H83%22 stroke=%22%23FFF3D8%22 stroke-width=%222%22 fill=%22none%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22/%3E%3Ccircle cx=%2260.0%22 cy=%225.0%22 r=%224.2%22 fill=%22%23FFB718%22/%3E%3Ccircle cx=%2250.0%22 cy=%2245.0%22 r=%222.8%22 fill=%22%23FFF3D8%22/%3E%3Ccircle cx=%2267.0%22 cy=%2231.0%22 r=%222.8%22 fill=%22%23FFF3D8%22/%3E%3C/svg%3E")}
.game-art.moksha-patam {background-repeat:no-repeat;background-position:center;background-size:auto 88%;background-image:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%22120%22 height=%2264%22 viewBox=%220 0 120 64%22%3E%3Cpath d=%22M34.0 6V58M34 6.0H86M44.4 6V58M34 16.4H86M54.8 6V58M34 26.8H86M65.2 6V58M34 37.2H86M75.6 6V58M34 47.6H86M86.0 6V58M34 58.0H86%22 stroke=%22%23FFF3D8%22 stroke-width=%222%22 fill=%22none%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22/%3E%3Cpath d=%22M45 52L58 16M51 54L64 18M47 44h7M50 35h7M53 26h7%22 stroke=%22%23FFF3D8%22 stroke-width=%222%22 fill=%22none%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22/%3E%3Cpath d=%22M78 14c-10 4 4 12-6 18s4 12-6 18%22 stroke=%22%23FFB718%22 stroke-width=%223.2%22 fill=%22none%22 stroke-linecap=%22round%22/%3E%3C/svg%3E")}
.game-art.navakankari {background-repeat:no-repeat;background-position:center;background-size:auto 88%;background-image:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%22120%22 height=%2264%22 viewBox=%220 0 120 64%22%3E%3Cpath d=%22M34 6h52v52h-52zM43 15h34v34h-34zM52 24h16v16h-16zM60 6v18M60 40v18M34 32h18M68 32h18%22 stroke=%22%23FFF3D8%22 stroke-width=%222%22 fill=%22none%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22/%3E%3Ccircle cx=%2243.0%22 cy=%2215.0%22 r=%223.2%22 fill=%22%23FFB718%22/%3E%3Ccircle cx=%2268.0%22 cy=%2232.0%22 r=%223.2%22 fill=%22%23FFB718%22/%3E%3C/svg%3E")}
.game-art.ashta-chamma {background-repeat:no-repeat;background-position:center;background-size:auto 88%;background-image:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%22120%22 height=%2264%22 viewBox=%220 0 120 64%22%3E%3Cpath d=%22M34.0 6V58M34 6.0H86M44.4 6V58M34 16.4H86M54.8 6V58M34 26.8H86M65.2 6V58M34 37.2H86M75.6 6V58M34 47.6H86M86.0 6V58M34 58.0H86M56.8 8.0l6.4 6.4M63.2 8.0l-6.4 6.4M36.0 28.8l6.4 6.4M42.4 28.8l-6.4 6.4M56.8 28.8l6.4 6.4M63.2 28.8l-6.4 6.4M77.6 28.8l6.4 6.4M84.0 28.8l-6.4 6.4M56.8 49.6l6.4 6.4M63.2 49.6l-6.4 6.4%22 stroke=%22%23FFF3D8%22 stroke-width=%222%22 fill=%22none%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22/%3E%3Ccircle cx=%2249.6%22 cy=%2242.4%22 r=%223.2%22 fill=%22%23FFB718%22/%3E%3Ccircle cx=%2270.4%22 cy=%2211.2%22 r=%223.2%22 fill=%22%23FFB718%22/%3E%3C/svg%3E")}
.game-art.pallanguzhi {background-repeat:no-repeat;background-position:center;background-size:auto 88%;background-image:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%22120%22 height=%2264%22 viewBox=%220 0 120 64%22%3E%3Crect x=%228%22 y=%2210%22 width=%22104%22 height=%2244%22 rx=%2222%22 stroke=%22%23FFF3D8%22 stroke-width=%222%22 fill=%22none%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22/%3E%3Ccircle cx=%2218%22 cy=%2222%22 r=%225.2%22 stroke=%22%23FFF3D8%22 stroke-width=%222%22 fill=%22none%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22/%3E%3Ccircle cx=%2218%22 cy=%2242%22 r=%225.2%22 stroke=%22%23FFF3D8%22 stroke-width=%222%22 fill=%22none%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22/%3E%3Ccircle cx=%2232%22 cy=%2222%22 r=%225.2%22 stroke=%22%23FFF3D8%22 stroke-width=%222%22 fill=%22none%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22/%3E%3Ccircle cx=%2232%22 cy=%2242%22 r=%225.2%22 stroke=%22%23FFF3D8%22 stroke-width=%222%22 fill=%22none%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22/%3E%3Ccircle cx=%2246%22 cy=%2222%22 r=%225.2%22 stroke=%22%23FFF3D8%22 stroke-width=%222%22 fill=%22none%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22/%3E%3Ccircle cx=%2246%22 cy=%2242%22 r=%225.2%22 stroke=%22%23FFF3D8%22 stroke-width=%222%22 fill=%22none%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22/%3E%3Ccircle cx=%2260%22 cy=%2222%22 r=%225.2%22 stroke=%22%23FFF3D8%22 stroke-width=%222%22 fill=%22none%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22/%3E%3Ccircle cx=%2260%22 cy=%2242%22 r=%225.2%22 stroke=%22%23FFF3D8%22 stroke-width=%222%22 fill=%22none%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22/%3E%3Ccircle cx=%2274%22 cy=%2222%22 r=%225.2%22 stroke=%22%23FFF3D8%22 stroke-width=%222%22 fill=%22none%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22/%3E%3Ccircle cx=%2274%22 cy=%2242%22 r=%225.2%22 stroke=%22%23FFF3D8%22 stroke-width=%222%22 fill=%22none%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22/%3E%3Ccircle cx=%2288%22 cy=%2222%22 r=%225.2%22 stroke=%22%23FFF3D8%22 stroke-width=%222%22 fill=%22none%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22/%3E%3Ccircle cx=%2288%22 cy=%2242%22 r=%225.2%22 stroke=%22%23FFF3D8%22 stroke-width=%222%22 fill=%22none%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22/%3E%3Ccircle cx=%22102%22 cy=%2222%22 r=%225.2%22 stroke=%22%23FFF3D8%22 stroke-width=%222%22 fill=%22none%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22/%3E%3Ccircle cx=%22102%22 cy=%2242%22 r=%225.2%22 stroke=%22%23FFF3D8%22 stroke-width=%222%22 fill=%22none%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22/%3E%3Ccircle cx=%2232.0%22 cy=%2222.0%22 r=%222.2%22 fill=%22%23FFB718%22/%3E%3Ccircle cx=%2260.0%22 cy=%2242.0%22 r=%222.2%22 fill=%22%23FFB718%22/%3E%3Ccircle cx=%2288.0%22 cy=%2222.0%22 r=%222.2%22 fill=%22%23FFB718%22/%3E%3C/svg%3E")}
.game-art.pachisi {background-repeat:no-repeat;background-position:center;background-size:auto 88%;background-image:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%22120%22 height=%2264%22 viewBox=%220 0 120 64%22%3E%3Cpath d=%22M52 8h16v16h16v16h-16v16h-16v-16h-16v-16h16zM57.3 8v16M57.3 40v16M62.7 8v16M62.7 40v16M36 29.3h16M68 29.3h16M36 34.7h16M68 34.7h16M52 24l16 16M68 24l-16 16%22 stroke=%22%23FFF3D8%22 stroke-width=%222%22 fill=%22none%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22/%3E%3Cellipse cx=%2214%22 cy=%2218%22 rx=%222.6%22 ry=%224%22 fill=%22%23FFB718%22/%3E%3Cellipse cx=%2222%22 cy=%2224%22 rx=%222.6%22 ry=%224%22 fill=%22%23FFB718%22/%3E%3Cellipse cx=%2214%22 cy=%2232%22 rx=%222.6%22 ry=%224%22 fill=%22%23FFB718%22/%3E%3Cellipse cx=%2222%22 cy=%2240%22 rx=%222.6%22 ry=%224%22 fill=%22%23FFB718%22/%3E%3Cellipse cx=%2214%22 cy=%2246%22 rx=%222.6%22 ry=%224%22 fill=%22%23FFB718%22/%3E%3Cellipse cx=%2222%22 cy=%2252%22 rx=%222.6%22 ry=%224%22 fill=%22%23FFB718%22/%3E%3C/svg%3E")}
.game-art.chaupar {background-repeat:no-repeat;background-position:center;background-size:auto 88%;background-image:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%22120%22 height=%2264%22 viewBox=%220 0 120 64%22%3E%3Cpath d=%22M52 8h16v16h16v16h-16v16h-16v-16h-16v-16h16zM57.3 8v16M57.3 40v16M62.7 8v16M62.7 40v16M36 29.3h16M68 29.3h16M36 34.7h16M68 34.7h16M52 24l16 16M68 24l-16 16%22 stroke=%22%23FFF3D8%22 stroke-width=%222%22 fill=%22none%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22/%3E%3Crect x=%228%22 y=%2214%22 width=%227%22 height=%2234%22 rx=%222%22 fill=%22%23FFB718%22/%3E%3Crect x=%2218%22 y=%2214%22 width=%227%22 height=%2234%22 rx=%222%22 fill=%22%23FFB718%22/%3E%3C/svg%3E")}
.game-art.pagade {background-repeat:no-repeat;background-position:center;background-size:auto 88%;background-image:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%22120%22 height=%2264%22 viewBox=%220 0 120 64%22%3E%3Cpath d=%22M52 8h16v16h16v16h-16v16h-16v-16h-16v-16h16zM57.3 8v16M57.3 40v16M62.7 8v16M62.7 40v16M36 29.3h16M68 29.3h16M36 34.7h16M68 34.7h16M52 24l16 16M68 24l-16 16%22 stroke=%22%23FFF3D8%22 stroke-width=%222%22 fill=%22none%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22/%3E%3Cpath d=%22M36 24h16M36 40h16M68 24h16M68 40h16%22 stroke=%22%23FFB718%22 stroke-width=%222.2%22/%3E%3Ccircle cx=%2244.0%22 cy=%2232.0%22 r=%223.2%22 fill=%22%23FFB718%22/%3E%3Ccircle cx=%2276.0%22 cy=%2232.0%22 r=%223.2%22 fill=%22%23FFB718%22/%3E%3C/svg%3E")}
.game-art.dayakattai {background-repeat:no-repeat;background-position:center;background-size:auto 88%;background-image:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%22120%22 height=%2264%22 viewBox=%220 0 120 64%22%3E%3Cpath d=%22M32.0 4V60M32 4.0H88M40.0 4V60M32 12.0H88M48.0 4V60M32 20.0H88M56.0 4V60M32 28.0H88M64.0 4V60M32 36.0H88M72.0 4V60M32 44.0H88M80.0 4V60M32 52.0H88M88.0 4V60M32 60.0H88M58.0 6.0l4.0 4.0M62.0 6.0l-4.0 4.0M34.0 30.0l4.0 4.0M38.0 30.0l-4.0 4.0M58.0 30.0l4.0 4.0M62.0 30.0l-4.0 4.0M82.0 30.0l4.0 4.0M86.0 30.0l-4.0 4.0M58.0 54.0l4.0 4.0M62.0 54.0l-4.0 4.0%22 stroke=%22%23FFF3D8%22 stroke-width=%222%22 fill=%22none%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22/%3E%3Ccircle cx=%2244.0%22 cy=%2248.0%22 r=%223.2%22 fill=%22%23FFB718%22/%3E%3C/svg%3E")}
.game-art.sholo-guti {background-repeat:no-repeat;background-position:center;background-size:auto 88%;background-image:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%22120%22 height=%2264%22 viewBox=%220 0 120 64%22%3E%3Cpath d=%22M44.0 16V48M44 16.0H76M52.0 16V48M44 24.0H76M60.0 16V48M44 32.0H76M68.0 16V48M44 40.0H76M76.0 16V48M44 48.0H76M44 16l32 32M76 16l-32 32M60.0 16L44 32.0L60.0 48L76 32.0ZM60.0 16l-10 -12h20zM60.0 48l-10 12h20z%22 stroke=%22%23FFF3D8%22 stroke-width=%222%22 fill=%22none%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22/%3E%3Ccircle cx=%2244.0%22 cy=%2216.0%22 r=%223.2%22 fill=%22%23FFB718%22/%3E%3Ccircle cx=%2276.0%22 cy=%2248.0%22 r=%223.2%22 fill=%22%23FFB718%22/%3E%3C/svg%3E")}
.game-art.dash-guti {background-repeat:no-repeat;background-position:center;background-size:auto 88%;background-image:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%22120%22 height=%2264%22 viewBox=%220 0 120 64%22%3E%3Cpath d=%22M48.0 20V44M48 20.0H72M60.0 20V44M48 32.0H72M72.0 20V44M48 44.0H72M48 20l24 24M72 20l-24 24M60.0 20L48 32.0L60.0 44L72 32.0ZM60.0 20l-10 -12h20zM60.0 44l-10 12h20z%22 stroke=%22%23FFF3D8%22 stroke-width=%222%22 fill=%22none%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22/%3E%3Ccircle cx=%2248.0%22 cy=%2220.0%22 r=%223.2%22 fill=%22%23FFB718%22/%3E%3Ccircle cx=%2272.0%22 cy=%2244.0%22 r=%223.2%22 fill=%22%23FFB718%22/%3E%3C/svg%3E")}
.game-art.tabul-phale {background-repeat:no-repeat;background-position:center;background-size:auto 88%;background-image:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%22120%22 height=%2264%22 viewBox=%220 0 120 64%22%3E%3Cpath d=%22M52 8h16v16h16v16h-16v16h-16v-16h-16v-16h16zM57.3 8v16M57.3 40v16M62.7 8v16M62.7 40v16M36 29.3h16M68 29.3h16M36 34.7h16M68 34.7h16M52 24l16 16M68 24l-16 16%22 stroke=%22%23FFF3D8%22 stroke-width=%222%22 fill=%22none%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22/%3E%3Crect x=%224%22 y=%2214%22 width=%2220%22 height=%225%22 rx=%222.5%22 fill=%22%23FFB718%22/%3E%3Crect x=%224%22 y=%2224%22 width=%2220%22 height=%225%22 rx=%222.5%22 fill=%22%23FFB718%22/%3E%3Crect x=%2296%22 y=%2236%22 width=%2220%22 height=%225%22 rx=%222.5%22 fill=%22%23FFB718%22/%3E%3Crect x=%2296%22 y=%2246%22 width=%2220%22 height=%225%22 rx=%222.5%22 fill=%22%23FFB718%22/%3E%3C/svg%3E")}
.game-art.vimaana {background-repeat:no-repeat;background-position:center;background-size:auto 88%;background-image:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%22120%22 height=%2264%22 viewBox=%220 0 120 64%22%3E%3Cpath d=%22M34 6h52v52h-52zM43 15h34v34h-34zM52 24h16v16h-16zM60 6v18M60 40v18M34 32h18M68 32h18M34 6l18 18M86 6l-18 18M34 58l18-18M86 58l-18-18%22 stroke=%22%23FFF3D8%22 stroke-width=%222%22 fill=%22none%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22/%3E%3Ccircle cx=%2243.0%22 cy=%2215.0%22 r=%223.2%22 fill=%22%23FFB718%22/%3E%3Ccircle cx=%2268.0%22 cy=%2232.0%22 r=%223.2%22 fill=%22%23FFB718%22/%3E%3C/svg%3E")}
.game-art.chaturanga {background-repeat:no-repeat;background-position:center;background-size:auto 88%;background-image:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%22120%22 height=%2264%22 viewBox=%220 0 120 64%22%3E%3Crect x=%2234.0%22 y=%226.0%22 width=%226.5%22 height=%226.5%22 fill=%22%23FFF3D8%22 opacity=%22.55%22/%3E%3Crect x=%2247.0%22 y=%226.0%22 width=%226.5%22 height=%226.5%22 fill=%22%23FFF3D8%22 opacity=%22.55%22/%3E%3Crect x=%2260.0%22 y=%226.0%22 width=%226.5%22 height=%226.5%22 fill=%22%23FFF3D8%22 opacity=%22.55%22/%3E%3Crect x=%2273.0%22 y=%226.0%22 width=%226.5%22 height=%226.5%22 fill=%22%23FFF3D8%22 opacity=%22.55%22/%3E%3Crect x=%2240.5%22 y=%2212.5%22 width=%226.5%22 height=%226.5%22 fill=%22%23FFF3D8%22 opacity=%22.55%22/%3E%3Crect x=%2253.5%22 y=%2212.5%22 width=%226.5%22 height=%226.5%22 fill=%22%23FFF3D8%22 opacity=%22.55%22/%3E%3Crect x=%2266.5%22 y=%2212.5%22 width=%226.5%22 height=%226.5%22 fill=%22%23FFF3D8%22 opacity=%22.55%22/%3E%3Crect x=%2279.5%22 y=%2212.5%22 width=%226.5%22 height=%226.5%22 fill=%22%23FFF3D8%22 opacity=%22.55%22/%3E%3Crect x=%2234.0%22 y=%2219.0%22 width=%226.5%22 height=%226.5%22 fill=%22%23FFF3D8%22 opacity=%22.55%22/%3E%3Crect x=%2247.0%22 y=%2219.0%22 width=%226.5%22 height=%226.5%22 fill=%22%23FFF3D8%22 opacity=%22.55%22/%3E%3Crect x=%2260.0%22 y=%2219.0%22 width=%226.5%22 height=%226.5%22 fill=%22%23FFF3D8%22 opacity=%22.55%22/%3E%3Crect x=%2273.0%22 y=%2219.0%22 width=%226.5%22 height=%226.5%22 fill=%22%23FFF3D8%22 opacity=%22.55%22/%3E%3Crect x=%2240.5%22 y=%2225.5%22 width=%226.5%22 height=%226.5%22 fill=%22%23FFF3D8%22 opacity=%22.55%22/%3E%3Crect x=%2253.5%22 y=%2225.5%22 width=%226.5%22 height=%226.5%22 fill=%22%23FFF3D8%22 opacity=%22.55%22/%3E%3Crect x=%2266.5%22 y=%2225.5%22 width=%226.5%22 height=%226.5%22 fill=%22%23FFF3D8%22 opacity=%22.55%22/%3E%3Crect x=%2279.5%22 y=%2225.5%22 width=%226.5%22 height=%226.5%22 fill=%22%23FFF3D8%22 opacity=%22.55%22/%3E%3Crect x=%2234.0%22 y=%2232.0%22 width=%226.5%22 height=%226.5%22 fill=%22%23FFF3D8%22 opacity=%22.55%22/%3E%3Crect x=%2247.0%22 y=%2232.0%22 width=%226.5%22 height=%226.5%22 fill=%22%23FFF3D8%22 opacity=%22.55%22/%3E%3Crect x=%2260.0%22 y=%2232.0%22 width=%226.5%22 height=%226.5%22 fill=%22%23FFF3D8%22 opacity=%22.55%22/%3E%3Crect x=%2273.0%22 y=%2232.0%22 width=%226.5%22 height=%226.5%22 fill=%22%23FFF3D8%22 opacity=%22.55%22/%3E%3Crect x=%2240.5%22 y=%2238.5%22 width=%226.5%22 height=%226.5%22 fill=%22%23FFF3D8%22 opacity=%22.55%22/%3E%3Crect x=%2253.5%22 y=%2238.5%22 width=%226.5%22 height=%226.5%22 fill=%22%23FFF3D8%22 opacity=%22.55%22/%3E%3Crect x=%2266.5%22 y=%2238.5%22 width=%226.5%22 height=%226.5%22 fill=%22%23FFF3D8%22 opacity=%22.55%22/%3E%3Crect x=%2279.5%22 y=%2238.5%22 width=%226.5%22 height=%226.5%22 fill=%22%23FFF3D8%22 opacity=%22.55%22/%3E%3Crect x=%2234.0%22 y=%2245.0%22 width=%226.5%22 height=%226.5%22 fill=%22%23FFF3D8%22 opacity=%22.55%22/%3E%3Crect x=%2247.0%22 y=%2245.0%22 width=%226.5%22 height=%226.5%22 fill=%22%23FFF3D8%22 opacity=%22.55%22/%3E%3Crect x=%2260.0%22 y=%2245.0%22 width=%226.5%22 height=%226.5%22 fill=%22%23FFF3D8%22 opacity=%22.55%22/%3E%3Crect x=%2273.0%22 y=%2245.0%22 width=%226.5%22 height=%226.5%22 fill=%22%23FFF3D8%22 opacity=%22.55%22/%3E%3Crect x=%2240.5%22 y=%2251.5%22 width=%226.5%22 height=%226.5%22 fill=%22%23FFF3D8%22 opacity=%22.55%22/%3E%3Crect x=%2253.5%22 y=%2251.5%22 width=%226.5%22 height=%226.5%22 fill=%22%23FFF3D8%22 opacity=%22.55%22/%3E%3Crect x=%2266.5%22 y=%2251.5%22 width=%226.5%22 height=%226.5%22 fill=%22%23FFF3D8%22 opacity=%22.55%22/%3E%3Crect x=%2279.5%22 y=%2251.5%22 width=%226.5%22 height=%226.5%22 fill=%22%23FFF3D8%22 opacity=%22.55%22/%3E%3Crect x=%2234%22 y=%226%22 width=%2252%22 height=%2252%22 stroke=%22%23FFF3D8%22 stroke-width=%222%22 fill=%22none%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22/%3E%3Ccircle cx=%2256.8%22 cy=%2248.2%22 r=%222.6%22 fill=%22%23FFB718%22/%3E%3Ccircle cx=%2263.2%22 cy=%2215.8%22 r=%222.6%22 fill=%22%23FFB718%22/%3E%3C/svg%3E")}
.game-art.ashtapada {background-repeat:no-repeat;background-position:center;background-size:auto 88%;background-image:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%22120%22 height=%2264%22 viewBox=%220 0 120 64%22%3E%3Cpath d=%22M34.0 6V58M34 6.0H86M40.5 6V58M34 12.5H86M47.0 6V58M34 19.0H86M53.5 6V58M34 25.5H86M60.0 6V58M34 32.0H86M66.5 6V58M34 38.5H86M73.0 6V58M34 45.0H86M79.5 6V58M34 51.5H86M86.0 6V58M34 58.0H86M35.5 7.5l3.5 3.5M39.0 7.5l-3.5 3.5M81.0 7.5l3.5 3.5M84.5 7.5l-3.5 3.5M35.5 53.0l3.5 3.5M39.0 53.0l-3.5 3.5M81.0 53.0l3.5 3.5M84.5 53.0l-3.5 3.5M55.0 27.0l3.5 3.5M58.5 27.0l-3.5 3.5M61.5 33.5l3.5 3.5M65.0 33.5l-3.5 3.5M55.0 33.5l3.5 3.5M58.5 33.5l-3.5 3.5M61.5 27.0l3.5 3.5M65.0 27.0l-3.5 3.5%22 stroke=%22%23FFF3D8%22 stroke-width=%222%22 fill=%22none%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22/%3E%3C/svg%3E")}
.game-art.carrom {background-repeat:no-repeat;background-position:center;background-size:auto 88%;background-image:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%22120%22 height=%2264%22 viewBox=%220 0 120 64%22%3E%3Crect x=%2232%22 y=%224%22 width=%2256%22 height=%2256%22 rx=%223%22 stroke=%22%23FFF3D8%22 stroke-width=%222%22 fill=%22none%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22/%3E%3Ccircle cx=%2237%22 cy=%229%22 r=%224%22 fill=%22%23FFF3D8%22/%3E%3Ccircle cx=%2237%22 cy=%2255%22 r=%224%22 fill=%22%23FFF3D8%22/%3E%3Ccircle cx=%2283%22 cy=%229%22 r=%224%22 fill=%22%23FFF3D8%22/%3E%3Ccircle cx=%2283%22 cy=%2255%22 r=%224%22 fill=%22%23FFF3D8%22/%3E%3Ccircle cx=%2260%22 cy=%2232%22 r=%229%22 stroke=%22%23FFF3D8%22 stroke-width=%222%22 fill=%22none%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22/%3E%3Ccircle cx=%2256.0%22 cy=%2230.0%22 r=%222.6%22 fill=%22%23FFB718%22/%3E%3Ccircle cx=%2264.0%22 cy=%2234.0%22 r=%222.6%22 fill=%22%23FFB718%22/%3E%3Ccircle cx=%2260.0%22 cy=%2248.0%22 r=%223.4%22 fill=%22%23FFF3D8%22/%3E%3C/svg%3E")}
.game-art.bagh-chal {background-repeat:no-repeat;background-position:center;background-size:auto 88%;background-image:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%22120%22 height=%2264%22 viewBox=%220 0 120 64%22%3E%3Cpath d=%22M34 6h52M34 6v52M34 19h52M47 6v52M34 32h52M60 6v52M34 45h52M73 6v52M34 58h52M86 6v52M34 6l52 52M86 6l-52 52M60 6l-26 26l26 26l26 -26z%22 stroke=%22%23FFF3D8%22 stroke-width=%222%22 fill=%22none%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22/%3E%3Ccircle cx=%2234.0%22 cy=%226.0%22 r=%223.6%22 fill=%22%23FFB718%22/%3E%3Ccircle cx=%2286.0%22 cy=%226.0%22 r=%223.6%22 fill=%22%23FFB718%22/%3E%3Ccircle cx=%2234.0%22 cy=%2258.0%22 r=%223.6%22 fill=%22%23FFB718%22/%3E%3Ccircle cx=%2286.0%22 cy=%2258.0%22 r=%223.6%22 fill=%22%23FFB718%22/%3E%3Ccircle cx=%2247.0%22 cy=%2232.0%22 r=%222.6%22 fill=%22%23FFF3D8%22/%3E%3Ccircle cx=%2273.0%22 cy=%2245.0%22 r=%222.6%22 fill=%22%23FFF3D8%22/%3E%3C/svg%3E")}
.game-art.ali-guli-mane {background-repeat:no-repeat;background-position:center;background-size:auto 88%;background-image:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%22120%22 height=%2264%22 viewBox=%220 0 120 64%22%3E%3Crect x=%228%22 y=%2210%22 width=%22104%22 height=%2244%22 rx=%2210%22 stroke=%22%23FFF3D8%22 stroke-width=%222%22 fill=%22none%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22/%3E%3Ccircle cx=%2218%22 cy=%2222%22 r=%225.2%22 stroke=%22%23FFF3D8%22 stroke-width=%222%22 fill=%22none%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22/%3E%3Ccircle cx=%2218%22 cy=%2242%22 r=%225.2%22 stroke=%22%23FFF3D8%22 stroke-width=%222%22 fill=%22none%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22/%3E%3Ccircle cx=%2232%22 cy=%2222%22 r=%225.2%22 stroke=%22%23FFF3D8%22 stroke-width=%222%22 fill=%22none%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22/%3E%3Ccircle cx=%2232%22 cy=%2242%22 r=%225.2%22 stroke=%22%23FFF3D8%22 stroke-width=%222%22 fill=%22none%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22/%3E%3Ccircle cx=%2246%22 cy=%2222%22 r=%225.2%22 stroke=%22%23FFF3D8%22 stroke-width=%222%22 fill=%22none%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22/%3E%3Ccircle cx=%2246%22 cy=%2242%22 r=%225.2%22 stroke=%22%23FFF3D8%22 stroke-width=%222%22 fill=%22none%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22/%3E%3Ccircle cx=%2260%22 cy=%2222%22 r=%225.2%22 stroke=%22%23FFF3D8%22 stroke-width=%222%22 fill=%22none%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22/%3E%3Ccircle cx=%2260%22 cy=%2242%22 r=%225.2%22 stroke=%22%23FFF3D8%22 stroke-width=%222%22 fill=%22none%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22/%3E%3Ccircle cx=%2274%22 cy=%2222%22 r=%225.2%22 stroke=%22%23FFF3D8%22 stroke-width=%222%22 fill=%22none%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22/%3E%3Ccircle cx=%2274%22 cy=%2242%22 r=%225.2%22 stroke=%22%23FFF3D8%22 stroke-width=%222%22 fill=%22none%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22/%3E%3Ccircle cx=%2288%22 cy=%2222%22 r=%225.2%22 stroke=%22%23FFF3D8%22 stroke-width=%222%22 fill=%22none%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22/%3E%3Ccircle cx=%2288%22 cy=%2242%22 r=%225.2%22 stroke=%22%23FFF3D8%22 stroke-width=%222%22 fill=%22none%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22/%3E%3Ccircle cx=%22102%22 cy=%2222%22 r=%225.2%22 stroke=%22%23FFF3D8%22 stroke-width=%222%22 fill=%22none%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22/%3E%3Ccircle cx=%22102%22 cy=%2242%22 r=%225.2%22 stroke=%22%23FFF3D8%22 stroke-width=%222%22 fill=%22none%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22/%3E%3Ccircle cx=%2246.0%22 cy=%2222.0%22 r=%222.2%22 fill=%22%23FFB718%22/%3E%3Ccircle cx=%2274.0%22 cy=%2242.0%22 r=%222.2%22 fill=%22%23FFB718%22/%3E%3Cpath d=%22M10 32c0-12 4-18 12-20M110 32c0 12-4 18-12 20%22 stroke=%22%23FFB718%22 stroke-width=%222.4%22 fill=%22none%22 stroke-linecap=%22round%22/%3E%3C/svg%3E")}
/* END GAME ART */
