/* BeanBot TEST - DexRun end-boss uses the same PvP arena illustration,
 * two fighter positions, three HUD bars, button order, and disabled/active
 * treatment. Server PvP engine, Guardian sprite sources and one-life rules stay.
 */
#dexrunBossPvPPanel,
#dexrunBossPvPPanel[data-boss-level="1"]{
 /* Legacy ring unhooked so the HUD-pack wallpaper can paint: /assets/arenas/arena_bg_v4_octagon_D.webp?v=20261124-arena-v4-r1 */
 background-color:#050806!important;
 background-image:none!important;
 padding:0!important;align-items:flex-start!important;justify-content:center!important;
 overflow:hidden!important;overscroll-behavior:contain;touch-action:manipulation!important;
}
#dexrunBossPvPPanel > div,
#dexrunBossPvPPanel[data-boss-level="1"] > div{
 display:flex!important;flex-direction:column;gap:8px;
 width:min(100%,760px)!important;min-height:100dvh!important;
 max-height:none!important;margin:0 auto!important;
 padding:max(9px,env(safe-area-inset-top)) 8px max(12px,env(safe-area-inset-bottom))!important;
 background:transparent!important;border:0!important;border-radius:0!important;
 box-shadow:none!important;overflow:visible!important;
}
#dexrunBossTitle{order:0;margin:0!important;padding:4px!important;
 color:#fff!important;font:900 15px/1.2 system-ui!important;text-shadow:0 2px 6px #000}
#dexrunBossResourceBars{order:1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
 align-items:start;gap:clamp(12px,10vw,75px);padding:0 5px;width:100%;pointer-events:none}
#dexrunBossResourceBars .dexrun-boss-vitals{
 min-width:0;display:flex;flex-direction:column;align-items:stretch;gap:3px;
 color:#fff;background:transparent;border:0;box-shadow:none;text-align:left
}
#dexrunBossResourceBars .dexrun-boss-vitals:last-child{text-align:right}
#dexrunBossResourceBars .dexrun-boss-vitals > strong{
 display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
 font:900 clamp(12px,3vw,16px)/1.2 system-ui;text-shadow:0 2px 6px #000;margin:0 0 4px}
