/* Part 1 only: no changes to actor size, camera, typography or common enemy HP. */
/* Match the original common-enemy anchor (about x=1460 at 1920px). */
#battlefield.boss-fight{--enemy-x:76%}
#battlefield.boss-fight .attack-target{bottom:calc(var(--floor) - var(--boss-foot-offset,0px))!important}
@media(max-width:760px) and (min-height:601px){#battlefield.boss-fight{--enemy-x:73.5%}}

/* Existing fitted ellipses retain their measured foot contact and proportional width. */
#battlefield :is(.hero-ground-shadow,.mob-shadow){background:radial-gradient(ellipse closest-side,#000 45%,#000b 70%,transparent 100%);border-radius:50%;opacity:.4!important;filter:none!important;z-index:0;pointer-events:none}

/* Reuse the live HP fill, now anchored above the actual hero head. */
#combatHero .hero-arena-hp{display:block;position:absolute;top:auto;left:50%;bottom:calc(100% - var(--hero-head-y,0%) + .35rem);width:clamp(3.5rem,70%,8rem);margin:0;padding:0;transform:translateX(-50%);z-index:18;pointer-events:none}
#combatHero .hero-arena-hp>div{height:.375rem;min-height:.375rem;margin:0;border:1px solid #10090c;border-radius:0;background:#170c12;box-shadow:none;overflow:hidden}
#combatHero #arenaHPFill{display:block;width:100%!important;height:100%;transform-origin:left center;background:linear-gradient(#d06b4f,#852c33);transition:transform .16s linear}

/* Soft regional glow only on true bosses, behind the unchanged sprite. */
#battlefield .monster-aura{display:none}
#battlefield.boss-fight .monster-aura{display:block;inset:3% 12% -1%;z-index:0;background:radial-gradient(ellipse,rgb(var(--scene-light)/.17) 0%,rgb(var(--scene-light)/.08) 42%,transparent 72%);opacity:.7;filter:none!important;pointer-events:none}
#battlefield #monsterArt{z-index:1}
/* A static, weak rim affects the hero artwork, leaving name/HP/shadow untouched. */
#combatHero>.hero-idle{filter:none}
#combatHero>.hero-idle::before{content:'';position:absolute;inset:0;z-index:0;pointer-events:none;background:#ead8b7;opacity:.3;mask:var(--idle-sprite) center bottom/contain no-repeat;transform:translate(-.7px,-.35px)}
#combatHero>.hero-idle>img{position:relative;z-index:1}
#combatHero>.hero-idle>:is(.idle-top,.idle-feet){z-index:1}
#combatHero>.hero-idle.actor-active::before{visibility:hidden}
@media(prefers-reduced-motion:reduce){#combatHero #arenaHPFill{transition:none}}
