body > header{direction:ltr;gap:12px}
.language-picker{position:relative;display:flex;align-items:center;margin-left:auto;color:#b8c9bf;font-size:12px;white-space:nowrap}
.language-globe{position:absolute;left:10px;display:flex;pointer-events:none}
.language-picker select{font:inherit;color:#e5eee8;background:#18271f;border:1px solid #52675a;border-radius:6px;padding:7px 8px 7px 34px;min-height:34px;cursor:pointer}
.language-picker select:focus-visible{outline:2px solid #a0c4ae;outline-offset:2px}
@media(max-width:600px),(max-height:520px){
 .language-picker select{width:40px;height:36px;min-width:0;padding:0;color:transparent;appearance:none;-webkit-appearance:none}
 .language-picker select option{color:#e5eee8;background:#18271f}
 .language-globe{left:11px}
 body:has(.nightfall-lobby) > header{display:flex}
}
html[dir=rtl] .nightfall-lobby,html[dir=rtl] .panel,html[dir=rtl] .account-panel,html[dir=rtl] .player-profile-dialog{direction:rtl;text-align:right;font-family:Tahoma,Arial,sans-serif}
html[dir=rtl] .lobby-code,html[dir=rtl] .party-stats,html[dir=rtl] .survival-time span,html[dir=rtl] .ability-key{direction:ltr;unicode-bidi:isolate}
html[dir=rtl] .hero-card,html[dir=rtl] .lobby-biome{text-align:center}
html[dir=rtl] .upgrade-panel .card>.item-icon{left:auto;right:14px}
html[dir=rtl] .upgrade-panel .card .choice-key{right:auto;left:12px}
html[dir=rtl] .pause-item>summary{text-align:right}
/* Keep canvas controls, health fill and desktop drawer on their original sides. */
#game,.hud,.wave-badge,.bottom,.dev-tools-drawer{direction:ltr}
