/* コイン落とし 固有の見た目（共通は ../common/base.css） */
.board-wrap { max-width: none; }
/* 台は縦長（横:縦 = 360:440）。スマホでも台と「落とす」まで1画面に入るよう、画面の高さに合わせて幅を決める */
#cv {
  display: block; margin: 0 auto; width: min(100%, 460px, calc((100svh - 250px) * 360 / 424)); min-width: min(100%, 260px);
  aspect-ratio: 360 / 424; height: auto; border-radius: 12px; background: #5A3E27; /* 台の木わくの色（ダークでも同じ） */
  touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; cursor: crosshair;
}
@media (min-width: 700px) {
  #cv { width: min(100%, 460px, calc((100svh - 262px) * 360 / 424)); }
}
.board-wrap .callout { top: 30%; max-width: 86%; }
.play-main { justify-content: center; }

/* 落とす操作の列 */
.drop-row { display: flex; align-items: center; gap: 8px; margin: 8px auto 0; max-width: 460px; justify-content: center; }
.drop-row .btn { min-height: 48px; }
.drop-row .arrow { width: 64px; padding: 0; display: inline-flex; align-items: center; justify-content: center; touch-action: none; user-select: none; -webkit-user-select: none; }
.drop-row .arrow svg { width: 22px; height: 22px; fill: currentColor; }
#drop { flex: 1; max-width: 220px; font-weight: 700; }

/* 上のバー */
.hud { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 14px; font-variant-numeric: tabular-nums; }
.hud b { font-size: 1.15rem; }
.hud .sub { color: var(--ink-sub); font-size: 14px; font-weight: 400; }
.hud .next { color: var(--warn); font-weight: 700; }
.hud .chip { font-size: 14px; font-weight: 700; border: 2px solid var(--ok); color: var(--ok); border-radius: 6px; padding: 0 6px; }

.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: 8% 5% auto; max-height: 90%; overflow: auto; }
.result-box .big { margin: 0 0 8px; font-size: 1.45rem; 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.2rem; }
  .hud { gap: 2px 10px; font-size: .95rem; }
  .turnbar { margin-bottom: 6px; }
  .controls { margin-top: 8px; }
  .drop-row { gap: 6px; }
  .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: 2; --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: 3; --tb-st-lines: 2; --tb-rt: 0px; --tb-st-rt: 0px; }
@media (min-width: 375px) { :root:lang(en) .turnbar { --tb-msg-lines: 3; --tb-st-lines: 2; } }
@media (min-width: 641px) { :root:lang(en) .turnbar { --tb-msg-lines: 2; --tb-st-lines: 1; } }
/* 上のバーの高さ ここまで */
