/* Language links remain available in full-screen apps without covering controls. */
.language-switcher{position:relative;z-index:1000;display:flex;flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:4px;min-height:40px;box-sizing:border-box;padding:4px 16px;background:#101419;border-bottom:1px solid #293039;font:13px/1.4 system-ui,sans-serif;color:#dce4ed;flex-shrink:0}
.language-switcher a{display:inline-flex;align-items:center;min-height:30px;padding:0 10px;border:1px solid transparent;border-radius:6px;color:#bec8d4;text-decoration:none;white-space:nowrap}
.language-switcher a:hover,.language-switcher a:focus-visible{color:#fff;border-color:#9dcc70;outline:2px solid transparent}
.language-switcher a[aria-current=page]{color:#d5f7a8;background:#22301d;border-color:#65844e}
@media print{.language-switcher{display:none!important}}
/* Full-screen start dialogs leave room for the language bar. */
body>.start-screen,body>.start,body>.math-modal,body>.victory-overlay{top:40px}
body>.start .start-box{max-height:calc(100dvh - 72px)}
body[data-site-app="hex"]>.app{height:calc(100vh - 40px)}
@media print{body[data-site-app="hex"]>.app{height:100vh}}
