/* Play page: one column, the board in the middle; setup above, moves and position below. */
main.play{max-width:560px;padding:36px 20px 60px}
.play-head{text-align:center;margin-bottom:22px}
.play-head h1{font-size:38px;margin-bottom:6px}
.play-head p{margin:0;font-size:14px}

.setup{display:grid;justify-items:center;gap:10px;margin-bottom:18px}
.seg{display:inline-flex;border:1px solid var(--line);border-radius:8px;overflow:hidden;background:#fff;font-size:13px}
.seg label{display:inline-flex;align-items:center;gap:7px;padding:7px 15px;cursor:pointer;user-select:none}
.seg label+label{border-left:1px solid var(--line)}
.seg input{position:absolute;opacity:0;pointer-events:none}
.seg label:has(input:checked){background:var(--green);color:#fff}
.seg label:has(input:focus-visible){outline:2px solid var(--green);outline-offset:-2px}
.seg .dot{display:inline-block;width:11px;height:11px;border-radius:50%;box-shadow:0 0 0 1.5px #fff8}
.dot.x{background:var(--x)}.dot.o{background:var(--o)}
.mode-note{margin:0;font-size:12px;text-align:center;min-height:1.5em}

.table{display:grid;justify-items:center}
.status{font:600 15px/1.3 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;margin:0 0 10px;color:var(--ink)}
.status.done{font:26px/1.2 Georgia,serif;letter-spacing:-.5px;color:var(--green)}
.board-wrap{width:100%;max-width:480px}
.board-wrap .board-svg{display:block;width:100%;height:auto}
.board-wrap .hover-stone{opacity:.35;pointer-events:none}
.board-wrap .drop-stone{opacity:0}
.board-wrap.dropping .drop-stone{opacity:1}
@media (prefers-reduced-motion: no-preference){
  .board-wrap.dropping .drop-stone{animation:drop .3s cubic-bezier(.55,0,1,.45) both}
  @keyframes drop{from{transform:translateY(var(--dy))}to{transform:translateY(0)}}
}

.actions{display:flex;gap:8px;margin:14px 0 6px}
.actions button{font-size:13px}
.actions .primary{background:var(--green);border-color:var(--green);color:#fff}
.actions .primary:hover:not(:disabled){background:#1e4b37}
.moves{display:flex;align-items:center;gap:10px;width:100%;max-width:480px;margin-top:14px;padding:10px 12px;border:1px solid var(--line);border-radius:8px;background:#fff}
.moves .label{font-size:11px;color:var(--muted)}
.moves code{flex:1;font:14px var(--mono);letter-spacing:.5px;overflow-wrap:anywhere}
.moves button{font-size:11px;padding:5px 10px}
.position-form{display:grid;gap:6px;width:100%;max-width:480px;margin-top:12px;font-size:11px;color:var(--muted)}
.position-form input{font-size:13px}
.hint{font-size:11px;margin:12px 0 0}
.error{width:100%;max-width:480px;margin:0 auto 14px}

/* Show its thinking: a switch under the strength; the depth log sits under the board while it is on */
.think-toggle{display:inline-flex;align-items:center;gap:8px;font-size:13px;color:var(--ink);cursor:pointer;user-select:none}
.think-toggle input{position:absolute;opacity:0;width:1px;height:1px}
.think-toggle .knob{position:relative;width:34px;height:20px;border-radius:10px;background:#cfd8d1;transition:background .2s ease}
.think-toggle .knob::after{content:"";position:absolute;top:2px;left:2px;width:16px;height:16px;border-radius:50%;background:#fff;box-shadow:0 1px 2px #0003;transition:transform .2s ease}
.think-toggle input:checked+.knob{background:var(--green)}
.think-toggle input:checked+.knob::after{transform:translateX(14px)}
.think-toggle input:focus-visible+.knob{outline:2px solid var(--green);outline-offset:2px}
.table .depthlog{width:100%;max-width:480px;justify-content:center}

/* Set up a position: the bot pauses, stones alternate; the panel replaces the game buttons */
.setup-panel{width:100%;max-width:480px;margin:14px 0 0;padding:14px 16px;border:1px solid var(--gold);border-radius:10px;background:#fdf9ee}
.setup-panel p{margin:0 0 10px;font-size:12.5px}
.setup-panel .position-form{margin:0}
.setup-panel .actions{justify-content:flex-end;margin:12px 0 0}
.status.setting{color:#8a6a1c}
/* The move list: each move a button (1-7), a gap after each pair; clicking one goes back to the position after it */
.movelist{flex:1;display:flex;flex-wrap:wrap;align-items:center;gap:1px 2px;font:14px var(--mono)}
.movelist button.x:not(:first-child){margin-left:9px}
.movelist button{font:inherit;padding:1px 5px;border:1px solid transparent;border-radius:4px;background:none}
.movelist button:hover:not(:disabled){background:var(--light);border-color:var(--line)}
.movelist button.x{box-shadow:inset 0 -2px 0 var(--x)}.movelist button.o{box-shadow:inset 0 -2px 0 var(--o)}

/* the small formula after a mode's description (Instinct, Consider) */
.mode-note code.math{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.92em;opacity:.75;margin-left:.25em;white-space:nowrap}
