/* CASE//LAB 12.7 — client-only battle theatre; rewards stay server authoritative */
.battle127-arena{background:#121b23;border:1px solid #41515c;padding:18px;margin:14px 0;color:#dfe7ec;overflow:hidden}.battle127-heading{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;letter-spacing:.12em;font-size:12px;color:#94a8b4}.battle127-heading strong{color:#f0c476}.battle127-progress{height:3px;background:#e5b05e;width:0;transition:width .5s;margin:14px 0 18px;box-shadow:0 0 12px #dca45180}.battle127-board{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,270px),1fr));gap:12px}.battle127-player{border:1px solid #34434d;background:#202c36;min-width:0;transition:border-color .35s,box-shadow .35s}.battle127-player.battle127-leader{border-color:#e7bd69;box-shadow:inset 0 0 0 1px #e7bd6950,0 0 20px #e7bd6917}.battle127-player-head{display:flex;align-items:center;gap:9px;padding:10px}.battle127-avatar{width:34px;height:34px;display:grid;place-items:center;background:#334654;overflow:hidden;flex-shrink:0}.battle127-avatar img{width:100%;height:100%;object-fit:cover}.battle127-identity{min-width:0;flex:1;display:flex;flex-direction:column;gap:4px}.battle127-identity strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:13px}.battle127-identity small{font-size:10px;letter-spacing:.08em;color:#91a8b6}.battle127-leader .battle127-identity small{color:#f1c777}.battle127-amount{font-weight:800;font-size:16px;color:#f0c476;font-variant-numeric:tabular-nums}.battle127-reel{height:134px;position:relative;overflow:hidden;background:linear-gradient(#17212b,#10171e);border-block:1px solid #40515c}.battle127-reel:before,.battle127-reel:after{content:'';position:absolute;z-index:2;top:0;bottom:0;width:34px;pointer-events:none}.battle127-reel:before{left:0;background:linear-gradient(90deg,#10171e,transparent)}.battle127-reel:after{right:0;background:linear-gradient(270deg,#10171e,transparent)}.battle127-track{display:flex;width:max-content;height:100%;will-change:transform}.battle127-tile{flex:0 0 126px;width:126px;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;border-right:2px solid #0c141a;border-bottom:4px solid #527ca7;background:#253341}.battle127-tile[data-tier=purple]{border-bottom-color:#8d60c4}.battle127-tile[data-tier=pink]{border-bottom-color:#d254a0}.battle127-tile[data-tier=red]{border-bottom-color:#df5656}.battle127-tile[data-tier=gold]{border-bottom-color:#e8bb5d}.battle127-art{width:106px;height:80px;display:grid;place-items:center;font-size:28px}.battle127-art img{width:100%;height:100%;object-fit:contain}.battle127-tile small{font-size:10px;max-width:110px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.battle127-marker{position:absolute;z-index:3;left:50%;top:0;bottom:0;width:2px;background:#e6b65f;box-shadow:0 0 10px #e6b65f}.battle127-drop{padding:10px;font-size:11px;min-height:40px;color:#b5c7d2}.battle127-revealed .battle127-drop{color:#f2d297}.battle127-footer{font-size:10px;letter-spacing:.08em;color:#8599a6;margin-top:14px}.battle127-final{text-align:center;padding:25px 10px;background:linear-gradient(#e3b76317,transparent);display:flex;flex-direction:column;gap:8px;margin-top:16px}.battle127-final strong{font-size:clamp(22px,5vw,42px);color:#e7c47f}.battle127-final span,.battle127-final small{letter-spacing:.1em;color:#acbdc8}.battle127-arena>.btn{margin-top:14px}@media(max-width:600px){.battle127-arena{padding:10px}.battle127-heading{font-size:10px}.battle127-board{grid-template-columns:1fr}.battle127-reel{height:120px}}@media(prefers-reduced-motion:reduce){.battle127-track{transition-duration:.1s!important}.battle127-progress{transition:none}}
/* Persistent connection status for the shared self-host battle timeline. */
.battle-live-controls { display:flex; flex-wrap:wrap; align-items:center; justify-content:flex-end; gap:12px; }
.battle-sync-status { display:inline-flex; align-items:center; gap:8px; font-size:11px; font-weight:800; letter-spacing:.10em; color:#a6b6ce; white-space:nowrap; }
.battle-sync-status::before { content:''; width:7px; height:7px; border-radius:50%; background:#f2a65b; box-shadow:0 0 11px #f2a65b55; }
.battle-sync-status[data-state="connected"] { color:#7ce3c0; }
.battle-sync-status[data-state="connected"]::before { background:#67dfad; box-shadow:0 0 11px #67dfad77; }
.battle-sync-status[data-state="reconnecting"]::before { background:#f2a65b; }
