/* Same four entries before and after JavaScript. Keep original content and native swipe. */
html body header #header-list377{grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}
html body header #header-list377>a,html body header #header-list377 .nav-group379>summary{min-height:44px;padding:6px 3px;font-size:.875rem;line-height:1.2;white-space:normal;display:flex;align-items:center;justify-content:center;text-align:center}
html body header #header-list377>a{text-decoration:none;color:var(--nav-ink393,#e3ebdf);border:1px solid #53664a;border-radius:8px;background:#182a20}
html body header #header-list377>a[aria-current=page]{color:#defa82;background:#263c28;box-shadow:inset 0 -2px 0 #defa82}
html body header .desktop-nav383 .nav-more340>div{max-height:min(65svh,440px);overflow-y:auto;overscroll-behavior:contain}
html body header .desktop-nav383 .nav-more340:last-child>div .motion-preference{width:100%;margin:10px 0 0;min-height:44px;font-size:.875rem;border-top:1px solid #617454}
@media(min-width:1101px){
 html body header .desktop-nav383{gap:clamp(12px,1.7vw,28px)}
 html body header .desktop-nav383 .nav-more340>div{width:360px;max-width:calc(100vw - 32px);display:none;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;padding:12px}
 html body header .desktop-nav383 .nav-more340[open]>div{display:grid}
 html body header .desktop-nav383 .nav-more340>div>a{display:flex;align-items:center;min-height:44px;padding:8px 10px;font-size:.9375rem;line-height:1.35}
 html body header .desktop-nav383 .nav-more340>div .motion-preference{grid-column:1/-1}
}

/* Override legacy nowrap/40px declarations on direct links as well as summaries. */
html body header #header-list377>a,html body header #header-list377>.nav-group379>summary{min-width:0;min-height:44px!important;white-space:normal!important;overflow-wrap:anywhere}
html body header .motion-preference{max-width:none;box-sizing:border-box}
html body header #header-list377 .nav-panel379 .motion-preference{grid-column:1/-1;width:100%;min-height:44px;margin:4px 0 0;font-size:.875rem;white-space:normal}
@media(max-width:420px){html body header #header-list377 .nav-panel379{grid-template-columns:minmax(0,1fr)}}

/* Keep the current game group visible while its disclosure is closed. */
html body header .desktop-nav383 .nav-more340:has(a[aria-current="page"])>summary{color:var(--nav-accent393,#defa82);box-shadow:inset 0 -2px 0 var(--nav-accent393,#defa82)}

/* Shared focus and press feedback without moving the header or its content. */
html body header :is(#header-list377>a,#header-list377 summary,#header-list377 .nav-panel379>a,.desktop-nav383 a,.desktop-nav383 summary){transition:background-color .12s ease,color .12s ease,border-color .12s ease}
html body header :is(#header-list377>a,#header-list377 summary,#header-list377 .nav-panel379>a):focus-visible{outline:2px solid var(--nav-accent393,#defa82);outline-offset:2px}
html body header :is(#header-list377>a,#header-list377 summary,#header-list377 .nav-panel379>a,.desktop-nav383 a,.desktop-nav383 summary):active{background-color:#30432a;color:#f0ffd6}
html body header #header-list377 .nav-panel379>a{min-width:0;word-break:normal;line-height:1.45}
@media(prefers-reduced-motion:reduce){html body header :is(#header-list377>a,#header-list377 summary,#header-list377 .nav-panel379>a,.desktop-nav383 a,.desktop-nav383 summary){transition:none}}
html.reduced-motion body header :is(#header-list377>a,#header-list377 summary,#header-list377 .nav-panel379>a,.desktop-nav383 a,.desktop-nav383 summary){transition:none}
