/* EMPIRE ZERO / X-UNIFIED-HUD-132
   Single visual authority: mission route, radar, contextual input, compact speed.
   Gameplay IDs and state remain owned by existing controllers.
   All coordinates are scoped to HUD; device/viewport rules below own placement. */
body.ez-hud-unified{--hud-ink:rgba(7,14,18,.76);--hud-stroke:rgba(220,205,181,.26);--hud-copper:#d5b38c;--hud-text:#f2f0e9}
body.ez-hud-unified #hud .hud-left,
body.ez-hud-unified #hud .foot-hud,
body.ez-hud-unified #hud .living-contract-bar,
body.ez-hud-unified #hud .hud-right .controls,
body.ez-hud-unified #hud .street-hud,
body.ez-hud-unified .vertical-slice,
body.ez-hud-unified #ezSpeed,
body.ez-hud-unified #ezDrift,
body.ez-hud-unified #ezHint{display:none!important}
body.ez-hud-unified .top{padding-inline:clamp(12px,2.25vw,30px)!important;background:linear-gradient(180deg,rgba(5,11,14,.82),rgba(5,11,14,.15))!important;gap:16px}
body.ez-hud-unified .top-actions{gap:7px!important;align-items:center}
body.ez-hud-unified .top-actions #cameraButton,
body.ez-hud-unified .top-actions #careerOpen,
body.ez-hud-unified .top-actions #garageButton,
body.ez-hud-unified .top-actions #pause{display:inline-flex!important;align-items:center;justify-content:center;position:relative;width:46px!important;height:46px!important;min-width:46px!important;min-height:46px!important;padding:0!important;border:1px solid var(--hud-stroke)!important;border-radius:14px!important;background:rgba(13,22,27,.77)!important;box-shadow:none!important;color:var(--hud-text)!important;backdrop-filter:blur(9px);font-size:0!important;line-height:1!important}
body.ez-hud-unified .top-actions #graphicsButton,
body.ez-hud-unified .top-actions #ventureButton,
body.ez-hud-unified .top-actions #streetOpen{display:none!important}
body.ez-hud-unified .top-actions .top-button small{display:none!important}
body.ez-hud-unified .ez-control-icon{display:block;width:22px;height:22px;flex:none;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
body.ez-hud-unified .ez-control-label{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip-path:inset(50%)!important;white-space:nowrap!important;padding:0!important;margin:-1px!important;border:0!important}
body.ez-hud-unified .top-actions button:hover{background:rgba(52,65,70,.92)!important;border-color:#d4b38c99!important}
body.ez-hud-unified #hud .hud-right{right:clamp(12px,1.9vw,28px)!important;top:15px!important;z-index:3}
body.ez-hud-unified #hud .hud-right .map{width:94px!important;height:94px!important;display:grid;place-items:center;border:1px solid var(--hud-stroke)!important;background:rgba(7,16,19,.57)!important;box-shadow:none!important;padding:6px!important}
body.ez-hud-unified #hud .hud-right .map canvas{width:80px!important;height:80px!important}
body.ez-hud-unified #hud .route-ribbon{top:17px!important;left:50%!important;right:auto!important;transform:translateX(-50%)!important;width:min(312px,36vw)!important;min-height:57px!important;max-width:calc(100vw - 32px);padding:9px 12px 10px!important;gap:10px!important;background:var(--hud-ink)!important;border:1px solid var(--hud-stroke)!important;border-radius:13px!important;box-shadow:none!important;backdrop-filter:blur(7px);z-index:4}
body.ez-hud-unified #hud .route-ribbon .route-overline{font-size:8px!important;letter-spacing:.1em!important}
body.ez-hud-unified #hud .route-ribbon .route-copy strong{font-size:12px!important;letter-spacing:.005em!important}
body.ez-hud-unified #hud .route-ribbon .route-instruction{font-size:9px!important}
body.ez-hud-unified #hud .route-ribbon .route-distance{font-size:13px!important}
body.ez-hud-unified #hud .route-ribbon .route-data{min-width:80px!important;grid-template-columns:25px auto!important;column-gap:7px!important}
body.ez-hud-unified #hud .route-ribbon .route-needle-wrap{width:25px!important;height:25px!important}
body.ez-hud-unified #hud .starter-guide{top:16px!important;bottom:auto!important;left:clamp(12px,1.9vw,28px)!important;right:auto!important;width:110px!important;max-width:calc(100vw - 24px)!important;border:1px solid var(--hud-stroke)!important;border-radius:13px!important;background:var(--hud-ink)!important;box-shadow:none!important;z-index:5}
body.ez-hud-unified #hud .starter-guide:not([data-expanded=true]) .starter-toggle{min-height:47px!important;height:47px!important;padding:6px 10px!important;gap:9px!important}
body.ez-hud-unified #hud .starter-guide:not([data-expanded=true]) .starter-title,
body.ez-hud-unified #hud .starter-guide:not([data-expanded=true]) .starter-chevron{display:none!important}
body.ez-hud-unified #hud .starter-guide:not([data-expanded=true]) .starter-seal{flex:0 0 27px!important;width:27px!important;height:28px!important;border:0!important;background:transparent!important;color:var(--hud-copper)!important;font-size:10px!important}
body.ez-hud-unified #hud .starter-guide:not([data-expanded=true]) .starter-counter{font-size:11px!important;letter-spacing:0!important;color:#eeece3!important}
body.ez-hud-unified #hud .starter-guide[data-expanded=true]{width:min(308px,calc(100vw - 24px))!important;background:rgba(8,17,21,.96)!important;box-shadow:0 18px 50px #0009!important}
body.ez-hud-unified #hud .starter-guide[data-expanded=true] .starter-toggle{min-height:51px}
body.ez-hud-unified #hud .starter-guide[data-expanded=true] .starter-details{max-height:min(48dvh,310px);overflow-y:auto;overscroll-behavior:contain}
body.ez-hud-unified .drive-experience{right:clamp(12px,1.9vw,28px)!important;bottom:clamp(18px,3vh,36px)!important;left:auto!important;width:136px!important;padding:9px 12px!important;background:rgba(9,19,23,.76)!important;border:1px solid var(--hud-stroke)!important;border-radius:12px!important;box-shadow:none!important;backdrop-filter:blur(7px)}
body.ez-hud-unified .drive-experience .de-rule,
body.ez-hud-unified .drive-experience .de-kicker,
body.ez-hud-unified .drive-experience .de-data,
body.ez-hud-unified .drive-experience .de-skill,
body.ez-hud-unified .drive-experience .de-progress{display:none!important}
body.ez-hud-unified .drive-experience .de-core{display:block!important;margin:0!important}
body.ez-hud-unified .drive-experience .de-speed{display:flex;align-items:baseline;justify-content:flex-end;gap:6px}
body.ez-hud-unified .drive-experience .de-speed strong{font-size:37px!important;line-height:1!important;letter-spacing:-.06em!important}
body.ez-hud-unified .drive-experience .de-speed small{font-size:9px!important;letter-spacing:.1em!important;margin:0!important;color:var(--hud-copper)!important}
body.ez-hud-unified .top-actions button:focus-visible,
body.ez-hud-unified #hud .starter-guide button:focus-visible,
body.ez-hud-unified #hud .mobile-controls button:focus-visible{outline:2px solid #f8e8ca!important;outline-offset:3px!important}
/* Touch: stable thumb zones. Never use inline coordinate guesses for individual buttons. */
@media(pointer:coarse){
 body.ez-hud-unified .top{height:60px!important;padding-inline:max(12px,env(safe-area-inset-left,0px)) max(12px,env(safe-area-inset-right,0px))!important}
 body.ez-hud-unified .top .brand img{max-width:130px;max-height:27px;object-fit:contain}
 body.ez-hud-unified .top-actions #garageButton{display:none!important}
 body.ez-hud-unified .top-actions #cameraButton,
 body.ez-hud-unified .top-actions #careerOpen,
 body.ez-hud-unified .top-actions #pause{width:42px!important;height:42px!important;min-width:42px!important;min-height:42px!important;border-radius:12px!important}
 body.ez-hud-unified #hud{inset:60px 0 0!important}
 body.ez-hud-unified #hud .mobile-controls{display:grid!important;grid-template-columns:112px 120px!important;justify-content:space-between!important;align-items:end!important;position:absolute!important;left:max(12px,env(safe-area-inset-left,0px))!important;right:max(12px,env(safe-area-inset-right,0px))!important;bottom:max(12px,env(safe-area-inset-bottom,0px))!important;width:auto!important;gap:14px!important;z-index:9!important;pointer-events:none!important}
 body.ez-hud-unified #hud .mobile-controls .touch-movement{grid-column:auto!important;grid-row:auto!important;justify-self:start!important}
 body.ez-hud-unified #hud .mobile-controls .touch-caption{display:none!important}
 body.ez-hud-unified #hud .mobile-controls .touch-pad{width:112px!important;height:112px!important;min-width:112px!important;border-radius:50%!important;border:1.5px solid rgba(217,201,175,.36)!important;background:rgba(7,16,19,.28)!important;box-shadow:inset 0 0 0 10px rgba(10,24,28,.10)!important;touch-action:none!important}
 body.ez-hud-unified #hud .mobile-controls .touch-pad:before{inset:15%!important;border-color:rgba(231,222,201,.23)!important}
 body.ez-hud-unified #hud .mobile-controls .touch-pad:after{display:none!important}
 body.ez-hud-unified #hud .mobile-controls .touch-nub{width:42px!important;height:42px!important;left:calc(50% - 21px)!important;top:calc(50% - 21px)!important;border-radius:50%!important;background:rgba(217,197,166,.83)!important;border:1px solid #ede0cc99!important;box-shadow:0 3px 11px #0008!important}
 body.ez-hud-unified #hud .mobile-controls .touch-nub span{border-radius:50%!important;width:9px;height:9px}
 body.ez-hud-unified #hud .mobile-controls .touch-actions{grid-column:auto!important;grid-row:auto!important;justify-self:end!important;align-items:flex-end!important;width:120px!important;gap:0!important}
 body.ez-hud-unified #hud .mobile-controls .touch-utilities{display:none!important}
 body.ez-hud-unified #hud .mobile-controls .touch-primary{display:grid!important;grid-template-columns:repeat(2,56px)!important;gap:8px!important;width:120px!important}
 body.ez-hud-unified #hud .mobile-controls .touch-primary button{width:56px!important;height:56px!important;min-height:56px!important;min-width:56px!important;display:grid!important;place-items:center!important;padding:0!important;border-radius:15px!important;border:1px solid rgba(216,204,183,.38)!important;background:rgba(14,27,32,.70)!important;backdrop-filter:blur(6px)!important;box-shadow:none!important;font-size:0!important;color:#f0e9db!important}
 body.ez-hud-unified #hud .mobile-controls .touch-primary button .ez-control-icon{width:25px!important;height:25px!important}
 body.ez-hud-unified #hud .mobile-controls #touchAction{background:rgba(180,146,102,.85)!important;color:#111a1e!important;border-color:#efd6af99!important}
 body.ez-hud-unified #hud .mobile-controls button[data-pressed=true],
 body.ez-hud-unified #hud .mobile-controls button:active{transform:scale(.95)!important;background:rgba(218,187,145,.95)!important;color:#0c171b!important}
 body.ez-hud-unified #hud .hud-right{top:9px!important;right:max(12px,env(safe-area-inset-right,0px))!important}
 body.ez-hud-unified #hud .hud-right .map{width:64px!important;height:64px!important;padding:4px!important}
 body.ez-hud-unified #hud .hud-right .map canvas{width:54px!important;height:54px!important}
 body.ez-hud-unified .drive-experience{right:max(12px,env(safe-area-inset-right,0px))!important;bottom:calc(150px + env(safe-area-inset-bottom,0px))!important;width:92px!important;padding:7px 8px!important}
 body.ez-hud-unified .drive-experience .de-speed strong{font-size:29px!important}
 body.ez-hud-unified .drive-experience .de-speed small{font-size:8px!important}
 body.ez-hud-unified #hud .route-ribbon{background:rgba(7,15,18,.73)!important;min-height:56px!important}
}
/* Phone portrait: no persistent cards over the road. Route is the only status strip. */
@media(pointer:coarse) and (orientation:portrait){
 body.ez-hud-unified #hud .route-ribbon{top:83px!important;left:50%!important;transform:translateX(-50%)!important;width:min(390px,calc(100vw - 24px))!important;padding:8px 11px!important}
 body.ez-hud-unified #hud .starter-guide{top:10px!important;left:max(12px,env(safe-area-inset-left,0px))!important}
 body.ez-hud-unified #hud .hud-right{top:10px!important}
 body.ez-hud-unified .drive-experience{bottom:calc(149px + env(safe-area-inset-bottom,0px))!important}
}
/* Touch landscape: minimal strip at top; no vertical panels in racing sight line. */
@media(pointer:coarse) and (orientation:landscape){
 body.ez-hud-unified #hud .route-ribbon{top:8px!important;left:50%!important;transform:translateX(-50%)!important;width:min(260px,36vw)!important;min-height:47px!important;padding:6px 10px!important}
 body.ez-hud-unified #hud .route-ribbon .route-overline,
 body.ez-hud-unified #hud .route-ribbon .route-instruction{display:none!important}
 body.ez-hud-unified #hud .route-ribbon .route-copy strong{font-size:11px!important}
 body.ez-hud-unified #hud .route-ribbon .route-distance{font-size:12px!important}
 body.ez-hud-unified #hud .starter-guide{top:8px!important;left:max(10px,env(safe-area-inset-left,0px))!important}
 body.ez-hud-unified #hud .hud-right{top:7px!important}
 body.ez-hud-unified .drive-experience{bottom:calc(137px + env(safe-area-inset-bottom,0px))!important}
}
@media(pointer:coarse) and (max-width:375px){
 body.ez-hud-unified .top .brand img{max-width:93px}
 body.ez-hud-unified .top-actions{gap:5px!important}
 body.ez-hud-unified #hud .mobile-controls{grid-template-columns:98px 112px!important}
 body.ez-hud-unified #hud .mobile-controls .touch-pad{width:98px!important;height:98px!important;min-width:98px!important}
 body.ez-hud-unified #hud .mobile-controls .touch-primary{grid-template-columns:repeat(2,52px)!important;width:112px!important}
 body.ez-hud-unified #hud .mobile-controls .touch-primary button{width:52px!important;height:52px!important;min-height:52px!important;min-width:52px!important}
}
@media(pointer:coarse) and (max-height:440px){
 body.ez-hud-unified #hud .mobile-controls{bottom:max(8px,env(safe-area-inset-bottom,0px))!important;grid-template-columns:90px 108px!important;gap:10px!important}
 body.ez-hud-unified #hud .mobile-controls .touch-pad{width:90px!important;height:90px!important;min-width:90px!important}
 body.ez-hud-unified #hud .mobile-controls .touch-nub{width:36px!important;height:36px!important;top:calc(50% - 18px)!important;left:calc(50% - 18px)!important}
 body.ez-hud-unified #hud .mobile-controls .touch-primary{grid-template-columns:repeat(2,50px)!important;width:108px!important}
 body.ez-hud-unified #hud .mobile-controls .touch-primary button{width:50px!important;height:50px!important;min-height:50px!important;min-width:50px!important}
 body.ez-hud-unified .drive-experience{bottom:calc(126px + env(safe-area-inset-bottom,0px))!important}
 body.ez-hud-unified #hud .hud-right .map{width:54px!important;height:54px!important}
 body.ez-hud-unified #hud .hud-right .map canvas{width:44px!important;height:44px!important}
}
@media(pointer:coarse) and (min-width:700px) and (orientation:portrait){
 body.ez-hud-unified #hud .route-ribbon{top:20px!important;width:min(330px,38vw)!important}
 body.ez-hud-unified #hud .mobile-controls{grid-template-columns:134px 136px!important}
 body.ez-hud-unified #hud .mobile-controls .touch-pad{width:134px!important;height:134px!important;min-width:134px!important}
 body.ez-hud-unified #hud .mobile-controls .touch-primary{grid-template-columns:repeat(2,64px)!important;width:136px!important}
 body.ez-hud-unified #hud .mobile-controls .touch-primary button{width:64px!important;height:64px!important}
}
@media(pointer:fine) and (max-width:980px){
 body.ez-hud-unified #hud .route-ribbon{top:85px!important;width:290px!important}
}
@media (max-width:650px) and (pointer:fine), (max-width:650px) and (pointer:none){
 body.ez-hud-unified .top-actions #garageButton{display:none!important}
 body.ez-hud-unified #hud .route-ribbon{top:85px!important;left:50%!important;width:min(390px,calc(100vw - 24px))!important;transform:translateX(-50%)!important;min-height:58px!important}
 body.ez-hud-unified #hud .hud-right{top:10px!important;right:12px!important}
 body.ez-hud-unified #hud .hud-right .map{width:64px!important;height:64px!important}
 body.ez-hud-unified #hud .hud-right .map canvas{width:54px!important;height:54px!important}
 body.ez-hud-unified #hud .starter-guide{top:10px!important;left:12px!important}
}
@media(pointer:coarse){
 body.ez-hud-unified #hud .mobile-controls .touch-pad,
 body.ez-hud-unified #hud .mobile-controls .touch-primary button{pointer-events:auto!important}
}
@media(prefers-reduced-motion:reduce){
 body.ez-hud-unified #hud *,body.ez-hud-unified .drive-experience *{animation:none!important;transition:none!important}
}
@media(prefers-reduced-transparency:reduce){
 body.ez-hud-unified #hud .route-ribbon,body.ez-hud-unified #hud .starter-guide,body.ez-hud-unified .drive-experience{backdrop-filter:none!important;background:#101b20!important}
}