.language-fieldset264{min-width:0;margin:12px 0;padding:14px;border:1px solid var(--border,#b9bdac);border-radius:16px;background:var(--panel,#ffffff12)}
.language-fieldset264 legend{font-weight:800;padding:0 6px}
.language-choices264{display:flex;gap:10px;flex-wrap:wrap}
.language-choices264 button{flex:1;min-width:110px;min-height:48px;font:inherit;font-weight:700;border:2px solid transparent;border-radius:12px;padding:10px 16px;cursor:pointer}
.language-choices264 button[aria-pressed="true"]{border-color:#997123;box-shadow:inset 0 0 0 1px #997123;background:#e9dbb4;color:#253b30}
.language-choices264 button:focus-visible{outline:3px solid #368eae;outline-offset:3px}
.language-fieldset264 p{font-size:.85rem;line-height:1.45;margin:10px 0 0}
[data-ui-theme="dark"] .language-fieldset264{background:#132a33;border-color:#45616a;color:#e7ece1}
[data-ui-theme="dark"] .language-choices264 button{background:#23414b;color:#f0eee1}
[data-ui-theme="dark"] .language-choices264 button[aria-pressed="true"]{background:#594c2d;border-color:#e6bf65;color:#fff3cd}
.language-online264{max-width:1120px;margin:0 auto;padding:8px 16px}
.language-online264 summary{cursor:pointer;font-weight:700;min-height:32px;display:list-item}
.language-online264 .language-fieldset264{max-width:420px}

.welcome-language264{display:flex;gap:4px;align-items:center;flex-wrap:wrap}.welcome-language264 button{min-width:36px;min-height:36px;padding:4px 7px}.welcome-language264 button[aria-pressed="true"]{outline:2px solid var(--gold,#997123);outline-offset:-2px}
@media(max-width:480px){.welcome-head127{flex-wrap:wrap;gap:8px}.welcome-head127>div{flex-wrap:wrap}.language-choices264 button{flex-basis:42%;min-width:0;padding:10px 8px}}

/* Prefer installed CJK fonts: no network font request or additional font payload. */
html:lang(zh-Hans) body{font-family:system-ui,-apple-system,BlinkMacSystemFont,"Noto Sans CJK SC","Noto Sans SC","Microsoft YaHei","PingFang SC",sans-serif;line-break:strict;word-break:normal}
html:lang(zh-Hans) body :is(h1,h2,h3,h4,button,input,select,textarea){font-family:inherit!important}
html:lang(zh-Hans) body :is(h1,h2,h3,h4,.eyebrow,.relic-rarity,.welcome-chapter127){letter-spacing:normal!important}

html:lang(ko) body{font-family:system-ui,-apple-system,BlinkMacSystemFont,"Noto Sans CJK KR","Noto Sans KR","Malgun Gothic","Apple SD Gothic Neo",sans-serif;line-break:strict;word-break:keep-all;overflow-wrap:anywhere}
html:lang(ko) body :is(h1,h2,h3,h4,button,input,select,textarea){font-family:inherit!important}
html:lang(ko) body :is(h1,h2,h3,h4,.eyebrow,.relic-rarity,.welcome-chapter127){letter-spacing:normal!important}

html:lang(ja) body{font-family:system-ui,-apple-system,BlinkMacSystemFont,"Noto Sans CJK JP","Noto Sans JP","Hiragino Kaku Gothic ProN","Yu Gothic",Meiryo,sans-serif;line-break:strict;word-break:normal;overflow-wrap:anywhere}
html:lang(ja) body :is(h1,h2,h3,h4,button,input,select,textarea){font-family:inherit!important}
html:lang(ja) body :is(h1,h2,h3,h4,.eyebrow,.relic-rarity,.welcome-chapter127){letter-spacing:normal!important}
