/* ぶたのしっぽ固有の見た目（共通は ../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。D1） */

/* 札 */
.card .piece { filter: var(--shadow-piece); }
.card.lift .piece, .card.picked .piece { filter: var(--shadow-lift); }
.ring-cards .card, .hand .card { cursor: pointer; }
.card-hit { fill: transparent; }
.hand .card.danger .face > rect:first-child { stroke: #B23A3A; stroke-width: 4; stroke-dasharray: 7 4; fill: #FBEDEA; }
.tail-line { stroke: rgba(255, 248, 234, .16); stroke-width: 70; stroke-linecap: round; stroke-linejoin: round; }
.pig { pointer-events: none; }
.pile-spot { fill: rgba(0, 0, 0, .14); stroke: rgba(255, 255, 255, .28); stroke-width: 1.5; stroke-dasharray: 5 4; }
.pile-label { fill: #F2EEE3; paint-order: stroke; stroke: rgba(0, 0, 0, .35); stroke-width: 3px; }

/* 光る枠 */
.ring { fill: none; stroke-width: 4; pointer-events: none; }
.ring.hit { stroke: #FF8A80; stroke-width: 6; }
.ring.pick { stroke-width: 5; }
.ring.hover { stroke: #FFE7A3; stroke-width: 4; }
.ring.focus { stroke: #FFE7A3; stroke-width: 4; 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, .seat-count { fill: #1F2328; }
.seat-sub { fill: #5B616B; }
.badge rect { fill: #FFFFFF; stroke: #1F2328; stroke-width: 1.5; }
.badge text { fill: #1F2328; }
.badge.win rect { fill: #2E7D4F; stroke: #2E7D4F; }
.badge.win text { fill: #FFFFFF; }
.badge.lose rect { fill: #B23A3A; stroke: #B23A3A; }
.badge.lose text { fill: #FFFFFF; }

.rule-list .field { margin-bottom: 12px; }
.result-box { inset: 8% 6% auto; max-height: 86%; overflow: auto; }
.result-box li { font-size: 17px; }
.result-box .cnt { color: var(--ink-sub); font-weight: 700; }
@media (max-width: 480px) {
  .result-box { inset: 3% 4% auto; padding: 14px 12px; max-height: 94%; }
  .result-box h2 { font-size: 1.35rem; margin-bottom: 6px; }
  .result-box li { font-size: 15px; padding: 0; }
  .result-box .note { font-size: 14px; margin: 4px 0 10px; }
}
@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; } }
/* 上のバーの高さを一定に（No.93。数字は一番長い文が画面の幅（360px・375px 以上・641px 以上）で何行になるか。--tb-rt はふりがなの分。base.css・turnbar.js） */
.turnbar { --tb-msg-lines: 3; --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; } }
/* 上のバーの高さ ここまで */
