/* International typography keeps the same engraved fantasy hierarchy as English,
   while each writing system gets a glyph-complete classical serif fallback. */
html[data-international="true"] {
 --font-fantasy-display:"Cinzel Decorative","Cinzel","Palatino Linotype",Georgia,serif;
 --font-fantasy-heading:"Cinzel","Marcellus SC","Palatino Linotype",Georgia,serif;
 --font-fantasy-ui:"Marcellus SC","Cinzel","Palatino Linotype",Georgia,serif;
 --font-fantasy-body:"EB Garamond","Palatino Linotype",Georgia,"Times New Roman",serif;
}

html[data-script="cyrillic"],html[data-script="greek"] {
 --font-fantasy-display:"Palatino Linotype","Book Antiqua",Georgia,"Times New Roman",serif;
 --font-fantasy-heading:"Palatino Linotype","Book Antiqua",Georgia,"Times New Roman",serif;
 --font-fantasy-ui:"Palatino Linotype","Book Antiqua",Georgia,"Times New Roman",serif;
 --font-fantasy-body:"EB Garamond","Palatino Linotype",Georgia,"Times New Roman",serif;
}

html[data-script="japanese"] {
 --font-fantasy-display:"Yu Mincho Demibold","Yu Mincho","Hiragino Mincho ProN","Noto Serif JP",serif;
 --font-fantasy-heading:"Yu Mincho","Hiragino Mincho ProN","Noto Serif JP",serif;
 --font-fantasy-ui:"Yu Mincho","Hiragino Mincho ProN","Noto Serif JP",serif;
 --font-fantasy-body:"Yu Mincho","Hiragino Mincho ProN","Noto Serif JP",serif;
}

html[data-script="korean"] {
 --font-fantasy-display:Batang,"Nanum Myeongjo","Noto Serif KR",serif;
 --font-fantasy-heading:Batang,"Nanum Myeongjo","Noto Serif KR",serif;
 --font-fantasy-ui:Batang,"Nanum Myeongjo","Noto Serif KR",serif;
 --font-fantasy-body:Batang,"Nanum Myeongjo","Noto Serif KR",serif;
}

html[data-script="han-tc"] {
 --font-fantasy-display:"PMingLiU","MingLiU","Noto Serif TC",serif;
 --font-fantasy-heading:"PMingLiU","MingLiU","Noto Serif TC",serif;
 --font-fantasy-ui:"PMingLiU","MingLiU","Noto Serif TC",serif;
 --font-fantasy-body:"PMingLiU","MingLiU","Noto Serif TC",serif;
}

html[data-script="thai"] {
 --font-fantasy-display:"Leelawadee UI","Th Sarabun New","Noto Serif Thai",serif;
 --font-fantasy-heading:"Leelawadee UI","Th Sarabun New","Noto Serif Thai",serif;
 --font-fantasy-ui:"Leelawadee UI","Th Sarabun New","Noto Serif Thai",serif;
 --font-fantasy-body:"Leelawadee UI","Th Sarabun New","Noto Serif Thai",serif;
}

html[data-international="true"] body,
html[data-international="true"] .home-page,
html[data-international="true"] .hero-list-page,
html[data-international="true"] .story-page,
html[data-international="true"] .alchemist-page,
html[data-international="true"] #detail-content,
html[data-international="true"] .preview-note p {font-family:var(--font-fantasy-body)}

html[data-international="true"] button,
html[data-international="true"] input,
html[data-international="true"] select,
html[data-international="true"] textarea,
html[data-international="true"] .site-nav,
html[data-international="true"] .site-search,
html[data-international="true"] .language-control,
html[data-international="true"] .language-menu,
html[data-international="true"] .home-actions,
html[data-international="true"] .home-rail,
html[data-international="true"] .blog-mobile-tabs,
html[data-international="true"] .blog-tag,
html[data-international="true"] .hero-nav,
html[data-international="true"] .loadout-cta,
html[data-international="true"] .hero-list-filters,
html[data-international="true"] .hero-list-summary,
html[data-international="true"] .animation-bar,
html[data-international="true"] .viewer-tools,
html[data-international="true"] .toggle-row,
html[data-international="true"] .field-label {font-family:var(--font-fantasy-ui);letter-spacing:.035em}

