/* ブロック崩し 固有の見た目（共通は ../common/base.css） */
.board-wrap { max-width: none; }
/* 盤は 4:5。スマホでもパドルと「発射」まで1画面に入るよう、画面の高さに合わせて幅を決める */
#cv {
  display: block; margin: 0 auto; width: min(100%, 520px, calc((100svh - 210px) * 0.8)); min-width: min(100%, 260px);
  aspect-ratio: 4 / 5; height: auto; border-radius: var(--radius); background: #FBFAF6; /* 盤の地は紙の色（ダークでも明るいまま） */
  touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; cursor: default;
}
#cv.hide-cursor { cursor: none; }
/* パソコン: 下の2段のボタンまで1画面に入るよう、縦の最大を画面の高さから決める（G1。1280×800 で盤の高さ550） */
@media (min-width: 700px) {
  #cv { width: min(100%, 520px, calc((100svh - 250px) * 0.8)); min-width: min(100%, 300px); }
}
.board-wrap .callout { top: 64%; }
.select {
  font: inherit; font-size: 17px; min-height: var(--tap); padding: 0 12px; min-width: 220px; max-width: 100%;
  border: 2px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); color: var(--ink);
}
.select:focus-visible { outline: 3px solid var(--warn); outline-offset: 2px; }
.play-main { justify-content: center; }
.btn.launch { min-width: 160px; min-height: 52px; font-size: 19px; }
.linkbtn { display: inline-flex; align-items: center; text-decoration: none; }

/* 手番のバー: ステージ・ボールの数・得点 */
.hud { flex: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; font-variant-numeric: tabular-nums; }
.hud .stg { font-weight: 700; }
.hud .lives { display: inline-flex; align-items: center; gap: 3px; }
.hud .lives i { width: 12px; height: 12px; border-radius: 50%; background: var(--ink); display: inline-block; }
.hud .lives i.lost { background: transparent; border: 2px solid var(--ink-sub); }
.hud .score { margin-left: auto; }

/* 一時停止 */
.pause-box {
  position: absolute; left: 50%; top: 45%; transform: translate(-50%, -50%); z-index: 5;
  background: var(--surface); border: 2px solid var(--ink); border-radius: var(--radius); padding: 18px 28px; text-align: center;
}
.pause-title { font-weight: 700; font-size: 1.2rem; margin: 0 0 10px; }

.result-box { z-index: 6; inset: 10% 8% auto; }
.result-box .big { margin: 0 0 8px; font-size: 1.5rem; 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 .new { color: var(--ok); font-weight: 700; }
@media (max-width: 480px) {
  .stage { padding: 8px; }
  .result-box { inset: 6% 4% auto; padding: 16px; }
  .result-box h2 { font-size: 1.3rem; }
  .hud { gap: 2px 10px; font-size: .95rem; }
  .turnbar { margin-bottom: 6px; }
  .controls { margin-top: 8px; }
}
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* 上のバーの高さを一定に（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: 1; --tb-st-lines: 2; } }
@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; } }
/* 上のバーの高さ ここまで */
