@font-face { font-family: "Cormorant Garamond"; src: url("/fonts/CormorantGaramond.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Onest"; src: url("/fonts/Onest.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --ink: #09070e;
  --surface: rgba(18, 13, 28, 0.72);
  --surface-strong: rgba(15, 10, 24, 0.94);
  --paper: #f4f0fa;
  --muted: rgba(232, 224, 246, 0.74);
  --faint: rgba(208, 196, 232, 0.54);
  --rule: rgba(205, 182, 245, 0.16);
  --rule-strong: rgba(205, 182, 245, 0.3);
  --acc: #c79eff;
  --acc-mid: color-mix(in srgb, var(--acc) 75%, var(--cool));
  --acc-hi: color-mix(in srgb, var(--acc) 28%, white);
  --acc-ink: #120a1f;
  --cool: #8278c9;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Onest", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--paper);
  font: 16px/1.65 var(--sans);
  background:
    radial-gradient(70% 55% at 78% 8%, rgba(199, 158, 255, 0.09), transparent 65%),
    radial-gradient(60% 50% at 12% 78%, rgba(130, 120, 201, 0.08), transparent 68%),
    var(--ink);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--acc); text-underline-offset: 3px; text-decoration-thickness: 1px; transition: color 0.15s; }
a:hover { color: var(--paper); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; }

/* Разделы, которые живут только до открытой беты */
body[data-phase="obt"] [data-release-only] { display: none !important; }
body[data-phase="release"] [data-obt-only] { display: none !important; }
.language-link { color: var(--muted); font: 600 .8rem/1.2 var(--sans); text-decoration: none; padding: 12px 0 12px 12px; }
.language-link:hover, .language-link:focus-visible { color: var(--paper); }

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(9, 7, 14, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--rule);
}
.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(1080px, 100% - 312px);
  margin: 0 auto;
  padding: 15px 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 500 15px var(--serif);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--paper);
  text-decoration: none;
}
.brand:hover { color: var(--paper); }
.brand::before {
  content: "";
  width: 6px;
  height: 6px;
  transform: rotate(45deg);
  background: var(--acc);
  box-shadow: 0 0 12px color-mix(in srgb, var(--acc) 75%, transparent);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nav a { position: relative; color: var(--muted); text-decoration: none; padding: 4px 0; }
.nav a:hover { color: var(--paper); }

/* Левая закреплённая панель площадок */
.dock {
  position: fixed;
  left: 26px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 25;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.dock-sep {
  width: 22px;
  height: 1px;
  margin: 2px 0 2px 10px;
  background: linear-gradient(90deg, var(--acc), transparent);
  opacity: 0.5;
}
.dock-item {
  display: inline-grid;
  grid-template-columns: 42px 0fr;
  align-items: center;
  height: 42px;
  padding: 0;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--surface);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--muted);
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  transition:
    grid-template-columns 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.2s, color 0.2s, background-color 0.2s, box-shadow 0.2s;
}
.dock-item:hover,
.dock-item:focus-visible {
  grid-template-columns: 42px 1fr;
  border-color: color-mix(in srgb, var(--acc) 72%, transparent);
  background: var(--surface-strong);
  color: var(--paper);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55), 0 0 22px color-mix(in srgb, var(--acc) 22%, transparent);
}
.dock-item.official { border-color: color-mix(in srgb, var(--acc) 48%, var(--rule)); color: var(--acc); }
.dock-item.official:hover,
.dock-item.official:focus-visible { border-color: var(--acc); color: var(--acc-hi); }
.dock-icon { display: grid; place-items: center; width: 40px; height: 40px; }
.dock-icon svg { width: 18px; height: 18px; display: block; }
.dock-label { min-width: 0; overflow: hidden; white-space: nowrap; }
.dock-label span {
  display: inline-block;
  padding: 0 16px 0 2px;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.2s 0.04s, transform 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}
.dock-item:hover .dock-label span,
.dock-item:focus-visible .dock-label span { opacity: 1; transform: translateX(0); }