html[data-international="true"] .site-brand,
html[data-international="true"] .portal-boot-brand,
html[data-international="true"] .brand,
html[data-international="true"] .blog-reader h1,
html[data-international="true"] .hero-list-heading h1,
html[data-international="true"] .hero-list-card span,
html[data-international="true"] .hero-identity h2,
html[data-international="true"] h2,
html[data-international="true"] h3,
html[data-international="true"] h4,
html[data-international="true"] .sidebar-title,
html[data-international="true"] #item-list strong,
html[data-international="true"] .set-card strong {font-family:var(--font-fantasy-heading)}

html[data-international="true"] .home-hero h1,
html[data-international="true"] .overview-hero h1,
html[data-international="true"] .banner-copy h1,
html[data-international="true"] .history-hero-copy>h1,
html[data-international="true"] .matches-banner h1,
html[data-international="true"] .alchemist-hero h1,
html[data-international="true"] .alchemist-detail-copy h1,
html[data-international="true"] .hero-title h1 {
 font-family:var(--font-fantasy-display);
 font-weight:700;
 line-height:1.1;
 letter-spacing:.018em;
 text-wrap:balance;
 overflow-wrap:anywhere;
}

html[data-script="japanese"] *,html[data-script="korean"] *,html[data-script="han-tc"] *,html[data-script="thai"] * {letter-spacing:normal}
html[data-script="thai"] body {line-height:1.65}

/* Long-language layout: controls may wrap, but never force horizontal scrolling. */
html[data-international="true"] .site-nav a,
html[data-international="true"] .home-actions a,
html[data-international="true"] .hero-nav a,
html[data-international="true"] .loadout-cta,
html[data-international="true"] button {overflow-wrap:anywhere}
html[data-length="long"] .site-nav a {padding-inline:15px;font-size:14px}
html[data-length="long"] .home-actions a {min-width:230px;white-space:normal;line-height:1.2;text-align:center}
html[data-length="long"] .hero-nav a {min-height:46px;height:auto;padding-block:8px}
html[data-international="true"] .hero-title {max-width:min(650px,calc(100% - 175px))}
html[data-international="true"] #sets-button {
 display:grid;
 grid-template-columns:34px minmax(0,1fr);
 grid-template-rows:auto auto;
 column-gap:9px;
 row-gap:2px;
 height:auto;
 min-height:62px;
 padding:8px 10px;
}
html[data-international="true"] #sets-button .slot-icon {
 grid-column:1;
 grid-row:1/3;
 align-self:center;
}
html[data-international="true"] #sets-button strong,
html[data-international="true"] #sets-button small {
 grid-column:2;
 min-width:0;
 margin:0;
 white-space:normal;
 overflow-wrap:anywhere;
}
html[data-international="true"] #sets-button strong {
 align-self:end;
 font-size:13px;
 line-height:1.15;
}
html[data-international="true"] #sets-button small {
 align-self:start;
 font-size:10px;
 line-height:1.2;
 letter-spacing:0;
}

/* Translated stage controls must remain inside their buttons instead of
   colliding when labels are longer than the Chinese source copy. */
html[data-international="true"] .animation-bar {min-width:0}
html[data-international="true"] .animation-bar select {flex:0 1 175px;min-width:82px}
html[data-international="true"] .viewer-tools {min-width:0;flex:0 1 auto}
html[data-international="true"] .viewer-tools button {
 width:auto;
 min-width:106px;
 max-width:190px;
 padding-inline:10px;
 overflow:hidden;
}
html[data-international="true"] .viewer-tools button span {
 display:block;
 min-width:0;
 overflow:hidden;
 text-overflow:ellipsis;
 white-space:nowrap;
}

@media(max-width:1200px) and (min-width:701px) {
 html[data-international="true"] .animation-bar select {flex-basis:140px;width:140px}
 html[data-international="true"] .viewer-tools button {width:92px;min-width:0;max-width:92px;padding-inline:7px}
}

@media(max-width:700px) {
 html[data-international="true"] .site-nav a {padding-inline:8px;font-size:12px;line-height:1.15;text-align:center}
 html[data-international="true"] .home-hero h1 {font-size:clamp(30px,9vw,43px)}
 html[data-international="true"] .home-actions a {width:min(310px,100%);min-width:0;white-space:normal}
 html[data-international="true"] .hero-title {max-width:calc(100% - 112px)}
 html[data-international="true"] .hero-title h1 {font-size:clamp(26px,8vw,36px)}
 html[data-international="true"] #sets-button {grid-template-columns:28px minmax(0,1fr);min-height:56px}
 html[data-length="long"] .site-nav a {font-size:11px}
}
