/* battle-stage.css — Swords & Sandals overhaul layer (see load order in index.html). */
/* Full-screen battle: arena on top (portrait) or left (landscape phones), wood control panel below/right. */
:where(:root){--ss-ink:#2b1709;--ss-wood:#3b2414;--ss-wood-2:#4d301a;--ss-leather:#6b4424;--ss-parch:#f3e3bd;--ss-parch-2:#e3c78f;--ss-parch-ink:#3a220f;--ss-bronze:#c98b3c;--ss-bronze-hi:#f0c46a;--ss-gold:#ffd24a;--ss-red:#c0392b;--ss-red-dk:#7d1a12;--ss-blue:#3f7fbf;--ss-hp:#5fb83a;--ss-hp-enemy:#e0452f;--ss-energy:#ffb627;--ss-font-display:'Lilita One','DM Sans',system-ui,sans-serif;--ss-outline:0 2px 0 var(--ss-ink),2px 0 0 var(--ss-ink),-2px 0 0 var(--ss-ink),0 -2px 0 var(--ss-ink),1.5px 1.5px 0 var(--ss-ink),-1.5px 1.5px 0 var(--ss-ink),1.5px -1.5px 0 var(--ss-ink),-1.5px -1.5px 0 var(--ss-ink),0 4px 6px #0007}
.arena-scene,.battle-stage{--bs-o1:0 1px 0 var(--ss-ink),1px 0 0 var(--ss-ink),-1px 0 0 var(--ss-ink),0 -1px 0 var(--ss-ink),1px 1px 0 var(--ss-ink),-1px 1px 0 var(--ss-ink),1px -1px 0 var(--ss-ink),-1px -1px 0 var(--ss-ink),0 2px 2px #0006;--bs-bevel:inset 0 2px 0 #fff5,inset 0 -3px 0 #0004,0 3px 0 var(--ss-ink);--bs-bevel-down:inset 0 2px 0 #fff4,inset 0 -1px 0 #0004,0 1px 0 var(--ss-ink)}
.bs-sr{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

/* ---------- 1. Chrome: live battle owns the whole screen ---------- */
.mobile-app .venue-screen.venue-combat{--venue-top:0px;--venue-header:0px}
.venue-screen.venue-combat::before{display:none!important}
.venue-screen.venue-combat>.venue-heading{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip-path:inset(50%)!important;white-space:nowrap;border:0!important}
.venue-screen.venue-combat>.venue-heading .venue-back{display:none!important}
.mobile-app.battle-active>.scene-status{display:none!important}
.mobile-app.map-app .venue-combat #main.venue-scroll{inset:0;padding:0;overflow:hidden;display:flex;flex-direction:column;scroll-padding:0}
.venue-combat .venue-layout{flex:1 1 auto;min-height:0;width:100%;max-width:none!important;margin:0 auto;padding:0;display:flex!important;flex-direction:column;align-items:stretch!important;gap:0}
.venue-combat .venue-content{flex:1 1 auto;min-height:0;width:100%;align-self:stretch;display:flex;flex-direction:column;align-items:stretch;padding:0!important;margin:0;text-shadow:none}
.venue-combat .venue-content>.section-heading{display:none!important}
.venue-combat .venue-content>:not(.arena-layout):not(.online-duel){flex:none;margin:6px 8px}
.venue-combat .arena-layout{flex:1 1 auto;min-height:0;display:flex!important;flex-direction:column;align-items:stretch!important;gap:0;margin:0}

/* ---------- 2. Stage shell ---------- */
.battle-stage{--hud-x:max(8px,env(safe-area-inset-left,0px));--hud-xr:max(8px,env(safe-area-inset-right,0px));--hud-top:calc(env(safe-area-inset-top,0px) + 6px);--plate-w:clamp(128px,40%,250px);--ticker-h:46px;--ctl-h:calc(320px + env(safe-area-inset-bottom,0px));--name-max:15px;flex:1 1 auto;min-height:0;width:100%;max-width:none!important;display:flex;flex-direction:column;margin:0!important;border:0!important;border-radius:0!important;overflow:hidden!important;background:var(--ss-wood)!important;box-shadow:none!important;color:var(--ss-parch)}
.venue-content .battle-stage>.arena-scene.in-battle{flex:1 1 auto;min-height:clamp(250px,52dvh,640px);height:auto;position:relative!important;top:auto!important;z-index:1!important;margin:0;border:0;border-bottom:3px solid var(--ss-ink);border-radius:0!important;box-shadow:0 2px 0 var(--ss-bronze)}

/* result: the panel takes the room, the arena drops back to its minimum (smaller fighters, room for the fallen one) */
.venue-content .battle-stage>.arena-scene.in-battle.battle-over:has(+.result-panel){flex-grow:0}

/* ---------- 3. Arena scene (live battle) ---------- */
.stage-live{--fig-top:calc(var(--hud-top) + 112px + 4%);--ground:calc(var(--ticker-h) + 10px);--fig-max:70vw}
.stage-live .scene-shade{background:linear-gradient(180deg,#2b1709a6 0%,#2b170933 17%,transparent 32%,transparent 72%,#2b170955 100%)}
.stage-live .arena-location{display:none}
.stage-live .scene-grain{box-shadow:inset 0 0 38px #2b170955;border:0}
.arena-scene .crowd-layer{position:absolute;left:-2%;right:-2%;top:15%;height:36px;z-index:0;pointer-events:none;opacity:.5;transform-origin:50% 100%;
 background:radial-gradient(circle 3.2px at 4px 3px,#3a1d0e 97%,transparent) 0 0/18px 100% repeat-x,radial-gradient(circle 3px at 13px 4px,#b07a52 97%,transparent) 0 0/18px 100% repeat-x,radial-gradient(ellipse 5px 4px at 4px 9px,#7d1a12 97%,transparent) 0 0/18px 100% repeat-x,radial-gradient(ellipse 5px 4px at 13px 10px,#4b3a2a 97%,transparent) 0 0/18px 100% repeat-x,
  radial-gradient(circle 3.2px at -1px 14px,#3a1d0e 97%,transparent) 0 0/18px 100% repeat-x,radial-gradient(circle 3px at 8px 15px,#b07a52 97%,transparent) 0 0/18px 100% repeat-x,radial-gradient(ellipse 5px 4px at -1px 20px,#7d1a12 97%,transparent) 0 0/18px 100% repeat-x,radial-gradient(ellipse 5px 4px at 8px 21px,#4b3a2a 97%,transparent) 0 0/18px 100% repeat-x,
  radial-gradient(circle 3.2px at 7px 25px,#3a1d0e 97%,transparent) 0 0/18px 100% repeat-x,radial-gradient(circle 3px at 16px 26px,#b07a52 97%,transparent) 0 0/18px 100% repeat-x,radial-gradient(ellipse 5px 4px at 7px 31px,#7d1a12 97%,transparent) 0 0/18px 100% repeat-x,radial-gradient(ellipse 5px 4px at 16px 32px,#4b3a2a 97%,transparent) 0 0/18px 100% repeat-x;
 -webkit-mask-image:linear-gradient(90deg,transparent,#000 5%,#000 95%,transparent);mask-image:linear-gradient(90deg,transparent,#000 5%,#000 95%,transparent)}
.stage-live .crowd-layer{top:calc(var(--hud-top) + 140px);opacity:.85}

/* fighters: sized from the arena height (at most --fig-max, ~70% of the arena width) at full zoom. The battle camera (combat-fx.js)
   lays the lane out at that size and zooms the whole world with one transform: close at melee range, pulled back when far apart. */
.stage-live .battle-world{top:max(var(--fig-top),calc(100% - var(--ground) - var(--fig-max)));bottom:var(--ground);height:auto!important;z-index:2;transform-origin:0 0}
/* markers that must stay readable keep their size whatever the zoom (--cam-inv = 1/zoom at each paint) */
.stage-live .status-effects{scale:var(--cam-inv,1);transform-origin:50% 100%}
.stage-live .ember-tile>.icon,.stage-live .ground-ruler>i.player-cell,.stage-live .ground-ruler>i.enemy-cell{scale:var(--cam-inv,1)}
/* the arena backdrop (arena-stage.js) follows the camera at a fraction: parallax */
.arena-scene>.arena-backdrop{transform:var(--cam-bg,none);transform-origin:50% 62%}
.stage-live .battle-world .fighter-sprite{height:100%!important;width:auto!important;max-width:none!important;max-height:none!important;bottom:-2%;aspect-ratio:1}
.stage-live .ground-ruler{bottom:-4px;height:10px;border-bottom:0;opacity:.75}
.stage-live .ground-ruler>i{height:5px;background:#f3e3bd55}
.stage-live .ground-ruler>i>span{display:none}
.stage-live .ground-ruler>i.player-cell,.stage-live .ground-ruler>i.enemy-cell{width:8px;height:8px;border:1.5px solid var(--ss-ink);background:var(--ss-hp);margin-top:-1px}
.stage-live .ground-ruler>i.enemy-cell{background:var(--ss-hp-enemy)}
.stage-live .status-effects>span{width:21px;height:21px;border:1.5px solid var(--ss-ink);background:#3b2414e6;color:var(--ss-gold)}
.stage-live .status-effects .icon{width:13px;height:13px}

/* HUD */
.stage-live .battle-hud{position:absolute;top:var(--hud-top);left:var(--hud-x);right:var(--hud-xr);display:flex;align-items:flex-start;justify-content:space-between;gap:6px;z-index:6;pointer-events:none}
.stage-live .hud-side{flex:none;width:var(--plate-w);display:flex;flex-direction:column;align-items:flex-start;gap:5px;min-width:0}
.stage-live .hud-rival{align-items:flex-end}
.stage-live .hud-side>*{pointer-events:auto}
.stage-live .fighter-plate{position:relative;container-type:inline-size;width:100%!important;max-width:none!important;margin:0;padding:4px 7px 5px!important;color:#fff3d8;text-align:left;background:linear-gradient(180deg,#5a3a1fee,#3b2414f2)!important;border:2px solid var(--ss-ink)!important;border-radius:11px!important;box-shadow:inset 0 0 0 1px #c98b3caa,inset 0 2px 0 #ffffff26,0 3px 0 #2b1709cc,0 4px 10px #0006}
.stage-live .enemy-health-card{text-align:right}
.stage-live .plate-name{display:flex;align-items:baseline;justify-content:space-between;gap:5px;margin:0 0 3px!important;line-height:1}
.stage-live .enemy-health-card .plate-name{flex-direction:row-reverse}
.stage-live .plate-name b{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:400 15px/1.15 var(--ss-font-display)!important;--len:var(--n,10);font-size:clamp(10px,calc((100cqw - 40px)/(var(--len)*.47)),var(--name-max))!important;color:#fff8e6;text-shadow:var(--bs-o1)}
.stage-live .plate-title{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@container (min-width:210px){.stage-live .plate-title{position:static;width:auto;height:auto;margin:0;overflow:visible;clip-path:none}.stage-live .plate-name b{--len:var(--nf,10)}}
.stage-live .plate-name>span{flex:none;font:400 11px/1 var(--ss-font-display)!important;color:var(--ss-gold)!important;text-shadow:var(--bs-o1)}
.stage-live .plate-bar{position:relative;display:flex;align-items:center;gap:4px}
.stage-live .enemy-health-card .plate-bar{flex-direction:row-reverse}
.stage-live .plate-bar>.meter{flex:1;min-width:0;margin:0!important;border:2px solid var(--ss-ink);border-radius:8px;background:#1b0e06;box-shadow:inset 0 2px 3px #000a;overflow:hidden;display:flex}
.stage-live .enemy-health-card .plate-bar>.meter{justify-content:flex-end}
.stage-live .plate-hp>.meter{height:15px!important}
.stage-live .plate-bar>.meter>span{flex:none;height:100%;border-radius:5px;transition:width .35s}
.stage-live .plate-hp>.player-health>span{background:linear-gradient(180deg,#9be86a,var(--ss-hp) 48%,#3d8a22)!important;box-shadow:inset 0 2px 0 #ffffff70,inset 0 -2px 0 #0003}
.stage-live .plate-hp>.enemy-health>span{background:linear-gradient(180deg,#ff8a6a,var(--ss-hp-enemy) 48%,#a52614)!important;box-shadow:inset 0 2px 0 #ffffff60,inset 0 -2px 0 #0003}
.stage-live .plate-num{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;pointer-events:none;font:400 11.5px/1 var(--ss-font-display);color:#fff;text-shadow:var(--bs-o1);letter-spacing:.02em}
.stage-live .plate-armor{margin-top:3px}
.stage-live .plate-armor>.meter{height:8px!important;border-width:1.5px;border-radius:5px}
.stage-live .plate-armor>.meter>span{border-radius:3px;background:linear-gradient(180deg,#d6ecf5,#7fb2cc 50%,#4d7f99)!important}
.stage-live .armor-number{flex:none;display:flex;align-items:center;gap:1px;font:400 11px/1 var(--ss-font-display);color:#dff1fa;text-shadow:var(--bs-o1)}
.stage-live .armor-number .icon{width:11px;height:11px;color:#bfe0ef}
.stage-live .plate-res{display:flex;gap:4px;margin-top:4px}
.stage-live .plate-res>span{display:flex;align-items:center;gap:2px;padding:1px 6px 1px 3px;border:1.5px solid var(--ss-ink);border-radius:9px;background:#2b1709cc;font:400 11.5px/1.25 var(--ss-font-display);text-shadow:var(--bs-o1);white-space:nowrap}
.stage-live .plate-res .icon{width:12px;height:12px}
.stage-live .res-energy{color:var(--ss-energy)}
.stage-live .res-energy b{color:#ffe7a8;font-weight:400}
.stage-live .res-mana{color:#8cc4ff}
.stage-live .res-mana b{color:#d6ebff;font-weight:400}
/* crowd meter */
.stage-live .crowd-hud{flex:1 1 0;min-width:44px;max-width:170px;display:flex;flex-direction:column;align-items:center;gap:2px;padding-top:1px;pointer-events:auto;text-align:center}
.stage-live .crowd-title{display:flex;align-items:center;gap:2px;font:400 11.5px/1 var(--ss-font-display);letter-spacing:.06em;text-transform:uppercase;color:#fff3d8;text-shadow:var(--bs-o1)}
.stage-live .crowd-title .icon{width:17px;height:17px;color:var(--ss-gold);filter:drop-shadow(0 1px 0 var(--ss-ink)) drop-shadow(0 -1px 0 var(--ss-ink))}
.stage-live .crowd-title small{font:inherit}
.stage-live .crowd-bar{display:block;width:100%;height:11px;border:2px solid var(--ss-ink);border-radius:7px;background:#1b0e06;box-shadow:inset 0 2px 3px #000a;overflow:hidden}
.stage-live .crowd-bar>i{display:block;height:100%;border-radius:4px;background:linear-gradient(180deg,#ffe98a,var(--ss-gold) 45%,#d69211);box-shadow:inset 0 2px 0 #fff8}
.stage-live .crowd-hud>b{font:400 13px/1 var(--ss-font-display);color:var(--ss-gold);text-shadow:var(--bs-o1)}
.stage-live .crowd-hud.ovation>b{font-size:12.5px;color:#fff6c2;letter-spacing:.02em;text-shadow:var(--bs-o1),0 0 10px #ffcf3a}
.stage-live .crowd-hud.ovation .crowd-bar{border-color:#5a2c00;box-shadow:0 0 0 2px var(--ss-gold),0 0 12px #ffd24acc}
html:not([data-motion="off"]) .stage-live .crowd-hud.ovation>b{animation:bs-ovation 1.1s ease-in-out infinite}
@keyframes bs-ovation{50%{transform:scale(1.12)}}
/* player tools under the player plate */
.stage-live .stage-tools{position:relative;display:flex;align-items:flex-start;gap:6px;width:max-content;max-width:calc(100vw - var(--plate-w) - 26px)}
.stage-live .tool-button,.stage-live .stance-chip>summary{display:flex;align-items:center;justify-content:center;gap:4px;min-width:40px;height:40px;padding:0;border:2px solid var(--ss-ink);border-radius:20px;background:linear-gradient(180deg,#8a5a31,var(--ss-leather) 55%,#55341b);color:#fff1d6;box-shadow:var(--bs-bevel);cursor:pointer;font:400 13px/1 var(--ss-font-display);text-shadow:var(--bs-o1)}
.stage-live .tool-button .icon,.stage-live .stance-chip>summary .icon{width:18px;height:18px;color:var(--ss-parch);filter:drop-shadow(0 1px 0 var(--ss-ink))}
.stage-live .tool-button.retreat{background:linear-gradient(180deg,#8f3a2a,#6d2419 55%,#55180f)}
.stage-live .tool-button:active:not(:disabled),.stage-live .stance-chip>summary:active{transform:translateY(2px);box-shadow:var(--bs-bevel-down)}
.stage-live .tool-button:disabled{opacity:.55;filter:saturate(.3);cursor:default}
.stage-live .stance-chip{position:relative}
.stage-live .stance-chip>summary{list-style:none;padding:0 12px 0 9px}
.stage-live .stance-chip>summary::-webkit-details-marker{display:none}
.stage-live .stance-chip[open]>summary{background:linear-gradient(180deg,var(--ss-bronze-hi),var(--ss-bronze));color:var(--ss-ink);text-shadow:none}
.stage-live .stance-chip[open]>summary .icon{color:var(--ss-ink);filter:none}
.stage-live .stance-pop{position:absolute;top:calc(100% + 6px);left:0;z-index:30;width:min(250px,calc(100vw - 24px));padding:8px;display:grid;gap:5px;background:var(--ss-parch);color:var(--ss-parch-ink);border:2px solid var(--ss-ink);border-radius:12px;box-shadow:inset 0 0 0 2px var(--ss-parch-2),0 4px 0 var(--ss-ink),0 10px 24px #0008;text-shadow:none}
.stage-live .stance-pop>p{margin:0 2px 2px;font:600 11.5px/1.3 var(--font,'DM Sans');color:#5a3a1c}
@media (max-height:700px){.stage-live .stance-pop>p{display:none}.stage-live .stance-pop{gap:4px;padding:6px}.stage-live .stance-pop>button{min-height:42px;padding-top:3px;padding-bottom:3px}}
.stage-live .stance-pop>button{display:grid;grid-template-columns:22px 1fr;grid-template-rows:auto auto;column-gap:7px;align-items:center;text-align:left;min-height:44px;padding:5px 9px;border:2px solid var(--ss-ink);border-radius:10px;background:linear-gradient(180deg,#fff6de,var(--ss-parch-2));color:var(--ss-parch-ink);box-shadow:var(--bs-bevel);cursor:pointer}
.stage-live .stance-pop>button .icon{grid-row:1/3;width:20px;height:20px;color:var(--ss-red-dk)}
.stage-live .stance-pop>button b{font:400 15px/1.1 var(--ss-font-display);color:var(--ss-parch-ink)}
.stage-live .stance-pop>button small{font:600 11.5px/1.2 var(--font,'DM Sans');color:#6b4a2a}
.stage-live .stance-pop>button[aria-pressed="true"]{background:linear-gradient(180deg,var(--ss-bronze-hi),var(--ss-bronze));box-shadow:inset 0 0 0 2px #fff6,var(--bs-bevel)}
.stage-live .stance-pop>button:disabled{opacity:.55;cursor:default}
.stage-live .stage-tools .stance-chip>summary{width:auto;padding:0 10px 0 8px}
.stage-live .stage-tools .stance-chip>summary>span{display:inline}
.stage-live .stage-menu>summary{list-style:none;width:40px}
.stage-live .stage-menu>summary::-webkit-details-marker{display:none}
.stage-live .stage-menu[open]>summary{background:linear-gradient(180deg,var(--ss-bronze-hi),var(--ss-bronze));color:var(--ss-ink)}
.stage-live .stage-menu[open]>summary .icon{color:var(--ss-ink);filter:none}
.stage-live .menu-pop{position:absolute;top:calc(100% + 6px);left:0;z-index:30;width:min(290px,calc(100vw - 24px));padding:7px;display:grid;grid-template-columns:1fr 1fr;gap:5px;background:var(--ss-parch);color:var(--ss-parch-ink);border:2px solid var(--ss-ink);border-radius:12px;box-shadow:inset 0 0 0 2px var(--ss-parch-2),0 4px 0 var(--ss-ink),0 10px 24px #0008;text-shadow:none}
.stage-live .menu-item{display:flex;align-items:center;gap:7px;min-height:42px;padding:4px 8px;text-align:left;border:2px solid var(--ss-ink);border-radius:10px;background:linear-gradient(180deg,#fff6de,var(--ss-parch-2));color:var(--ss-parch-ink);box-shadow:var(--bs-bevel);cursor:pointer;font:400 14px/1.1 var(--ss-font-display)}
.stage-live .menu-item>.icon{flex:none;width:19px;height:19px;color:var(--ss-red-dk)}
.stage-live .menu-item>span{display:grid;min-width:0}
.stage-live .menu-item b{font-weight:400}
.stage-live .menu-item small{font:600 11.5px/1.15 var(--font,'DM Sans');color:#5a3a1c}
.stage-live .menu-item.town{background:linear-gradient(180deg,var(--ss-bronze-hi),var(--ss-bronze))}
.stage-live .menu-item.town small{color:var(--ss-parch-ink)}
.stage-live .menu-item.retreat>.icon,.stage-live .menu-item.retreat b{color:#8e2117}
.stage-live .menu-item.sound-toggle::after{content:'Sound on'}
.stage-live .menu-item.sound-toggle[aria-pressed=false]::after{content:'Sound off'}
.stage-live .menu-item:active:not(:disabled){transform:translateY(2px);box-shadow:var(--bs-bevel-down)}
.stage-live .menu-item:disabled{opacity:.5;cursor:default;box-shadow:none}
/* rival intent chip */
.stage-live .rival-intent{position:relative;max-width:100%}
.stage-live .rival-intent>summary{list-style:none;display:flex;align-items:center;gap:5px;max-width:100%;min-height:40px;padding:2px 12px 2px 5px;border:2px solid var(--ss-ink);border-radius:20px;background:linear-gradient(180deg,#fff3d6,var(--ss-parch-2));color:var(--ss-parch-ink);box-shadow:0 3px 0 #2b1709cc;cursor:pointer;text-shadow:none}
.stage-live .rival-intent>summary::-webkit-details-marker{display:none}
.stage-live .rival-intent .intent-icon{flex:none;display:grid;place-content:center;width:28px;height:28px;border-radius:50%;border:1.5px solid var(--ss-ink);background:var(--ss-red);color:#fff4e0}
.stage-live .rival-intent .intent-icon .icon{width:16px;height:16px}
.stage-live .intent-text{min-width:0;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;white-space:normal;font:400 12.5px/1.05 var(--ss-font-display);color:var(--ss-parch-ink)}
.stage-live .intent-text small{font:inherit;color:#8a4a1c}
.stage-live .intent-text b{font-weight:400}
.stage-live .rival-intent.intent-guard .intent-icon,.stage-live .rival-intent.intent-recover .intent-icon{background:#3f6f99}
.stage-live .rival-intent.intent-advance .intent-icon,.stage-live .rival-intent.intent-withdraw .intent-icon{background:var(--ss-leather)}
.stage-live .rival-intent>p{position:absolute;right:0;top:calc(100% + 6px);z-index:30;width:min(220px,calc(100vw - 24px));margin:0;padding:8px 10px;background:var(--ss-parch);color:var(--ss-parch-ink);border:2px solid var(--ss-ink);border-radius:12px;box-shadow:0 4px 0 var(--ss-ink),0 10px 20px #0007;font:600 12px/1.35 var(--font,'DM Sans');text-align:left}
/* announcer ticker + readout */
.stage-live .arena-ticker{position:absolute;left:0;right:0;bottom:0;min-height:var(--ticker-h);padding-top:2px!important;padding-bottom:2px!important;z-index:5;display:flex;align-items:center;gap:10px;padding:0 max(10px,env(safe-area-inset-right,0px)) 0 max(10px,env(safe-area-inset-left,0px));background:linear-gradient(180deg,#3b2414e0,#2b1709f5);border-top:2px solid var(--ss-bronze);box-shadow:0 -2px 0 var(--ss-ink)}
.stage-live .arena-ticker .announcer{flex:1;min-width:0;margin:0!important;padding:0!important;border:0!important;min-height:0!important;text-align:left;font:400 13.5px/1.12 var(--ss-font-display);color:#fff3d8;text-shadow:var(--bs-o1);display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.stage-live .arena-ticker .position-readout{position:static;flex:none;height:auto;display:grid;grid-template-columns:auto auto;justify-content:end;column-gap:8px;row-gap:1px;background:none;padding:0;font:600 11px/1.2 var(--font,'DM Sans');color:#e9d3a8;text-align:right}
.stage-live .arena-ticker .position-readout b{grid-column:1/-1;order:-1;font:400 13px/1.1 var(--ss-font-display);color:var(--ss-gold);text-shadow:var(--bs-o1)}

.stage-live .arena-ticker .announcer .rival-line{color:#ffcdb8}
/* status pills float on the sand just above the ticker, whatever its height (never in the controls' flow) */
.stage-live .arena-notices{position:absolute;left:var(--hud-x);right:var(--hud-xr);bottom:calc(100% + 5px);display:flex;flex-wrap:wrap-reverse;justify-content:center;align-items:center;gap:4px;max-height:48px;overflow:hidden;pointer-events:none}
.stage-live .arena-notices>*{margin:0!important}
.stage-live .arena-notices .active-effects{display:contents}
.stage-live .arena-notices .effect-badge,.stage-live .arena-notices .champion-fury{display:flex;align-items:center;gap:4px;min-height:22px;padding:1px 8px;border:1.5px solid var(--ss-ink);border-radius:11px;background:#3f6a2eeb;color:#f4fbef;font:600 11.5px/1.2 var(--font,'DM Sans');box-shadow:0 2px 0 #2b1709aa;white-space:nowrap}
.stage-live .arena-notices .effect-badge.harmful,.stage-live .arena-notices .champion-fury{background:#8a2a1ceb;color:#fff0ea}
.stage-live .arena-notices .effect-badge em{font-style:normal;font-weight:800;color:var(--ss-gold)}
.stage-live .arena-notices .icon{width:13px;height:13px;flex:none}
/* a trial's rule: a fixed 2-line strip under the pills; the fighters stand above it (--ground), so it never covers feet or ember tiles */
.stage-live:has(.trial-battle-notice){--ground:calc(var(--ticker-h) + 50px)}
.stage-live .arena-notices:has(.trial-battle-notice){max-height:62px}
.stage-live .arena-notices .trial-battle-notice{flex:1 1 100%;max-width:560px;height:36px;display:flex;align-items:center;gap:7px;padding:0 9px;border:2px solid var(--ss-ink);border-radius:10px;background:#2b1709e6;color:#fff3d8;font:600 11.5px/1.25 var(--font,'DM Sans');box-shadow:0 2px 0 #2b1709aa}
.stage-live .arena-notices .trial-battle-notice.fire-warning{background:#7d1a12eb}
.stage-live .arena-notices .trial-battle-notice .icon{width:18px;height:18px;color:var(--ss-gold)}
.stage-live .arena-notices .trial-battle-notice>div{min-width:0;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.stage-live .arena-notices .trial-battle-notice b{display:inline;margin-right:5px;font:400 13px/1.1 var(--ss-font-display);color:var(--ss-gold)}
.stage-live .arena-notices .trial-battle-notice span{display:inline;margin:0;font:inherit;color:inherit}

/* ---------- 4. Control panel (wood) ---------- */
.venue-content .battle-stage>.arena-controls{flex:0 1 auto;height:var(--ctl-h);min-height:0;display:flex;flex-direction:column;gap:6px;margin:0;padding:8px max(8px,env(safe-area-inset-right,0px)) calc(8px + env(safe-area-inset-bottom,0px)) max(8px,env(safe-area-inset-left,0px));border:0;border-radius:0;overflow:hidden;color:var(--ss-parch);text-shadow:none;background:repeating-linear-gradient(92deg,#ffffff06 0 2px,transparent 2px 11px,#0000000d 11px 13px,transparent 13px 23px),linear-gradient(180deg,var(--ss-wood-2),var(--ss-wood) 70%)!important;box-shadow:inset 0 2px 0 #ffffff1a}
.venue-content .battle-stage>.arena-controls.result-panel,.venue-content .battle-stage>.arena-controls.tournament-camp{flex:1 1 auto;height:auto;display:block;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
/* movement + defend row */
.battle-stage .move-row{flex:none;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:5px;margin:0!important;padding-top:2px}
.venue-content .battle-stage .move-row .movement-button{position:relative;height:50px;min-height:50px;padding:4px 2px 6px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;border:2px solid var(--ss-ink);border-radius:12px;background:linear-gradient(180deg,#93613a,var(--ss-leather) 52%,#56341b);color:#fff3dc;box-shadow:var(--bs-bevel);font:400 12px/1 var(--ss-font-display);text-shadow:var(--bs-o1);white-space:normal;text-align:center;letter-spacing:0}
.battle-stage .move-row .movement-button>span{max-width:100%;overflow-wrap:normal}
.battle-stage .move-row .movement-button>.icon{width:19px;height:19px;color:#fff1d6;filter:drop-shadow(0 1px 0 var(--ss-ink))}
.venue-content .battle-stage .move-row .defend-button.guard{background:linear-gradient(180deg,#6f9cc4,#3f6f99 52%,#2d5475)}
.venue-content .battle-stage .move-row .defend-button.rest{background:linear-gradient(180deg,#8c7cc0,#5d4f93 52%,#453a70)}
.battle-stage .move-row .defend-button>em{position:absolute;top:-7px;right:-3px;padding:1px 4px;border:1.5px solid var(--ss-ink);border-radius:8px;background:var(--ss-energy);color:var(--ss-ink);font:400 11.5px/1.1 var(--ss-font-display);font-style:normal;text-shadow:none}
.venue-content .battle-stage .arena-controls button:not(:disabled):active{transform:translateY(2px);box-shadow:var(--bs-bevel-down)}
/* tabs */
.venue-content .battle-stage .command-tabs{flex:none;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:3px;margin:0!important;padding:3px;border:2px solid var(--ss-ink);border-radius:13px;background:#1f1109;box-shadow:inset 0 2px 4px #000a}
.venue-content .battle-stage .command-tabs>button{min-height:40px;height:40px;padding:0 4px;display:flex;align-items:center;justify-content:center;gap:5px;border:0;border-radius:10px;background:transparent;color:#ecd3a3;font:400 14.5px/1 var(--ss-font-display);text-shadow:var(--bs-o1);box-shadow:none;letter-spacing:0}
.venue-content .battle-stage .command-tabs>button .icon{width:16px;height:16px;flex:none}
.venue-content .battle-stage .command-tabs>button.selected{background:linear-gradient(180deg,#ffe08e,var(--ss-bronze-hi) 40%,var(--ss-bronze));color:var(--ss-ink);text-shadow:none;box-shadow:inset 0 2px 0 #fff9,inset 0 -2px 0 #0003}
.venue-content .battle-stage .command-tabs>button:active:not(:disabled){transform:translateY(1px);box-shadow:none}
/* ranged loadout */
.battle-stage .ranged-loadout{flex:none;margin:0!important;padding:4px 9px!important;gap:8px!important;border:2px solid var(--ss-ink)!important;border-radius:10px!important;background:#2b1709b3!important}
.battle-stage .ranged-loadout>.icon{width:20px!important;height:20px!important;color:var(--ss-gold)}
.battle-stage .ranged-loadout b{font:400 13px/1.2 var(--ss-font-display)!important;color:#fff3d8}
.battle-stage .ranged-loadout small{font-size:11px!important;color:#e3cda3!important;margin:0!important}
.battle-stage .ranged-loadout>strong{font:400 13px var(--ss-font-display)!important;color:var(--ss-gold)!important}
.battle-stage .aim-ready{flex:none;margin:0!important;font-size:11.5px;color:var(--ss-gold)}
/* action grid */
.venue-content .battle-stage .action-grid{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));grid-auto-rows:minmax(52px,auto);align-content:start;gap:10px 6px;margin:0;padding:9px 5px 5px 2px}
.venue-content .battle-stage .action-grid.melee-actions>.combat-action:last-child{grid-column:auto}
.venue-content .battle-stage .combat-action{position:relative;min-height:52px!important;height:auto;padding:5px 8px 6px 8px;display:flex;align-items:center;gap:7px;text-align:left;border:2px solid var(--ss-ink)!important;border-radius:12px!important;background:linear-gradient(180deg,#cf4a3c,var(--ss-red) 48%,#992619)!important;color:#fff4e0!important;box-shadow:var(--bs-bevel)!important;opacity:1;filter:none}
.venue-content .battle-stage .combat-action>.icon{display:block;flex:none;width:21px;height:21px;color:#ffe6bd!important;filter:drop-shadow(0 1px 0 var(--ss-ink))}
.venue-content .battle-stage .combat-action>span:not(.action-cost){flex:1;min-width:0}
.venue-content .battle-stage .combat-action:has(.action-cost) b{padding-right:16px}
.venue-content .battle-stage .combat-action b{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;white-space:normal;font:400 15px/1.05 var(--ss-font-display)!important;color:#fff!important;text-shadow:var(--bs-o1)}
.venue-content .battle-stage .combat-action small{display:block;margin-top:2px!important;font:600 11.5px/1.25 var(--font,'DM Sans')!important;color:#fff!important;text-shadow:0 1px 0 #000a}
.venue-content .battle-stage .combat-action .action-cost{position:absolute;top:-8px;right:-5px;z-index:1;margin:0;padding:1px 5px 1px 6px!important;box-shadow:0 2px 0 #2b170999;display:flex;align-items:center;gap:1px;border:1.5px solid var(--ss-ink);border-radius:9px;background:var(--ss-energy);color:var(--ss-ink)!important;font:400 12.5px/1.2 var(--ss-font-display)!important;text-shadow:none}
.venue-content .battle-stage .combat-action .action-cost .icon{width:11px;height:11px;color:var(--ss-ink)}
.venue-content .battle-stage .combat-action .action-cost.mana-cost{background:#8cc4ff}
.venue-content .battle-stage .combat-action.volley .action-cost:before{display:none}
.venue-content .battle-stage .action-grid.tab-recover .combat-action{background:linear-gradient(180deg,#4e8a34,#35691f 50%,#265316)!important}
.venue-content .battle-stage .combat-action.taunt{background:linear-gradient(180deg,#ffe08e,var(--ss-bronze-hi) 45%,#d9a24c)!important}
.venue-content .battle-stage .combat-action.taunt>.icon{color:var(--ss-ink)!important;filter:none}
.venue-content .battle-stage .combat-action.taunt b{color:var(--ss-ink)!important;text-shadow:0 1px 0 #fff8}
.venue-content .battle-stage .combat-action.taunt small{color:var(--ss-parch-ink)!important;text-shadow:none}
.venue-content .battle-stage .combat-action .key-hint{display:none}
@media (hover:hover) and (pointer:fine){.venue-content .battle-stage .combat-action .key-hint{display:block;position:absolute;right:5px;bottom:4px;min-width:16px;padding:0 3px;border:1px solid #2b170999;border-radius:4px;background:#2b1709b3;color:#ffe9cf;font:700 10px/14px var(--font,'DM Sans');text-align:center}}
.venue-content .battle-stage .action-grid .learn-more{grid-column:1/-1;display:flex;align-items:center;gap:9px;margin:0;padding:7px 10px;border:2px dashed #c98b3c99;border-radius:12px;background:#2b170966;color:#f3e3bd}
.venue-content .battle-stage .learn-more>.icon{flex:none;width:18px;height:18px;color:var(--ss-bronze-hi)}
.venue-content .battle-stage .learn-more>span{display:grid;gap:1px}
.venue-content .battle-stage .learn-more b{font:400 14px/1.1 var(--ss-font-display);color:#fff3d8}
.venue-content .battle-stage .learn-more small{font:600 11.5px/1.25 var(--font,'DM Sans');color:#ecd6ae}
.venue-content .battle-stage .combat-action:hover:not(:disabled){filter:brightness(1.08)}
/* disabled: clearly flat, dim and desaturated (beats expansion.css !important trio) */
.venue-content .battle-stage .arena-controls button:disabled,.venue-content .battle-stage .arena-controls .combat-action:disabled,.venue-content .battle-stage .move-row button:disabled{background:#4a382a!important;border-color:#2b1709!important;color:#d2bf9d!important;box-shadow:inset 0 2px 0 #ffffff12!important;opacity:.6!important;filter:saturate(.25)!important;cursor:not-allowed}
.venue-content .battle-stage .arena-controls button:disabled .action-cost{background:#8c7a5e!important;color:#2b1709!important}
.venue-content .battle-stage .arena-controls button:disabled b,.venue-content .battle-stage .arena-controls button:disabled small{color:#ead9ba!important}
.venue-content .battle-stage .command-tabs>button:disabled{background:transparent!important;box-shadow:none!important;opacity:.55!important}
.venue-content .battle-stage .command-tabs>button.selected:disabled{background:linear-gradient(180deg,#d9c08a,#a98755)!important;color:var(--ss-ink)!important}
/* result + online extras */
.battle-stage>.arena-controls.result-panel{padding-top:12px}
.battle-stage .online-turn{flex:none;display:flex;align-items:center;gap:8px;margin:0!important;padding:4px 8px!important;border:2px solid var(--ss-ink);border-radius:11px;background:#2b1709b3}
.battle-stage .online-turn>div{flex:1;min-width:0;display:flex;align-items:baseline;gap:6px}
.battle-stage .online-turn .eyebrow{flex:none;white-space:nowrap;font:400 12px var(--ss-font-display);letter-spacing:.04em;color:var(--ss-gold)}
.battle-stage .online-turn b{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:600 12.5px var(--font,'DM Sans');color:#fff3d8}
.battle-stage .online-turn.your-turn{background:#4d8a34cc}
.battle-stage .online-ammo{display:flex;align-items:center;gap:3px;font:400 13px var(--ss-font-display);color:#fff3d8}
.battle-stage .online-ammo .icon{width:14px;height:14px}
.battle-stage .turn-clock{font:400 14px var(--ss-font-display);color:var(--ss-gold);text-shadow:var(--bs-o1)}
.battle-stage .online-controls>.notice,.battle-stage .online-controls>.small-print{flex:none;margin:0!important;font-size:11.5px}
.battle-stage .online-rules{opacity:.75}
@media (max-height:860px){.battle-stage .online-rules{display:none}}
.venue-content .battle-stage.online-duel>.arena-controls:not(.result-panel){height:calc(var(--ctl-h) + 42px)}
@media (min-height:861px){.venue-content .battle-stage.online-duel>.arena-controls:not(.result-panel){height:calc(var(--ctl-h) + 74px)}}

/* ---------- 5. Size tuning ---------- */
@media (max-width:370px){
 .battle-stage{--plate-w:clamp(124px,41%,250px);--name-max:14px}
 .stage-live .crowd-hud.ovation>b{font-size:10.5px;letter-spacing:0}
 .stage-live .crowd-title small{font-size:10.5px}
 .battle-stage .move-row{gap:4px}
 .venue-content .battle-stage .move-row .movement-button{font-size:11px;letter-spacing:-.01em;padding-left:1px;padding-right:1px}
 .venue-content .battle-stage .combat-action{padding-left:6px;gap:5px}
 .venue-content .battle-stage .combat-action>.icon{display:none}
 .venue-content .battle-stage .combat-action b{font-size:14px!important}
 .venue-content .battle-stage .command-tabs>button{font-size:13.5px;gap:3px}
}
/* the icon already says "Next" on narrow chips; the word stays for screen readers */
@media (max-width:440px),(orientation:landscape) and (max-height:500px){.stage-live .intent-text small{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}}
/* --ctl-h = padding + move row + tabs + 3 card rows (+ gaps): 312 / 320 / 346px by height; wider portraits fit melee in 2 rows */
@media (max-height:700px) and (orientation:portrait){
 .battle-stage{--ticker-h:40px;--ctl-h:calc(312px + env(safe-area-inset-bottom,0px))}
 .stage-live{--fig-top:calc(var(--hud-top) + 106px + 2%)}
 .stage-live .arena-ticker .announcer{font-size:13px}
 .venue-content .battle-stage>.arena-controls{gap:5px;padding-top:6px}
 .venue-content .battle-stage .move-row .movement-button{height:46px;min-height:46px}
 .venue-content .battle-stage .combat-action{min-height:48px!important}
 /* the 3 rows have no slack here: a card keeps to name + one note line (no icon, so the note fits) */
 .venue-content .battle-stage .combat-action>.icon{display:none}
 .venue-content .battle-stage .combat-action>span:not(.action-cost){display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
 .venue-content .battle-stage .combat-action b{display:block;overflow:visible}
}
@media (min-height:780px) and (orientation:portrait){
 .battle-stage{--ctl-h:calc(346px + env(safe-area-inset-bottom,0px))}
 .venue-content .battle-stage .move-row .movement-button{height:54px;min-height:54px;font-size:clamp(11px,3.05vw,13px)}
 .venue-content .battle-stage .combat-action{min-height:58px!important}
 .venue-content .battle-stage .command-tabs>button{height:44px;min-height:44px}
}

@media (min-height:780px) and (orientation:portrait) and (min-width:500px){.battle-stage{--ctl-h:calc(278px + env(safe-area-inset-bottom,0px))}}

/* ---------- 6. Landscape phones (and short laptops/windows, 4:3 and wider): arena left, controls right ---------- */
@media (orientation:landscape) and (max-height:500px),(orientation:landscape) and (max-height:700px) and (min-aspect-ratio:4/3){
 .battle-stage{flex-direction:row;--plate-w:clamp(118px,37%,230px);--ticker-h:40px;--hud-top:6px}
 .venue-content .battle-stage>.arena-scene.in-battle{height:auto;min-height:0;flex:0 0 60%;width:60%;border-bottom:0;border-right:3px solid var(--ss-ink);box-shadow:2px 0 0 var(--ss-bronze)}
 .stage-live{--fig-top:calc(var(--hud-top) + 88px + 2%);--fig-max:42vw}
 .stage-live .stage-tools{max-width:calc(60vw - var(--plate-w) - 26px)}
 .venue-content .battle-stage>.arena-controls,.venue-content .battle-stage.online-duel>.arena-controls:not(.result-panel){flex:1 1 0;height:auto;min-width:0;gap:5px;padding:6px max(8px,env(safe-area-inset-right,0px)) calc(6px + env(safe-area-inset-bottom,0px)) 8px}
 .battle-stage .move-row{grid-template-columns:repeat(3,minmax(0,1fr));row-gap:6px;padding-top:4px}
 .venue-content .battle-stage .move-row .movement-button{height:40px;min-height:40px;flex-direction:row;gap:4px;font-size:12px}
 .venue-content .battle-stage .move-row .movement-button>.icon{width:16px;height:16px}
 .venue-content .battle-stage .command-tabs>button{height:40px;min-height:40px;font-size:13px;gap:3px}
 .venue-content .battle-stage .action-grid{grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:minmax(48px,auto)}
 .venue-content .battle-stage .combat-action{min-height:48px!important;padding:3px 6px 4px}
 /* at most 3 lines per card (a 2-line name keeps a 1-line note), so 3 rows fit a 360px-tall panel */
 .venue-content .battle-stage .combat-action>span:not(.action-cost){display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}
 .venue-content .battle-stage .combat-action b{display:block;overflow:visible;font-size:14px!important;line-height:1!important}
 .venue-content .battle-stage .combat-action small{margin-top:1px!important;font-size:11px!important;line-height:1.2!important}
 .battle-stage .online-rules{display:none}
}
@media (orientation:landscape) and (max-height:500px) and (max-width:720px){
 .venue-content .battle-stage .command-tabs>button .icon{display:none}
 .venue-content .battle-stage .combat-action>.icon{display:none}
 .venue-content .battle-stage .move-row .movement-button>.icon{display:none}
 .battle-stage{--name-max:13.5px}
 .venue-content .battle-stage .combat-action{padding-left:5px;padding-right:5px}
 .venue-content .battle-stage .combat-action b{font-size:13px!important}
 .venue-content .battle-stage .combat-action:has(.action-cost) b{padding-right:12px}
}
/* 360-380px-tall landscape: drop the card icon so names stay on one line and the note keeps both lines */
@media (orientation:landscape) and (max-height:380px){.venue-content .battle-stage .combat-action>.icon{display:none}}

/* ---------- 7. Desktop / tablets ---------- */
@media (min-width:900px) and (min-height:701px),(min-width:900px) and (min-height:501px) and (max-aspect-ratio:1332/1000){
 .venue-combat .venue-layout{max-width:1100px!important;border-left:3px solid var(--ss-ink);border-right:3px solid var(--ss-ink);box-shadow:0 0 0 2px var(--ss-bronze),0 0 80px #000c}
 .battle-stage{--plate-w:min(31%,300px);--ticker-h:48px;--ctl-h:284px;--name-max:17px}
 .venue-content .battle-stage>.arena-scene.in-battle{min-height:58vh}
 .stage-live{--fig-top:calc(var(--hud-top) + 100px + 3%);--fig-max:min(70vw,770px)}
 .stage-live .crowd-layer{top:calc(var(--hud-top) + 146px)}
 .stage-live .plate-hp>.meter{height:17px!important}
 .stage-live .plate-num{font-size:12.5px}
 .stage-live .arena-ticker .announcer{font-size:15px}
 .venue-content .battle-stage>.arena-controls{padding:10px 16px 12px;gap:8px}
 .venue-content .battle-stage .move-row .movement-button{height:54px;min-height:54px;font-size:13.5px}
 .venue-content .battle-stage .command-tabs{max-width:640px;width:100%;align-self:center}
 .venue-content .battle-stage .action-grid{grid-template-columns:repeat(auto-fill,minmax(200px,1fr));grid-auto-rows:minmax(58px,auto)}
}

/* ---------- 8. Lobby preview (no battle) ---------- */
/* the fight button sits right under the VS card and stays pinned to the bottom until you scroll past it */
.arena-main:not(.battle-stage){overflow:clip}
.arena-main:not(.battle-stage)>.lobby-fight{position:sticky;bottom:calc(8px + env(safe-area-inset-bottom,0px));z-index:6;padding:12px 14px 0}
.arena-main:not(.battle-stage)>.lobby-fight>.fight-button{margin:0;box-shadow:inset 0 2px 0 #fff5,inset 0 -3px 0 #0004,0 3px 0 var(--ss-ink),0 8px 18px #000a}
.arena-main:not(.battle-stage)>.lobby-fight>a.fight-button{text-decoration:none}
.arena-main:not(.battle-stage)>.lobby-fight>a.fight-button>.icon:last-child{transform:rotate(90deg)}
/* cup: once rested, the pinned "Fight round N" is the only fight button and also sticks to the top, so it stays on screen after you pick a recovery down in the camp */
.arena-main:not(.battle-stage)>.lobby-fight.cup-fight{top:8px}
.arena-main:not(.battle-stage)>.tournament-camp>[data-action=fight]{display:none}
.tournament-camp .recovery-choices{scroll-margin-top:clamp(64px,100dvh - 300px,170px)}
/* short landscape: the card can't fit under a pinned button, so the button leads a card sized to fit the screen with it (nothing covers the fighters) */
@media (orientation:landscape) and (max-height:500px){
 .arena-main:not(.battle-stage){display:flex;flex-direction:column}
 .arena-main:not(.battle-stage)>.lobby-fight{order:-1;position:relative;bottom:auto;padding:0 0 12px}
 .arena-main:not(.battle-stage)>.lobby-fight.cup-fight{position:sticky}
 .arena-main:not(.battle-stage)>.arena-scene{height:clamp(180px,100dvh - 168px,390px)}
 .arena-main:not(.battle-stage)>.arena-scene .arena-location{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
}
.arena-main:not(.battle-stage) .arena-scene:not(.in-battle) .preview-world{height:66%;bottom:48px}
.arena-main:not(.battle-stage) .arena-scene .preview-world .preview-fighter{height:100%;width:auto!important;max-width:none;aspect-ratio:1;bottom:0}
.arena-scene:not(.in-battle) .scene-name{z-index:4;font-family:var(--ss-font-display);font-weight:400;color:#fff8e6;text-shadow:var(--bs-o1)}
.arena-scene:not(.in-battle) .scene-name>span{font-family:var(--font,'DM Sans');font-weight:600;color:#fbe7c4;text-shadow:0 1px 2px #000}
.arena-scene:not(.in-battle) .scene-vs{z-index:4;font:400 1.6rem var(--ss-font-display);color:var(--ss-gold);text-shadow:var(--ss-outline)}
/* ---------- 10.0: champion fights (BOSS badge, telegraph banner, trick chip), arena surprises, the amphora's space ---------- */
.stage-live .boss-badge{flex:none;align-self:center;padding:1px 5px 0;border:1.5px solid var(--ss-ink);border-radius:5px;background:linear-gradient(#ffe08f,#e0a13a);color:#7d1a12;font:400 11px/1.25 var(--ss-font-display);font-style:normal;letter-spacing:.08em;text-shadow:none;box-shadow:0 1px 0 var(--ss-ink)}
.stage-live .boss-badge.grudge-badge{background:linear-gradient(#e0584a,#8f2317);color:#fff3dc}
.stage-live .plate-name:has(.boss-badge) b{font-size:clamp(10px,calc((100cqw - 82px)/(var(--len)*.47)),var(--name-max))!important}
.stage-live .grudge-badge .icon{display:none;width:12px;height:12px;vertical-align:-2px}
/* narrow plates (phones): the grudge badge shrinks to its thumbs-down, so the rival's name keeps its room */
@container (max-width:200px){.stage-live .grudge-badge{padding:1px 3px}.stage-live .grudge-badge>span{display:none}.stage-live .grudge-badge .icon{display:inline-block}.stage-live .plate-name:has(.grudge-badge) b{font-size:clamp(10px,calc((100cqw - 66px)/(var(--len)*.47)),var(--name-max))!important}}
.stage-live .rival-intent.intent-trick>summary{background:linear-gradient(180deg,#ffe08f,#f0b955 60%,#d18f3a);box-shadow:0 0 0 2px #c0392b,0 3px 0 #2b1709cc}
.stage-live .rival-intent.intent-trick .intent-icon{background:radial-gradient(circle at 35% 30%,#e0584a,#8f2317);box-shadow:0 0 0 2px #ffd24a}
.stage-live .rival-intent.intent-trick small{color:#8f2317;font-weight:800;letter-spacing:.04em}
html:not([data-motion=off]) .stage-live .rival-intent.intent-trick .intent-icon{animation:bs-trick 1s ease-in-out 3}
@keyframes bs-trick{50%{transform:scale(1.18) rotate(-8deg)}}
/* Banners hang just under the HUD (views.js stageBanners inside .battle-hud), clear of the sand, the fighters' feet and the hazard marks. */
.stage-live .stage-banners{position:absolute;top:calc(100% + 6px);left:50%;width:min(100%,460px);transform:translateX(-50%);display:grid;justify-items:center;gap:5px;pointer-events:none!important}
.stage-live .stage-banners>*{display:flex;align-items:center;gap:8px;max-width:100%;min-height:38px;padding:3px 12px 3px 5px;border:2px solid var(--ss-ink);border-radius:12px;box-shadow:0 3px 0 #2b1709cc,0 6px 14px #0007;text-align:left}
.stage-live .stage-banners>*>.icon,.stage-live .decree-count>strong{flex:none;display:grid;place-items:center;width:30px;height:30px;padding:5px;border:2px solid var(--ss-ink);border-radius:50%}
.stage-live .stage-banners>*>div{min-width:0;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;font:600 12px/1.25 var(--font,'DM Sans')}
.stage-live .stage-banners b{margin-right:5px;font:400 14.5px/1.1 var(--ss-font-display);letter-spacing:.02em}
.stage-live .trick-telegraph{background:linear-gradient(180deg,#b3261e,#7d1a12);color:#fff3dc}
.stage-live .trick-telegraph>.icon{background:radial-gradient(circle at 35% 30%,#fff3c4,#ffd24a 55%,#d18f3a);color:#7d1a12}
.stage-live .trick-telegraph b{color:var(--ss-gold);text-shadow:var(--bs-o1)}
html:not([data-motion=off]) .stage-live .trick-telegraph{animation:bs-slam .45s cubic-bezier(.2,1.6,.4,1) both}
@keyframes bs-slam{from{transform:scale(1.35);opacity:0}}
.stage-live .surprise-notice{background:linear-gradient(180deg,#5b2f86,#3a1d5a);color:#f6ecff}
.stage-live .surprise-notice>.icon{background:radial-gradient(circle at 35% 30%,#fff3c4,#e0b030 60%,#a8741c);color:#3a1d5a}
.stage-live .surprise-notice b{color:#ffd24a;text-shadow:var(--bs-o1)}
.stage-live .decree-count>strong{width:34px;height:34px;padding:0;background:linear-gradient(#fff3c4,#f0c46a 60%,#d9a441);color:#3a1d5a;font:400 20px/1 var(--ss-font-display)}
.stage-live .surprise-notice.surprise-fruit,.stage-live .surprise-notice.surprise-mother{background:linear-gradient(180deg,#6b4424,#3b2414)}
.stage-live .surprise-notice.surprise-spikes,.stage-live .surprise-notice.surprise-firering,.stage-live .surprise-notice.surprise-lion{background:linear-gradient(180deg,#8a3d12,#5a2308)}
.stage-live .ground-ruler>i.gift-cell{background:#ffd24a;box-shadow:0 0 8px #ffd24a}
@media (max-width:420px){.stage-live .stage-banners>*{min-height:34px;padding:2px 9px 2px 4px}.stage-live .stage-banners>*>div{font-size:11.5px}.stage-live .stage-banners b{font-size:13.5px}.stage-live .stage-banners>*>.icon{width:26px;height:26px;padding:4px}}
@media (max-height:500px){.stage-live .stage-banners{width:min(100%,420px);gap:3px}.stage-live .stage-banners>*{min-height:30px;padding:1px 9px 1px 3px}.stage-live .stage-banners>*>div{-webkit-line-clamp:1}.stage-live .stage-banners>*>.icon{width:24px;height:24px;padding:4px}.stage-live .decree-count>strong{width:26px;height:26px;font-size:16px}}
/* the surprise as a pill beside the status pills: only where the banner would cover the fighters (short landscape screens) */
.stage-live .arena-notices .surprise-pill{display:none;background:#4b2670eb;color:#f6ecff}
@media (max-height:500px){.stage-live .stage-banners>.surprise-notice{display:none}.stage-live .arena-notices .surprise-pill{display:flex}}
/* after a win: the legendary drop (gold), revenge and a settled grudge announced in the banner slot */
.stage-live .loot-banner{background:linear-gradient(100deg,#fff3c4,#f0c46a 55%,#d9a441);color:var(--ss-parch-ink);box-shadow:0 0 0 2px #ffd24a88,0 3px 0 #2b1709cc,0 0 22px #ffd24a88!important;padding-left:3px}
.stage-live .loot-banner-art{flex:none;display:grid;place-items:center;width:40px;height:40px;margin:-4px 0}
.stage-live .loot-banner-art>*{width:40px;height:40px}
.stage-live .loot-banner b{color:#8f2317;font-size:16px}
html:not([data-motion=off]) .stage-live .loot-banner{animation:bs-slam .5s .2s cubic-bezier(.2,1.6,.4,1) both}
.stage-live .grudge-banner{background:linear-gradient(180deg,#3b2414,#1d0f06)}
/* 10.0 offline: stunned (a champion's stomp) → the whole move row is one Guard button; snared (a net) → the net's notice holds the four movement slots */
.venue-content .battle-stage .move-row.stunned .stun-guard{grid-column:1/-1;flex-direction:row;gap:8px;font:400 17px/1.1 var(--ss-font-display);letter-spacing:.02em;box-shadow:0 0 0 3px #ffd24a,0 3px 0 var(--ss-ink)}
.venue-content .battle-stage .move-row.stunned .stun-guard>.icon{width:24px;height:24px}
.venue-content .battle-stage .move-row.stunned .stun-guard b{color:#ffd24a;font-weight:400;margin-right:4px}
html:not([data-motion=off]) .venue-content .battle-stage .move-row.stunned .stun-guard:not(:disabled)>.icon{animation:bs-dizzy 1.2s linear 3}
@keyframes bs-dizzy{to{transform:rotate(360deg)}}
.battle-stage .move-row.snared .snare-note{grid-column:span 4;display:flex;align-items:center;gap:7px;min-width:0;margin:0;padding:3px 9px;border:2px dashed #e3cba5;border-radius:12px;background:repeating-linear-gradient(45deg,#3b2414 0 6px,#4a2f1a 6px 12px);color:#fff0d2;font:600 11.5px/1.25 var(--font,'DM Sans');text-align:left}
.battle-stage .move-row.snared .snare-note>.icon{flex:none;width:20px;height:20px;color:#ffd24a}
.battle-stage .move-row.snared .snare-note b{font:400 13.5px/1.1 var(--ss-font-display);color:#ffd24a;margin-right:3px}
@media (orientation:landscape) and (max-height:500px),(orientation:landscape) and (max-height:700px) and (min-aspect-ratio:4/3){
 .venue-content .battle-stage .move-row.stunned .stun-guard{grid-row:span 2;height:auto!important;min-height:86px}
 .battle-stage .move-row.snared .snare-note{grid-column:1/-1}
}
/* ---------- 10.1: the Emperor's fight, beast pit bouts, Imperator ---------- */
/* EMPEROR / BEAST badges on the rival's plate (like GRUDGE: the word on wide plates, the icon on narrow ones). */
.stage-live .boss-badge.emperor-badge{background:linear-gradient(#b46ad8,#5a1f7a);color:#ffe08f}
.stage-live .boss-badge.beast-badge{background:linear-gradient(#c99a58,#7a4a1c);color:#fff3dc}
.stage-live :is(.emperor-badge,.beast-badge) .icon{display:none;width:12px;height:12px;vertical-align:-2px}
@container (max-width:200px){.stage-live :is(.emperor-badge,.beast-badge){padding:1px 3px}.stage-live :is(.emperor-badge,.beast-badge)>span{display:none}.stage-live :is(.emperor-badge,.beast-badge) .icon{display:inline-block}.stage-live .plate-name:has(:is(.emperor-badge,.beast-badge)) b{font-size:clamp(10px,calc((100cqw - 66px)/(var(--len)*.47)),var(--name-max))!important}}
/* A crowned gladiator's plate wears a gold laurel (Imperator). */
.imp-badge{display:inline-grid;place-items:center;flex:none;width:18px;height:18px;margin:0 3px 0 auto;border-radius:50%;background:linear-gradient(#ffe08f,#d18f3a);box-shadow:0 0 0 1.5px var(--ss-ink);color:#5a1f7a}
.imp-badge .icon{width:13px;height:13px;stroke-width:2.2}
.hc-skull+.imp-badge{margin-left:0}
.plate-name>.imp-badge+span{margin-left:0}
/* A beaten beast has bolted (fx played the flee): its slot stays empty on the result screen. */
.stage-live .fighter-sprite.is-beast.fled{visibility:hidden}
/* A beast's telegraphed move: the banner in pit colours. */
.stage-live .trick-telegraph.beast-telegraph{background:linear-gradient(180deg,#9a5a1c,#5a3212)}
/* 10.7 first-fight coaching: one tip above the controls and a glow on the button (or tab) it means */
.battle-controls .coach-tip{display:flex;align-items:center;gap:8px;margin:0 0 6px;padding:6px 8px 6px 10px;border:2px solid var(--ss-ink);border-radius:12px;background:var(--ss-parch-bg);color:var(--ss-parch-ink);font:600 13.5px/1.35 var(--font);box-shadow:0 2px 0 var(--ss-ink)}
.battle-controls .coach-tip>.icon{flex:none;width:22px;height:22px;color:#8a3d12}
.battle-controls .coach-tip>span{flex:1;min-width:0}
.battle-controls .coach-tip .coach-off{flex:none;min-height:44px;margin:0;padding:0 6px;font-size:12px;color:#6e2a0d;text-decoration:underline}
.battle-controls .coach-pulse{position:relative;z-index:1;animation:coach-glow 1.4s ease-in-out infinite}
@keyframes coach-glow{0%,100%{box-shadow:0 0 0 2px #ffd24a,0 0 6px 2px #ffd24a99}50%{box-shadow:0 0 0 4px #ffd24a,0 0 16px 6px #ffd24acc}}
html[data-motion="off"] .battle-controls .coach-pulse{animation:none;box-shadow:0 0 0 3px #ffd24a,0 0 10px 3px #ffd24aaa}
@media (prefers-reduced-motion:reduce){.battle-controls .coach-pulse{animation:none;box-shadow:0 0 0 3px #ffd24a,0 0 10px 3px #ffd24aaa}}
/* 10.11 a blessing / a drink on the gladiator's plate for this fight */
.boon-badge{display:inline-grid;place-items:center;flex:none;width:18px;height:18px;margin:0 3px 0 auto;border-radius:50%;background:linear-gradient(#8fb4e6,#3d6aa8);box-shadow:0 0 0 1.5px var(--ss-ink);color:#fff6dc}
.boon-badge .icon{width:12px;height:12px;stroke-width:2.2}
.boon-badge.drink-badge{background:linear-gradient(#e0a860,#8a5a2f)}
:is(.hc-skull,.imp-badge,.boon-badge)+.boon-badge{margin-left:0}
.plate-name>.boon-badge+span{margin-left:0}
/* combat-fx attack: the one striking is drawn over the one struck while the blow lands */
.battle-world .fighter-sprite.is-striking{z-index:3}
/* Side by side (views.js adj-l / adj-r, one space apart), fighters stand aside by --adj (combat-fx measure: centres at least half a
   fighter apart on a narrow arena; 0 where the lane's cells are wide enough). */
.battle-world .fighter-sprite.adj-l{translate:calc(-1 * var(--adj,0px)) 0}
.battle-world .fighter-sprite.adj-r{translate:var(--adj,0px) 0}
/* 10.13 companions (views.js mateSprite): behind their fighters, a little smaller (further back on the sand), facing the fight */
.battle-world .mate-sprite{position:absolute;bottom:4%;height:84%;aspect-ratio:1;transform:translateX(-50%);pointer-events:none}
.mate-sprite .sprite-facing{position:relative;width:100%;height:100%;transform-origin:center}
.mate-sprite.faces-left .sprite-facing{transform:scaleX(-1)}
.mate-sprite .sprite-motion{width:100%;height:100%;transform-origin:50% 94%;filter:drop-shadow(0 4px 2px #20130955) saturate(.92)}
.mate-sprite .mate-shadow{position:absolute;left:20%;bottom:3%;width:60%;height:6%;border-radius:50%;background:#4125187a;filter:blur(3px)}
.mate-sprite.downcast .sprite-motion{transform:rotate(3deg) translateY(2%);opacity:.9}
