
/* V6.43G · affinage visuel après contrôles portrait / paysage / PC */
#hud .sb-hud-stack,#hud .sb-rpg-hud,#hud .sb-mission-hud{box-sizing:border-box!important}
#hud .sb-rpg-hud{
  height:150px!important;min-height:150px!important;max-height:150px!important;
  align-items:center!important;grid-auto-rows:minmax(0,1fr)!important;
}
#hud .sb-rpg-hud .hud-block{height:auto!important;min-height:0!important;max-height:100%!important;align-self:center!important}
#hud .sb-rpg-hud .sb-vitals{display:grid!important}
#hud .sb-rpg-hud .sb-resources{display:grid!important}
#hud .sb-rpg-hud .sb-equipment{display:flex!important}
#hud .sb-ship-portrait{overflow:visible!important}
#hud #hudShipSprite{transform:scale(1.28);transform-origin:center;filter:drop-shadow(0 0 5px rgba(90,220,255,.25))}
#hud .sb-equipment{display:flex!important;flex-direction:column!important;justify-content:center!important;align-items:flex-start!important;gap:7px!important}
#hud .sb-equipment-title,#hud .sb-equipment>strong,#hud #hudWeaponTier{display:block!important;width:100%!important;box-sizing:border-box!important}
#hud .sb-equipment>strong{align-self:auto!important;overflow:hidden!important;text-overflow:ellipsis!important}
#hud .sb-fragment-hud{display:none!important}
#hud .sb-hud-chevron{bottom:-10px!important}
#hud .sb-mission-hud{height:44px!important;min-height:44px!important;max-height:44px!important;padding:6px 24px 6px!important}
#hud .sb-mission-hud .bar{height:6px!important;margin-top:1px!important}
@media (max-width:900px){
  #hud .sb-rpg-hud{
    height:126px!important;min-height:126px!important;max-height:126px!important;
    grid-template-columns:minmax(0,1.55fr) minmax(90px,.64fr) minmax(105px,.82fr) 44px!important;
    padding:12px 12px 11px!important;
  }
  #hud .sb-ship-portrait{width:58px!important;height:72px!important}
  #hud #hudShipSprite{max-width:58px!important;max-height:70px!important;transform:scale(1.38)}
  #hud .sb-vitals{grid-template-columns:62px minmax(0,1fr)!important;gap:8px!important}
  #hud .sb-vitals-copy{gap:5px!important}
  #hud .sb-vital-copy{gap:2px!important}
  #hud .sb-vital-copy small,#hud .sb-stat-copy small,#hud .sb-equipment-title{font-size:8px!important}
  #hud .sb-vital-row>strong{min-width:42px!important;font-size:9px!important}
  #hud .sb-lives-row{font-size:8px!important;gap:7px!important}
  #hud .sb-life-heart{width:17px!important;height:17px!important}
  #hud .sb-resources{gap:5px!important;padding-left:10px!important;padding-right:10px!important}
  #hud #coinHud,#hud .sb-score-stat{grid-template-columns:26px minmax(0,1fr)!important;gap:6px!important;min-height:27px!important}
  #hud #coinHud .sb-hud-icon{width:25px!important;height:25px!important}
  #hud .sb-score-ring{width:21px!important;height:21px!important;border-width:2px!important}
  #hud .sb-score-ring::before{height:28px!important;width:2px!important}#hud .sb-score-ring::after{width:28px!important;height:2px!important}
  #hud .sb-stat-copy strong,#hud #scoreText{font-size:12px!important}
  #hud .sb-equipment{gap:4px!important;padding:4px 8px!important}
  #hud .sb-equipment>strong{font-size:10px!important}
  #hud #hudWeaponTier{font-size:8px!important}
  #hud .sb-hud-pause,body.gameplay-active #hud .sb-hud-pause{width:38px!important;height:38px!important;font-size:15px!important}
  #hud .sb-mission-hud{height:36px!important;min-height:36px!important;max-height:36px!important;padding:4px 14px!important;gap:1px 10px!important}
  #hud .sb-mission-hud .level-badge{font-size:11px!important}
  #hud .sb-mission-hud .objective-name{font-size:9px!important}
  #hud .sb-mission-hud .progress-text{font-size:9px!important}
}
@media (max-width:430px){
  #hud .sb-hud-stack{width:98vw!important;top:max(3px,env(safe-area-inset-top))!important;gap:3px!important}
  #hud .sb-rpg-hud{
    height:122px!important;min-height:122px!important;max-height:122px!important;
    grid-template-columns:minmax(0,1.72fr) minmax(62px,.62fr) minmax(78px,.78fr) 34px!important;
    padding:10px 7px 9px!important;
  }
  #hud .sb-rpg-hud .hud-block{padding-left:6px!important;padding-right:6px!important}
  #hud .sb-vitals{grid-template-columns:46px minmax(0,1fr)!important;gap:5px!important;padding-left:1px!important}
  #hud .sb-ship-portrait{width:44px!important;height:61px!important}
  #hud #hudShipSprite{max-width:44px!important;max-height:59px!important;transform:scale(1.48)}
  #hud .sb-vitals-copy{gap:4px!important}
  #hud .sb-vital-row.sb-shield{grid-template-columns:19px minmax(0,1fr) auto!important}
  #hud .sb-vital-row.sb-shield .sb-hud-icon{width:18px!important;height:18px!important}
  #hud .sb-vital-copy small,#hud .sb-stat-copy small{font-size:6.5px!important;letter-spacing:.055em!important}
  #hud .sb-vital-row>strong{min-width:29px!important;font-size:7px!important}
  #hud .sb-vital-row .bar{height:7px!important;border-width:1px!important}
  #hud .sb-lives-row{font-size:6.5px!important;gap:4px!important;letter-spacing:.055em!important}
  #hud .sb-life-hearts{gap:2px!important;min-height:14px!important}
  #hud .sb-life-heart{width:13px!important;height:13px!important}
  #hud .sb-resources{gap:4px!important;padding-left:5px!important;padding-right:5px!important}
  #hud #coinHud,#hud .sb-score-stat{grid-template-columns:19px minmax(0,1fr)!important;gap:4px!important;min-height:22px!important}
  #hud #coinHud .sb-hud-icon{width:19px!important;height:19px!important}
  #hud .sb-score-ring{width:16px!important;height:16px!important;border-width:2px!important}
  #hud .sb-score-ring::before{height:22px!important}#hud .sb-score-ring::after{width:22px!important}
  #hud .sb-stat-copy strong,#hud #scoreText{font-size:9px!important}
  #hud .sb-equipment{gap:3px!important;padding:3px 5px!important}
  #hud .sb-equipment-title{font-size:0!important;letter-spacing:0!important}
  #hud .sb-equipment-title::after{content:"ARME";font:900 6.5px/1 "Courier New",monospace;letter-spacing:.06em;color:#74ecff}
  #hud .sb-equipment>strong{font-size:8px!important;line-height:1.05!important;white-space:normal!important;max-height:18px!important}
  #hud #hudWeaponTier{font-size:6.5px!important}
  #hud .sb-hud-pause,body.gameplay-active #hud .sb-hud-pause{width:31px!important;height:31px!important;font-size:12px!important;border-width:1px!important}
  #hud .sb-hud-chevron{width:32px!important;height:15px!important;bottom:-8px!important}
  #hud .sb-hud-chevron i{width:6px!important;height:6px!important;top:2px!important}
  #hud .sb-mission-hud{height:32px!important;min-height:32px!important;max-height:32px!important;padding:3px 9px!important;grid-template-columns:auto minmax(0,1fr) auto!important;gap:1px 6px!important}
  #hud .sb-mission-hud .level-badge{font-size:8px!important}
  #hud .sb-mission-hud .objective-name{font-size:6.8px!important;letter-spacing:.045em!important}
  #hud .sb-mission-hud .progress-text{font-size:7px!important}
  #hud .sb-mission-hud .bar{height:4px!important}
  #hud .sb-hud-upgrades-drawer{width:96%!important;padding:12px 8px 8px!important}
  #hud .sb-hud-upgrades-list{max-height:105px!important;gap:4px!important}
  #hud .sb-hud-upgrade-chip{font-size:7px!important;padding:4px 5px!important}
}
@media (max-width:900px) and (orientation:landscape){
  #hud .sb-hud-stack{width:98vw!important;top:3px!important}
  #hud .sb-rpg-hud{height:116px!important;min-height:116px!important;max-height:116px!important;padding-top:9px!important;padding-bottom:8px!important}
  #hud .sb-ship-portrait{height:62px!important}
  #hud #hudShipSprite{max-height:61px!important;transform:scale(1.42)}
  #hud .sb-vital-copy small,#hud .sb-stat-copy small,#hud .sb-equipment-title{font-size:7px!important}
  #hud .sb-stat-copy strong,#hud #scoreText{font-size:11px!important}
  #hud .sb-mission-hud{height:30px!important;min-height:30px!important;max-height:30px!important}
}
