/* BEAN BOT TEST: DEXUS-style compact HUD on the newer local game engine. */
#dexrunTopHUD{position:absolute;top:max(8px,env(safe-area-inset-top));left:6px;right:56px;max-width:calc(100% - 62px);z-index:5;pointer-events:none}
#dexrunTopHUD #hud{position:relative;top:auto;left:auto;right:auto;display:flex;flex-flow:row wrap;justify-content:flex-start;align-items:center;gap:3px;pointer-events:none;padding-right:78px}
#dexLevelCounter{position:absolute;top:0;right:0;z-index:3;display:flex;align-items:center;gap:4px;height:32px;pointer-events:none}
#dexLevelCounter img{width:22px;height:22px;display:block;filter:drop-shadow(0 0 5px rgba(124,255,56,.8))}
#dexLevelCounter b{font:950 15px/1 system-ui;color:#f4fff1;font-variant-numeric:tabular-nums;text-shadow:0 2px 4px #000,0 0 8px rgba(124,255,56,.4);min-width:1ch}
#dexrunTopHUD #hud .hudbox{font-size:10px!important}
#dexrunTopHUD #dexrunThemeIdentity{pointer-events:auto;cursor:pointer;color:#eaffdf;min-width:36px}
#dexrunTopHUD #dexrunHudDetails{width:max-content;max-width:90vw;padding:8px;margin-top:5px;background:#031408eb}
#dexrunTopHUD #dexrunHudDetails[hidden],#dexrunTopHUD #dexusCityVitals[hidden],#dexrunTopHUD #dexusCityVitals label[hidden]{display:none!important}
#dexrunTopHUD #dexusCityVitals{padding:4px 7px;border:1px solid #315a39;border-radius:10px;background:#030c09ee}
#dexrunTopHUD #dexusCityVitals label{display:flex;align-items:center;gap:5px;font-size:10px;font-weight:900}
#dexrunTopHUD #dexusCityHealth{width:47px;height:11px;accent-color:#40e47e}
#dexrunTopHUD #dexusCityShield{width:36px;height:10px;accent-color:#40cfff}
#wrap[data-dexrun-level="1"] #dexrunThemeIdentity{border-color:#70e78b;color:#abffc6}
#wrap[data-dexrun-level="2"] #dexrunThemeIdentity{border-color:#59bbec;color:#c4f6ff}
#wrap[data-dexrun-level="3"] #dexrunThemeIdentity{border-color:#ff596b;color:#ffb6c4}
#wrap[data-dexrun-level="4"] #dexrunThemeIdentity{border-color:#e5b34e;color:#ffe5a3}
#wrap[data-dexrun-level="5"] #dexrunThemeIdentity{border-color:#e3bf57;color:#ffedb0}
#wrap[data-dexrun-level="6"] #dexrunThemeIdentity{border-color:#3ce095;color:#c5ffe3}
#beanbotGraphicsToggle{display:block;margin:6px auto;padding:8px 12px;color:#ddfff0;background:#0b3022;border:1px solid #4cb786;border-radius:10px;font:900 11px system-ui;cursor:pointer}
#dexrunBossPvPPanel #dexrunBossActions button{min-height:44px;border:1px solid #3d8c6a;border-radius:11px;background:linear-gradient(140deg,#0c3525,#122b44);color:#e6fff4;font-weight:900}
#dexrunBossPvPPanel #dexrunBossActions button:disabled{opacity:.5}
#dexrunBossPvPPanel #dexrunBossActions button:active:not(:disabled){border-color:#7cff38}
@media(max-width:480px){#dexrunTopHUD{right:50px;max-width:calc(100% - 56px)}#dexrunTopHUD #hud{padding-right:68px}#dexrunTopHUD #hud .hudbox{padding:3px 5px!important}#dexLevelCounter img{width:18px;height:18px}#dexLevelCounter b{font-size:13px}}

/* Corrupted Blaze: approved fighter sprite and fiery PvP boss presentation (Level 1 ONLY). */
#dexrunBossPvPPanel[data-boss-level="1"]{
 background:radial-gradient(ellipse at 50% 34%,rgba(162,50,18,.35),transparent 61%),linear-gradient(180deg,#1b0710,#03040b)!important
}
#dexrunBossPvPPanel[data-boss-level="1"] > div{
 border-color:#ff824b!important;background:linear-gradient(170deg,#2b0c11,#0a1020 84%)!important;
 box-shadow:0 0 38px rgba(255,77,21,.17)
}
#dexrunBossPvPPanel[data-boss-level="1"] #dexrunBossTitle{color:#ffbc79!important}

