/* Home joins the existing header row, with a reserved corner for the global menu. */
.game-session .menu-home-header{display:flex;align-items:center;gap:10px;box-sizing:border-box;min-width:0;padding-right:var(--gs-menu-clear,64px)!important}
.game-session .menu-home-header>div:first-child,.game-session .menu-home-header>h2,.game-session .menu-home-header>h3,.game-session .menu-home-header>strong:first-child{min-width:0;flex:1}
.game-session .menu-home-header>.menu-home-button{position:static!important;flex:0 0 auto!important;min-width:72px;min-height:44px;height:44px;padding:6px 10px!important;margin:0!important;white-space:nowrap;font-size:13px;line-height:1.2;pointer-events:auto}
/* Workshop already reserves its right corner in a separate wallet grid cell. */
.game-session #engineering .menu-home-header{padding-right:0!important}
.game-session .em-hud.menu-home-header{pointer-events:auto;max-width:calc(100% - 70px);padding-right:7px!important;gap:10px}
.game-session .em-hud.menu-home-header>span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis}
.game-session .em-hud.menu-home-header>.menu-home-button{min-height:36px;height:36px;font-size:12px}
.game-session .premium-preview>header.menu-home-header{display:block;position:relative;text-align:center}
.game-session .premium-preview>header.menu-home-header>.menu-home-button{position:absolute!important;top:0;right:var(--gs-menu-clear,64px);}
.game-session .premium-preview>header.menu-home-header>small{display:block;padding-right:80px}
@media(max-height:450px){.game-session .menu-home-header{gap:6px}.game-session .menu-home-header>.menu-home-button{min-width:64px;padding:4px 7px!important;font-size:12px}.game-session .rg-header.menu-home-header>p{font-size:10px}.game-session .cc-dashboard-title.menu-home-header>h3{font-size:20px}}
.game-session #car-crash .cc-dashboard-title.menu-home-header{height:44px;min-height:44px}
.em-assistant>span{pointer-events:none;max-width:84px;font-size:9px;white-space:normal}
.game-session .premium-preview>header.menu-home-header{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:12px;text-align:left}
.game-session .premium-preview>header.menu-home-header>small,.game-session .premium-preview>header.menu-home-header>h1{grid-column:1;padding-right:0}
.game-session .premium-preview>header.menu-home-header>p{grid-column:1/-1}
.game-session .premium-preview>header.menu-home-header>.menu-home-button{position:static!important;grid-column:2;grid-row:1/3;align-self:center}
.game-session #stuff-wars.sw-compact-setup>.menu-home-header{height:44px;min-height:44px;flex-shrink:0}
@media(max-height:400px){
 .game-session #stuff-wars.sw-compact-setup .sw-setup-grid{gap:4px;min-height:0;overflow:auto}
 .game-session #stuff-wars.sw-compact-setup .sw-setup-grid>section>h3{font-size:13px;margin:0 0 3px}
 .game-session #stuff-wars.sw-compact-setup .sw-slot{min-height:80px;padding:4px}
 .game-session #stuff-wars.sw-compact-setup .sw-slot img{height:32px;width:32px}
 .game-session #stuff-wars.sw-compact-setup .sw-battle-selection{margin-top:3px;gap:8px}
 .game-session #stuff-wars.sw-compact-setup .sw-battle-choice{min-height:60px;padding:5px 10px}
}
.game-session .premium-preview>header.menu-home-header{height:auto!important;min-height:0;flex:none;position:relative;inset:auto;overflow:visible;row-gap:5px}
.game-session .premium-preview>header.menu-home-header>p{position:static!important;margin:5px 0;max-width:100%}
.game-session .premium-preview .premium-items{position:static;margin:12px auto;clear:both}
.game-session .premium-preview{display:block;overflow-y:auto!important;padding-bottom:max(20px,env(safe-area-inset-bottom))}
