/* BoHpts x20 · Dark & Light — промо-страница.
   Две стороны = две темы, как в лаунчере: data-side="dark" (чёрный и золото) и data-side="light" (слоновая кость и зелень).
   Шапка всегда показывает обе стороны; переключатель перекрашивает остальную страницу. */

/* Шрифты (владелец 15.10: «шрифты не нравятся людям… главная проблема — в обычном тексте шрифт как в заголовке»).
   Trajan Pro 3 — только заголовки (шрифт bohpts.com и эпохи Lineage 2, кириллица есть); весь обычный текст, подписи и
   кнопки — Inter: ровный, читаемый, с хорошей кириллицей. Файлы лежат в assets/fonts/ (Inter — OFL, подмножества
   кириллица и латиница по unicode-range; Trajan — с bohpts.com). */
@font-face { font-family: "Trajan Pro 3"; src: url("../assets/fonts/trajan-pro-3/TrajanPro3Regular.woff2") format("woff2"); font-weight: 300 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Trajan Pro 3"; src: url("../assets/fonts/trajan-pro-3/TrajanPro3SemiBold.woff2") format("woff2"); font-weight: 600 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../assets/fonts/inter/inter-cyrillic-ext.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Inter"; src: url("../assets/fonts/inter/inter-cyrillic.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Inter"; src: url("../assets/fonts/inter/inter-latin-ext.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; src: url("../assets/fonts/inter/inter-latin.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --font-display: "Trajan Pro 3", "Times New Roman", serif;
  --font-label: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-text: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  --gold: #d9b56c;
  --gold-hi: #f3d896;
  --gold-lo: #a9803a;
  --silver-hi: #f6f6f8;
  --silver-lo: #8e919c;
  --storm: #8fb4ff;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-io: cubic-bezier(0.77, 0, 0.175, 1);
  --theme-t: 0.3s;

  /* Моушн · кривые. Одно действие — одно время и одна кривая. */
  --ease-deck:  cubic-bezier(0.35, 0, 0.15, 1);  /* колода и всё, что едет с ней: планы, сход сторон, ромб точек */
  --ease-glide: cubic-bezier(0.45, 0, 0.2, 1);   /* переезд метки: ползунок DARK|LIGHT, золото недели, черты, бургер */
  --ease-soft:  cubic-bezier(0.33, 1, 0.68, 1);  /* приход и посадка: вход шапки, створка, панели, меню, цифры, героиня */
  /* --ease-out — только нажатие. ease — цвет, свет, прозрачность, растворение.
     --ease-io для движения больше не применять. --theme-t не трогаем: под растворением он не работает. */

  /* Моушн · времена */
  --t-press: 120ms;      /* нажатие; короткий уход содержимого */
  --t-release: 150ms;    /* отпускание; закрытие меню */
  --t-hover-in: 150ms;   /* наведение: вход */
  --t-hover-out: 420ms;  /* наведение: уход */
  --t-fade: 240ms;       /* панель целиком, открытие меню, наведение на героиню (вход) */
  --t-tick: 280ms;       /* цифра таймера */
  --t-swap: 360ms;       /* неделя, босс, бургер, приход описания карточки */
  --t-glide: 460ms;      /* переезд метки (как черта языка в лаунчере) */
  --t-theme: 500ms;      /* растворение темы */
  --t-open: 600ms;       /* створка карточки; шаги входа шапки */
  --t-deck: 800ms;       /* колода */

  /* Моушн · величины */
  --par-far: 25svh;      /* арт отстаёт на четверть хода */
  --near: 24px;          /* текст догоняет: глубина k даёт 24 + 16·k px (k = 0…3, максимум 72) */
  --near-step: 16px;
  --meet: max(16px, 0.3em); /* сход DARK/LIGHT; em — от кегля самих слов */
  --nav-delay: 0ms;      /* ставит JS: когда шов разделов проходит под панелью */

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --nav-h: 72px;
}
@media (max-width: 760px) { :root { --par-far: 18svh; --near: 16px; --near-step: 8px; } }

/* Свет кнопки: сила, точка курсора (проценты кнопки). Без @property свет идёт за курсором без сглаживания. */
@property --glow { syntax: '<number>'; inherits: true; initial-value: 0.34; }
@property --mx { syntax: '<percentage>'; inherits: true; initial-value: 50%; }
@property --my { syntax: '<percentage>'; inherits: true; initial-value: 50%; }

/* Тьма — по умолчанию */
:root,
:root[data-side="dark"] {
  --bg: #0b0b0f;
  --bg-2: #121219;
  --bg-3: #191922;
  --ink: #ece4d4;
  --ink-2: rgba(236, 228, 212, 0.72);
  --ink-3: #b8b09f;
  --line: rgba(217, 181, 108, 0.22);
  --line-2: rgba(236, 228, 212, 0.1);
  --accent: #d9b56c;
  --accent-text: #e6c47e;
  --accent-ink: #1a140a;
  --glass: rgba(13, 13, 18, 0.72);
  --glass-2: rgba(20, 20, 28, 0.82);
  --shade: 11, 11, 15;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  color-scheme: dark;
}

:root[data-side="light"] {
  --bg: #ece5d6;
  --bg-2: #e4dbc8;
  --bg-3: #f3eee3;
  --ink: #2b261e;
  --ink-2: rgba(43, 38, 30, 0.76);
  --ink-3: #625849;
  --line: rgba(122, 90, 28, 0.28);
  --line-2: rgba(43, 38, 30, 0.12);
  --accent: #25302a;
  --accent-text: #684a17;
  --accent-ink: #f3ecdc;
  --glass: rgba(246, 241, 231, 0.8);
  --glass-2: rgba(250, 247, 240, 0.9);
  --shade: 236, 229, 214;
  --shadow: 0 24px 60px rgba(80, 60, 20, 0.18);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html.menu-is-open { overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.55;
  font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color var(--theme-t) ease, color var(--theme-t) ease;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent-text); outline-offset: 4px; }
.hero :focus-visible, .join :focus-visible, .tournament :focus-visible, .foot :focus-visible { outline-color: var(--gold-hi); }
/* панель над шапкой и точки на тёмных слайдах всегда тёмные — кольцо золотое и в LIGHT */
.nav:not(.is-solid):not(.menu-open) :focus-visible, .dots.on-hero :focus-visible { outline-color: var(--gold-hi); }
/* заголовок раздела получает фокус кодом после перехода — рамка не нужна и не уезжает с разделом */
[tabindex="-1"]:focus { outline: none; }

.skip { position: fixed; left: -9999px; top: 8px; z-index: 100; padding: 10px 16px; background: var(--accent); color: var(--accent-ink); }
.skip:focus { left: 8px; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; position: relative; }

/* ---------- Типографика ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  margin: 0 0 14px;
  font-family: var(--font-label); font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent-text);
  transition: color var(--theme-t) ease;
}
.eyebrow__num {
  font-family: var(--font-display); font-weight: 600; font-size: 20px; letter-spacing: 0.04em;
  padding-right: 12px; border-right: 1px solid var(--line);
}
.h2 {
  margin: 0;
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(34px, 4.4vw, 60px); line-height: 1.12; letter-spacing: -0.005em;
  text-wrap: balance;
}
.h2 em { font-style: normal; color: var(--accent-text); }
.h3 { margin: 0 0 8px; font-family: var(--font-display); font-weight: 600; font-size: clamp(26px, 2.6vw, 34px); line-height: 1.1; }
.h3 small { display: block; font-family: var(--font-label); font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-text); margin-top: 8px; vertical-align: middle; }
.lead { margin: 14px 0 0; max-width: 60ch; font-size: 18px; color: var(--ink-2); }
.head { margin-bottom: clamp(28px, 4vw, 48px); }
.head--center { text-align: center; }
.head--center .eyebrow { justify-content: center; }
.head--center .h2 { margin-inline: auto; max-width: 22ch; }
.head--split { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.note { margin: 22px 0 0; font-size: 14px; color: var(--ink-3); }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px;
  border: 1px solid var(--line); border-radius: 2px;
  font-family: var(--font-label); font-size: 14px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink);
  transition: border-color var(--theme-t), color var(--theme-t), background-color var(--theme-t);
}
.chip--fill { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-family: var(--font-text); font-weight: 700; font-size: 15px; letter-spacing: 0.1em; }

/* ---------- Кнопки ---------- */
/* Лицо кнопки (фон и рамка) — слой ::before, свет — ::after, подпись — <span>. При нажатии оседают они, а сама кнопка
   стоит: место клика не двигается. Цвета лица контексты задают переменными --btn-bg и --btn-bd. */
.btn {
  --btn-bg: transparent; --btn-bd: var(--accent);
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px;
  border: 1px solid transparent; border-radius: 2px; background: none;
  font-family: var(--font-label); font-size: 15px; letter-spacing: 0.18em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap;
  transition: color var(--theme-t), --mx 70ms linear, --my 70ms linear, --glow var(--t-release) var(--ease-out);
}
.btn::before {
  content: ""; position: absolute; inset: -1px; z-index: -2;
  background: var(--btn-bg); border: 1px solid var(--btn-bd); border-radius: inherit;
  transition: background-color var(--t-fade) ease, border-color var(--t-hover-out) ease, scale var(--t-release) var(--ease-out);
}
/* свет кнопки — один тёплый свет под курсором, как в лаунчере (вместо пробегающей полосы) */
.btn::after {
  content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit; pointer-events: none;
  background: radial-gradient(circle 90px at var(--mx) var(--my), rgba(var(--btn-light, 255, 236, 190), calc(var(--glow) * var(--glow-k, 1))), transparent 70%);
  mix-blend-mode: var(--btn-blend, screen); opacity: 0;
  transition: opacity var(--t-hover-out) ease, scale var(--t-release) var(--ease-out);
}
.btn > span { display: inline-block; transition: scale var(--t-release) var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover::before { transition-duration: var(--t-fade), var(--t-hover-in), var(--t-release); }
  .btn:hover::after { opacity: 1; transition-duration: var(--t-hover-in), var(--t-release); }
}
/* нажатие: лицо, свет и подпись оседают до 0,97 за 120 мс, отпускание 150 мс */
.btn:active { --glow: 0.5; transition-duration: var(--theme-t), 70ms, 70ms, var(--t-press); }
.btn:active::before, .btn:active::after, .btn:active > span { scale: 0.97; }
.btn:active::before { transition-duration: var(--t-fade), var(--t-hover-in), var(--t-press); }
.btn:active::after { transition-duration: var(--t-hover-in), var(--t-press); }
.btn:active > span { transition-duration: var(--t-press); }
.btn--main { --btn-bg: var(--accent); --btn-bd: var(--accent); color: var(--accent-ink); }
.btn--ghost { --btn-bg: rgba(var(--shade), 0.35); --btn-bd: var(--line); color: var(--ink); }
.btn--ghost::before { backdrop-filter: blur(6px); }
.btn--sm { min-height: 44px; padding: 0 16px; font-size: 14px; letter-spacing: 0.1em; }

/* ---------- Верхняя панель ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 0 var(--gutter);
  background: rgba(9, 9, 13, 0.88);
  /* панель меняется одним растворением: фон, цвет, линия, кнопки, переключатель, x20 — одно время и одна задержка
     (--nav-delay ставит main.js: панель ждёт, пока под ней пройдёт шов разделов); размытие — в начале растворения */
  transition: background-color var(--t-fade) ease var(--nav-delay), color var(--t-fade) ease var(--nav-delay), backdrop-filter 0s linear var(--nav-delay);
}
.nav.is-solid { background: rgba(var(--shade), 0.86); backdrop-filter: blur(14px); }
/* линия под панелью — слой, а не тень: проявляется в том же растворении */
.nav::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--line-2); opacity: 0; pointer-events: none; transition: opacity var(--t-fade) ease var(--nav-delay); }
.nav.is-solid::after { opacity: 1; }
/* кнопки панели перекрашиваются в том же растворении; нажатие и свет за курсором — без задержки */
.nav .btn { transition-duration: var(--t-fade), 70ms, 70ms, var(--t-release); transition-delay: var(--nav-delay), 0s, 0s, 0s; }
.nav .btn:active { transition-duration: var(--t-fade), 70ms, 70ms, var(--t-press); }
.nav .btn::before { transition-delay: var(--nav-delay), var(--nav-delay), 0s; }
/* над шапкой панель всегда тёмная — под ней две стороны, светлый текст читается на сумерках */
.nav:not(.is-solid) { color: #f1ead9; }
.nav:not(.is-solid) .btn--ghost { color: #f1ead9; --btn-bd: rgba(241, 234, 217, 0.4); --btn-bg: rgba(10, 10, 14, 0.25); --btn-bd-hover: var(--gold); }
.nav:not(.is-solid) .btn--main { --btn-bg: var(--gold); --btn-bd: var(--gold); color: #1a140a; }
/* при смене языка место клика стоит: ширина кнопок панели — по самой длинной подписи из четырёх языков
   (замер 1440 и 1920, кегль 14 px: «Регистрация» RU 149,7 px = 10,69em, «Завантажити файли» UA 220,7 px = 15,76em) */
.nav .btn--sm.btn--ghost { min-width: 10.75em; }
.nav .btn--sm.btn--main { min-width: 15.8em; }
.nav__brand { display: inline-flex; align-items: center; min-height: 44px; gap: 10px; text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: 0.04em; flex: none; }
.nav__identity { font-family: var(--font-label); font-weight: 400; font-size: 16px; letter-spacing: 0.1em; text-transform: uppercase; padding-right: 12px; border-right: 1px solid currentColor; }
.nav__x { color: var(--gold); font-weight: 700; transition: color var(--t-fade) ease var(--nav-delay); }
:root[data-side="light"] .nav.is-solid .nav__x, :root[data-side="light"] .nav.menu-open .nav__x { color: var(--accent-text); }
.nav__word i { font-style: normal; color: var(--gold); transition: color var(--t-fade) ease var(--nav-delay); }
:root[data-side="light"] .nav.is-solid .nav__word i { color: var(--accent-text); }
.nav__links { display: flex; gap: 20px; margin-right: auto; margin-left: 12px; }
.nav__links a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; font-family: var(--font-label); font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 5px; text-decoration-color: transparent; }
/* наведение — одна система: вход 150 мс, уход 420 мс; подчёркивание проявляется, а не появляется скачком */
@media (hover: hover) and (pointer: fine) {
  .nav__links a { transition: text-decoration-color var(--t-hover-out) ease; }
  .nav__links a:hover { text-decoration-color: currentColor; transition-duration: var(--t-hover-in); }
}
.nav__right { display: flex; align-items: center; gap: 14px; }
.nav__burger { display: none; width: 44px; height: 44px; position: relative; }
.nav__burger span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: currentColor; transition: transform var(--t-swap) var(--ease-glide); } /* перекладины сходятся в крест одним переездом */
.nav__burger span:first-child { top: 17px; }
.nav__burger span:last-child { top: 26px; }
.nav__burger[aria-expanded="true"] span:first-child { transform: translateY(4.5px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-4.5px) rotate(-45deg); }

/* переключатель стороны */
.side-switch {
  position: relative; display: grid; grid-template-columns: 1fr 1fr;
  min-height: 48px; padding: 1px; border: 1px solid rgba(241, 234, 217, 0.5); border-radius: 2px;
  background: rgba(10, 10, 14, 0.3);
  transition: border-color var(--t-fade) ease var(--nav-delay), background-color var(--t-fade) ease var(--nav-delay); /* вместе с панелью */
}
.nav.is-solid .side-switch, .nav.menu-open .side-switch { border-color: var(--line); background: rgba(var(--shade), 0.5); }
.side-switch__btn {
  position: relative; z-index: 1; min-width: 64px; min-height: 44px; padding: 0 12px;
  font-family: var(--font-label); font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase;
  transition: color var(--t-fade) ease var(--nav-delay);
}
.side-switch__thumb {
  position: absolute; top: 1px; bottom: 1px; left: 1px; width: calc(50% - 1px);
  background: linear-gradient(135deg, #2a2a33, #0f0f14); border: 1px solid rgba(217, 181, 108, 0.6);
  transition: transform var(--t-theme) var(--ease-glide); /* запасной путь; обычно ползунок едет внутри растворения темы */
}
/* ползунок и подписи — свои слои растворения: ползунок переезжает, слова DARK и LIGHT остаются поверх него */
.side-switch__thumb { view-transition-name: side-thumb; }
.side-switch__btn[data-side-set="dark"] { view-transition-name: side-dark; }
.side-switch__btn[data-side-set="light"] { view-transition-name: side-light; }
:root[data-side="light"] .side-switch__thumb { transform: translateX(100%); background: linear-gradient(135deg, #f6efdd, #d8c9a4); border-color: #b38536; }
:root[data-side="dark"] .side-switch__btn[data-side-set="dark"] { color: var(--gold-hi); }
:root[data-side="light"] .side-switch__btn[data-side-set="light"] { color: #2b261e; }

.langs { position: relative; display: grid; grid-template-columns: repeat(4, 44px); gap: 2px; width: max-content; }
.langs button {
  min-width: 44px; height: 44px; padding: 0 6px;
  font-family: var(--font-label); font-size: 14px; letter-spacing: 0.08em;
  position: relative;
}
/* одна черта под выбранным языком переезжает к новому (как в лаунчере); --li ставит applyLang() */
.langs::after {
  content: ""; position: absolute; left: 0; bottom: 7px; height: 1px; width: calc((100% - 6px) / 4); padding-inline: 8px;
  background: currentColor; background-clip: content-box; pointer-events: none;
  transform: translateX(calc(var(--li, 0) * (100% + 2px))); transition: transform var(--t-glide) var(--ease-glide);
}
@media (hover: hover) and (pointer: fine) {
  .langs button { transition: background-color var(--t-hover-out) ease; }
  .langs button:hover { background: rgba(217, 181, 108, 0.12); transition-duration: var(--t-hover-in); }
}
.langs button.is-active { opacity: 1; }

.menu {
  position: fixed; inset: var(--nav-h) 0 0; z-index: 49;
  background: rgba(var(--shade), 0.97); backdrop-filter: blur(16px);
  padding: 16px var(--gutter) max(24px, env(safe-area-inset-bottom)); overflow-y: auto; overscroll-behavior: contain;
}
/* Меню — одним движением (класс is-open ставит main.js; без JS его прячет hidden): открытие — проявление 240 мс и подъезд
   списка на 8 px, закрытие — только прозрачность 150 мс, потом visibility: hidden (скрытое меню не ловит фокус).
   Панель перекрашивается в те же кадры: при открытии — за те же 240 мс, при закрытии — 150 мс (menu-closing). */
.menu { opacity: 0; visibility: hidden; transition: opacity var(--t-release) ease, visibility 0s linear var(--t-release); }
.menu.is-open { opacity: 1; visibility: visible; transition: opacity var(--t-fade) ease, visibility 0s; }
html.menu-closing .nav { --t-fade: var(--t-release); }
.menu__inner { display: flex; flex-direction: column; gap: 4px; }
.menu__inner { translate: 0 8px; transition: translate 0s linear var(--t-release); }
.menu.is-open .menu__inner { translate: 0 0; transition: translate var(--t-fade) var(--ease-soft); }
.menu__inner > a { display: flex; align-items: center; min-height: 48px; padding: 8px 0; border-bottom: 1px solid var(--line-2); font-family: var(--font-display); font-size: 25px; font-weight: 600; text-decoration: none; }
@media (hover: hover) and (pointer: fine) {
  .menu__inner > a { transition: color var(--t-hover-out) ease; }
  .menu__inner > a:hover { color: var(--accent-text); transition-duration: var(--t-hover-in); }
}
.langs--menu { margin-top: 18px; }

/* точки разделов */
.dots { position: fixed; right: 4px; top: 50%; z-index: 40; transform: translateY(-50%); display: flex; flex-direction: column; gap: 0; }
.dots a { position: relative; display: grid; place-items: center; width: 44px; height: 44px; text-decoration: none; }
/* контуры перекрашиваются, когда шов разделов проходит середину экрана (через 130 мс после старта колоды) */
.dots a::before { content: ""; width: 8px; height: 8px; border: 1px solid var(--ink-3); transform: rotate(45deg); transition: border-color var(--t-fade) ease 130ms, box-shadow var(--t-fade) ease 130ms; }
.dots a span {
  position: absolute; right: 44px; top: 50%; transform: translateY(-50%);
  white-space: nowrap; font-family: var(--font-label); font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 8px 12px; background: var(--bg-3); border: 1px solid var(--line);
  color: var(--ink); opacity: 0; pointer-events: none; transition: opacity 0.2s;
}
.dots a:focus-visible span { opacity: 1; }
@media (hover: hover) and (pointer: fine) {
  .dots a span { transition: opacity var(--t-hover-out) ease; }
  .dots a:hover span { opacity: 1; }
  .dots a:hover span, .dots a:focus-visible span { transition-duration: var(--t-hover-in); }
}
.dots.on-hero a::before { border-color: #f1ead9; }
/* над артом шапки точки стоят на светлой половине (мрамор, небо): у ромбов тёмная кромка снаружи — светлый контур и
   золото читаются; на тёмных турнире и финале кромки не видно */
.dots.on-hero a::before { box-shadow: 0 0 0 1px rgba(9, 9, 13, 0.7); }
.dots.on-hero a span { color: #f1ead9; background: #121219; }
/* Текущий раздел — один залитый ромб: едет по колонне вместе с колодой (её время и кривая), а не перекрашивает две
   точки. --dot (номер точки) ставит main.js; без JS ромба нет, как не было и заливки. */
html.deck-on .dots::after {
  content: ""; position: absolute; left: 18px; top: 18px; width: 8px; height: 8px; pointer-events: none;
  background: var(--accent-text);
  transform: translateY(calc(var(--dot, 0) * 44px)) rotate(45deg);
  transition: transform var(--t-deck) var(--ease-deck), background-color var(--t-fade) ease 130ms, box-shadow var(--t-fade) ease 130ms;
}
html.deck-on .dots.on-hero::after { background: var(--gold); box-shadow: 0 0 0 1px rgba(9, 9, 13, 0.7); }

/* ---------- Шапка ---------- */
.hero {
  --facts-h: 112px;
  position: relative; min-height: max(100svh, 720px);
  display: flex; flex-direction: column;
  color: #f1ead9; overflow: hidden; isolation: isolate;
}
/* Арт шапки — одна картина: обе героини и золотой разлом нарисованы в ней (широкая 1920×1072; на телефоне и планшете
   стоя — вертикальная, см. «постер»). Обе половины показывают её с одной точкой — вместе это цельная картинка;
   половина нужна, чтобы гасить чужую сторону. Сцена режет края — масштаб входа не выходит за шапку. */
.hero { background: #0b0b0f; }
.hero__scene { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero__half { position: absolute; inset: 0; }
.hero__half img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.hero__half--dark { clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%); }
.hero__half--light { clip-path: polygon(50% 0, 100% 0, 100% 100%, 50% 100%); }
/* героиня просыпается под курсором — одно движение: чужая половина гаснет слоем (вход 240 мс, уход 420 мс, одна
   кривая). У шва слой сходит на нет — нарисованный разлом не режется ступенькой. Своя половина не масштабируется. */
.hero__half::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  transition: opacity var(--t-hover-out) ease;
}
.hero__half--dark::after { background: linear-gradient(270deg, transparent 50%, #09090d 54%); }
.hero__half--light::after { background: linear-gradient(90deg, transparent 50%, #09090d 54%); }
/* класс focus-* ставит main.js: мышь — наведением, клавиатура — фокусом, касание — на время растворения стороны */
.hero.focus-dark .hero__half--light::after, .hero.focus-light .hero__half--dark::after { opacity: 0.16; transition-duration: var(--t-fade); }
/* нажатие на героиню — тот же слой за 120 мс (на телефоне это и есть отклик касания; мышью сторона уже погашена) */
.hero:has(.stand--dark:active) .hero__half--light::after, .hero:has(.stand--light:active) .hero__half--dark::after { opacity: 0.16; transition-duration: var(--t-press); }
/* растворение стороны глушит переходы; слою — нет: касание доводит затемнение плавно, без скачка в снимке */
html.theme-switching .hero__half::after { transition: opacity var(--t-fade) ease !important; }
.hero__veil {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 38% 64% at 50% 43%, rgba(9, 9, 13, 0.95), rgba(9, 9, 13, 0.82) 50%, rgba(9, 9, 13, 0.2) 85%, transparent 100%),
    linear-gradient(180deg, rgba(9, 9, 13, 0.7) 0%, transparent 18%, transparent 66%, rgba(var(--shade), 0.55) 80%, var(--bg) 91%);
  transition: background var(--theme-t);
}

/* Кнопки сторон — прозрачные зоны поверх героинь арта (по росту героини), подпись Dark/Light снизу.
   Зона считается от того, как арт лёг в шапку (cover, точка 50% 62%): 100cqw × 100cqh — размер шапки.
   В арте: тёмная x 9–27 %, светлая x 73,5–90 %, макушки на 4,5 %, ступни на 94,5 % высоты. Низ зоны — ступни,
   но не ниже полосы фактов: подпись остаётся над ней, как раньше. */
.hero__stands {
  position: absolute; inset: 0; z-index: 1; pointer-events: none; container-type: size;
  --stand-floor: calc(var(--facts-h) + 34px);
}
.hero__stands .stand { pointer-events: auto; }
.stand {
  --wide-w: max(100cqw, 179.104cqh); --wide-h: max(100cqh, 55.833cqw);
  --wide-x: calc((100cqw - var(--wide-w)) * 0.5); --wide-y: calc((100cqh - var(--wide-h)) * 0.62);
  position: absolute; z-index: 1; display: block; cursor: pointer;
  top: calc(var(--wide-y) + 0.045 * var(--wide-h));
  bottom: max(var(--stand-floor), calc(100cqh - var(--wide-y) - 0.945 * var(--wide-h)));
}
/* зона не выходит за край экрана (на узком окне героиня срезана краем) — подпись остаётся под видимой частью */
.stand--dark { --z0: calc(var(--wide-x) + 0.09 * var(--wide-w)); left: max(var(--gutter), var(--z0)); width: calc(var(--wide-x) + 0.27 * var(--wide-w) - max(var(--gutter), var(--z0))); }
.stand--light { --z0: calc(var(--wide-x) + 0.735 * var(--wide-w)); left: var(--z0); width: calc(min(100cqw - var(--gutter), var(--wide-x) + 0.9 * var(--wide-w)) - var(--z0)); }
.stand__tag {
  position: absolute; left: 50%; bottom: -24px; transform: translateX(-50%);
  white-space: nowrap; font-family: var(--font-label); font-size: 14px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink); padding-bottom: 4px; border-bottom: 2px solid transparent;
}
:root[data-side="light"] .stand__tag { color: #211b13; }
.stand[aria-pressed="true"] .stand__tag { border-bottom-color: var(--accent-text); }

.hero__content {
  position: static;
  width: min(720px, 100% - 2 * var(--gutter)); margin: 0 auto; padding: calc(var(--nav-h) + 28px) 0 40px; flex: 1;
  text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center;
  pointer-events: none;
}
.hero__content > :not(.hero__stands) { pointer-events: auto; position: relative; z-index: 2; }
.eyebrow--hero { color: #f1ead9; gap: 14px; margin-bottom: 18px; }
.eyebrow--hero span:first-child { text-transform: none; color: var(--gold); font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: 0.1em; }
.eyebrow--hero i { width: 28px; height: 1px; background: var(--gold); opacity: 0.6; }

.mark { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: clamp(10px, 1.5vw, 24px); width: min(860px, calc(100vw - 2 * var(--gutter))); margin: 0; font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: 0.02em; line-height: 1; font-size: clamp(56px, 5.4vw, 104px); }
.mark__dark { text-align: right; }
.mark__light { text-align: left; }
.mark__dark { background: linear-gradient(180deg, var(--silver-hi) 10%, var(--silver-lo) 95%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mark__light { background: linear-gradient(180deg, var(--gold-hi) 10%, var(--gold-lo) 95%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mark__dark, .mark__light { filter: drop-shadow(0 3px 14px rgba(0, 0, 0, 0.65)); }
.mark__amp {
  position: relative; width: 0.52em; height: 0.8em;
  display: grid; place-items: center;
  color: var(--gold-hi);
}
.mark__amp span { font-size: 0.55em; line-height: 1; font-weight: 500; }
.mark--sm { font-size: clamp(36px, 5vw, 64px); margin-bottom: 18px; }

.hero__title { margin: 20px 0 0; font-family: var(--font-display); font-weight: 600; font-size: clamp(28px, 2.6vw, 42px); line-height: 1.15; text-wrap: balance; }
.hero__lead { margin: 16px 0 0; max-width: 54ch; font-size: 18px; color: #e5dfd3; text-wrap: pretty; }

.count { margin-top: 26px; }
.count__label { margin: 0 0 12px; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 12px; font-family: var(--font-text); font-size: 15px; color: #e5dfd3; }
.count__label time { color: var(--gold-hi); font-variant-numeric: lining-nums tabular-nums; }
.count__tz { white-space: nowrap; }
.count__cells { display: flex; justify-content: center; gap: 8px; }
.count__cell {
  min-width: 82px; padding: 10px 8px 8px;
  border: 1px solid rgba(217, 181, 108, 0.35); background: rgba(9, 9, 13, 0.45); backdrop-filter: blur(6px);
  display: flex; flex-direction: column; align-items: center;
}
.count__cell b { font-family: var(--font-text); font-weight: 600; font-size: 34px; font-variant-numeric: tabular-nums; line-height: 1; color: #f8f1df; display: flex; }
/* цифра табло — своя ячейка: при смене старая уходит вверх, новая приходит снизу, край режет (без маски) */
.count__cell b i { font-style: normal; width: 0.56em; text-align: center; display: inline-grid; height: 1em; overflow: hidden; overflow: clip; }
.count__cell b i > span { grid-area: 1 / 1; }
.count__cell > span { margin-top: 4px; font-family: var(--font-label); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: #e5dfd3; }
.count__obt, .obt__date { display: inline-flex; align-items: center; gap: 10px; margin: 12px 0 0; font-family: var(--font-label); font-size: 14px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-hi); }
.pulse { flex: none; width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: pulse 2.2s ease-out infinite; }
@keyframes pulse { 50% { opacity: 0.55; } }

.hero__cta { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; justify-content: center; order: 1; }
.hero .btn--main { --btn-bg: var(--gold); --btn-bd: var(--gold); color: #1a140a; }
.hero .btn--ghost { color: #f1ead9; --btn-bd: rgba(241, 234, 217, 0.45); --btn-bg: rgba(9, 9, 13, 0.35); --btn-bd-hover: var(--gold); }

.facts {
  position: relative; z-index: 2; list-style: none; margin: 0 auto; padding: 0 0 18px; flex-shrink: 0; /* в слайде не сжимается: фон держит все строки */
  width: min(1000px, 100% - 2 * var(--gutter)); min-height: var(--facts-h);
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(217, 181, 108, 0.3);
  background: var(--bg);
}
.facts::before { content: ""; position: absolute; inset: 0 calc(-1 * (100vw - 100%) / 2); z-index: -1; background: var(--bg); }
.facts li { padding: 16px 12px 0; text-align: center; display: flex; flex-direction: column; gap: 2px; }
.facts li + li { border-left: 1px solid rgba(217, 181, 108, 0.18); }
.facts b { font-family: var(--font-text); font-weight: 700; font-size: 20px; line-height: 1.2; color: var(--ink); transition: color var(--theme-t); }
.facts span { font-size: 14px; color: var(--ink-2); transition: color var(--theme-t); }

/* искры */
.embers { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.embers i { position: absolute; bottom: -10px; width: 3px; height: 3px; border-radius: 50%; background: var(--c, #f3d896); box-shadow: 0 0 8px var(--c, #f3d896); opacity: 0; animation: ember var(--d, 12s) linear var(--delay, 0s) infinite; }
@keyframes ember { 0% { transform: translate(0, 0); opacity: 0; } 10% { opacity: 0.9; } 80% { opacity: 0.5; } 100% { transform: translate(var(--dx, 20px), -90vh); opacity: 0; } }

/* ---------- Секции ---------- */
section[data-section] { position: relative; scroll-margin-top: calc(var(--nav-h) + 16px); }
.features, .stages, .bosses, .tournament, .obt, .join { padding: clamp(64px, 7vw, 104px) 0; }
.section-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.section-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.55; transition: opacity var(--theme-t); }
.section-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--bg) 0%, rgba(var(--shade), 0.5) 18%, rgba(var(--shade), 0.5) 82%, var(--bg) 100%); transition: background var(--theme-t); }
:root[data-side="light"] .section-bg img { opacity: 0.4; filter: sepia(0.35) saturate(0.8) brightness(1.1); }
.features, .stages, .bosses, .tournament, .obt { isolation: isolate; }

/* ---------- 4 карточки ---------- */
.features { background: var(--bg); }
.cards { display: flex; gap: 14px; height: clamp(460px, 64vh, 640px); }
/* Створка: ширина, рамка, картинка, свет картинки и стрелка — одно время и одна кривая (--t-open, --ease-soft). */
.card {
  position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; justify-content: flex-end;
  text-decoration: none; color: #f6efdf;
  border: 1px solid rgba(217, 181, 108, 0.22);
  transition: flex-grow var(--t-open) var(--ease-soft), border-color var(--t-open) var(--ease-soft);
}
.card.is-active { flex-grow: 2.6; border-color: rgba(217, 181, 108, 0.8); }
.card img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); opacity: 0.86; transition: transform var(--t-open) var(--ease-soft), opacity var(--t-open) var(--ease-soft); }
.card.is-active img { transform: scale(1); opacity: 1; }
.card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8, 8, 12, 0.12) 0%, rgba(8, 8, 12, 0) 30%, rgba(8, 8, 12, 0.45) 62%, rgba(8, 8, 12, 0.92) 100%); }
/* свет картинки — прозрачность самой картинки над тёмным фоном карточки, а не filter: дешевле и в такт створке
   (0,86 = прежняя яркость). Слой ::after занят дымкой под текстом — см. конец файла. */
.card { background: rgb(8, 8, 12); }
.card__num {
  position: absolute; top: 20px; left: 22px;
  font-family: var(--font-display); font-weight: 600; font-size: 42px; line-height: 1; color: #f3d896;
}
.card__body { padding: 24px 20px; display: flex; flex-direction: column; gap: 8px; transition: scale var(--t-release) var(--ease-out); }
/* нажатие: плашка оседает, сама карточка (место клика) стоит */
.card:active .card__body { scale: 0.97; transition-duration: var(--t-press); }
.card__kicker { font-family: var(--font-label); font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-hi); line-height: 1.4; text-wrap: balance; }
.card__title { font-family: var(--font-display); font-weight: 600; font-size: 30px; line-height: 1.12; text-wrap: balance; }
.card__text { display: none; }
.card__more { display: inline-flex; }
.card__text { font-size: 16px; color: rgba(246, 239, 223, 0.86); max-width: 46ch; }
/* описание не мигает: где оно видно всегда (планшет, телефон), оно стоит; появляется только в створке ниже */
.card.is-active .card__text { display: block; }
.card__more { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-label); font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-hi); }
.card__more svg, .media__badge svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; }
/* Створка (большой экран и мышь). Кикер и заголовок держат меру узкой карточки и в раскрытой, описание уложено
   в меру раскрытой: карточка открывает его, как окно, — строки не перекладываются ни в одном кадре.
   Высота плашки растёт одной строкой сетки (0fr → 1fr) тем же временем и кривой, что ширина. */
@media (min-width: 1181px) and (hover: hover) and (pointer: fine) {
  .cards {
    --cards-gap: 14px; --card-grow: 2.6; container-type: inline-size; gap: var(--cards-gap);
    /* ширина узкой карточки без рамок: рамки (4 × 2 px) в рост не входят */
    --narrow: calc((100cqw - 3 * var(--cards-gap) - 8px) / (3 + var(--card-grow)));
  }
  .card.is-active { flex-grow: var(--card-grow); }
  /* 40 px — поля текста: padding 20 с каждой стороны (плашки больше нет) */
  .card__kicker, .card__title { width: calc(var(--narrow) - 40px); }
  .card__text { width: calc(var(--narrow) * var(--card-grow) - 40px); }
  /* плашку не обрезаем: описание обрезает себя само (строка сетки), по ширине — край карточки, как раньше;
     иначе на 1181–1230 px длинные слова заголовка (уже шире меры) теряли бы буквы */
  .card__body {
    display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto 0fr auto; row-gap: 0;
    transition: grid-template-rows var(--t-open) var(--ease-soft), scale var(--t-release) var(--ease-out);
  }
  .card.is-active .card__body { grid-template-rows: auto auto 1fr auto; }
  .card:active .card__body { transition-duration: var(--t-open), var(--t-press); }
  .card__title, .card__more { margin-top: 8px; }
  /* описание всегда в раскладке; входит, когда створка прошла треть пути, уходящее гаснет коротко */
  .card__text {
    display: block; min-height: 0; overflow: hidden; opacity: 0; translate: 0 8px;
    transition: opacity var(--t-press) ease, translate 0s linear var(--t-press);
  }
  .card__text::before { content: ""; display: block; height: 8px; }
  .card.is-active .card__text { opacity: 1; translate: none; transition: opacity var(--t-swap) var(--ease-soft) 120ms, translate var(--t-swap) var(--ease-soft) 120ms; }
  /* стрелка «Подробнее» — часть того же жеста */
  .card__more svg { transition: transform var(--t-open) var(--ease-soft); }
  .card.is-active .card__more svg { transform: translateX(6px); }
}

/* ---------- 01 недели ---------- */
.list { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 16px; color: var(--ink-2); }
.list li { position: relative; padding-left: 14px; }
.list li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 5px; height: 5px; transform: rotate(45deg); background: var(--accent-text); opacity: 0.7; }
/* «Путь к High Five»: вкладки недель, как этапы старой промо. Одна неделя — одна панель: главное, три цифры, что нового, эпики. */
.road { display: grid; gap: 12px; }
/* Золото выбранной недели — один слой на ленте вкладок: переезжает к новой (--i ставит main.js), а не загорается
   на двух вкладках сразу. Ширина — одна колонка из семи (6 зазоров по 6 px). Слой идёт над стеклом вкладок и под
   подписями: стекло и рамка вкладки — её ::before, сама вкладка своего слоя не образует (без z-index и фильтров),
   иначе золото в пути мутнеет под чужим стеклом и сквозит полоской в зазорах. */
.road__tabs { position: relative; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.road__tabs::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; z-index: 1; width: calc((100% - 36px) / 7);
  background: var(--accent); pointer-events: none;
  transform: translateX(calc(var(--i, 0) * (100% + 6px))); transition: transform var(--t-glide) var(--ease-glide);
}
.road__tab {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-height: 66px; padding: 10px 14px;
  text-align: left; border: 1px solid transparent;
}
.road__tab::before {
  content: ""; position: absolute; inset: -1px; pointer-events: none;
  background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(8px); transition: border-color var(--t-glide) ease;
}
/* подписи над золотом; цвет меняют той же кривой и за то же время, что едет золото; нажатие — оседают на 1 px, вкладка стоит */
.road__tab b { position: relative; z-index: 2; font-family: var(--font-text); font-weight: 700; font-size: 22px; line-height: 1; color: var(--ink); transition: color var(--t-glide) var(--ease-glide), translate var(--t-release) var(--ease-out); }
.road__tab span { position: relative; z-index: 2; font-family: var(--font-label); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); transition: color var(--t-glide) var(--ease-glide), translate var(--t-release) var(--ease-out); }
.road__tab:active b, .road__tab:active span { translate: 0 1px; transition-duration: var(--t-glide), var(--t-press); }
/* наведение: рамка 150 мс вход, 420 мс уход */
@media (hover: hover) and (pointer: fine) {
  .road__tab::before { transition-duration: var(--t-hover-out); }
  .road__tab:hover::before { border-color: var(--accent-text); transition-duration: var(--t-hover-in); }
}
/* заливка выбранной — это золото слоя над её стеклом (замена, не добавление) */
.road__tab[aria-selected="true"]::before { border-color: var(--accent); }
.road__tab[aria-selected="true"] b, .road__tab[aria-selected="true"] span { color: var(--accent-ink); }
/* смену недели ведёт main.js (selectRoad): старое гаснет, новое въезжает с той стороны, куда шагнули */
.road__panel {
  position: relative; display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); min-height: 430px;
  border: 1px solid var(--line); background: var(--glass); backdrop-filter: blur(12px); box-shadow: var(--shadow); overflow: hidden;
  transition: background-color var(--theme-t), border-color var(--theme-t);
}
.road__media { position: relative; overflow: hidden; min-height: 220px; }
.road__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.road__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 8, 12, 0) 40%, rgba(8, 8, 12, 0.75)); }
.road__num { position: absolute; left: 22px; bottom: 14px; z-index: 1; font-family: var(--font-display); font-weight: 700; font-size: 88px; line-height: 0.8; color: #f3d896; text-shadow: 0 4px 18px rgba(0, 0, 0, 0.6); }
.road__body { padding: 26px 30px 28px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.road__kicker { margin: 0; font-family: var(--font-label); font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-text); }
.road__title { margin: -6px 0 0; font-family: var(--font-display); font-weight: 600; font-size: clamp(28px, 2.6vw, 36px); line-height: 1.08; text-wrap: balance; }
.road__stats { display: flex; flex-wrap: wrap; border-block: 1px solid var(--line-2); }
.road__stat { display: flex; flex-direction: column; gap: 2px; padding: 10px 22px 10px 0; }
.road__stat + .road__stat { padding-left: 22px; border-left: 1px solid var(--line-2); }
.road__stat small { font-family: var(--font-label); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.road__stat b { font-family: var(--font-text); font-weight: 700; font-size: 22px; line-height: 1.05; color: var(--ink); }
.road__stat i { font-style: normal; font-size: 14px; color: var(--ink-2); }
.road__label { margin: 0 0 8px; font-family: var(--font-label); font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-text); }
.road__text { margin: 0; color: var(--ink-2); max-width: 62ch; }
.epics { display: grid; gap: 8px; }
.epics__row { display: grid; grid-template-columns: 88px 1fr; gap: 10px; align-items: baseline; }
.epics__k { font-family: var(--font-label); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.epics__v { display: flex; flex-wrap: wrap; gap: 6px; }
.epic { display: inline-flex; align-items: center; min-height: 28px; padding: 2px 10px; border: 1px solid var(--line-2); font-size: 15px; color: var(--ink-2); }
.epic.is-new { border-color: var(--accent-text); color: var(--accent-text); font-weight: 600; background: rgba(217, 181, 108, 0.08); }
.epic.is-new::before { content: "+"; margin-right: 4px; }
.road__panel--late { grid-template-columns: 1fr; min-height: 0; }
.road__panel--late .road__body { gap: 14px; }

.late { margin-top: 56px; }
.late__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 20px; }
.late__head p { margin: 0; max-width: 52ch; color: var(--ink-2); font-size: 16px; }
.late__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.tile { position: relative; background: var(--glass-2); display: flex; flex-direction: column; min-height: 230px; transition: background-color var(--theme-t); }
.tile__img { height: 96px; overflow: hidden; position: relative; }
/* плитка — не ссылка: при наведении картинка стоит (увеличение обещало клик, которого нет) */
.tile__img img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.85); }
.tile__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 70%, var(--glass-2)); transition: background var(--theme-t); }
.tile__body { padding: 4px 16px 18px; }
.tile__name { margin: 0 0 8px; font-family: var(--font-label); font-weight: 400; font-size: 16px; line-height: 1.4; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-text); }

