/* ドットアンドボックス固有の見た目（共通は ../common/base.css） */
#board { user-select: none; -webkit-user-select: none; touch-action: manipulation; display: block; width: 100%; height: auto; }
.board-wrap { max-width: 600px; }

/* 名札の帯: 名前・記号・取った箱の数。手番の人を濃く */
.tag .tag-bg { fill: var(--bg); stroke: var(--line); stroke-width: 2; transition: fill var(--dur), stroke var(--dur); }
.tag .tag-name { font: 700 20px var(--font); fill: var(--ink); }
.tag .tag-name.small { font-size: 16px; }
.tag .tag-score { font: 700 30px var(--font); fill: var(--ink); }
.tag .tag-score.small { font-size: 22px; }
.tag.on .tag-bg { fill: var(--surface); stroke: var(--accent); stroke-width: 5; }
.tag.bump .tag-score { animation: bump .45s ease-out; transform-box: fill-box; transform-origin: center; }
@keyframes bump { 30% { transform: scale(1.35); } }

/* 紙の盤 */
.paper { fill: var(--board); stroke: #CFC9BB; stroke-width: 2; }
.turn-frame { fill: none; stroke-width: 6; opacity: 0; pointer-events: none; transition: opacity var(--dur), stroke var(--dur); }
.turn-frame.on { opacity: .9; }
.dot { fill: #23262B; pointer-events: none; }
.slot { stroke: #B9B2A2; stroke-width: 2.5; stroke-dasharray: 3 7; stroke-linecap: round; pointer-events: none; }
.slot.gone { display: none; }
.ln { stroke-width: 9; stroke-linecap: round; pointer-events: none; }
.box { pointer-events: none; }
.box-mark { pointer-events: none; }

/* 印: 直前の手番の線・直前の線・マウスを乗せた線・キーボードの枠・ヒント・CPUが引く線 */
.halo { stroke-width: 20; stroke-linecap: round; opacity: .22; pointer-events: none; }
.last { fill: #FFFFFF; stroke: #C8453B; stroke-width: 4; pointer-events: none; }
.preview { stroke-width: 9; stroke-linecap: round; opacity: .42; pointer-events: none; }
.cursor { fill: none; stroke: var(--warn); stroke-width: 4; stroke-dasharray: 8 5; pointer-events: none; }
.hintline { stroke: #2F6DB5; stroke-width: 9; stroke-linecap: round; stroke-dasharray: 3 12; pointer-events: none; animation: hint 1.1s ease-in-out infinite; }
.hintring { fill: none; stroke: #2F6DB5; stroke-width: 3.5; stroke-dasharray: 7 5; pointer-events: none; }
.cpuline { stroke-width: 9; stroke-linecap: round; stroke-dasharray: 2 11; pointer-events: none; }
@keyframes hint { 50% { opacity: .4; } }
@media (prefers-reduced-motion: reduce) { .hintline { animation: none; } .tag.bump .tag-score { animation: none; } }
.hit { fill: transparent; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.hit.done { cursor: default; }
#ly-boxes, #ly-slots, #ly-halo, #ly-lines, #ly-marks, #ly-dots, #ly-fx { pointer-events: none; }

.status .pmark { width: 22px; height: 22px; flex: none; }
.board-wrap .callout { top: 1%; padding: 6px 18px; font-size: clamp(16px, 3.8vw, 22px); } /* 名札の帯の上に出す（箱や線に重ねない） */
.stage { padding: 12px; }
@media (max-width: 560px) {
  .stage { margin-left: -8px; margin-right: -8px; } /* 盤だけ左右に広げる（ページの余白は共通の16px。D1） */
  .stage { padding: 6px; }
  .tag .tag-name { font-size: 24px; }
  .tag .tag-name.small { font-size: 19px; }
  .tag .tag-score { font-size: 34px; }
  .tag .tag-score.small { font-size: 26px; }
}

.result-box { inset: 18% 6% auto; padding: 16px 20px; }
.result-box h2 { font-size: 1.4rem; margin-bottom: 6px; }
.result-box ol { margin: 0 0 8px; padding-left: 1.4em; }
.result-box li { font-weight: 700; }
.result-box li svg { width: 18px; height: 18px; vertical-align: -3px; margin-right: 4px; }
@media (max-width: 520px) { .result-box { inset: 14% 0 auto; padding: 12px; } .result-box .controls .btn { padding: 0 12px; } }

.howto img { display: block; width: 100%; max-width: 440px; height: auto; margin: 0 auto; }
.howto figcaption { text-align: center; }
/* 上のバーの高さを一定に（No.93。数字は一番長い文が画面の幅（360px・375px 以上・641px 以上）で何行になるか。--tb-rt はふりがなの分。base.css・turnbar.js） */
.turnbar { --tb-msg-lines: 2; --tb-st-lines: 2; --tb-rt: 0px; --tb-st-rt: 0px; }
@media (min-width: 375px) { .turnbar { --tb-msg-lines: 2; --tb-st-lines: 2; } }
@media (min-width: 641px) { .turnbar { --tb-msg-lines: 1; --tb-st-lines: 1; } }
:root:lang(en) .turnbar { --tb-msg-lines: 3; --tb-st-lines: 1; --tb-rt: 0px; --tb-st-rt: 0px; }
@media (min-width: 375px) { :root:lang(en) .turnbar { --tb-msg-lines: 3; --tb-st-lines: 1; } }
@media (min-width: 641px) { :root:lang(en) .turnbar { --tb-msg-lines: 2; --tb-st-lines: 1; } }
/* 上のバーの高さ ここまで */
