/* EMPIRE ZERO / HUD interaction contract / touch-first control calibration.
 * Noninvasive final-layer fixes: preserve gameplay logic, active panel hierarchy,
 * and host platform controls. Genuine 44px targets on mobile.
 */
@media(max-width:820px){
 body.ez-hud-unified .top{
  display:flex!important;align-items:center!important;justify-content:space-between!important;
  padding-inline:12px!important;gap:6px!important;
 }
 body.ez-hud-unified .top .ez-play-brand{
  flex:0 0 104px!important;width:104px!important;min-width:0!important;max-width:104px!important;
  min-height:44px!important;
 }
 body.ez-hud-unified .top .ez-play-brand img{max-height:35px!important}
 body.ez-hud-unified .top .top-actions{
  display:flex!important;align-items:center!important;flex:0 0 auto!important;
  gap:4px!important;margin-left:auto!important;max-width:calc(100vw - 135px)!important;
 }
 body.ez-hud-unified .top .top-actions button:not([hidden]){
  width:44px!important;min-width:44px!important;max-width:44px!important;
  height:44px!important;min-height:44px!important;max-height:44px!important;
  flex:0 0 44px!important;padding:0!important;display:inline-flex;
  align-items:center!important;justify-content:center!important;
  border-radius:999px!important;box-shadow:none!important;
  -webkit-tap-highlight-color:transparent;
 }
 body.ez-hud-unified .top .top-actions button:focus-visible{
  outline:2px solid #e8c392!important;outline-offset:2px!important;
 }
 body.ez-hud-unified .top .top-actions #ezCrewNav{font-size:8px!important;letter-spacing:0!important}
}
@media(max-width:390px){
 body.ez-hud-unified .top .ez-play-brand{flex-basis:88px!important;width:88px!important;max-width:88px!important}
 body.ez-hud-unified .top .top-actions{max-width:calc(100vw - 115px)!important}
}
@media(max-width:350px){
 body.ez-hud-unified .top .ez-play-brand{flex-basis:76px!important;width:76px!important;max-width:76px!important}
 body.ez-hud-unified .top .top-actions #ezCrewNav{display:none!important}
}
@media(prefers-reduced-motion:reduce){
 body.ez-hud-unified .top .top-actions button{transition:none!important}
}
/* ID-specific overrides win over legacy forced 42px HUD declarations. */
@media(max-width:820px){
 body.ez-hud-unified .top .top-actions #ezCrewNav,
 body.ez-hud-unified .top .top-actions #cameraButton,
 body.ez-hud-unified .top .top-actions #ezSessionLaunch,
 body.ez-hud-unified .top .top-actions #careerOpen,
 body.ez-hud-unified .top .top-actions #pause{
  height:44px!important;min-height:44px!important;max-height:44px!important;
  width:44px!important;min-width:44px!important;max-width:44px!important;
 }
}