/* Phone layer (see mobile.js). Everything below html.m-phone only applies when the short side of the screen is 500 px or less;
   tablets and desktops keep journey/career/community/roadsafety layouts. Colours follow career.css. */
:root{--sat:env(safe-area-inset-top,0px);--sab:env(safe-area-inset-bottom,0px);--sal:env(safe-area-inset-left,0px);--sar:env(safe-area-inset-right,0px)}
/* Gestures everywhere: no pull-to-refresh, no double-tap zoom, no long-press menus or text selection on the game. */
html,body{overscroll-behavior:none}
html{-webkit-tap-highlight-color:transparent;touch-action:manipulation;-webkit-text-size-adjust:100%;text-size-adjust:100%}
#scene-stage,#scene-stage *,.rail,.rail *,#career-hud,#mission-card,#rs-hud,#rs-card,#m-hud,#m-hud *,.gesture-actions,.gesture-actions *{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
#scene-stage,#scene-stage canvas,#move-stick,.gesture-actions button,#turbo-button{touch-action:none}
#m-hud input,#m-hud textarea{-webkit-user-select:text;user-select:text}
html:not(.m-phone) #m-climb,html:not(.m-phone) #m-descend,html:not(.m-phone) #m-map-tap{display:none}

html.m-phone{--m-nav:56px;--m-stick:112px;--m-act:58px;--m-map:92px;--m-ctrl:calc(var(--sab) + var(--m-nav) + 18px)}
html.m-phone.m-land{--m-stick:104px;--m-map:84px;--m-ctrl:calc(var(--sab) + 12px)}
@media(max-height:620px) and (orientation:portrait){html.m-phone{--m-stick:96px;--m-act:54px;--m-map:76px}}
html.m-phone,html.m-phone body{height:100%;overflow:hidden}
html.m-phone body.world-live{position:fixed;inset:0}

