/* Futoshiki board (archetype 05, grille de chiffres) scoped under .fut-root.
   An n×n grid of number cells with inequality signs sitting in the gaps between
   neighbouring cells. Uses the shared design tokens (gold accent + warm
   neutrals). */

.fut-root {
  --cell: 60px; --gap: 26px;
  --line: #cfc8b8; --ink: #2a2620; --paper: #fbf9f3; --paper-2: #f2eee3;
  --gold: #b68235; --gold-soft: #e7d3a3; --peer: #f6f1e2; --bad: #c8503b;
  display: flex; flex-direction: column; align-items: center; gap: clamp(14px, 3vw, 24px);
  padding: clamp(10px, 2.5vw, 22px) 0;
  color: var(--ink);
}
/* Board tonality is fixed by the surface panel (BOARD_SURFACES.md): the board
   follows our .mode-dark class only, never the OS colour-scheme. */
.fut-root.mode-dark { --line: #3a4030; --ink: #ece8e2; --paper: #232620; --paper-2: #1c1f19; --gold: #d8b65c; --gold-soft: #4a4126; --peer: #2b2f24; --bad: #d9694f; }

.fut-grid { display: grid; justify-content: center; }

.fut-cell {
  inline-size: var(--cell); block-size: var(--cell);
  display: grid; place-items: center;
  background: var(--paper); border: 1.5px solid var(--line); border-radius: 6px;
  font-size: calc(var(--cell) * 0.5); font-weight: 500; font-variant-numeric: tabular-nums;
  cursor: pointer; user-select: none; transition: background 0.1s;
}
.fut-cell.given { font-weight: 800; background: var(--paper-2); cursor: default; }
.fut-cell.peer { background: var(--peer); }
.fut-cell.same { color: var(--gold); font-weight: 800; }
.fut-cell.sel { outline: 3px solid var(--gold); outline-offset: -1px; background: var(--gold-soft); z-index: 2; }
.fut-cell.conflict { color: var(--bad); border-color: var(--bad); }

/* inequality signs live in the gap tracks */
.fut-h, .fut-v { display: grid; place-items: center; color: var(--ink); font-weight: 700; }
.fut-h { inline-size: var(--gap); block-size: var(--cell); font-size: calc(var(--gap) * 0.72); }
.fut-v { inline-size: var(--cell); block-size: var(--gap); font-size: calc(var(--gap) * 0.82); line-height: 0.6; }
.fut-h.bad, .fut-v.bad { color: var(--bad); }
.fut-x { inline-size: var(--gap); block-size: var(--gap); }

.fut-pad { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-inline-size: calc(var(--cell) * 6); }
.fut-key {
  min-inline-size: 46px; block-size: 46px; padding: 0 12px;
  border: 1.5px solid var(--line); border-radius: 9px; background: var(--paper);
  color: var(--ink); font-size: 19px; font-weight: 600; cursor: pointer; font-variant-numeric: tabular-nums;
}
.fut-key:hover { border-color: var(--gold); }
.fut-key:active { background: var(--gold-soft); }

@media (prefers-reduced-motion: reduce) { .fut-cell { transition: none; } }