/* Правая закреплённая панель навигации — ромбы напротив левой */
.rail {
  position: fixed;
  right: 26px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 25;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
}
.rail::before {
  content: "";
  position: absolute;
  right: 5px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--rule);
  pointer-events: none;
}
.rail a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 2px 0;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--faint);
}
.rail a span { opacity: 0; transform: translateX(4px); transition: opacity 0.2s, transform 0.2s, color 0.15s; }
.rail a[href="#top"] span,
.rail a[href="#launcher"] span,
.rail a:hover span,
.rail a:focus-visible span,
.rail a[aria-current="true"] span { opacity: 1; transform: translateX(0); }
.rail a[aria-current="true"] { color: var(--acc); }
.rail a::after {
  content: "";
  width: 9px;
  height: 9px;
  transform: rotate(45deg);
  border: 1px solid var(--rule-strong);
  background: var(--ink);
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}
.rail a[aria-current="true"]::after {
  border-color: var(--acc);
  background: var(--acc);
  box-shadow: 0 0 12px color-mix(in srgb, var(--acc) 75%, transparent);
}

.hero,
section.part,
footer,
.strip { width: min(1080px, 100% - 312px); margin: 0 auto; }

/* Первый экран */
.screen {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: min(690px, calc(100svh - 59px));
  padding-bottom: clamp(28px, 5vh, 52px);
  overflow: hidden;
}
.waves {
  position: absolute;
  inset: auto 0 0 0;
  width: 100%;
  height: min(52vh, 460px);
  z-index: 0;
  pointer-events: none;
  user-select: none;
}
.hero {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: clamp(34px, 7.5vh, 84px) 0 clamp(24px, 4vh, 44px);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font: 500 11.5px var(--sans);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--acc);
}
.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  transform: rotate(45deg);
  border: 1px solid currentColor;
}
h1 {
  margin: 0;
  max-width: 13em;
  font: 300 clamp(34px, 7.6vw, 96px)/0.98 var(--serif);
  letter-spacing: 0.01em;
  color: var(--paper);
  overflow-wrap: break-word;
  text-wrap: balance;
}
h1 em { font-style: italic; font-weight: 300; color: var(--acc); }
.version-sub {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 16px 0 0;
  font: 400 clamp(18px, 2.4vw, 30px)/1.2 var(--serif);
  letter-spacing: 0.06em;
  color: var(--acc);
}
.version-sub::before {
  content: "";
  flex: 0 0 auto;
  width: 24px;
  height: 1px;
  background: linear-gradient(90deg, var(--acc), transparent);
  opacity: 0.8;
}
.lede {
  max-width: 34em;
  margin: 24px 0 0;
  font-size: clamp(16px, 1.65vw, 18.5px);
  color: var(--muted);
}
.os-note { margin: 12px 0 0; font-size: 13px; letter-spacing: 0.05em; color: var(--faint); }

.strip {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 18px 28px;
  flex-wrap: wrap;
}
.patch-note {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 11px 18px;
  border: 1px solid var(--rule);
  border-left: 2px solid var(--acc);
  background: var(--surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 13.5px;
  letter-spacing: 0.02em;
  color: var(--muted);
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s, background-color 0.2s, box-shadow 0.2s;
}
.patch-note::before {
  content: "";
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  transform: rotate(45deg);
  background: var(--acc);
  box-shadow: 0 0 10px color-mix(in srgb, var(--acc) 70%, transparent);
}
.patch-arr { color: var(--acc); transition: transform 0.2s; }
.patch-note:hover,
.patch-note:focus-visible {
  color: var(--paper);
  border-color: color-mix(in srgb, var(--acc) 68%, transparent);
  background: var(--surface-strong);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.36);
}
.patch-note:hover .patch-arr,
.patch-note:focus-visible .patch-arr { transform: translateY(2px); }

