/* 七並べ固有の見た目（共通は ../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; }

/* 場の枠 */
.board-box { fill: rgba(0, 0, 0, .12); stroke: rgba(255, 255, 255, .22); stroke-width: 1.5; }
.rank-head { fill: #F2EEE3; }
.rank-head.seven { fill: #FFE7A3; }
.suit-head { fill: rgba(255, 248, 234, .92); stroke: rgba(0, 0, 0, .25); stroke-width: 1; }
.slot { fill: rgba(255, 255, 255, .06); stroke: rgba(255, 255, 255, .16); stroke-width: 1; }

/* 場の札 */
.bcard-base { fill: #FFFFFF; stroke: #BDB8AC; stroke-width: 1; }
.bcard { filter: var(--shadow-piece); }
.bcard.dropped .bcard-base { fill: #ECE8DE; stroke: #9C968A; stroke-dasharray: 3 2; }
.bcard.new .bcard-base { stroke: #D9A21B; stroke-width: 3; }

/* 出せる位置・止め */
.open-slot { fill: rgba(255, 248, 234, .16); stroke: #FFF8EA; stroke-width: 2; stroke-dasharray: 5 3; }
.open-slot.mine { fill: rgba(255, 231, 163, .38); stroke: #FFE7A3; stroke-width: 3; stroke-dasharray: none; }
.open-slot.flash { fill: rgba(255, 231, 163, .6); stroke: #FFFFFF; stroke-width: 4; stroke-dasharray: none; }
.stop-chip rect { fill: #8A3B2E; stroke: #FFFFFF; stroke-width: 1.2; }
.stop-chip text { fill: #FFFFFF; }
.target-ring { fill: none; stroke: #FFFFFF; stroke-width: 4; }
.target-ring.inner { stroke: var(--p-yellow); stroke-width: 2.5; }
.target-hit { fill: transparent; cursor: pointer; }
.target-num circle { fill: #7A5AA6; stroke: #FFFFFF; stroke-width: 1.5; }
.target-num text { fill: #FFFFFF; }
.pulse { animation: pulse 1.1s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .pulse { animation: none; } }

/* 席 */
.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.done { opacity: .72; }
.seat-name, .seat-count { fill: #1F2328; }
.seat-sub, .pip-text { fill: #5B616B; }
.pip { fill: #FFFFFF; stroke: #9C968A; stroke-width: 1.5; }
.pip.on { fill: #2F5D8A; stroke: #1F2328; }
.badge rect { fill: #5B616B; stroke: #FFFFFF; stroke-width: 1.5; }
.badge text { fill: #FFFFFF; }
.badge.out rect { fill: #2E7D4F; }
.badge.elim rect { fill: #B23A3A; }
.badge.pop { animation: badgepop .25s ease-out; transform-box: fill-box; transform-origin: center; }
@keyframes badgepop { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* 手札 */
.card .flip { transform-box: fill-box; transform-origin: center; }
.card.lift .piece { filter: var(--shadow-lift); }
.in-hand.pickable { cursor: pointer; }
.dim-cover { fill: rgba(31, 35, 40, .42); pointer-events: none; }
.in-hand.sel .piece { filter: var(--shadow-lift); }
.in-hand.sel .face > rect:first-child { stroke: var(--p-yellow); stroke-width: 4; }
.focus-ring { fill: none; stroke: #FFF8EA; stroke-width: 3; stroke-dasharray: 5 3; }

/* 操作 */
#actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; min-height: var(--tap); align-items: center; }
#actions .note { color: var(--ink-sub); font-size: 14px; }
.rule-list .field { margin-bottom: 12px; }
.result-box { inset: 8% 6% auto; max-height: 84%; overflow: auto; }
.result-box li { font-size: 16px; }
.howto img[src*="board"], .howto img[src*="tunnel"] { max-width: 640px; }
@media (max-width: 480px) { .article th, .article td { padding: 6px; 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: 3; --tb-st-lines: 1; } }
@media (min-width: 641px) { .turnbar { --tb-msg-lines: 2; --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; } }
/* 上のバーの高さ ここまで */
