/* Latin Square — daily 5x5 logic grid styles. No clue gutter needed (unlike
   Nonogram): the row/column rule is self-evident from the grid, so all 25
   cells get the full width, sized comfortably over the 24px tap minimum. */

.game-head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--space-3); }
.head-btns { display: flex; gap: 6px; }

#board {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  width: 100%;
  max-width: 300px;
  margin: var(--space-3) auto;
}

.ls-cell {
  aspect-ratio: 1;
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-elev);
  color: var(--text);
  font: inherit;
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  transition: background 120ms var(--ease), border-color 120ms var(--ease), transform 90ms var(--ease);
}
.ls-cell.given { background: var(--surface-2, rgba(255,255,255,0.06)); color: var(--text-dim); cursor: default; }
.ls-cell.empty { color: var(--text-faint); }
.ls-cell.filled { color: var(--accent); border-color: var(--accent); }
.ls-cell.selected { outline: 3px solid var(--accent); outline-offset: -2px; }
.ls-cell:not(.given):not(:disabled):active { transform: scale(0.94); }
.ls-cell:focus-visible { outline: 3px solid var(--text); outline-offset: 2px; }

.ls-palette { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin: 0 0 var(--space-3); }
.ls-swatch {
  width: 48px; height: 48px; border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-elev); color: var(--text);
  font-size: 1.4rem; cursor: pointer; padding: 0;
  transition: transform 90ms var(--ease), background 120ms var(--ease);
}
.ls-swatch:active { transform: scale(0.94); }
.ls-swatch:disabled { opacity: 0.3; cursor: default; }
.ls-swatch:focus-visible { outline: 3px solid var(--text); outline-offset: 2px; }

.ls-actions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: var(--space-2); }
.ls-actions .btn { flex: 1 1 100px; }

#endgame { text-align: center; }
#end-title { font-size: 1.25rem; font-weight: 800; margin: 0 0 6px; }
#end-stats { margin: 0 0 4px; }
#endgame .btn { margin-top: var(--space-2); }
