/* ATHRTY GAMES / X-CONTROL-DECK-120
   Dark motorsport instrumentation. Designed for tactile control, not simulated neon widgets.
   Last stylesheet owns placement over legacy mobile experiment rules.
*/
:root{--ez-control-ink:#081015;--ez-control-face:#111b20;--ez-control-border:rgba(218,209,190,.30);--ez-control-copper:#d6b38a;--ez-control-text:#ede9e1}
#hud .route-ribbon{position:absolute;left:50%;top:21px;transform:translateX(-50%);width:min(340px,35vw);min-height:78px;z-index:3;pointer-events:none;display:flex;align-items:center;justify-content:space-between;gap:15px;padding:13px 18px 15px;border:1px solid rgba(209,191,162,.34);border-radius:12px;background:rgba(7,16,20,.91);color:var(--ez-control-text);box-shadow:0 8px 30px rgba(0,0,0,.25);backdrop-filter:blur(11px)}
.route-ribbon .route-copy{display:flex;flex-direction:column;min-width:0;gap:4px}
.route-ribbon .route-overline{font:800 9px/1.2 system-ui,sans-serif;letter-spacing:.18em;color:var(--ez-control-copper)}
.route-ribbon .route-copy strong{font:800 clamp(11px,1vw,14px)/1.18 system-ui,sans-serif;letter-spacing:.015em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.route-ribbon .route-instruction{font:500 9px/1.3 system-ui,sans-serif;color:#abb6b4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.route-ribbon .route-data{display:grid;grid-template-columns:28px auto;grid-template-rows:auto auto;column-gap:9px;align-items:center;flex-shrink:0;min-width:92px}
.route-ribbon .route-needle-wrap{grid-row:1/3;position:relative;width:28px;height:28px;border:1px solid rgba(226,207,181,.40);border-radius:50%;display:grid;place-items:center;background:#152228}
.route-ribbon .route-needle-wrap::before,.route-ribbon .route-needle-wrap::after{content:"";position:absolute;width:1px;height:3px;background:#9da6a1;top:2px;left:13px}
.route-ribbon .route-needle-wrap::after{top:auto;bottom:2px}
.route-ribbon .route-needle{width:16px;height:18px;display:block;clip-path:polygon(50% 0%,88% 62%,61% 49%,61% 100%,39% 100%,39% 49%,12% 62%);background:var(--ez-control-copper);transition:transform .25s cubic-bezier(.25,.8,.25,1);transform-origin:center}
.route-ribbon .route-distance{font:850 16px/1 system-ui,sans-serif;font-variant-numeric:tabular-nums;white-space:nowrap;letter-spacing:-.03em}
.route-ribbon .route-cue{font:800 9px/1.3 system-ui,sans-serif;letter-spacing:.13em;color:var(--ez-control-copper)}
.route-ribbon .route-progress-rail{position:absolute;bottom:0;left:0;right:0;height:2px;background:rgba(255,255,255,.06);border-radius:0 0 10px 10px;overflow:hidden}
.route-ribbon .route-progress-rail i{display:block;width:0;height:100%;background:var(--ez-control-copper);transition:width .3s linear}

#hud .starter-guide{position:absolute;left:clamp(16px,3vw,38px);bottom:84px;z-index:4;width:min(336px,34vw);max-width:calc(100vw - 24px);pointer-events:auto;border:1px solid rgba(212,193,165,.4);border-radius:13px;background:rgba(9,17,22,.95);box-shadow:0 12px 36px #0006;overflow:hidden;color:var(--ez-control-text);backdrop-filter:blur(12px)}
#hud .starter-guide[hidden],#hud .starter-details[hidden]{display:none!important}
.starter-guide .starter-toggle{appearance:none;display:flex;align-items:center;gap:11px;width:100%;border:0;border-radius:0;background:transparent;color:inherit;text-align:left;min-height:58px;padding:11px 13px;cursor:pointer}
.starter-guide .starter-seal{flex:0 0 38px;width:38px;height:36px;border:1px solid rgba(214,179,138,.56);border-radius:8px;display:grid;place-items:center;background:#253039;font:800 10px/1 system-ui,sans-serif;color:var(--ez-control-copper);letter-spacing:.05em}
.starter-guide .starter-title{min-width:0;display:flex;flex-direction:column;gap:4px;flex:1}
.starter-guide .starter-title small{font:800 9px/1.1 system-ui,sans-serif;letter-spacing:.16em;color:var(--ez-control-copper)}
.starter-guide .starter-title strong{font:800 12px/1.15 system-ui,sans-serif;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;letter-spacing:-.01em}
.starter-guide .starter-counter{font:700 10px/1 system-ui,sans-serif;color:#bbc5c0;white-space:nowrap;font-variant-numeric:tabular-nums}
.starter-guide .starter-chevron{height:8px;width:8px;transform:rotate(45deg);border-right:1.5px solid #e4c5a2;border-bottom:1.5px solid #e4c5a2;margin-right:3px;transition:transform .2s}
.starter-guide[data-expanded=true] .starter-chevron{transform:rotate(225deg)}
.starter-guide .starter-details{padding:0 15px 15px}
.starter-guide .starter-intro{font:500 11px/1.5 system-ui,sans-serif;color:#a9b7b6;margin:8px 0 15px}
.starter-guide .starter-steps{list-style:none;padding:0;margin:0;display:grid;gap:2px}
.starter-guide .starter-steps li{display:flex;align-items:center;gap:12px;min-height:48px;padding:7px 8px;border-radius:7px;transition:background .2s}
.starter-guide .starter-steps li>span{flex:0 0 24px;font:800 10px/1 system-ui,sans-serif;color:#75858b}
.starter-guide .starter-steps li>div{display:flex;flex-direction:column;gap:4px;min-width:0}
.starter-guide .starter-steps b{font:800 11px/1.1 system-ui,sans-serif;letter-spacing:.01em;color:#aeb8b8}
.starter-guide .starter-steps small{font:500 10px/1.3 system-ui,sans-serif;color:#8d9b9d}
.starter-guide .starter-steps li[data-status=active]{background:rgba(210,180,143,.12);box-shadow:inset 2px 0 var(--ez-control-copper)}
.starter-guide .starter-steps li[data-status=active] b,.starter-guide .starter-steps li[data-status=active]>span{color:#f1d1aa}
.starter-guide .starter-steps li[data-status=complete]>span{color:#d2ae83}
.starter-guide .starter-steps li[data-status=complete]>span::before{content:"✓";margin-right:2px}
.starter-guide .starter-steps li[data-status=complete] b{color:#a3b1aa}
.starter-guide .starter-hint{margin:14px 0 11px;padding:10px 0;border-top:1px solid #4b53514d;font:500 10px/1.5 system-ui,sans-serif;color:#bbc3be}
.starter-guide .starter-actions{display:flex;gap:7px}
.starter-guide .starter-actions button{flex:1;min-height:44px;border-radius:9px;border:1px solid rgba(225,193,155,.5);background:#253138;color:#e9dbc8;font:800 9px/1.1 system-ui,sans-serif;letter-spacing:.1em}
.starter-guide .starter-actions button:first-child{background:var(--ez-control-copper);color:#0f191b;border-color:var(--ez-control-copper)}
#hud .starter-guide button:focus-visible,#hud .mobile-controls button:focus-visible{outline:2px solid #f4e9db;outline-offset:-3px}

#hud .mobile-controls{display:none!important}
#hud .mobile-controls .touch-pad{width:112px;height:112px;min-width:0;position:relative;border-radius:20px;border:1px solid rgba(226,214,192,.43);background:linear-gradient(140deg,rgba(38,50,57,.93),rgba(10,19,24,.95));box-shadow:inset 0 1px rgba(255,255,255,.05),0 8px 20px #0005;touch-action:none;user-select:none;-webkit-user-select:none}
#hud .mobile-controls .touch-pad:before{content:"";position:absolute;inset:14%;border:1px solid rgba(216,191,161,.20);border-radius:50%}
#hud .mobile-controls .touch-pad:after{content:"";position:absolute;inset:42%;border-radius:50%;border:1px solid rgba(213,186,150,.13)}
#hud .mobile-controls .touch-cross{position:absolute;background:rgba(223,204,177,.22);pointer-events:none}
#hud .mobile-controls .touch-cross-x{height:1px;left:11%;right:11%;top:50%}
#hud .mobile-controls .touch-cross-y{width:1px;top:11%;bottom:11%;left:50%}
#hud .mobile-controls .touch-nub{width:39px;height:39px;position:absolute;left:calc(50% - 19.5px);top:calc(50% - 19.5px);border-radius:13px;background:#b49c7b;border:1px solid #e4d0b6;box-shadow:0 3px 8px #0006,inset 0 1px #fff5;pointer-events:none;display:grid;place-items:center;will-change:transform}
#hud .mobile-controls .touch-nub span{width:9px;height:9px;border:1px solid #263033;border-radius:2px;transform:rotate(45deg)}
#hud .mobile-controls .touch-pad[data-engaged=true] .touch-nub{background:#dbc09c}
#hud .mobile-controls .touch-caption{color:#ccc2b2;font:800 9px/1.1 system-ui,sans-serif;letter-spacing:.19em;margin:0 0 8px 4px;display:block;text-shadow:0 1px 3px #000}
#hud .mobile-controls .touch-actions{justify-self:end;display:flex;flex-direction:column;align-items:flex-end;gap:8px;min-width:0;width:min(174px,100%)}
#hud .mobile-controls .touch-utilities{display:flex;align-items:center;justify-content:flex-end;gap:8px}
#hud .mobile-controls .touch-primary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;width:100%}
#hud .mobile-controls button{appearance:none;touch-action:manipulation;-webkit-tap-highlight-color:transparent;user-select:none;-webkit-user-select:none;min-width:0;min-height:53px;margin:0;cursor:pointer;font:800 10px/1 system-ui,sans-serif;letter-spacing:.08em;color:var(--ez-control-text);background:#17252b;border:1px solid rgba(231,218,198,.34);border-radius:12px;box-shadow:inset 0 1px rgba(255,255,255,.055),0 5px 12px #0005;transition:background .13s,border-color .13s,transform .13s}
#hud .mobile-controls .touch-utilities button{min-height:35px;min-width:68px;border-radius:10px;color:#d1c9b9;font-size:9px;letter-spacing:.13em;background:rgba(12,21,26,.87)}
#hud .mobile-controls #touchAction{background:#d0ac7e;color:#152025;border-color:#ebcb9f;font-weight:900}
#hud .mobile-controls #touchAttack{background:#303b40;border-color:rgba(214,179,138,.65);color:#f3d5aa}
#hud .mobile-controls button:active,#hud .mobile-controls button[data-pressed=true]{transform:scale(.967);border-color:#edceb1;background:#445057}
#hud .mobile-controls #touchAction:active{background:#ead1ad;color:#11191a}

@media (pointer:coarse){
 #hud .mobile-controls{display:grid!important;grid-template-columns:minmax(92px,128px) minmax(154px,1fr);align-items:end;justify-content:space-between;position:absolute;left:max(12px,env(safe-area-inset-left));right:max(12px,env(safe-area-inset-right));bottom:max(12px,env(safe-area-inset-bottom));gap:10px;z-index:9;pointer-events:auto}
 #hud .mobile-controls .touch-movement{justify-self:start}
 #hud .foot-hud{display:none!important}
 #hud .interact{display:none!important}
 #hud .starter-guide{bottom:calc(170px + env(safe-area-inset-bottom,0px));left:max(12px,env(safe-area-inset-left));width:min(280px,calc(100vw - 24px));}
 #hud .route-ribbon{z-index:3}
}
@media (max-width:1200px) and (min-width:651px){
 #hud .route-ribbon{width:min(328px,38vw)}
 #hud .starter-guide{width:min(300px,32vw)}
}
@media (max-width:980px) and (min-width:651px){
 #hud .route-ribbon{top:190px;width:330px;max-width:calc(100vw - 20px)}
 #hud .starter-guide{width:290px}
}
@media (max-width:650px){
 #hud .hud-left{max-height:150px;overflow:hidden;max-width:min(215px,60vw)!important}
 #hud .hud-left .stats,#hud .hud-left .business-health,#hud .hud-left .health-wrap{display:none!important}
 #hud .hud-left #careerNextButton{min-height:42px}
 #hud .route-ribbon{top:192px;left:12px;transform:none;width:calc(100vw - 24px);min-height:64px;padding:10px 13px;gap:11px;max-width:430px}
 #hud .route-ribbon .route-overline{font-size:8px}
 #hud .route-ribbon .route-copy strong{font-size:12px}
 #hud .route-ribbon .route-instruction{font-size:9px;max-width:210px}
 #hud .starter-guide{width:min(290px,calc(100vw - 24px))}
 .top{padding-left:12px;padding-right:12px}
 .top-actions #cameraButton,.top-actions #graphicsButton,.top-actions #ventureButton,.top-actions #garageButton,.top-actions #streetOpen{display:none!important}
 .top-actions .top-button{font-size:9px!important;padding:10px!important;min-height:44px}
 .top .brand{font-size:12px;white-space:nowrap}
}
@media(max-width:360px){
 #hud .mobile-controls{grid-template-columns:92px minmax(0,1fr);gap:8px}
 #hud .mobile-controls .touch-pad{width:92px;height:92px}
 #hud .mobile-controls .touch-nub{width:35px;height:35px;left:calc(50% - 17.5px);top:calc(50% - 17.5px)}
 #hud .mobile-controls .touch-actions{width:158px;gap:5px}
 #hud .mobile-controls .touch-primary{gap:6px}
 #hud .mobile-controls button{min-height:48px;font-size:9px}
 #hud .route-ribbon{top:185px}
 #hud .starter-guide{bottom:calc(157px + env(safe-area-inset-bottom,0px))}
}
@media(min-width:651px) and (pointer:coarse){
 #hud .mobile-controls .touch-pad{width:124px;height:124px}
 #hud .mobile-controls{grid-template-columns:150px minmax(154px,1fr);bottom:max(14px,env(safe-area-inset-bottom))}
 #hud .starter-guide{bottom:calc(200px + env(safe-area-inset-bottom,0px))}
 #hud .route-ribbon{left:50%;transform:translateX(-50%)}
}
@media(max-height:570px){
 #hud .starter-guide[data-expanded=true] .starter-details{max-height:190px;overflow-y:auto}
 #hud .route-ribbon{min-height:59px;padding:8px 12px}
}
@media(max-height:520px) and (pointer:coarse){
 #hud .mobile-controls{left:max(10px,env(safe-area-inset-left));right:max(10px,env(safe-area-inset-right));bottom:max(6px,env(safe-area-inset-bottom));grid-template-columns:100px minmax(144px,1fr);gap:8px}
 #hud .mobile-controls .touch-pad{width:84px;height:84px;border-radius:14px}
 #hud .mobile-controls .touch-nub{width:33px;height:33px;left:calc(50% - 16.5px);top:calc(50% - 16.5px);border-radius:9px}
 #hud .mobile-controls .touch-caption{font-size:8px;margin-bottom:4px}
 #hud .mobile-controls .touch-actions{width:156px;gap:5px}
 #hud .mobile-controls .touch-primary{gap:5px}
 #hud .mobile-controls button{min-height:44px;font-size:9px;border-radius:9px}
 #hud .mobile-controls .touch-utilities button{min-height:29px;min-width:56px}
 #hud .route-ribbon{top:102px;left:calc(50% + 35px);width:min(265px,36vw);min-height:52px}
 #hud .route-ribbon .route-instruction{display:none}
 #hud .starter-guide{bottom:calc(109px + env(safe-area-inset-bottom,0px));width:220px}
 #hud .starter-guide .starter-toggle{min-height:44px;padding:7px 9px}
 #hud .starter-guide .starter-seal{height:30px;flex-basis:30px;width:30px;font-size:8px}
 #hud .starter-guide .starter-title strong{font-size:10px}
 #hud .hud-left{max-height:124px!important;overflow:hidden!important}
 #hud .hud-left .stats,#hud .hud-left .business-health,#hud .hud-left .health-wrap{display:none!important}
 #hud .hud-right .map{width:68px;height:68px}
 #hud .hud-right .map canvas{width:56px;height:56px}
}
@media(max-height:500px) and (min-width:651px) and (pointer:fine){
 #hud .route-ribbon{top:100px;width:270px;left:calc(50% + 45px)}
 #hud .starter-guide{bottom:14px;width:245px}
}
@media(pointer:coarse) and (min-width:651px) and (max-width:980px) and (min-height:571px){
 #hud .route-ribbon{left:calc(50% + 65px);transform:translateX(-50%)}
}
@media(pointer:coarse) and (max-width:650px){
 #hud .starter-guide[data-expanded=true] .starter-details{max-height:min(38svh,310px);overflow-y:auto;overscroll-behavior:contain}
}
#hud .route-ribbon[data-route-cue=arrived]{border-color:rgba(223,185,137,.72)}
#hud .route-ribbon[data-route-cue=arrived] .route-cue{color:#e9ccaa}
#hud .route-ribbon[data-guide-mode="visual-street-preview"]{border-color:rgba(210,186,147,.54)}
#hud .route-ribbon[data-guide-mode="visual-street-preview"] .route-progress-rail i{background:#bda27e}
@keyframes ezGuideArrival{0%{border-color:rgba(222,189,145,.96);box-shadow:0 0 0 0 rgba(214,179,138,.3)}100%{border-color:rgba(222,189,145,.52);box-shadow:0 0 0 9px rgba(214,179,138,0)}}
@keyframes ezGuideStage{from{opacity:.65;translate:0 4px}to{opacity:1;translate:0 0}}
#hud .route-ribbon[data-route-cue="arrived"]{animation:ezGuideArrival .6s ease-out 1}
#hud .starter-guide[data-current="1"] .starter-title,#hud .starter-guide[data-current="2"] .starter-title,#hud .starter-guide[data-current="3"] .starter-title,#hud .starter-guide[data-current="4"] .starter-title{animation:ezGuideStage .24s ease-out 1}
/* Player-owned input preset, no HUD clones. */
@media(pointer:coarse){
 body[data-touch-handedness="left"] #hud .mobile-controls{grid-template-columns:minmax(154px,1fr) minmax(92px,150px)}
 body[data-touch-handedness="left"] #hud .mobile-controls .touch-movement{grid-column:2;grid-row:1;justify-self:end}
 body[data-touch-handedness="left"] #hud .mobile-controls .touch-actions{grid-column:1;grid-row:1;justify-self:start;align-items:flex-start}
 body[data-touch-handedness="left"] #hud .mobile-controls .touch-utilities{justify-content:flex-start}
 body[data-touch-handedness="left"] #hud .starter-guide{left:auto;right:max(12px,env(safe-area-inset-right,0px))}
}
.ez-input-calibration{border:1px solid rgba(212,185,151,.30);border-radius:14px;padding:18px;margin:14px 0 20px;background:linear-gradient(135deg,#19262a,#0d151a);min-width:0;color:#e7e1d8}
.ez-input-calibration legend{padding:0 8px;color:#d9b895;font:850 10px/1.3 system-ui,sans-serif;letter-spacing:.14em}
.ez-input-intro{font:500 11px/1.55 system-ui,sans-serif!important;color:#b8c2be!important;margin:0 0 12px!important}
.ez-input-setting{display:grid;grid-template-columns:minmax(0,1fr) minmax(132px,41%);gap:12px;align-items:center;padding:13px 0;border-top:1px solid rgba(235,231,225,.1)}
.ez-input-setting>div{display:flex;flex-direction:column;gap:5px;min-width:0}
.ez-input-setting label{font:800 10px/1.25 system-ui,sans-serif;color:#f0e4d3;letter-spacing:.09em}
.ez-input-setting small{font:500 10px/1.45 system-ui,sans-serif;color:#aabbb8}
.ez-input-setting select{border:1px solid #6a6a606b;border-radius:9px;background:#152228;color:#f4e6d7;padding:11px 12px;min-width:0;width:100%;min-height:44px;font:800 10px/1.25 system-ui,sans-serif;letter-spacing:.035em;cursor:pointer}
.ez-input-setting select:focus-visible,.ez-input-actions button:focus-visible{outline:2px solid #e8c49e;outline-offset:2px}
.ez-input-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid rgba(235,231,225,.1);padding-top:14px}
.ez-input-actions button{border-radius:10px;border:1px solid #bd9d76;background:#303e42;color:#efdbbf;padding:12px 14px;min-height:44px;font:850 9px/1.2 system-ui,sans-serif;letter-spacing:.06em;cursor:pointer}
.ez-input-actions span{font:750 9px/1.35 system-ui,sans-serif;color:#a8b9b4;text-align:right}
@media(max-width:480px){
 .ez-input-calibration{padding:12px}
 .ez-input-setting{grid-template-columns:minmax(0,1fr) minmax(105px,43%);gap:8px}
 .ez-input-actions{align-items:stretch;flex-direction:column}
 .ez-input-actions span{text-align:left}
}
#world{touch-action:none}
@media(prefers-reduced-motion:reduce){
 #hud .route-ribbon *,#hud .starter-guide *,#hud .mobile-controls *{animation:none!important;transition:none!important;scroll-behavior:auto!important}
}