/* Localization additions. Existing art, animation coordinates and design tokens are shared. */
:root { --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", "Noto Sans CJK JP", "Noto Sans CJK SC", "Noto Sans CJK TC", "Noto Sans Arabic", "Noto Nastaliq Urdu", "Noto Sans Thai", "Noto Sans Devanagari", "Noto Sans Bengali", "Noto Sans Tamil", "Noto Sans Telugu", Arial, sans-serif; }
html:lang(ar), html:lang(ur) { line-height: 1.85; }
:lang(ar) h1, :lang(ar) h2, :lang(ar) h3, :lang(ur) h1, :lang(ur) h2, :lang(ur) h3 { line-height: 1.5; letter-spacing: normal; }
html:not(:lang(en)) .sh { --play: var(--font); }
:lang(ar) .sh main h1, :lang(ar) .sh main h2, :lang(ar) .sh main h3, :lang(ur) .sh main h1, :lang(ur) .sh main h2, :lang(ur) .sh main h3 { line-height: 1.5; }
:lang(th) .sh main h1, :lang(th) .sh main h2, :lang(hi) .sh main h1, :lang(bn) .sh main h1, :lang(ta) .sh main h1, :lang(te) .sh main h1 { line-height: 1.5; }
.header__inner { grid-template-columns: auto minmax(0, 1fr) auto auto; gap: clamp(8px, 1.5vw, 20px); }
.header .nav { justify-self: center; min-width: 0; }
.header .nav a { padding-inline: clamp(8px, 1.1vw, 20px); text-align: center; line-height: 1.3; }
.header > .wrap > .btn { grid-column: 4; }
.language-picker { position: relative; min-width: 0; }
.language-picker summary { display: flex; gap: 8px; align-items: center; padding: 8px 10px; min-height: 44px; border: 1px solid var(--line); border-radius: 22px; cursor: pointer; font-size: .875rem; background: var(--ivory); list-style: none; }
.language-picker summary::-webkit-details-marker { display: none; }
.language-picker summary bdi { max-width: 12em; overflow-wrap: anywhere; }
.language-picker nav { position: absolute; inset-inline-end: 0; top: calc(100% + 8px); width: min(280px, calc(100vw - 32px)); max-height: min(65vh, 520px); overflow-y: auto; overscroll-behavior: contain; background: var(--white); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 8px; }
.language-picker ul { list-style: none; }
.language-picker a { display: block; min-height: 44px; padding: 8px 14px; border-radius: 8px; text-decoration: none; }
.language-picker a:hover, .language-picker a[aria-current] { background: var(--line); }
.language-suggestion { position: fixed; inset-inline-end: 20px; bottom: 20px; width: min(390px, calc(100vw - 40px)); background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 20px; box-shadow: var(--shadow); z-index: 60; }
.language-suggestion[hidden] { display: none; }
.language-suggestion .btn { margin-block: 12px; padding-block: 8px; }
.language-suggestion button { display: block; font: inherit; color: inherit; background: transparent; border: 0; text-decoration: underline; cursor: pointer; min-height: 44px; }
.btn { white-space: normal; text-align: center; padding-block: 8px; }
.doc, .card, .lead, .release__body, .cast__copy { overflow-wrap: anywhere; }
.legal-english { margin-block-end: 16px; font-size: .875rem; }
[dir="rtl"] .doc ul { padding-inline-start: 1.4em; padding-inline-end: 0; }
[dir="rtl"] .doc { text-align: start; }
/* Keep artwork and screenshot scrolling in their original coordinate system. */
[dir="rtl"] .gallery, [dir="rtl"] .room, [dir="rtl"] .game-hero__art { direction: ltr; }
[dir="rtl"] .gallery figcaption { direction: rtl; text-align: start; }
[dir="rtl"] .hero__copy { margin-inline-end: auto; }
[dir="rtl"] .room { direction: ltr; }
[dir="rtl"] .hero > .wrap { direction: ltr; }
[dir="rtl"] .hero__copy { direction: rtl; }
[dir="rtl"] .skip { left: auto; inset-inline-start: 16px; }
:lang(th) h1, :lang(th) h2, :lang(hi) h1, :lang(bn) h1, :lang(ta) h1, :lang(te) h1 { line-height: 1.5; letter-spacing: normal; }
@media (max-width: 1100px) {
 :root { --header: 132px; }
 .header__inner { grid-template-columns: auto 1fr auto; grid-template-rows: 76px 48px; row-gap: 0; }
 .header .nav { grid-column: 1 / -1; grid-row: 2; justify-self: stretch; justify-content: space-evenly; margin-inline: 0; }
 .language-picker { grid-column: 2; grid-row: 1; justify-self: end; }
 .header > .wrap > .btn { grid-column: 3; grid-row: 1; }
}
@media (max-width: 560px) {
 :root { --header: 144px; }
 .header__inner { grid-template-columns: auto 1fr auto; grid-template-rows: 82px 54px; column-gap: 8px; }
 .header .logo img { width: 56px; }
 .header > .wrap > .btn { padding-inline: 10px; font-size: .8rem; max-width: 9em; line-height: 1.4; }
 .language-picker summary { gap: 5px; padding-inline: 8px; font-size: .8rem; }
 .language-picker summary bdi { max-width: 7em; }
 .header .nav a { padding-inline: 5px; font-size: .8rem; min-height: 44px; }
 .language-picker nav { position: fixed; inset-inline: 16px; top: 78px; width: auto; }
}
/* Nastaliq has tall contextual forms: retain generous leading in Urdu copy. */
:lang(ur) body, :lang(ur) .lead { line-height: 2.1; }
:lang(ur) .sh-tag { line-height: 2; }
:lang(ur) .sh main h1, :lang(ur) .sh main h2, :lang(ur) .sh main h3 { line-height: 1.9; }
:lang(ur) .header { font-family: "Noto Naskh Arabic", "Geeza Pro", Tahoma, sans-serif; line-height: 1.6; }
