/* Phone layouts use document flow so translated text cannot collide with artwork. */
@media(max-width:700px){
 html{scroll-padding-top:88px}body{background-attachment:scroll}
 .nav{height:72px;padding:0 16px;gap:8px}.nav-brand{gap:7px;min-width:0}.nav-name{font-size:17px;white-space:nowrap}.nav-icon{width:28px;height:28px;flex-shrink:0}.nav-right{margin-left:auto}.lang-switch{padding:0}.lang-switch button{min-width:32px;min-height:44px;padding:4px;font-size:11px}.nav-burger{width:44px;min-width:44px;min-height:44px;padding:12px}.nav-links{top:72px;max-height:calc(100dvh - 72px);overflow-y:auto}
 .hero{display:flex;flex-direction:column;align-items:stretch;min-height:0;height:auto;padding:100px 22px 26px;gap:0}.hero-inner{width:100%;max-width:none;margin:0;padding:0}.hero-inner>.eyebrow{font-size:9px;letter-spacing:.12em;line-height:1.6}.brand-title{margin:4px 0 16px}.brand-title img{width:100%;height:150px;max-height:none;object-fit:contain;object-position:left center}.hero-tagline{font-size:clamp(1.95rem,8vw,2.8rem);line-height:1.12;max-width:none;margin:0 0 18px}.hero-sub{font-size:15px;line-height:1.7;max-width:520px;margin-bottom:22px}.hero-cta{align-items:stretch;gap:10px;flex-direction:column}.hero-cta .btn{width:100%;justify-content:space-between;min-height:54px}.trailer-link{min-height:48px;font-size:14px}.hero-note{max-width:none;font-size:11px;line-height:1.6;margin:14px 0 0;color:#d5dfdd}.hero-character{position:relative;inset:auto;width:100%;height:285px;max-width:440px;align-self:center;margin:8px 0 0;opacity:1;transform:none!important;pointer-events:none}.hero-character img{width:100%;height:100%;object-fit:contain}.hero-bottom{position:relative;inset:auto;margin-top:4px}.hero-shadow{background:linear-gradient(180deg,#091521de 0%,#091521c9 52%,#09152130 75%,#090f1b 100%)}
 .section{padding:56px 22px}.section-head{margin-bottom:28px}.section-head h2,.roots-text h2{font-size:clamp(2.5rem,10vw,3.4rem);line-height:1.05;overflow-wrap:break-word}.section-lead{font-size:16px;line-height:1.65}.eyebrow{font-size:10px;letter-spacing:.15em}.story-track{grid-template-columns:1fr}.story-img{aspect-ratio:1.7}.story-card h3{font-size:28px}.story-card p{font-size:16px}
 .chars-section .char-grid{grid-template-columns:1fr;gap:32px}.char{display:grid;grid-template-columns:minmax(0,1fr);padding-bottom:28px;border-bottom:1px solid #81664433}.char-portrait{width:100%;max-width:280px;aspect-ratio:1;max-height:none;margin:0 auto 20px}.char h3{font-size:31px;margin:3px 0 12px}.char p{font-size:16px;line-height:1.7}.char .char-role{font-size:10px;margin-bottom:6px}.char:nth-child(2) .char-portrait img{object-position:-30% center}
 .worlds-section{padding-left:0;padding-right:0}.worlds-section>.section-head{padding:0 22px}.world-viewport{height:470px}.world-copy{left:22px;right:22px;bottom:48px}.world-title{font-size:2.8rem;line-height:1.06}.world-description{font-size:15px;line-height:1.65}.world-coordinate{margin-bottom:16px}.world-selector{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.world-selector button{padding:12px;min-height:64px;gap:8px;flex-direction:row}.world-selector button b{font-size:12px;line-height:1.4;overflow-wrap:break-word}
 .roots-inner{grid-template-columns:1fr}.roots-visual{max-width:330px}.roots-frame{aspect-ratio:1.15}.roots-list{flex-wrap:wrap}.pixel-passage{aspect-ratio:4/3;margin-bottom:30px}.gallery{gap:26px}.shot-zoom{width:40px;height:40px;bottom:6px;right:6px}
 .steam-section{padding:40px 16px}.steam-card{padding:30px 22px 0;display:flex;flex-direction:column;overflow:hidden}.steam-body{margin:0;max-width:none}.steam-body h2{font-size:clamp(2.5rem,10vw,3.4rem);line-height:1.05}.steam-body>.btn{display:flex;width:100%;font-size:14px;justify-content:center;padding:16px 12px;white-space:normal}.steam-kira{position:relative;inset:auto;width:100%;height:245px;object-fit:contain;order:2;margin:0}.steam-specs{gap:16px}.steam-specs li{min-width:0}.steam-specs li b{overflow-wrap:anywhere}
 .motion-control{right:10px;bottom:max(10px,env(safe-area-inset-bottom));width:44px;height:44px;padding:0;display:grid;place-items:center;border-radius:50%;background:#101b2de8}.motion-control [data-i18n="ui.motion"]{display:none}.motion-control .motion-symbol{font-size:15px}.footer{padding-bottom:80px}.social-grid{gap:8px}.social{min-height:92px}.news-form input[type=email]{min-width:0}
 .lore-hero{min-height:0;padding:112px 22px 48px}.lore-hero h1{font-size:clamp(3rem,12vw,4rem)}.lore-lead{font-size:16px}.lore-toc a{min-height:44px;display:inline-flex;align-items:center}.lore-two,.cast,.cast.rev,.sys-grid,.region-list{grid-template-columns:1fr}.lore-text h2{font-size:2.7rem}.lore-frame img{min-height:0}.cast-portrait{max-width:280px;height:300px}.guardian-grid{grid-template-columns:1fr}.crystal-list{grid-template-columns:repeat(2,minmax(0,1fr))}.lore-cta .btn{white-space:normal}
 .depth-plane-4{opacity:.3}.depth-scene::before{opacity:.35}
}
@media(max-width:360px){.nav{padding:0 10px;gap:4px}.nav-icon{display:none}.nav-name{font-size:16px}.lang-switch button{min-width:30px}.hero,.section{padding-left:18px;padding-right:18px}.worlds-section{padding-left:0;padding-right:0}.hero-character{height:250px}.brand-title img{height:135px}}

/* Keep the active marker inside each language button, clear of the pill border. */
.lang-switch button{position:relative}
.lang-switch button.is-on{box-shadow:none}
.lang-switch button.is-on::after{content:'';position:absolute;left:8px;right:8px;bottom:6px;height:1px;background:currentColor;pointer-events:none}
@media(max-width:700px){
 .news-form{flex-direction:column;flex-wrap:nowrap;align-items:stretch;gap:10px}
 .news-form input[type=email]{flex:0 0 auto;width:100%;height:48px;min-height:48px;max-height:48px;padding:12px 14px;font-size:16px;line-height:22px;border-radius:2px}
 .news-form button{flex:0 0 auto;min-height:48px;border-radius:2px}
}
