/* Scoped public header. Native nav/account nodes are moved, never cloned. */
:root{--studio-header-height:88px}
.studio-header-shell,.studio-header-shell *{box-sizing:border-box}
.studio-header-menu:not([open])>[data-studio-menu-panel],.studio-language-picker:not([open])>.studio-language-options{display:none}
.site-header{padding:0;display:block;overflow:visible;border-bottom:1px solid rgba(255,255,255,.16)}
.studio-header-shell{--header-accent:#ed1524;--header-ink:#111113;--header-paper:#f1eee7;--header-panel:#1a1a1d;--language-accent-rgb:237,21,36;--language-popover:#171719;display:flex;align-items:center;gap:24px;width:min(100%,1440px);min-height:88px;margin:auto;padding:0 24px;color:var(--header-paper);position:relative}
.studio-header-shell[data-studio-site=mpw]{--header-accent:#e4ad68;--header-ink:#111a20;--header-paper:#f7eedf;--header-panel:#1e2b33;--language-accent-rgb:228,173,104;--language-popover:#17232a;gap:20px}
.site-header .studio-header-brand{margin:0;flex:0 0 auto;display:flex;align-items:center;justify-content:flex-start;width:180px;min-height:56px;gap:0;transform:none;filter:none;text-decoration:none}
.site-header .studio-header-brand img{width:100%;height:auto;object-fit:contain;filter:none;transform:none;box-shadow:none;border:0;background:none}
.site-header .studio-header-shell[data-studio-site=mpw] .studio-header-brand{width:300px;height:80px}
.site-header .studio-header-logo{display:block;width:300px;height:75px}
.site-header .studio-header-brand .studio-header-image{display:block;width:300px;height:75px}
.studio-header-tools{display:flex;align-items:center;justify-content:flex-end;gap:20px;flex:1 1 auto;min-width:0}
.studio-header-menu{flex:1 1 auto;min-width:0}
.studio-header-menu>[data-studio-menu-toggle]{display:none}
.studio-header-menu>[data-studio-menu-panel]{display:flex;align-items:center;justify-content:flex-end;gap:24px;min-width:0}
.site-header :is(.main-nav,.header-nav){display:flex;flex-wrap:nowrap;align-items:center;justify-content:center;gap:18px;min-width:0;width:auto;order:0;margin:0}
.site-header :is(.main-nav,.header-nav)>a{display:flex;align-items:center;justify-content:center;min-height:44px;padding:8px 0;white-space:nowrap;overflow-wrap:normal;font-size:14px;line-height:1.4;letter-spacing:0}
.studio-header-account{flex:0 0 auto;min-width:0}
.studio-header-account .studio-player-account{margin:0;max-width:246px}
.site-header .studio-header-account :is(.header-cta,.studio-header-account-entry,.studio-player-entry,.studio-player-menu>summary){display:block;min-height:44px;max-width:246px;margin:0;padding:12px 14px;font:700 14px/1.4 Arial,sans-serif;white-space:nowrap;letter-spacing:0;text-decoration:none;overflow:hidden;text-overflow:ellipsis}
.site-header .studio-header-account .studio-header-account-entry{border:1px solid #b7b5b1;color:var(--header-paper)}
.site-header .studio-player-menu>summary{max-width:192px}
.site-header .studio-player-panel :is(a,button){display:block;width:100%;min-height:44px;white-space:normal;overflow-wrap:anywhere}
.studio-language-picker-mobile{display:none}
.studio-language-picker-desktop{display:block}
.studio-language-picker{position:relative;flex:0 0 auto;margin:0;font:400 .875rem/1.4 Arial,sans-serif}
.studio-language-picker>[data-studio-language-toggle]{display:flex;align-items:center;justify-content:center;gap:8px;min-width:52px;min-height:44px;padding:8px;border:1px solid transparent;border-radius:4px;color:var(--header-paper);background:transparent;cursor:pointer;list-style:none}
.studio-language-picker>summary::-webkit-details-marker{display:none}
.studio-language-picker>summary:hover,.studio-language-picker[open]>summary{border-color:rgba(255,255,255,.12);background:rgba(255,255,255,.04)}
.studio-language-picker svg{display:block;width:24px;height:16px;flex:0 0 auto;overflow:hidden;box-shadow:0 0 0 1px rgba(255,255,255,.2)}
.studio-language-picker [data-studio-selected-language]{display:none}
.studio-language-chevron{display:block;flex:0 0 auto;width:6px;height:6px;margin-top:-3px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;font-size:0;line-height:0;opacity:.7;transform:rotate(45deg)}
.studio-language-picker[open] .studio-language-chevron{margin-top:3px;transform:rotate(225deg)}
.studio-language-options{position:absolute;inset-inline-end:0;top:calc(100% + 6px);min-width:188px;max-height:calc(100dvh - var(--studio-header-height) - 24px);overflow-y:auto;overscroll-behavior:contain;margin:0;padding:6px;background:var(--language-popover);border:1px solid rgba(255,255,255,.12);border-radius:8px;box-shadow:0 14px 32px rgba(0,0,0,.36),0 2px 6px rgba(0,0,0,.18);z-index:125}
.studio-language-options>a{display:flex;align-items:center;gap:10px;min-height:44px;padding:10px 11px;color:var(--header-paper);text-decoration:none;white-space:nowrap;border-radius:4px}
.studio-language-options>a:hover{background:rgba(255,255,255,.055)}
.studio-language-options>a[aria-current=true]{color:var(--header-paper);background:rgba(var(--language-accent-rgb),.12)}
.studio-language-options>a[aria-current=true]:hover{background:rgba(var(--language-accent-rgb),.18)}
.studio-language-options>a[aria-current=true]::after{content:'✓';margin-inline-start:auto;padding-inline-start:8px;font-size:13px;color:var(--header-accent)}
.site-header :is(a,summary,button):focus-visible{outline:3px solid var(--header-accent);outline-offset:3px}
.studio-header-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.studio-header-menu-glyph{display:grid;width:20px;gap:4px}
.studio-header-menu-glyph i{display:block;height:2px;background:currentColor}
.studio-header-menu[open]>.studio-header-menu-glyph i{transform:none}
.studio-header-menu[open]>summary .studio-header-menu-glyph i:first-child{transform:translateY(6px) rotate(45deg)}
.studio-header-menu[open]>summary .studio-header-menu-glyph i:nth-child(2){opacity:0}
.studio-header-menu[open]>summary .studio-header-menu-glyph i:last-child{transform:translateY(-6px) rotate(-45deg)}
[id]{scroll-margin-top:calc(var(--studio-header-height) + 16px)}
/* Hide the unfocused skip link by its own height, including enlarged Greek text. */
.skip-link{position:fixed;top:0;max-width:calc(100% - 40px);transform:translateY(calc(-100% - 20px))}
.skip-link:focus{top:12px;transform:none}
@media(max-width:1279px){
 :root{--studio-header-height:72px}
 .site-header .studio-header-shell{min-height:72px;padding:8px 16px;gap:8px;justify-content:space-between}
 .site-header .studio-header-brand{width:128px;min-height:56px}
 .site-header .studio-header-shell[data-studio-site=mpw] .studio-header-brand{width:56px;height:56px}
 .site-header .studio-header-logo{width:56px;height:56px}
 .site-header .studio-header-brand .studio-header-image{width:56px;height:56px}
 .studio-header-tools{flex:0 0 auto;gap:8px}
 .studio-header-menu{flex:0 0 auto}
 .studio-header-menu>[data-studio-menu-toggle]{display:flex;align-items:center;justify-content:center;width:44px;min-height:44px;padding:0;border:1px solid #797a7c;border-radius:4px;cursor:pointer;list-style:none;color:var(--header-paper);background:transparent}
 .studio-header-menu>summary::-webkit-details-marker{display:none}
 .studio-header-menu>[data-studio-menu-panel]{position:absolute;left:0;right:0;top:100%;display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:12px;max-height:calc(100dvh - var(--studio-header-height) - 8px);overflow-y:auto;overscroll-behavior:contain;padding:12px 16px 16px;background:var(--header-panel);border-top:1px solid rgba(255,255,255,.16);border-bottom:1px solid var(--header-accent);box-shadow:0 16px 24px rgba(0,0,0,.25);z-index:120}
 .studio-header-menu>[data-studio-menu-panel]>*{flex:0 0 auto}
 .site-header :is(.main-nav,.header-nav){display:flex;flex-direction:column;align-items:stretch;gap:4px;width:100%;margin:0}
 .site-header :is(.main-nav,.header-nav)>a{justify-content:flex-start;min-height:48px;padding:12px;font-size:1rem;line-height:1.5;white-space:normal;overflow-wrap:break-word;text-align:start}
 .studio-header-menu .studio-language-picker{width:100%;border-top:1px solid rgba(255,255,255,.16);padding-top:12px}
 .studio-header-menu .studio-language-picker>[data-studio-language-toggle]{justify-content:flex-start;width:100%;min-height:48px;padding:12px;font-size:1rem}
 .studio-header-menu .studio-language-picker [data-studio-selected-language]{display:inline}
 .studio-header-menu .studio-language-picker .studio-language-chevron{margin-inline-start:auto}
 .studio-header-menu .studio-language-options{position:static;min-width:0;max-height:none;margin-top:4px;box-shadow:none;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,max(8.25rem,40%)),1fr));gap:4px;padding:4px;border-color:rgba(255,255,255,.16)}
 .studio-header-menu .studio-language-options>a{gap:8px;padding:10px 8px;min-height:48px;white-space:normal;font-size:.9375rem;overflow-wrap:normal}
 .studio-header-menu .studio-language-options>a[aria-current=true]::after{padding-inline-start:0}
 .studio-header-account{border-top:1px solid rgba(255,255,255,.16);padding-top:12px;width:100%}
 .studio-header-account .studio-player-account{max-width:100%;width:100%;margin:0}
 .site-header .studio-header-account :is(.header-cta,.studio-header-account-entry,.studio-player-entry,.studio-player-menu>summary){width:100%;max-width:100%;min-height:48px;font-size:1rem;line-height:1.5;padding:12px;white-space:normal;overflow-wrap:anywhere;overflow:visible;text-overflow:clip;text-align:start}
 .site-header .studio-header-account .studio-player-panel{position:static;margin-top:8px;width:100%;max-width:100%;padding:12px;gap:4px}
 .site-header .studio-header-account .studio-player-panel :is(a,button){font-size:1rem;line-height:1.5}
}
@media(max-width:767px){.studio-language-picker-desktop{display:none}.studio-language-picker-mobile{display:block}}
@media(max-width:360px){.site-header .studio-header-shell{padding-inline:12px}}
@media(prefers-reduced-motion:reduce){.studio-header-menu-glyph i{transition:none}}
/* Localized page copy wraps naturally without clipping. */
html:not([lang=en]) :is(.building-slide,.alpha-signups-top)>*{min-width:0;max-width:100%}
html:not([lang=en]) :is(p,li,h2,h3,.section-label){overflow-wrap:break-word}
html:not([lang=en]) .section-label{white-space:normal}
html:not([lang=en]) .alpha-signups-total small{white-space:normal;overflow-wrap:break-word}
html[lang=el-GR] :is(h1,h2,h3,p,a,button,summary){overflow-wrap:anywhere}
html[lang=el-GR] .building-slide>*{min-width:0}
html[lang=el-GR] .alpha-signups-top>*{min-width:0;max-width:100%}html[lang=el-GR] .alpha-signups-total{min-width:0;max-width:100%}html[lang=el-GR] .alpha-signups-total small{white-space:normal;overflow-wrap:anywhere}
@media(max-width:360px){html[lang=el-GR] .alpha-signups-total strong{font-size:clamp(2rem,14vw,3rem)}html[lang=el-GR] .alpha-signups-total span{font-size:1.6rem}}
html[lang=el-GR] .section-label{white-space:normal}html[lang=el-GR] .section-label>span:not(.section-rule){min-width:0;overflow-wrap:anywhere}
/* Greek hero words and the studio mark remain whole at narrow phone widths. */
@media(max-width:400px){html[lang=el-GR] #hero-title{font-size:clamp(36px,12.5vw,52px);overflow-wrap:normal;word-break:normal}html[lang=el-GR] #hero-title>span:not(.red-period){white-space:nowrap}html[lang=el-GR] :is(.hero-eyebrow,.hero-kicker){flex-wrap:wrap;overflow-wrap:normal;word-break:normal}}
html:not([lang=en]) :is(.philosophy-grid,.section-heading)>*{min-width:0}
html:not([lang=en]) .alpha-banner>*{min-width:0}html:not([lang=en]) .banner-actions :is(a,button){max-width:100%}
html:not([lang=en]) :is(h1,h2,h3,p,a,button,summary){overflow-wrap:anywhere}@media(max-width:400px){html:not([lang=en]) #hero-title{font-size:clamp(36px,12.5vw,52px);overflow-wrap:normal;word-break:normal}html:not([lang=en]) :is(.hero-eyebrow,.hero-kicker){flex-wrap:wrap;overflow-wrap:normal;word-break:normal}}
html:not([lang=en]) .together h2{max-width:100%}

.studio-language-picker :is([data-studio-language-native],[data-studio-selected-language]){min-width:0;overflow-wrap:anywhere}
html:not([lang=en]) .vision-layout>*{min-width:0}

/* Language-aware typography and semantic RTL. Artwork/flags keep their original orientation. */
html:lang(ko) :is(body,h1,h2,h3,h4,a,button,summary,input){font-family:"Malgun Gothic","Apple SD Gothic Neo","Segoe UI",Arial,sans-serif;word-break:keep-all;overflow-wrap:break-word;letter-spacing:normal}
html:lang(zh) :is(body,h1,h2,h3,h4,a,button,summary,input){font-family:"Microsoft YaHei","PingFang SC","Segoe UI",Arial,sans-serif;word-break:normal;overflow-wrap:break-word;letter-spacing:normal}
html:lang(ko) :is(p,li),html:lang(zh) :is(p,li){line-height:1.7}
html[dir=rtl] body{font-family:"Segoe UI",Tahoma,Arial,sans-serif;text-align:start;line-height:1.75}
html[dir=rtl] :is(h1,h2,h3,h4,p,a,button,summary,label,li,.eyebrow,.section-label,.hero-eyebrow,.hero-kicker,.hero-bottom){font-family:"Segoe UI",Tahoma,Arial,sans-serif;letter-spacing:normal;text-transform:none;word-break:normal;overflow-wrap:break-word}
html[dir=rtl] :is(h1,h2,h3,h4){line-height:1.35;font-weight:700}
html[dir=rtl] :is(.studio-header-shell,.studio-language-picker){font-family:"Segoe UI",Tahoma,Arial,sans-serif}
html[dir=rtl] .studio-player-panel{right:auto;left:0;text-align:start}
html[dir=rtl] .skip-link{left:auto;right:20px}
html[dir=rtl] :is(.image-caption,.art-caption){left:auto;right:36px}
html[dir=rtl] .game-art figcaption{text-align:end}
html[dir=rtl] .card-symbol{right:auto;left:25px}
html[dir=rtl] :is(.principle-card,.integrity-values article){border-right:0;border-left:1px solid #595451}
html[dir=rtl] :is(.principle-card,.integrity-values article):first-child{border-right:1px solid #595451}
html[dir=rtl] :is(.alpha-signups-total strong,.alpha-signups-total>span){direction:ltr;unicode-bidi:isolate;display:inline-block}
html[dir=rtl] :is(.text-link,.button) svg{transform:scaleX(-1)}
html[dir=rtl] :is(.building-gallery,.building-slide,.building-tabs){text-align:start}
html[dir=rtl] .building-gallery-controls svg{transform:scaleX(-1)}
html[dir=rtl] .studio-player-menu>summary,[data-server-player],[data-studio-language-native],[data-studio-selected-language],bdi[data-studio-bidi]{unicode-bidi:isolate}
@media(max-width:1279px){html[dir=rtl] .studio-header-account .studio-player-panel{left:auto;right:auto}}
@media(max-width:600px){html[dir=rtl] :is(.image-caption,.art-caption){right:20px}}

[data-studio-bidi-flow]{min-width:0;max-width:100%}

/* Preserve Korean word boundaries, including the narrow hero ID override. */
html:lang(ko) :is(p,li,em,strong,span,label,figcaption){word-break:keep-all;overflow-wrap:break-word}
html:lang(ko) #hero-title,html:lang(ko) #hero-title *{word-break:keep-all;overflow-wrap:normal}
/* Mirror the reading shade alone; the underlying illustration stays untouched. */
html[dir=rtl] .hero-shade,html[dir=rtl] .game-overlay,html[dir=rtl] .concept-section::before,html[dir=rtl] .guild-teaser::before,html[dir=rtl] .world-hero::before{transform:scaleX(-1)}

/* Give the Arabic studio navigation consistent, legible script typography. */
html:lang(ar) .site-header .studio-header-shell[data-studio-site="925bits"] .studio-header-account :is(.header-cta,.studio-header-account-entry,.studio-player-entry,.studio-player-menu>summary){font-family:"Segoe UI",Tahoma,Arial,sans-serif}
@media(min-width:1280px){
 html:lang(ar) .site-header .studio-header-shell[data-studio-site="925bits"] :is(.main-nav,.header-nav){gap:22px}
 html:lang(ar) .site-header .studio-header-shell[data-studio-site="925bits"] :is(.main-nav,.header-nav)>a,
 html:lang(ar) .site-header .studio-header-shell[data-studio-site="925bits"] .studio-header-account :is(.header-cta,.studio-header-account-entry,.studio-player-entry,.studio-player-menu>summary){font-size:16px;line-height:1.5}
}