/* ---------- 02 эпики ---------- */
.bosses { background: var(--bg-2); transition: background-color var(--theme-t); }
.bosses__grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.bosses__text p { margin: 0 0 14px; color: var(--ink-2); }
.bosses__text .quote { font-family: var(--font-display); font-size: 25px; line-height: 1.35; color: var(--ink); font-weight: 500; }
.tabs { position: relative; display: flex; gap: 0; margin: 26px 0 18px; border-bottom: 1px solid var(--line); }
/* цвет подписи при выборе касанием — за то же время, что едет черта; с мышью (и клавиатурой на ней) — 150/420 ниже */
.tab { position: relative; flex: 1; min-width: 44px; min-height: 48px; padding: 12px 8px; font-family: var(--font-display); font-weight: 600; font-size: 22px; color: var(--ink-3); transition: color var(--t-glide) ease, background-color 0.2s; }
@media (hover: hover) and (pointer: fine) {
  .tab { transition-duration: var(--t-hover-out); }
  .tab:hover { color: var(--ink); background: var(--glass); transition-duration: var(--t-hover-in); }
}
.tab:active { background: var(--bg-3); }
/* Одна черта под вкладками переезжает к выбранной (вкладки равные, flex: 1): --i — индекс, --n — число вкладок,
   их ставит selectBoss. Без JS черта стоит под первой — она и выбрана в разметке. */
