@import url('../public/fonts/fonts.css');

:root {
  font-family: 'Golos Text', Arial, sans-serif;
  color: #36333e;
  background: #fff;
  font-synthesis: none;
  --paper: #fff;
  --accent: #912c40;
  --muted: #85818a;
  --line: #e9e6eb;
  --serif: Cambria, Georgia, "Times New Roman", Times, serif;
  --banner-height:320px;
  --content-gap:10px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 25px; }
body { margin:0; min-height:100vh; display:flex; flex-direction:column; }
body > main { flex:1 0 auto; }
body > header, body > .page-banner, body > .auth-strip, body > footer { flex-shrink:0; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible { outline: 3px solid #ba875b; outline-offset: 5px; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.container { width: min(1140px, calc(100% - 80px)); margin-inline: auto; }
.svg-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.news-thumbnail .news-upload { width: 128px; height: 100px; object-fit: cover; border-radius: 3px; }
.news-status { padding: 28px 12px; color: #726979; line-height: 1.7; }
.news-retry { color: var(--accent); text-decoration: underline; padding: 8px; }
.news-preview.news-no-image { grid-template-columns: minmax(0,1fr); }
.news-item h3, .news-preview p { overflow-wrap: anywhere; }
.skip-link { position: fixed; top: -80px; left: 15px; padding: 15px; background: white; z-index: 50; }
.skip-link:focus { top: 10px; }
.header { margin-bottom:-18px; position:relative; isolation:isolate; z-index:5; color:#f8f4f5; overflow-x:clip; overflow-y:visible; }
.header-art { position:absolute; z-index:-1; inset-block-start:0; left:50%; width:max(1920px,100%); max-width:none; height:200px; fill:none; stroke:none; transform:translateX(-50%); pointer-events:none; }
html[dir="rtl"] .header-art { transform:translateX(-50%) scaleX(-1); }
@media(max-width:1100px) { .header-art { height:170px; } }
@media(max-width:600px) { .header-art { height:150px; } }
.header-inner { display: flex; align-items: center; gap: 58px; min-height: 100px; }
.logo { width: 172px; height: 84px; display: block; position: relative; overflow: hidden; flex-shrink: 0; }
.logo img { position: absolute; width: 100%; height: auto; top: -44px; left: 0; }
.navigation { display: flex; gap: 34px; align-items: center; }
.navigation a, .navigation button { position: relative; font: 400 18px var(--serif); padding: 15px 0; transition: color .2s; }
.navigation .active { color: #f2d2b2; }
.navigation .active:after { content: ''; position: absolute; left: 0; right: 0; bottom: 3px; height: 1px; background: linear-gradient(90deg,transparent,#dcb28d,transparent); }
.navigation a:hover, .navigation button:hover { color: #f2d2b2; }
.language-switch { margin-inline-start: auto; display: flex; align-items: center; gap: 3px; flex-shrink: 0; }
.language-switch button { padding: 9px 7px; font: 500 13px/1.5 'Golos Text',Tahoma,Arial,sans-serif; color: #c5bac8; border-bottom: 1px solid transparent; }
.language-switch button[lang="ar"] { font-family: Tahoma,Arial,sans-serif; font-size: 15px; }
.language-switch button:hover { color: #fff; }
.language-switch button[aria-pressed="true"] { color: #f2d2b2; border-color: #c39d82; }
.menu-toggle { display: none; }
.page-intro-row { display:flex; align-items:center; justify-content:space-between; gap:18px; }
.page-intro-row h1 { order:-1; }
.page-home { display:inline-flex; align-items:center; justify-content:center; gap:8px; flex-shrink:0; min-height:38px; padding:8px 12px; border:1px solid #e5dde6; border-radius:4px; color:#8f6376; font-size:12px; line-height:1.5; transition:background-color 160ms ease,color 160ms ease,border-color 160ms ease; }
.page-home:hover { color:var(--accent); background:#f7f1f4; border-color:#c8acba; }
.page-home svg { width:16px; height:16px; fill:none; stroke:currentColor; stroke-width:1.5; stroke-linecap:round; stroke-linejoin:round; }
html[dir="rtl"] .page-home svg { transform:scaleX(-1); }
.hero { width:100%; max-width:1920px; margin-inline:auto; height:var(--banner-height); position: relative; isolation: isolate; overflow: hidden; background: #e8dac9; }
.hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--scene-x,center) var(--scene-y,52%); z-index: -3; opacity:0; transition:opacity 1000ms ease; }
.hero-image.is-active { opacity:1; }
.hero-autumn { --scene-y:34%; }
.hero-world { --scene-y:20%; }
.hero-battle { --scene-y:42%; }
.hero-controls { position:absolute; bottom:24px; left:calc(50% + 140px); transform:translateX(-50%); isolation:isolate; width:211px; display:flex; justify-content:center; color:#fff7ef; }
.hero-controls::before { content:""; position:absolute; z-index:-1; inset:4px 0 0; background:#a7798c; border-radius:48% 32% 12% 21% / 28% 25% 18% 23%; clip-path:polygon(0 21%,6% 17%,4% 11%,18% 8%,28% 1%,44% 5%,59% 0,77% 7%,94% 9%,100% 22%,98% 85%,99% 96%,77% 94%,54% 98%,33% 94%,9% 100%,3% 86%,5% 72%,1% 57%,3% 44%); pointer-events:none; }
.hero-controls[hidden] { display:none; }
.hero-pages { display:grid; grid-template-columns:repeat(4,28px); }
.hero-controls button { position:relative; display:grid; place-items:center; min-width:28px; min-height:44px; padding:0; font:400 20px/1 Georgia,serif; font-variant-numeric:tabular-nums; color:#f0dce4; }
.hero-controls button::before { content:""; position:absolute; z-index:-1; width:26px; height:28px; border-radius:44% 51% 43% 49%; }
.hero-controls button[aria-pressed="true"] { color:#fff; }
.hero-controls button[aria-pressed="true"]::before { background:#3c3946; }
.hero-controls button:hover { color:#fff; }
.hero-controls button:focus-visible { outline:none; text-decoration:underline; text-decoration-thickness:2px; text-underline-offset:5px; }
@media(max-width:1100px) { .hero-controls { left:50%; } }
@media(pointer:coarse) { .hero-pages { grid-template-columns:repeat(4,44px); } }
.page-banner { width:100%; max-width:1920px; margin-inline:auto; height:220px; background:url('../public/images/inner-panorama-v1.png') center 55% / cover; }
/* Overlap covers the deepest transparent notch at every responsive art size. */
.auth-strip { pointer-events:none; --community-width:282px; position:relative; isolation:isolate; overflow-x:clip; overflow-y:visible; margin-top:-20px; min-height:180px; padding-block:22px 34px; }
.player-strip-art { position:absolute; z-index:-1; inset-block-start:-15px; left:50%; width:max(1920px,100%); max-width:none; height:195px; fill:none; stroke:none; transform:translateX(-50%); pointer-events:none; }
html[dir="rtl"] .player-strip-art { transform:translateX(-50%) scaleX(-1); }
.player-strip-inner { pointer-events:auto; display:grid; grid-template-columns:minmax(0,1fr) var(--community-width); gap:44px; align-items:stretch; min-height:124px; }
.player-account-area { position:relative; display:grid; align-items:center; min-width:0; padding-inline-end:0; padding-bottom:0; }
.auth-actions { display:flex; justify-content:center; align-items:center; gap:28px; min-height:108px; }
.auth-actions .auth-button { --button-art:url('../public/images/brush-button-dark.svg?v=20261011-login-clean'); width:282px; min-height:70px; font-size:18px; }
.auth-actions .auth-button:before { inset:0; }
.auth-actions[hidden], .home-account[hidden], .player-strip-placeholder[hidden], .home-account-error[hidden] { display:none; }
.home-account { display:grid; grid-template-columns:108px minmax(0,1fr) 330px; align-items:center; gap:70px; min-height:124px; color:#fff6ec; }
.home-account-avatar { display:grid; place-items:center; width:108px; height:108px; border:2px solid #f5dbc3ba; border-radius:50%; background:radial-gradient(circle at 35% 25%,#ad8a85,#615069 78%); box-shadow:0 0 0 5px #f5dbc313; font:500 28px var(--serif); }
.home-account-avatar:hover { filter:brightness(1.12); }
.home-account-details { min-width:0; }
.home-account-name { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:#fff7eb; font:500 22px var(--serif); }
.home-account-name:hover { text-decoration:underline; text-underline-offset:5px; }
.home-account-email { margin:8px 0 0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:#f0e1df; font-size:13px; }
.home-account-id { margin:8px 0 0; color:#decaca; font-size:11px; }
.home-account-id bdi { margin-inline-start:7px; color:#fff1e5; }
.home-account-links { display:grid; align-content:center; gap:4px; }
.home-account-links a, .home-account-links button { display:flex; align-items:center; justify-content:flex-start; gap:10px; min-height:40px; padding:6px 8px; border-radius:4px; color:#fff6ec; font-size:16px; text-align:start; white-space:nowrap; }
.home-account-links a:hover, .home-account-links button:hover { color:#f4d8bd; }
.home-account-links svg { width:18px; height:18px; flex-shrink:0; color:#e7c5ad; }
.home-account-links button:disabled { opacity:.65; cursor:wait; }
.home-account-error { position:absolute; inset:auto 0 -4px; min-height:20px; margin:0; color:#fff1df; font-size:12px; line-height:1.6; }
.home-account-error button { color:inherit; text-decoration:underline; }
.player-strip-placeholder { display:flex; align-items:center; gap:70px; min-height:124px; }
.player-avatar-placeholder { display:block; width:108px; height:108px; flex-shrink:0; border:2px solid #e5c7bd60; border-radius:50%; background:#f3e0dd16; }
.player-strip-placeholder>div { display:grid; gap:16px; width:min(240px,60%); }
.player-strip-placeholder>div>span { height:14px; border-radius:2px; background:#f3e0dd2b; }
.player-strip-placeholder>div>span:first-child { width:65%; height:22px; }
.player-community { position:relative; display:flex; align-items:center; min-width:0; padding-block-start:12px; }
.player-community .play-button { --button-art:url('../public/images/brush-button-discord.svg?v=20261011-controls'); min-height:80px; font-size:18px; text-transform:none; letter-spacing:0; }
.player-community .discord-icon { width:24px; height:24px; flex-basis:24px; filter:brightness(0) invert(1); }
@media(max-width:1100px) {
  .page-banner { width:100%; max-width:1920px; margin-inline:auto; height:200px; }
  .auth-strip { --community-width:260px; }
  .player-strip-art { width:calc(100% + 780px); }

  .player-strip-placeholder { gap:16px; }
  .player-strip-inner { gap:32px; }
  .home-account { grid-template-columns:64px minmax(0,1fr) 110px; gap:16px; }
  .home-account-avatar, .player-avatar-placeholder { width:64px; height:64px; font-size:24px; }
  .home-account-links a, .home-account-links button { font-size:16px; padding-inline:4px; gap:8px; }
}
@media(max-width:800px) {
  .page-banner { width:100%; max-width:1920px; margin-inline:auto; height:180px; }
  .auth-strip { --community-width:220px; }
  .player-strip-inner { gap:25px; }
  .player-account-area { padding-inline-end:0; }
  .home-account { grid-template-columns:52px minmax(0,1fr); gap:12px 16px; }
  .home-account-avatar, .player-avatar-placeholder { width:52px; height:52px; font-size:20px; }
  .home-account-name { font-size:19px; }
  .home-account-email { font-size:12px; }
  .home-account-links { grid-column:1/-1; display:flex; gap:24px; }
  .home-account-links a, .home-account-links button { font-size:16px; }
  .auth-actions { gap:12px; }
}
@media(max-width:600px) {
  .page-banner { width:100%; max-width:1920px; margin-inline:auto; height:140px; background-position:75% 52%; }
  .auth-strip { min-height:264px; padding-block:22px 0; }
  .player-strip-inner { grid-template-columns:minmax(0,1fr); gap:0; }
  .player-account-area { min-height:146px; padding-block:0 28px; }
  .home-account, .player-strip-placeholder { min-height:118px; }
  .home-account-links { padding-top:3px; }
  .home-account-links a, .home-account-links button { min-height:40px; font-size:16px; }
  .auth-actions { justify-content:center; min-height:118px; }
  .auth-actions .auth-button { width:calc((100% - 14px)/2); min-height:58px; padding:8px 4px; font-size:12px; letter-spacing:.15px; }
  .home-account-error { inset-block-end:4px; font-size:11px; }
  .player-community { justify-content:flex-end; min-height:96px; padding-block:10px 6px; }
  .player-strip-art, html[dir="rtl"] .player-strip-art { inset-block-start:-15px; left:50%; width:1920px; height:195px; transform:translateX(-50%); }
  html[dir="rtl"] .player-strip-art { transform:translateX(-50%) scaleX(-1); }
  .player-strip-placeholder { gap:16px; }
  .player-community .play-button { width:min(282px,86%); min-height:74px; font-size:17px; }
}
.game-actions { display: flex; flex-direction: column; gap: 7px; }
.play-button, .register-button { position: relative; isolation: isolate; display: flex; align-items: center; justify-content: center; gap: 16px; width: 100%; min-height: 82px; padding: 12px 22px; color: #fff5e9; font: 500 16px var(--serif); text-transform: uppercase; letter-spacing: .65px; text-shadow: 0 1px 2px #3a112680; transition: filter .2s, transform .2s; }
.play-button:before, .register-button:before { content: ''; position: absolute; z-index: -1; inset: 0 -5px; background: var(--button-art, url('../public/images/brush-button.svg?v=20261011-controls')) center / 100% 100% no-repeat; filter: drop-shadow(0 3px 2px #4b1c2c19); }
.play-button[data-modal="topup"] { --button-art:url('../public/images/brush-button-green.svg?v=20261011-controls'); }
.play-button:hover, .register-button:hover { filter: brightness(1.14); transform: translateY(-2px); }
.play-button:active, .register-button:active { transform: translateY(1px); }
.play-button svg, .register-button svg { order: -1; width: 21px; height: 21px; flex-shrink: 0; color: #eac3ab; }
.news-section { display: grid; grid-template-columns: minmax(0, 1fr) 282px; align-items: start; column-gap: 44px; padding-top: var(--content-gap); padding-bottom: 38px; }
.news-heading { position: relative; display: flex; gap: 20px; align-items: center; margin-bottom: 6px; padding-bottom: 10px; }
.news-heading:after, .article-heading:after { content:''; position:absolute; inset-inline:0; bottom:0; height:6px; background:url('../public/images/news-rule.png') left bottom / 100% 6px no-repeat; }
.news-heading h1 { font: 400 23px/1.3 var(--serif); color: #0f1309; }
.news-item { width: 100%; margin-top: 14px; text-align: start; }
.news-item + .news-item { margin-top: 24px; }
.news-item-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding: 7px 12px; background: linear-gradient(90deg,#f5f3f5,#f1f0f2 90%,#f7f6f8); }
.news-item-heading h3 { min-width: 0; color: var(--accent); font: 700 17px/1.35 var(--serif); }
.news-item-heading a { display: inline-block; text-align: start; font: inherit; }
.news-item-heading a:hover { text-decoration: underline; text-underline-offset: 3px; }
.news-item time { flex-shrink: 0; color: #979797; font:400 17px/1.3 var(--serif); font-variant-numeric:tabular-nums; direction:ltr; unicode-bidi:isolate; }
.news-preview { display: grid; grid-template-columns: 128px minmax(0,1fr); align-items: start; gap: 22px; padding: 15px 12px 0; }
.news-thumbnail { display: block; width: 128px; padding: 0; overflow: hidden; background: #f5f3f5; }
.news-thumbnail img { width: 100%; height: 100px; object-fit: cover; transition: transform .2s; }
.news-thumbnail:hover img { transform: scale(1.04); }
.news-thumbnail .news-character { object-position: 89% center; }
.news-thumbnail .news-town { object-position: 40% center; }
.news-thumbnail .news-companions { object-fit: contain; }
.news-preview p { font:400 17px/1.3 var(--serif); color:#0f1309; }
.news-more { display: inline; padding: 0; color: #91828e; font: inherit; white-space: nowrap; }
.news-more:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.companions { width: 215px; margin: 10px auto 0; }
.companions img { width: 100%; filter: saturate(.84); }
.footer { position:relative; isolation:isolate; display:flex; justify-content:center; align-items:center; min-height:94px; margin-top:24px; padding:30px 20px 22px; }
.footer::before { content:""; position:absolute; z-index:-1; inset:-38px 0 0; background:#342e37; }
.footer-edge { position:absolute; top:-38px; inset-inline:0; width:100%; height:46px; fill:#342e37; stroke:none; pointer-events:none; }
.footer-logo { display:block; width:160px; height:24px; object-fit:contain; }
.modal { width: min(540px, calc(100% - 32px)); max-height: 90vh; padding: 0; border: 1px solid #d5c4d0; border-radius: 3px; background: var(--paper); color: #403448; box-shadow: 0 15px 70px #48222040; }
.modal::backdrop { background: #392524a8; backdrop-filter: blur(5px); }
.modal-close { position: absolute; z-index: 2; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 50%; background: #ffffffed; color: #87586c; font-size: 25px; line-height: 1; }
.modal-body { padding: 34px; }
.modal-body h2 { font: 500 25px/1.4 var(--serif); padding-right: 22px; margin-bottom: 17px; }
.modal-body p { font-size: 13px; line-height: 1.9; color: #78707e; margin-top: 13px; }
.modal-body time { display: block; font-size: 10px; color: #918592; margin-bottom: 12px; }
.modal-image { width: 100%; height: 220px; object-fit: cover; }
.modal-image.companion-image { object-fit: contain; height: 260px; padding-top: 20px; }
.modal-body .play-button { font-size: 12px; min-height: 43px; margin-top: 23px; }
html { scrollbar-gutter:stable; }
body.modal-open { overflow: hidden; }
.history-dialog { margin:auto; width:min(760px,calc(100vw - 32px)); max-height:min(720px,calc(100dvh - 32px)); padding:0; overflow:hidden; border:1px solid #d8cbd9; border-radius:10px; background:#fff; color:#403448; box-shadow:0 24px 80px #22152e40; }
.history-dialog[open] { display:flex; flex-direction:column; }
.history-dialog::backdrop { background:#30213999; backdrop-filter:blur(3px); }
.history-dialog-heading { display:flex; align-items:center; justify-content:space-between; flex-shrink:0; gap:20px; padding:22px 28px; border-bottom:1px solid #e8e5eb; background:#faf8fb; }
.history-dialog-heading h2 { font:500 23px/1.4 var(--serif); overflow-wrap:anywhere; }
.history-dialog-heading button { flex-shrink:0; width:44px; height:44px; color:#76516e; font-size:28px; }
.history-dialog-heading button:hover { color:#365d7c; }
.history-dialog-heading button:focus-visible { outline:2px solid #76516e; outline-offset:-6px; border-radius:50%; }
.modal-close:focus-visible { outline:2px solid #76516e; outline-offset:2px; }
.history-dialog-body { min-height:0; padding:0 28px 24px; overflow:auto; overscroll-behavior:contain; }
.history-dialog-body:focus-visible { outline:2px solid #76516e; outline-offset:-3px; }
@media(max-width:550px) { .history-dialog-heading { padding:14px 18px; gap:12px; }.history-dialog-heading h2 { font-size:20px; }.history-dialog-body { padding:0 18px 18px; } }
@media(min-width:1800px) { :root { --banner-height:360px; } }
@media(max-width:1100px) {
  .header-inner { gap: 45px; }
  .navigation { gap: 26px; }
  :root { --banner-height:300px; }
  .news-section { grid-template-columns: minmax(0,1fr) 260px; gap: 32px; }
  .hero-image { --scene-x:57%; }
}
@media(max-width:800px) {
  .container { width: calc(100% - 48px); }
  .header-inner { min-height: 84px; gap: 27px; }
  .logo { width: 140px; height: 69px; }
  .logo img { top: -36px; }
  .navigation { gap: 23px; }
  .navigation a, .navigation button { font-size: 12px; }
  :root { --banner-height:280px; }
  .hero-image { --scene-x:61%; }
  .auth-actions { gap: 36px; }
  .news-section { gap: 25px; grid-template-columns: minmax(0,1fr) 220px; }
  .play-button, .register-button { font-size: 14px; padding-inline: 15px; gap: 12px; }
  .news-item-heading { gap: 8px; flex-wrap: wrap; }
  .news-item-heading h3 { font-size: 16px; }
  .news-preview { grid-template-columns: 96px minmax(0,1fr); gap: 14px; }
  .news-thumbnail { width: 96px; }
  .news-thumbnail img { height: 84px; }
  .news-preview p { font-size:17px; }
}
@media(max-width:600px) {
  .container { width: calc(100% - 40px); }
  .header-inner { min-height: 72px; gap: 20px; }
  .logo { width: 126px; height: 62px; }
  .logo img { top: -32px; }
  .menu-toggle { display: flex; flex-direction: column; gap: 5px; padding: 10px 0 10px 4px; }
  .menu-toggle span { width: 20px; height: 1px; background: #e3cec6; }
  .navigation { display: none; position: absolute; z-index: 2; top: 72px; left: 0; right: 0; padding: 12px 20px; background: #3b2e43; border-bottom: 1px solid #b6907955; box-shadow: 0 7px 10px #30203322; }
  .navigation.open { display: flex; flex-wrap: wrap; }
  .navigation a, .navigation button { font-size: 12px; padding: 13px 0; }
  :root { --banner-height:260px; }
  .hero { background: #fff; }
  .hero-image { top: auto; bottom: 0; height: 260px; --scene-x:88%; }
  .auth-actions { gap: 14px; }
  .auth-actions .auth-button { width: calc((100% - 14px) / 2); min-height: 58px; padding: 8px 4px; font-size: 12px; letter-spacing: .15px; }
  .play-button, .register-button { min-height: 78px; font-size: 16px; padding-inline: 21px; gap: 20px; }
  .news-section { padding-top: 8px; padding-bottom: 22px; display: flex; flex-direction: column; gap: 27px; }
  .sidebar { order: -1; width: 100%; }
  .news-content { width: 100%; }
  .news-heading { margin-bottom: 6px; }
  .news-heading h1 { font-size: 25px; }
  .news-item-heading { padding: 8px 10px; }
  .news-item time { font-size:14px; }
  .news-preview { padding: 12px 10px 0; display: flow-root; }
  .news-thumbnail { float: left; margin: 3px 14px 6px 0; }
  .companions { display: none; }
  .footer { min-height:80px; padding-block:24px 20px; }
  .modal-body { padding: 28px; }
  .modal-body h2 { font-size: 23px; }
  .modal-image { height: 180px; }
}
/* Keep illustrations on their designed sides; mirror reading layouts. */
html[lang="ar"] { font-family: Tahoma,Arial,sans-serif; --serif: Tahoma,Arial,sans-serif; }
html[lang="ar"] .play-button, html[lang="ar"] .register-button { letter-spacing: 0; }
html[lang="ar"] .news-preview p, html[lang="ar"] .news-item-heading h3 { font-size: 16px; }
html[lang="ar"] .modal-body p { font-size: 15px; }
html[dir="rtl"] .language-switch { margin-inline-start: 0; margin-right: auto; }
html[dir="rtl"] .news-heading:after, html[dir="rtl"] .article-heading:after { transform: scaleX(-1); }
html[dir="rtl"] .modal-close { right:auto; left:12px; }
html[dir="rtl"] .modal-body h2 { padding-right: 0; padding-left: 22px; }
@media(max-width:1100px) {
  .header-inner { gap: 30px; }
  .navigation { gap: 22px; }
}
@media(max-width:1100px) {
  .header-inner { min-height: 84px; gap: 20px; }
  .logo { width: 140px; height: 69px; }
  .logo img { top: -36px; }
  .menu-toggle { display: flex; flex-direction: column; gap: 5px; padding: 10px 0 10px 4px; }
  .menu-toggle span { width: 20px; height: 1px; background: #e3cec6; }
  .navigation { display: none; position: absolute; z-index: 2; top: 84px; left: 0; right: 0; padding: 12px 24px; background: #3b2e43; border-bottom: 1px solid #b6907955; box-shadow: 0 7px 10px #30203322; }
  .navigation.open { display: flex; flex-wrap: wrap; }
  .navigation a, .navigation button { font-size: 17px; padding: 10px 0; }
}
@media(max-width:600px) {
  .header-inner { min-height: 72px; gap: 12px; }
  .logo { width: 112px; height: 56px; }
  .logo img { top: -28px; }
  .navigation { top: 72px; gap: 18px; padding-inline: 20px; }
  .language-switch button { padding-inline: 5px; }
  html[lang="ar"] .news-preview p, html[lang="ar"] .news-item-heading h3 { font-size: 16px; }
  html[dir="rtl"] .news-thumbnail { float: right; margin: 3px 0 6px 14px; }
}
@media(prefers-reduced-motion:reduce) { html { scroll-behavior: auto; } *, *:before, *:after { transition: none!important; } }

/* Shared navigation includes Help alongside the catalogue. */
@media (min-width: 1101px) { .logo { transform:translateY(24px); } .header-inner { gap: 26px; } .navigation { gap: 23px; } }


.discord-link { display:inline-flex; align-items:center; gap:8px; white-space:nowrap; }
.discord-icon { display:block; width:20px; height:20px; flex:0 0 20px; object-fit:contain; }
.navigation .discord-icon { filter:brightness(0) invert(1); }

/* Reserve real working surfaces while their data is in flight. */
.ui-placeholder { display:block; height:14px; width:65%; border-radius:4px; background:#e9e4eb; }
.ui-placeholder.short { width:32%; }
.ui-placeholder.heading { height:28px; width:45%; }
.ui-placeholder.block { height:100px; width:100%; }
.ui-pending { display:grid; gap:22px; padding:28px; }

/* Keep the artwork at its designed scale when zooming out on a wide viewport. */
@media(min-width:1921px) {
  .header-art, .player-strip-art { width:1920px; mask-image:linear-gradient(to right,transparent,#000 100px,#000 calc(100% - 100px),transparent); }
  .hero, .page-banner { mask-image:linear-gradient(to right,transparent,#000 80px,#000 calc(100% - 80px),transparent); }
  .header::before, .header::after, .auth-strip::before, .auth-strip::after { content:""; position:absolute; z-index:-2; width:calc((100% - 1920px) / 2 + 100px); pointer-events:none; }
  .header::before { left:0; top:0; height:146px; background:#302a3b; }
  .header::after { right:0; top:0; height:88px; background:#403345; }
  .auth-strip::before { left:0; top:12px; height:142px; background:#493b52; }
  .auth-strip::after { right:0; top:13px; height:41px; background:#ead0c4; }
  html[dir="rtl"] .header::before { left:auto; right:0; }
  html[dir="rtl"] .header::after { right:auto; left:0; }
  html[dir="rtl"] .auth-strip::before { left:auto; right:0; }
  html[dir="rtl"] .auth-strip::after { right:auto; left:0; }
}
