/* Hex — plateau family (design/Jeu - Hex). A rhombus of hexagons (inline SVG) on a
   wooden board, the whole thing on the warm leather surface, the same in light and
   dark. Each camp has its stone and its two opposite sides: slate links top to
   bottom, shell links left to right. A side panel names the camps. Scoped .hex-root. */

.hex-root { display: flex; flex-direction: column; align-items: stretch; inline-size: 100%; color: var(--color-text); }

.hex-surface {
  inline-size: 100%; box-sizing: border-box;
  background: #43302b; border-block: 1px solid #2c1f1b;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
  padding: var(--space-6) 0; color: #f4ece5;
}
.hex-inner { max-inline-size: 1060px; margin-inline: auto; padding-inline: var(--space-4); box-sizing: border-box; display: flex; flex-wrap: wrap; gap: var(--space-6); align-items: center; justify-content: center; }

.hex-planche {
  flex: 0 1 auto; padding: 26px 22px; border-radius: 4px; box-sizing: border-box;
  background: linear-gradient(152deg, #7b5638 0%, #603f2e 40%, #4c3427 78%, #5d3f2d 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.26), inset 0 0 0 1px rgba(0, 0, 0, 0.35), inset 0 -3px 0 rgba(0, 0, 0, 0.45), 0 22px 44px rgba(0, 0, 0, 0.40);
}
.hex-wrap { inline-size: 100%; max-inline-size: min(80vw, 460px); margin: 0 auto; }
.hex-svg { display: block; inline-size: 100%; block-size: auto; overflow: visible; }

/* Cells: empty is a lighter wood; stones are slate or shell. */
.hex-cell { fill: #cbb184; stroke: rgba(60, 40, 18, 0.4); stroke-width: 0.06; stroke-linejoin: round; transition: fill 0.18s ease; }
.hex-root.no-motion .hex-cell { transition: none; }
.hex-cell.p1 { fill: #2b2320; }
.hex-cell.p2 { fill: #f2ead9; }
.hex-cell.playable { cursor: pointer; }
.hex-svg:not(.locked) .hex-cell.playable:hover { fill: color-mix(in srgb, #2b2320 30%, #cbb184); }
.hex-cell.last { stroke: rgba(255, 255, 255, 0.9); stroke-width: 0.2; }

/* Coloured board frame: slate top/bottom (yours), shell sides (computer's). */
.hex-edge { stroke-linecap: round; fill: none; }
.hex-edge-h { stroke: #2b2320; stroke-width: 0.34; }
.hex-edge-v { stroke: #e6dcc6; stroke-width: 0.34; }

/* Side panel: turn note + the two camps. */
.hex-side { flex: 0 1 218px; min-inline-size: 200px; display: flex; flex-direction: column; gap: var(--space-4); color: #f4ece5; }
.hex-turn { border-inline-start: 2px solid var(--color-accent-400); padding-inline-start: var(--space-3); font-size: 15px; min-block-size: 1.4em; }
.hex-turn.over { font-family: var(--font-heading); font-weight: 600; color: var(--color-accent-300); }
.hex-side-k { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(244, 236, 229, 0.78); padding-block-end: 6px; border-block-end: 1px solid rgba(244, 236, 229, 0.2); margin-block-end: var(--space-2); }
.hex-camp { display: grid; grid-template-columns: 18px 1fr auto; gap: 10px; align-items: center; min-block-size: 32px; }
.hex-pastille { inline-size: 14px; block-size: 14px; clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%); box-shadow: 0 1px 1px rgba(0, 0, 0, 0.4); }
.hex-pastille.p1 { background: #2b2320; }
.hex-pastille.p2 { background: #f2ead9; }
.hex-camp-n { font-family: var(--font-heading); font-weight: 600; font-size: 15px; }
.hex-camp-c { font-size: 12px; color: rgba(244, 236, 229, 0.72); }

.hex-hint { text-align: center; font-size: 12px; color: var(--color-neutral-600); max-inline-size: 560px; margin-inline: auto; padding-block-start: var(--space-3); }
.lz-variants.hex-inline-chips { margin: 0; }
