@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: 'Roboto Slab', Georgia, serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 25px; }
body { margin: 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; }
.skip-link { position: fixed; top: -80px; left: 15px; padding: 15px; background: white; z-index: 50; }
.skip-link:focus { top: 10px; }
.header { position: relative; z-index: 5; color: #f8f4f5; background: linear-gradient(90deg,#292535ee,#50354bdd,#382d40ef),url('../public/images/alpen-straight-spear-v6.webp') center 31% / cover; box-shadow: 0 2px 0 #dcc4ab80; }
.header:after { content: ''; position: absolute; inset: auto 0 -10px; height: 11px; background: #413044; clip-path: polygon(0 0,100% 0,100% 14%,86% 44%,74% 10%,58% 40%,40% 17%,26% 70%,12% 38%,0 100%); pointer-events: none; }
.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 15px 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; }
.footer button:hover { color: var(--accent); }
.account-button { display: flex; align-items: center; gap: 8px; color: #eee1df; white-space: nowrap; }
.account-button svg { width: 17px; height: 17px; }
.language-switch { margin-inline-start: auto; display: flex; align-items: center; gap: 3px; flex-shrink: 0; }
.language-switch button { padding: 9px 7px; font: 500 11px/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: 13px; }
.language-switch button:hover { color: #fff; }
.language-switch button[aria-pressed="true"] { color: #f2d2b2; border-color: #c39d82; }
.menu-toggle { display: none; }
.hero { height: 440px; position: relative; isolation: isolate; overflow: hidden; background: #e8dac9; }
.hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 52%; z-index: -3; }
.hero-wash { position: absolute; inset: 0; z-index: -2; background: linear-gradient(90deg,#fffffff0 0%,#ffffffd6 22%,#ffffff50 43%,transparent 62%); }
.hero-content { height: 100%; display: flex; align-items: center; padding-bottom: 24px; }
.hero-copy { max-width: 520px; color: #403448; }
.hero-copy h1 { font: 500 54px/1.2 var(--serif); letter-spacing: -1.7px; }
.hero-lead { position: relative; margin-top: 25px; padding-top: 25px; font: 400 23px/1.5 var(--serif); }
.hero-lead:before { content: ''; position: absolute; left: 0; top: 0; width: 230px; height: 1px; background: linear-gradient(90deg,#a27179,transparent); }
.hero-lead:after { content: ''; position: absolute; left: 0; top: -3px; width: 7px; height: 7px; transform: rotate(45deg); background: #a27179; }
.hero-description { margin-top: 12px; font-size: 14px; line-height: 1.8; color: #68606e; }
.hero:after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 62px; background: url('../public/images/paint-edge.svg') center bottom / 100% 100% no-repeat; pointer-events: none; }
.auth-strip { position: relative; isolation: isolate; margin-top: -28px; padding: 26px 0 32px; }
.auth-strip:before { content: ''; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg,#49394de6,#927080d9 53%,#cdb2b6d9 76%,#ffffffed),url('../public/images/alpen-straight-spear-v6.webp') center 65% / cover; clip-path: polygon(0 9%,10% 14%,24% 4%,41% 11%,58% 0,76% 8%,88% 3%,100% 12%,100% 79%,87% 91%,72% 85%,58% 97%,41% 92%,26% 100%,12% 91%,0 96%); }
.auth-strip:after { content: ''; position: absolute; left: 0; right: 0; bottom: -3px; height: 22px; background: url('../public/images/paint-edge.svg') center / 100% 100% no-repeat; pointer-events: none; }
.auth-actions { display: flex; justify-content: center; align-items: center; gap: 64px; }
.auth-actions .auth-button { --button-art: url('../public/images/brush-button-dark.svg'); width: 282px; min-height: 72px; }
.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')) center / 100% 100% no-repeat; filter: drop-shadow(0 3px 2px #4b1c2c19); }
.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: 24px; padding-bottom: 38px; }
.news-heading { position: relative; display: flex; gap: 20px; align-items: center; margin-bottom: 6px; padding-bottom: 18px; }
.news-heading:after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: linear-gradient(90deg,#913044 0%,#913044 15%,#91304470 15.2%,#91304420 73%,transparent); clip-path: polygon(0 22%,13% 0,26% 26%,39% 5%,53% 38%,69% 12%,100% 40%,99% 69%,77% 100%,59% 64%,45% 95%,31% 72%,14% 100%,0 79%); }
.news-heading h2 { font: 400 27px/1.3 var(--serif); color: #403448; }
.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: 500 15px/1.45 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: #91828e; font-size: 12px; font-variant-numeric: tabular-nums; }
.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 14px/1.7 var(--serif); color: #49414e; }
.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 { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 77px; border-top: 1px solid var(--line); color: #918592; font-size: 10px; }
.footer>div { display: flex; align-items: center; gap: 26px; }
.footer button { padding: 10px 0; font-size: 10px; }
.age-mark { border: 1px solid #ded6df; padding: 4px; border-radius: 3px; }
.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; }
body.modal-open { overflow: hidden; }
@media(min-width:1800px) { .hero { height: 540px; } }
@media(max-width:1100px) {
  .header-inner { gap: 45px; }
  .navigation { gap: 26px; }
  .hero { height: 440px; }
  .news-section { grid-template-columns: minmax(0,1fr) 260px; gap: 32px; }
  .hero-image { object-position: 57% center; }
}
@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; }
  .hero { height: 410px; }
  .hero-image { object-position: 61% center; }
  .hero-copy h1 { font-size: 42px; }
  .hero-lead { font-size: 19px; }
  .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: 14px; }
  .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: 13px; }
}
@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; }
  .hero { height: 520px; background: #fff; }
  .hero-image { top: auto; bottom: 0; height: 355px; object-position: 88% center; }
  .hero-wash { background: linear-gradient(180deg,#fff 0%,#fff 29%,#ffffffb3 39%,transparent 58%); }
  .hero-content { align-items: flex-start; padding-top: 30px; padding-bottom: 0; }
  .hero-copy { width: 100%; }
  .hero-copy h1 { font-size: clamp(30px,8.6vw,38px); letter-spacing: -1px; }
  .hero-lead { margin-top: 18px; padding-top: 18px; font-size: 18px; }
  .hero-description { margin-top: 8px; font-size: 12px; }
  .hero:after { height: 39px; }
  .auth-strip { margin-top: -17px; padding: 21px 0 25px; }
  .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 h2 { font-size: 25px; }
  .news-item-heading { padding: 8px 10px; }
  .news-item time { font-size: 11px; }
  .news-preview { padding: 12px 10px 0; display: flow-root; }
  .news-thumbnail { float: left; margin: 3px 14px 6px 0; }
  .companions { display: none; }
  .footer { gap: 10px; min-height: 85px; flex-wrap: wrap; padding-block: 17px; font-size: 9px; }
  .footer>div { gap: 17px; }
  .footer button { font-size: 9px; }
  .modal-body { padding: 28px; }
  .modal-body h2 { font-size: 23px; }
  .modal-image { height: 180px; }
}
/* Keep the illustration and its text on their designed sides; mirror reading layouts. */
html[lang="ar"] { font-family: Tahoma,Arial,sans-serif; --serif: Tahoma,Arial,sans-serif; }
html[lang="ar"] .hero-copy h1 { font-family: 'Roboto Slab',Georgia,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"] .hero-description, 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 { transform: scaleX(-1); }
html[dir="rtl"] .footer>span, .age-mark { direction: ltr; unicode-bidi: isolate; }
html[dir="rtl"] .hero-content { direction: ltr; }
html[dir="rtl"] .hero-copy { direction: rtl; width: 430px; text-align: right; }
html[dir="rtl"] .hero-lead:before { left: auto; right: 0; background: linear-gradient(270deg,#a27179,transparent); }
html[dir="rtl"] .hero-lead:after { left: auto; right: 0; }
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:900px) {
  .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: 13px; 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[dir="rtl"] .hero-copy { width: 100%; }
  html[lang="ar"] .news-preview p, html[lang="ar"] .news-item-heading h3 { font-size: 14px; }
  html[lang="ar"] .hero-description { font-size: 13px; }
  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: 901px) { .header-inner { gap: 26px; } .navigation { gap: 23px; } }
.footer a:hover { color: var(--accent); }

@media (min-width:901px) and (max-width:1100px) {
  .header-inner { gap:18px; } .navigation { gap:15px; }
  .navigation a, .navigation button { font-size:13px; }
  .logo { width:140px; height:69px; } .logo img { top:-36px; }
}

.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); }
.footer .discord-icon { width:16px; height:16px; flex-basis:16px; }
.footer .discord-link:hover { color:#5865f2; }
