/* PCA V48.9: vehicle-like independent controls; driven by two thumbs. */
#controls.separateControls{position:fixed!important;left:max(10px,env(safe-area-inset-left))!important;right:max(10px,env(safe-area-inset-right))!important;bottom:max(7px,env(safe-area-inset-bottom))!important;display:flex!important;flex-direction:row!important;justify-content:space-between!important;align-items:flex-end!important;z-index:10;gap:10px!important;pointer-events:none}
#controls.separateControls .steeringStation{display:flex;align-items:flex-end;gap:8px;pointer-events:auto;max-width:50vw}
#controls.separateControls .padwrap{margin:0!important;text-align:center;display:flex;flex-direction:column;gap:4px;align-items:center;min-width:0}
#controls.separateControls #pad{width:clamp(122px,27vh,195px)!important;height:clamp(122px,27vh,195px)!important;border:11px solid #171e23!important;border-radius:50%;background:radial-gradient(circle at 50% 50%,#273b46 0 35%,#111b23 39% 49%,#b8c9c8 50% 52%,#18262e 56% 66%,#11171b 72%)!important;box-shadow:inset 0 0 0 3px #5b6c69,0 8px 23px #000a!important;touch-action:none;overflow:hidden;cursor:ew-resize;flex:none}
#controls.separateControls #pad .wheelSpokes{will-change:transform;transition:transform .055s linear}
#controls.separateControls #pad .wheelSpokes i{background:linear-gradient(90deg,#303c45,#a7b0b9,#2f3a43)}
#controls.separateControls #pad .wheelSpokes b{font-size:clamp(10px,2vh,14px)}
#controls.separateControls #knob,#controls.separateControls #pad .forward,#controls.separateControls #pad .reverse{display:none!important}
#controls.separateControls #padLabel{font-size:clamp(8px,1.25vh,11px)!important;color:#e5ffc2;letter-spacing:.035em;white-space:nowrap;margin:0}
#controls.separateControls .shiftConsole{width:clamp(51px,7.5vw,68px);flex:none;background:linear-gradient(130deg,#26353f,#131c23);padding:7px 5px;border:2px solid #758b8b;border-radius:14px;box-shadow:0 6px 20px #0009;display:flex;flex-direction:column;align-items:center;gap:5px}
.shiftConsole .shiftTitle{color:#cfe4c5;font-size:9px;font-weight:900;letter-spacing:.17em}
.shiftGate{width:100%;background:#0b1419;border-radius:11px;padding:4px;display:flex;flex-direction:column;gap:3px;border:1px solid #566d70}
#controls.separateControls .shiftGate button{display:grid;place-items:center;min-height:clamp(31px,5.8vh,44px);padding:0;touch-action:manipulation;user-select:none;color:#dbedec;background:#283d47;border:1px solid #536e75;border-radius:8px;font-size:clamp(14px,3vh,20px);font-weight:1000;line-height:1;cursor:pointer}
#controls.separateControls .shiftGate button.selected{background:#d6ff65;color:#15251b;border-color:#f0ffaa;box-shadow:inset 0 2px 3px #fff8,0 0 0 2px #a0d96077}
.shiftConsole #gearHint{display:block;min-height:13px;color:#d8e9ba;font-size:8px;letter-spacing:.01em;text-align:center}
#controls.separateControls .actions{display:grid!important;grid-template-columns:minmax(82px,1fr) minmax(72px,.8fr)!important;grid-template-rows:clamp(44px,9vh,68px) clamp(98px,23vh,144px)!important;gap:7px!important;width:clamp(171px,27vw,235px);align-items:stretch;pointer-events:auto}
#controls.separateControls .actions button{min-width:0!important;width:100%!important;height:100%!important;border-radius:14px!important;padding:5px!important;font-size:clamp(11px,2.2vh,15px)!important;touch-action:none}
#controls.separateControls .actions button small{font-size:clamp(7px,1.35vh,9px);margin-top:3px}
#controls.separateControls .actions #brake{grid-column:2!important;grid-row:2!important;height:100%!important;background:linear-gradient(160deg,#cf5948,#8f2425)!important;color:white!important;border:2px solid #ffb29f}
#controls.separateControls .actions #fire{grid-row:1;grid-column:1}
#controls.separateControls .actions #special{grid-row:1;grid-column:2}
#accelerator{grid-row:2;grid-column:1;position:relative;border:3px solid #7db386;border-radius:17px;background:linear-gradient(0deg,#244838,#203d35 42%,#1c2c30);min-width:0;overflow:hidden;touch-action:none;cursor:ns-resize;user-select:none;display:grid;align-content:center;justify-items:center;box-shadow:inset 0 3px 10px #0009,0 5px 15px #0009}
#accelerator.engaged{border-color:#d6ff65}
#accelerator .acceleratorTrack{position:absolute;inset:0;pointer-events:none}
#acceleratorFill{position:absolute;bottom:0;left:0;right:0;height:0%;background:linear-gradient(0deg,#81b84a,#d9fc6d);opacity:.45;transition:height .07s}
#accelerator .pedalTitle{font-weight:1000;font-size:clamp(10px,1.7vh,13px);z-index:2;color:#f3ffcf;text-shadow:0 2px 3px #000}
#accelerator .pedalSubtitle{font-weight:800;font-size:clamp(8px,1.5vh,11px);z-index:2;margin-top:8px;color:#fff}
#accelerator .pedalEnds{position:absolute;top:5px;bottom:5px;right:5px;display:flex;flex-direction:column;justify-content:space-between;color:#d6e6c5;opacity:.8;font-size:6px;pointer-events:none}
#accelerator .pedalEnds small{font-size:7px;writing-mode:vertical-rl}
#controls.separateControls #pad:focus-visible,#accelerator:focus-visible,.shiftGate button:focus-visible{outline:3px solid #e5ffb3;outline-offset:2px}
body.swap #controls.separateControls{flex-direction:row!important}
/* Keep the middle for the speed and recover controls, not on top of pedals. */
body.focusDrive .speedbox,body.focusDrive.swap .speedbox{left:50%!important;right:auto!important;transform:translateX(-50%)!important;bottom:12px!important}
body.focusDrive #recover,body.focusDrive.swap #recover{left:50%!important;right:auto!important;transform:translateX(-50%)!important;bottom:clamp(67px,12vh,100px)!important;width:130px;max-width:130px}
body.focusDrive #walkToggle,body.focusDrive.swap #walkToggle{left:50%!important;right:auto!important;transform:translateX(-50%)!important;bottom:clamp(110px,22vh,160px)!important;max-width:130px}
body.focusDrive #finishFree{left:50%!important;right:auto!important;transform:translateX(-50%)!important;bottom:clamp(148px,29vh,196px)!important;max-width:130px}
body:not(.focusDrive) #recover{left:50%!important;right:auto!important;transform:translateX(-50%);bottom:90px!important}
body:not(.focusDrive) #walkToggle{left:50%!important;right:auto!important;transform:translateX(-50%);bottom:125px!important}
body:not(.focusDrive) #finishFree{left:50%!important;right:auto!important;transform:translateX(-50%);bottom:165px!important}
@media(max-width:800px){#controls.separateControls{gap:5px!important}#controls.separateControls .steeringStation{gap:4px}#controls.separateControls #pad{width:clamp(115px,28vh,150px)!important;height:clamp(115px,28vh,150px)!important}#controls.separateControls .shiftConsole{width:49px;padding:5px 3px}#controls.separateControls .actions{width:clamp(167px,27vw,202px)}body.focusDrive #recover{max-width:94px!important;width:94px!important;font-size:9px!important} }
@media(max-height:520px){#controls.separateControls #pad{width:clamp(114px,28vh,145px)!important;height:clamp(114px,28vh,145px)!important;border-width:8px!important}#controls.separateControls .shiftGate button{min-height:29px}#controls.separateControls .actions{grid-template-rows:47px 100px!important}#controls.separateControls .actions button small{font-size:7px}#controls.separateControls .shiftConsole{gap:2px}body.focusDrive #finishFree{display:none!important}}
@media(max-width:550px) and (orientation:portrait){#controls.separateControls #pad{width:115px!important;height:115px!important}#controls.separateControls .actions{width:160px}body.focusDrive .speedbox{display:none!important}}
