/* ==========================================================================
   Shuffle21 — css/board.css
   Developed by Project Research LLC

   Shared layout for the board-game section (Chess, Checkers, Backgammon).
   Boards and pieces are drawn as inline SVG built entirely in JS — this
   file only handles page layout, not piece/board artwork.
   ========================================================================== */

.chess-layout {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  justify-content: center;
  flex-wrap: wrap;
}

.chess-board-wrap {
  width: min(600px, 92vw);
  flex-shrink: 0;
}

.chess-board-wrap svg {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

.board-square {
  cursor: pointer;
}

.board-square.selectable {
  cursor: pointer;
}

.board-piece {
  cursor: pointer;
}

.board-piece.draggable-disabled {
  cursor: default;
}

.chess-side-panel {
  width: min(260px, 92vw);
  flex-shrink: 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 12px;
  max-height: 600px;
  display: flex;
  flex-direction: column;
}

.move-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  overflow-y: auto;
  font-size: 0.85rem;
  color: var(--color-text);
  flex: 1;
}

.move-list li {
  display: flex;
  gap: 8px;
  padding: 4px 6px;
  border-radius: 6px;
}

.move-list li:nth-child(odd) {
  background: rgba(255, 255, 255, 0.02);
}

.move-list .move-number {
  color: var(--color-text-muted);
  min-width: 24px;
}

.move-list .move-san {
  flex: 1;
}

.thinking-indicator {
  color: var(--color-gold-bright);
  font-style: italic;
}
