chess-board-frame { display: block; position: relative; z-index: 1; flex-shrink: 0; max-width: 100%; }
chess-board-frame .board-resize {
  position: absolute; right: 0; bottom: 0; z-index: 30;
  display: flex; align-items: flex-end; justify-content: flex-end;
  width: 28px; height: 28px; min-height: 28px; padding: 3px;
  border: 0; border-radius: 0 0 16px 0;
  background: transparent; box-shadow: none; color: #8a7f5e90;
  cursor: nwse-resize; touch-action: none;
}
chess-board-frame .board-resize:hover { background: transparent; color: var(--accent-dark); }
chess-board-frame .board-resize:focus-visible { outline: 3px solid var(--accent-dark); outline-offset: 2px; }
chess-board-frame .board-resize svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
chess-board-frame:fullscreen { width: 100vw !important; max-width: none; }
chess-board-frame:fullscreen .board-resize { display: none; }
@media print { chess-board-frame .board-resize { display: none; } }

/* Board status stays with the frame rather than the action toolbar. */
chess-board-frame > chess-toolbar.board-turn-controls {
  position: absolute; z-index: 31;
  right: 34px; bottom: 5px; left: auto; top: auto;
  width: max-content; margin: 0; padding: 0; transform: none;
}
chess-board-frame > chess-toolbar.board-turn-controls chess-turn {
  width: 18px; height: 18px; min-height: 18px; border-radius: 50%;
  box-shadow: 0 0 0 2px var(--board-border, #a89a75);
}
