/* もぐらたたき 固有の見た目（共通は ../common/base.css） */
.board-wrap { max-width: none; position: relative; }
/* 盤は正方形。スマホでも上のバーから下のボタンまで1画面に入るよう、画面の高さに合わせて幅を決める */
#cv {
  display: block; margin: 0 auto; width: min(100%, 540px, calc((100svh - 220px) * 0.956)); min-width: min(100%, 260px);
  aspect-ratio: 480 / 502; height: auto; border-radius: var(--radius); background: #A9D27A;
  touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent;
  cursor: pointer;
}
.board-wrap .callout { top: 40%; }
.play-main { justify-content: center; }

/* 上のバー: のこり時間・得点・コンボ・めあて */
.hud { flex: 1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 16px; font-variant-numeric: tabular-nums; }
.hud b { font-size: 1.15rem; }
.hud .score b { font-size: 1.3rem; }
.hud .combo.on b { color: var(--ok); }
.hud .goal { color: var(--ink-sub); margin-left: auto; }
.hud .goal.done { color: var(--ok); font-weight: 700; }

/* 一時停止 */
.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: 6% 8% auto; }
.result-box .big { margin: 0 0 4px; font-size: 1.6rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.result-box .goal-line { margin: 0 0 8px; font-weight: 700; }
.result-box .goal-line.ok { color: var(--ok); }
.result-box .goal-line.ng { color: var(--ink-sub); }
.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; }
.linkbtn { display: inline-flex; align-items: center; text-decoration: none; }
@media (max-width: 480px) {
  .stage { padding: 8px; }
  .result-box { inset: 3% 3% auto; padding: 14px; }
  .result-box h2 { font-size: 1.25rem; }
  .result-box .big { font-size: 1.35rem; }
  .hud { gap: 0 10px; font-size: .95rem; }
  .hud b { font-size: 1.05rem; }
  .hud .score b { font-size: 1.15rem; }
  .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: 1; --tb-st-lines: 1; --tb-rt: 0px; --tb-st-rt: 0px; }
@media (min-width: 375px) { .turnbar { --tb-msg-lines: 1; --tb-st-lines: 1; } }
@media (min-width: 641px) { .turnbar { --tb-msg-lines: 1; --tb-st-lines: 1; } }
:root:lang(en) .turnbar { --tb-msg-lines: 1; --tb-st-lines: 2; --tb-rt: 0px; --tb-st-rt: 0px; }
@media (min-width: 375px) { :root:lang(en) .turnbar { --tb-msg-lines: 1; --tb-st-lines: 2; } }
@media (min-width: 641px) { :root:lang(en) .turnbar { --tb-msg-lines: 1; --tb-st-lines: 1.25; } }
/* 上のバーの高さ ここまで */
