[data-coco-language-menu] { box-sizing:border-box; width:100%; max-width:74rem; margin-inline:auto; padding:4px max(12px,env(safe-area-inset-right)); }
.coco-language-bar { display:flex; align-items:center; justify-content:flex-end; gap:.4rem; color:#214767; font:600 .9rem/1.4 system-ui,sans-serif; direction:ltr; }
.coco-language-bar select { appearance:auto; box-sizing:border-box; width:auto; min-height:40px; margin:0; padding:.3rem .6rem; border:1px solid #b6cddd; border-radius:.65rem; background:#fff; color:#173451; font:inherit; }
.coco-language-bar select:focus-visible { outline:3px solid #0984ad; outline-offset:2px; }
.coco-language-bar [role=status]:empty { display:none; }
html.coco-starting [data-coco-language-menu], body.embedded:not(.standalone) [data-coco-language-menu] {display:none;}
@media print { [data-coco-language-menu] {display:none!important;} }
[data-game-language] { display:block; width:fit-content; margin:.35rem 0; padding:.15rem .5rem; border:1px solid #c5d5e3; border-radius:.4rem; color:#274c66; background:#f1f6fa; font:600 .8rem/1.3 system-ui,sans-serif; }
[dir=rtl] :is(.cocoCrossBoard,#board,.board,.dice-tray) {direction:ltr;}

[data-coco-language-account] { grid-column:1 / -1; display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:.5rem; max-width:none; margin:0; padding:.2rem .25rem .65rem; border-bottom:1px solid #c5d9e6; direction:ltr; }
.coco-language-caption { color:#214767; font:600 .9rem/1.4 system-ui,sans-serif; }
[data-coco-language-account] .coco-language-bar { min-width:0; max-width:100%; margin-inline-start:auto; flex-wrap:wrap; }
[data-coco-language-account] [role=status]:not(:empty) { flex-basis:100%; text-align:end; }
#cocoApp [data-coco-language-account] .coco-language-bar select { width:auto; min-width:0; max-width:100%; margin:0; }

@media (max-width: 760px) { .coco-language-bar select { font-size: 16px; } }

/* Keep brand illustrations independent of the interface language. Text stays in
   normal document flow so longer translations, Arabic and Chinese can wrap. */
html body #cocoApp .eternaLauncherVisualFinal3[data-coco-localized-banner="eterna"] {
  display:block!important; height:auto!important; min-height:0!important;
  aspect-ratio:auto!important; padding:0!important; background-image:none!important;
  background-color:#092b49!important; text-align:start!important;
}
.cocoLocalizedHero { width:100%; min-width:0; direction:inherit; }
.cocoLocalizedHeroArt { display:block; width:100%; height:auto; aspect-ratio:1200/630; object-fit:contain; }
#cocoApp [data-coco-banner-caption] { display:grid; gap:.45rem; padding:1rem 1.2rem; text-align:start; color:#fff; }
#cocoApp [data-coco-banner-caption] b { color:#fff; font-size:clamp(1rem,2.2vw,1.4rem); line-height:1.3; overflow-wrap:anywhere; }
#cocoApp [data-coco-banner-caption] span { color:#d7eafa; font-size:clamp(.85rem,1.5vw,1rem); line-height:1.5; overflow-wrap:anywhere; }
html body #cocoApp .loginDecorStage[data-coco-localized-banner="coco"] > img.loginPoster { display:none!important; }
.cocoLocalizedPoster { width:min(100%,420px); margin-inline:auto; overflow:hidden; border-radius:21px; background:#092b49; box-shadow:0 7px 0 rgba(16,69,94,.15),0 16px 32px rgba(16,69,94,.13); direction:inherit; }
.cocoLocalizedPosterArt { display:block; width:100%; height:auto; aspect-ratio:1; object-fit:contain; }
#cocoApp .cocoLocalizedPoster [data-coco-banner-caption] { text-align:center; }
#cocoApp .cocoLocalizedPoster [data-coco-banner-caption] b { color:#ffe08a; }
