/* EMPIRE ZERO — X-AAA-GAME-INTERFACE v193
 * One game-oriented layout authority; preserve actual buttons and game state.
 * Defined after legacy style sheets so no new parallel game controllers exist.
 */
:root{--ezui-bg:#0a1317;--ezui-card:rgba(8,17,20,.82);--ezui-line:rgba(211,190,161,.25);--ezui-text:#eee9df;--ezui-soft:#aeb7b4;--ezui-copper:#d4b188;--ezui-radius:13px}
body.ez-hud-unified .top{height:58px!important;min-height:58px!important;max-height:58px!important;padding-inline:clamp(14px,2.3vw,32px)!important;border-bottom:1px solid rgba(196,179,150,.14)!important;background:linear-gradient(180deg,rgba(5,12,15,.89),rgba(5,12,15,.36))!important}
body.ez-hud-unified .top .ez-play-brand{height:46px!important;max-height:46px!important;max-width:156px!important;flex-basis:156px!important}
body.ez-hud-unified .top .ez-play-brand img{max-height:38px!important}
body.ez-hud-unified .top-actions{gap:6px!important}
body.ez-hud-unified .top-actions .top-button,
body.ez-hud-unified #ezCrewNav{box-shadow:none!important;transition:background .15s,border-color .15s}
body.ez-hud-unified #hud{inset:58px 0 0!important}
body.ez-hud-unified #hud .route-ribbon{top:18px!important;width:min(340px,36vw)!important;min-height:52px!important;padding:8px 12px!important;border-color:var(--ezui-line)!important;background:var(--ezui-card)!important}
body.ez-hud-unified #hud .route-ribbon .route-copy strong{font-size:13px!important}
body.ez-hud-unified #hud .starter-guide{top:15px!important;left:max(16px,env(safe-area-inset-left,0px))!important}
body.ez-hud-unified #hud .starter-guide:not([data-expanded="true"]){width:110px!important}
body.ez-hud-unified #hud .starter-guide[data-expanded="true"]{max-height:min(64dvh,380px);overflow:auto;overscroll-behavior:contain}
body.ez-hud-unified #hud .hud-right{top:auto!important;bottom:max(24px,env(safe-area-inset-bottom,0px))!important;left:max(18px,env(safe-area-inset-left,0px))!important;right:auto!important;width:auto!important;z-index:4}
body.ez-hud-unified #hud .hud-right .map{width:110px!important;height:110px!important;border-radius:16px!important;background:var(--ezui-card)!important;border-color:var(--ezui-line)!important;backdrop-filter:blur(5px)}
body.ez-hud-unified #hud .hud-right .map canvas{width:94px!important;height:94px!important}
body.ez-hud-unified #hud .interact:not([hidden]){background:var(--ezui-card)!important;border:1px solid var(--ezui-line)!important;border-radius:999px!important;box-shadow:none!important;font-size:11px!important;letter-spacing:.06em!important;max-width:min(330px,calc(100vw - 24px));text-wrap:balance;pointer-events:none}
body.ez-hud-unified .drive-experience{width:138px!important;border-color:var(--ezui-line)!important;border-radius:15px!important}
body.ez-hud-unified[data-driving="false"] .drive-experience,
body.ez-hud-unified:not([data-driving="true"]) .drive-experience{display:none!important}
body.ez-hud-unified[data-driving="true"] .drive-experience{display:block}
body.ez-hud-unified #hud .starter-guide button:focus-visible,
body.ez-hud-unified #pauseMenu button:focus-visible,
body.ez-hud-unified #pauseMenu select:focus-visible{outline:2px solid #efce9f!important;outline-offset:3px!important}

/* Player command / one panel taxonomy, accessible tabs with real game destinations. */
#pauseMenu .ez-command-shell{background:#091217!important;border:1px solid var(--ezui-line)!important;border-radius:17px!important;max-width:1050px!important}
#pauseMenu .ez-command-head{background:#0c171c!important;border-bottom:1px solid var(--ezui-line)!important;min-height:74px;padding:16px 22px!important}
#pauseMenu .ez-command-head span{font-size:9px;letter-spacing:.13em}
#pauseMenu .ez-command-head h2{font-size:clamp(19px,2.1vw,27px)!important;line-height:1.08;margin:5px 0 0}
#pauseMenu #ezCloseMenu{border-radius:999px!important;min-width:112px!important;min-height:44px!important;background:transparent!important;border:1px solid var(--ezui-line)!important}
#pauseMenu .ez-command-body{grid-template-columns:184px minmax(0,1fr)}
#pauseMenu .ez-command-nav{padding:12px 9px!important;gap:3px!important;overflow-y:auto;overscroll-behavior:contain;background:#0c1519;border-right:1px solid var(--ezui-line)}
#pauseMenu .ez-command-nav button{font-size:10px!important;letter-spacing:.045em!important;text-align:left!important;padding:11px 13px!important;min-height:44px!important;border-radius:10px!important;border:1px solid transparent!important;flex-shrink:0}
#pauseMenu .ez-command-nav button[aria-selected="true"]{color:var(--ezui-text)!important;border-color:rgba(205,174,132,.45)!important;background:rgba(191,151,98,.13)!important}
#pauseMenu .ez-command-content{background:linear-gradient(135deg,#101d22,#0b1519)!important;min-width:0;scrollbar-width:thin;scrollbar-color:#685a4c transparent}
#pauseMenu .ez-command-content [role=tabpanel]:focus{outline:none}
#pauseMenu .ez-command-content [role=tabpanel]:focus-visible{outline:2px solid var(--ezui-copper);outline-offset:4px}
#pauseMenu .ez-command-content h3{font-size:clamp(25px,3vw,37px)!important;line-height:1.08!important;letter-spacing:-.05em!important;margin:12px 0!important}
#pauseMenu .ez-menu-tiles button{background:#17242a!important;border-radius:13px!important;border:1px solid var(--ezui-line)!important;box-shadow:none!important;transform:none!important;min-height:96px!important}
#pauseMenu .ez-menu-tiles button:first-child{background:rgba(186,144,93,.20)!important;color:#f1eadd!important;border-color:rgba(205,174,132,.54)!important}
#pauseMenu .ez-menu-tiles button:hover{background:#223139!important;border-color:#d4b18a!important}
#pauseMenu .ez-empire-stats>div{background:#162329!important;border-color:var(--ezui-line)!important}
#pauseMenu .ez-destination-choice{border-radius:10px!important;min-height:48px}
#pauseMenu [role="tab"]{scroll-margin:6px}
#pauseMenu .ez-world-map{width:min(460px,100%)}

/* Tablet and phone / fit all eight actual tabs, never hide account/settings. */
@media(max-width:850px){
 #pauseMenu .ez-command-body{display:flex!important;flex-direction:column;min-height:0}
 #pauseMenu .ez-command-nav{flex:0 0 auto!important;display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:repeat(2,44px);gap:4px!important;padding:7px!important;overflow:hidden!important;min-height:0;border-right:0!important;border-bottom:1px solid var(--ezui-line)!important}
 #pauseMenu .ez-command-nav button{display:flex!important;align-items:center;justify-content:center!important;text-align:center!important;font-size:9px!important;letter-spacing:.025em!important;padding:4px!important;min-width:0;min-height:44px!important;line-height:1.1;white-space:normal!important}
 #pauseMenu .ez-command-content{flex:1;overflow-y:auto;min-height:0;padding:15px 18px!important}
 #pauseMenu .ez-command-head{min-height:64px;padding:12px 17px!important}
 #pauseMenu .ez-command-head h2{font-size:20px!important}
 #pauseMenu .ez-menu-tiles{gap:8px}
 #pauseMenu .ez-menu-tiles button{min-height:82px!important;padding:11px!important}
 #pauseMenu .ez-empire-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:480px){
 #pauseMenu{padding:8px!important}
 #pauseMenu .ez-command-shell{height:calc(100dvh - 16px)!important;max-height:calc(100dvh - 16px)!important;border-radius:14px!important}
 #pauseMenu .ez-command-head{min-height:61px;padding:10px 13px!important;gap:12px}
 #pauseMenu .ez-command-head h2{font-size:17px!important}
 #pauseMenu .ez-command-head span{font-size:8px}
 #pauseMenu #ezCloseMenu{min-width:90px!important;padding:8px 10px!important}
 #pauseMenu #ezCloseMenu kbd{display:none}
 #pauseMenu .ez-command-nav{padding:6px!important;gap:3px!important}
 #pauseMenu .ez-command-nav button{font-size:8.5px!important;padding:3px!important}
 #pauseMenu .ez-command-content{padding:12px 14px!important}
 #pauseMenu .ez-command-content h3{font-size:25px!important}
 #pauseMenu .ez-empire-stats>div{padding:11px}
 #pauseMenu .ez-menu-tiles{grid-template-columns:1fr 1fr}
 #pauseMenu .ez-menu-tiles b{font-size:10px!important}
 #pauseMenu .ez-menu-tiles small{font-size:8px!important}
 body.ez-hud-unified #hud .route-ribbon{top:81px!important;width:min(380px,calc(100vw - 24px))!important}
 body.ez-hud-unified #hud .hud-right{top:9px!important;right:12px!important;bottom:auto!important;left:auto!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:9px!important;left:12px!important}
 body.ez-hud-unified .drive-experience{bottom:calc(149px + env(safe-area-inset-bottom,0px))!important}
}
@media(max-height:480px) and (orientation:landscape){
 #pauseMenu .ez-command-head{min-height:45px!important;padding:5px 12px!important}
 #pauseMenu .ez-command-head h2{font-size:15px!important;margin:0}
 #pauseMenu .ez-command-nav{grid-template-columns:repeat(8,minmax(0,1fr));grid-template-rows:44px;gap:2px!important;padding:4px!important}
 #pauseMenu .ez-command-nav button{min-height:44px;font-size:8px!important}
 #pauseMenu .ez-command-content{padding:10px 15px!important}
 body.ez-hud-unified #hud .route-ribbon{top:8px!important}
}
@media(pointer:coarse){
 body.ez-hud-unified #hud .hud-right{top:9px!important;right:max(12px,env(safe-area-inset-right,0px))!important;bottom:auto!important;left:auto!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}
 #pauseMenu .ez-command-nav button{min-height:44px!important}
}
@media(prefers-reduced-motion:reduce){#pauseMenu .ez-command-nav button,#pauseMenu .ez-menu-tiles button,body.ez-hud-unified #hud .route-ribbon{animation:none!important;transition:none!important}}