/* Reuse existing canonical PvP fighter sprites opposite Corrupted Blaze. */
#dexrunBossPvPPanel[data-boss-level="1"] #dexrunBlazeStage{
 position:relative;display:grid;grid-template-columns:minmax(0,1fr) 26px minmax(0,1fr);
 align-items:center;gap:3px;min-height:170px;width:100%;overflow:visible;
 padding:8px 4px;margin:9px 0 12px;
 border:1px solid rgba(255,115,47,.55);border-radius:14px;
 background:radial-gradient(ellipse at 78% 54%,rgba(245,67,22,.22),transparent 55%),
 linear-gradient(180deg,#12141e,#0a101b 80%)
}
#dexrunBossPvPPanel[data-boss-level="1"] #dexrunBlazePlayerSprite{
 width:100%;max-height:168px;object-fit:contain;object-position:center bottom;
 filter:drop-shadow(0 0 12px rgba(69,218,255,.20))
}
#dexrunBossPvPPanel[data-boss-level="1"] #dexrunBlazeStage .dexrun-blaze-vs{
 font:1000 16px system-ui;color:#ffd54a;text-shadow:0 0 10px #ff592b
}
#dexrunBossPvPPanel[data-boss-level="1"] #dexrunBlazeMoveFx{
 position:absolute;left:0;right:0;bottom:0;color:#fff2ce;font:900 11px system-ui;
 text-shadow:0 1px 5px #000;pointer-events:none;
 background:linear-gradient(90deg,transparent,rgba(131,20,7,.88),transparent);
 padding:4px 3px
}
#dexrunBossPvPPanel[data-boss-level="1"] #dexrunBlazeMoveFx[hidden]{display:none}
@media(max-width:390px){#dexrunBossPvPPanel[data-boss-level="1"] #dexrunBlazeStage{min-height:135px}#dexrunBossPvPPanel[data-boss-level="1"] #dexrunBlazePlayerSprite{max-height:128px}}

/* Level 1 Emberfall panorama stays on disk. The boss panel no longer paints it.
   emberfall_level01_panorama_4k.webp */
#dexrunBossPvPPanel[data-boss-level="1"]{
 background-color:#050806!important;
 background-image:none!important
}
#dexrunBossPvPPanel[data-boss-level="1"] > div{
 background:transparent!important;
 backdrop-filter:none
}
#dexrunBossPvPPanel[data-boss-level="1"] #dexrunBlazeStage{
 background:transparent!important;
 background-image:none!important
}
.beanbot-emberfall-comic{margin:8px 0 10px;border:1px solid #a34f2d;border-radius:9px;background:#210f0add;padding:8px}
.beanbot-emberfall-comic summary{cursor:pointer;font:900 11px system-ui;color:#ffc18c}
.beanbot-emberfall-comic img{display:block;width:100%;max-height:420px;object-fit:contain;margin:8px auto 0;border-radius:6px}
body[data-dexrun-level="1"] #hud .hudbox{border-color:rgba(255,132,62,.55)}
#wrap[data-dexrun-level="1"] #dexrunThemeIdentity{border-color:#ff8e42;color:#ffe0ad}
@media(prefers-reduced-motion:reduce){.beanbot-emberfall-comic{scroll-behavior:auto}}

/* Combat: icon-first resources from the authoritative PvP match. */
#dexrunBossPvPPanel #dexrunBossResourceBars{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:10px 0;text-align:left}
#dexrunBossPvPPanel .dexrun-boss-vitals{padding:7px 8px;border:1px solid #436957;border-radius:10px;background:#060f12c7;min-width:0}
#dexrunBossPvPPanel .dexrun-boss-vitals>strong{display:block;font:900 11px system-ui;color:#dfffde;margin-bottom:4px}
#dexrunBossPvPPanel .dexrun-boss-stat{display:grid;grid-template-columns:47px minmax(0,1fr) 39px;align-items:center;gap:4px;margin:3px 0;font:850 9px system-ui}
#dexrunBossPvPPanel .dexrun-boss-stat span:last-child{text-align:right;font-variant-numeric:tabular-nums}
#dexrunBossPvPPanel .dexrun-boss-stat progress{width:100%;height:9px;appearance:auto}
#dexrunBossPvPPanel .dexrun-boss-stat.health progress{accent-color:#37e374}
#dexrunBossPvPPanel .dexrun-boss-stat.shield progress{accent-color:#38bce7}
#dexrunBossPvPPanel .dexrun-boss-stat.energy progress{accent-color:#edba42}
#dexrunBossPvPPanel[data-boss-level="1"]>div{width:min(640px,100%)!important}
#dexrunTopHUD #dexusCityVitals .dexus-shield-row[hidden]{display:none!important}
#dexrunTopHUD #dexusCityShieldLabel{font:850 10px/1 system-ui!important}
@media(max-width:390px){#dexrunBossPvPPanel .dexrun-boss-vitals{padding:5px 4px}#dexrunBossPvPPanel .dexrun-boss-stat{grid-template-columns:37px minmax(0,1fr) 31px;font-size:8px;gap:2px}}
