/* The active seat stays visible throughout the action, including its cut-in. */
#battle-view .player-mat { transition:border-color .24s,box-shadow .24s,background-color .24s; }
#battle-view .current-seat { border:2px solid var(--coral); background:#fff9ee; box-shadow:0 0 0 3px #df816f22,0 5px 18px #805d3a16; }
#battle-view .current-seat h2::before { content:'▶'; color:var(--coral); font:700 11px/1 system-ui; margin-right:6px; vertical-align:middle; }
#battle-view .seat-heading h2,#battle-view .own-identity h2 { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
#battle-view .own-identity { min-width:0; }
#battle-view .turn-badge { display:inline-flex; min-width:0; max-width:55%; align-items:center; gap:6px; box-shadow:0 3px 0 #b9645426; }
#battle-view .turn-badge.waiting { background:#245f54; color:#fffaf0; box-shadow:0 3px 0 #174a3820; }
.turn-owner { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.turn-action { font-size:.8em; font-weight:500; opacity:.8; white-space:nowrap; }
.seat-turn { font:700 9px/1.2 system-ui; color:#bf6654; white-space:nowrap; }
#battle-view .own-identity .seat-turn { display:block; margin-top:4px; }
.turn-cinema { z-index:85; }
.turn-announcement { position:absolute; inset:0; overflow:hidden; display:grid; place-items:center; color:#fffaf0; background:linear-gradient(125deg,#123e398c,#285e53ad 50%,#0a302b9c); backdrop-filter:blur(2px); }
.turn-announcement::before,.turn-announcement::after { content:''; position:absolute; left:0; right:0; top:calc(50% - 150px); height:1px; background:linear-gradient(90deg,transparent,#f3df9f9c,transparent); }
.turn-announcement::after { top:calc(50% + 150px); }
.turn-announcement.is-mine { background:linear-gradient(125deg,#5c352c80,#895348a3 50%,#294b468c); }
.turn-content { position:relative; z-index:1; width:100%; padding:28px max(22px,env(safe-area-inset-left)); display:flex; flex-direction:column; align-items:center; gap:18px; text-align:center; text-shadow:0 3px 18px #082e2d66; }
.turn-content::before { content:'✦'; color:#f2dc9f; font-size:30px; }
.turn-content:has(.player-avatar)::before { display:none; }
.turn-content small { font:700 12px/1.3 system-ui; letter-spacing:.36em; color:#f4e4ad; }
.turn-content strong { display:block; max-width:100%; overflow-wrap:anywhere; font-size:clamp(30px,5vw,64px); font-weight:800; line-height:1.3; letter-spacing:.08em; }
.turn-content span { font-size:clamp(12px,1.2vw,16px); letter-spacing:.1em; opacity:.9; }
.turn-content>.player-avatar { width:96px; height:96px; border:3px solid #fff7e8; box-shadow:0 0 0 2px #d8c489,0 8px 35px #123e394d; }
.turn-sweep { position:absolute; inset:0; background:linear-gradient(90deg,transparent 25%,#f3dfa715 43%,#fff9de38 50%,#f3dfa715 57%,transparent 75%); }
@media(max-width:720px) { .turn-content { gap:16px; } .turn-content strong { font-size:clamp(28px,7vw,42px); } .turn-content>.player-avatar { width:84px; height:84px; } }
@media(max-height:500px) { .turn-content { gap:10px; padding:16px; } .turn-content>.player-avatar { width:64px; height:64px; } .turn-content strong { font-size:32px; } .turn-announcement::before { top:calc(50% - 125px); } .turn-announcement::after { top:calc(50% + 125px); } }
.deal-card { position:absolute; width:55px; aspect-ratio:63/88; border-radius:6px; border:2px solid #fffaf0; background-size:100% 100%; box-shadow:0 3px 12px #194f4933; }
@media(max-width:720px) { #battle-view .turn-badge { max-width:53%; gap:4px; } .turn-action { display:none; } .seat-turn { font-size:7px; } #battle-view .current-seat h2::before { font-size:8px; margin-right:3px; } }
@media(max-width:720px) and (max-height:700px) { #battle-view .seat-heading .seat-turn { display:none; } }
@media(prefers-reduced-motion:reduce) { #battle-view .player-mat { transition:none; } }
.reduce-motion #battle-view .player-mat { transition:none; }
