/* Languages added on 2026-11-10 (zh-CN, ko, vi, th, es-ES, es-419, de, fr, it, pt-BR, pt-PT, ru, uk, tr, pl,
   nl, sv, da, nb, fi, el, cs, hu, ro, bg, lt). Loaded only on those pages. html[data-i18n] names the script:
   latin | vietnamese | cyrillic | greek | hans | hangul | thai. No web fonts are added: each script falls back to
   system fonts that cover it, so the bundled Japanese subset is never asked for missing glyphs. */

/* Fonts per script. The Japanese InariSerif subset is not listed first, so Latin/Cyrillic/Greek text does not mix
   with glyphs from the Japanese font. */
html[data-i18n] body{font-family:Georgia,'Times New Roman','Noto Serif','DejaVu Serif',serif}
html[data-i18n=vietnamese] body{font-family:'Times New Roman','Noto Serif','Segoe UI',Tahoma,serif}
html[data-i18n=cyrillic] body,html[data-i18n=greek] body{font-family:Georgia,'Times New Roman','Noto Serif','PT Serif','DejaVu Serif',serif}
html[data-i18n=hans] body{font-family:'Noto Serif SC','Noto Serif CJK SC','Source Han Serif SC','Songti SC','STSong','SimSun',serif;line-break:strict}
html[data-i18n=hangul] body{font-family:'Noto Serif KR','Noto Serif CJK KR','AppleMyungjo','Nanum Myeongjo','Batang',serif;word-break:keep-all}
html[data-i18n=thai] body{font-family:'Noto Serif Thai','Noto Sans Thai','Thonburi','Leelawadee UI','Leelawadee','Tahoma','Loma',sans-serif}
html[data-i18n] .sans,html[data-i18n] .button,html[data-i18n] .nav,html[data-i18n] .eyebrow,html[data-i18n] .micro{font-family:Arial,'Helvetica Neue','Noto Sans','Segoe UI',sans-serif}
html[data-i18n=hans] .sans,html[data-i18n=hans] .button,html[data-i18n=hans] .nav,html[data-i18n=hans] .eyebrow,html[data-i18n=hans] .micro{font-family:Arial,'PingFang SC','Microsoft YaHei','Noto Sans SC',sans-serif}
html[data-i18n=hangul] .sans,html[data-i18n=hangul] .button,html[data-i18n=hangul] .nav,html[data-i18n=hangul] .eyebrow,html[data-i18n=hangul] .micro{font-family:Arial,'Apple SD Gothic Neo','Malgun Gothic','Noto Sans KR',sans-serif}
html[data-i18n=thai] .sans,html[data-i18n=thai] .button,html[data-i18n=thai] .nav,html[data-i18n=thai] .eyebrow,html[data-i18n=thai] .micro{font-family:Arial,'Noto Sans Thai','Thonburi','Leelawadee UI','Tahoma','Loma',sans-serif}
html[data-i18n] .creator-copy{font-family:inherit}

/* Wordmark tagline under STUDIO INARI comes from the page (data-tagline). */
html[data-i18n] .brand-name[data-tagline]:after{content:attr(data-tagline);font-size:7px;letter-spacing:.09em;white-space:nowrap}
html[data-i18n] .hero-identity .brand-name[data-tagline]:after{font-size:9px}
html[data-i18n=hans] .brand-name[data-tagline]:after,html[data-i18n=hangul] .brand-name[data-tagline]:after,html[data-i18n=thai] .brand-name[data-tagline]:after{font-size:9px;letter-spacing:.06em}
@media(max-width:350px){html[data-i18n] .site-header .brand-name[data-tagline-short]:after{content:attr(data-tagline-short)}}

/* Same layout as English for the space-separated languages. */
html[data-i18n] h1,html[data-i18n] h2,html[data-i18n] h3{letter-spacing:.02em;line-height:1.35;overflow-wrap:break-word;hyphens:auto;-webkit-hyphens:auto}
html[data-i18n] p,html[data-i18n] li,html[data-i18n] dd{letter-spacing:.01em;line-height:1.9;overflow-wrap:break-word;hyphens:auto;-webkit-hyphens:auto}
html[data-i18n] .hero h1{font-size:clamp(34px,4.2vw,62px);max-width:760px}
html[data-i18n] .hero-description{max-width:660px;line-height:1.8}
html[data-i18n] .vertical-note{writing-mode:horizontal-tb;max-width:200px;right:4%;font-size:14px;line-height:1.9;text-align:right;letter-spacing:.03em}
html[data-i18n] .story-section p{max-width:850px;margin-left:auto;margin-right:auto}
html[data-i18n] .story-section .ln{display:inline}
html[data-i18n] .story-section .ln:after{content:' '}
html[data-i18n] .feature-title{font-size:clamp(42px,7vw,90px);letter-spacing:.04em}
html[data-i18n] .feature-title-en{display:none}
html[data-i18n] .character-copy h3{font-size:clamp(24px,3.2vw,42px)}
html[data-i18n] .character-tabs{flex-wrap:wrap}
html[data-i18n] .character-tab{white-space:normal;line-height:1.5;min-height:44px}
html[data-i18n] .info-links strong{line-height:1.5}
html[data-i18n] .specs dd{overflow-wrap:anywhere}
html[data-i18n] .nav a small{display:none}
html[data-i18n] .news-page h1 span{display:inline}
html[data-i18n] .character-copy .roman{font-size:11px}
html[data-i18n] .game-logo{max-width:440px}

