@font-face { font-family: 'Ark Pixel'; src: url('../assets/fonts/ark-pixel-16px.ttf') format('truetype'); font-display: block; }
:root {
  color-scheme: dark;
  --bg: #111210;
  --ink: #f3ecdb;
  --muted: #b7b5a9;
  --ember: #eec573;
  --line: #35372d;
  --content-width: 1120px;
  --gutter: 48px;
  --columns-gap: 64px;
  --section-space: 64px;
  --radius: 6px;
  --pixel: 'Ark Pixel', ui-monospace, monospace;
  --body: system-ui, -apple-system, 'Segoe UI', Roboto, 'Noto Sans', sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 28px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 1.0625rem/1.6 var(--body); }
::selection { color: #211c12; background: var(--ember); }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; image-rendering: pixelated; }
svg { display: block; }
p, h1, h2, h3, figure { margin: 0; }
h1, h2, h3 { font-family: var(--pixel); font-weight: 400; -webkit-font-smoothing: none; }
h1, h2 { text-wrap: balance; }
h1 { font-size: 48px; line-height: 1.12; }
h2 { font-size: 2rem; line-height: 1.3; }
h3 { font-size: 1.5rem; line-height: 1.35; }
em { color: var(--ember); font-style: normal; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--ember); outline-offset: 6px; }
.wrap { width: min(var(--content-width), calc(100% - var(--gutter) - var(--gutter))); margin-inline: auto; }
.section { padding-block: var(--section-space); }
.mini-label { font-size: .875rem; color: var(--ember); margin-bottom: 12px; }
.button { display: inline-flex; min-height: 56px; align-items: center; justify-content: center; gap: 10px; padding: 14px 30px; border: 1px solid transparent; border-radius: var(--radius); font: 600 1rem/1.5 var(--body); text-decoration: none; text-align: center; transition: color .18s, background .18s, border-color .18s; }
.button-primary { background: var(--ember); color: #211c12; }
.button-primary:hover { background: #ffe0a0; }
.button-outline { border-color: #8d795052; color: var(--ink); background: transparent; }
.button-outline:hover { border-color: #b49d69; background: #eec57308; }
.button-small { min-height: 44px; padding: 8px 24px; font-size: .875rem; }
.text-link { display: inline-flex; align-items: center; min-height: 44px; padding-block: 8px; font-size: 15px; text-decoration: underline; text-decoration-color: #716c5680; text-underline-offset: 6px; }
.text-link:hover { text-decoration-color: var(--ink); }
.skip-link { position: absolute; left: 20px; top: -100px; z-index: 10; padding: 10px; background: var(--ink); color: var(--bg); }
.skip-link:focus { top: 12px; }
.header { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 32px; height: 96px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-figure { flex: none; width: 60px; height: 60px; }
.brand-name { font: 24px/1.08 var(--pixel); }
.brand-name > span { display: block; }
.brand-name > span:last-child { color: var(--ember); }
.header .brand { justify-self: start; }
.header nav { display: flex; gap: 32px; }
.header nav a { text-decoration: none; color: #cbc8bc; font-size: .875rem; }
.header nav a:hover { color: var(--ember); }
.header > .button { justify-self: end; }
/* Обложка остаётся чёткой в центре; края растворяются в фоне без рамки и размытия пикселей. */
.hero { padding-block: 0 64px; text-align: center; }
.hero-art { position: relative; width: 1120px; max-width: 100%; height: 492px; margin-inline: auto; overflow: hidden; mask-image: linear-gradient(to bottom, transparent, #000 10%, #000 60%, transparent); }
.hero-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to right, var(--bg), transparent 16%, transparent 84%, var(--bg)); }
.hero-art img { position: absolute; width: 1120px; height: 530px; max-width: none; left: 50%; transform: translateX(-50%); top: 0; }
.hero h1 { font-size: 64px; line-height: 1.06; }
.hero h1 > span, .hero h1 > em { display: block; white-space: nowrap; }
.hero-copy { position: relative; max-width: 840px; margin: -136px auto 0; }
.hero-genre { font-size: 15px; color: #b8ac94; margin-top: 18px; }
.hero-lead { max-width: 640px; margin: 22px auto 0; font-size: 18px; line-height: 1.65; color: #cdcbbf; }
.hero-actions { display: flex; justify-content: center; align-items: center; gap: 24px; margin-top: 28px; }
.hero-actions .button { min-width: 224px; min-height: 56px; padding: 14px 28px; }
.hero-note { color: #a59e90; font-size: 14px; margin-top: 16px; }
/* Вступления читаются сверху вниз: заголовок и описание образуют одну группу перед кадром. */
.section-heading { max-width: 720px; margin: 0 auto 36px; text-align: center; }
.section-intro { max-width: 640px; margin: 20px auto 0; color: var(--muted); }
.expedition { padding-top: 0; }
.gameplay { width: 100%; border: 1px solid #6b695880; border-radius: var(--radius); overflow: hidden; background: #1b1e18; }
.gameplay img { width: 100%; }
.gameplay figcaption { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 24px; font-size: .875rem; color: var(--muted); }
.gameplay figcaption span:first-child { color: var(--ember); }
.stakes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; margin-top: 40px; }
.stakes .mini-label { display: none; }
.stakes h3 { margin-bottom: 16px; }
.stakes p:last-child { color: var(--muted); }
.heroes { background: #191c16; }
.hero-roster { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.class { display: flex; flex-direction: column; }
.character { height: 172px; display: flex; align-items: center; margin-bottom: 18px; }
.character img { max-width: none; flex: none; }
.class-warrior img { width: 120px; height: 120px; }
.class-archer img, .class-mage img { width: 128px; height: 128px; }
.class .mini-label { color: #d2bd8c; }
.class h3 { margin-bottom: 18px; }
.class p:last-child { color: var(--muted); }
.boss-chapter { position: relative; min-height: 600px; isolation: isolate; display: flex; align-items: end; }
.boss-art { position: absolute; width: 1120px; height: 530px; top: 32px; right: 0; z-index: -1; overflow: hidden; mask-image: linear-gradient(to bottom, #000 72%, transparent); }
.boss-art img { width: 1120px; height: 530px; max-width: none; }
.boss-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to right, var(--bg), #111210de 24%, #11121040 50%, transparent 72%); }
.boss-copy { max-width: 600px; }
.boss-copy p { color: #c6c4b9; max-width: 400px; margin-top: 24px; }
.home-chapter { display: grid; grid-template-columns: 1.3fr 1fr; gap: var(--columns-gap); align-items: center; padding-top: 24px; }
.home-chapter figure { overflow: hidden; border-radius: var(--radius); }
.home-copy h2 { margin-bottom: 26px; }
.home-copy p { color: var(--muted); margin-top: 20px; }
.home-copy .home-last { color: var(--ember); }
.platforms { background: #202319; color: var(--ink); text-align: center; }
.platforms h2 { max-width: 800px; margin-inline: auto; }
.platforms-intro { max-width: 570px; margin: 26px auto 40px; color: #bdc0ac; }
.platform-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 40px; max-width: 960px; margin-inline: auto; text-align: left; }
.platform { min-width: 0; padding: 26px 0 0; display: flex; flex-direction: column; align-items: start; }
.platform svg { width: 28px; height: 28px; stroke: #bfc3ad; stroke-width: 1.6; margin-bottom: 20px; }
.platform-type { font-size: .875rem; color: #bdc0ac; margin-bottom: 4px; }
.platform h3 { margin-bottom: 12px; }
.platform.available { grid-column: 1 / -1; display: grid; grid-template-columns: 48px 1fr 240px; column-gap: 20px; align-items: center; padding: 28px 32px; margin-bottom: 12px; background: #2b2e20; border-radius: var(--radius); }
.platform.available svg { grid-column: 1; grid-row: 1 / 3; width: 32px; height: 32px; margin: 0; }
.platform.available .platform-type { grid-column: 2; grid-row: 2; margin: 4px 0 0; }
.platform.available h3 { grid-column: 2; grid-row: 1; margin: 0; font-size: 2rem; }
.platform.available .button { grid-column: 3; grid-row: 1 / 3; }
.coming-soon { color: #bdc0ac; font-size: .875rem; }
.faq { display: grid; grid-template-columns: 1fr 1.2fr; gap: var(--columns-gap); }
/* Нативный marker не проступает в соседнюю колонку, фокус остаётся внутри блока. */
.questions { min-width: 0; contain: paint; }
.questions details { border-bottom: 1px solid var(--line); }
.questions details:first-child { border-top: 1px solid var(--line); }
summary { cursor: pointer; }
.questions summary { display: block; list-style: none; position: relative; padding: 23px 36px 23px 0; font-size: 1.125rem; }
.questions summary::-webkit-details-marker { display: none; }
.questions summary::marker { content: ''; font-size: 0; }
.questions summary:focus-visible { outline-offset: -3px; }
.questions summary::before, .questions summary::after { content: ''; position: absolute; top: 50%; background: var(--ember); }
.questions summary::after { right: 8px; width: 12px; height: 1px; transform: translateY(-50%); }
.questions summary::before { right: 13.5px; width: 1px; height: 12px; transform: translateY(-50%); }
.questions details[open] summary::before { display: none; }
.questions details p { padding-bottom: 24px; color: var(--muted); }
.last-call { display: flex; justify-content: space-between; align-items: center; gap: 30px; border-top: 1px solid var(--line); padding-block: 40px; }
.last-call p { font: 600 1.5rem/1.3 var(--body); }
.footer { border-top: 1px solid var(--line); padding-block: 40px 24px; }
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.footer .brand-figure { width: 48px; height: 48px; }
.footer .brand-name { font-size: 16px; }
.footer-top > p { color: #c6b590; font-family: var(--pixel); }
.footer-links { display: flex; flex-wrap: wrap; gap: 14px 26px; margin-top: 28px; color: #a59e90; font-size: .875rem; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--ink); }
.footer-links span { margin-left: auto; }
.legal { font-size: .875rem; color: #a59e90; margin-top: 24px; }
.legal summary { padding-block: 10px; }
.legal-content { max-width: 800px; padding-block: 16px; }
.legal-content section { margin-block: 20px; }
.legal-content h2 { font: 600 1.125rem/1.4 var(--body); color: var(--ink); margin-bottom: 12px; }
.legal-content p, .legal-content ul { margin-top: 12px; }
.legal-content a { color: var(--ink); }
@media (max-width: 1050px) {
  :root { --gutter: 32px; --columns-gap: 32px; }
  .header { gap: 24px; }
  .header .brand { gap: 8px; }
  .header .brand-name { font-size: 20px; }
  .header .brand-figure { width: 48px; height: 48px; }
  .header nav { gap: 20px; }
  .hero h1 { font-size: 48px; }
  .stakes, .hero-roster { gap: 32px; }
  .home-chapter { gap: 32px; }
  .platform.available { grid-template-columns: 40px 1fr 220px; }
}
@media (max-width: 700px) {
  :root { --gutter: 20px; --section-space: 48px; }
  body { font-size: 1rem; line-height: 1.65; }
  .header { height: 80px; grid-template-columns: 1fr auto; gap: 16px; }
  .header .brand-name { font-size: 24px; }
  .header nav { display: none; }
  .header .button { min-height: 44px; padding-inline: 16px; }
  .hero { padding-block: 0 48px; }
  .hero-art { width: calc(100% + var(--gutter) + var(--gutter)); max-width: none; height: 292px; margin-inline: calc(0px - var(--gutter)); mask-image: linear-gradient(to bottom, #000 55%, transparent); }
  .hero-art img { width: 560px; height: 265px; top: 0; }
  .hero-art::after { background: linear-gradient(to right, #11121044, transparent 20%, transparent 80%, #11121044); }
  .hero-copy { margin: -52px auto 0; }
  .hero h1 { font-size: 32px; line-height: 1.13; }
  .hero-genre { font-size: 14px; margin-top: 16px; }
  .hero-lead { max-width: 420px; font-size: 16px; margin-top: 20px; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 8px; margin-top: 24px; }
  .hero-actions .button { width: 100%; min-height: 52px; }
  .hero-actions .text-link { align-self: center; }
  .hero-note { max-width: 300px; margin: 12px auto 0; }
  h2 { font-size: 1.5rem; }
  .section-heading { margin-bottom: 28px; }
  .section-intro { margin-top: 18px; }
  .gameplay figcaption { padding: 12px 16px; }
  .gameplay figcaption span:last-child { display: none; }
  .stakes { display: block; margin-top: 28px; }
  .stakes article + article { margin-top: 26px; }
  .stakes h3 { margin-bottom: 10px; }
  .hero-roster { display: block; }
  .class { flex-direction: row; align-items: center; gap: 20px; padding-top: 26px; }
  .class + .class { margin-top: 8px; }
  .character { flex: 0 0 96px; height: 110px; margin: 0; justify-content: center; }
  .class-warrior img { width: 90px; height: 90px; }
  .class-archer img, .class-mage img { width: 96px; height: 96px; }
  .class .mini-label { display: none; }
  .class h3 { margin-bottom: 10px; }
  .boss-chapter { display: block; min-height: 0; }
  .boss-art { position: relative; width: calc(100% + var(--gutter) + var(--gutter)); height: 270px; top: 0; right: auto; margin: -16px calc(0px - var(--gutter)) 8px; mask-image: linear-gradient(to bottom, #000 65%, transparent); }
  .boss-art img { position: absolute; width: 672px; height: 318px; left: 50%; transform: translateX(-50%); top: -10px; }
  .boss-art::after { background: none; }
  .boss-copy p { max-width: none; }
  .home-chapter { display: flex; flex-direction: column; gap: 30px; padding-top: 0; }
  .home-chapter figure { width: calc(100% + var(--gutter) + var(--gutter)); border-radius: 0; }
  .home-copy { width: 100%; }
  .platforms-intro { margin: 24px auto 30px; }
  .platform-grid { grid-template-columns: 1fr; }
  .platform.available { grid-template-columns: 40px 1fr; padding: 24px; gap: 8px 16px; }
  .platform.available h3 { font-size: 1.5rem; }
  .platform.available .button { grid-column: 1 / -1; grid-row: 3; width: 100%; margin-top: 16px; }
  .platform:not(.available) { display: grid; grid-template-columns: 32px 1fr auto; gap: 4px 14px; align-items: center; padding: 24px 0; border-bottom: 1px solid #6b695880; }
  .platform:not(.available) svg { grid-column: 1; grid-row: 1 / 3; margin: 0; }
  .platform:not(.available) .platform-type { grid-column: 2; grid-row: 2; margin: 0; }
  .platform:not(.available) h3 { grid-column: 2; grid-row: 1; margin: 0; }
  .coming-soon { grid-column: 3; grid-row: 1 / 3; }
  .platform:not(.available) .text-link { grid-column: 2 / -1; grid-row: 3; justify-self: start; }
  .faq { display: block; }
  .questions { margin-top: 30px; }
  .questions summary { font-size: 1rem; }
  .last-call { flex-direction: column; align-items: stretch; text-align: center; padding-block: 36px; }
  .footer { padding-top: 32px; }
  .footer-top { display: block; }
  .footer-top > p { margin-top: 20px; }
  .footer-links span { width: 100%; margin-left: 0; }
}
@media (max-width: 370px) {
  .header { gap: 12px; }
  .header .brand { gap: 4px; }
  .header .brand-name { font-size: 16px; }
  .header .button { padding-inline: 12px; }
  .class { gap: 16px; }
  .character { flex-basis: 64px; }
  .class img { width: 64px; height: auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}
