/* Japanese uses Japanese glyph forms, with a local fallback for offline play. */
html:lang(ja) {
  --font: 'Hiragino Maru Gothic ProN', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Meiryo', system-ui, sans-serif;
  --font-title: 'Hiragino Maru Gothic ProN', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Meiryo', sans-serif;
}
html:lang(ja) body, html:lang(ja) button, html:lang(ja) input, html:lang(ja) select {
  font-family: 'Hiragino Maru Gothic ProN', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Meiryo', sans-serif;
}
html:lang(ko) {
  --font: 'Apple SD Gothic Neo', 'Malgun Gothic', 'Noto Sans KR', system-ui, sans-serif;
  --font-title: 'Apple SD Gothic Neo', 'Malgun Gothic', 'Noto Sans KR', system-ui, sans-serif;
}
html:lang(ko) body, html:lang(ko) button, html:lang(ko) input, html:lang(ko) select {
  font-family: 'Apple SD Gothic Neo', 'Malgun Gothic', 'Noto Sans KR', system-ui, sans-serif;
  word-break: keep-all;
}
html:is(:lang(en), :lang(ja), :lang(ko)) button { overflow-wrap: anywhere; }
html:is(:lang(en), :lang(ja), :lang(ko)) .seg > * { min-width: 0; }
