/* Spend the available game width on the active board before the side panels. */
@media (min-width: 1100px) and (min-height: 650px) and (orientation: landscape) {
  .game-layout { max-width: 3000px; }
  .play-area {
    grid-template-columns: clamp(255px, 20vw, 360px) minmax(0, 1fr);
    gap: 12px;
  }
  .player-workspace {
    grid-template-columns: minmax(0, 1fr) clamp(220px, 18vw, 330px);
    gap: 12px;
  }
  .play-area .active-area .primary-board { padding: 10px 12px; }
  .active-area .primary-board .board-surface .board-grid,
  .game-layout:has(> .round-transition) .active-area .primary-board .board-surface .board-grid {
    --tile: min(200px, calc((100cqh - 63px) / 5), calc((100cqw - 96px) / 10));
    max-width: 100%;
  }
  .primary-board .board-head { height: 64px; min-height: 64px; }
  .primary-board .board-action-dock { height: 48px; min-height: 48px; }
  .primary-board .floor {
    --floor-stone: clamp(42px, min(5vw, calc((100cqw - 220px) / 7), calc(100cqh / 8)), 96px);
    height: calc(var(--floor-stone) + 19px);
    min-height: calc(var(--floor-stone) + 19px);
    gap: clamp(4px, .5vw, 10px);
    padding-top: 2px;
  }
  .primary-board .floor-title { font-size: clamp(16px, 1vw, 20px); }
  .primary-board .floor-slot { min-width: var(--floor-stone); height: calc(var(--floor-stone) + 17px); gap: 1px; }
  .primary-board .floor-slot .tile { width: var(--floor-stone); height: var(--floor-stone); }
  .primary-board .floor-penalty { font-size: 13px; line-height: 16px; }
}

/* Short screens need more of the panel height for the five stone rows. */
@media (min-width: 1100px) and (min-height: 650px) and (max-height: 800px) and (orientation: landscape) {
  .play-area .active-area .primary-board { padding: 8px 10px; }
  .primary-board .board-head { height: 40px; min-height: 40px; margin-bottom: 4px; }
  .primary-board .board-action-dock { height: 30px; min-height: 30px; padding: 2px 0; }
  .active-area .primary-board .board-surface .board-grid,
  .game-layout:has(> .round-transition) .active-area .primary-board .board-surface .board-grid {
    --tile: min(200px, calc((100cqh - 42px) / 5), calc((100cqw - 96px) / 10));
    grid-template-rows: 22px repeat(5, var(--tile));
    row-gap: 4px;
  }
}
