/* 線つなぎ固有の見た目（共通は ../common/base.css）。盤の中の色は明るい盤の上で見やすい固定色（ダーク表示でも盤は明るい） */
[hidden] { display: none !important; }

.board-wrap { min-height: 200px; }
.bdsvg {
  display: block; width: min(100%, 560px); height: auto; margin: 0 auto; max-height: 72vh;
  user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent;
}
.bdsvg.live { touch-action: none; cursor: pointer; }
.bdsvg .bd { fill: #FBFAF6; stroke: #6E675D; stroke-width: 3; }
.bdsvg .gridlines line { stroke: #D2CDC2; stroke-width: 1.5; }
.bdsvg .ln { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.bdsvg .hint-glow { fill: none; stroke: #FFFFFF; stroke-width: 34; stroke-linecap: round; stroke-linejoin: round; opacity: .95; filter: drop-shadow(0 0 3px #B7791F); }
.bdsvg .end .dot { stroke: #2A2622; stroke-width: 2.5; }
.bdsvg .end.is-conn .dot { stroke-width: 4.5; }
.bdsvg .end .ring { fill: none; stroke: #1F2328; stroke-width: 3; stroke-dasharray: 6 4; }
.bdsvg .empty-mark { fill: none; stroke: #B7791F; stroke-width: 3.5; stroke-dasharray: 7 5; }
.bdsvg .cursor { fill: none; stroke: #B7791F; stroke-width: 4; }
.bdsvg .cursor.is-pen { stroke: #1F2328; stroke-dasharray: none; stroke-width: 5; }
.bdsvg.appear .ends { animation: pop-in .35s ease-out; transform-origin: center; }
@keyframes pop-in { from { opacity: 0; } to { opacity: 1; } }

/* ---------- 道具 ---------- */
.tools { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 12px auto 0; max-width: 560px; }
.tool { display: inline-flex; align-items: center; gap: 6px; padding: 0 14px; font-size: 16px; flex: 1 1 0; justify-content: center; white-space: nowrap; }
.tool svg { width: 20px; height: 20px; flex: none; }
.after { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 12px; }
.status { justify-content: space-between; flex-wrap: wrap; row-gap: 0; }
.st-text { min-width: 0; }
.st-right { display: inline-flex; align-items: center; gap: 12px; margin-left: auto; }
.remain { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.remain b { color: var(--accent); font-size: 20px; }
.remain .pct { margin-left: 10px; font-weight: 400; color: var(--ink-sub); }
.timer { font-weight: 700; font-variant-numeric: tabular-nums; font-size: 18px; min-width: 50px; text-align: right; }
.linkbtn { display: inline-flex; align-items: center; text-decoration: none; }
.tag { display: inline-block; white-space: nowrap; font-size: 14px; font-weight: 700; padding: 0 8px; border-radius: 999px; border: 1.5px solid currentColor; margin-left: 6px; vertical-align: middle; color: var(--accent); }
.tag.best { color: var(--ok); }

.think { margin: 10px auto 0; max-width: 640px; border: 2px solid var(--line); border-radius: var(--radius); padding: 10px 14px; background: var(--surface); }
.think h3 { margin: 0 0 4px; font-size: 16px; }
.think p { margin: 0 0 6px; }
.think p:last-child { margin-bottom: 0; }
.callout { z-index: 3; font-size: clamp(17px, 4vw, 22px); padding: 4px 20px; border-width: 2.5px; }

/* 番号の選択 */
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; font-style: normal; }
.nums { gap: 6px; }
.num-choice span { min-width: 48px; justify-content: center; padding: 0 6px; font-variant-numeric: tabular-nums; }
.num-choice .ck { width: 14px; height: 14px; margin-left: 2px; }
.num-choice .ck path { fill: none; stroke: var(--ok); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 480px) {
  .stage { padding: 8px; }
  .tools { gap: 6px; }
  .tool { padding: 0 6px; font-size: 15px; gap: 4px; min-width: 0; }
  .tools svg { display: none; }
  .controls .btn.icon { padding: 0 9px; }
  .bdsvg { max-height: 64vh; }
  .remain .pct { margin-left: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .bdsvg.appear .ends { animation: none; }
}
/* 上のバーの高さを一定に（No.93。数字は一番長い文が画面の幅（360px・375px 以上・641px 以上）で何行になるか。--tb-rt はふりがなの分。base.css・turnbar.js） */
.turnbar { --tb-msg-lines: 2; --tb-st-lines: 2.25; --tb-rt: 0px; --tb-st-rt: 0px; }
@media (min-width: 375px) { .turnbar { --tb-msg-lines: 2; --tb-st-lines: 2.25; } }
@media (min-width: 641px) { .turnbar { --tb-msg-lines: 2; --tb-st-lines: 1.25; } }
:root:lang(en) .turnbar { --tb-msg-lines: 3; --tb-st-lines: 2.25; --tb-rt: 0px; --tb-st-rt: 0px; }
@media (min-width: 375px) { :root:lang(en) .turnbar { --tb-msg-lines: 3; --tb-st-lines: 2.25; } }
@media (min-width: 641px) { :root:lang(en) .turnbar { --tb-msg-lines: 2; --tb-st-lines: 1.25; } }
/* 上のバーの高さ ここまで */
