/* Shared mobile header for the public portals and the standalone play launcher.
   Keep play-site/web/mobile-header.css identical. Desktop sizing is unchanged. */
@media (max-width:800px) {
  html .mf-sticky-top .p-header,
  html .mn-top .mn-top-inner { height:60px!important; min-height:60px!important; padding:0 52px 0 10px!important; box-sizing:border-box; }
  html .mf-sticky-top .p-header-inner { height:60px!important; min-height:60px!important; padding:0!important; margin:0!important; }
  html .mf-sticky-top .p-header-content { width:100%; min-width:0; gap:8px!important; padding:0!important; justify-content:flex-start!important; flex-wrap:nowrap!important; }
  html .mf-sticky-top .p-header-logo { margin:0!important; flex:0 0 32px; }
  html .mf-sticky-top .p-header-logo img,
  html .mn-top .mn-brand img { width:32px!important; height:32px!important; max-height:32px!important; object-fit:contain; }
  html .mf-sticky-top .mn-brand,
  html .mn-top .mn-brand { min-width:0; gap:8px!important; white-space:nowrap; }
  html .mf-sticky-top .mn-brand .colortext,
  html .mf-sticky-top .mn-brand .mn-slash,
  html .mf-sticky-top .mn-brand .mn-forums,
  html .mf-sticky-top .mn-brand .mn-status,
  html .mn-top .mn-name { font-size:clamp(16px,4.6vw,24px)!important; line-height:1.15!important; }
  html .mf-sticky-top .mn-sky,
  html .mn-top .mn-sky { width:32px!important; height:32px!important; min-width:32px; top:30px!important; right:10px!important; transform:translateY(-50%)!important; margin:0!important; background-size:contain; }
  html .mn-top::after { height:60px; }
  html .mf-sticky-top .p-nav,
  html .mn-top .mn-nav { padding:0!important; }
  html .mf-sticky-top .p-nav-inner,
  html .mn-top .mn-nav-inner { display:flex!important; flex-wrap:wrap!important; align-items:center!important; min-height:0!important; gap:6px!important; padding:4px 10px 8px!important; margin:0 auto!important; box-sizing:border-box; }
  html .mf-sticky-top .p-nav-scroller { float:none!important; flex:1 1 100%!important; min-width:0; max-width:100%; margin:0!important; }
  html .mf-sticky-top .hScroller-scroll { margin:0!important; }
  html .mf-sticky-top .p-nav-list,
  html .mn-top .mn-nav-list { display:grid!important; grid-template-columns:repeat(5,minmax(0,1fr)); flex:1 1 100%!important; width:100%; min-height:0!important; gap:4px!important; padding:0!important; margin:0!important; white-space:normal!important; }
  html .mf-sticky-top .p-nav-list>li,
  html .mn-top .mn-nav-list>li { float:none!important; min-width:0; margin:0!important; }
  html .mf-sticky-top .p-navEl { display:flex!important; width:100%; margin:0!important; }
  html .mf-sticky-top .p-nav-list::before, html .mf-sticky-top .p-nav-list::after,
  html .mf-sticky-top .p-nav-inner::before, html .mf-sticky-top .p-nav-inner::after { content:none!important; display:none!important; }
  html .mf-sticky-top .p-navgroup { float:none!important; width:100%; }
  html .mf-sticky-top .p-nav .p-nav-list .p-navEl-link,
  html .mn-top .mn-nav-link { display:flex!important; align-items:center; justify-content:center; width:100%; min-height:40px; padding:6px 3px!important; font-size:13px!important; line-height:1.2!important; box-sizing:border-box; white-space:nowrap; }
  html .mf-sticky-top .p-nav-opposite,
  html .mn-top .mn-forums-auth { float:none!important; flex:1 1 100%!important; width:100%; max-width:100%; min-width:0; margin:0!important; }
  html .mf-sticky-top .p-navgroup,
  html .mn-top .mn-forums-auth { display:flex; flex-wrap:wrap!important; justify-content:flex-end!important; align-items:center; gap:6px!important; }
  html .mn-top .mn-forums-auth[hidden] { display:none!important; }
  html .mf-sticky-top .p-navgroup-link,
  html .mn-top .mn-forums-auth a { min-height:36px!important; height:36px!important; padding:0 8px!important; font-size:13px!important; line-height:1.2!important; box-sizing:border-box; }
  html .mf-sticky-top .mf-user { min-width:0; max-width:152px; gap:6px!important; }
  html .mf-sticky-top .mf-user .p-navgroup-linkText,
  html .mn-top .mn-forums-auth a:not(.mn-forums-logout):not(.mn-forums-connect) { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  html .mn-top .mn-forums-auth a:not(.mn-forums-logout):not(.mn-forums-connect) { max-width:180px; }
  html .mf-sticky-top .mf-account-menu { max-width:calc(100vw - 24px); box-sizing:border-box; }
  html .mf-sticky-top .mf-nav-info-menu,
  html .mn-top .mn-info-menu { min-width:155px; max-width:calc(100vw - 24px); }
  html .mf-sticky-top .mf-nav-info-menu a,
  html .mn-top .mn-info-menu a { font-size:14px; min-height:40px; padding:8px!important; box-sizing:border-box; }
}
/* One horizontal navigation row, including account controls; swipe on narrow screens. */
@media(max-width:800px){
 html .mf-sticky-top .p-nav .p-nav-inner,html .mn-top .mn-nav-inner{flex-wrap:nowrap!important;justify-content:flex-start!important;gap:6px!important;padding:4px 8px 6px!important;overflow-x:auto!important;overflow-y:hidden!important;scrollbar-width:thin;scrollbar-color:#636e83 transparent;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}
 html .mf-sticky-top .p-nav-scroller{flex:0 0 auto!important;width:auto!important;max-width:none!important;overflow:visible!important}
 html .mf-sticky-top .hScroller-scroll{width:auto!important;overflow:visible!important}
 html .mf-sticky-top .p-nav-list,html .mn-top .mn-nav-list{display:flex!important;flex-wrap:nowrap!important;flex:0 0 auto!important;width:max-content!important;gap:4px!important;white-space:nowrap!important;min-height:0!important}
 html .mf-sticky-top .p-nav-list>li,html .mn-top .mn-nav-list>li{flex:0 0 auto!important;min-width:0!important}
 html .mf-sticky-top .p-nav .p-nav-list .p-navEl-link,html .mn-top .mn-nav-link{width:auto!important;min-width:47px!important;min-height:36px!important;height:36px!important;padding:6px!important;font-size:11px!important;white-space:nowrap!important}
 html .mf-sticky-top .p-nav-opposite,html .mn-top .mn-forums-auth{flex:0 0 auto!important;width:auto!important;max-width:none!important;margin:0 0 0 auto!important}
 html .mf-sticky-top .p-navgroup,html .mn-top .mn-forums-auth{width:auto!important;flex-wrap:nowrap!important;gap:5px!important}
 html .mf-sticky-top .p-navgroup-link,html .mn-top .mn-forums-auth a,html .mn-top .mn-forums-auth .mn-account-trigger{flex-shrink:0!important;height:36px!important;min-height:36px!important;font-size:11px!important;padding:0 7px!important}
 html .mf-sticky-top .mf-user,html .mn-top .mn-forums-auth .mn-account-trigger{max-width:120px!important;min-width:0!important}
 html .mf-sticky-top .mf-account-menu,html .mn-top .mf-account-menu,html .mf-sticky-top .mf-nav-info-menu,html .mn-top .mn-info-menu{position:fixed!important;right:auto!important;max-width:calc(100vw - 20px)!important;max-height:65dvh;overflow-y:auto;z-index:12000}
}