.tabs::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 2px; width: calc(100% / var(--n, 3)); background: var(--accent-text); pointer-events: none; transform: translateX(calc(var(--i, 0) * 100%)); transition: transform var(--t-glide) var(--ease-glide); }
.tab.is-active { color: var(--ink); }
.boss-points { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.boss-points li { display: inline-flex; align-items: center; gap: 10px; font-size: 16px; }
.boss-points svg { width: 20px; height: 20px; fill: none; stroke: var(--accent-text); stroke-width: 1.5; }
.media { margin: 0; }
.media .tabs { margin-top: 0; }
.boss-panel { position: absolute; inset: 0; }
.media__frame { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: #0b0b0f; }
.media__frame img, .media__frame video { display: block; width: 100%; height: 100%; object-fit: contain; }
.media__frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(8, 8, 12, 0.85)); pointer-events: none; }
/* Смена босса — растворением, без чёрного кадра (класс boss-stack ставит main.js; без JS — атрибут hidden, как раньше).
   Новая панель проявляется поверх старой; старая непрозрачна, пока её не накроют, и прячется через --t-swap.
   Картинка садится 1,03 → 1 тем же временем и кривой — один жест. Фон панели закрывает поля у картинок другого
   соотношения: в них не мелькает старая. Быстрые клики: панель, снова ставшая текущей, просто остаётся. */
