.language-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.language-options button{min-width:0;white-space:normal;overflow-wrap:normal}.language-dialog{width:min(560px,calc(100vw - 28px))}
html:is([lang=es],[lang=pt],[lang=fr],[lang=de],[lang=pl],[lang=tr],[lang=ar]) :is(button,label){overflow-wrap:normal;word-break:normal;hyphens:auto}
html:is([lang=es],[lang=pt],[lang=fr],[lang=de],[lang=pl],[lang=tr],[lang=ar]) .primary{white-space:normal}
html[dir=rtl] body{font-family:Tahoma,Arial,sans-serif}html[dir=rtl] :is(h1,h2,h3,h4,button,.small-label){font-family:Tahoma,Arial,sans-serif;letter-spacing:normal!important}
html[dir=rtl] :is(.nation-letter,.nation-selection-guide,.message-scroll-body,.personal-thread-content,.building-modal,.stable-info-dialog,.campaign-info-dialog,.talent-card){text-align:start}
html[dir=rtl] :is(.language-close,.enrollment-dialog-close){left:10px;right:auto}html[dir=rtl] .language-dialog h2{margin:0 0 12px 36px}
html[dir=rtl] :is(.map-stage,.map-zoom-surface,.map-grid,.map-search,.map-axis,.formation-grid,.formation-line-slots,.formation-slot,.formation-board,.battle-formation,.battle-formation-board,.battle-formation-slots,.battle-formations,.battle-replay-formations,.village-scene,.national-capital,.resource-bar){direction:ltr}
html[dir=rtl] :is(input[type=number],input[name=x],input[name=y],time,[data-campaign-timer],.campaign-coordinate-link,.map-coordinate,.map-menu-coordinate){direction:ltr;unicode-bidi:isolate}
html[dir=rtl] :is(.player-nickname,.player-name,.map-menu-castle-name,.castle-name,.formation-name,.personal-thread-message p,.guild-chat-messages p,.guild-description p){unicode-bidi:plaintext}
html[dir=rtl] :is(.battle-stat,.stable-info-table,.unit-info-table) :is(th,td){text-align:start}
html[dir=rtl] .desktop-quick-access>button>span{line-height:1.5;letter-spacing:normal}html[dir=rtl] .desktop-menu-cue{letter-spacing:normal}
@media(max-width:600px){.language-options{grid-template-columns:repeat(2,minmax(0,1fr))}.language-options button{font-size:15px}.language-dialog{padding:22px 16px}html[dir=rtl] .game-media-footer{gap:6px}html[dir=rtl] .game-music-toggle{max-width:78px}}
