/* Space 2047 v6.5.3 — real character energy, boxed location and expanded HUD. */
.s2047-reference-hud .s2047-reference-topbar{
  min-height:82px!important;height:auto!important;
  grid-template-columns:max-content max-content minmax(360px,520px) minmax(210px,320px)!important;
  padding-top:8px!important;padding-bottom:8px!important;
}
.s2047-reference-hud .s2047-reference-player{
  min-width:360px!important;max-width:520px!important;height:68px!important;min-height:68px!important;
  padding:6px 10px!important;
}
.s2047-reference-hud .s2047-reference-player-info{overflow:visible!important;min-width:210px!important}
.s2047-reference-hud .s2047-reference-location{
  padding:7px 12px!important;border:2px solid #728b9a!important;border-radius:14px!important;
  background:rgba(8,30,44,.94)!important;box-shadow:inset 0 0 0 1px rgba(255,255,255,.07)!important;
  min-height:48px!important;box-sizing:border-box!important;
}
.s2047-character-energy-row{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:8px!important;font-size:10px!important;line-height:1.1!important;margin-top:3px!important}
.s2047-character-energy-track{display:block!important;width:100%!important;height:7px!important;border:1px solid #566d79!important;border-radius:7px!important;background:#102838!important;overflow:hidden!important;margin-top:2px!important}
.s2047-character-energy-track i{display:block!important;height:100%!important;width:100%;background:linear-gradient(90deg,#ffce55,#70f4aa)!important;transition:width .16s linear!important}
@media(max-width:900px) and (min-width:761px){
 .s2047-reference-hud .s2047-reference-topbar{grid-template-columns:max-content max-content minmax(320px,1fr) minmax(180px,230px)!important;overflow-x:auto!important}
 .s2047-reference-hud .s2047-reference-player{min-width:320px!important}
}
@media(max-width:760px){
 .s2047-reference-hud .s2047-reference-topbar{grid-template-rows:48px 82px!important;height:136px!important;min-height:136px!important}
 .s2047-reference-hud .s2047-reference-location{min-height:42px!important;padding:5px 8px!important;border-radius:12px!important}
 .s2047-reference-hud .s2047-reference-player{height:80px!important;min-height:80px!important;min-width:0!important;max-width:none!important;padding:5px 7px!important}
 .s2047-reference-hud .s2047-reference-player-info{min-width:0!important;overflow:visible!important}
 .s2047-character-energy-row{font-size:9px!important;margin-top:2px!important}
 .s2047-character-energy-track{height:6px!important}
}

/* v6.19.4: make hostile hits visibly affect the PLAYER box. */
.s2047-reference-player-info.s2047-player-hit{animation:s2047PlayerHitPulse .42s ease-out}
@keyframes s2047PlayerHitPulse{0%{filter:brightness(1)}35%{filter:brightness(1.8);transform:translateX(-3px)}65%{transform:translateX(3px)}100%{filter:brightness(1);transform:none}}