/* Перламутровая кнопка скачивания */
.dl-btn {
  position: relative;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 60px;
  padding: 10px 28px 10px 24px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--acc-hi) 60%, transparent);
  text-decoration: none;
  color: var(--acc-ink);
  overflow: hidden;
  isolation: isolate;
  cursor: pointer;
  background: linear-gradient(
    115deg,
    color-mix(in srgb, var(--acc-mid) 78%, #4d2e7d) 0%,
    var(--acc) 32%,
    var(--acc-hi) 50%,
    var(--acc) 68%,
    color-mix(in srgb, var(--acc-mid) 78%, #4d2e7d) 100%
  );
  background-size: 230% 100%;
  background-position: 10% 50%;
  box-shadow:
    0 10px 34px rgba(0, 0, 0, 0.52),
    0 0 36px color-mix(in srgb, var(--acc) 32%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
  transition: background-position 0.7s ease, box-shadow 0.35s ease, transform 0.25s ease, border-color 0.25s ease;
}
.dl-btn::after {
  content: "";
  position: absolute;
  inset: -40% -60%;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 34%, rgba(255, 255, 255, 0.58) 50%, transparent 66%);
  transform: translateX(-110%);
  transition: transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}
.dl-btn:hover,
.dl-btn:focus-visible {
  color: var(--acc-ink);
  background-position: 92% 50%;
  border-color: rgba(255, 255, 255, 0.82);
  transform: translateY(-1px);
  box-shadow:
    0 14px 40px rgba(0, 0, 0, 0.6),
    0 0 54px color-mix(in srgb, var(--acc) 52%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
}
.dl-btn:hover::after,
.dl-btn:focus-visible::after { transform: translateX(110%); }
.dl-btn:active { transform: translateY(0); }
.dl-ico, .dl-txt { position: relative; z-index: 1; }
.dl-ico { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(18, 10, 31, 0.14); }
.dl-ico svg { width: 15px; height: 15px; display: block; }
.dl-txt { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.dl-txt b { font: 600 13px/1.15 var(--sans); letter-spacing: 0.18em; text-transform: uppercase; }
.dl-txt small { margin-top: 3px; font-size: 11px; font-weight: 500; opacity: 0.8; }

/* Секции */
section.part {
  padding: clamp(52px, 7.5vw, 96px) 0;
  border-top: 1px solid var(--rule);
  scroll-margin-top: 72px;
}
.split {
  display: grid;
  grid-template-columns: minmax(220px, 0.85fr) minmax(0, 1.35fr);
  gap: 24px clamp(32px, 5vw, 68px);
  align-items: start;
}
.split-head h2 { margin: 0; font: 400 clamp(28px, 3.6vw, 44px)/1.1 var(--serif); color: var(--paper); }
.split-head h2 em { font-style: italic; font-weight: 300; color: var(--acc); }
.split-lead { margin: 14px 0 0; font-size: 15px; color: var(--muted); max-width: 24em; }

.hud-box {
  position: relative;
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid var(--rule);
  background: linear-gradient(155deg, rgba(22, 16, 35, 0.78), rgba(10, 8, 16, 0.84));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.42);
}
.hud-box::before,
.hud-box::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  pointer-events: none;
  border-color: var(--acc);
  border-style: solid;
  opacity: 0.8;
}
.hud-box::before { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
.hud-box::after { right: -1px; bottom: -1px; border-width: 0 2px 2px 0; }

p { margin: 0 0 14px; }
.prose { color: var(--muted); }
.prose p:last-child { margin-bottom: 0; }
code {
  padding: 2px 8px;
  border: 1px solid var(--rule-strong);
  border-radius: 6px;
  background: rgba(199, 158, 255, 0.1);
  color: var(--acc-hi);
  font: 500 14px var(--sans);
}

/* Возможности — нативные details, работают без скрипта */
.facts { margin: 0; }
.facts details { border-bottom: 1px solid var(--rule); padding: 16px 0; }
.facts details:first-child { padding-top: 0; }
.facts details:last-child { border-bottom: 0; padding-bottom: 0; }
summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1em;
  cursor: pointer;
  font-weight: 500;
  color: var(--paper);
  list-style: none;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--acc); font-size: 19px; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { margin: 10px 0 0; color: var(--muted); }

.punch {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 0;
  margin: 22px 0 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--rule);
  list-style: none;
  font-size: 13.5px;
  color: var(--faint);
}
.punch li { display: flex; align-items: center; }
.punch li + li::before { content: "◆"; margin: 0 0.9em; color: var(--acc); font-size: 0.6em; line-height: 1; }

/* Обновление */
.update-list { margin: 0; padding: 0; list-style: none; }
.update-list li {
  position: relative;
  padding: 12px 0 12px 22px;
  border-bottom: 1px solid var(--rule);
  font-size: 15px;
  color: var(--muted);
}
.update-list li:first-child { padding-top: 0; }
.update-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.update-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 20px;
  width: 6px;
  height: 6px;
  transform: rotate(45deg);
  background: var(--acc);
}
.update-list li:first-child::before { top: 8px; }
.update-list strong { font-weight: 500; color: var(--paper); }
.official-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; font-size: 14px; }

/* Вопросы */
.faq-list details { border-bottom: 1px solid var(--rule); padding: 16px 0; }
.faq-list details:first-child { padding-top: 0; }
.faq-list details:last-child { border-bottom: 0; padding-bottom: 0; }

