/* Translated pages only: i18n/i18n.py links this into every page under /<lang>/.
   Right-to-left fixes mirror what the shared CSS places with left/right. */
@media (max-width:900px){
  [dir="rtl"] .site-head{padding:8px 12px 8px 108px}
  [dir="rtl"] .head-end{right:auto;left:8px}
  [dir="rtl"] .site-head .nav-play-m{margin-left:10px;margin-right:auto}
}
@media (max-width:600px){
  [dir="rtl"] .site-head .nav-play-m{margin-left:6px}
}
[dir="rtl"] .head-end{margin-left:0;margin-right:4px}
[dir="rtl"] .lang-menu ul{right:auto;left:0}
[dir="rtl"] .lang-menu summary::after{margin-left:0;margin-right:4px}
/* Longer words than the English (German, Russian) must not run off a phone screen. */
h1, h2, h3, .btn { overflow-wrap: break-word; }
h1 { hyphens: auto; }
/* thegoodluckcats.com: .pg-hero .wrap is width:100% plus padding (44px too wide); right to left that cuts the start of each line. */
[dir="rtl"] .pg-hero .wrap { box-sizing: border-box; }

/* The game app on /ar/enter/ (16 Nov 2026, appi18n): its panels read right to left, but the board is a map whose
   pan and zoom count scrollLeft from the left; in a right-to-left box the browser counts it the other way and the
   board opens on an empty corner. The board alone stays left to right; the words on it are still Arabic. */
[dir="rtl"] .hp-scroll { direction: ltr; }
