/* First adopter: home main content. Other components migrate separately. */
body.mobile-home .mobile-home-main{box-sizing:border-box;inline-size:100%;max-inline-size:var(--layout-max);max-width:var(--layout-max);min-inline-size:0;margin-inline:auto;padding-inline:var(--page-gap)}
body.mobile-home .mobile-home-main> *{min-inline-size:0}

/* One navigation DOM: phone bar/collapsed chat menu, persistent desktop rail. */
@media(min-width:64rem){
 html[data-sneebo-theme] body.desktop-navigation-ready:has(.mobile-bottom-nav){--site-rail-size:6rem;box-sizing:border-box;padding-inline-start:var(--site-rail-size)!important;padding-block-end:0!important}
 html[data-sneebo-theme] body.desktop-navigation-ready:has(.mobile-bottom-nav) nav.mobile-bottom-nav:not([hidden]){position:fixed;inset:0 auto 0 0;inline-size:var(--site-rail-size);width:var(--site-rail-size);max-inline-size:var(--site-rail-size);block-size:100dvh;height:100dvh;max-block-size:100dvh;max-height:100dvh;min-block-size:0;transform:none;margin:0;padding:1rem .5rem;display:flex;flex-direction:column;justify-content:flex-start;justify-content:safe center;gap:.75rem;border:0;border-inline-end:1px solid var(--site-border);border-radius:0;background:var(--site-bg);box-shadow:none;overflow-y:auto;z-index:1040}
 html[data-sneebo-theme] body.desktop-navigation-ready:has(.mobile-bottom-nav) nav.mobile-bottom-nav:not([hidden]) .nav-item{inline-size:100%;width:100%;flex:none;display:flex;flex-direction:column;justify-content:center;gap:.375rem;min-block-size:3.5rem;padding:.5rem .25rem;border-radius:.75rem;min-inline-size:0;white-space:normal;overflow-wrap:anywhere}
 html[data-sneebo-theme] body.desktop-navigation-ready:has(.mobile-bottom-nav) nav.mobile-bottom-nav .mobile-nav-label{font-size:.75rem;line-height:1.4;flex-wrap:wrap;justify-content:center}
 html[data-sneebo-theme] body.desktop-navigation-ready:has(.mobile-bottom-nav) .chat-nav-toggle{display:none}
}

/* Informational links stay in normal content flow, including the no-JS fallback. */
html[data-sneebo-theme] body .site-footer{position:static;inline-size:100%;margin-block-start:1.5rem;padding-block:1rem;overflow-wrap:anywhere}
html[data-sneebo-theme] body .site-footer__inner{inline-size:100%;max-inline-size:var(--layout-max);padding-inline:var(--page-gap);box-sizing:border-box;min-inline-size:0}
html[data-sneebo-theme] body .site-footer__links{display:flex;flex-wrap:wrap;justify-content:center;gap:.5rem 1rem;min-inline-size:0}
html[data-sneebo-theme] body .site-footer__links a{display:inline-flex;align-items:center;min-block-size:2.75rem;font-size:.875rem;max-inline-size:100%;overflow-wrap:anywhere}

@media(min-width:64rem){html[data-sneebo-theme] body.park-game.desktop-navigation-ready:has(.mobile-bottom-nav) :is(.top-bar,#mapContainer,.bottom-bar){inset-inline-start:var(--site-rail-size)}}

@media(min-width:64rem){html[data-sneebo-theme] body.park-game.desktop-navigation-ready:has(.mobile-bottom-nav) .build-menu{inset-inline-start:var(--site-rail-size);inline-size:calc(100% - var(--site-rail-size))}}
