/* Mirrored playmat: outer DON zone, Leader/Stage, inner Character row. */
.table-active #play-view{background:#081522}
.table-active #match-table{background:radial-gradient(ellipse at 50% 50%,#17334355,transparent 70%)}
.table-active .table-layout{grid-template-columns:minmax(200px,15fr) minmax(0,67fr) minmax(235px,18fr)}
.table-active .table-board{border:1px solid #93afbd66;border-radius:18px;padding:8px;background:#0e2635;box-shadow:0 12px 45px #0008,0 0 40px #5dbbcc12;grid-template-rows:minmax(0,1fr) 36px minmax(0,1fr)}
.table-active .table-player.own{background:linear-gradient(145deg,#304b68,#263b57);border:1px solid #7b9bbc77;border-radius:5px 5px 12px 12px;padding:12px 18px}
.table-active .auto-player.opponent{background:linear-gradient(145deg,#55513b,#38494c);border:1px solid #bcb07977;border-radius:12px 12px 5px 5px;padding:12px 18px}
.table-active .auto-player .table-player-heading{border:0;padding:0;flex-basis:24px;min-height:24px}
.table-active .auto-public{grid-template-columns:minmax(0,1fr) clamp(60px,6.5vw,155px) minmax(0,1fr) clamp(48px,5vw,125px);grid-template-rows:minmax(0,1.1fr) minmax(0,.9fr) minmax(0,.55fr);gap:10px 18px}
.table-active .opponent .auto-public{grid-template-rows:minmax(0,.55fr) minmax(0,.9fr) minmax(0,1.1fr)}
.table-active .auto-resources{display:contents}
.table-active .auto-player .auto-leader{grid-column:2;grid-row:2;filter:none}
.table-active .auto-player.opponent .auto-leader{grid-row:2}
.table-active .auto-player.opponent .auto-stage{grid-column:1;justify-self:end}
.table-active .auto-player .auto-stage{grid-column:3;grid-row:2;display:flex;align-self:center;justify-self:start;align-items:center;height:90%;margin:0}
.table-active .auto-stage .stage-placeholder{aspect-ratio:63/88;width:auto;font-size:10px;background:#10263833;border:1px solid #b5c7d34d;border-radius:5px;box-sizing:border-box}
.table-active .auto-player.own .auto-characters{grid-row:1}.table-active .auto-player.opponent .auto-characters{grid-row:3}
.table-active .auto-characters{grid-column:1/4;padding:8px 12px;gap:clamp(10px,1.8vw,38px);border:1px solid #a9becb55;border-radius:8px;background:#0f27394d;box-shadow:inset 0 2px 12px #0002}
.table-active .opponent .auto-characters{background:#283d344d;border-color:#b6bb8e66}
.table-active .table-slot{background:#a2c6e108;border-color:#b4cbd54d;border-radius:5px}
.table-active .auto-don{grid-column:1/4;grid-row:3;display:flex;align-items:center;gap:18px;min-height:0;padding:4px 14px;border:1px solid #a9becb44;border-radius:7px;background:#142b4244;max-width:none}
.table-active .opponent .auto-don{grid-row:1;background:#474e3044;border-color:#b6bb8e66}
.table-active .auto-don>span{flex:0 0 auto;white-space:nowrap;font-size:clamp(10px,.75vw,17px)}
.table-active .auto-don>span strong{font-size:clamp(19px,1.7vw,36px)}
.table-active .auto-don>div{padding:0;height:100%;min-height:0;display:flex;align-items:center;flex:1}
.table-active #match-table .auto-don .don-card{height:100%;width:auto;aspect-ratio:63/88;max-height:90px;margin-right:clamp(-38px,-1.4vw,-12px)}
.table-active #match-table .auto-don .don-card:last-child{margin-right:0}
.table-active .auto-player .auto-piles{grid-column:4;grid-row:1/-1;padding-left:8px;border-color:#b9ccd544;--pile-height:clamp(24px,calc((100dvh - 490px)/6),110px)}
.table-active .table-turn-line{background:#102c3e;border:0;color:#ebf2ee;box-shadow:none;padding:0 14px}
.table-active .table-detail,.table-active .opponent-cards,.table-active .table-hand,.table-active .table-communication,.table-active #table-actions{background:#0c1d2de8;border-color:#536c7b35;box-shadow:none}
.table-active .table-sidebar .table-hand{border-top-color:#66848c}
.table-active .table-player-heading strong{color:#f8efcf}
.table-active .table-detail{padding:12px}.table-active .table-events li{color:#8ea5b5}.table-active .table-events li:first-child{color:#bdcbd5}
@media(max-width:1600px){.table-active .table-layout{grid-template-columns:minmax(175px,17fr) minmax(0,64fr) minmax(210px,19fr)}.table-active .table-board{padding:5px;grid-template-rows:minmax(0,1fr) 30px minmax(0,1fr)}.table-active .table-player.own,.table-active .auto-player.opponent{padding:8px 10px;gap:6px}.table-active .auto-public{grid-template-columns:minmax(0,1fr) 66px minmax(0,1fr) 45px;gap:7px 10px}.table-active .auto-characters{padding:5px 8px;gap:18px}.table-active .auto-don{gap:12px;padding:3px 8px}.table-active .auto-don small{display:none}}
@media(max-width:1000px){.table-active .table-layout{grid-template-columns:155px minmax(0,1fr) 180px}.table-active .auto-public{grid-template-columns:minmax(0,1fr) 48px minmax(0,1fr) 34px;gap:5px}.table-active .auto-characters{gap:7px}.table-active .auto-don{padding:3px 5px;gap:7px}.table-active .auto-don>span{font-size:8px}.table-active .auto-don>span strong{font-size:17px}.table-active .auto-stage .stage-placeholder{font-size:7px}}
@media(max-width:850px){.table-active .table-layout{grid-template-columns:minmax(0,1fr) 170px}.table-active .table-board{grid-column:1;grid-row:1}.table-active .table-sidebar{grid-column:1;grid-row:2}.table-active .table-rail{grid-column:2;grid-row:1/3}.table-active .auto-player .auto-piles{--pile-height:clamp(20px,calc((100dvh - 530px)/6),65px)}}
