/* System CJK faces cover Simplified Chinese without downloading a large font during matches. */
html:lang(zh-CN) body,html:lang(zh-CN) body *{font-family:'Microsoft YaHei','PingFang SC','Noto Sans CJK SC','Noto Sans SC',system-ui,sans-serif!important}
html:lang(vi) body,html:lang(vi) button,html:lang(vi) input,html:lang(vi) select{font-family:Nunito,'Segoe UI',Arial,sans-serif}
.game-language{display:flex;align-items:center;gap:8px;flex-wrap:wrap;color:#15546b;font:800 13px/1.25 Nunito,'Segoe UI','Microsoft YaHei',sans-serif}
.game-language select{min-height:34px;max-width:150px;padding:5px 10px;border:2px solid #d2ac53;border-radius:10px;background:#fff6d8;color:#15546b;font:inherit;cursor:pointer}
.game-language select:focus-visible{outline:3px solid #0aa0bb;outline-offset:2px}
.game-language-note{flex-basis:100%;font-size:11px}
.game-language-note:empty{display:none}
.hud-editor-heading .game-language{margin-left:auto;margin-right:12px}
.auth-panel-content>.game-language{justify-content:center;margin-top:12px}
@media(orientation:landscape) and (max-height:520px){.game-language{font-size:11px;gap:4px}.game-language select{min-height:30px;max-width:120px}.auth-panel-content>.game-language{margin-top:5px}.hud-editor-heading .game-language>span:first-child{display:none}}

/* Keep the longer Vietnamese greeting inside the existing home profile card. */
@media(orientation:landscape) and (min-height:521px){
 html:lang(vi) body.arcade-home.home-art-active .topbar-profile small{max-width:100%;white-space:normal;letter-spacing:0;line-height:1.15}
}

/* Reserve every room utility; translated text and radio use the remaining desktop width. */
@media(orientation:landscape) and (min-height:521px) and (min-width:1151px){
 html:is(:lang(vi),:lang(zh-CN)) body.arcade-room .topbar>.room-art-title{flex:0 1 310px;min-width:240px}
 html:is(:lang(vi),:lang(zh-CN)) body.arcade-room .topbar>.room-art-title h1{max-width:100%;overflow:hidden;text-overflow:ellipsis}
 html:is(:lang(vi),:lang(zh-CN)) body.arcade-room .topbar #music-bar{flex:1 1 330px;min-width:230px;margin-left:0;margin-right:0}
 html:is(:lang(vi),:lang(zh-CN)) body.arcade-room .top-actions{flex:0 0 auto;gap:8px;margin-left:0}
 html:is(:lang(vi),:lang(zh-CN)) body.arcade-room .top-actions :is(.icon-button,.voice-toggle){flex-shrink:0}
 html:is(:lang(vi),:lang(zh-CN)) body.arcade-room .top-actions .connection-badge{min-width:0;max-width:120px;margin-right:0;overflow:hidden;text-overflow:ellipsis}
}
/* Full translated reward names stay inside their existing phone plaques. */
@media (orientation:landscape) and (max-height:520px) and (max-width:1100px){
 body.arcade-home.home-art-active #main-screen .home-quick-label,
 body.arcade-home.home-art-active #main-screen .home-quick[data-fit="compact"] .home-quick-label{font-size:11px;white-space:normal;overflow-wrap:normal;line-height:1.1;text-wrap:balance;box-sizing:border-box}
}
