/* Same static navigation, moved into a native modal on small screens. */
.mobile-actions,.mobile-drawer{display:none}
body[data-desktop-header]:not(.mobile-nav-ready) .platform-header{display:block;padding:16px}
body[data-desktop-header]:not(.mobile-nav-ready) .platform-panel a{display:block;padding:10px}
body[data-desktop-header]:not(.mobile-nav-ready) .platform-dropdown summary{padding:12px;cursor:pointer}
body.mobile-menu-open{overflow:hidden!important}
@media(max-width:1023px){
html[data-theme] body[data-desktop-header="3b"]{padding-top:0!important}
html[data-theme] body[data-desktop-header="3b"] .platform-header{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;padding:12px 16px;background:var(--color-surface)!important;color:var(--color-text);border-bottom:1px solid var(--color-border)}
.platform-identity{min-width:0}.platform-brand{display:flex;min-height:44px;align-items:center;gap:8px;font:bold 15px Georgia,serif;letter-spacing:.6px}.platform-brand img{width:34px;height:34px;border-radius:50%;object-fit:cover}.platform-game,.platform-games{display:none}
body.mobile-nav-ready .mobile-actions{display:flex;align-items:center;gap:8px}
html[data-theme] body[data-desktop-header="3b"] .mobile-actions button{width:44px;height:44px;min-width:44px;padding:0!important;margin:0!important;display:flex;align-items:center;justify-content:center;background:var(--color-surface-elevated)!important;color:var(--color-text)!important;border:1px solid var(--color-border)!important;border-radius:10px;font-size:22px}
.mobile-actions .site-search-launch{font-size:0!important;gap:0!important}.mobile-actions .site-search-launch>span{font-size:24px}.mobile-actions kbd{display:none!important}
body.mobile-nav-ready .platform-controls{display:none}
html[data-theme] body[data-desktop-header="3b"] .main-nav{display:none!important}
html[data-theme] body[data-desktop-header="3b"] header>div:not(.header-tools){display:none!important}
html[data-theme] body[data-desktop-header="3b"] header{padding:12px 16px!important}
html[data-theme] body[data-desktop-header="3b"] header .saved{display:none!important}
html[data-theme] body[data-desktop-header="3b"] .mobile-drawer[open]{display:block;position:fixed;inset:0 0 0 auto;box-sizing:border-box;width:min(400px,calc(100% - 24px));height:100dvh;max-height:100dvh;max-width:100%;margin:0;padding:20px max(18px,env(safe-area-inset-right)) max(24px,env(safe-area-inset-bottom)) 18px;overflow-y:auto;overscroll-behavior:contain;border:0;border-left:1px solid var(--color-border);border-radius:0;background:var(--color-surface)!important;color:var(--color-text)!important;animation:mobile-enter 160ms ease-out}
.mobile-drawer::backdrop{background:color-mix(in srgb,var(--color-bg) 78%,transparent)}
.mobile-drawer-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}.mobile-drawer-head small{font-size:10px;letter-spacing:2px;color:var(--color-accent)}.mobile-drawer-head h2{font-size:20px;margin:5px 0;line-height:1.3}
html[data-theme] body[data-desktop-header="3b"] .mobile-drawer :is(button,a,summary){min-height:44px;box-sizing:border-box;color:var(--color-text)!important}
.mobile-close{width:44px;flex:0 0 44px;font-size:24px;padding:0}
html[data-theme] body[data-desktop-header="3b"] .mobile-preferences .site-language{position:static!important;display:flex!important;flex-wrap:wrap!important;justify-content:flex-start!important;width:auto!important;max-width:none!important;margin:0 0 18px!important;padding:0!important;gap:8px!important;background:transparent!important;border:0!important;box-shadow:none!important}
html[data-theme] body[data-desktop-header="3b"] .mobile-preferences :is(a,button){display:inline-flex;align-items:center;justify-content:center;gap:5px;padding:8px 10px!important;background:var(--color-surface-elevated)!important;border:1px solid var(--color-border)!important;border-radius:8px;font-size:13px!important}
.mobile-roots{display:flex;gap:8px;padding-bottom:18px;border-bottom:1px solid var(--color-border)}.mobile-roots a{display:flex;align-items:center;flex:1;padding:8px 12px;border-radius:8px;background:var(--color-surface-elevated)}
.mobile-drawer .platform-nav{display:block;margin:14px 0}.mobile-drawer .platform-dropdown{border-bottom:1px solid var(--color-border);margin:0}.mobile-drawer summary{display:flex;justify-content:space-between;align-items:center;padding:12px 4px;cursor:pointer;font-weight:600;list-style:none}.mobile-drawer summary::-webkit-details-marker{display:none}.mobile-drawer .platform-dropdown[open]>summary{color:var(--color-accent)!important}.mobile-drawer .platform-dropdown[open]>summary>span{transform:rotate(180deg)}
.mobile-drawer .platform-panel{position:static;width:auto;max-height:none;padding:0 0 12px;border:0;box-shadow:none}.mobile-drawer .platform-panel p{display:none}.mobile-drawer .platform-panel a{display:flex;align-items:center;padding:11px 12px;line-height:1.45;font-size:14px;border-radius:8px;overflow-wrap:anywhere}
html[data-theme] body[data-desktop-header="3b"] .mobile-drawer :is(a:hover,a[aria-current="page"]){background:var(--color-surface-elevated)!important;color:var(--color-accent)!important}
.mobile-drawer :is(a,button,summary):focus-visible,.mobile-actions button:focus-visible{outline:2px solid var(--color-interactive)!important;outline-offset:2px}
body[data-desktop-header="3b"] .site-search-dialog{max-height:calc(100dvh - 24px);padding:18px 14px;overscroll-behavior:contain}body[data-desktop-header="3b"] .site-search-dialog :is(button,a){min-height:44px}body[data-desktop-header="3b"] .site-search-dialog input{font-size:16px}
/* No-JS fallback uses the same generated links, without a modal or hamburger. */
body:not(.mobile-nav-ready) .platform-header{display:flex!important}body:not(.mobile-nav-ready) .platform-nav{display:block;width:100%}body:not(.mobile-nav-ready) .platform-panel a{display:block;padding:10px}body:not(.mobile-nav-ready) .platform-dropdown summary{padding:12px}
}
@keyframes mobile-enter{from{transform:translateX(16px);opacity:.7}to{transform:none;opacity:1}}
@media(prefers-reduced-motion:reduce){.mobile-drawer,.mobile-drawer *{animation:none!important;transition:none!important}}