/* Long-word safeguards (de/fi/hu/nl compounds, ru/uk/el words): buttons, tabs, chips and table cells may wrap
   instead of pushing the page wider than the screen. */
html[data-i18n] .button,html[data-i18n] .text-link,html[data-i18n] .character-tab,html[data-i18n] .eyebrow,html[data-i18n] dt,html[data-i18n] th,html[data-i18n] td,html[data-i18n] summary,html[data-i18n] a{overflow-wrap:break-word;min-width:0}
html[data-i18n] .button{white-space:normal;text-align:center;max-width:100%}
html[data-i18n] main{overflow-wrap:break-word}
html[data-i18n] .doc-title,html[data-i18n] .article-body h1,html[data-i18n] .article-body h2{hyphens:auto;-webkit-hyphens:auto}

/* Chinese (Simplified): same rhythm as Taiwan Traditional Chinese. */
html[data-i18n=hans] h1,html[data-i18n=hans] h2,html[data-i18n=hans] h3{line-height:1.65;letter-spacing:.06em}
html[data-i18n=hans] p{line-height:2;letter-spacing:.035em}
/* Korean keeps words whole; Thai has no spaces between words, so it relies on the browser's dictionary breaking
   and must not be letter-spaced (it would separate vowel and tone marks). */
html[data-i18n=hangul] h1,html[data-i18n=hangul] h2,html[data-i18n=hangul] h3{line-height:1.5;letter-spacing:.01em}
html[data-i18n=hangul] p{line-height:1.95;letter-spacing:0}
html[data-i18n=thai] :is(p,h1,h2,h3,h4,li,dt,dd,td,th,summary,blockquote,label,.button,.text-link,.character-tab,.nav small,.hero-description,.vertical-note){letter-spacing:0!important}
html[data-i18n=thai] h1,html[data-i18n=thai] h2,html[data-i18n=thai] h3{line-height:1.6;word-break:normal;overflow-wrap:anywhere}
html[data-i18n=thai] p,html[data-i18n=thai] li,html[data-i18n=thai] dd{line-height:2.05}
html[data-i18n=thai] .eyebrow,html[data-i18n=thai] .micro{line-height:1.7}
/* Greek capitals: CSS uppercase drops tonos in Greek correctly; keep spacing modest. */
html[data-i18n=greek] .eyebrow{letter-spacing:.12em}

@media(max-width:480px){
html[data-i18n] .hero h1{font-size:33px}
html[data-i18n] .hero-description{font-size:13px}
html[data-i18n] .vertical-note{display:none}
html[data-i18n] .story-section{padding-left:7%;padding-right:7%}
html[data-i18n] .story-section h2{font-size:27px}
html[data-i18n] .story-section p{font-size:14px}
html[data-i18n] .gameplay-loop{grid-template-columns:1fr}
html[data-i18n] .gameplay-loop p{font-size:13px}
html[data-i18n] .gameplay-loop h3{font-size:21px}
html[data-i18n] .feature-copy{padding-left:7%;padding-right:7%}
html[data-i18n] .feature-copy p{font-size:13px}
html[data-i18n] .share-panel .button{flex-basis:190px}
html[data-i18n] .gallery-label{max-width:85%;line-height:1.5}
html[data-i18n] .creator-copy h2{font-size:28px}
html[data-i18n] .game-logo{max-width:290px}
html[data-i18n] .game-information h2{font-size:27px}
html[data-i18n] h1{font-size:min(1em,9vw)}
}
@media(max-width:350px){html[data-i18n] .hero-actions{flex-wrap:wrap;gap:14px}html[data-i18n] .hero-actions .button{max-width:100%}}
/* Longer translated hero copy grows the hero instead of running into the absolutely placed status line. */
html[data-i18n] .hero{height:auto;max-height:none}
html[data-i18n] .hero-content{padding-top:110px;padding-bottom:130px}
html[data-i18n] .banka-hero .hero-content{padding-top:110px;padding-bottom:110px}
@media(max-width:1000px){html[data-i18n] .hero-content{padding-top:120px;padding-bottom:140px}}
