/* Gomoku — board + review bar layout only.
   The page shell, buttons, overlay and switcher come from css/game.css,
   which is linked first. Shared by all 8 languages. */

.container {
  max-width: 560px;
}

/* Mode / difficulty screens */
.choice-list {
  margin-bottom: 8px;
}

.back-btn {
  margin-top: 12px;
}

/* Game screen */
.status-bar {
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.turn-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: bold;
  color: var(--text);
}

.status-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Slightly smaller than the shared secondary button — this one sits inline in
   the status bar next to the turn indicator. */
.btn-secondary {
  padding: 8px 16px;
  min-height: 40px;
}

.stone-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-block;
  border: 1px solid #ccc;
}

.stone-icon.black {
  background: radial-gradient(circle at 35% 35%, #666, #000);
}

.stone-icon.white {
  background: radial-gradient(circle at 35% 35%, #fff, #ccc);
}

/* The canvas is inline-block so the wrapper hugs it and the win overlay
   covers exactly the board. */
.board-wrap {
  display: inline-block;
}

#board {
  background: #e8c07d;
  border-radius: 8px;
  cursor: pointer;
  max-width: 100%;
  height: auto;
  touch-action: manipulation;
}

.win-actions {
  gap: 10px;
}

/* Move-review bar (shown after a game ends) */
.review-bar {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.review-bar.hidden {
  display: none;
}

.review-label {
  margin: 0;
  font-weight: bold;
  color: var(--text-mute);
}

.review-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.review-counter {
  min-width: 64px;
  font-weight: bold;
  color: var(--text-mid);
  font-variant-numeric: tabular-nums;
}
