/* Clear choices first; the immersive lobby and every existing mode stay available. */
.hh-choice-hint{font-size:16px;line-height:1.5;color:#b8cee1;margin:10px 0 0}
.hh-quick-start{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.hh-game{display:flex;align-items:flex-start;gap:16px;padding:22px;border:1px solid #759cc06b;border-radius:20px;background:#203c57;color:#f3f9ff;text-align:left;min-width:0;transition:background .15s,transform .15s}
.hh-game:hover{background:#2a506d;transform:translateY(-2px)}.hh-game-mini{background:#2c3b65;border-color:#93aaf78c}.hh-game-learn{background:#1c454b}.hh-game-icon{font-size:32px;line-height:1.4}.hh-game>span:last-child{display:grid;gap:9px;min-width:0}.hh-game small{font-size:12px;color:#bdd8ed;letter-spacing:.06em;font-weight:900}.hh-game strong{font-size:24px;line-height:1.2}.hh-game span>span{font-size:15px;line-height:1.5;color:#d0dfed}.hh-game b{font-size:15px;color:#e2fcff;margin-top:5px}
.hh-shortcuts{display:flex;flex-wrap:wrap;gap:10px;margin:14px 0 20px}.hh-shortcuts button{display:flex;align-items:center;gap:8px;min-height:46px;padding:10px 15px;background:#192f44;border:1px solid #759cc045;border-radius:12px;color:#e1f0fc;font-size:15px;font-weight:800}.hh-shortcuts small{color:#a7c1d8;font-size:13px;font-weight:600}
.hh-daily-slot{margin-bottom:22px}.hh-daily-slot .daily{display:flex!important;align-items:center;gap:16px;padding:18px 22px;margin:0!important;border:1px solid #7fa3cb4d;background:linear-gradient(110deg,#293554,#1b2f45);border-radius:18px;box-shadow:none;color:#eaf4ff}.hh-daily-slot .daily>div{flex:1;min-width:0}.hh-daily-slot .daily h2{font-size:20px;margin:4px 0;color:#f3f8ff}.hh-daily-slot .daily p{font-size:14px;color:#c1d3e5;margin:5px 0;line-height:1.5}.hh-daily-slot .daily .eyebrow{font-size:11px;color:#c2b6f7}.hh-daily-slot .daily small{display:none}.hh-daily-slot .daily-icon{font-size:30px}.hh-daily-slot .daily button{min-height:46px;font-size:15px;white-space:normal}
.hh-standings-slot #standingsList{order:2}.hh-standings-slot .standings-mine{order:1}.hh-standings-slot #standingsMore{order:3}.hh-standings-slot .hh-sharing{order:4}.standings-mine{padding:12px;border-radius:12px;background:#3d84722b;border:1px solid #69baa880;font-weight:800;font-size:14px!important;line-height:1.5}.standings-mine:empty{display:none}#standingsList li.is-you{border:1px solid #91e0c3!important;background:#31655c55!important}#standingsMore[hidden]{display:none}#standingsMore{min-height:44px;font-size:14px}.hh-standings-slot #standingsRefresh{font-size:14px;min-height:44px;color:#c8e6ff}.hh-standings-slot #standingsNotice{font-size:13px;line-height:1.5;color:#b5cedf}.hh-sharing div{font-size:14px;line-height:1.5}.hh-card{animation:none}.hh-panel-head #hhConnection{font-size:14px}
.easy-page-nav{display:flex;align-items:center;gap:12px;border-bottom:1px solid #8091b249;margin:0 0 22px;padding:0 0 14px;font:700 14px Nunito,system-ui,sans-serif}.easy-page-nav>span{color:#536584}.easy-page-nav button{font:800 14px Nunito,system-ui,sans-serif;border:1px solid #8a9cb56b;background:#eff5ff;color:#273d5a;border-radius:11px;min-height:44px;padding:10px 14px;cursor:pointer}.easy-page-nav button:last-child{margin-left:auto}.easy-page-nav button:focus-visible,#easyHelp button:focus-visible{outline:3px solid #538acf;outline-offset:3px}
#easyHelp{width:480px;max-width:calc(100vw - 28px);max-height:85dvh;overflow:auto;border:1px solid #89a9c2;border-radius:22px;padding:25px;background:#152b41;color:#edf7ff;font:16px/1.6 Nunito,system-ui,sans-serif}#easyHelp::backdrop{background:#031024bd}#easyHelp header{display:flex;align-items:center;justify-content:space-between;gap:12px}#easyHelp h2{font-size:24px;line-height:1.3;color:inherit;margin:0}#easyHelp header button{min-width:44px;min-height:44px;background:#2a455e;color:white;border:0;border-radius:10px;font-size:20px}#easyHelp ol{padding-left:24px;display:grid;gap:18px;margin:24px 0}#easyHelp li{padding-left:7px}#easyHelp .primary{width:100%;min-height:48px}.easy-standings-note{max-width:640px;font-size:14px;line-height:1.6;color:#6d7d97}
#spMenu .sidebar .nav>.easy-menu-copy{display:grid;gap:3px;min-width:0;font-size:14px}#spMenu .easy-menu-copy small{font-size:12px;line-height:1.4;color:#b7cbda}#spMenu .sidebar .nav{min-height:58px}#spMenu .sidebar .nav.active{outline:1px solid #78b9b1}.easy-home-label{font-size:14px;font-weight:900;margin-left:8px}
@media(max-width:1000px){.hh-game{padding:18px 15px;gap:10px}.hh-game strong{font-size:21px}.hh-game-icon{font-size:26px}.hh-shortcuts small{display:none}}
@media(max-width:650px){.hh-quick-start{grid-template-columns:1fr;gap:10px}.hh-game{padding:16px;align-items:center;gap:16px}.hh-game>span:last-child{gap:5px}.hh-game strong{font-size:21px}.hh-game small{font-size:11px}.hh-game span>span{font-size:14px}.hh-game b{font-size:14px;margin-top:2px}.hh-game-icon{font-size:32px}.hh-shortcuts{display:grid;grid-template-columns:1fr 1fr;gap:8px}.hh-shortcuts button{font-size:14px;justify-content:center;padding:10px}.hh-shortcuts button:last-child{grid-column:1/-1}.hh-daily-slot .daily{flex-wrap:wrap;padding:16px;gap:12px}.hh-daily-slot .daily button{width:100%}.hh-welcome h1{font-size:26px}.hh-choice-hint{font-size:15px}.hh-panel-head #hhConnection{font-size:12px}.easy-page-nav{gap:8px;flex-wrap:wrap}.easy-page-nav>span{display:none}.sp-global-navigation .zaiko-brand .zaiko-brand-mark{display:none}.easy-home-label{margin:0}.hh-card{min-height:155px}.hh-stops-head h2{font-size:17px}}
@media(prefers-reduced-motion:reduce){.hh-game{transition:none}.hh-game:hover{transform:none}}

/* Home and drawer layout boundaries. Legacy game/card rules must not size these. */
.home-hub{max-width:1560px;padding:24px clamp(16px,3vw,40px) 40px}
.home-hub :is(.hh-header,.hh-welcome,.hh-layout,.hh-main,.hh-quick-start,.hh-shortcuts,.hh-cards){min-width:0}
.home-hub .hh-header{gap:20px}.home-hub .hh-header nav button{white-space:nowrap}
.home-hub .hh-welcome{margin:28px 0 22px}.home-hub .hh-welcome h1{font-size:clamp(26px,2.8vw,36px);line-height:1.2}
.home-hub .hh-choice-hint{margin:8px 0 0;color:#adc5db;font-size:15px}
.home-hub .hh-game{padding:22px;gap:14px;min-height:184px;border-radius:18px;box-shadow:inset 0 1px #ffffff0b}
.home-hub .hh-game>span:last-child{flex:1;align-self:stretch;grid-template-rows:auto auto 1fr auto;gap:8px}
.home-hub .hh-game strong{font-size:clamp(20px,1.8vw,25px);overflow-wrap:normal}
.home-hub .hh-game small{font-size:10px;letter-spacing:.1em;line-height:1.5}
.home-hub .hh-game span>span{font-size:14px;line-height:1.5}.home-hub .hh-game b{margin-top:4px;font-size:14px}
.home-hub .hh-game-icon{flex:0 0 40px;display:grid;place-items:center;width:40px;height:44px;font-size:30px}
.home-hub .hh-shortcuts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:12px 0 22px}
.home-hub .hh-shortcuts button{min-width:0;justify-content:center;flex-wrap:wrap;gap:5px 9px;padding:12px;font-size:14px;background:#142a40}
.home-hub .hh-shortcuts small{font-size:12px}
/* An inherited width:100% on the daily button squeezed its text into a sliver. */
#home.home-hub-active .hh-daily-slot .daily{display:grid!important;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:14px 24px;padding:20px 24px;margin:0!important;border-radius:18px;text-align:left}
#home .hh-daily-slot .daily-icon{display:none}
#home .hh-daily-slot .daily>div{width:auto;min-width:0}
#home .hh-daily-slot .daily>.primary{width:auto;max-width:100%;min-width:0;margin:0;grid-column:auto;padding:12px 20px;min-height:48px;white-space:normal}
#home .hh-daily-slot .daily h2{font-size:21px;line-height:1.3;margin:5px 0}
#home .hh-daily-slot .daily p{margin:4px 0;line-height:1.5;font-size:14px}
#home .hh-daily-slot .daily .eyebrow{font-size:10px;letter-spacing:.12em}
.home-hub .hh-layout{grid-template-columns:280px minmax(0,1fr);align-items:start;gap:22px}
.home-hub .hh-standings-slot{padding:22px 18px;align-self:start;max-width:100%}
body.touch-ui .home-hub :is(.hh-main,.hh-standings-slot){width:100%}
#home .hh-standings-slot .star-standings{min-height:0;gap:14px}
#home .hh-standings-slot #standingsList{min-height:0;grid-auto-rows:max-content;align-content:start}
#home .hh-standings-slot #standingsList li{min-height:54px;padding:12px 10px}
#home .hh-standings-slot #standingsList li>span{white-space:normal;overflow-wrap:anywhere;line-height:1.45}
#home .hh-standings-slot #standingsRefresh{margin:0;padding:8px 0;text-align:left}
#home .hh-standings-slot .star-standings h2{font-size:26px}
#home .hh-standings-slot .star-standings p{margin:8px 0}
.home-hub .hh-lobby{border-radius:20px}.home-hub .hh-panel-head{min-height:62px;gap:10px;padding:12px 16px}
.home-hub .hh-panel-head>div{flex:1;flex-wrap:wrap;gap:6px 10px}.home-hub #hhConnection{white-space:nowrap}
.home-hub .hh-panel-head button{flex-shrink:0;min-height:44px}.home-hub .hh-crew{min-width:0;min-height:58px}
.home-hub .hh-stops-head{margin:22px 0 12px}.home-hub .hh-stops-head h2{font-size:18px}
.home-hub .hh-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));overflow:visible;gap:12px;padding:0;scroll-snap-type:none}
.home-hub .hh-card{display:grid;grid-template-columns:minmax(0,1fr) 48px;align-items:center;gap:10px;min-width:0;min-height:148px;height:auto;padding:18px 16px;border-radius:16px;animation:none;translate:none;box-shadow:none}
.home-hub .hh-card-copy{min-width:0;gap:8px}.home-hub .hh-card-copy small{font-size:9px;line-height:1.5;letter-spacing:.06em;max-width:none}
.home-hub .hh-card-copy strong{font-size:19px;line-height:1.25;overflow-wrap:anywhere}
.home-hub .hh-card-copy>span{max-width:none;font-size:12px;line-height:1.5}
.home-hub .hh-card :is(img,.hh-trophy){position:static;width:48px;height:64px;opacity:1;font-size:40px;object-fit:contain;z-index:auto}
.home-hub .hh-creator img{height:60px;border-radius:12px;object-fit:cover;object-position:45% 65%}
.home-hub .hh-card:hover{transform:translateY(-2px)}
/* A bounded dialog: the heading and settings stay available while destinations scroll. */
body:has(#spMenu[open]){overflow:hidden!important}
#spMenu{inset:0 auto 0 0;margin:0;width:400px;max-width:100vw;height:100dvh;max-height:100dvh;padding:0;border:0;border-right:1px solid #49687f;overflow:hidden;background:#102237}
#spMenu[open]{display:flex;flex-direction:column}
#spMenu>header{position:relative;top:auto;flex-shrink:0;gap:12px;padding:20px;margin:0;background:#102237;border-bottom:1px solid #3b58714d;letter-spacing:normal}
#spMenu>header>span{min-width:0;flex:1}#spMenu>header b{display:block;color:#f0f8ff;font-size:23px;line-height:1.3}#spMenu>header small{display:block;font-weight:600;font-size:13px;color:#b4cadd;margin-top:4px}
#spMenu>header button{flex:0 0 44px;width:44px;height:44px;border-radius:12px;font-size:20px}
#spMenu .sidebar{flex:1 1 auto;min-height:0;height:auto;width:100%;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;padding:16px 18px 12px;scrollbar-width:thin;scrollbar-color:#52758d transparent;backdrop-filter:none}
#spMenu .sidebar>.logo{display:none!important}
#spMenu .sidebar nav{flex:0 0 auto;margin:0;gap:9px}
#spMenu .sidebar .nav{display:flex;flex:0 0 auto;flex-direction:row;gap:12px;width:100%;min-width:0;min-height:56px;padding:11px 12px;text-align:left;white-space:normal}
#spMenu .sidebar .nav>span:not(.easy-menu-copy){width:28px;flex:0 0 28px;text-align:center;font-size:21px}
/* Only the icon has a fixed width, never the title/description wrapper. */
#spMenu .sidebar .nav>.easy-menu-copy{display:grid;flex:1 1 0%;width:auto;min-width:0;text-align:left;gap:3px}
#spMenu .sidebar .nav b{font-size:15px;line-height:1.35;max-width:none;overflow-wrap:anywhere}
#spMenu .sidebar .nav small{font-size:12px;line-height:1.45;overflow-wrap:anywhere;color:#b4ccdf}
#spMenu .sidebar .nav.active{outline:0;background:#234761;box-shadow:inset 3px 0 #95dfec}
#spMenu .sidebar nav>.nav{border:1px solid #47647d55;background:#1b344b;min-height:54px}
#spMenu .sp-mode-group{flex-shrink:0;border-color:#36546b;border-radius:14px;background:#162e44}
#spMenu .sp-mode-group summary{padding:12px;min-height:64px;gap:10px}
#spMenu .sp-mode-group summary>span:nth-child(2){min-width:0}
#spMenu .sp-mode-group summary b{font-size:15px}#spMenu .sp-mode-group summary small{font-size:12px}
#spMenu .sp-mode-links{gap:4px;padding:0 8px 8px}
#spMenu .sidebar .side-bottom{display:block;margin:16px 0 0;padding:12px 0 0;border-top:1px solid #3b5871}
#spMenu .sidebar .streak{display:none}#spMenu .sidebar .profile-mini{padding:8px;min-height:52px;border-radius:10px}
#spMenu .sidebar .profile-mini>span{min-width:0;flex:1}#spMenu .sidebar .profile-mini b{overflow-wrap:anywhere}
#spMenu>.sp-menu-settings{flex-shrink:0;width:auto;margin:0;padding:16px 20px max(16px,env(safe-area-inset-bottom));border:0;border-top:1px solid #3b5871;border-radius:0;background:#172f45;text-align:left;min-height:56px}
@media(min-width:761px) and (max-width:1199px){
 .home-hub .hh-layout{grid-template-columns:244px minmax(0,1fr);gap:16px}
 .home-hub .hh-game{padding:18px;gap:10px;min-height:200px}.home-hub .hh-game-icon{flex-basis:28px;width:28px;font-size:26px}
 .home-hub .hh-cards{grid-template-columns:1fr}.home-hub .hh-card{grid-template-columns:minmax(0,1fr) 56px;min-height:110px}.home-hub .hh-card-copy{gap:5px}
}
@media(max-width:760px){
 .home-hub,body.touch-ui .home-hub{padding:12px max(14px,env(safe-area-inset-right)) 28px max(14px,env(safe-area-inset-left))}
 .home-hub .hh-header{gap:10px;padding:10px 0 14px}.home-hub .hh-header nav{margin-left:auto}
 .home-hub .hh-header nav button{font-size:13px;padding:9px 10px}.home-hub .hh-header .hh-current{display:none}
 .home-hub .hh-welcome{margin:22px 0 18px}.home-hub .hh-choice-hint{font-size:14px}
 .home-hub .hh-quick-start{grid-template-columns:1fr;gap:10px}.home-hub .hh-game{padding:17px;gap:14px;min-height:0;align-items:center}
 .home-hub .hh-game>span:last-child{grid-template-rows:auto auto auto auto;gap:5px}.home-hub .hh-game strong{font-size:21px}
 .home-hub .hh-game-icon{width:42px;flex-basis:42px;font-size:31px}.home-hub .hh-game b{margin:2px 0 0}
 .home-hub .hh-shortcuts{grid-template-columns:1fr 1fr;gap:8px;margin:10px 0 18px}.home-hub .hh-shortcuts button{font-size:13px;min-height:46px;padding:10px 8px}
 .home-hub .hh-shortcuts button:last-child{grid-column:1/-1}.home-hub .hh-shortcuts small{display:none}
 #home.home-hub-active .hh-daily-slot .daily{grid-template-columns:minmax(0,1fr);padding:18px;gap:14px}
 #home .hh-daily-slot .daily>.primary{width:100%;grid-column:1;margin:0}
 .home-hub .hh-layout{display:flex;flex-direction:column;gap:20px}.home-hub .hh-main,.home-hub .hh-standings-slot{width:100%}
 .home-hub .hh-main{order:0}.home-hub .hh-standings-slot{order:1}
 .home-hub .hh-panel-head{padding:10px 12px;min-height:62px}.home-hub .hh-panel-head>div{gap:5px 7px}
 .home-hub .hh-panel-head h2{font-size:16px}.home-hub #hhConnection{font-size:12px}
 .home-hub .hh-panel-head button{padding:8px 10px}.home-hub .hh-panel-head #hhExpand span{display:none}
 .home-hub .hh-cards{grid-template-columns:1fr;gap:10px}.home-hub .hh-card{grid-template-columns:minmax(0,1fr) 60px;min-height:112px;padding:16px 18px}
 .home-hub .hh-card-copy{gap:5px}.home-hub .hh-card-copy strong{font-size:21px}
 #spMenu{width:min(400px,100vw)}#spMenu>header{padding:16px max(16px,env(safe-area-inset-right)) 16px max(16px,env(safe-area-inset-left))}
 #spMenu .sidebar{padding:12px 14px}#spMenu .sp-mode-group summary{min-height:62px}
}
@media(max-height:500px){#spMenu>header{padding-block:10px}#spMenu>header small{display:none}#spMenu>.sp-menu-settings{padding-block:12px;min-height:48px}}
@media(prefers-reduced-motion:reduce){.home-hub .hh-card:hover,.home-hub .hh-game:hover{transform:none}}

/* Lobby-first Home: one dismissible challenge and one destination carousel. */
.hh-sr-only{position:absolute!important;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.home-hub .hh-welcome{margin:14px 0;gap:12px;justify-content:flex-start;flex-wrap:wrap}
.home-hub .hh-welcome>div{flex:1;min-width:160px}.home-hub .hh-kicker{font-size:14px;letter-spacing:0;margin:0;color:#c5e0f2}
.home-hub .hh-welcome .hh-tour-link{margin-left:auto}
.hh-daily-restore{min-height:40px;border:1px solid #637e9b55;border-radius:11px;background:#1b354d;color:#cae8fa;padding:8px 12px;font-weight:800}
.home-hub .hh-daily-slot{margin:0 0 18px}
#home.home-hub-active .hh-daily-slot .daily{position:relative;grid-template-columns:minmax(0,1fr) auto;padding:14px 64px 14px 20px;gap:12px 20px;border-radius:15px}
#home .hh-daily-slot .daily h2{font-size:18px;margin:3px 0}#home .hh-daily-slot .daily p{font-size:13px;margin:2px 0}
#home .hh-daily-slot .daily>.primary{grid-column:auto;width:auto;min-height:44px;padding:10px 16px;font-size:13px}
#home .hh-daily-slot .daily>.hh-daily-close{position:absolute;top:12px;right:10px;display:grid;place-items:center;width:44px;height:44px;min-height:44px;margin:0;padding:0;border:0;border-radius:10px;background:#48658238;color:#d5eafa;font-size:25px}
body:not(.home-lobby-expanded) .home-hub #starport{height:clamp(560px,70svh,850px);min-height:0}
.home-hub .hh-stops-head{gap:16px;align-items:center;margin-top:24px}.home-hub .hh-stops-head p{margin:5px 0 0;font-size:13px;color:#b4cddd}
.home-hub .hh-cards{display:flex;gap:14px;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;scrollbar-width:thin;scrollbar-color:#698caa #172d43;padding:7px 3px 14px;scroll-padding:3px;overscroll-behavior-x:contain}
.home-hub .hh-cards>.hh-card{flex:0 0 258px;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:12px;padding:20px;min-height:230px;border-radius:18px;scroll-snap-align:start;background:linear-gradient(140deg,#21405a,#142a41);box-shadow:none}
.home-hub .hh-cards>.hh-card.hh-game-mini{background:linear-gradient(140deg,#333d67,#202a48)}
.home-hub .hh-cards>.hh-card.hh-game-learn{background:linear-gradient(140deg,#254c4c,#162e3b)}
.home-hub .hh-cards .hh-card-copy{display:flex;flex:1;flex-direction:column;align-items:flex-start;gap:8px;min-width:0;width:100%;align-self:stretch}
.home-hub .hh-cards .hh-card-copy strong{font-size:21px;line-height:1.25}.home-hub .hh-cards .hh-card-copy>span{font-size:13px;line-height:1.5;color:#bad1e3}
.home-hub .hh-cards .hh-card-copy>b{margin-top:auto;padding-top:6px;font-size:13px;color:#c9f1ff}
.home-hub .hh-cards :is(.hh-card-art,.hh-trophy,img){order:-1;position:static;flex:0 0 46px;display:grid;place-items:center;width:46px;height:46px;font-size:31px;opacity:1;object-fit:contain}
.home-hub .hh-cards .hh-creator img{object-fit:cover;object-position:43% 68%;border-radius:12px}
.home-hub .hh-carousel-controls button{width:44px;height:44px;flex-shrink:0;border-radius:12px}
@media(max-width:760px){
 .home-hub .hh-welcome{margin:10px 0 12px;gap:6px}.home-hub .hh-welcome>div{min-width:135px}.home-hub .hh-kicker{font-size:13px}
 #home.home-hub-active .hh-daily-slot .daily{grid-template-columns:minmax(0,1fr);padding:14px 56px 14px 16px;gap:9px}
 #home .hh-daily-slot .daily>.primary{justify-self:start;max-width:100%;min-height:44px}.home-hub .hh-daily-slot{margin-bottom:14px}
 body:not(.home-lobby-expanded) .home-hub #starport{height:clamp(470px,66svh,720px)}
 .home-hub .hh-stops-head h2{font-size:18px;line-height:1.35}.home-hub .hh-stops-head p{font-size:12px}
 .home-hub .hh-cards>.hh-card{flex-basis:min(258px,80vw);min-height:224px;padding:18px}
 .home-hub .hh-carousel-controls{gap:5px}.home-hub .hh-carousel-controls button{width:40px;height:44px}
}
