/* Shared lunar lobby controls. Reserve the lower corners for movement and jump. */
#starport .sp-moon-controls{position:absolute;right:16px;bottom:92px;z-index:12;display:flex;align-items:center;gap:8px;pointer-events:auto}
#starport .sp-moon-controls button{width:54px;height:54px;min-width:44px;padding:3px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;border-radius:50%;border:1px solid #b8d7e380;background:#0b1c30e8;color:#edfbff;font-size:25px;line-height:1.1;box-shadow:0 4px 12px #0004;touch-action:none;user-select:none;cursor:pointer}
#starport .sp-moon-controls button span{font:800 10px Nunito,system-ui;letter-spacing:.04em}
#starport #spJump{width:66px;height:66px;background:#d4f4ee;color:#163f46;border:3px solid #fff9;font-size:31px}
#starport #spJump:active{transform:scale(.94);background:#fff}
#starport .sp-look-guide{position:absolute;left:50%;bottom:16px;transform:translateX(-50%);color:#dce9ed;background:#0b1829b8;border:1px solid #ffffff1a;border-radius:20px;padding:5px 12px;font:600 11px Nunito,system-ui;pointer-events:none;white-space:nowrap;z-index:4}
#starport .sp-bay-label{max-width:210px;border-radius:12px;background:#081827d9;backdrop-filter:blur(6px);box-shadow:0 5px 16px #0004}
#starport .sp-portal-label{border-color:var(--bay)}#starport .sp-portal-label small{color:var(--bay)}
#starport .sp-world-note{color:#e1e4ef}#starport .sp-park-hud{background:linear-gradient(120deg,#0b1829c9,#0b182930);padding:13px 17px;border:1px solid #c5ddeb20;border-radius:17px;max-width:280px;pointer-events:none}#starport .sp-park-hud h2{font-size:20px}
#starport .sp-interact{bottom:165px;max-width:min(320px,65%);white-space:normal}#starport .sp-flying .sp-moon-controls,.sp-flying .sp-moon-controls,.sp-flying .sp-look-guide{display:none!important}
.home-hub #starport .sp-moon-controls{bottom:86px}.home-lobby-expanded #starport .sp-moon-controls{bottom:95px}.home-hub #starport .sp-look-guide{bottom:74px}.home-lobby-expanded #starport .sp-look-guide{bottom:20px}
@media(max-width:900px){#starport .sp-look-guide{display:none}#starport .sp-park-hud{top:14px;left:14px;max-width:220px;padding:10px 13px}#starport .sp-park-hud h2{font-size:16px}#starport .sp-moon-controls,.home-hub #starport .sp-moon-controls{bottom:87px;right:12px}#starport .sp-moon-controls button{width:45px;height:45px}#starport #spJump{width:60px;height:60px}#starport .sp-interact,.home-hub #starport .sp-interact{bottom:164px;max-width:calc(100% - 32px);font-size:12px;padding:10px 14px;left:50%;transform:translateX(-50%)}#starport .sp-park-hud p,#starport .sp-park-hud small{display:none}#starport .sp-bay-label{max-width:165px}#starport .sp-bay-label b{font-size:11px}.home-hub #starport .sp-joystick{bottom:84px;left:12px}#starport .sp-tools{gap:5px}.home-hub #starport .sp-tools button{font-size:11px;padding:6px 8px}#starport .sp-golden-smash,#starport .sp-rex-fire{bottom:calc(100% + 116px)}#spChakra{position:absolute;right:0;bottom:calc(100% + 116px)}#spChakra .sp-golden-smash{position:static;width:auto}#starport .sp-route{max-width:calc(100% - 28px)}}
@media(prefers-reduced-motion:reduce){#starport #spJump:active{transform:none}}
body.touch-ui .home-hub #starport #spInteract,body.touch-ui .home-hub #starport #spExitLook{left:50%;right:auto;bottom:168px;transform:translateX(-50%);max-width:calc(100% - 30px);width:max-content;min-height:44px;padding:10px 14px;font-size:13px}
#starport:has(.sp-popover:not([hidden])) .sp-moon-controls{visibility:hidden;pointer-events:none}
/* The physical ground-mounted sign replaces the overlapping floating label. */
#starport .sp-portal-label{display:none!important;pointer-events:none}
@media(max-height:500px){body.touch-ui .home-hub #starport #spInteract,body.touch-ui .home-hub #starport #spExitLook{bottom:153px;max-width:52%}.home-lobby-expanded #starport .sp-moon-controls{bottom:75px}#starport .sp-moon-controls button{width:44px;height:44px}#starport #spJump{width:54px;height:54px}}

/* A single measured deck replaces competing absolute button positions. */
body #home #starport .sp-control-deck{position:absolute;inset:auto 14px 14px;z-index:12;display:grid;grid-template-columns:104px minmax(0,1fr) auto;grid-template-rows:auto auto;gap:15px 14px;align-items:end;pointer-events:none}
body #home #starport .sp-control-deck .sp-joystick.sp-analog{position:relative;inset:auto;transform:none;margin:0;width:96px;height:96px;pointer-events:auto;align-self:end}
body #home #starport .sp-control-deck .sp-pad-hint{top:-20px;font-size:11px}
body #home #starport .sp-control-deck .sp-moon-controls{position:static;inset:auto;display:flex;gap:8px;align-items:center;pointer-events:auto}
body #home #starport .sp-control-deck .sp-tools{position:static;inset:auto;grid-column:1/-1;display:flex;justify-content:flex-end;gap:8px;pointer-events:auto}
body #home #starport .sp-control-deck .sp-tools>button{position:static;flex:0 1 auto;min-height:44px;min-width:0;height:auto;padding:10px 16px;font-size:13px;line-height:1.3;white-space:normal}
body #home #starport .sp-control-deck .sp-tools>button span{display:inline;margin:0 5px 0 0;font-size:17px}
body #home #starport .sp-special-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:6px;min-width:0;pointer-events:auto;align-self:end}
body #home #starport .sp-special-actions>button,body #home #starport .sp-special-actions #spChakra{position:static;inset:auto;transform:none;width:auto;max-width:100%;margin:0}
body #home #starport .sp-special-actions button{min-height:44px;border:1px solid #d9c583;background:#243c56f5;color:#ffebac;border-radius:12px;padding:9px 12px;font:800 12px/1.3 Nunito,system-ui;cursor:pointer;white-space:normal}
body #home #starport .sp-special-actions button:disabled{opacity:.55;cursor:default}
body #home #starport .sp-special-actions #spChakra{padding:4px;gap:5px;justify-content:flex-end}
body #home #starport .sp-special-actions #spChakra button{flex:1;min-width:58px;padding:8px}
body #home #starport .sp-special-actions [hidden]{display:none!important}
body #home #starport #spInteract,body #home #starport #spExitLook{bottom:calc(var(--sp-deck-height,158px) + 29px);left:50%;right:auto;transform:translateX(-50%);max-width:calc(100% - 28px);width:max-content;min-height:44px;white-space:normal;text-align:center;z-index:11}
body #home #starport .sp-look-guide,body #home #starport .sp-roam-bar{display:none!important}
body #home #starport.sp-compact-layout .sp-park-hud{inset:12px auto auto 12px;width:112px;max-width:112px;box-sizing:border-box;padding:9px 11px;background:#0d2137d9}
body #home #starport.sp-compact-layout .sp-park-hud :is(h2,p,small,.sp-eyebrow){display:none}
body #home #starport.sp-compact-layout .sp-hunt{display:block;font-size:11px;line-height:1.45;padding:0;margin:0;background:none;white-space:normal}
body #home #starport.sp-compact-layout #spChatPeek{inset:12px 12px auto auto;width:210px;max-width:calc(100% - 146px);box-sizing:border-box;padding:9px 11px;border-radius:13px}
body #home #starport.sp-compact-layout .sp-peek-head{font-size:12px;gap:4px;flex-wrap:wrap}
body #home #starport.sp-compact-layout .sp-peek-head>span{font-size:10px;padding:2px 5px}
body #home #starport.sp-compact-layout .sp-peek-message{-webkit-line-clamp:1;font-size:11px;margin-top:5px}
body #home #starport.sp-compact-layout .sp-peek-open,body #home #starport.sp-compact-layout .sp-header{display:none}
body #home #starport.sp-compact-layout .sp-route{top:93px;left:12px;right:12px;transform:none;max-width:none;font-size:12px}
body #home #starport.sp-compact-layout .sp-control-deck{inset:auto 12px 12px;grid-template-columns:96px minmax(0,1fr) auto;gap:14px 9px}
body #home #starport.sp-compact-layout .sp-control-deck .sp-tools>button{flex:1;padding:9px 6px;font-size:12px}
body #home #starport.sp-compact-layout .sp-moon-controls button{width:44px;height:44px}
body #home #starport.sp-compact-layout #spJump{width:58px;height:58px}
body #home #starport.sp-compact-layout .sp-special-actions{grid-column:2/4;grid-row:1;justify-self:end;align-self:start;max-width:100%;transform:translateY(-58px)}
body #home #starport.sp-compact-layout .sp-control-deck .sp-moon-controls{grid-column:3;grid-row:1}
body #home #starport.sp-compact-layout .sp-control-deck .sp-joystick{grid-column:1;grid-row:1}
body #home #starport.sp-compact-layout .sp-special-actions button{font-size:11px;min-height:40px}
body #home #starport.sp-compact-layout:has(.sp-special-actions> :not([hidden])) #spInteract{bottom:calc(var(--sp-deck-height,158px) + 64px)}
body #home #starport.sp-short-layout .sp-control-deck{inset:auto 12px 10px;grid-template-columns:76px minmax(0,1fr) auto;gap:7px 12px}
body #home #starport.sp-short-layout .sp-control-deck .sp-joystick.sp-analog{width:72px;height:72px}
body #home #starport.sp-short-layout .sp-stick-thumb{width:34px;height:34px}
body #home #starport.sp-short-layout .sp-control-deck .sp-pad-hint{top:-16px;font-size:9px}
body #home #starport.sp-short-layout .sp-control-deck .sp-tools>button{padding:6px 10px;flex:0 1 auto}
body #home #starport.sp-short-layout .sp-control-deck .sp-tools{grid-row:1;grid-column:2;align-self:end;justify-content:center;flex-wrap:wrap}
body #home #starport.sp-short-layout #spJump{width:50px;height:50px}
body #home #starport.sp-short-layout .sp-special-actions{transform:translateY(-60px)}
body #home #starport.sp-short-layout .sp-route{top:88px;max-width:55%;right:auto}
body #home #starport:has(.sp-popover:not([hidden])) .sp-control-deck{visibility:hidden;pointer-events:none}
body #home #starport:has(.sp-popover:not([hidden])) .sp-control-deck *{pointer-events:none}
body #home #starport:has(.sp-popover:not([hidden])) :is(#spInteract,#spExitLook,#spChatPeek,.sp-route){visibility:hidden;pointer-events:none}
body #home #starport.sp-flying .sp-control-deck{display:none!important}
@media(max-width:370px){body #home #starport.sp-compact-layout .sp-control-deck{grid-template-columns:76px minmax(0,1fr) auto}body #home #starport .sp-control-deck .sp-joystick.sp-analog{width:78px;height:78px}body #home #starport .sp-control-deck .sp-tools>button{font-size:11px}}
/* Abilities get a real grid row, so private characters cannot cover Jump. */
body #home #starport .sp-special-actions:not(:has(> :not([hidden]))){display:none}
body #home #starport.sp-compact-layout .sp-special-actions{transform:none;grid-row:1;grid-column:2/4;align-self:end}
body #home #starport.sp-compact-layout:has(.sp-special-actions> :not([hidden])) .sp-control-deck .sp-moon-controls{grid-row:2}
body #home #starport.sp-compact-layout:has(.sp-special-actions> :not([hidden])) .sp-control-deck .sp-joystick{grid-row:1/3}
body #home #starport.sp-compact-layout:has(.sp-special-actions> :not([hidden])) .sp-control-deck .sp-tools{grid-row:3}
body #home #starport.sp-compact-layout:has(.sp-special-actions> :not([hidden])) #spInteract{bottom:calc(var(--sp-deck-height,158px) + 29px)}
body #home #starport.sp-short-layout:has(.sp-special-actions> :not([hidden])) .sp-control-deck .sp-tools{grid-column:2;grid-row:2;max-width:100%;flex-wrap:nowrap}
body #home #starport.sp-short-layout .sp-special-actions{grid-column:2/4;grid-row:1;justify-content:flex-end}
