/* Hero game board (scripts/game-board.js). Plain class rules beat the kernel's
   :where() defaults. Tile colour arrives per tile as --c. */
#game-board { width: 100%; max-width: 560px; aspect-ratio: 400 / 320; margin: 0 auto; touch-action: manipulation; cursor: pointer; }
#game-board svg { width: 100%; height: 100%; display: block; overflow: visible; }

#game-board .gb-shadow { fill: rgba(31, 26, 61, .22); stroke: none; }
#game-board .gb-board-side { fill: var(--outline); stroke: color-mix(in srgb, var(--primary) 30%, var(--outline)); stroke-width: 1; }
#game-board .gb-board-top { fill: var(--surface); stroke: color-mix(in srgb, var(--primary) 18%, var(--outline)); stroke-width: 1.2; }
#game-board .gb-board-edge { fill: none; stroke: transparent; }

#game-board .gb-side { fill: color-mix(in oklab, var(--c) 72%, #000); stroke: color-mix(in oklab, var(--c) 55%, #000); stroke-width: .8; }
#game-board .gb-top { fill: var(--c); stroke: color-mix(in oklab, var(--c) 80%, #fff); stroke-width: .8; }
#game-board .gb-edge { fill: none; stroke: rgba(255, 255, 255, .35); stroke-width: .8; }
#game-board .gb-sun { fill: #fff; stroke: none; }
/* Not the shared .msr class: its inline-block/width/overflow throw SVG text off in Safari. */
#game-board .gb-icon { font-family: 'Material Symbols Rounded'; font-weight: normal; font-style: normal; letter-spacing: normal;
  font-feature-settings: 'liga'; font-variation-settings: 'FILL' 1, 'wght' 500, 'GRAD' 0, 'opsz' 24;
  fill: color-mix(in oklab, var(--c) 82%, #000); text-anchor: start; dominant-baseline: central; pointer-events: none; }
#game-board .gb-tile.is-on .gb-top { stroke: #fff; stroke-width: 2.2; }
#game-board .gb-tile.is-on .gb-side { stroke: #fff; stroke-width: 1.4; }

[data-theme="dark"] #game-board .gb-shadow { fill: rgba(122, 108, 253, .35); }
[data-theme="dark"] #game-board .gb-board-side { fill: #0d0b22; stroke: rgba(181, 160, 255, .35); }
[data-theme="dark"] #game-board .gb-board-top { fill: #16132e; stroke: rgba(181, 160, 255, .45); }

/* The caption under the board names the game under the hand */
.gb-label { display: inline-flex; align-items: center; gap: 10px; margin: 6px auto 0; padding: 8px 14px 8px 16px;
  border-radius: 999px; background: var(--surface); border: 1.5px solid var(--outline); box-shadow: var(--shadow-sm);
  font-weight: 800; color: var(--ink); font-size: .95rem; }
.gb-label [data-area] { color: var(--muted); font-weight: 700; }
.gb-badge { font-family: var(--display); font-weight: 700; font-size: .72rem; letter-spacing: .05em; padding: 3px 9px;
  border-radius: 999px; color: var(--on-accent); }
.gb-badge.free { background: var(--mint); }
.gb-badge.full { background: var(--gold); }
