/* Language handling shared by the title screen, the board and the three flight pages (the shared i18n.css, linked before this file,
   already switches capitals and letter spacing off for Arabic, Urdu, Hindi, Bengali and Thai). */

/* Labels written in sentence case in the string table but drawn in capitals, as the pages always did. */
.readout span, .rescue-panel span, .score span, .rescue-count span, .deice-state span, .objective-panel span, .message-panel span, .tutorial-card span,
.eyebrow, .touch-button span, .touch-cluster span, .touch-actions span, .mission-id span, .mission-id strong, .briefing-grid span, .result-card dt, kbd { text-transform: uppercase; }

/* Japanese, Korean and Chinese are not set with tracking: it splits the characters apart. */
:lang(ja) *, :lang(ko) *, :lang(zh) * { letter-spacing: 0 !important; text-transform: none !important; }

/* Right to left (Arabic, Urdu): text mirrors, the flight view and the readout numbers keep their place; arrows turn around. */
[dir=rtl] .arrow { display: inline-block; transform: scaleX(-1); }
[dir=rtl] .hud, [dir=rtl] .touch-controls { direction: ltr; }
[dir=rtl] .hud-panel, [dir=rtl] .objective-panel, [dir=rtl] .message-panel, [dir=rtl] .tutorial-card, [dir=rtl] .controls-panel { direction: rtl; }
[dir=rtl] .touch-controls button { direction: ltr; }
[dir=rtl] strong[id$="-value"], [dir=rtl] .score strong { unicode-bidi: plaintext; }
