/* Stable navigation before JS arrives; the menu overlays rather than moves content. */
:root{--site-header-height:92px}
html{scroll-padding-top:calc(var(--site-header-height) + 16px)}
.section{scroll-margin-top:0}
.section p{max-width:70ch}
.hero .first-goal{font-size:1rem;line-height:1.55}
#intro-status,.intro-caption,.infected p,.art-caption,.market-status,.music-credit p{font-size:14px;line-height:1.6}
.map-caption{align-items:flex-start}.map-caption h3{min-width:0;overflow-wrap:anywhere;hyphens:auto}
.howto-section summary{padding-inline:4px 12px}.howto-section summary>[data-t]{min-width:0;overflow-wrap:anywhere}
.howto-section .lesson-expand{display:grid;place-items:center;flex:0 0 22px;width:22px;height:22px;line-height:1}
.howto-actions button,.howto-actions button:first-child{height:auto;min-height:44px;padding:10px 6px}
.hero.motion-offscreen .hero-art img{animation-play-state:paused}
@media(max-width:1300px){
 :root{--site-header-height:72px}
 header,header.has-section-menu{display:grid!important;grid-template-columns:minmax(0,1fr) auto 44px;grid-template-rows:auto!important;gap:8px!important;height:72px!important;min-height:72px;padding:10px max(12px,env(safe-area-inset-right)) 10px max(12px,env(safe-area-inset-left))!important}
 header .brand{grid-column:1;grid-row:1;min-width:0;max-width:190px}
 header .wordmark-main{font-size:clamp(25px,4vw,32px);line-height:1}
 header .wordmark-sub{font-size:clamp(12px,1.8vw,15px);line-height:1.3}
 header .tools{grid-column:2;grid-row:1;gap:6px;justify-self:end}
 header .small-play{display:none}
 header :is(#sound,#language){height:44px;min-height:44px;min-width:44px}
 header #section-menu{display:block;grid-column:3;grid-row:1;justify-self:end;width:44px;min-width:44px;height:44px;min-height:44px;padding:0;margin:0;border:1px solid #63745d;border-radius:9px;background:#1b281e;color:#edf4e1;font-size:0;text-align:center}
 header #section-menu::after{content:'☰';font:24px/1 system-ui}
 header #section-menu[aria-expanded=true]::after{content:'×';font-size:30px}
 header nav,header.has-section-menu nav{display:none!important}
 header nav.menu-open,header #section-navigation.menu-open{display:grid!important;position:absolute!important;inset:100% 0 auto!important;transform:none!important;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;max-height:calc(100svh - 80px);overflow:auto;overscroll-behavior:contain;gap:8px;padding:12px!important;margin:0;background:#142019;border:1px solid #54634d;border-top:0;box-shadow:0 16px 24px #0006}
 header nav a{white-space:normal;min-height:44px;font-size:15px!important;line-height:1.4;padding:10px 12px;background:#223227;border-radius:7px;overflow-wrap:anywhere}
 header nav a[aria-current]{background:#d9f78c;color:#17251c}
 header nav .motion-preference{grid-column:1/-1;text-align:left;width:100%}
}
@media(max-width:600px){
 .section{padding-top:56px;padding-bottom:56px}
 .section-heading{margin-bottom:24px}
 .section-heading h2{font-size:clamp(30px,8.4vw,42px);line-height:1.15;letter-spacing:-.025em}
 .section-heading>p:last-child{font-size:16px;line-height:1.65}
 .hero .first-goal{font-size:14px}
 .trade-card{padding:18px}.trade-card a{white-space:normal}
}
@media(orientation:landscape) and (max-height:500px){
 :root{--site-header-height:60px}
 header,header.has-section-menu{height:60px!important;min-height:60px;padding-block:6px!important}
 .section{padding-top:32px;padding-bottom:32px}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
/* Long translations and user-enlarged text must keep every label readable. */
main :is(h1,h2,h3){overflow-wrap:anywhere}
.howto-actions button,.howto-actions button:first-child{overflow-wrap:anywhere;hyphens:auto}