/* Гайды — место под будущие материалы, без ссылок-заглушек */
.guides-empty {
  display: grid;
  place-items: center;
  min-height: 150px;
  padding: 24px;
  border: 1px dashed var(--rule-strong);
  background: rgba(255, 255, 255, 0.015);
  text-align: center;
  color: var(--muted);
  font-size: 15px;
}
.guides-empty strong { display: block; margin-bottom: 6px; font-weight: 500; color: var(--paper); }

footer {
  padding: 36px 0 60px;
  border-top: 1px solid var(--rule);
  color: var(--faint);
  font-size: 13.5px;
}
footer p { max-width: 52em; margin: 0; }

/* Окно загрузки */
dialog#download-dialog {
  width: min(520px, calc(100vw - 40px));
  padding: 0;
  border: 1px solid var(--rule-strong);
  background: var(--surface-strong);
  color: var(--paper);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.7), 0 0 50px color-mix(in srgb, var(--acc) 16%, transparent);
}
dialog#download-dialog::backdrop { background: rgba(5, 3, 9, 0.72); backdrop-filter: blur(4px); }
.dl-dialog { padding: clamp(22px, 4vw, 34px); }
.dl-dialog h2 { margin: 0 0 6px; font: 400 clamp(26px, 3vw, 34px)/1.15 var(--serif); }
.dl-dialog p { color: var(--muted); font-size: 14.5px; }
.dl-close-form { margin: 0; display: flex; justify-content: flex-end; }
.dl-close {
  padding: 6px 14px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 12.5px;
  cursor: pointer;
}
.dl-close:hover,
.dl-close:focus-visible { color: var(--paper); border-color: var(--rule-strong); }
.dl-files { display: grid; gap: 10px; margin: 18px 0 0; }
.dl-file {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 14px 18px;
  border: 1px solid var(--rule);
  background: rgba(199, 158, 255, 0.07);
  color: var(--paper);
  text-decoration: none;
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}
.dl-file:hover,
.dl-file:focus-visible {
  border-color: color-mix(in srgb, var(--acc) 70%, transparent);
  background: rgba(199, 158, 255, 0.13);
  box-shadow: 0 0 24px color-mix(in srgb, var(--acc) 18%, transparent);
}
.dl-file strong { font-size: 15px; font-weight: 600; }
.dl-file small { font-size: 12.5px; color: var(--faint); }
.dl-file[hidden] { display: none; }
.file-hashes summary { cursor: pointer; color: var(--muted); }
#download-status { margin: 16px 0 0; font-size: 13px; color: var(--faint); }
#download-status:empty { display: none; }

@media (prefers-reduced-motion: reduce) {
  .dl-btn, .dl-btn::after, .dock-item, .dock-label span, .patch-note, .patch-arr { transition: none; }
}

@media (max-width: 960px) {
  .rail { display: none; }
  .bar, .hero, .strip, section.part, footer { width: min(1080px, 100% - 48px); }
  .dock {
    position: static;
    transform: none;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    width: min(1080px, 100% - 48px);
    margin: 18px auto 0;
    gap: 8px;
  }
  .dock-sep { width: 1px; height: 20px; margin: 0 2px; background: var(--rule-strong); }
  .split { grid-template-columns: 1fr; gap: 20px; }
  .split-lead { max-width: 38em; }
}

@media (max-width: 720px) {
  .topbar { position: static; }
  .bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 12px; padding-block: 8px; }
  .nav { grid-column: 1 / -1; grid-row: 2; column-gap: 12px; row-gap: 0; font-size: .75rem; letter-spacing: 0; text-transform: none; }
  .nav a { display: inline-flex; align-items: center; min-height: 44px; }
  .language-link { grid-column: 2; grid-row: 1; }
  .hero { padding: clamp(24px, 5vh, 44px) 0; }
  .strip { flex-direction: column; align-items: flex-start; }
  .dl-btn { max-width: 100%; }
  .hud-box { padding: 20px; }
  .punch { flex-direction: column; align-items: flex-start; gap: 6px; }
  .punch li + li::before { display: none; }
}

.skip-link {
  position: fixed;
  inset: .5rem auto auto .5rem;
  z-index: 20;
  padding: .6rem 1rem;
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-160%);
}
.skip-link:focus { transform: none; }
#download { scroll-margin-top: 85px; }
.file-hashes { margin: 18px 0 0; font-size: 13px; }
.file-hashes p { margin: .55rem 0 0; }
.file-hashes a { color: var(--acc); }
.file-hashes code { display: block; overflow-wrap: anywhere; color: var(--muted); font-size: .8rem; }
