/* What the bot is thinking, drawn on the main board (thinking.js): shared by /play and /model. */
.board-wrap .mcell text{font:10px var(--mono);fill:#1d3b5c;pointer-events:none}
.board-wrap .mcell text.light{fill:#fff}
.board-wrap .mcell.landing circle{stroke:#2a78d6;stroke-width:1.5;stroke-dasharray:3 2}
.board-wrap .mcell.played circle{stroke:var(--green);stroke-width:3;stroke-dasharray:none}
.board-wrap.dropping .mass{opacity:0}
.board-wrap .qcell text{font-weight:700;font-size:9.5px}
@media (prefers-reduced-motion:no-preference){
  .board-wrap .mass.flash .mcell{transform-box:fill-box;transform-origin:center;animation:cellin .38s cubic-bezier(.2,.7,.2,1) both}
  @keyframes cellin{from{opacity:0;transform:scale(.55)}to{opacity:1;transform:none}}
  .board-wrap .mass.flash .mcell.played circle{animation:ringin .5s ease .45s both}
  @keyframes ringin{0%{stroke-width:0}60%{stroke-width:5}100%{stroke-width:3}}
  .board-wrap .mass{transition:opacity .28s ease}
}
/* Search on the board: the line it expects (its move, then the reply, in each side's colour), sliding as deeper levels change their mind */
.board-wrap .pvlayer{pointer-events:none}
.board-wrap .pvs circle{fill-opacity:.5;stroke-width:2.5;stroke-dasharray:4 3}
.board-wrap .pvs.x circle{fill:var(--x);stroke:var(--x)}
.board-wrap .pvs.o circle{fill:var(--o);stroke:var(--o)}
.board-wrap .pvs.off{opacity:0}
.board-wrap.dropping .pvlayer{opacity:0}
@media (prefers-reduced-motion: no-preference){
  .board-wrap .pvs{transition:transform .3s cubic-bezier(.2,.7,.2,1),opacity .2s ease}
  .board-wrap .pvs.jump circle{transform-box:fill-box;transform-origin:center;animation:pvjump .6s ease}
  @keyframes pvjump{0%{transform:scale(1)}40%{transform:scale(1.25)}100%{transform:scale(1)}}
}
/* The depth log: one chip per level, d0 to d4; a level that changed the move is marked */
.depthlog{display:flex;flex-wrap:wrap;align-items:center;gap:4px;margin:8px 0 0;font:11.5px var(--mono)}
.depthlog .dlh{font-size:10px;letter-spacing:.4px;text-transform:uppercase;color:var(--muted);margin-right:4px}
.depthlog .dl{padding:2px 7px;border:1px solid var(--line);border-radius:5px;background:#fbfcfa;color:var(--muted);white-space:nowrap}
.depthlog .dl i{font-style:normal;font-size:10px;color:#9aa69f}
.depthlog .dl b{color:var(--ink)}
.depthlog .dl em{font-style:normal}
.depthlog .dl em.pos{color:#2f7a52}.depthlog .dl em.neg{color:#a3443a}
.depthlog .dl.todo{border-style:dashed;color:#b3bcb6}
.depthlog .dl.moved{border-color:var(--gold);box-shadow:inset 3px 0 0 var(--gold)}
.depthlog .dl.now{border-color:var(--green);background:var(--light)}
/* Search, step 1 on the main board: the candidates flash as ghost stones of the side to move, then fold onto the favourite */
.board-wrap .pvcands{pointer-events:none}
.board-wrap .pvcands circle{fill-opacity:.5;stroke-width:2.5;stroke-dasharray:4 3}
.board-wrap .pvcands circle.x{fill:var(--x);stroke:var(--x)}
.board-wrap .pvcands circle.o{fill:var(--o);stroke:var(--o)}
.board-wrap .pvcands circle.keep{opacity:0}
.board-wrap .pvcands circle.gone{opacity:0}
@media (prefers-reduced-motion: no-preference){
  .board-wrap .pvcands circle{transform-box:fill-box;transform-origin:center;animation:candflash .3s cubic-bezier(.2,.7,.2,1) calc(var(--i)*50ms) both}
  .board-wrap .pvcands circle.gone{transition:opacity .25s ease}
  @keyframes candflash{0%{opacity:0;transform:scale(.5)}60%{opacity:1;transform:scale(1.15)}100%{opacity:1;transform:none}}
}
