/* 将棋崩し 固有の見た目（共通は ../common/base.css） */
.board-wrap { max-width: none; position: relative; }
/* 盤を真上から見た画面（横 274mm・縦 296mm）。スマホでも盤とボタンが1画面に入るよう、画面の高さに合わせて幅を決める */
#cv {
  display: block; margin: 0 auto; width: min(100%, 560px, calc((100svh - 230px) * 0.926)); min-width: min(100%, 280px);
  aspect-ratio: 274 / 296; height: auto; border-radius: var(--radius); background: #4A3322; /* 台の色（ダークでも同じ） */
  touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; cursor: grab;
}
#cv.waiting { cursor: default; }
#cv.hold { cursor: grabbing; }
.board-wrap .callout { top: 40%; max-width: 84%; }
.linkbtn { display: inline-flex; align-items: center; text-decoration: none; }
.play-main { justify-content: center; }

/* 点数の見本（盤の下） */
.legend { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 2px 12px; margin: 6px 0 0; min-height: 26px; font-size: 15px; font-variant-numeric: tabular-nums; color: var(--ink); }
.legend .lg { display: inline-flex; align-items: center; gap: 1px; font-weight: 700; }
.legend .lg img { width: 22px; height: 22px; margin-right: -2px; }
.legend .lg img:last-of-type { margin-right: 3px; }
.legend .lg-head { color: var(--ink-sub); font-size: 14px; }

/* 手番のバー */
.hud { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-variant-numeric: tabular-nums; }
.hud .pl { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; padding: 1px 6px; border-radius: 4px; border: 2px solid transparent; white-space: nowrap; }
.hud .pl.on { border-color: var(--accent); background: var(--accent-soft); }
.hud .mk { font-size: 15px; }
.hud .sub { color: var(--ink-sub); font-size: 14px; font-weight: 400; }
.hud .lives { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; color: var(--ink-sub); font-weight: 400; }
.hud .life { width: 13px; height: 13px; border-radius: 50%; background: var(--ng); display: inline-block; }
.hud .life.off { background: transparent; border: 2px solid var(--line-strong); width: 9px; height: 9px; }

.result-box { z-index: 6; inset: 6% 4% auto; }
.result-box ol { list-style: none; padding: 0; margin: 0 0 10px; }
.result-box li { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px 10px; font-size: 1.1rem; margin: 6px 0; font-variant-numeric: tabular-nums; }
.result-box li .nm { font-weight: 700; min-width: 5em; text-align: left; }
.result-box .got { display: inline-flex; flex-wrap: wrap; gap: 1px; max-width: 240px; justify-content: center; }
.result-box .got img { width: 18px; height: 18px; }
.result-box dl { display: grid; grid-template-columns: auto auto; gap: 2px 16px; justify-content: center; margin: 8px 0; }
.result-box dt { color: var(--ink-sub); text-align: right; }
.result-box dd { margin: 0; text-align: left; font-weight: 700; font-variant-numeric: tabular-nums; }
.result-box .win { color: var(--ok); }
.result-box .lose { color: var(--ng); }
@media (max-width: 480px) {
  .stage { padding: 8px; }
  .result-box { inset: 3% 2% auto; padding: 12px; }
  .result-box h2 { font-size: 1.3rem; }
  .turnbar { margin-bottom: 6px; }
  .controls { margin-top: 8px; }
  .legend { gap: 2px 8px; font-size: 14px; }
}
/* 上のバーの高さを一定に（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: 1; --tb-st-lines: 1.25; } }
:root:lang(en) .turnbar { --tb-msg-lines: 2; --tb-st-lines: 2.75; --tb-rt: 0px; --tb-st-rt: 0px; }
@media (min-width: 375px) { :root:lang(en) .turnbar { --tb-msg-lines: 2; --tb-st-lines: 2.25; } }
@media (min-width: 641px) { :root:lang(en) .turnbar { --tb-msg-lines: 2; --tb-st-lines: 1.25; } }
/* 上のバーの高さ ここまで */
