#mobile-stick,#mobile-ride-actions,.mobile-vehicle-actions{display:none}
/* Ground rides share flight-active layout, but must never reveal the hidden flight HUD. */
body.flight-active #flight-hud[hidden],body.auto-active #auto-hud[hidden]{display:none!important}
@media(max-width:760px),(max-height:550px) and (pointer:coarse){
 body.flight-active #flight-hud,body.auto-active #auto-hud{height:56px!important;min-height:0!important;bottom:calc(25px + env(safe-area-inset-bottom))!important;padding:8px 14px!important;display:block!important;border-radius:16px!important;background:#102b25d9!important;box-shadow:none!important}
 body.flight-active #flight-hud .flight-top,body.auto-active #auto-hud .flight-top,body.flight-active #flight-hud .flight-actions,body.auto-active #auto-hud .flight-actions{display:none!important}
 body.flight-active #flight-hud .instruments,body.auto-active #auto-hud .instruments{display:flex!important;flex-wrap:nowrap!important;align-items:center!important;justify-content:space-between!important;height:40px!important;gap:18px!important}
 body.flight-active #flight-hud .instruments>div:first-child,body.auto-active #auto-hud .instruments>div:first-child{height:auto!important;width:auto!important;border:0!important;background:none!important;display:flex!important;flex-direction:row!important;gap:6px!important;align-items:baseline!important}
 body.flight-active #flight-hud .instruments strong,body.auto-active #auto-hud .instruments strong{font-size:24px!important}.instruments>div:first-child span{margin:0!important}
 body.flight-active #flight-controls,body.auto-active #auto-controls{display:none!important}
 #resume-overlay{bottom:calc(91px + env(safe-area-inset-bottom));left:114px;right:72px}#resume-overlay>div{padding:4px}#resume-overlay #resume-ride{font-size:12px}
}
.floating-ride-stick{position:fixed;z-index:30;width:96px;height:96px;transform:translate(-50%,-50%);border:1px solid #d0efdc88;border-radius:50%;background:#143b3030;pointer-events:none;display:grid;place-items:center;box-sizing:border-box}.floating-ride-stick[hidden]{display:none}.floating-ride-stick span{width:38px;height:38px;border-radius:50%;border:1px solid #eefff3b0;background:#ccebd570;box-sizing:border-box}
#mobile-drive-demo{position:fixed;z-index:35;left:50%;top:90px;transform:translateX(-50%);width:min(310px,85vw);padding:16px;background:#12382ff2;border:1px solid #b5ddc966;border-radius:16px;color:#effff6;text-align:center}#mobile-drive-demo[hidden]{display:none}#mobile-drive-demo p{font-size:13px;line-height:1.6;margin:8px 0}#mobile-drive-demo button{min-height:40px;padding:8px 24px;border:1px solid #d3eade66;background:#315947;color:white;border-radius:10px}
@media(max-width:760px){.mobile-vehicle-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:12px}.mobile-vehicle-actions button{min-height:44px!important}body.mobile-tools-open .floating-ride-stick{display:none}}
/* Touch devices use only the floating movement pad, including wide landscape/tablets.
   Stronger than the old landscape rules, regardless of stylesheet load order. */
body.touch-ride-input.flight-active #flight-controls,
body.touch-ride-input.auto-active #auto-controls,
body.touch-ride-input #mobile-stick,
body.touch-ride-input #mobile-ride-actions{display:none!important}
body.mobile-tools-open .floating-ride-stick{display:none!important}

/* Dedicated hold controls remain next to the compact meter at every screen size. */
#flight-hud .flight-quick-controls{position:absolute;bottom:calc(100% + 8px);right:0;display:flex;gap:6px;pointer-events:auto}
#flight-hud .flight-quick-controls button{min-width:72px;min-height:44px;padding:8px 10px;border:1px solid #8ab6a580;border-radius:12px;background:#14372fee;color:#effff6;font:600 12px system-ui;touch-action:none;user-select:none}
#flight-hud .flight-quick-controls button.held{background:#427f69;border-color:#d3ffea}
body.mobile-tools-open #flight-hud .flight-quick-controls{display:none}
