/* Languages: src/i18n.mjs sets <html lang dir> before the first screen draws. */
/* Arabic letters join up and wide tracking breaks the joins; Japanese, Korean and Chinese read best untracked too. */
:is(:lang(ar),:lang(ja),:lang(ko),:lang(zh)) body :is(*,*::before,*::after){letter-spacing:0 !important}
/* Arabic reads right to left, so menus mirror. The battlefield and the card faces keep their fixed geometry
   (lanes, mana, plaques); only the words inside them run right to left. */
/* Home too: its painting (the spear-maiden at the left) is composed around the left-to-right layout. */
[dir=rtl] :is(.arena,.cf,.hub,.pr-box-3d,.pr-bundle){direction:ltr} /* product boxes are drawn objects: their lettering must not mirror */
[dir=rtl] :is(.arena,.cf,.hub) :is(p,span,b,small,em,i,u,button,h1,h2,h3,h4,li,label,div){unicode-bidi:plaintext}
[dir=rtl] .st-lang select{direction:rtl}
/* Long words (German compounds above all) break with a hyphen instead of running out of their box. */
html:not(:lang(en)) body{hyphens:auto;-webkit-hyphens:auto;overflow-wrap:break-word}
/* Learn road titles were sized for short English names ("Hold the Line"); longer languages step down a size. */
:is(:lang(de),:lang(fr),:lang(es),:lang(pt)) .ln-text b{font-size:clamp(14px,1.1vw,19px);letter-spacing:.03em}
:is(:lang(de),:lang(fr),:lang(es),:lang(pt)) .ln-text small{font-size:12px;line-height:1.25}
:is(:lang(de),:lang(fr),:lang(es),:lang(pt)) .ln-frame{padding-top:26px} /* clear of the number/lock coin when the text runs long */
/* Japanese/Chinese: no line may start with ー or closing punctuation (kinsoku). */
:is(:lang(ja),:lang(zh)) body{line-break:strict}
html:not(:lang(en)) .hub-pass-next{letter-spacing:.03em}
.bp-sel small{text-overflow:ellipsis} /* a long language never just cuts the tier line off */