/* ---------- full-bleed 3D view ---------- */
.m-phone .world-live .scene-card.expanded{inset:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;background:#163d34}
.m-phone .world-live .scene-card.expanded>header,.m-phone .world-live .world-overlay,.m-phone .world-live #local-journey,.m-phone .world-live #gesture-help,.m-phone .world-live .map-top,.m-phone .world-live #career-hud,.m-phone .world-live .map-layers,.m-phone .world-live #locate-button,.m-phone .world-live .map-watermark{display:none!important}

/* ---------- HUD frame ---------- */
#m-hud{display:none}
.m-phone #m-hud{position:fixed;z-index:1300;left:0;right:0;top:0;bottom:calc(var(--m-ctrl) + var(--m-stick) + 44px);padding:calc(var(--sat) + 6px) calc(var(--sar) + 8px) 0 calc(var(--sal) + 8px);display:flex;flex-direction:column;gap:6px;pointer-events:none;font-family:inherit}
.m-phone.m-land #m-hud{bottom:calc(var(--sab) + 58px)}
#m-top{display:flex;align-items:center;gap:6px;min-height:44px;flex:none}
#m-top>*,#m-lane>*,#m-left>*,#m-right>*,#m-toasts>*,#m-more{pointer-events:auto}
.m-spacer{flex:1 1 auto;pointer-events:none!important}
#m-mid{flex:1;min-height:0;display:grid;gap:6px;align-content:start;overflow:hidden;grid-template-columns:auto minmax(0,1fr);grid-template-areas:"lane lane" "left right" "toasts toasts"}
.m-land #m-mid{grid-template-columns:auto minmax(0,1fr) auto;grid-template-areas:"left lane right" "left toasts right"}
#m-lane{grid-area:lane;display:flex;flex-direction:column;gap:6px;min-width:0}
.m-land #m-lane{justify-self:center;width:min(460px,100%)}
#m-left{grid-area:left;min-width:0}
#m-right{grid-area:right;justify-self:end;min-width:0}
#m-toasts{grid-area:toasts;display:flex;flex-direction:column;align-items:center;gap:6px;min-width:0}
#m-lane:empty,#m-toasts:empty,#m-right:empty{display:none}
#m-lane>*,#m-left>*,#m-right>*,#m-toasts>*{position:relative!important;inset:auto!important;transform:none!important;margin:0!important;box-sizing:border-box}
#m-lane>*,#m-right>*,#m-toasts>*{z-index:auto!important}
.m-phone body.world-live #m-left #geo-map:not(.map-fullscreen){z-index:0!important}

/* top bar chips */
.m-phone #m-top>button,.m-phone #m-more>button{display:flex;align-items:center;justify-content:center;gap:6px;min-height:44px;min-width:44px;height:auto;padding:0 12px;margin:0;border-radius:999px;border:1px solid #ffffff40;background:#173f35ee;color:#f0f5df;font-family:inherit;font-size:13px;font-weight:700;line-height:1.1;box-shadow:0 4px 14px #06201a55;cursor:pointer;white-space:nowrap;flex:none}
.m-phone #m-top>.m-icon{padding:0;width:44px;font-size:22px}
.m-phone #m-top #career-level{width:auto;justify-content:center}
.m-phone #m-top #career-level b{background:#dbea9b;color:#173f35;border-radius:999px;padding:3px 7px;font-size:12px}
.m-phone #m-top .xpbar{width:38px;height:6px}
.m-phone #m-top #career-xptext{display:none}
.m-phone #m-top #wallet-button{background:#fff3d9;color:#725831;border:2px solid #fffbe9;padding:0 12px;font-size:14px}
.m-phone #m-top #wallet-button svg,.m-phone #m-top #wallet-button small{display:none}
.m-phone #m-top #hud-settings{font-size:0;padding:0;width:44px}
.m-phone #m-top #hud-settings::before{content:'⚙';font-size:22px;line-height:1}
.m-phone body.controls-open #m-top #hud-settings{background:#e7b43c;color:#2b2208}
.m-phone #m-top #career-jobs{background:#e7b43c;color:#2b2208;border-color:#fff3c4}
.m-unread #m-more-btn{position:relative}
.m-unread #m-more-btn::after{content:'';position:absolute;top:6px;right:6px;width:10px;height:10px;border-radius:50%;background:#e2483a;border:2px solid #fff}
@media(max-width:340px){.m-phone #m-top #wallet-button{font-size:12.5px;padding:0 9px}.m-phone #m-top .xpbar{width:28px}}

/* "more" menu */
#m-more{display:none}
.m-phone .m-more-open #m-more{display:flex;flex-direction:column;gap:6px;position:fixed;top:calc(var(--sat) + 56px);right:calc(var(--sar) + 8px);width:min(270px,calc(100vw - 16px));max-height:calc(100dvh - var(--sat) - 64px - var(--sab));overflow:auto;padding:8px;border-radius:18px;background:#fff4dff7;border:2px solid #fffbee;box-shadow:0 14px 40px #06201a66;z-index:20}
.m-phone #m-more>button{width:100%;justify-content:flex-start;border-radius:12px;font-size:14px}
.m-phone #m-more #social-button{margin:0!important;font-size:14px!important;width:100%!important;min-height:44px!important;padding:0 12px!important;border-radius:12px!important;background:#77924d!important;color:#fff9df!important}
.m-phone #m-more #town-meter{position:static;transform:none;min-height:44px}
.m-phone #m-more #town-meter .town-bar{display:block;width:70px}
.m-phone #m-more #rs-hud-button{display:flex}
.m-phone #m-more #career-coco::after{content:'golden coconuts';font-weight:500;opacity:.8}
.m-phone #m-more #town-meter::after{content:'town happiness';font-weight:500;opacity:.8}
.m-phone #m-more #rs-hud-button span::after{content:' · licence & lessons';font-weight:500;opacity:.8}

/* ---------- mini-map: small and round, tap for the full map ---------- */
.m-phone body.world-live #geo-map:not(.map-fullscreen){position:relative!important;inset:auto!important;top:auto!important;left:auto!important;right:auto!important;bottom:auto!important;width:var(--m-map)!important;height:var(--m-map)!important;border-radius:50%!important;border:3px solid #fff1d4!important;box-shadow:0 4px 14px #06201a66!important;overflow:hidden;z-index:auto}
.m-phone body.world-live #geo-map:not(.map-fullscreen) .leaflet-control-container,.m-phone body.world-live #geo-map:not(.map-fullscreen) .map-expand-btn{display:none!important}
#m-map-tap{position:absolute;inset:0;z-index:1100;border:0;padding:0;margin:0;background:transparent;border-radius:50%;cursor:pointer}
#m-map-tap::after{content:'⛶';position:absolute;right:50%;bottom:4px;transform:translateX(50%);font-size:11px;line-height:1;background:#173f35dd;color:#fff;border-radius:8px;padding:2px 5px}
.m-phone #geo-map.map-fullscreen #m-map-tap{display:none}
.m-phone body.world-live #geo-map.map-fullscreen .map-expand-btn{top:calc(var(--sat) + 10px)!important;right:calc(var(--sar) + 10px)!important;min-height:44px;padding:0 16px;font-size:14px;border-radius:12px}
.m-phone body.world-live #geo-map.map-fullscreen .leaflet-top{top:calc(var(--sat) + 64px)!important}
.m-phone body.world-live #geo-map.map-fullscreen .leaflet-right{right:calc(var(--sar) + 10px)!important}
.m-phone body.world-live #geo-map.map-fullscreen .leaflet-left{left:calc(var(--sal) + 10px)!important}
.m-phone body.world-live #geo-map.map-fullscreen .leaflet-bottom{bottom:var(--sab)!important}
.m-phone body.world-live #geo-map.map-fullscreen .leaflet-control-zoom a{width:44px;height:44px;line-height:44px;font-size:22px}
.m-phone .m-mapfull #m-top,.m-phone .m-mapfull #m-lane,.m-phone .m-mapfull #m-right,.m-phone .m-mapfull #m-toasts,.m-phone .m-mapfull #m-more,.m-phone .m-mapfull .rail,.m-phone .m-mapfull #m-sheet,
.m-phone .m-mapfull #move-stick,.m-phone .m-mapfull .gesture-actions,.m-phone .m-mapfull #interaction-text{visibility:hidden!important}

/* ---------- job card and lesson card: one slim line, tap to open ---------- */
.m-phone #m-lane #mission-card,.m-phone #m-lane #rs-card{width:100%!important;min-width:0!important;max-width:none!important;top:auto!important;left:auto!important;padding:4px 4px 6px 10px;border-radius:14px;box-shadow:0 6px 18px #06201a55}
.m-phone #m-lane #mission-card:not(.m-open):not([hidden]),.m-phone #m-lane #rs-card:not(.m-open):not([hidden]){display:grid;grid-template-columns:auto minmax(0,1fr) auto auto auto auto;align-items:center;column-gap:7px;min-height:44px;cursor:pointer}
.m-phone #mission-card:not(.m-open) .mission-top,.m-phone #mission-card:not(.m-open) .mission-row,.m-phone #rs-card:not(.m-open) .rs-card-top,.m-phone #rs-card:not(.m-open) .rs-card-row{display:contents}
.m-phone #mission-card:not(.m-open) #mission-icon,.m-phone #rs-card:not(.m-open) #rs-card-icon{order:1;font-size:18px}
.m-phone #mission-card:not(.m-open) .mission-top>div,.m-phone #rs-card:not(.m-open) .rs-card-top>div{order:2;min-width:0}
.m-phone #mission-card:not(.m-open) .eyebrow,.m-phone #rs-card:not(.m-open) .eyebrow{display:none}
.m-phone #mission-card:not(.m-open) #mission-text,.m-phone #rs-card:not(.m-open) #rs-card-text{margin:0;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.m-phone #mission-card:not(.m-open) #mission-arrow,.m-phone #rs-card:not(.m-open) #rs-card-arrow{order:3;width:26px;height:26px;font-size:13px}
.m-phone #mission-card:not(.m-open) #mission-dist,.m-phone #rs-card:not(.m-open) #rs-card-dist{order:4;font-size:13px;font-weight:700;white-space:nowrap}
.m-phone #mission-card:not(.m-open) #mission-time{order:5;margin:0;font-size:13px;font-weight:700;white-space:nowrap}
.m-phone #rs-card:not(.m-open) #rs-card-info{order:5;margin:0;font-size:11px;max-width:84px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.m-phone #mission-card:not(.m-open) #mission-cancel,.m-phone #rs-card:not(.m-open) #rs-card-cancel{order:6}
.m-phone #mission-card:not(.m-open) #mission-warn,.m-phone #rs-card:not(.m-open) #rs-card-extra{order:7;grid-column:1/-1;margin:4px 6px 0 0}
.m-phone #mission-card:not(.m-open) .progress,.m-phone #rs-card:not(.m-open) .progress{position:absolute;left:12px;right:12px;bottom:2px;height:3px}
.m-phone #m-lane #mission-cancel,.m-phone #m-lane #rs-card-cancel{width:44px;height:44px;font-size:20px;background:transparent;flex-shrink:0}
.m-phone #m-lane #mission-card.m-open,.m-phone #m-lane #rs-card.m-open{padding:8px 4px 8px 12px}
.m-phone #m-lane .rs-look button{min-height:44px;padding:8px}
.m-phone #m-lane .rs-look small{font-size:11px}

/* helmet / seatbelt, MVD stop, race challenge, trip bar and the full-screen offer as compact banners */
.m-phone #m-lane .rs-modal{width:100%!important;max-height:none;padding:6px 8px 6px 12px;gap:8px;border-radius:14px;animation:none;align-items:center;box-shadow:0 6px 18px #06201a55}
.m-phone #m-lane #rs-gear .rs-gear-art,.m-phone #m-lane #rs-gear .eyebrow,.m-phone #m-lane #rs-gear p{display:none}
.m-phone #m-lane #rs-gear>div{display:flex;align-items:center;gap:8px;flex:1;min-width:0}
.m-phone #m-lane #rs-gear h3{flex:1;min-width:0;margin:0;font-size:14px}
.m-phone #m-lane .rs-primary{margin:0;width:auto;min-height:44px;padding:8px 12px;font-size:13.5px;box-shadow:0 3px 0 #b88a1f;white-space:nowrap}
.m-phone #m-lane #rs-gear .rs-primary kbd{display:none}
.m-phone #m-lane #rs-stop .rs-officer,.m-phone #m-lane #rs-stop .eyebrow,.m-phone #m-lane #rs-stop p.rs-ml{display:none}
.m-phone #m-lane #rs-stop h3{font-size:13.5px;margin:0 0 4px}
.m-phone #m-lane #rs-stop p{font-size:12px;margin:2px 0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.m-phone #m-lane #rs-stop .rs-rule{margin:4px 0;padding:5px 8px}
.m-phone #m-lane #rs-stop .rs-challan{margin-top:4px;padding:4px 8px}
.m-phone #m-lane #rs-stop .rs-primary{width:100%;margin-top:6px}
.m-phone #m-lane #duel-card{width:100%!important;padding:8px 10px;animation:none}
.m-phone #m-lane #duel-card span{margin:2px 0 6px}
.m-phone #m-lane #duel-card button{min-height:44px;padding:8px}
.m-phone #m-lane #trip-bar{width:100%!important;right:auto!important;bottom:auto!important;padding:6px 8px 6px 12px}
.m-phone #m-lane #trip-bar .trip-copy p,.m-phone #m-lane #trip-bar .trip-icon{display:none}
.m-phone #m-lane #trip-bar button{min-height:44px;min-width:44px}
#m-offer{display:flex;align-items:center;gap:6px;background:#173f35f2;color:#f5f8e8;border:1px solid #dbea9b80;border-radius:14px;padding:3px 3px 3px 12px;font-size:13px;font-weight:700;box-shadow:0 6px 18px #06201a55}
#m-offer[hidden]{display:none}
#m-offer span{flex:1;min-width:0}
#m-offer button{min-height:44px;min-width:44px;border:0;border-radius:11px;background:#e7b43c;color:#2b2208;font:inherit;font-weight:800;padding:0 12px;cursor:pointer}
#m-offer #m-offer-no{background:transparent;color:#f5f8e8;font-size:20px;padding:0}

/* ---------- toasts: one small line under the map, never over the controls ---------- */
.m-phone #m-toasts #career-toast{min-width:0;max-width:100%;width:max-content;padding:6px 12px;border-radius:12px;transition:none;opacity:1}
.m-phone #m-toasts #career-toast:not(.show){display:none}
.m-phone #m-toasts #career-toast strong{font-size:13px}
.m-phone #m-toasts #career-toast span{font-size:11.5px;margin-top:1px}
.m-phone #m-toasts #career-banner{animation:none}
.m-phone #m-toasts #career-banner[hidden]{display:none}
.m-phone #m-toasts #career-banner strong{font-size:28px;-webkit-text-stroke:1px #3a2a00;text-shadow:0 3px 0 #3a2a00}
.m-phone #m-toasts #career-banner span{margin-top:4px;font-size:13px;padding:5px 12px}
.m-phone #m-toasts #notice{max-width:100%;width:max-content;padding:7px 12px;font-size:11.5px;transition:none}
.m-phone #m-toasts #notice:empty,.m-phone #m-toasts #notice[style*="opacity: 0"],.m-phone .m-toast-busy #m-toasts #notice,.m-phone .m-toast-busy #m-toasts #map-status{display:none}
.m-phone #m-toasts #map-status{width:auto;max-width:100%}
.m-phone #m-toasts #map-status[hidden]{display:none}

/* speed limit + Safe Driver score */
.m-phone #m-right #rs-hud{flex-wrap:wrap;max-width:170px;min-height:44px;padding:3px 8px 3px 3px}
.m-phone body.rs-walking:not(.rs-driving) #rs-hud{display:none!important}
.m-phone #m-right .rs-msg{position:static;display:none;flex-basis:100%;white-space:normal;transform:none;font-size:11px;padding:3px 8px}
.m-phone #m-right .rs-msg.show{display:block}

/* ---------- bottom: joystick left, only the useful action buttons right ---------- */
.m-phone .world-live .expanded #move-stick{left:calc(var(--sal) + 14px)!important;bottom:var(--m-ctrl)!important;width:var(--m-stick)!important;height:var(--m-stick)!important;top:auto!important}
.m-phone .world-live .expanded #move-stick small{display:none}
.m-phone .world-live .expanded .gesture-actions{display:flex!important;flex-direction:row-reverse;flex-wrap:wrap-reverse;align-content:flex-start;gap:8px;width:calc(var(--m-act) * 2 + 8px)!important;right:calc(var(--sar) + 12px)!important;bottom:var(--m-ctrl)!important;left:auto!important;top:auto!important;grid-template-columns:none!important}
.m-phone .world-live .gesture-actions button{width:var(--m-act)!important;min-width:0!important;height:52px!important;min-height:52px!important;padding:2px!important;margin:0!important;border-radius:16px!important;font-size:11px!important;line-height:1.1;flex-direction:column;gap:1px;position:static!important;flex:none}
.m-phone .world-live .gesture-actions #gesture-enter,.m-phone .world-live .gesture-actions #turbo-button{width:100%!important;flex-direction:row;font-size:13px!important}
.m-phone .world-live .gesture-actions #gesture-brake{order:1}
.m-phone .world-live .gesture-actions #gesture-horn{order:2}
.m-phone .world-live .gesture-actions #gesture-enter{order:3}
.m-phone .world-live .gesture-actions #turbo-button{order:4;background:#d9480f!important;color:#fff!important;border-color:#ffe9a6!important}
.m-phone .world-live .gesture-actions #turbo-button:disabled{background:#6b5a4d!important}
.m-phone .world-live .gesture-actions #gesture-switch{order:5}
.m-phone .world-live .gesture-actions #m-climb{order:6}
.m-phone .world-live .gesture-actions #m-descend{order:7}
.m-phone .world-live .gesture-actions #gesture-view,.m-phone .world-live .gesture-actions #gesture-reset,.m-phone .world-live .gesture-actions [hidden],
.m-phone body:not(.m-ride) .gesture-actions #gesture-brake,.m-phone body:not(.m-ride) .gesture-actions #gesture-horn,
.m-phone body:not(.m-train) .gesture-actions #gesture-switch,.m-phone body:not(.m-fly) .gesture-actions .m-hold,
.m-phone body:not(.m-ride):not(.m-near) .gesture-actions #gesture-enter{display:none!important}
.m-phone .world-live .gesture-actions .m-hold{background:#1d4f86e6!important;color:#fff!important}
.m-phone .world-live .expanded #interaction-text{left:calc(var(--sal) + 14px)!important;right:auto!important;bottom:calc(var(--m-ctrl) + var(--m-stick) + 8px)!important;transform:none!important;width:auto!important;max-width:calc(100% - var(--sal) - var(--sar) - var(--m-act) * 2 - 48px)!important;padding:6px 12px!important;font-size:11.5px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;box-sizing:border-box}
.m-phone.m-land .world-live .expanded #interaction-text{left:50%!important;transform:translateX(-50%)!important;bottom:calc(var(--sab) + 12px)!important;max-width:calc(100% - var(--sal) - var(--sar) - var(--m-act) * 4 - 80px)!important}

/* ---------- bottom nav (portrait) / menu button (landscape) ---------- */
.m-phone .world-live .rail{position:fixed!important;top:auto!important;left:calc(var(--sal) + 8px)!important;right:calc(var(--sar) + 8px)!important;bottom:calc(var(--sab) + 6px)!important;width:auto!important;height:var(--m-nav)!important;padding:4px!important;flex-direction:row!important;z-index:1250;border-radius:18px!important}
.m-phone .world-live .rail .nav-items{flex-direction:row;gap:2px;width:100%}
.m-phone .world-live .rail .nav-button{min-height:46px;min-width:44px;padding:3px 2px;flex:1}
.m-phone .world-live .rail .nav-button span{font-size:10px}
.m-phone .world-live .rail .sources-button,.m-phone .world-live .rail .brandmark{display:none!important}
.m-phone.m-land .world-live .rail{display:none!important}
.m-phone.m-land body.world-live.m-nav-open .rail{display:flex!important;flex-direction:column!important;top:calc(var(--sat) + 56px)!important;bottom:auto!important;right:auto!important;width:96px!important;height:auto!important;max-height:calc(100dvh - var(--sat) - 64px - var(--sab));overflow:auto;z-index:1400}
.m-phone.m-land body.world-live.m-nav-open .rail .nav-items{flex-direction:column}
.m-phone.m-land body.world-live.m-nav-open .rail .nav-button{flex:none;min-height:48px}
.m-phone:not(.m-land) #m-menu{display:none!important}

/* ---------- settings sheet (the old footer row, vehicles and flight pad) ---------- */
#m-sheet{display:none}
.m-phone body.controls-open #m-sheet{display:flex;flex-direction:column;gap:10px;position:fixed;z-index:1450;left:0;right:0;bottom:0;max-height:calc(100dvh - var(--sat) - 58px);overflow:auto;overscroll-behavior:contain;padding:10px calc(var(--sar) + 12px) calc(var(--sab) + 14px) calc(var(--sal) + 12px);background:#fff4df;color:#4d5639;border-radius:20px 20px 0 0;box-shadow:0 -10px 40px #06201a66;box-sizing:border-box}
.m-phone.m-land body.controls-open #m-sheet{left:auto;top:calc(var(--sat) + 56px);width:min(440px,72vw);max-height:none;border-radius:20px 0 0 0}
#m-sheet>*{flex:none!important;min-height:auto!important;max-height:none!important}
#m-sheet>header{display:flex;align-items:center;justify-content:space-between}
#m-sheet>header b{font-size:16px;color:#3c5832}
#m-sheet-close{width:44px;height:44px;border:0;border-radius:50%;background:#e8edde;color:#193d32;font-size:24px;cursor:pointer}
#m-sheet-quick{display:grid;grid-template-columns:1fr 1fr;gap:6px}
#m-sheet-quick button[hidden]{display:none}
#m-sheet button{min-height:44px;font-size:13px;font-family:inherit}
#m-sheet-quick button{border:1px solid #d6ba7c;background:#f5dba8;color:#594b2e;border-radius:11px;font-weight:700;cursor:pointer}
.m-phone #m-sheet>footer{position:static!important;inset:auto!important;transform:none!important;display:flex!important;flex-wrap:wrap;gap:6px;width:auto!important;max-width:none!important;max-height:none!important;overflow:visible!important;padding:0!important;margin:0!important;background:none!important;border:0!important;box-shadow:none!important}
.m-phone #m-sheet>footer button{flex:1 1 40%;min-height:44px!important;font-size:13px!important;padding:6px 10px!important}
.m-phone #m-sheet>footer [hidden],.m-phone #m-sheet>footer small{display:none!important}
.m-phone #m-sheet .world-vehicles{position:static!important;inset:auto!important;display:flex!important;flex-wrap:wrap;gap:6px;width:auto!important;max-width:none!important;max-height:none!important;min-height:0!important;overflow:visible!important;padding:0!important;margin:0!important;background:none!important;border:0!important;box-shadow:none!important}
.m-phone #m-sheet .world-vehicles::before{flex-basis:100%;font-size:11px;letter-spacing:.08em;font-weight:700;color:#7b7852}
.m-phone #m-sheet .world-vehicles button{flex:1 1 30%;min-height:44px;font-size:12.5px;white-space:normal;background:#234b3d!important;color:#f5f8e6!important;border:0!important;border-radius:11px!important;opacity:1!important}
.m-phone #m-sheet #scene-controls{position:static!important;display:flex!important;width:auto!important;max-width:none!important;font-size:0!important;padding:0!important;margin:0!important;background:none!important;border:0!important}
.m-phone #m-sheet #scene-controls .touch-walk{display:flex;flex-wrap:wrap;gap:6px;width:100%;margin:0}
.m-phone #m-sheet #scene-controls button{flex:1 1 22%;min-height:44px;font-size:13px!important;background:#173f35!important;color:#fff!important;border:0!important;border-radius:11px!important}
.m-phone #m-sheet #scene-controls #close-scene{display:none}
.m-phone body.controls-open #m-mid,.m-phone body.controls-open #move-stick,.m-phone body.controls-open .gesture-actions,.m-phone body.controls-open #interaction-text,.m-phone body.controls-open .rail{visibility:hidden!important}

/* ---------- drawers and dialogs: full-height sheets with a big close button ---------- */
.m-phone body.m-modal #m-hud,.m-phone body.m-modal #m-sheet,.m-phone body.m-modal .world-live .rail,.m-phone body.m-modal.world-live .rail,.m-phone body.m-modal #move-stick,.m-phone body.m-modal .gesture-actions,.m-phone body.m-modal #interaction-text{visibility:hidden!important}
.m-phone #drawer:not([hidden]){position:fixed!important;inset:0!important;width:auto!important;max-width:none!important;border:0!important;border-radius:0!important;padding:calc(var(--sat) + 62px) calc(var(--sar) + 16px) calc(var(--sab) + 20px) calc(var(--sal) + 16px)!important;z-index:1500;overscroll-behavior:contain;box-sizing:border-box}
.m-phone #close-drawer{position:fixed!important;top:calc(var(--sat) + 8px)!important;right:calc(var(--sar) + 10px)!important;width:44px!important;height:44px!important;font-size:26px!important;z-index:1510;background:#193d32!important;color:#fff!important;box-shadow:0 4px 14px #06201a55}
.m-phone .world-live .sidebar.mobile-open{position:fixed!important;inset:0!important;width:auto!important;border-radius:0!important;border:0!important;z-index:1500;padding:var(--sat) var(--sar) var(--sab) var(--sal)!important;box-sizing:border-box}
.m-phone #close-places{width:44px;height:44px;font-size:26px}
.m-phone #voice-panel:not([hidden]){inset:0!important;width:auto!important;max-height:none!important;border-radius:0!important;border:0!important;padding:calc(var(--sat) + 14px) calc(var(--sar) + 16px) calc(var(--sab) + 20px) calc(var(--sal) + 16px)!important;box-sizing:border-box;overscroll-behavior:contain}
.m-phone #voice-panel #voice-close{width:44px;height:44px;font-size:24px}
.m-phone #community-modal{padding:calc(var(--sat) + 8px) calc(var(--sar) + 8px) calc(var(--sab) + 8px) calc(var(--sal) + 8px);place-items:end center}
.m-phone #community-modal .cm-card{width:100%;max-width:520px;max-height:100%;box-sizing:border-box;position:relative}
#m-cm-close{float:right;position:sticky;top:0;width:44px;height:44px;margin:-6px -6px 0 8px;border:0;border-radius:50%;background:#193d3218;color:#193d32;font-size:24px;cursor:pointer;z-index:2}
#m-cm-close[hidden]{display:none}
.m-phone #hp-overlay,.m-phone #hp-modal{padding:calc(var(--sat) + 8px) calc(var(--sar) + 8px) calc(var(--sab) + 8px) calc(var(--sal) + 8px)}
.m-phone .hp-card{width:100%;max-height:calc(100dvh - var(--sat) - var(--sab) - 16px);box-sizing:border-box}
.m-phone .hp-card.hp-dash{min-height:calc(100dvh - var(--sat) - var(--sab) - 16px)}
.m-phone .hp-x{position:sticky;float:right;top:0;right:auto;width:44px;height:44px;font-size:24px;margin:-10px -8px 0 8px;z-index:3;background:#193d32;color:#fff;box-shadow:0 4px 14px #06201a55}
.m-phone #drawer .career-tabs button,.m-phone .hp-card button,.m-phone #drawer .job-card button{min-height:44px}

/* start screens on short landscape phones: let them scroll instead of cutting off */
.m-phone.m-land .character-setup,.m-phone.m-land .arrival-overlay{overflow:auto;align-items:flex-start}