.boss-stack { isolation: isolate; }
.boss-stack .boss-panel { background: #0b0b0f; opacity: 0; visibility: hidden; z-index: 0; transition: opacity 0s linear var(--t-swap), visibility 0s linear var(--t-swap); }
.boss-stack .boss-panel.is-current { opacity: 1; visibility: visible; z-index: 1; transition: opacity var(--t-swap) var(--ease-soft); }
.boss-stack .boss-panel > * { scale: 1.03; transition: scale 0s linear var(--t-swap); }
.boss-stack .boss-panel.is-current > * { scale: 1; transition: scale var(--t-swap) var(--ease-soft); }
.boss-stack::after { z-index: 2; } /* затемнение низа и плашка «скоро» — над стопкой, как было */
.boss-stack .media__badge { z-index: 3; }
.media__badge { position: absolute; top: 12px; right: 12px; left: 12px; width: fit-content; max-width: calc(100% - 24px); z-index: 1; display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; background: #101115; border: 1px solid rgba(217, 181, 108, 0.4); color: var(--gold-hi); font-family: var(--font-label); font-size: 14px; line-height: 1.4; letter-spacing: 0.06em; text-transform: uppercase; }
.media__badge svg { fill: currentColor; stroke: none; width: 14px; height: 14px; }
.media__cap { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px; padding-top: 14px; color: var(--ink); }
.media__cap b { font-family: var(--font-display); font-weight: 600; font-size: 30px; line-height: 1.15; }
.media__cap > span { font-family: var(--font-text); font-size: 16px; color: var(--ink-2); }
/* имя босса меняется растворением: новое поверх старого в одной ячейке сетки, одно время с картинкой (main.js) */
.media__cap b[data-boss-name] { display: inline-grid; }
.media__cap b[data-boss-name] > span { grid-area: 1 / 1; }
@media (prefers-reduced-motion: reduce) {
  /* босс — растворение 200 мс без масштаба; старая держится, пока её не накроют (иначе в середине провал в чёрное) */
  .boss-stack .boss-panel > * { scale: none; }
  .boss-stack .boss-panel:not(.is-current) { transition-duration: 0s !important; transition-delay: 200ms !important; }
}

.bosses__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: clamp(40px, 6vw, 72px); }
.lindvior, .wave { position: relative; overflow: hidden; isolation: isolate; min-height: 300px; padding: 32px; border: 1px solid var(--line); display: flex; flex-direction: column; justify-content: flex-end; color: #eef2fb; }
.lindvior { background: radial-gradient(ellipse 80% 70% at 70% 20%, #4a5c7e 0%, #1c2433 45%, #0b0d13 100%); }
.lindvior__art { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 72% 40%; }
.lindvior::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(8, 10, 16, 0.92) 0%, rgba(8, 10, 16, 0.62) 42%, rgba(8, 10, 16, 0.08) 78%); }
.lindvior .eyebrow { color: #b9cdf5; }
.lindvior p:last-child { margin: 0; max-width: 40ch; color: rgba(238, 242, 251, 0.82); }
.lindvior__name { margin: 0 0 12px; font-family: var(--font-display); font-weight: 600; font-size: clamp(46px, 5vw, 72px); line-height: 1.05; letter-spacing: 0.02em; text-transform: uppercase; color: #d7e4f9; }
.lindvior__storm { position: absolute; inset: 0; z-index: -1; }
.lindvior__storm::before { content: ""; position: absolute; inset: -20%; background: repeating-linear-gradient(115deg, transparent 0 22px, rgba(185, 205, 245, 0.05) 22px 23px); animation: rain 1.6s linear infinite; }
@keyframes rain { to { transform: translate(-46px, 46px); } }
.lindvior__storm i { position: absolute; top: -10%; width: 2px; height: 70%; background: linear-gradient(180deg, transparent, #cfe0ff, transparent); filter: blur(0.5px) drop-shadow(0 0 8px #8fb4ff); opacity: 0; transform: skewX(-18deg); animation: bolt 7s ease-in-out infinite; }
.lindvior__storm i:nth-child(1) { left: 62%; animation-delay: 1s; }
.lindvior__storm i:nth-child(2) { left: 80%; animation-delay: 3.6s; height: 55%; }
.lindvior__storm i:nth-child(3) { left: 44%; animation-delay: 5.4s; height: 40%; }
@keyframes bolt { 0%, 100% { opacity: 0; } 2% { opacity: 0.9; } 4% { opacity: 0.1; } 6% { opacity: 0.7; } 10% { opacity: 0; } }
.wave img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.wave::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(8, 8, 12, 0.96), rgba(8, 8, 12, 0.78)); }
.wave .eyebrow { color: var(--gold-hi); }
.wave .h3 { font-size: clamp(36px, 4vw, 54px); color: #fff7e3; }
.wave p { margin: 0 0 16px; color: rgba(246, 239, 223, 0.86); }
.wave .chip--fill { background: rgba(9, 9, 13, 0.75); border-color: rgba(243, 216, 150, 0.5); color: var(--gold-hi); }

/* ---------- 03 турнир ---------- */
.tournament { color: #f1ead9; text-align: center; background: #0b0b0f; }
.tournament .section-bg img, :root[data-side="light"] .tournament .section-bg img { opacity: 0.62; filter: none; }
.tournament .section-bg::after { background: radial-gradient(ellipse 60% 70% at 50% 50%, rgba(9, 9, 13, 0.94), rgba(9, 9, 13, 0.74) 70%), linear-gradient(180deg, var(--bg-2) 0%, transparent 18%, transparent 82%, var(--bg) 100%); }
.tournament .eyebrow { color: var(--gold-hi); }
.versus { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; justify-content: center; gap: clamp(14px, 3vw, 40px); max-width: 920px; margin: 0 auto 32px; }
.versus__side { width: max-content; max-width: 100%; }
.versus__side--dark { text-align: right; justify-self: end; }
.versus__side--light { text-align: left; justify-self: start; }
.versus__side { font-family: var(--font-display); font-weight: 700; font-size: clamp(34px, 5vw, 72px); letter-spacing: 0.14em; text-transform: uppercase; line-height: 1; }
.versus__side--dark { background: linear-gradient(180deg, var(--silver-hi), var(--silver-lo)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.versus__side--light { background: linear-gradient(180deg, var(--gold-hi), var(--gold-lo)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.versus__core { position: relative; display: grid; place-items: center; width: clamp(108px, 11vw, 136px); aspect-ratio: 1; }
.versus__core i { position: absolute; inset: 18%; border: 1px solid rgba(243, 216, 150, 0.6); transform: rotate(45deg); background: rgba(9, 9, 13, 0.8); }
.versus__core b { position: relative; max-width: 100%; font-family: var(--font-text); font-weight: 500; font-size: 15px; letter-spacing: 0; color: #fff7e3; }
.tournament__text { max-width: 760px; margin: 0 auto; }
.tournament__text p { margin: 0 0 14px; font-size: 18px; color: rgba(241, 234, 217, 0.84); }
.tournament__text .tournament__accent { font-family: var(--font-display); font-size: 27px; line-height: 1.3; color: #fff7e3; margin-top: 22px; }

/* ---------- 04 ОБТ ---------- */
.obt__grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 16px; }
.panel { position: relative; overflow: hidden; background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(12px); box-shadow: var(--shadow); transition: background-color var(--theme-t), border-color var(--theme-t); }
.quest { padding: clamp(24px, 3vw, 38px); }
.quest__head { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; }
.quest__head p { margin: 0; color: var(--ink-2); max-width: 46ch; }
.reward { flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; width: 104px; min-height: 104px; padding: 12px; border: 1px solid var(--accent-text); background: var(--bg-3); }
.reward b { font-family: var(--font-display); font-weight: 600; font-size: 44px; line-height: 1; color: var(--accent-text); }
.reward span { margin-top: 6px; font-family: var(--font-text); font-size: 14px; line-height: 1.3; }
.quest__label { margin: 26px 0 10px; font-family: var(--font-label); font-size: 13px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent-text); }
.quest__list { list-style: none; margin: 0; padding: 0; counter-reset: q; display: grid; gap: 1px; background: var(--line-2); border: 1px solid var(--line-2); }
.quest__list li { counter-increment: q; display: flex; align-items: center; gap: 16px; padding: 14px 16px; background: var(--glass-2); font-size: 17px; transition: background-color var(--theme-t); }
.quest__list li b { color: var(--accent-text); font-weight: 600; }
.qi { flex: none; display: grid; place-items: center; width: 28px; height: 28px; }
.qi svg { width: 22px; height: 22px; fill: none; stroke: var(--accent-text); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.race { display: flex; flex-direction: column; justify-content: flex-end; min-height: 460px; color: #f6efdf; }
.race img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.race::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8, 8, 12, 0.2), rgba(8, 8, 12, 0.92) 75%); }
.race { isolation: isolate; }
.race__body { padding: clamp(24px, 3vw, 38px); }
.race .eyebrow { color: var(--gold-hi); }
.race__num { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(110px, 12vw, 168px); line-height: 0.8; background: linear-gradient(180deg, #fff3cf, var(--gold-lo)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.race__caption { margin: 6px 0 14px; font-family: var(--font-label); font-size: 14px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold-hi); }
.race__body p:last-child { margin: 0; color: rgba(246, 239, 223, 0.86); }
.obt__date { margin-top: 26px; color: var(--accent-text); }

/* ---------- Финал ---------- */
.join { position: relative; isolation: isolate; text-align: center; color: #f1ead9; overflow: hidden; }
.join__scene { position: absolute; inset: 0; z-index: -1; }
.join__half { position: absolute; inset: 0; }
.join__half img { width: 100%; height: 100%; object-fit: cover; }
.join__half--dark { clip-path: polygon(0 0, 56% 0, 44% 100%, 0 100%); }
.join__half--light { clip-path: polygon(56% 0, 100% 0, 100% 100%, 44% 100%); }
.join__scene::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 75% 80% at 50% 50%, rgba(9, 9, 13, 0.96), rgba(9, 9, 13, 0.9) 70%, rgba(9, 9, 13, 0.76)), linear-gradient(180deg, var(--bg) 0%, transparent 20%, transparent 80%, #09090d 100%); }
.join__wrap { display: flex; flex-direction: column; align-items: center; }
.join .lead { color: rgba(241, 234, 217, 0.82); margin-inline: auto; }
.steps { list-style: none; margin: 30px 0 0; padding: 0; display: flex; gap: 0; }
.steps li { display: flex; align-items: center; gap: 10px; padding: 0 22px; font-family: var(--font-label); font-size: 14px; letter-spacing: 0.16em; text-transform: uppercase; }
.steps li + li { border-left: 1px solid rgba(217, 181, 108, 0.35); }
.steps b { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--gold); font-family: var(--font-display); font-size: 18px; color: var(--gold-hi); }
.join__cta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 30px; }
.join .btn--main { --btn-bg: var(--gold); --btn-bd: var(--gold); color: #1a140a; }
.join .btn--ghost { color: #f1ead9; --btn-bd: rgba(241, 234, 217, 0.45); --btn-bg: rgba(9, 9, 13, 0.4); --btn-bd-hover: var(--gold); }
.join__links { margin: 22px 0 0; display: flex; gap: 12px; font-family: var(--font-label); font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase; }
.join__links a { display: inline-flex; align-items: center; min-width: 44px; min-height: 44px; color: var(--gold-hi); text-decoration: underline; text-underline-offset: 5px; }

.foot { background: #09090d; color: rgba(241, 234, 217, 0.66); padding: 34px 0; font-size: 14px; }
.foot__wrap { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; }
.foot p { margin: 0; }
.foot__brand { font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: 0.08em; color: #f1ead9; }
.foot__brand span:last-child { font-weight: 500; color: rgba(241, 234, 217, 0.5); }
.foot__links { display: flex; gap: 18px; }
.foot__links a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; text-underline-offset: 5px; }
.foot__links a:visited, .join__links a:visited { color: #e6c47e; }
/* наведение на ссылки финала и подвала — цветом, 150/420; стоит после :visited, чтобы отвечала и посещённая */
@media (hover: hover) and (pointer: fine) {
  .foot__links a, .join__links a { transition: color var(--t-hover-out) ease; }
  .foot__links a:hover { color: var(--gold-hi); transition-duration: var(--t-hover-in); }
  .join__links a:hover { color: #fff7e3; transition-duration: var(--t-hover-in); }
}

/* ---------- Появление при прокрутке ---------- */
.reveal { opacity: 1; transform: none; }
.reveal-ready .reveal { opacity: 0; transform: translateY(12px); transition: opacity 0.4s ease, transform 0.45s var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }
html[data-motion-paused] *, html[data-motion-paused] *::before, html[data-motion-paused] *::after { animation-play-state: paused !important; }

/* ---------- Адаптив ---------- */
@media (max-width: 1180px) {
  .nav__links { display: none; }
  .nav__word { display: none; }
  .cards { display: grid; grid-template-columns: repeat(2, 1fr); height: auto; }
  .card { min-height: 380px; }
  .card .card__text { display: block; }
  .card__num { font-size: 48px; }
  .late__grid { grid-template-columns: repeat(2, 1fr); }
  .road__panel { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
}
@media (max-width: 980px), (max-width: 1180px) and (orientation: portrait) {
  .embers { display: none; }
  .dots { display: none; }
  .nav .langs:not(.langs--menu), .nav .btn--ghost { display: none; }
  .nav__burger { display: block; }
  .bosses__grid, .obt__grid, .bosses__row { grid-template-columns: 1fr; }
  .bosses__grid > .media { order: -1; }
  .hero__content { width: min(600px, 100% - 2 * var(--gutter)); }
  .hero__content { flex: none; }
  .nav__brand { gap: 8px; }
  .nav__right { gap: 8px; }
}
@media (max-width: 760px) {
  :root { --nav-h: 60px; }
  body { font-size: 16px; }
  .nav { gap: 10px; }
  .nav__brand { font-size: 19px; gap: 7px; }
  .nav .btn--main { display: none; }
  .side-switch__btn { min-width: 54px; min-height: 44px; padding: 0 8px; font-size: 12px; }
  .side-switch { height: 48px; padding: 1px; }
  .side-switch__thumb { top: 1px; bottom: 1px; left: 1px; width: calc(50% - 1px); }
  .nav__burger { flex: none; }
  .join__links a, .foot__links a { display: inline-block; padding: 12px 2px; }

  .hero { min-height: 100svh; max-height: none; justify-content: flex-start; padding-bottom: 0; }
  .hero__content { padding-top: calc(var(--nav-h) + 22px); }
  .mark { font-size: clamp(40px, 12vw, 58px); }
  .hero__title { font-size: 26px; margin-top: 16px; }
  .hero__lead { font-size: 16px; line-height: 1.45; }
  .count__cell { min-width: 0; flex: 1; padding: 8px 4px 6px; }
  .count__cell b { font-size: 30px; }
  .count__cells { width: 100%; }
  .hero__cta { width: 100%; }
  .hero__cta .btn { flex: 1 1 auto; padding-inline: 14px; font-size: 14px; letter-spacing: 0.08em; }
  .hero__content { order: 1; flex: none; padding-bottom: 0; }
  .nav__brand { white-space: nowrap; font-size: 17px; letter-spacing: 0.05em; }
  .stand__tag { font-size: 13px; bottom: -22px; }
  .stand__tag, :root[data-side="light"] .stand__tag { color: #f1ead9; }
  .stand[aria-pressed="true"] .stand__tag { border-bottom-color: var(--gold-hi); }
  .facts { order: 3; }
  .facts { grid-template-columns: repeat(2, 1fr); margin-top: 26px; }
  .facts li:nth-child(3) { border-left: 0; }
  .facts li { padding-bottom: 14px; }
  .facts b { font-size: 19px; }

  .cards { display: flex; height: auto; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin-inline: calc(-1 * var(--gutter)); padding: 4px var(--gutter) 16px; scrollbar-width: thin; scrollbar-color: var(--accent-text) var(--bg-2); }
  .card { flex: 0 0 82%; height: 460px; scroll-snap-align: center; }
  .card .card__text, .card .card__more { display: block; margin-top: 4px; }
  .card__title, .card.is-active .card__title { font-size: 28px; }
  .card img { transform: none; } /* яркость — той же прозрачностью картинки: узкие 0,86, активная 1 (как было с filter) */

  .late__grid { grid-template-columns: 1fr; }
  .road__tabs { display: flex; overflow-x: auto; scroll-snap-type: x proximity; margin-inline: calc(-1 * var(--gutter)); padding: 0 var(--gutter) 4px; scrollbar-width: none; }
  .road__tabs::-webkit-scrollbar { display: none; }
  /* лента вкладок прокручивается — золото внутри неё: вкладка 112 px (влезает веха «Antharas ·»), зазор 6 px */
  .road__tabs::before { left: var(--gutter); bottom: 4px; width: 112px; }
  .road__tab { flex: 0 0 112px; min-height: 60px; scroll-snap-align: start; padding: 8px 10px; }
  .road__tab b { font-size: 22px; }
  .road__panel { grid-template-columns: 1fr; }
  .road__media { min-height: 150px; }
  .road__num { font-size: 64px; }
  .road__body { padding: 20px 18px 22px; }
  .road__stat { padding-right: 14px; }
  .road__stat + .road__stat { padding-left: 14px; }
  .epics__row { grid-template-columns: 1fr; gap: 4px; }
  .tile { min-height: 0; }
  .quest__head { flex-direction: column; }
  .reward { width: 104px; min-height: 92px; margin: 4px 0 0; }
  .reward b { font-size: 36px; }
  .steps { flex-direction: column; gap: 12px; }
  .steps li + li { border-left: 0; }
  .join__cta .btn { flex: 1 1 100%; }
  .versus__side { letter-spacing: 0.06em; }
  .lindvior, .wave { padding: 24px; min-height: 240px; }
  .lindvior { min-height: 208px; }
  .bosses__text .quote { font-size: 22px; line-height: 1.4; }
  .tournament__text .tournament__accent { font-size: 24px; }
  .tournament__text { text-align: left; }
  .versus { gap: 10px; }
  .versus__side { font-size: 30px; letter-spacing: 0.02em; }
  .features, .stages, .bosses, .tournament, .obt, .join { padding-block: 56px; }
  .features { padding-bottom: 40px; }
  .tab { padding: 12px 8px; font-size: 21px; }
  .hero__content { width: calc(100% - 2 * var(--gutter)); padding-top: calc(var(--nav-h) + 16px); }
  .eyebrow--hero { font-size: 13px; gap: 8px; margin-bottom: 12px; letter-spacing: 0.08em; }
  .hero__title { margin-top: 12px; font-size: 28px; }
  .hero__title-next { display: block; }
  .hero__lead { margin-top: 4px; }
  .count { margin-top: 20px; width: 100%; max-width: 360px; order: 1; }
  .count__label { font-size: 14px; }
  .hero__cta { margin-top: 20px; gap: 8px; order: 0; }
  .join__links { flex-wrap: wrap; justify-content: center; gap: 4px 12px; }
  .quest__list li { padding: 12px; gap: 12px; }
  .foot__wrap { align-items: flex-start; flex-direction: column; gap: 12px; }
}

@media (min-width: 761px) and (max-width: 1366px) {
  .nav .langs { display: none; }
  .nav__burger { display: block; }
  .nav__word { display: none; }
  .hero__content { width: min(600px, calc(100% - 640px)); }
  .hero .mark { width: min(640px, calc(100vw - 2 * var(--gutter))); font-size: clamp(46px, 5.2vw, 70px); gap: 12px; }
}
@media (min-width: 761px) and (max-width: 980px) {
  .hero__content { width: min(600px, 100% - 2 * var(--gutter)); }
}
@media (min-width: 981px) and (max-width: 1180px) and (orientation: portrait) {
  .hero { min-height: 0; }
  .hero__content { width: min(680px, 100% - 2 * var(--gutter)); }
}
@media (max-width: 430px) {
  .nav__identity { font-size: 15px; padding-right: 8px; }
  .nav__brand { gap: 8px; }
  .nav__right { gap: 8px; }
  .side-switch__btn { min-width: 50px; font-size: 13px; }
  .nav { padding-inline: max(12px, env(safe-area-inset-left)); }
  .mark { font-size: clamp(38px, 10.8vw, 47px); gap: 10px; }
}

/* ---------- Шапка-постер: телефон и планшет стоя ----------
   Вертикальный арт 1088×1920 — на первый экран. В арте: небо 0–17 %, макушки на 18,5 %, ступни на 70 % высоты,
   тёмная x 10–41 %, светлая x 60–93 %, разлом по центру, ниже ступней — пол. Знак — на небе над головами,
   заголовок и кнопки — на полу. Арт ставится по героиням: макушки ниже знака, ступни выше заголовка; по ширине —
   не уже экрана и не шире 2,05 ширины (иначе режет героинь); верх арта прячется под панелью.
   Высоты строк знака и заголовка заданы — по ним и считается арт (--p-H — линия макушек, --p-B — от ступней до низа).
   Ниже первого экрана (прокрутка слайда) — подводка, таймер, факты, уже на тёмном фоне. */
@media (max-width: 1180px) and (orientation: portrait) {
  .hero {
    --p-pad: 16px; --p-eyebrow: 28px; --p-mark: clamp(46px, 5.6vw, 64px); --p-head: 16px;
    --p-title-fs: clamp(30px, 3.6vw, 40px); --p-title: calc(1.15 * var(--p-title-fs));
    --p-foot: 28px; --p-cta-gap: 18px; --p-bottom: 28px; /* --p-foot — от ступней до заголовка, в нём подпись стороны */
    --p-H: calc(var(--nav-h) + var(--p-pad) + var(--p-eyebrow) + 8px + var(--p-mark) + var(--p-head));
    --p-B: calc(var(--p-foot) + var(--p-title) + var(--p-cta-gap) + 52px + var(--p-bottom));
    --art-h: max(176.5vw, calc(100svh - var(--nav-h) + 10px), min(calc((100svh - var(--p-B) - var(--p-H)) / 0.515), 205vw));
    --art-top: clamp(calc(100svh - var(--art-h)), max(calc(var(--p-H) - 0.185 * var(--art-h)), calc((var(--p-H) + 100svh - var(--p-B)) / 2 - 0.4425 * var(--art-h))), calc(var(--nav-h) - 10px));
    min-height: 0;
  }
  .hero__scene { bottom: auto; height: 100svh; }
  .hero__half { inset: var(--art-top) auto auto 50%; width: calc(0.5667 * var(--art-h)); height: var(--art-h); translate: -50% 0; }
  .hero__half img { object-position: 50% 50%; }
  /* сверху лёгкая вуаль под панель и знак, снизу арт растворяется в тёмный фон — текст на полу читается */
  .hero__veil {
    background:
      linear-gradient(180deg, rgba(9, 9, 13, 0.78) 0, rgba(9, 9, 13, 0.46) calc(var(--p-H) - var(--p-head) - 10px), rgba(9, 9, 13, 0) calc(var(--p-H) + 44px)),
      linear-gradient(0deg, #0b0b0f 0, rgba(11, 11, 15, 0.8) calc(var(--p-bottom) + 52px), rgba(11, 11, 15, 0.46) calc(var(--p-B) - var(--p-foot)), rgba(11, 11, 15, 0) calc(var(--p-B) + 56px));
  }
  /* первые пять рядов (надзаголовок, знак, героини, заголовок, кнопки) — ровно первый экран: распорка на их высоту,
     ряд героинь забирает остаток. Порядок — рядами сетки, разметка та же */
  .hero__content {
    display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto minmax(0, 1fr) auto auto;
    justify-items: center; align-content: start;
    width: min(680px, 100% - 2 * var(--gutter)); padding: calc(var(--nav-h) + var(--p-pad)) 0 0;
  }
  .hero__content::before { content: ""; grid-area: 1 / 1 / 6 / 2; height: calc(100svh - var(--nav-h) - var(--p-pad) - var(--p-bottom)); pointer-events: none; }
  .hero__content > * { grid-column: 1; } /* в ту же колонку, что распорка (иначе сетка уводит их в новую) */
  .eyebrow--hero { grid-row: 1; height: var(--p-eyebrow); margin: 0 0 8px; }
  .hero .mark { grid-row: 2; font-size: var(--p-mark); }
  .hero__title { grid-row: 4; margin: 0; font-size: var(--p-title-fs); text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5); }
  .hero__cta { grid-row: 5; margin-top: var(--p-cta-gap); }
  .hero__lead { grid-row: 6; margin-top: calc(var(--p-bottom) + 30px); }
  .hero .count { grid-row: 7; }
  /* героини — в арте; поверх них две прозрачные кнопки: левая половина — Dark, правая — Light. Подпись — на полу сразу
     под подошвами, по центру промежутка между сапогами своей героини: на сапоги и на их отражения не ложится. Замер по
     арту 1088×1920: тёмная — сапоги до x 157 и от x 267 (центр 19,5 %), светлая — до x 836 и от x 966 (центр 82,8 %),
     нижняя подошва — 70,4 % высоты. Кегль растёт вместе с артом, поэтому подпись помещается в промежуток на любом
     телефоне (на 375×667 — 12 px). Цвет — своей стороны пола: на тёмном полу светлая, на светлом мраморе тёмная */
  .hero__stands { inset: calc(var(--art-top) + 0.16 * var(--art-h)) 0 auto; height: calc(0.545 * var(--art-h) + 14px); display: flex; }
  .hero__stands .stand { position: relative; inset: auto; flex: 1 1 0; width: auto; height: 100%; }
  .stand__tag {
    top: calc(0.5436 * var(--art-h) - 0.15em); bottom: auto; line-height: 1;
    padding: 0 0 2px 0.16em; /* слева — столько же, сколько разрядки после последней буквы: слово стоит ровно по центру */
    font-size: clamp(11px, 7px + 0.0075 * var(--art-h), 14px);
  }
  .stand--dark .stand__tag { left: calc(100% - 0.1729 * var(--art-h)); }
  .stand--light .stand__tag { left: calc(0.1859 * var(--art-h)); }
  .stand--dark .stand__tag, :root[data-side="light"] .stand--dark .stand__tag { color: #f1ead9; text-shadow: 0 1px 10px rgba(0, 0, 0, 0.85); }
  .stand--light .stand__tag, :root[data-side="light"] .stand--light .stand__tag { color: #2b261e; text-shadow: 0 1px 10px rgba(255, 248, 232, 0.8); }
  .stand--dark[aria-pressed="true"] .stand__tag { border-bottom-color: var(--gold-hi); }
  .stand--light[aria-pressed="true"] .stand__tag { border-bottom-color: #8a6424; }
}
@media (max-width: 760px) and (orientation: portrait) {
  .hero {
    --p-pad: 12px; --p-eyebrow: 24px; --p-mark: clamp(40px, 12vw, 58px); --p-head: 10px;
    --p-title-fs: 28px; --p-title: calc(2 * 1.15 * 28px); --p-foot: 24px; --p-cta-gap: 14px; --p-bottom: 14px;
  }
  .hero__content { width: calc(100% - 2 * var(--gutter)); }
}
@media (max-width: 430px) and (orientation: portrait) {
  .hero { --p-mark: clamp(38px, 10.8vw, 47px); }
}
/* низкий экран (Safari с панелями, маленький телефон; планшет пошире 7:10) — арт уже не ужать по ширине,
   поэтому плотнее поля над знаком и под кнопками */
@media (max-width: 760px) and (orientation: portrait) and (max-height: 700px) {
  .hero { --p-head: 4px; --p-bottom: 10px; }
}
@media (min-width: 761px) and (max-width: 1180px) and (orientation: portrait) and (min-aspect-ratio: 7/10) {
  .hero { --p-pad: 10px; --p-eyebrow: 24px; --p-head: 6px; --p-bottom: 22px; }
}
/* Телефон лёжа и другие низкие окна: шапка не помещается в экран и листается внутри слайда. Колонка текста — между
   героинями, подписи сторон — у нижнего края первого экрана (ступни ниже него) */
@media (orientation: landscape) and (max-height: 560px) {
  .hero__stands { --stand-floor: 26px; }
  .hero__content { width: min(600px, 100% - 2 * max(var(--gutter), 27vw)); }
  .hero .mark { width: auto; font-size: clamp(36px, 6.4vw, 58px); }
}
/* «Завантажити файли» — самая длинная пара кнопок: на узком телефоне ужимаем поля, чтобы кнопки шли в одну строку */
@media (max-width: 389px) and (orientation: portrait) {
  :root[lang="uk"] .hero__cta .btn { padding-inline: 8px; letter-spacing: 0.04em; }
}

/* ---------- Вход шапки ----------
   html.intro ставит скрипт в <head>, html.intro-play — main.js, когда пришёл шрифт (не дольше 300 мс); через 1,3 с
   оба класса снимаются. До intro-play всё стоит в начальном положении. Арт виден с первого кадра — садится только
   масштаб (на половинах: одна точка, одна картинка; сцена режет край). Кнопки нажимаются всё время.
   Десктоп: всё стоит к 1,0 с, «Регистрация» последней; телефон — к 0,8 с. */
@keyframes intro-settle { from { scale: 1.04; } }
@keyframes intro-fade { from { opacity: 0; } }
@keyframes intro-meet-dark { from { opacity: 0; translate: calc(-1 * var(--meet)) 0; } }
@keyframes intro-meet-light { from { opacity: 0; translate: var(--meet) 0; } }
@keyframes intro-amp { from { opacity: 0; scale: 0.92; } }
@keyframes intro-rise { from { opacity: 0; translate: 0 var(--intro-rise, 12px); } }
html.intro .hero__half { animation: intro-settle 1000ms var(--ease-soft) backwards; }
html.intro .eyebrow--hero { animation: intro-fade 500ms ease backwards; }
html.intro .hero .mark__dark { animation: intro-meet-dark 600ms var(--ease-soft) backwards; }
html.intro .hero .mark__light { animation: intro-meet-light 600ms var(--ease-soft) backwards; }
html.intro .hero .mark__amp { animation: intro-amp 500ms var(--ease-soft) 120ms backwards; }
html.intro :is(.hero__title, .hero__lead, .hero .count) { animation: intro-rise 600ms var(--ease-soft) 300ms backwards; }
html.intro .hero .facts { animation: intro-fade 400ms ease 300ms backwards; }
html.intro .hero__cta { animation: intro-rise 600ms var(--ease-soft) 390ms backwards; } /* к 650 мс — 81 %, стоит к 990 мс */
html.intro:not(.intro-play) :is(.hero__half, .eyebrow--hero, .hero .mark__dark, .hero .mark__light, .hero .mark__amp, .hero__title, .hero__lead, .hero .count, .hero .facts, .hero__cta) { animation-play-state: paused; }
@media (max-width: 760px) {
  html.intro .hero { --intro-rise: 8px; }
  html.intro .hero__half { animation-duration: 800ms; }
  html.intro .eyebrow--hero { animation-duration: 400ms; }
  html.intro .hero :is(.mark__dark, .mark__light) { animation-duration: 500ms; }
  html.intro .hero .mark__amp { animation-duration: 400ms; animation-delay: 80ms; }
  html.intro :is(.hero__title, .hero__lead, .hero .count) { animation-duration: 500ms; animation-delay: 200ms; }
  html.intro .hero .facts { animation-duration: 300ms; animation-delay: 200ms; }
  html.intro .hero__cta { animation-duration: 500ms; animation-delay: 280ms; }
}
/* «меньше движения» — одна прозрачность 200 мс, без задержек; арт стоит */
@media (prefers-reduced-motion: reduce) {
  html.intro .hero__half { animation: none; }
  html.intro :is(.eyebrow--hero, .hero .mark__dark, .hero .mark__light, .hero .mark__amp, .hero__title, .hero__lead, .hero .count, .hero .facts, .hero__cta) { animation: intro-fade 200ms ease backwards; }
}

/* «Меньше движения» — мягче, а не ноль: движение уходит, прозрачность и цвет остаются (200 мс).
   Растворения View Transitions под * не попадают — тема растворяется, только прозрачностью. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-property: opacity, color, background-color, border-color, text-decoration-color, visibility, --glow !important;
    transition-duration: 200ms !important;
    transition-delay: 0s !important;
  }
  .embers i, .pulse, .lindvior__storm::before, .lindvior__storm i { animation: none !important; }
  .reveal { opacity: 1; transform: none; }
  /* ползунок растворяется вместе со страницей, без переезда */
  .side-switch__thumb, .side-switch__btn[data-side-set] { view-transition-name: none; }
}

.nav.menu-open { background: rgba(var(--shade), 0.97); color: var(--ink); }
.nav.menu-open .btn--ghost { --btn-bg: var(--glass); color: var(--ink); --btn-bd: var(--line); --btn-bd-hover: var(--accent); }
/* свет на светлой ghost в светлой панели — тёплый тёмный, без осветления (как в лаунчере) */
:root[data-side="light"] .nav.is-solid .btn--ghost, :root[data-side="light"] .nav.menu-open .btn--ghost { --btn-light: 179, 133, 54; --btn-blend: normal; --glow-k: 0.4; }

/* ---------- Смена стороны — одно растворение всей страницы (View Transitions, ставит main.js) ---------- */
html.theme-switching *:not(#deck), html.theme-switching *::before, html.theme-switching *::after { transition: none !important; }
html.theme-switching #deck { transition-property: transform !important; } /* колоде — только её ход, цвет текста не тянется */
::view-transition { pointer-events: none; } /* клики проходят сквозь растворение — «Регистрация» нажимается сразу */
::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation-duration: var(--t-theme); }
::view-transition-old(root), ::view-transition-new(root) { animation-timing-function: ease; }
::view-transition-group(side-thumb) { animation-timing-function: var(--ease-glide); }
/* слова поверх едущего ползунка; цвет слова меняется коротко, когда под ним проходит середина заливки,
   иначе на полпути серые буквы ложатся на серую плашку */
::view-transition-group(side-dark), ::view-transition-group(side-light) { z-index: 1; animation-timing-function: cubic-bezier(0.85, 0, 0.15, 1); }
/* смена цвета слов — к ~165 мс: фон под словами проходит середину к ~140 мс, край ползунка проходит слово к ~185 мс
   (на 250 мс уходящее слово терялось на новом фоне) */
::view-transition-old(side-dark), ::view-transition-new(side-dark), ::view-transition-old(side-light), ::view-transition-new(side-light) { animation-duration: 330ms; }

/* ---------- Колода слайдов (включает main.js; без JS страница — обычная лента) ---------- */
html.deck-on, html.deck-on body { height: 100%; overflow: hidden; overscroll-behavior: none; }
/* колода трогается в первом кадре и садится мягко: 0,8 с --ease-deck (к 80 мс — 4 % пути, к 200 мс — треть, к 560 мс — 95 %) */
html.deck-on #deck { transition: transform var(--t-deck) var(--ease-deck); will-change: transform; }
/* мгновенная расстановка (resize, старт с адреса, склейка дальнего прыжка; ставит main.js): колода, планы, сход
   сторон и ромб точек встают сразу, без переходов */
html.deck-cut #deck, html.deck-cut #deck *, html.deck-cut .dots::after, html.deck-cut .dots a::before { transition: none !important; }
html.deck-on [data-section] { height: 100vh; height: 100svh; min-height: 0; max-height: none; overflow: hidden; padding: 0; }
html.deck-on .slide-scroll {
  position: relative; height: 100%; display: flex; flex-direction: column;
  overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain;
  scrollbar-width: thin; scrollbar-color: rgba(217, 181, 108, 0.35) transparent;
}
html.deck-on .slide-scroll::-webkit-scrollbar { width: 6px; }
html.deck-on .slide-scroll::-webkit-scrollbar-thumb { background: rgba(217, 181, 108, 0.3); }
html.deck-on [data-section]:not(.hero) > .slide-scroll { padding: calc(var(--nav-h) + clamp(16px, 3.5vh, 44px)) 0 clamp(24px, 4.5vh, 52px); }
html.deck-on [data-section]:not(.hero) > .slide-scroll > .wrap { margin-block: auto; flex-shrink: 0; }
html.deck-on .hero { display: block; }
html.deck-on .hero > .slide-scroll { flex-direction: column; isolation: isolate; } /* сцена шапки — внутри прокрутки, под текстом */
html.deck-on .join > .slide-scroll { padding-bottom: 0; }
html.deck-on .join .foot { flex-shrink: 0; width: 100%; text-align: left; }
@media (max-width: 760px) {
  html.deck-on .hero > .slide-scroll { justify-content: flex-start; }
}
/* Три плана в одной поездке. data-deck (prev / cur / next) ставит main.js. Дальний план — фон раздела целиком (картина
   вместе со своим затемнением, одним слоем): отстаёт на четверть хода (телефон — 18 %), его край всегда за кадром — сдвиг
   фона меньше сдвига раздела. Картину отдельно от затемнения не двигаем: на шве разделов в поездке светилась черта в
   1 px (слои картины и затемнения режутся краем раздела по-разному). В шапке едет всё содержимое сцены (половины арта,
   вуаль, искры) — саму сцену двигать нельзя: она внутри прокрутки слайда и режет край. Ближний план — содержимое:
   отстаёт от рамки на 24 + 16·k px (телефон 16 + 8·k) и догоняет её; «Регистрация» финала — дальше всех. Всё садится
   вместе с колодой: одно время, одна кривая, без прозрачности. В покое (cur) сдвигов нет — translate: none, как было. */
html.deck-on [data-deck] > :is(.section-bg, .join__scene), html.deck-on [data-deck] .hero__scene > * { transition: translate var(--t-deck) var(--ease-deck); }
html.deck-on [data-deck="prev"] > :is(.section-bg, .join__scene), html.deck-on [data-deck="prev"] .hero__scene > * { translate: 0 var(--par-far); }
html.deck-on [data-deck="next"] > :is(.section-bg, .join__scene), html.deck-on [data-deck="next"] .hero__scene > * { translate: 0 calc(-1 * var(--par-far)); }
@media (max-width: 1180px) and (orientation: portrait) {
  /* постер: половины стоят по центру своим translate — сдвиг плана добавляется к нему (селектор сильнее :is выше) */
  html.deck-on [data-deck="prev"] .hero__scene > .hero__half { translate: -50% var(--par-far); }
}
html.deck-on [data-deck="next"] { --near-dir: 1; }
html.deck-on [data-deck="prev"] { --near-dir: -1; }
:where(.head, .eyebrow--hero, .hero .mark, .join__wrap > .mark) { --k: 0; }
:where(.cards, .road, .bosses__text, .media, .versus, .quest, .obt__date, .hero__title, .hero__stands, .hero__lead, .join__wrap > .h2, .join__wrap > .lead) { --k: 1; }
:where(.lindvior, .wave, .tournament__text, .race, .hero__cta, .hero .count, .hero .facts, .join__wrap > .steps) { --k: 2; }
:where(.join__wrap > .join__cta, .join__wrap > .join__links) { --k: 3; }
html.deck-on [data-deck] :where(.head, .eyebrow--hero, .hero .mark, .cards, .road, .bosses__text, .media, .versus, .quest, .obt__date, .hero__title, .hero__stands, .hero__lead, .lindvior, .wave, .tournament__text, .race, .hero__cta, .hero .count, .hero .facts, .join__wrap > :is(.mark, .h2, .lead, .steps, .join__cta, .join__links))
  { transition: translate var(--t-deck) var(--ease-deck); }
html.deck-on [data-deck]:not([data-deck="cur"]) :where(.head, .eyebrow--hero, .hero .mark, .cards, .road, .bosses__text, .media, .versus, .quest, .obt__date, .hero__title, .hero__stands, .hero__lead, .lindvior, .wave, .tournament__text, .race, .hero__cta, .hero .count, .hero .facts, .join__wrap > :is(.mark, .h2, .lead, .steps, .join__cta, .join__links))
  { translate: 0 calc(var(--near-dir) * (var(--near) + var(--k, 0) * var(--near-step))); }
/* у панелей ОБТ свой список переходов (цвета темы) — тот же список плюс ход плана, иначе правило колоды его затрёт */
html.deck-on [data-deck] :where(.quest, .race) { transition: translate var(--t-deck) var(--ease-deck), background-color var(--theme-t), border-color var(--theme-t); }
/* Сход сторон внутри поездки (шапка, турнир, финал): у приходящего раздела DARK и LIGHT съезжаются к «&» и к ромбу
   «Мержа», у уходящего — расходятся. Тот же сдвиг, что во входе шапки; время и кривая колоды. */
html.deck-on [data-deck] :is(.mark__dark, .mark__light, .versus__side--dark, .versus__side--light, .versus__core) { transition: translate var(--t-deck) var(--ease-deck), scale var(--t-deck) var(--ease-deck); }
html.deck-on [data-deck]:not([data-deck="cur"]) :is(.mark__dark, .versus__side--dark) { translate: calc(-1 * var(--meet)) 0; }
html.deck-on [data-deck]:not([data-deck="cur"]) :is(.mark__light, .versus__side--light) { translate: var(--meet) 0; }
html.deck-on [data-deck]:not([data-deck="cur"]) .versus__core { scale: 0.92; }
/* бесконечные анимации (искры, точки-пульсы, дождь и молнии Линдвиора) идут только на своём слайде */
html.deck-on [data-deck]:not([data-deck="cur"]) *, html.deck-on [data-deck]:not([data-deck="cur"]) *::before, html.deck-on [data-deck]:not([data-deck="cur"]) *::after { animation-play-state: paused; }
/* сдвиг ближнего плана на время поездки растит прокрутку раздела — место под полосу прокрутки держим всегда, раскладка
   не прыгает. Шапке не нужно: её планы не выходят за низ, а полоса легла бы на арт во всю ширину */
html.deck-on [data-section]:not(.hero) > .slide-scroll { scrollbar-gutter: stable; }
/* «меньше движения»: раздел сменяется растворением 200 мс (main.js, View Transitions), сдвигов нет */
html.vt-slide::view-transition-group(*), html.vt-slide::view-transition-old(*), html.vt-slide::view-transition-new(*) { animation-duration: 200ms; }
@media (prefers-reduced-motion: reduce) {
  html.deck-on #deck { transition: none; }
}
html.deck-on .cards { height: clamp(380px, calc(100svh - 330px), 620px); }
html.deck-on .road__panel { min-height: 0; }
/* Недели 01–06 в одной рамке: при смене недели рамка не меняет высоту, а на высоких экранах (раздел по центру)
   не прыгают шапка раздела и вкладки. 580 px — самая высокая из 01–06 (неделя 3: 579 px в колонке 1240 px,
   576 — в 1184, 571 — в 1100; все 4 языка одинаковы). «7–14» выше — её рамка растёт. */
/* 15.10: «Что нового» снова полный список новинок — самая высокая неделя 2 (627 px), рамка 632 px */
@media (min-width: 761px) { html.deck-on .road__panel:not(.road__panel--late) { min-height: 632px; } }
html.deck-on .road__media { min-height: 200px; }

/* Подписи, кнопки и служебный текст — текстовый шрифт полужирным (правка заказчика: информационные шрифты; Cormorant — только заголовки). */
.eyebrow, .chip, .btn, .nav__links a, .side-switch__btn, .langs button, .count__label, .count__cell > span, .card__kicker, .card__more,
.road__tab span, .road__kicker, .road__stat small, .road__label, .epics__k, .tile__name, .media__badge, .media__cap span, .count__obt,
.obt__date, .quest__label, .race__caption, .steps li, .join__links, .dots a span, .stand__tag em, .tab { font-weight: 600; }
.eyebrow__num { font-family: var(--font-text); font-weight: 700; font-size: 17px; }
.tab { font-family: var(--font-text); font-size: 18px; }

/* Текст на артах карточек — на спокойном тёмном градиенте карточки (15.10: плашка закрывала картинку; дымка с
   размытием превращала лица в пятна — размытие убрано). Градиент — слой самой карточки постоянной высоты: от текста
   не зависит, поэтому при раскрытии карточки не прыгает. Читаемость держат градиент и тёмный ореол у букв. */
.card::before { background: linear-gradient(180deg, rgba(8, 8, 12, 0.18) 0%, rgba(8, 8, 12, 0) 26%); }
.card::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(8, 8, 12, 0) 34%, rgba(8, 8, 12, 0.38) 56%, rgba(8, 8, 12, 0.72) 78%, rgba(8, 8, 12, 0.86) 100%);
}
.card__body { position: relative; padding: 22px 20px 20px; }
.card__kicker, .card__title, .card__text, .card__more { text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85), 0 0 12px rgba(0, 0, 0, 0.55), 0 0 28px rgba(0, 0, 0, 0.4); }
.card__title { font-size: 28px; }
.card__num { text-shadow: 0 2px 14px rgba(0, 0, 0, 0.7); }

/* Плитки недель 7–14: картинка целиком, 16:9, чистая; название под ней — заголовком, как у карточек, список ниже
   (владелец 15.10: «текст какой-то не красивый» — было золотое капсом поверх затемнённого края картинки). */
.tile__img { height: auto; aspect-ratio: 16 / 9; }
.tile__img::after { content: none; }
.tile { min-height: 0; }
.tile__body { position: relative; padding: 12px 16px 14px; }
.tile__name {
  margin: 0 0 8px; font-family: var(--font-display); font-weight: 600; font-size: 22px; line-height: 1.15;
  letter-spacing: 0; text-transform: none; color: var(--ink); text-wrap: balance;
}
.tile__name:last-child { margin-bottom: 0; }
/* Ревью 15.10: плитки — отдельные открытия, а не сплошная таблица: зазор между ними, рамка у каждой своя.
   Список плотнее — ряд ниже, сетка остаётся ровной (высоту ряда задаёт самая длинная плитка). */
.late__grid { gap: 12px; background: none; border: 0; }
/* на 761–1180 px общее правило недель (две колонки 0.8fr / 1.2fr) перебивало панель 7–14 — она жалась в левые 40 % */
.road__panel.road__panel--late { grid-template-columns: 1fr; }
.tile { border: 1px solid var(--line); }
.tile .list { gap: 3px; font-size: 15px; line-height: 1.4; }

/* Рамка ghost при наведении. Стоит в конце файла: перебивает контексты (.hero, .join, панель над шапкой, меню),
   в тёмных контекстах --btn-bd-hover золотой — иначе в LIGHT зелёная рамка на тёмном не видна. */
@media (hover: hover) and (pointer: fine) {
  .btn.btn--ghost:hover { --btn-bd: var(--btn-bd-hover, var(--accent)); }
}

/* ---------- Шрифты: размеры под Trajan Pro 3 и Inter (15.10) ----------
   Trajan — заглавные с капителью: шире и выше Cormorant, поэтому заголовки мельче и чуть разреженнее.
   Абзацы, которые были набраны шрифтом заголовков (цитата эпиков, акцент турнира, пункты меню, шаги), — теперь Inter. */
.h2 { font-size: clamp(26px, 3.3vw, 48px); line-height: 1.14; letter-spacing: 0.01em; }
.h3 { font-size: clamp(20px, 1.9vw, 26px); line-height: 1.18; }
.mark { font-size: clamp(30px, 4.3vw + 12px, 86px); letter-spacing: 0.03em; }
.hero__title { font-size: clamp(19px, 1.7vw + 6px, 32px); line-height: 1.22; letter-spacing: 0.01em; }
.card__title { font-size: 19px; line-height: 1.22; }
.card__num { font-size: 32px; }
.road__title { font-size: clamp(21px, 1.9vw, 27px); line-height: 1.18; }
.road__num { font-size: 68px; }
.media__cap b { font-size: 23px; }
.lindvior__name { font-size: clamp(34px, 4vw, 56px); }
.versus__side { font-size: clamp(26px, 3.8vw, 56px); letter-spacing: 0.08em; }
.reward b { font-size: 34px; }
/* золото градиентом рисуется только в пределах строки: у Trajan цифры выше, при line-height 0.8 верх обрезался */
.race__num { font-size: clamp(88px, 10vw, 136px); line-height: 1; margin: -0.1em 0; }
.tile__name { font-size: 18px; line-height: 1.22; }
.nav__brand { font-size: 18px; }
.foot__brand { font-size: 15px; }
.bosses__text .quote { font-family: var(--font-text); font-size: 19px; line-height: 1.5; font-weight: 500; }
.tournament__text .tournament__accent { font-family: var(--font-text); font-size: 20px; line-height: 1.45; font-weight: 600; }
.menu__inner > a { font-family: var(--font-text); font-size: 20px; font-weight: 600; }
.steps b { font-family: var(--font-text); font-weight: 700; }

/* Вехи недель во вкладках («A-grade · Zaken») — обычным регистром: это названия из игры, не служебная подпись;
   до двух строк, вкладки одной высоты. */
.road__tab span { font-size: 13px; font-weight: 600; letter-spacing: 0.01em; text-transform: none; line-height: 1.25; }
@media (max-width: 760px) { .road__tab span { font-size: 12px; } }

/* ---------- Шапка: две даты запуска и повторы (15.10) ----------
   «Сильнее выделить открытие серверов… обе даты должны легко находиться: ОБТ — 13 ноября, старт — 20 ноября».
   Даты — одной строкой над таймером, на равных; старт — золотом. Таймер до ОБТ остаётся. */
.dates { display: flex; justify-content: center; margin: 0 0 18px; }
.dates__item { display: grid; justify-items: center; gap: 3px; margin: 0; padding: 0 24px; }
.dates__item + .dates__item { border-left: 1px solid rgba(217, 181, 108, 0.4); }
.dates__item span { font-family: var(--font-label); font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: #e5dfd3; }
.dates__item b { font-family: var(--font-text); font-weight: 700; font-size: 26px; line-height: 1.12; color: #f8f1df; font-variant-numeric: lining-nums; }
.dates__item--start b { color: var(--gold-hi); }
.dates__item time { font-size: 13px; color: rgba(229, 223, 211, 0.72); font-variant-numeric: tabular-nums; }
.dates[hidden], .count__obt[hidden] { display: none; }
.count__label { margin-bottom: 10px; font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
@media (max-width: 760px) {
  .dates__item { padding: 0 14px; }
  .dates__item b { font-size: 22px; }
}
/* x20 и Interlude → High Five уже в нижней полосе шапки — над названием их не повторяем там, где полоса на первом
   экране (компьютер, горизонталь). На постере телефона полосы на первом экране нет — там надпись остаётся. */
@media not all and (max-width: 1180px) and (orientation: portrait) {
  .eyebrow--hero { display: none; }
}

/* ---------- Эпики (15.10) ----------
   Под текстом — спокойная подложка в цвет темы: контрастные детали замка на фоне не мешают читать, особенно серый
   второй абзац. Края растворяются, атмосфера фона остаётся. */
.bosses__text { position: relative; isolation: isolate; }
.bosses__text::before {
  content: ""; position: absolute; z-index: -1; inset: -96px -120px -96px -140px; pointer-events: none;
  /* closest-side: эллипс гаснет ровно к краям слоя — без видимой кромки */
  background: radial-gradient(closest-side at 46% 50%, rgba(var(--shade), 0.88) 0%, rgba(var(--shade), 0.7) 55%, rgba(var(--shade), 0) 100%);
}
/* Wave PvP: затемнение только слева под текстом, справа сцена боя видна — как у соседней карточки Lindvior.
   5×5 и 9×9 — форматы, а не кнопки: обычные метки без заливки и рамки. */
.wave::before { background: linear-gradient(90deg, rgba(8, 8, 12, 0.92) 0%, rgba(8, 8, 12, 0.66) 40%, rgba(8, 8, 12, 0.14) 78%); }
.wave__formats { display: flex; align-items: center; gap: 12px; margin: 0; font-family: var(--font-text); font-weight: 700; font-size: 22px; letter-spacing: 0.04em; color: var(--gold-hi); }
.wave__formats span + span::before { content: "·"; margin-right: 12px; color: rgba(246, 239, 223, 0.5); font-weight: 400; }
/* Картинка босса чуть ниже (16:9 вместо 16:10) — карточки анонсов под ней появляются раньше; кадр заполняет рамку. */
.media__frame { aspect-ratio: 16 / 9; }
.media__frame img, .media__frame video { object-fit: cover; }

/* Полоса фактов шапки шире на 80 px: подпись «улучшенная графика и интерфейс» помещается в одну строку, как соседние. */
.facts { width: min(1080px, 100% - 2 * var(--gutter)); }

/* ---------- Турнир (15.10) ----------
   Фигуры по краям светлее: затемнение собрано под центральным текстом и к краям почти уходит — противостояние видно. */
.tournament .section-bg img, :root[data-side="light"] .tournament .section-bg img { opacity: 0.84; }
.tournament .section-bg::after {
  background: radial-gradient(ellipse 44% 62% at 50% 50%, rgba(9, 9, 13, 0.9) 0%, rgba(9, 9, 13, 0.66) 58%, rgba(9, 9, 13, 0.16) 100%),
    linear-gradient(180deg, var(--bg-2) 0%, transparent 18%, transparent 82%, var(--bg) 100%);
}
/* «Merge» в ромбе — часть эмблемы DARK — Merge — LIGHT: по-английски на всех языках и тем же шрифтом, что стороны. */
.versus__core b { font-family: var(--font-display); font-weight: 600; font-size: 15px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-hi); }

/* ---------- Финал (15.10) ----------
   Даты ОБТ и старта — той же строкой, что в шапке (раньше «Открытие 20 ноября… успеть к ОБТ» читалось как одна дата).
   Шаги 1-2-3 над кнопками убраны: стояли парами с кнопками не по смыслу. Под кнопками — какой файл нужен. */
.dates--join { margin: 24px 0 4px; }
.join__note { margin: 14px auto 0; max-width: 46ch; font-size: 14px; line-height: 1.5; color: rgba(241, 234, 217, 0.7); }

/* ---------- Названия стадий на картинках (15.10: «названия недели красиво на картинке») ----------
   Недели 1–6: номер и название стадии внизу картинки, как титул главы. Плитки 7–14: «Неделя N» и название внизу
   картинки на мягком градиенте; под картинкой — состав недели (прежнее название) и список. Название — Trajan, светлое,
   с тёмным ореолом; состав — текстовым шрифтом, чтобы не спорил с названием. */
.road__cap { position: absolute; left: 24px; right: 24px; bottom: 20px; z-index: 1; display: grid; gap: 4px; }
.road__week { font-family: var(--font-label); font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-hi); text-shadow: 0 1px 6px rgba(0, 0, 0, 0.8); }
.road__stage { font-family: var(--font-display); font-weight: 600; font-size: clamp(26px, 2.4vw, 36px); line-height: 1.08; color: #fff7e3; text-shadow: 0 2px 14px rgba(0, 0, 0, 0.75); text-wrap: balance; }
.tile__img::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(8, 8, 12, 0) 42%, rgba(8, 8, 12, 0.74) 100%); }
.tile__cap { position: absolute; left: 16px; right: 16px; bottom: 12px; z-index: 1; display: grid; gap: 3px; }
.tile__week { font-family: var(--font-label); font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-hi); text-shadow: 0 1px 6px rgba(0, 0, 0, 0.8); }
.tile__stage { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 22px; line-height: 1.12; color: #fff7e3; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8); text-wrap: balance; }
.tile__name { font-family: var(--font-text); font-weight: 700; font-size: 16px; line-height: 1.3; letter-spacing: 0; }
@media (max-width: 760px) {
  .road__cap { left: 16px; right: 16px; bottom: 14px; gap: 3px; }
  .road__stage { font-size: 24px; }
}

/* Призовой фонд турнира (15.10: «приз 10к $, оформи красиво»): подпись золотом с тонкими линиями, сумма — Trajan
   золотым градиентом, как LIGHT в эмблеме. Стоит между рассказом о турнире и призывом. */
.tournament__text .prize { margin: 22px 0 20px; display: grid; justify-items: center; gap: 6px; }
.tournament__text .prize__label { margin: 0; display: flex; align-items: center; gap: 14px; font-family: var(--font-label); font-size: 13px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-hi); }
.tournament__text .prize__label::before, .tournament__text .prize__label::after { content: ""; width: 48px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.tournament__text .prize__label::after { transform: scaleX(-1); }
.tournament__text .prize__sum {
  margin: 0; font-family: var(--font-display); font-weight: 600; font-size: clamp(36px, 3.6vw, 54px); line-height: 1.05; letter-spacing: 0.02em;
  background: linear-gradient(180deg, #fff3cf 12%, var(--gold) 58%, var(--gold-lo) 96%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 18px rgba(0, 0, 0, 0.55));
}

/* текст турнира теперь короткий — на телефоне по центру, как заголовок, эмблема и приз */
@media (max-width: 760px) { .tournament__text { text-align: center; } }

/* ---------- Финал (15.10: «сюда нужно нормальный арт», «два арта одинаковых?») ----------
   Свой арт финала: героини шапки со спины смотрят на Аден (слева сумерки, справа рассвет, замок в центре).
   Обе половины сцены показывают одну картинку в одной точке. Затемнение собрано под текстом, к краям уходит. */
.join__half img { object-position: 50% 40%; }
.join__scene::after {
  background: radial-gradient(ellipse 56% 76% at 50% 52%, rgba(9, 9, 13, 0.95) 0%, rgba(9, 9, 13, 0.88) 60%, rgba(9, 9, 13, 0.58) 100%),
    linear-gradient(180deg, var(--bg) 0%, transparent 18%, transparent 78%, #09090d 100%);
}


/* Logo: emblem in the nav, full lockup (white wordmark) in the always-dark footer */
.nav__logo { display: block; height: 34px; width: auto; flex: none; }
.foot__logo { display: block; height: 64px; width: auto; flex: none; }
/* Light side: once the nav turns into the ivory bar, swap the gold emblem for the black one */
.nav__logo--dark { display: none; }
:root[data-side="light"] .nav.is-solid .nav__logo--gold, :root[data-side="light"] .nav.menu-open .nav__logo--gold { display: none; }
:root[data-side="light"] .nav.is-solid .nav__logo--dark, :root[data-side="light"] .nav.menu-open .nav__logo--dark { display: block; }
.foot__wrap { justify-content: flex-start; }
.foot__links { margin-left: auto; }
@media (max-width: 760px) {
  .nav__logo { height: 28px; }
  .foot__logo { height: 56px; }
  .foot__links { margin-left: 0; }
}

/* ---------- Шапка: головы героинь не уходят под панель (широкие экраны) ----------
   Арт ставится под панелью, а не за ней (панель и так почти непрозрачна). Масштаб — cover по коробке под панелью:
   S = max(ширина / 1,791; высота коробки). Если арт выше коробки, лишнее режется так, чтобы макушки (4,5 % высоты
   арта) стояли на --head-gap ниже панели; остальное уходит вниз, под полосу фактов. Зоны героинь считаются так же.
   Телефон и планшет стоя — своя раскладка («постер»), её это не касается. */
@media not all and (max-width: 1180px) and (orientation: portrait) {
  .hero { --head-gap: 16px; }
  .hero__scene { container-type: size; }
  .hero__half { top: var(--nav-h); }
  .hero__half img {
    --art-s: max(55.833cqw, 100cqh - var(--nav-h));
    object-position: 50% max(100cqh - var(--nav-h) - var(--art-s), var(--head-gap) - 0.045 * var(--art-s));
  }
  .stand {
    --wide-h: max(100cqh - var(--nav-h), 55.833cqw);
    --wide-w: max(100cqw, 1.79104 * (100cqh - var(--nav-h)));
    --wide-y: calc(var(--nav-h) + max(100cqh - var(--nav-h) - var(--wide-h), var(--head-gap) - 0.045 * var(--wide-h)));
  }
}