#dexrunBossResourceBars .dexrun-boss-stat{
 display:flex;align-items:center;gap:6px;width:100%;min-width:0;
 margin:0;padding:0;font:800 10px system-ui;color:#fff
}
#dexrunBossResourceBars .dexrun-boss-stat > span:first-child{display:none}
#dexrunBossResourceBars .dexrun-boss-stat.health > span:last-child{
 flex:0 0 35px;order:-1;text-align:left;font-size:13px;
 font-variant-numeric:tabular-nums;text-shadow:0 2px 5px #000
}
#dexrunBossResourceBars .dexrun-boss-vitals:last-child .health > span:last-child{order:1;text-align:right}
#dexrunBossResourceBars .dexrun-boss-stat:not(.health) > span:last-child{display:none}
#dexrunBossResourceBars .dexrun-boss-stat progress{
 appearance:none;-webkit-appearance:none;display:block;flex:1;min-width:0;
 height:9px;margin:0;padding:0;border-radius:999px;overflow:hidden;
 border:1px solid var(--track-border,transparent);
 background:var(--track-bg,rgba(0,0,0,.43))
}
#dexrunBossResourceBars .dexrun-boss-stat.shield progress{
 --track-bg:rgba(16,89,124,.45);--track-border:rgba(109,218,255,.95)
}
#dexrunBossResourceBars .dexrun-boss-stat.energy progress{
 --track-bg:rgba(119,77,12,.46);--track-border:rgba(255,215,107,.94)
}
#dexrunBossResourceBars progress::-webkit-progress-bar{background:var(--track-bg,rgba(0,0,0,.43));border-radius:999px}
#dexrunBossResourceBars .health progress::-webkit-progress-value{background:linear-gradient(90deg,#16c660,#68ff8a)}
#dexrunBossResourceBars .dexrun-boss-vitals:last-child .health progress::-webkit-progress-value{background:linear-gradient(90deg,#f74a55,#ff8c7c)}
#dexrunBossResourceBars .shield progress::-webkit-progress-value{background:linear-gradient(90deg,#1389d4,#75eaff)}
#dexrunBossResourceBars .energy progress::-webkit-progress-value{background:linear-gradient(90deg,#d8a027,#ffe872)}
#dexrunBossResourceBars .health progress::-moz-progress-bar{background:#48e47a}
#dexrunBossResourceBars .dexrun-boss-vitals:last-child .health progress::-moz-progress-bar{background:#f74a55}
#dexrunBossResourceBars .shield progress::-moz-progress-bar{background:#45bbf1}
#dexrunBossResourceBars .energy progress::-moz-progress-bar{background:#f1ca54}
#dexrunBossPvPPanel #dexrunBlazeStage{
 order:2;display:grid!important;position:relative;isolation:isolate;
 grid-template-columns:minmax(0,1fr) 24px minmax(0,1fr)!important;
 align-items:end!important;gap:0!important;height:clamp(260px,47dvh,440px)!important;
 min-height:260px!important;width:100%!important;padding:0!important;margin:0!important;
 overflow:visible!important;border:0!important;border-radius:0!important;
 box-shadow:none!important;background:transparent!important
}
#dexrunBossPvPPanel #dexrunBlazeStage .arena-fighter{
 display:flex;align-items:flex-end;justify-content:center;min-width:0;
 width:100%;height:100%;align-self:end;transform-origin:50% 88%
}
#dexrunBossPvPPanel #dexrunBlazePlayerSprite{
 display:block!important;position:static!important;inset:auto!important;
 width:min(100%,280px)!important;max-width:100%!important;
 height:min(37dvh,300px)!important;max-height:300px!important;
 margin:0!important;padding:0!important;object-fit:contain!important;
 object-position:center bottom!important;aspect-ratio:auto!important;
 filter:drop-shadow(0 12px 11px rgba(0,0,0,.8))!important
}
#dexrunBossPvPPanel #dexrunBlazeStage .dexrun-blaze-vs{
 align-self:center;z-index:3;font:900 23px system-ui;color:#f8d447;text-shadow:0 2px 6px #000
}
#dexrunBossPvPPanel #dexrunBlazeMoveFx{display:none!important}
#dexrunBossPvPPanel #dexrunBossStatus{
 order:3;min-height:22px;margin:0!important;
 font:900 20px/1.3 system-ui!important;color:#fff;text-shadow:0 2px 7px #000;text-align:center
}
#dexrunBossPvPPanel #dexrunBossStats{display:none!important}
#dexrunBossPvPPanel #dexrunBossChoice{
 order:4;max-width:420px;margin:0 auto!important;padding:10px!important;
 background:rgba(4,12,8,.8);border:1px solid rgba(124,255,56,.4);
 border-radius:14px;text-align:left
}
#dexrunBossPvPPanel #dexrunBossActions{
 order:5;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
 column-gap:4px!important;row-gap:2px!important;align-items:start;
 justify-items:center;width:100%!important;margin:6px 0 0!important;
 padding:0!important;touch-action:manipulation!important
}
#dexrunBossPvPPanel #dexrunBossActions > button[data-combat-action]{
 display:block!important;position:relative!important;
 width:calc(100% - 12px)!important;max-width:330px!important;
 height:auto!important;min-height:62px!important;aspect-ratio:8 / 3!important;
 margin:0 auto 15px!important;padding:0!important;border:0!important;
 border-radius:0!important;box-shadow:none!important;background-color:transparent!important;
 /* Artwork sizing and layered frame are owned by HudPackScene. */
 color:transparent!important;-webkit-text-fill-color:transparent!important;
 font-size:0!important;line-height:0!important;
 text-indent:0!important;white-space:nowrap!important;overflow:visible!important;
 touch-action:manipulation!important
}
html:not([data-hudpack]) #dexrunBossPvPPanel #dexrunBossActions > button[data-combat-action]::after{
 display:block!important;content:attr(data-energy-cost)!important;
 position:absolute!important;left:0;right:0;top:calc(100% + 3px);bottom:auto;
 width:100%;height:17px;max-width:none!important;padding:1px 0!important;
 margin:0!important;border:0!important;border-radius:0!important;
 background:transparent!important;color:#fff2a5!important;
 -webkit-text-fill-color:#fff2a5!important;
 font:900 11px/15px system-ui,Arial,sans-serif!important;
 text-align:center!important;letter-spacing:.07em!important;
 text-shadow:0 1px 3px #000,0 0 6px #000!important;pointer-events:none
}
#dexrunBossPvPPanel #dexrunBossActions > button[data-combat-action]:not(:disabled){
 opacity:1!important;filter:brightness(1.31) contrast(1.52) saturate(1.55)
 drop-shadow(0 0 9px rgba(255,170,57,.67))!important
}
#dexrunBossPvPPanel #dexrunBossActions > button[data-combat-action]:disabled{
 opacity:.72!important;filter:brightness(.92) saturate(.86)!important;cursor:not-allowed!important
}
#dexrunBossPvPPanel #dexrunBossActions > button:not([data-combat-action]){
 grid-column:1/-1;min-height:46px;padding:10px;border-radius:10px;
 font:900 13px system-ui;color:#fff;background:#102719;border:1px solid #54a772
}
@media(max-width:390px){
 #dexrunBossPvPPanel #dexrunBlazeStage{height:265px!important}
 #dexrunBossPvPPanel #dexrunBlazePlayerSprite{height:220px!important}
 #dexrunBossPvPPanel #dexrunBossActions > button[data-combat-action]{
  width:calc(100% - 8px)!important;min-height:58px!important
 }
}
@media(prefers-reduced-motion:reduce){
 #dexrunBossPvPPanel #dexrunBlazePlayerSprite{animation:none!important}
}

/* Dexatron is the fixed Level hero. His duel size is the PvP size
   (assets/pvp/dexrun_boss_fighter_scale.css + FighterDrawScale). */
