/* ページワン固有の見た目（共通は ../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; }

/* 山札・台札 */
.stock-slot { fill: rgba(0, 0, 0, .14); stroke: rgba(255, 255, 255, .22); stroke-width: 1.5; }
.stock .card, .pile .card { filter: var(--shadow-piece); }
.stock.can { cursor: pointer; }
.stock-ring { fill: none; stroke: var(--p-yellow); stroke-width: 4; }
.pile-label, .info-label { fill: #F2EEE3; }
.pile .under { opacity: .92; }

/* 出すマーク・引かせる枚数・向き */
.suit-box rect { fill: rgba(255, 248, 234, .94); stroke: rgba(0, 0, 0, .25); stroke-width: 1.2; }
.suit-box .info-label { fill: #5B616B; }
.suit-box.named rect { stroke: #7A5AA6; stroke-width: 4; }
.suit-box.named .info-label { fill: #7A5AA6; }
.pending-chip rect { fill: #B23A3A; stroke: #FFFFFF; stroke-width: 1.5; }
.pending-chip text { fill: #FFFFFF; }
.dir-bg { fill: rgba(0, 0, 0, .16); stroke: rgba(255, 255, 255, .25); stroke-width: 1; }
.dir-arc { fill: none; stroke: #FFF8EA; stroke-width: 5; stroke-linecap: round; }
.dir-head { fill: #FFF8EA; }
.dir.rev .dir-arc { stroke: #FFE7A3; }
.dir.rev .dir-head { fill: #FFE7A3; }
.dir.rev .info-label { fill: #FFE7A3; }
.order-arrow { fill: none; stroke: #FFF8EA; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.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 { fill: #5B616B; }
.badge rect { fill: #5B616B; stroke: #FFFFFF; stroke-width: 1.5; }
.badge text { fill: #FFFFFF; }
.badge.out rect { fill: #2E7D4F; }
.badge.one rect { fill: #B7791F; }
.badge.next rect { fill: #2F5D8A; }
.next-mark rect { fill: #2F5D8A; }
.next-mark text { fill: #FFFFFF; }

/* 吹き出し */
.bubble-bg { fill: #FFFFFF; stroke: #1F2328; stroke-width: 2.5; }
.bubble-bg.tail { stroke-width: 0; }
.bubble text { fill: #1F2328; }
.bubble.call .bubble-bg { fill: #FFF3C4; }
.bubble.warn .bubble-bg { fill: #FBE3E0; stroke: #B23A3A; }
.bubble.warn text { fill: #8E2A2A; }
.bubble.pop { animation: bubblepop .22s ease-out; transform-box: fill-box; transform-origin: center; }
@keyframes bubblepop { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .bubble.pop { animation: none; } }

/* 手札 */
.card .flip { transform-box: fill-box; transform-origin: center; }
.card.lift .piece { filter: var(--shadow-lift); }
.in-hand .piece { filter: var(--shadow-piece); }
.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; }
.in-hand.fresh .face > rect:first-child { stroke: #2F6DB5; stroke-width: 3; }
.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; }
#actions .btn.decl { margin-left: auto; background: #FFF3C4; color: #1F2328; border-color: #B7791F; font-weight: 800; }
#actions .btn.decl.done { background: #B7791F; color: #FFFFFF; }
#actions .suit-btn small { font-size: 13px; margin-left: 2px; opacity: .85; }
.stage .suit-ico svg { display: inline-block; fill: #1F2328; margin-right: 4px; width: 22px; height: 22px; }
.suit-ico.red svg { fill: #B23A3A; }
.btn:not(.sub) .suit-ico svg { fill: #FFFFFF; }
.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 { max-width: 640px; }
@media (max-width: 480px) { .article th, .article td { padding: 6px; font-size: 14px; } #actions .btn.decl { margin-left: 0; } }
@media (prefers-color-scheme: dark) {
  #actions .btn.decl { background: #4A3E1C; color: #FFF3C4; border-color: #D9A21B; }
  #actions .btn.decl.done { background: #D9A21B; color: #1F2328; }
  .suit-ico svg { fill: currentColor; }
  .suit-ico.red svg { fill: #E07A70; }
}
/* 上のバーの高さを一定に（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: 2; --tb-st-lines: 1; } }
:root:lang(en) .turnbar { --tb-msg-lines: 4; --tb-st-lines: 2; --tb-rt: 0px; --tb-st-rt: 0px; }
@media (min-width: 375px) { :root:lang(en) .turnbar { --tb-msg-lines: 4; --tb-st-lines: 2; } }
@media (min-width: 641px) { :root:lang(en) .turnbar { --tb-msg-lines: 2; --tb-st-lines: 1; } }
/* 上のバーの高さ ここまで */
