/* One set of native position buttons, two representations of the same graph. */
.rook-view-controls { display: flex; gap: 0; margin-top: 18px; }
.rook-view-controls[hidden], .rook-graph-count[hidden], .rook-graph-key[hidden] { display: none; }
.rook-view-controls button { min-height: 44px; padding: 8px 18px; border: 1px solid #ad93a5; background: #fffbf6; color: var(--ink); font: 13px var(--mono); }
.rook-view-controls button:first-child { border-radius: 4px 0 0 4px; }
.rook-view-controls button + button { border-left: 0; border-radius: 0 4px 4px 0; }
.rook-view-controls button[aria-pressed=true] { background: var(--ink); color: white; }
.rook-view-controls button:focus-visible { outline: 2px solid #7d3251; outline-offset: 3px; }
.rook-graph-count { margin: 12px 0 0; font: 11px/1.6 var(--mono); color: var(--muted); }
.rook-graph-frame { position: relative; width: min(100%,340px); aspect-ratio: 1; margin: 12px auto; }
.rook-graph-edges { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.rook-graph-edges path { fill: none; stroke: #b8a6b4; stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.rook-graph-edges path.is-incident { stroke: #744764; stroke-width: 2.2; }
.rook-graph-frame #rook-board { display: block; position: absolute; inset: 0; margin: 0; }
.rook-graph-frame #rook-board button { position: absolute; width: 44px; height: 44px; min-height: 44px; transform: translate(-50%,-50%); margin: 0; padding: 0; border-radius: 50%; border: 1px solid #a68b9c; font-size: 12px; z-index: 1; }
.rook-graph-frame #rook-board button:nth-child(3n+1) { left: 20%; }
.rook-graph-frame #rook-board button:nth-child(3n+2) { left: 50%; }
.rook-graph-frame #rook-board button:nth-child(3n) { left: 80%; }
.rook-graph-frame #rook-board button:nth-child(-n+3) { top: 20%; }
.rook-graph-frame #rook-board button:nth-child(n+4):nth-child(-n+6) { top: 50%; }
.rook-graph-frame #rook-board button:nth-child(n+7) { top: 80%; }
.rook-graph-frame #rook-board button:focus-visible { outline: 2px solid #7d3251; outline-offset: 3px; }
.rook-graph-frame[data-view=board] .rook-graph-edges { visibility: hidden; }
.rook-graph-frame[data-view=board] #rook-board { display: grid; grid-template-columns: repeat(3,1fr); grid-template-rows: repeat(3,1fr); gap: 3px; inset: 5%; }
.rook-graph-frame[data-view=board] #rook-board button { position: static; width: 100%; height: 100%; transform: none; border-radius: 2px; }
.rook-graph-key { margin: 0 0 12px; color: var(--muted); font-size: 12px; line-height: 1.55; }
