/* Compact lobby: all rows participate in layout, including the utility bar.
   Intrinsic-height rows must never shrink and push the profile above the viewport. */
#main-menu{
 grid-template-columns:repeat(2,minmax(0,500px));
 grid-template-rows:max-content max-content max-content;
 align-content:safe center;
 gap:12px 20px;
 padding:24px;
 overflow-x:hidden;overflow-y:auto;
 scroll-padding:24px;
}
#main-menu .menu-brand h1{font-size:clamp(32px,3.2vw,44px);line-height:.94}
#main-menu .menu-brand small{font-size:11px}
#main-menu #rank-profile{align-self:start;padding:12px 14px}
#main-menu #profile-username{margin-bottom:8px;font-size:10px}
#main-menu .rank-profile-top{gap:12px}
#main-menu .rank-profile-top>div:nth-child(2)>span{font-size:clamp(17px,1.8vw,23px)}
#main-menu .rank-profile-top>div:nth-child(2)>strong{font-size:clamp(16px,1.8vw,24px)}
#main-menu .rank-profile-badge{width:58px;height:66px;min-width:58px;max-width:58px;min-height:66px;max-height:66px}
#main-menu .rank-profile-actions{flex-basis:126px;gap:4px}
#main-menu .rank-profile-actions>button{padding:7px 8px;font-size:10px}
#main-menu .reaper-unlock-hint{min-height:44px;padding:4px 6px}
#main-menu .reaper-unlock-hint svg{width:27px;height:34px}
#main-menu .rank-profile-track{margin-top:12px;height:7px}
#main-menu #rank-profile p{margin:6px 0 0;font-size:11px}
#main-menu #rank-profile #save-status{margin-top:6px;font-size:10px}
#main-menu #rank-profile .ranked-boost-cta{min-height:36px;margin:9px 0 5px;padding:7px 8px;font-size:11px}
#main-menu .menu-play{gap:7px}
#main-menu .menu-play label{min-height:40px;padding:6px 10px;font-size:14px}
#main-menu .menu-play select{padding:7px 9px;font-size:13px}
#main-menu .menu-play button{min-height:54px;padding:9px 12px;font-size:16px}
#main-menu .menu-play button span{font-size:10px;margin-top:3px}
#main-menu #menu-resume{min-height:40px;font-size:14px}
#main-menu .menu-options{
 position:static;left:auto;bottom:auto;transform:none;width:auto;
 min-height:0;overflow:visible;align-items:stretch;padding:5px;
}
#main-menu .menu-options>button,#main-menu .menu-options>details{
 min-height:42px;padding:9px 6px;font-size:11px;
}
#main-menu .menu-options>details[open]{width:auto}
@media(max-width:700px){
 #main-menu{grid-template-columns:minmax(0,500px);padding:16px;gap:10px}
 #main-menu .menu-brand{display:none}
 #main-menu #rank-profile{grid-column:1;padding:10px 12px}
 #main-menu .rank-profile-top{display:grid;grid-template-columns:47px minmax(0,1fr);gap:10px}
 #main-menu .rank-profile-badge{width:47px;height:54px;min-width:47px;max-width:47px;min-height:54px;max-height:54px}
 #main-menu .rank-profile-actions{grid-column:1/-1;grid-template-columns:1fr 1.2fr 1fr;margin:0}
 #main-menu .rank-profile-actions>button{align-self:stretch;margin:0;font-size:10px;white-space:normal}
 #main-menu .menu-profile #profile-stats,#main-menu .menu-profile #save-status{display:none}
 #main-menu .menu-options{grid-column:1;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}
 #main-menu .menu-options>button,#main-menu .menu-options>details{min-height:40px}
}
@media(max-height:620px){
 #main-menu{align-content:start;padding-top:16px;padding-bottom:16px}
}
