/* おはじき 固有の見た目（共通は ../common/base.css） */
.board-wrap { max-width: none; position: relative; }
/* 座卓を真上から見た画面（横 320mm・縦 390mm）。スマホでも画面と「はじく」まで1画面に入るよう、画面の高さに合わせて幅を決める */
#cv {
  display: block; margin: 0 auto; width: min(100%, 520px, calc((100svh - 250px) * 0.8205)); min-width: min(100%, 260px);
  aspect-ratio: 320 / 390; height: auto; border-radius: var(--radius); background: #6E6A45; /* 畳の色（ダークでも同じ） */
  touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; cursor: pointer;
}
#cv.waiting { cursor: default; }
#cv.cut { cursor: crosshair; }
#cv.pull { cursor: grab; }
.board-wrap .callout { top: 44%; max-width: 84%; }
.linkbtn { display: inline-flex; align-items: center; text-decoration: none; }
.play-main { justify-content: center; }

/* 操作の列 */
#shotbar { max-width: 520px; margin: 8px auto 0; min-height: 52px; }
.shot-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; }
.power { flex: 1; display: flex; align-items: center; gap: 8px; min-width: 150px; font-weight: 700; }
.power .plabel { white-space: nowrap; }
.power output { min-width: 2.2em; font-weight: 400; font-variant-numeric: tabular-nums; text-align: right; }
#power { flex: 1; height: 44px; accent-color: var(--accent); cursor: pointer; min-width: 80px; }
.aimbtn { min-width: 48px; display: inline-flex; align-items: center; justify-content: center; }
.flick { min-width: 96px; font-weight: 700; }

/* 手番のバー */
.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; }
.stage svg.mc { display: inline-block; vertical-align: middle; flex: none; width: auto; }

.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; gap: 8px; font-size: 1.1rem; margin: 4px 0; font-variant-numeric: tabular-nums; }
.result-box li .rk { min-width: 2.6em; color: var(--ink-sub); font-size: 15px; }
.result-box li .nm { font-weight: 700; min-width: 5em; text-align: left; }
.result-box li .coins { display: inline-flex; flex-wrap: wrap; gap: 1px; max-width: 170px; }
.result-box dl { display: grid; grid-template-columns: auto auto; gap: 2px 16px; justify-content: center; margin: 0 0 8px; }
.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; }
  .power { min-width: 0; }
  .shot-row { gap: 6px; }
  .flick { min-width: 80px; }
  .aimbtn { min-width: 44px; }
}
/* 上のバーの高さを一定に（No.93。数字は一番長い文が画面の幅（360px・375px 以上・641px 以上）で何行になるか。--tb-rt はふりがなの分。base.css・turnbar.js） */
.turnbar { --tb-msg-lines: 3; --tb-st-lines: 2.25; --tb-rt: 0px; --tb-st-rt: 0px; }
@media (min-width: 375px) { .turnbar { --tb-msg-lines: 3; --tb-st-lines: 1.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.75; --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; } }
/* 上のバーの高さ ここまで */
