/* ピンボール 固有の見た目（共通は ../common/base.css） */
.board-wrap { max-width: none; }
/* 台は縦向き（横:縦 = 360:640）。スマホでも台とフリッパーのボタンまで1画面に入るよう、画面の高さに合わせて幅を決める */
#cv {
  display: block; margin: 0 auto; width: min(100%, 420px, calc((100svh - 214px) * 0.5625)); min-width: min(100%, 240px);
  aspect-ratio: 360 / 640; height: auto; border-radius: 14px; background: #2A1B11; /* 台の外わく（ダークでも同じ） */
  touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; cursor: pointer;
}
.board-wrap .callout { top: 30%; max-width: 86%; }
.play-main { justify-content: center; }

/* フリッパー・発射のボタン */
.pad-row { display: grid; grid-template-columns: 1fr 1.3fr 1fr; gap: 8px; margin: 8px auto 0; max-width: 460px; }
.pad-row .btn { min-height: 56px; font-weight: 700; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; padding: 6px 8px; line-height: 1.25; }
.pad-row .btn.held { transform: translateY(1px); outline: 3px solid var(--accent); outline-offset: 1px; }
.pad-row .btn small { display: block; font-weight: 400; font-size: 14px; }
.pad-row svg { display: inline-block; width: 18px; height: 18px; vertical-align: -3px; fill: currentColor; margin: 0; }

/* 上のバー */
.hud { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 14px; font-variant-numeric: tabular-nums; }
.hud .score { font-size: 1.35rem; font-weight: 700; min-width: 5.5ch; }
.hud .sub { color: var(--ink-sub); font-size: 14px; font-weight: 400; }
.balls { display: inline-flex; gap: 4px; align-items: center; vertical-align: -1px; }
.balls i { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid var(--ink-sub); display: inline-block; box-sizing: border-box; }
.balls i.on { background: var(--ink-sub); }
.balls i.now { background: var(--accent); border-color: var(--accent); }

.pause-box {
  position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); z-index: 5; max-width: calc(100% - 24px); box-sizing: border-box;
  background: var(--surface); border: 2px solid var(--ink); border-radius: var(--radius); padding: 16px 22px; text-align: center;
}
.pause-title { font-weight: 700; font-size: 1.2rem; margin: 0 0 10px; }
.linkbtn { display: inline-flex; align-items: center; text-decoration: none; }

.result-box { z-index: 6; inset: 6% 5% auto; max-height: 90%; overflow: auto; }
.result-box .big { margin: 0 0 8px; font-size: 1.6rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.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 .new { color: var(--ok); font-size: 14px; margin-left: 4px; }
@media (max-width: 480px) {
  .stage { padding: 8px; }
  .result-box { inset: 3% 3% auto; padding: 12px; }
  .result-box h2 { font-size: 1.3rem; margin-bottom: 6px; }
  .result-box .big { font-size: 1.3rem; }
  .hud { gap: 2px 10px; font-size: .95rem; }
  .hud .score { font-size: 1.2rem; }
  .turnbar { margin-bottom: 6px; }
  .controls { margin-top: 8px; }
  .pad-row { gap: 6px; }
  .pad-row .btn { min-height: 52px; font-size: 16px; }
  .play-main { gap: 6px; }
  .play-main .btn { padding: 6px 9px; }
  .play-main .linkbtn { display: none; }   /* 幅が足りないので、ルールへの近道はスマホ幅では出さない */
}
/* 上のバーの高さを一定に（No.93。数字は一番長い文が画面の幅（360px・375px 以上・641px 以上）で何行になるか。--tb-rt はふりがなの分。base.css・turnbar.js） */
.turnbar { --tb-msg-lines: 2; --tb-st-lines: 1; --tb-rt: 0px; --tb-st-rt: 0px; }
@media (min-width: 375px) { .turnbar { --tb-msg-lines: 2; --tb-st-lines: 1; } }
@media (min-width: 641px) { .turnbar { --tb-msg-lines: 1; --tb-st-lines: 1; } }
:root:lang(en) .turnbar { --tb-msg-lines: 2; --tb-st-lines: 2; --tb-rt: 0px; --tb-st-rt: 0px; }
@media (min-width: 375px) { :root:lang(en) .turnbar { --tb-msg-lines: 2; --tb-st-lines: 2; } }
@media (min-width: 641px) { :root:lang(en) .turnbar { --tb-msg-lines: 1; --tb-st-lines: 1.5; } }
/* 上のバーの高さ ここまで */
