/* PCA V48 – an opt-in driving-first iPad view; never hides active actions. */
#focusView{background:#33534c;color:#e9ffc1;border:1px solid #a6c99b;font-weight:800;min-height:38px;white-space:nowrap}
#focusView[aria-pressed="true"]{background:#d4fc80;color:#173721}
body.focusDrive #mission{width:min(265px,39vw);padding:10px 11px;background:#0e2b26d8}
body.focusDrive #chapter,body.focusDrive #mission .spread,body.focusDrive #mission>progress,body.focusDrive #heat,
body.focusDrive .scorebox,body.focusDrive #driverHud{display:none!important}
body.focusDrive #mission h2{font-size:13px;margin:0 0 5px;line-height:1.2}
body.focusDrive #navHud{font-size:10px;line-height:1.2;min-height:0;margin:5px 0;letter-spacing:0}
body.focusDrive #surpriseBox{padding:6px;margin-top:6px}
body.focusDrive #surpriseBox #momentTitle{font-size:10px}
body.focusDrive .speedbox{width:104px;right:clamp(180px,23vw,265px);bottom:14px;padding:9px 10px}
body.focusDrive .speedbox>b{font-size:34px}
body.focusDrive .speedbox #streetStatus,body.focusDrive .speedbox #weatherStatus,
body.focusDrive .speedbox #handlingStatus,body.focusDrive .speedbox #driveStatus,
body.focusDrive .speedbox #environmentStatus{display:none!important}
body.focusDrive .speedbox>span{font-size:9px;margin-top:3px}
body.focusDrive .speedbox progress{margin:5px 0 0}
body.focusDrive #minimap{display:block;right:max(14px,env(safe-area-inset-right));bottom:clamp(215px,34vh,295px);width:95px;height:91px;opacity:.92;pointer-events:none}
body.focusDrive.swap .speedbox{left:clamp(180px,23vw,265px);right:auto}
body.focusDrive.swap #minimap{left:max(14px,env(safe-area-inset-left));right:auto}
body.focusDrive #routeToggle{min-height:30px}
@media (max-width:980px){#focusView{font-size:10px;padding:7px 8px}}
@media (max-width:760px){body.focusDrive #mission{width:min(240px,42vw)}body.focusDrive .speedbox{width:88px;right:185px}body.focusDrive.swap .speedbox{left:185px}body.focusDrive #minimap{width:75px;height:70px;bottom:205px}#focusView{max-width:88px;white-space:normal}}
@media (max-height:590px){body.focusDrive #mission{top:58px;padding:7px 9px}body.focusDrive #mission h2{font-size:11px}body.focusDrive #surpriseBox{margin-top:3px}body.focusDrive #minimap{bottom:205px}body.focusDrive #speedbox{padding:6px}}
@media (max-width:550px){body.focusDrive .speedbox{display:none}body.focusDrive #mission{width:230px}body.focusDrive #minimap{bottom:150px;opacity:.7}}
@media (prefers-reduced-motion:reduce){#focusView{transition:none}}
/* Keep speed/energy centered between left wheel and right action cluster, even
 * at compact landscape sizes; do not cover FIRE or BRAKE. */
body.focusDrive .speedbox,body.focusDrive.swap .speedbox{left:50%;right:auto;transform:translateX(-50%);bottom:14px}

/* V48.1 QA fix: keep driving-first focus view free of overlay activity badges.
   All four activities remain accessible through the MORE menu. */
body.focusDrive #crewHud,
body.focusDrive #gameNightBadge,
body.focusDrive #festivalBadge,
body.focusDrive #multiplayerBadge {display:none!important}

/* Use the free strip between the wheel and the action buttons for less-frequent
   recovery, walking and reward controls. Never stack these on the speed gauge. */
body.focusDrive #recover,
body.focusDrive.swap #recover {
  left:clamp(185px,26vw,300px);right:auto;bottom:8px;
  max-width:145px;min-height:30px;padding:5px 9px;font-size:10px;
}
body.focusDrive #walkToggle,
body.focusDrive.swap #walkToggle {
  left:clamp(185px,26vw,300px);right:auto;bottom:48px;
  transform:none;max-width:145px;min-height:30px;padding:5px 8px;
  font-size:10px;white-space:normal;
}
body.focusDrive #finishFree {
  left:clamp(185px,26vw,300px);right:auto;bottom:90px;
  transform:none;max-width:145px;min-height:30px;
  padding:5px 8px;font-size:9px;line-height:1.2;
  white-space:normal;
}
@media(max-height:590px){body.focusDrive .speedbox{padding:6px}}
