/* Flagpack artwork remains local; the silhouette uses the game's stepped corners. */
.main-menu .menu-brand-area{grid-column:1;justify-self:start;display:flex;align-items:center;gap:18px;min-width:0;height:100%}
.main-menu .main-brand{flex-shrink:0}
html:root body .main-menu .language-trigger{display:flex;align-items:center;justify-content:center;gap:7px;min-width:66px;min-height:40px;padding:7px 5px;border:0;background:transparent;color:#d9c8e9;box-shadow:none!important;clip-path:none!important;font:14px/1.2 Arial,sans-serif;cursor:pointer}
.language-flag{object-fit:cover;flex-shrink:0;clip-path:polygon(0 4px,4px 4px,4px 0,calc(100% - 4px) 0,calc(100% - 4px) 4px,100% 4px,100% calc(100% - 4px),calc(100% - 4px) calc(100% - 4px),calc(100% - 4px) 100%,4px 100%,4px calc(100% - 4px),0 calc(100% - 4px))}
.language-chevron{width:7px;height:4px;background:currentColor;clip-path:polygon(0 0,100% 0,100% 33%,67% 33%,67% 67%,33% 67%,33% 33%,0 33%)}
.language-dialog{box-sizing:border-box;width:min(1020px,calc(100% - 48px));max-width:none;max-height:calc(100dvh - 64px);padding:30px;background:#1a1423;color:#f0e8f8;border:1px solid #80629777;border-radius:0;box-shadow:0 30px 100px #000b;overflow:auto;color-scheme:dark}
.language-dialog::backdrop{background:#08040dcc;backdrop-filter:blur(8px)}
.language-dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:24px}
.language-dialog .language-eyebrow{margin:0 0 8px;color:#b99ad6;font:10px/1.5 Arial,sans-serif;letter-spacing:2px}
.language-dialog h2{margin:0;font:24px/1.5 "BlockRok Pixel",Arial,sans-serif}
html:root body .language-close{display:grid;place-items:center;width:38px;height:38px;padding:8px;border:0;background:#30253d;box-shadow:none!important;clip-path:var(--px-button-shape)!important;color:#e7d8f3;cursor:pointer}
.language-close svg{width:20px;height:20px;fill:currentColor;stroke:none;shape-rendering:crispEdges}
.language-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.language-option{--language-card-fill:#21192c;--language-card-stroke:transparent;position:relative;isolation:isolate;display:flex;align-items:center;gap:14px;padding:17px 14px;min-height:72px;box-sizing:border-box;border:1px solid transparent;background:transparent;text-decoration:none;color:inherit;clip-path:var(--px-button-shape)}
/* Two nested silhouettes trace every notch; a clipped rectangular border
   cannot draw the horizontal and vertical edges inside the cut corners. */
.language-option::before,.language-option::after{content:"";position:absolute;pointer-events:none;clip-path:var(--px-button-shape)}
.language-option::before{inset:-1px;z-index:-2;background:var(--language-card-stroke)}
.language-option::after{inset:0;z-index:-1;background:var(--language-card-fill)}
.language-option:hover{--language-card-fill:#352343;color:#fff}.language-option.selected{--language-card-fill:#453056;--language-card-stroke:#bf8be3}
.language-option:focus-visible{--language-card-stroke:#e3b6ff;outline:none}
.language-option>span:not(.language-check){min-width:0;flex:1}
.language-option strong{display:block;font:600 17px/1.5 Arial,"Noto Sans",sans-serif;color:#f3eaf9}
.language-option small{display:block;font:12px/1.5 Arial,sans-serif;color:#ad9abf}
.language-check{display:grid;place-items:center;flex:0 0 24px;color:#ddb4ff}
.language-check .pixel-ui-icon{display:block;width:24px;height:24px;fill:currentColor;stroke:none;shape-rendering:crispEdges}
.language-dialog-note{margin:24px 0 0;padding-top:18px;border-top:1px solid #77618b38;color:#b29fc4;font:13px/1.8 Arial,sans-serif}
.language-trigger:focus-visible,.language-close:focus-visible{outline:2px solid #d3a5f4;outline-offset:3px}
/* The floating utility has the same voxel-cut silhouette as the flags. */
html:root body .footer-back-top{clip-path:var(--px-button-shape);border:0}
html[lang]:not([lang="en"]) .main-navigation>a,html[lang]:not([lang="en"]) .main-navigation>.menu-explore>summary{font-family:"BlockRok Pixel",Arial,sans-serif}
@media(max-width:1360px){.main-menu .menu-brand-area{gap:10px}.main-menu .language-trigger>span:not(.language-chevron){display:none}.main-menu .language-trigger{min-width:42px}}
@media(max-width:700px){.language-dialog{width:calc(100% - 28px);padding:22px 16px;max-height:calc(100dvh - 28px)}.language-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.language-option{padding:12px 10px;gap:9px;min-height:86px}.language-option .language-flag{width:32px;height:24px}.language-option strong{font-size:15px}.language-option small{font-size:11px}.language-check{display:none}.language-dialog h2{font-size:20px}.main-menu .menu-brand-area{gap:8px}.main-menu .language-trigger{padding:4px;min-width:32px}.main-menu .language-chevron{display:none}.main-menu .language-trigger .language-flag{width:25px;height:19px}}
@media(max-width:380px){.main-menu .main-brand img,.home-page .main-menu.scrolled .main-brand.home-scroll-brand{width:100px}.main-menu .menu-brand-area{gap:4px}}
@media(min-width:1181px){html[lang]:not([lang="en"]) .forum-page .main-menu .main-navigation{gap:18px}html[lang]:not([lang="en"]) .forum-page .main-menu .main-account{gap:8px}}
@media(max-width:650px){.main-menu .main-account .menu-account-button .menu-account-label{display:none!important}.main-menu .main-account .menu-account-button{padding:5px 6px 7px;gap:0}.main-menu .menu-brand-area{flex-shrink:0}}

/* The hidden home logo occupies no space. Its reveal carries the language
   control to the right, while the intro remains clear at every viewport. */
.home-page .main-menu{--home-brand-width:158px;--home-brand-gap:18px;--home-header-gutter:72px;--home-intro-edge:160px}
.home-page .main-menu .menu-brand-area{column-gap:0;padding-inline-start:max(0px,calc(var(--home-intro-edge) - (100vw - min(1640px,calc(100vw - var(--home-header-gutter)))) / 2));transition:padding-inline-start .36s cubic-bezier(.22,.61,.36,1)}
.home-page .main-menu .main-brand.home-scroll-brand{width:0;margin-inline-end:0;opacity:0;visibility:hidden;transform:none;transition:width .36s cubic-bezier(.22,.61,.36,1),margin-inline-end .36s cubic-bezier(.22,.61,.36,1),opacity .24s ease,visibility 0s linear .36s}
.home-page .main-menu.scrolled .menu-brand-area{padding-inline-start:0}
.home-page .main-menu.scrolled .main-brand.home-scroll-brand{width:var(--home-brand-width);margin-inline-end:var(--home-brand-gap);opacity:1;visibility:visible;transition-delay:0s}
@media(max-width:1360px){.home-page .main-menu{--home-header-gutter:48px;--home-brand-gap:10px}}
@media(max-width:1180px){.home-page .main-menu{--home-brand-width:145px;--home-header-gutter:40px}}
@media(max-width:760px){.home-page .main-menu{--home-intro-edge:130px}}
@media(max-width:700px){.home-page .main-menu{--home-brand-width:125px;--home-header-gutter:36px;--home-brand-gap:8px}}
@media(max-width:650px){.home-page .main-menu{--home-intro-edge:98px}}
@media(max-width:380px){.home-page .main-menu{--home-brand-width:100px;--home-brand-gap:4px}}
@media(max-width:360px){.home-page .main-menu{--home-header-gutter:32px}}
@media(prefers-reduced-motion:reduce){.home-page .main-menu .menu-brand-area,.home-page .main-menu .main-brand.home-scroll-brand{transition:none}}

.forum-languages{margin-top:42px;padding-top:30px;border-top:1px solid #b58ad82b}
.forum-languages-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:24px}
.forum-language-eyebrow{font:10px/1.6 Arial,sans-serif;letter-spacing:2px;color:#b18cce}
.forum-languages h2{margin:9px 0;font:22px/1.5 "BlockRok Pixel",Arial,sans-serif}
.forum-languages-heading p{max-width:710px;margin:0;color:#b5a8c0;font:14px/1.9 Arial,sans-serif}
.forum-languages-heading>a{flex-shrink:0;display:inline-flex;align-items:center;gap:12px;color:#cdb1e7;font:13px/1.6 Arial,sans-serif;text-decoration:none}
.forum-language-boards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.forum-page .forum-language-board{position:relative;isolation:isolate;overflow:hidden;align-items:center;gap:14px;min-height:132px;padding:20px;box-sizing:border-box;text-decoration:none;color:#e8deef;transition:background .15s}
.forum-language-backdrop{position:absolute;inset:0;z-index:0;pointer-events:none;opacity:.23;mask-image:linear-gradient(to right,#000 0%,transparent 100%)}
.forum-language-backdrop>img{position:absolute;inset:-40% -10%;width:120%;height:180%;max-width:none;object-fit:cover;transform:rotate(-12deg)}
.forum-language-board>:not(.forum-language-backdrop){position:relative;z-index:1}
.forum-language-board .forum-language-flag{width:44px;height:33px;flex-shrink:0;padding:0}
.forum-language-copy{min-width:0;flex:1}
.forum-language-copy strong{display:block;font:400 20px/1.4 var(--display-font);color:#f1e7fa;overflow-wrap:anywhere}
.forum-language-copy small{display:block;margin-top:4px;font:14px/1.6 Arial,sans-serif;color:#bfb0cd}
.forum-language-count{text-align:center;flex-shrink:0;min-width:30px;padding:6px}
.forum-language-count b{display:block;font:16px/1.5 "BlockRok Pixel",Arial,sans-serif;color:#cfb5e6}
.forum-language-count small{display:block;font:10px/1.5 Arial,sans-serif;color:#9c8ba9}
.forum-language-board>svg{width:17px;height:17px;flex-shrink:0;color:#ab83c9}
.forum-language-board:focus-visible{outline:2px solid #d3a5f4;outline-offset:3px}
.featured-category-icon>.forum-language-flag{width:44px;height:33px}
.forum-categories-menu .forum-language-flag{width:25px;height:19px;vertical-align:middle}
.forum-page .forum-categories-menu>div{max-height:min(520px,65dvh);overflow-y:auto;overscroll-behavior:contain}
.forum-page .forum-categories-menu>div>a>.game-icon{width:25px;height:25px;flex-shrink:0}
@media(max-width:1100px){.forum-language-boards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.forum-languages-heading{display:block}.forum-languages-heading>a{margin-top:16px}.forum-language-boards{grid-template-columns:1fr}.forum-page .forum-language-board{min-height:112px;padding:17px 14px;gap:12px}.forum-languages h2{font-size:20px}}
