/* Home frames the existing live world; game routes retain their original layouts. */
body.in-starport:not(.home-lobby-expanded){overflow-y:auto;overflow-x:hidden}
#home.home-hub-active>.home-hub{display:block!important}
.home-hub{max-width:1680px;margin:auto;padding:22px 32px 36px;color:#edf6ff;font-family:Nunito,system-ui,sans-serif}
.home-hub button{font-family:inherit;cursor:pointer}.home-hub button:focus-visible{outline:3px solid #9ae5ff;outline-offset:4px}
.hh-header{display:flex;align-items:center;gap:28px;border-bottom:1px solid #6786a42d;padding-bottom:18px}
.hh-brand{background:none;border:0;padding:0}.hh-header nav{display:flex;gap:8px}.hh-header nav button{display:flex;align-items:center;gap:8px;padding:10px 18px;min-height:44px;border:1px solid transparent;border-radius:12px;background:transparent;color:#aac5dd;font-size:15px;font-weight:800}.hh-header nav .hh-current{background:#243e59;color:#d6f1ff;border-color:#6386a15c}
.hh-profile{display:flex;gap:11px;align-items:center;margin-left:auto;border:0;background:none;color:#e1effb;text-align:left;padding:0}.hh-profile>span:first-child{display:grid;place-items:center;width:42px;height:42px;border-radius:14px;background:#263d59;color:#a2dfff;font-size:24px}.hh-profile b,.hh-profile small{display:block}.hh-profile b{font-size:15px;max-width:180px;overflow:hidden;text-overflow:ellipsis}.hh-profile small{font-size:12px;color:#a5bfd7;margin-top:2px}
.hh-welcome{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:24px 0 20px}.hh-kicker{margin:0 0 7px;font-size:12px;font-weight:900;color:#81bce7;letter-spacing:.18em}.hh-welcome h1{font-size:clamp(24px,2.6vw,36px);line-height:1.2;margin:0;letter-spacing:-.045em}.hh-orbit-note{font-size:11px;font-weight:800;color:#8faec8;letter-spacing:.07em}.hh-orbit-note>span{color:#93dcec;margin:0 8px}
.hh-layout{display:grid;grid-template-columns:280px minmax(0,1fr);gap:22px;align-items:stretch}.hh-main{min-width:0}.hh-lobby{border:1px solid #55789380;border-radius:22px;background:#0d1e31;overflow:hidden;box-shadow:0 18px 50px #01071450}.hh-panel-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 18px;background:#152a40}.hh-panel-head>div{display:flex;align-items:center;gap:10px;min-width:0}.hh-panel-head h2{margin:0;font-size:18px}.hh-panel-head #hhConnection{font-size:12px;color:#afc9da}.hh-live-dot{width:7px;height:7px;flex-shrink:0;border-radius:50%;background:#dbb87c}.hh-panel-head button{border:1px solid #5d809c50;background:#233e57;color:#d3eaff;font-weight:800;padding:8px 12px;border-radius:9px;font-size:12px;min-height:40px}.hh-stage{position:relative}.home-hub #starport{height:500px;min-height:500px}
.hh-crew{display:flex;align-items:center;gap:16px;padding:12px 18px;min-height:54px;border-top:1px solid #42617d4d}.hh-crew>span{font-size:10px;letter-spacing:.12em;white-space:nowrap;color:#8dabca;font-weight:900}.hh-crew>div{font-size:13px;color:#b3cadc}
.hh-standings-slot{min-width:0;padding:22px 18px;border:1px solid #587d9b4d;border-radius:22px;background:linear-gradient(155deg,#1d3551,#101f34);box-shadow:0 18px 50px #0107142b}
.hh-standings-slot .star-standings{display:flex!important;flex-direction:column;gap:18px;padding:0!important;margin:0!important;background:none!important;border:0!important;box-shadow:none!important;overflow:visible}.hh-standings-slot .star-standings>div{padding:0;min-width:0}.hh-standings-slot .lobby-trophy{font-size:30px}.hh-standings-slot h2{font-size:26px;margin:6px 0 10px}.hh-standings-slot .eyebrow{font-size:10px;letter-spacing:.12em;color:#adcae4}.hh-standings-slot p:not(.eyebrow){font-size:13px;line-height:1.55}.hh-standings-slot .muted{color:#99b4ce}.hh-standings-slot .lobby-season{font-size:10px;color:#d7c69b;background:#554a321f;border:1px solid #ad915a44;padding:5px 9px;border-radius:20px}.hh-standings-slot #standingsList{padding:0;margin:0;display:grid;gap:9px;min-width:0;list-style:none;font-size:14px}.hh-standings-slot #standingsList li{display:flex;align-items:center;justify-content:space-between;gap:7px;background:#0a1b2e99;border:1px solid #7996b12b;border-radius:12px;padding:12px 10px;min-height:52px;font-size:13px}.hh-standings-slot #standingsList li>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.hh-standings-slot #standingsList li>b{font-size:12px;white-space:nowrap;color:#a9e0f4}.hh-standings-slot #standingsOpt{font-size:12px;padding:10px 12px;min-height:44px}.hh-standings-slot #standingsRefresh{font-size:12px}.hh-standings-slot #standingsNotice:empty{display:none}
.hh-stops-head{display:flex;justify-content:space-between;align-items:center;margin:22px 2px 14px}.hh-stops-head h2{font-size:18px;margin:0}.hh-stops-head>span{font-size:12px;color:#a2bbd1}.hh-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;padding:5px 0 10px}.hh-card{position:relative;isolation:isolate;display:flex;align-items:center;min-height:180px;overflow:hidden;text-align:left;border:1px solid #87b4d65c;border-radius:19px;padding:22px 17px;color:#e5f4ff;box-shadow:0 8px 22px #02081955;transition:transform .2s,border-color .2s;background:linear-gradient(135deg,#214b65,#142a40)}.hh-card:hover{transform:translateY(-5px);border-color:#b6e7ff}.hh-card-copy{position:relative;z-index:2;display:grid;gap:12px}.hh-card-copy small{font-size:9px;font-weight:900;letter-spacing:.09em}.hh-card-copy strong{font-size:23px;line-height:1.1;font-weight:900;letter-spacing:-.03em}.hh-card-copy>span{font-size:12px;font-weight:800;max-width:165px}.hh-card-copy b{padding-left:5px}.hh-card img,.hh-trophy{position:absolute;right:-28px;bottom:12px;width:135px;height:135px;object-fit:contain;opacity:.85;z-index:1}.hh-creator{background:linear-gradient(125deg,#20405c,#1d3c50)}.hh-creator img{width:104px;height:127px;right:-20px;bottom:0;object-fit:cover;object-position:43% 70%;border-radius:80px 0 0 0;opacity:.75}.hh-achievements{background:linear-gradient(125deg,#343e63,#242947)}.hh-trophy{display:grid;place-items:center;font-size:85px;right:-27px;bottom:0;opacity:.5}.hh-shop{background:linear-gradient(125deg,#2b4462,#223853)}
@media(max-width:1100px){.home-hub{padding:20px}.hh-layout{grid-template-columns:240px minmax(0,1fr);gap:16px}.hh-card{padding:18px 13px}.hh-card-copy strong{font-size:21px}.hh-card img,.hh-trophy{right:-50px;opacity:.4}.hh-creator img{right:-38px}.hh-orbit-note{display:none}}
@media(max-width:760px){.home-hub{padding:14px}.hh-header{gap:12px;padding-bottom:13px}.hh-header .zaiko-wordmark{font-size:29px!important}.hh-header .zaiko-brand-mark>img{width:36px;height:36px}.hh-header nav{margin-left:auto;gap:4px}.hh-header nav button{padding:9px 11px;font-size:13px}.hh-profile{display:none}.hh-layout{display:flex;flex-direction:column;gap:18px}.hh-main{order:0}.hh-standings-slot{order:1}.hh-welcome{margin:20px 2px 18px}.hh-welcome h1{font-size:27px}.hh-kicker{font-size:10px}.home-hub #starport{height:520px;min-height:520px}.hh-panel-head{padding:10px 12px}.hh-panel-head h2{font-size:16px}.hh-panel-head #hhConnection{font-size:11px}.hh-panel-head button{padding:8px}.hh-panel-head button span{display:none}.hh-crew{padding:10px 12px;gap:10px}.hh-crew>span{font-size:9px}.hh-cards{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;gap:12px;padding:7px 3px 14px;scrollbar-width:thin;scrollbar-color:#719dbc #182c40}.hh-card{flex:0 0 78%;min-height:184px;scroll-snap-align:start;padding:23px}.hh-card-copy strong{font-size:25px}.hh-card img,.hh-trophy{right:0;opacity:.8}.hh-creator img{right:-10px}.hh-stops-head>span{font-size:11px}.hh-standings-slot #standingsList{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(prefers-reduced-motion:reduce){.hh-card{transition:none}}
/* Compact cockpit controls keep the playable world, rather than overlays, in focus. */
.home-hub #starport .sp-header{top:14px;right:14px;left:auto}.home-hub #starport .sp-header :is(.sp-brand,.sp-connection,.sp-standings-button,[data-sp="menu"]){display:none}.home-hub #starport .sp-icon{width:38px;height:38px;border-radius:11px}.home-hub #starport .sp-player{display:none}.home-hub #starport .sp-park-hud{top:22px;left:22px;width:250px}.home-hub #starport .sp-park-hud .sp-eyebrow{font-size:10px;letter-spacing:.12em}.home-hub #starport .sp-park-hud h2{font-size:22px;margin:8px 0}.home-hub #starport .sp-park-hud p,.home-hub #starport .sp-park-hud>small{display:none}.home-hub #starport .sp-hunt{font-size:12px;margin-top:10px}.home-hub #starport .sp-roam-bar{padding:16px 20px;min-height:66px;pointer-events:none}.home-hub #starport .sp-roam-bar>button,.home-hub #starport .sp-roam-bar .sp-eyebrow{display:none}.home-hub #starport .sp-roam-bar>div>span:last-child{font-size:11px;max-width:210px}.home-hub #starport .sp-tools{bottom:14px;right:16px;gap:7px}.home-hub #starport .sp-tools>button{font-size:12px;padding:10px 12px;min-height:44px}.home-hub #starport .sp-tools>button span{font-size:16px;margin-right:4px}.home-hub #starport .sp-popover{right:14px;bottom:70px;max-height:calc(100% - 90px);max-width:calc(100% - 28px);overflow:auto}.home-hub #starport .sp-interact{bottom:80px;font-size:12px}.home-hub #starport .sp-route{top:14px;left:50%;max-width:calc(100% - 160px)}.home-hub #starport:has(.sp-popover:not([hidden])) .sp-park-hud{visibility:hidden}.home-hub #starport .sp-travel{padding-bottom:40px}
.hh-connected .hh-live-dot{background:#9be0c8;box-shadow:0 0 9px #9be0c83d}.hh-crew #hhOnline{display:flex;align-items:center;gap:8px;overflow-x:auto;scrollbar-width:thin;scrollbar-color:#40617d transparent;min-width:0}.hh-person{display:inline-flex;align-items:center;gap:6px;border:1px solid #5779964d;background:#1d354a;border-radius:24px;padding:5px 10px 5px 5px;white-space:nowrap;font-size:12px}.hh-person i{display:grid;place-items:center;width:23px;height:23px;background:#2a4961;border-radius:50%;font-style:normal}.hh-person>span{max-width:170px;overflow:hidden;text-overflow:ellipsis}
#home .hh-standings-slot .star-standings h2{font-size:28px;line-height:1.15;letter-spacing:-.035em;margin:8px 0 12px}#home .hh-standings-slot .lobby-trophy{float:right;font-size:28px;margin:0}.hh-standings-slot #standingsList{order:1}.hh-standings-slot .hh-sharing{order:2;border-top:1px solid #809bb22e;padding-top:16px}.hh-sharing summary{font-weight:800;font-size:13px;cursor:pointer;padding:6px 0;color:#bcdbef}.hh-sharing .muted{margin:10px 0}.hh-daily-link{width:100%;text-align:left;margin-top:20px;padding:14px;border:1px solid #7099af47;border-radius:13px;background:linear-gradient(110deg,#29495b,#1b354c);color:#bee5f7;font-size:13px;font-weight:900}.hh-standings-slot #standingsList:has(li){max-height:560px;overflow:auto;scrollbar-width:thin;scrollbar-color:#5d7d9a transparent}.hh-standings-slot #standingsList li:first-child{border-color:#c9ac676e;background:linear-gradient(115deg,#66523144,#172d45);min-height:62px}.hh-standings-slot #standingsList li:first-child>b{color:#ffe4a4}
.hh-carousel-controls{display:flex;gap:7px;margin-left:auto}.hh-carousel-controls[hidden]{display:none}.hh-carousel-controls button{width:38px;height:38px;border:1px solid #799cb450;background:#1e374c;color:#caeaff;border-radius:50%;font-size:18px}.hh-carousel-controls button:disabled{opacity:.3;cursor:default}.hh-card{animation:hh-float 6s ease-in-out infinite}.hh-achievements{animation-delay:-2s}.hh-shop{animation-delay:-4s}.hh-card:hover,.hh-card:focus-visible{animation-play-state:paused}.hh-cards:has(:focus-visible){scroll-behavior:smooth}@keyframes hh-float{0%,100%{translate:0 0}50%{translate:0 -5px}}
body.home-lobby-expanded{overflow:hidden}.home-lobby-expanded .hh-lobby{position:fixed;inset:0;z-index:70;display:flex;flex-direction:column;border-radius:0;border:0}.home-lobby-expanded .hh-stage{flex:1;min-height:0}.home-lobby-expanded .home-hub #starport{height:100%;min-height:0}.home-lobby-expanded .hh-crew{flex-shrink:0}.home-lobby-expanded .hh-panel-head{flex-shrink:0}.home-lobby-expanded #hhExpand span{display:inline}.home-lobby-expanded .home-hub #starport .sp-park-hud{top:28px;left:28px}.home-lobby-expanded .home-hub #starport .sp-park-hud p{display:block}.home-lobby-expanded .home-hub #starport .sp-tools{bottom:22px;right:22px}.home-lobby-expanded .home-hub #starport .sp-popover{bottom:80px}
@media(min-width:761px) and (max-width:1250px){.home-hub #starport .sp-roam-bar>div{max-width:120px}.home-hub #starport .sp-tools>button{font-size:11px;padding:10px}.hh-card-copy small{max-width:150px;line-height:1.5}}
@media(max-width:760px){.home-hub #starport .sp-park-hud{top:20px;left:16px;width:210px}.home-hub #starport .sp-park-hud h2{font-size:21px;max-width:205px}.home-hub #starport .sp-park-hud .sp-eyebrow{font-size:9px}.home-hub #starport .sp-tools{left:12px;right:12px;bottom:13px;justify-content:space-between}.home-hub #starport .sp-tools>button{font-size:11px;padding:10px 9px;flex:1}.home-hub #starport .sp-tools>button span{font-size:15px;display:block;margin:0 0 4px}.home-hub #starport .sp-roam-bar{display:none}.home-hub #starport .sp-joystick{bottom:88px;left:14px;right:auto;width:120px;height:120px}.home-hub #starport .sp-joystick button{min-width:38px;min-height:38px}.home-hub #starport .sp-interact{bottom:226px;font-size:11px;padding:10px 14px;width:max-content;max-width:94%}.home-hub #starport .sp-popover{bottom:86px;max-height:calc(100% - 105px)}.home-hub #starport:has(.sp-popover:not([hidden])) .sp-joystick{visibility:hidden}.home-hub #starport .sp-route{top:12px;left:12px;right:58px;max-width:none;transform:none;font-size:11px}.hh-stops-head>span{display:none}.hh-person{font-size:11px}.hh-crew>span{max-width:46px;line-height:1.5;white-space:normal}.home-lobby-expanded .home-hub #starport .sp-tools{left:12px;right:12px;bottom:13px}.home-lobby-expanded .home-hub #starport .sp-popover{bottom:90px}.hh-standings-slot #standingsList{grid-template-columns:1fr}.hh-standings-slot #standingsList:has(li){max-height:390px}}
@media(prefers-reduced-motion:reduce){.hh-card{animation:none;transition:none}.hh-cards:has(:focus-visible){scroll-behavior:auto}}
@media(max-width:760px){.home-hub #starport .sp-tools>button{height:auto;min-height:58px;line-height:1.3}.home-hub #starport .sp-presets button{font-size:12px;line-height:1.4;min-height:48px}.hh-card .hh-trophy{opacity:.38;right:-15px}.home-hub #starport .sp-popover .sp-panel-title b{font-size:14px}}
/* Never gate movement controls on screen width: tablets may use desktop layouts. */
.home-hub #starport .sp-joystick{position:absolute;display:block;z-index:6;left:18px;right:auto;bottom:96px;width:156px;height:156px;padding:0;border:1px solid #8cc9ed66;border-radius:50%;background:#0b2035d9;box-shadow:0 8px 28px #0005;backdrop-filter:blur(10px);opacity:1;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
.home-hub #starport .sp-joystick button{display:block;min-width:44px;min-height:44px;width:100%;height:100%;padding:0;border:0;border-radius:50%;background:radial-gradient(circle,transparent 48%,#8bc7ee1c 49%,transparent 51%,transparent 68%,#8bc7ee2b 69%,transparent 71%);color:#e1f6ff;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;cursor:grab}
.sp-stick-track{position:absolute;inset:0;display:grid;place-items:center;pointer-events:none}.sp-stick-thumb{display:grid;place-items:center;width:64px;height:64px;border:1px solid #acd9f5;border-radius:50%;background:radial-gradient(circle at 35% 25%,#6595b6,#2b526f 68%);color:#e6f8ff;font-size:23px;box-shadow:0 5px 14px #0008,inset 0 2px 5px #d5f4ff38;transform:translate(var(--stick-x,0px),var(--stick-y,0px));will-change:transform}.sp-stick-active .sp-stick-thumb{border-color:#e5f9ff;box-shadow:0 0 23px #83d5f75c,0 5px 14px #0008}.home-hub #starport .sp-stick-active button{cursor:grabbing}.sp-pad-hint{position:absolute;top:-28px;left:-18px;width:calc(100% + 36px);font-size:11px;font-weight:900;text-align:center;white-space:nowrap;color:#e3f5ff;text-shadow:0 2px 5px #000;pointer-events:none}
.home-hub #starport:has(.sp-popover:not([hidden])) .sp-joystick{visibility:hidden;pointer-events:none}.home-hub #starport:is(.sp-flying,.sp-no3d) .sp-joystick{display:none}.home-hub #starport .sp-interact{bottom:268px}.home-lobby-expanded .home-hub #starport .sp-joystick{bottom:max(96px,calc(env(safe-area-inset-bottom) + 80px))}
@media(max-width:760px){.home-hub #starport .sp-joystick{left:14px;bottom:96px}.home-hub #starport .sp-interact{bottom:268px}}
@media(max-height:500px){.home-lobby-expanded .hh-crew{display:none}.home-lobby-expanded .home-hub #starport .sp-joystick{width:140px;height:140px;bottom:78px;left:18px}.home-lobby-expanded .home-hub #starport .sp-pad-hint{top:-22px;font-size:10px}.home-lobby-expanded .home-hub #starport .sp-interact{bottom:94px;left:auto;right:14px;transform:none;max-width:48%}}
/* Compact thumb control: leave the world visible without shrinking the touch target. */
.home-hub #starport .sp-joystick.sp-analog{width:112px;height:112px;left:16px}.home-hub #starport .sp-stick-thumb{width:48px;height:48px;font-size:19px}.home-hub #starport .sp-pad-hint{top:-23px;font-size:11px}.home-hub #starport .sp-interact{bottom:225px}
@media(max-height:500px){.home-lobby-expanded .home-hub #starport .sp-joystick.sp-analog{width:104px;height:104px;left:16px}.home-lobby-expanded .home-hub #starport .sp-interact{bottom:94px}}
