/* Site bar for the help pages when they are shown as part of the website (not inside the game). */
.site-bar{background:#020b1a;border-bottom:1px solid rgba(34,106,207,.25);position:relative;z-index:60;direction:ltr}
.site-bar-in{max-width:920px;margin:0 auto;padding:0 16px;height:56px;display:flex;align-items:center;gap:14px}
.site-brand{display:flex;align-items:center;gap:9px;color:#f5f8ff;text-decoration:none;font-weight:800;font-size:16px;letter-spacing:.3px}
.site-mark{display:grid;place-items:center;width:30px;height:30px;border-radius:9px;background:linear-gradient(135deg,#1396ff,#39b6ff);color:#02142b;font-weight:900;font-size:12px}
.site-home{margin-left:auto;color:#cfe3ff;text-decoration:none;font-weight:700;font-size:16px;padding:8px 12px;border-radius:9px;border:1px solid rgba(20,111,218,.38);white-space:nowrap}
.site-home:hover,.site-home:focus-visible{background:rgba(19,150,255,.14);color:#fff;outline:none}
@media(max-width:480px){.site-brand b{display:none}}
/* language selector (same markup the shared engine js/i18n.js builds on every page) */
.langsel{position:relative;flex:none}
.langbtn{display:inline-flex;align-items:center;justify-content:space-between;gap:8px;width:86px;height:40px;padding:0 10px;border:1px solid rgba(19,150,255,.45);border-radius:10px;background:rgba(19,150,255,.08);color:#fff;font:700 16px 'Inter',Arial,sans-serif;cursor:pointer;direction:ltr}
.langbtn:hover,.langsel.open .langbtn{border-color:#1396ff;background:rgba(19,150,255,.16)}
.langbtn:focus-visible,.langlist:focus-visible{outline:2px solid #39b6ff;outline-offset:2px}
.flag{display:block;width:20px;height:15px;border-radius:3px;object-fit:cover;box-shadow:0 0 0 1px rgba(255,255,255,.18);flex:none}
.langcode{letter-spacing:.5px}
.caret{width:7px;height:7px;border-right:2px solid #8aa4cf;border-bottom:2px solid #8aa4cf;transform:rotate(45deg) translateY(-2px);flex:none;transition:transform .15s}
.langsel.open .caret{transform:rotate(-135deg) translateY(-2px)}
.langlist{position:absolute;top:calc(100% + 8px);right:0;width:224px;margin:0;padding:6px;list-style:none;background:#04142b;border:1px solid rgba(19,150,255,.45);border-radius:12px;box-shadow:0 18px 40px rgba(0,0,0,.6);z-index:1200;max-height:min(70vh,420px);overflow-y:auto;direction:ltr}
.langlist[hidden]{display:none}
.langlist li{display:flex;align-items:center;gap:10px;padding:9px 10px;border-radius:8px;color:#e6f0ff;font:600 16px/1.2 'Inter',Arial,sans-serif;cursor:pointer}
.langlist li .langname{flex:1;white-space:nowrap}
.langlist li .langname[dir=rtl]{text-align:right}
.langlist li:hover,.langlist li.active{background:rgba(19,150,255,.18);color:#fff}
.langlist li .check{visibility:hidden;color:#39e58c;font-weight:900}
.langlist li[aria-selected=true] .check{visibility:visible}
.site-logo{display:block;width:32px;height:32px;object-fit:contain;flex:none}
