
.topbar .mobile-header-icon{display:none}
@media(max-width:759px){
 body:has(#game:not(.hidden))>.topbar{display:flex;flex-direction:row;flex-wrap:nowrap;align-items:center;justify-content:space-between;gap:10px;box-sizing:border-box;min-height:54px;height:auto;padding:6px 10px;grid-template-rows:none;grid-template-columns:none}
 body:has(#game:not(.hidden))>.topbar .brand{position:static!important;left:auto!important;transform:none!important;display:flex;align-items:center;flex:1 1 auto;width:auto;min-width:0;max-width:calc(100% - 90px);margin:0}
 body:has(#game:not(.hidden))>.topbar .topbar-logo{display:block;width:clamp(130px,44vw,175px);max-width:100%;height:42px;max-height:42px;object-fit:contain;object-position:left center}
 body:has(#game:not(.hidden))>.topbar .header-right{display:flex;flex-direction:row;flex-wrap:nowrap;align-items:center;justify-content:flex-end;gap:8px;flex:0 0 auto;width:auto;max-width:none;margin:0}
 body:has(#game:not(.hidden))>.topbar #soundPanel{display:block;order:0;position:relative;margin:0;justify-self:auto}
 body:has(#game:not(.hidden))>.topbar #mainMenuButton{order:1;align-self:center}
 body:has(#game:not(.hidden))>.topbar #soundPanelToggle,body:has(#game:not(.hidden))>.topbar #mainMenuButton{display:grid;place-items:center;box-sizing:border-box;width:40px;min-width:40px;max-width:40px;height:40px;min-height:40px;margin:0;padding:8px;border-radius:50%;line-height:1;grid-column:auto;grid-row:auto}
 body:has(#game:not(.hidden))>.topbar .mobile-header-icon{display:block;width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
 body:has(#game:not(.hidden))>.topbar .sound-panel-label,body:has(#game:not(.hidden))>.topbar .sound-panel-chevron,body:has(#game:not(.hidden))>.topbar .leave-game-label,body:has(#game:not(.hidden))>.topbar #roomBadge{display:none}
 body:has(#game:not(.hidden))>.topbar #soundPanel.expanded .sound-controls{position:fixed;top:56px;left:auto;right:10px;width:min(380px,calc(100vw - 20px));max-height:calc(100dvh - 70px);box-sizing:border-box;overflow:auto;z-index:50}
}
