/* 51 固有の見た目（共通は ../common/base.css） */
#table { display: block; width: 100%; height: auto; user-select: none; -webkit-user-select: none; touch-action: manipulation; }
#table text { pointer-events: none; }
.stage { padding: 10px; }
@media (max-width: 480px) { .stage { padding: 6px; margin-left: -4px; margin-right: -4px; } } /* 盤だけ左右に広げる（ページの余白は共通の16px） */

/* 札 */
.card .piece { filter: var(--shadow-piece); }
.card.lift .piece, .card.picked .piece { filter: var(--shadow-lift); }
#table.my-turn .pick-able { cursor: pointer; }
.card-hit { fill: transparent; }
.slot { fill: rgba(0, 0, 0, .1); stroke: rgba(255, 255, 255, .3); stroke-width: 1.5; stroke-dasharray: 6 5; }

/* 枠 */
.ring { fill: none; stroke-width: 4; pointer-events: none; }
.ring.sel { stroke: #FFE7A3; stroke-width: 5; }
.ring.ok { stroke: #7FD49A; stroke-width: 5; }
.ring.bad { stroke: #F08A84; stroke-width: 5; }
.ring.pick { stroke-width: 5; }
.ring.focus { stroke: #FFFFFF; stroke-width: 3; stroke-dasharray: 6 4; }

/* 席 */
.seat-box { fill: #FFF8EA; stroke: rgba(0, 0, 0, .3); stroke-width: 1.5; transition: stroke var(--dur); }
.seat.on .seat-box { stroke: #1F2328; stroke-width: 4; }
.seat-name { fill: #1F2328; }
.seat-sub { fill: #5B616B; }
.mini.known rect { stroke: #1F2328; stroke-width: 1.5; }
.badge rect { fill: #FFFFFF; stroke: #1F2328; stroke-width: 1.5; }
.badge text { fill: #1F2328; }
.badge.out rect { fill: #2E7D4F; stroke: #2E7D4F; }
.badge.out text, .badge.lose text, .badge.call text { fill: #FFFFFF; }
.badge.lose rect { fill: #B23A3A; stroke: #B23A3A; }
.badge.call rect { fill: #2F5D8A; stroke: #2F5D8A; }
.badge.zero text { fill: #5B616B; }
.pile-box { fill: rgba(0, 0, 0, .12); stroke: rgba(255, 255, 255, .28); stroke-width: 1.5; stroke-dasharray: 5 4; }
.pile-label { fill: #F2EEE3; }

/* 操作ボタン */
#play .acts { justify-content: center; margin-bottom: 8px; }
#play .acts .btn { min-width: 7.5em; }
.rule-list .field { margin-bottom: 12px; }

/* 結果 */
.result-box { inset: 5% 3% auto; max-height: 92%; overflow: auto; padding: 18px 16px; }
.result-box ol { display: block; margin: 0 auto 10px; max-width: 520px; }
.result-box li { font-size: 16px; gap: 8px; padding: 4px 0; border-bottom: 1px solid var(--line); }
.result-box li:last-child { border-bottom: none; }
.result-box li .place { min-width: 2.6em; font-weight: 800; }
.result-box li .who { min-width: 4.2em; font-weight: 700; }
.result-box li .mini-hand { width: 136px; height: 34px; flex: none; }
.result-box li .pts { margin-left: auto; font-weight: 700; text-align: right; }
.result-box li.failed .pts { color: var(--ng); }
.result-box li.mixed .pts { color: var(--ink-sub); font-weight: 400; }
.result-box .total { font-weight: 700; margin: 4px 0 6px; }
@media (max-width: 480px) {
  .result-box { inset: 2% 2% auto; padding: 12px 10px; max-height: 96%; }
  .result-box h2 { font-size: 1.3rem; margin-bottom: 6px; }
  .result-box li { font-size: 14px; gap: 5px; padding: 2px 0; }
  .result-box .controls { margin-top: 4px; }
  .result-box li .mini-hand { width: 112px; height: 28px; }
  .result-box li .who { min-width: 3.6em; }
  .result-box .note { font-size: 14px; margin: 4px 0 8px; }
  .result-box .total { font-size: 14px; }
  .result-box li .place { min-width: 2.2em; }
}
@media (max-width: 480px) { .article th, .article td { padding: 6px; font-size: 14px; } }
@media (max-width: 480px) { #play .controls { gap: 6px; } #play .btn.icon { padding: 0 8px; font-size: 14px; } #play .spacer { display: none; } #play .acts .btn { min-width: 0; flex: 1; padding: 0 8px; } }
/* 上のバーの高さを一定に（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: 2; --tb-st-lines: 1; } }
/* 上のバーの高さ ここまで */