#dexrunBossPvPPanel #dexrunBossFixedHero{
 display:block;text-align:center;color:#fff;font:900 15px/1.35 system-ui;
 letter-spacing:.06em;text-shadow:0 2px 6px #000;
}

/* DexRun uses the one shared HUD button scene for all six fighter
   illustrations and energy captions. Keep this stylesheet for layout,
   disabled states and optional non-pack fallback only. */

/* Shared PvP move notification above fighters; no extra HUD container. */
#dexrunBossPvPPanel #dexrunBossMoveBanner{order:2;display:block;min-height:20px;margin:2px 0 0;padding:0 5px;text-align:center;color:#ffe58e;font:900 14px/20px system-ui,Arial,sans-serif;text-shadow:0 2px 6px #000;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;pointer-events:none}
#dexrunBossPvPPanel #dexrunBlazeStage{order:3!important}
#dexrunBossPvPPanel #dexrunBossStatus{order:4!important}
#dexrunBossPvPPanel #dexrunBossChoice{order:5!important}
#dexrunBossPvPPanel #dexrunBossActions{order:6!important}
#dexrunBossPvPPanel #dexrunBossMoveBanner.dexrun-boss-announced{animation:dexrunBossMoveFlash .75s ease-out}
@keyframes dexrunBossMoveFlash{0%{opacity:.2;translate:0 5px}35%,100%{opacity:1;translate:0 0}}
@media(prefers-reduced-motion:reduce){#dexrunBossPvPPanel #dexrunBossMoveBanner.dexrun-boss-announced{animation:none!important}}


/* DEXRUN BOSS HUD PACK V1 - Level 01 Corrupted Blaze */
/*
 * Every DEXRUN end boss receives an individually themed arena and HUD pack,
 * but all modes retain the same six-action PvP resolver and button semantics.
 * Keep the original assets/pvp/combat_buttons/dexatron move mappings; Level 1
 * uses a warm colour treatment for those same six PNGs, NOT new moves.
 *
 * Use the committed Emberfall panorama as the background. A previous
 * reference to boss_hud/arena.jpeg produced a 404 because that optional
 * artwork was never committed. Do not request absent files.
 */
#dexrunBossPvPPanel[data-boss-level="1"]{
 --dexrun-boss-hud-accent:#ff782a;
 --dexrun-boss-hud-glow:rgba(255,98,29,.65);
 /* Emberfall panorama unhooked from the boss panel: emberfall_level01_panorama_4k.webp */
 background-color:#050806!important;
 background-image:none!important;
 background-attachment:scroll!important;
}
#dexrunBossPvPPanel[data-boss-level="1"] > div{
 background:transparent!important;
 border:0!important;
 border-radius:0!important;
 box-shadow:none!important;
 backdrop-filter:none!important;
 -webkit-backdrop-filter:none!important;
}
#dexrunBossPvPPanel[data-boss-level="1"] #dexrunBlazeStage{
 background:transparent!important;
 background-image:none!important;
 border:0!important;
 border-radius:0!important;
 box-shadow:none!important;
 backdrop-filter:none!important;
 -webkit-backdrop-filter:none!important;
}
/* Shared combat art is not hue-rotated. A filter here recolored the
   illustrated buttons and their pack frame. */
#dexrunBossPvPPanel[data-boss-level="1"] #dexrunBossActions > button[data-combat-action]:focus-visible{
 outline:2px solid var(--dexrun-boss-hud-accent)!important;
 outline-offset:2px!important;
}
/* No transforms on panel or stage; only fighter sprites/FX may animate. */

/* BeanBot TEST — Corrupted Frost Level 2 boss uses Blaze's shared battle layout.
   Dedicated Frozen Relay arena background only once, and Frost top-HUD. */
#dexrunBossPvPPanel[data-boss-level="2"]{
 --dexrun-boss-hud-accent:#86e8ff;
 --dexrun-boss-hud-glow:rgba(96,217,255,.58);
 /* Frozen Relay arena unhooked from the boss panel: levels/level02/boss_arena/arena.webp */
 background-color:#050806!important;
 background-image:none!important;
 background-attachment:scroll!important;
}
#dexrunBossPvPPanel[data-boss-level="2"] > div,
#dexrunBossPvPPanel[data-boss-level="2"] #dexrunBlazeStage{
 background:transparent!important;background-image:none!important;border:0!important;box-shadow:none!important;
}
#dexrunBossPvPPanel[data-boss-level="2"] #dexrunBlazePlayerSprite{
 width:clamp(115px,23vw,170px)!important;max-width:170px!important;
 height:clamp(115px,23vw,170px)!important;max-height:170px!important;
}
#dexrunBossPvPPanel[data-boss-level="2"] #dexrunBossTitle,
#dexrunBossPvPPanel[data-boss-level="2"] #dexrunBossMoveBanner{color:#d5f7ff!important}
/* Level 2 no longer hue-rotates the shared combat buttons. */
