#kdHeroHud360{position:fixed;z-index:1100;left:50%;top:124px;transform:translateX(-50%);width:min(360px,calc(100vw - 32px));padding:9px 12px;background:linear-gradient(150deg,#162f27f5,#080f11f3);border:1px solid #d3ae69;box-shadow:0 7px 22px #000a;color:#f6dfad;pointer-events:none;font:700 11px system-ui}
.kd-hero-top360{display:flex;justify-content:space-between;gap:12px;letter-spacing:.07em}
#kdHeroHP360{font-weight:800;white-space:nowrap}.kd-hero-health360{height:12px;margin:7px 0 5px;background:#431d23;border:1px solid #d6bb79;overflow:hidden}
#kdHeroFill360{height:100%;width:100%;transition:width .18s ease}
#kdHeroState360{font:600 10px system-ui;color:#c5c5b5;letter-spacing:.07em}
#kdForgeTop356{opacity:.55;filter:saturate(.55);transition:box-shadow .15s,filter .15s,opacity .15s}
#kdForgeTop356.kd-capo-selected360{opacity:1;filter:saturate(1.4);border-color:#ffe29b!important;box-shadow:0 0 16px #e7ba69,0 0 6px #a8f0c0!important}
@media(max-width:700px){#kdHeroHud360{top:91px;width:min(290px,calc(100vw - 24px));padding:5px 7px;font-size:9px}.kd-hero-health360{height:8px}}

#kdSelectedUnitsHP360:empty{display:none}
#kdSelectedUnitsHP360{display:grid;gap:2px;margin-top:6px}
.kd-unit-health-line360{display:flex;align-items:center;gap:8px;font:600 10px system-ui;color:#d9e3d4}
.kd-unit-health-line360 span{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.kd-unit-health-line360 i{height:5px;width:70px;background:linear-gradient(90deg,#76d996 var(--hp),#513232 var(--hp));border:1px solid #607965}

/* V362: health stays in the corner, never on the center of the battlefield. */
#kdHeroHud360{top:170px!important;left:auto!important;right:13px!important;transform:none!important;width:205px!important;padding:6px 8px!important;box-shadow:0 3px 10px #0009!important;font-size:9px!important;border-color:#9b825b!important}
#kdHeroHud360 .kd-hero-top360{font-size:9px;letter-spacing:0}
#kdHeroHud360 .kd-hero-health360{height:7px;margin:4px 0 2px}
#kdHeroHud360 #kdHeroState360{font-size:9px}
#kdHeroHud360 #kdSelectedUnitsHP360{max-height:54px;overflow:hidden}
@media(max-width:700px){#kdHeroHud360{top:177px!important;right:6px!important;width:154px!important;padding:4px!important;font-size:8px!important}.kd-hero-top360 span{font-size:8px}}

/* V363: health HUD occupies the former INTERFACCIA corner. */
#kdHeroHud360{top:126px!important;right:9px!important;width:208px!important;border-radius:4px}
#kdHeroHud360 .kd-hero-top360 span{font-size:0}
#kdHeroHud360 .kd-hero-top360 span::before{content:'♛  CAPO · PV';font:bold 11px Georgia,serif;color:#f0d19a}
#kdHeroHud360 .kd-hero-health360{height:8px}
#kdHeroHud360 #kdSelectedUnitsHP360{max-height:56px;overflow-y:auto}
#kdHeroHud360 .kd-unit-health-line360 span{font-size:0}
#kdHeroHud360 .kd-unit-health-line360 span::before{content:'🛡';font-size:12px}
#kdHeroHud360 .kd-unit-health-line360{gap:6px}
#kdHeroHud360 .kd-unit-health-line360 i{flex:1;height:6px}
@media(max-width:700px){#kdHeroHud360{top:94px!important;right:6px!important;width:154px!important}}
