/* PCA V48.13: one press = one action; keep the actual drive image unobstructed. */
#controls.separateControls{left:max(4px,env(safe-area-inset-left))!important;right:max(4px,env(safe-area-inset-right))!important;bottom:max(5px,env(safe-area-inset-bottom))!important;gap:5px!important;align-items:flex-end!important}
#controls.separateControls .steeringStation{max-width:49vw!important;gap:5px!important}
#controls.separateControls #pad{width:clamp(124px,25vh,184px)!important;height:clamp(124px,25vh,184px)!important;position:relative!important;cursor:default!important;border-width:9px!important}
#pad .steerHold{position:absolute;top:0;bottom:0;width:50%;z-index:5;padding:0!important;background:transparent!important;border:0!important;color:#f3ffd0!important;border-radius:0!important;display:flex;align-items:center;justify-content:space-evenly;flex-direction:column;touch-action:none!important;font-size:clamp(22px,5vh,31px)!important;text-shadow:0 2px 5px #061515;user-select:none;min-width:0!important;height:100%!important;box-shadow:none!important}
#pad .steerLeft{left:0;border-radius:95px 0 0 95px!important}
#pad .steerRight{right:0;border-radius:0 95px 95px 0!important}
#pad .steerHold small{font-size:clamp(10px,2.2vh,13px)!important;font-weight:900!important;letter-spacing:.03em;margin:0!important;color:#fffc!important;text-shadow:0 2px 4px #021819}
#pad .steerHold.held{background:#d7ff5a4b!important;color:#e7ffb0!important}
#pad .steerLeft::after{content:'';position:absolute;right:0;top:10%;height:80%;border-right:2px solid #e0f5d38a}
#controls.separateControls #padLabel{font-size:clamp(8px,1.6vh,11px)!important;min-width:0!important;max-width:190px;white-space:normal!important;line-height:1.2;color:#e9ffbb;font-weight:900}
#controls.separateControls .shiftConsole{width:clamp(45px,7vw,58px)!important;padding:5px 3px;gap:2px}
#controls.separateControls .shiftTitle{font-size:9px}
#controls.separateControls .shiftGate button{min-height:clamp(30px,5vh,43px)!important}
#controls.separateControls .actions{width:clamp(182px,28vw,249px)!important;grid-template-columns:minmax(105px,1.3fr) minmax(65px,.8fr)!important;grid-template-rows:clamp(43px,8vh,58px) clamp(112px,24vh,172px)!important;gap:5px!important}
#controls.separateControls #accelerator.pressPedal{grid-column:1;grid-row:2;border:3px solid #e3f7a8!important;border-radius:17px!important;padding:8px!important;min-width:0!important;height:100%!important;background:linear-gradient(170deg,#87928e,#313e3e 45%,#1d2b2c)!important;color:white!important;box-shadow:inset 0 3px 6px #ffffff22,0 8px 18px #0008!important;touch-action:none;cursor:pointer;user-select:none}
#accelerator.pressPedal .pedalFace{width:100%;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:space-evenly;border:2px solid #b6c6b6;border-radius:12px;background:repeating-linear-gradient(0deg,#2b3534 0 8px,#394b49 8px 12px);pointer-events:none}
#accelerator.pressPedal b{font-size:clamp(26px,6vh,38px);line-height:1;color:#d9ff87;text-shadow:0 2px 3px #0a1815}
#accelerator.pressPedal small{font-size:clamp(8px,1.3vh,10px)!important;letter-spacing:0;line-height:1.1;color:#fff;text-shadow:0 2px 3px #122}
#accelerator.pressPedal.engaged{border-color:#d6ff65!important;background:linear-gradient(140deg,#6f9d43,#244832)!important;transform:translateY(2px) scale(.985);box-shadow:inset 0 6px 14px #021b16!important}
#accelerator.pressPedal.engaged .pedalFace{background:repeating-linear-gradient(0deg,#3c5f39 0 8px,#528251 8px 12px)}
#controls.separateControls .actions #brake{background:linear-gradient(155deg,#c65042,#8b2824)!important}
/* Most of the game should be visible at all times. */
body.focusDrive header{height:49px;padding:5px max(10px,env(safe-area-inset-right))!important;background:linear-gradient(#102725e8,#10272576)!important;align-items:center!important}
body.focusDrive header .brand{display:none!important}
body.focusDrive header nav{width:100%!important;max-width:100%!important;justify-content:flex-end!important;flex-wrap:nowrap!important;gap:5px!important}
body.focusDrive header nav>button{font-size:clamp(9px,1.45vh,12px)!important;padding:6px 9px!important;min-height:35px!important;line-height:1!important}
body.focusDrive #focusView{white-space:nowrap!important;max-width:none!important}
body.focusDrive #mission{display:none!important}
body.focusDrive.routeActive #mission{display:block!important;top:52px!important;left:50%!important;transform:translateX(-50%)!important;width:min(325px,65vw)!important;padding:8px!important}
body.focusDrive.routeActive #mission > :not(#routeControls){display:none!important}
body.focusDrive .scorebox,body.focusDrive #driverHud,body.focusDrive #minimap{display:none!important}
body.focusDrive .speedbox,body.focusDrive.swap .speedbox{position:fixed!important;left:50%!important;right:auto!important;bottom:max(5px,env(safe-area-inset-bottom))!important;transform:translateX(-50%)!important;width:clamp(66px,9vw,93px)!important;padding:6px!important;text-align:center;background:#102b25c9;border-radius:12px;border:1px solid #bfdabca8;z-index:9}
body.focusDrive .speedbox>b{font-size:clamp(24px,5vh,38px)!important;line-height:1!important}
body.focusDrive .speedbox>small{font-size:9px!important;margin:0!important;display:block!important}
body.focusDrive .speedbox>span,body.focusDrive .speedbox progress,body.focusDrive .speedbox #cooldown{display:none!important}
body.focusDrive #recover,body.focusDrive #walkToggle,body.focusDrive #finishFree{display:none!important}
body.focusDrive #visit:not([hidden]){left:50%!important;top:54px!important;transform:translateX(-50%)!important;padding:9px!important;font-size:11px!important;max-width:50vw}
body.focusDrive #raceTrackHud{top:52px!important;padding:5px 10px;font-size:clamp(9px,1.4vh,12px);z-index:7}
body.focusDrive #toast{top:23%!important;font-size:clamp(12px,3vh,18px)!important;max-width:60vw;line-height:1.1}
body.focusDrive #photoRouteGuide{top:58px}
@media(max-height:550px){body.focusDrive header{height:39px!important}body.focusDrive header nav>button{min-height:30px!important;padding:4px 7px!important;font-size:10px!important}#controls.separateControls #pad{width:118px!important;height:118px!important}#controls.separateControls .actions{grid-template-rows:37px 95px!important}#controls.separateControls .shiftGate button{min-height:28px!important}body.focusDrive #raceTrackHud{top:42px!important}}
@media(max-width:650px){#controls.separateControls .actions{width:168px!important;grid-template-columns:100px 63px!important}#controls.separateControls .shiftConsole{width:44px!important}body.focusDrive header nav{gap:3px!important}body.focusDrive header nav>button{font-size:9px!important;padding:4px 5px!important}}
