/* A compact touch deck leaves the scene the majority of a phone viewport. */
@media(max-width:900px){
 :is(body.fsc-game-view,body.fsc-mall-viewport,body.fsc-store-controller-ready,body.fsc-ship-controller-ready) :is(#fsc-park-controller,#touch,#fsc-store-controller,#fsc-ship-controller).fsc-pad{
  --fsc-control:clamp(44px,calc((100vw - 42px)/6),56px)!important;width:100%!important;max-height:min(220px,38dvh)!important;margin:0!important;flex:0 0 auto!important;border-radius:0;overflow:auto;box-sizing:border-box;
 }
 :is(#fsc-park-controller,#touch,#fsc-store-controller,#fsc-ship-controller).fsc-pad .fsc-pad-body{grid-template-columns:var(--fsc-control) minmax(0,1fr) var(--fsc-control)!important;grid-template-rows:50px calc(var(--fsc-control) + 6px)!important;gap:3px!important;padding:3px 6px 7px!important;border-radius:14px!important}
 :is(#fsc-park-controller,#touch,#fsc-store-controller,#fsc-ship-controller).fsc-pad .fsc-pad-screen{height:50px!important;grid-template-columns:minmax(0,1fr) minmax(138px,.9fr)!important;grid-template-rows:24px 15px!important;padding:4px 6px!important;gap:0 4px!important;grid-column:1/-1;grid-row:1}
 :is(#fsc-park-controller,#touch,#fsc-store-controller,#fsc-ship-controller).fsc-pad .fsc-pad-screen>small,:is(#fsc-park-controller,#touch,#fsc-store-controller,#fsc-ship-controller).fsc-pad .fsc-pad-map{display:none!important}
 :is(#fsc-park-controller,#touch,#fsc-store-controller,#fsc-ship-controller).fsc-pad .fsc-pad-location{grid-row:1!important;font-size:12px!important;line-height:22px}
 :is(#fsc-park-controller,#touch,#fsc-store-controller,#fsc-ship-controller).fsc-pad .fsc-pad-coordinates{grid-row:2!important;font-size:9px!important;line-height:13px}
 :is(#fsc-park-controller,#touch,#fsc-store-controller,#fsc-ship-controller).fsc-pad .fsc-pad-feedback{position:absolute!important;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 :is(#fsc-park-controller,#touch,#fsc-store-controller,#fsc-ship-controller).fsc-pad .fsc-pad-screen>div{grid-column:2!important;grid-row:1/3!important;gap:3px!important}
 :is(#fsc-park-controller,#touch,#fsc-store-controller,#fsc-ship-controller).fsc-pad .fsc-pad-screen button{min-height:36px!important;font-size:9px!important;padding:2px!important;min-width:0}
 :is(#fsc-park-controller,#touch,#fsc-store-controller,#fsc-ship-controller).fsc-pad .fsc-stick{width:var(--fsc-control)!important;height:var(--fsc-control)!important;grid-row:2;align-self:center}
 :is(#fsc-park-controller,#touch,#fsc-store-controller,#fsc-ship-controller).fsc-pad .fsc-stick span{width:76%!important;height:76%!important}
 :is(#fsc-park-controller,#touch,#fsc-store-controller,#fsc-ship-controller).fsc-pad .fsc-pad-actions{grid-column:2;grid-row:2;grid-template-columns:repeat(4,var(--fsc-control))!important;gap:3px!important;justify-self:center}
 :is(#fsc-park-controller,#touch,#fsc-store-controller,#fsc-ship-controller).fsc-pad .fsc-pad-actions button{width:var(--fsc-control)!important;height:var(--fsc-control)!important;font-size:18px!important;padding:1px!important;min-height:0!important}
 :is(#fsc-park-controller,#touch,#fsc-store-controller,#fsc-ship-controller).fsc-pad .fsc-pad-actions span{font-size:8px!important}
 :is(#fsc-park-controller,#touch,#fsc-store-controller,#fsc-ship-controller).fsc-pad .fsc-pad-shoulders button{min-height:26px!important;height:26px;font-size:9px}
 :is(#fsc-park-controller,#touch,#fsc-store-controller,#fsc-ship-controller).fsc-pad .fsc-pad-fold{min-height:24px!important;margin:0 auto!important;padding:1px 10px!important}
 #fsc-park-controller .fsc-train-actions{padding:0!important;margin:0!important;gap:3px!important}
 #fsc-park-controller .fsc-train-actions button{min-height:36px!important;padding:3px 8px!important;font-size:11px!important}
 body.fsc-game-view #world .park-top-hud{inset:6px 8px auto!important;display:flex!important;align-items:flex-start;justify-content:space-between;gap:5px}
 body.fsc-game-view #world .live-indicator{font-size:9px;padding:5px 7px;max-width:55%;line-height:1.2}
 .fsc-mobile-world-options{position:relative;background:#102236ed;border:1px solid #76d9cb;border-radius:7px;max-width:52vw;font:11px system-ui;pointer-events:auto}
 .fsc-mobile-world-options>summary{padding:8px;cursor:pointer;min-height:32px;box-sizing:border-box}
 .fsc-mobile-world-options[open]{max-height:65dvh;overflow:auto}
 .fsc-mobile-world-options .park-top-actions{display:flex!important;flex-direction:column!important;flex-wrap:nowrap!important;gap:4px!important;padding:5px!important;overflow:visible!important}
 .fsc-mobile-world-options .park-top-actions>*{font-size:11px!important;min-height:36px!important;padding:6px!important;white-space:normal!important}
 .fsc-mobile-world-options #world-explore-menu{position:relative!important;inset:auto!important;border:0!important;max-width:100%!important;font-size:11px!important;padding:4px!important}
 body.fsc-game-view #world .map-wrap{bottom:8px;right:8px}
}
@media(max-width:900px) and (max-height:520px){
 :is(body.fsc-game-view,body.fsc-mall-viewport,body.fsc-store-controller-ready,body.fsc-ship-controller-ready) :is(#fsc-park-controller,#touch,#fsc-store-controller,#fsc-ship-controller).fsc-pad{--fsc-control:44px!important;max-height:144px!important}
 :is(#fsc-park-controller,#touch,#fsc-store-controller,#fsc-ship-controller).fsc-pad .fsc-pad-shoulders{display:none!important}
 :is(#fsc-park-controller,#touch,#fsc-store-controller,#fsc-ship-controller).fsc-pad .fsc-pad-body{grid-template-rows:36px 46px!important;padding:1px 6px 3px!important;gap:1px!important}
 :is(#fsc-park-controller,#touch,#fsc-store-controller,#fsc-ship-controller).fsc-pad .fsc-pad-screen{height:36px!important;grid-template-rows:16px 12px!important;padding:2px 6px!important}
 :is(#fsc-park-controller,#touch,#fsc-store-controller,#fsc-ship-controller).fsc-pad .fsc-pad-screen button{min-height:30px!important}
 #fsc-park-controller .fsc-train-actions button{min-height:32px!important;height:32px!important}
}

/* Object information is confined to the scene; the controller is a separate sibling row. */
#scene-region{position:fixed;inset:0;min-width:0;min-height:0;isolation:isolate}
body.fsc-store-controller-ready #scene-region{grid-area:scene;position:relative;inset:auto;overflow:hidden}
body.fsc-store-controller-ready #scene-region>#scene{position:absolute!important;inset:0!important;width:100%;height:100%!important;min-height:0!important}
body.fsc-store-controller-ready #scene-region>#modal{position:absolute;inset:0;z-index:25;padding:8px;align-items:center;overflow:hidden}
body.fsc-store-controller-ready #scene-region>#modal .modal-card{max-height:100%;min-height:0;width:min(620px,100%);border-radius:12px}
body.fsc-store-controller-ready #scene-region>#modal .modal-head{padding:10px 12px;flex:0 0 auto;gap:8px}
body.fsc-store-controller-ready #scene-region>#modal .modal-head h2{font-size:18px;margin:3px 0 0}
body.fsc-store-controller-ready #scene-region>#modal #modalBody{min-height:0;flex:1 1 auto;overflow:auto;padding:10px 12px}
body.fsc-store-controller-ready #scene-region>#modal #modalActions{flex:0 1 auto;max-height:32%;overflow:auto;padding:8px 12px}
body.fsc-store-controller-ready #fsc-store-controller{position:relative!important;inset:auto!important;transform:none!important;grid-area:pad;z-index:1}
body.fsc-store-controller-ready.headset-vr #scene-region{position:fixed;inset:0;height:100dvh;width:100vw}
@media(max-width:900px){
 body.fsc-store-controller-ready .top{padding:4px 8px;gap:4px;align-items:center}
 body.fsc-store-controller-ready .top .identity img{width:28px;height:28px}
 body.fsc-store-controller-ready .top .identity strong{font-size:12px;letter-spacing:.04em}
 body.fsc-store-controller-ready .top .identity small,body.fsc-store-controller-ready .top .status,body.fsc-store-controller-ready .footer-strip{display:none}
 body.fsc-store-controller-ready .top>.soft{padding:5px 7px;font-size:10px;min-height:30px}
 body.fsc-store-controller-ready #waypoints{padding:3px;gap:4px}
 body.fsc-store-controller-ready #waypoints>*{min-height:32px;padding:5px 8px;font-size:10px}
 body.fsc-store-controller-ready .walkbar{margin:0 auto;padding:2px;gap:3px;max-height:38px}
 body.fsc-store-controller-ready .walkbar button{padding:5px 7px;font-size:10px;min-height:30px;white-space:nowrap}
}
