/* Сайт лаунчера. Те же цвета и шрифт, что в самом лаунчере. */
@font-face {
  font-family: 'Onest';
  font-weight: 100 900;
  font-display: swap;
  src: url(/fonts/onest-cyrillic-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Onest';
  font-weight: 100 900;
  font-display: swap;
  src: url(/fonts/onest-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #121418;
  --rail: #0d0f12;
  --card: #191b20;
  --line: #1f2228;
  --raised-line: #2a2d34;
  --track: #24272e;
  --text: #f1f1ee;
  --text-2: #c9cbd0;
  --text-3: #a7aab1;
  --muted: #8c9099;
  --online: #5bd68a;
  --offline: #5a5e66;
  --accent: #e8457a;
  --accent-ink: #ffffff;
  --font: 'Onest', system-ui, sans-serif;
  --mono: ui-monospace, 'JetBrains Mono', 'Cascadia Mono', monospace;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

[hidden] {
  display: none !important;
}

code {
  padding: 1px 6px;
  border-radius: 6px;
  background: #1c1e23;
  font: 500 0.88em/1.5 var(--mono);
}
pre {
  margin: 0 0 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--rail);
  overflow-x: auto;
}
pre code {
  padding: 0;
  background: none;
}

.wrap {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 24px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 20;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
}
.skip:focus {
  top: 12px;
}

/* ---------- Шапка ---------- */
.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgb(18 20 24 / 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.top-row {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  white-space: nowrap;
}
.mark {
  display: grid;
  grid-template-columns: repeat(2, 9px);
  gap: 3px;
}
.mark i {
  width: 9px;
  height: 9px;
  background: var(--text);
}
.mark i:last-child {
  background: var(--accent);
}
.mark.small {
  grid-template-columns: repeat(2, 6px);
  gap: 2px;
  display: inline-grid;
  margin-right: 8px;
  vertical-align: -1px;
}
.mark.small i {
  width: 6px;
  height: 6px;
}
.nav {
  display: flex;
  gap: 24px;
  margin-left: auto;
  font-size: 15px;
}
.nav a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}
.nav a:hover {
  color: var(--text);
}
.btn-small {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 16px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: filter 0.15s;
}
.btn-small:hover {
  filter: brightness(1.08);
}

/* ---------- Первый экран ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: 56px;
  padding-block: 72px 88px;
}
.hero-title {
  margin: 0 0 28px;
  font-size: clamp(56px, 7.4vw, 104px);
  line-height: 0.9;
  font-weight: 800;
  letter-spacing: -0.045em;
}
.hero-title span {
  display: block;
}
.lead {
  max-width: 34em;
  margin: 0 0 36px;
  color: var(--text-2);
  font-size: 19px;
  line-height: 1.55;
}

.get {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
/* Кнопка — копия «Играть» из лаунчера */
.play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 260px;
  height: 60px;
  padding: 0 32px;
  border-radius: 16px;
  background: var(--accent);
  color: var(--accent-ink);
  font: 700 19px/1 var(--font);
  text-decoration: none;
  box-shadow: 0 10px 30px -8px var(--accent);
  transition:
    filter 0.15s,
    transform 0.1s;
}
.play:hover {
  filter: brightness(1.08);
}
.play:active {
  transform: translateY(1px);
}
.play[aria-disabled='true'] {
  background: var(--track);
  color: var(--muted);
  box-shadow: none;
  pointer-events: none;
}
.get-meta {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.get-other {
  margin: 4px 0 0;
  font-size: 15px;
  color: var(--text-3);
}
.get-other a {
  color: var(--text);
  font-weight: 600;
  text-underline-offset: 3px;
  text-decoration-color: rgb(241 241 238 / 0.35);
}
.get-other a:hover {
  text-decoration-color: currentColor;
}

.live {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 36px 0 0;
  color: var(--text-3);
  font-size: 15px;
}
.live b {
  color: var(--text);
  font-weight: 700;
}
.dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--online);
}
.dot.off {
  background: var(--offline);
}

.shot {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #262930;
  background: var(--rail);
  box-shadow:
    0 50px 120px -50px rgb(232 69 122 / 0.45),
    0 30px 60px -30px rgb(0 0 0 / 0.85);
}
.shot img {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------- Разделы ---------- */
.section-title {
  margin: 0 0 28px;
  font-size: 36px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.025em;
}
.steps,
.server-section,
.news-section,
.faq-section {
  padding-block: 56px;
}

/* Шаги: это последовательность, поэтому с номерами */
.step-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.step {
  counter-increment: step;
}
.step h3 {
  margin: 22px 0 8px;
  font-size: 28px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.step h3::before {
  content: counter(step);
  margin-right: 12px;
  color: var(--muted);
  font-weight: 600;
}
.step p {
  margin: 0;
  max-width: 34em;
  color: var(--text-3);
}

/* Кусочки настоящего интерфейса лаунчера */
.step-ui {
  display: grid;
  place-items: center;
  height: 136px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
}
.file {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 320px;
  padding: 12px 14px;
  border: 1px solid var(--raised-line);
  border-radius: 12px;
  background: var(--bg);
  font-size: 14px;
}
.file-icon {
  flex: none;
  width: 26px;
  height: 32px;
  border-radius: 4px;
  background: linear-gradient(225deg, var(--bg) 0 7px, var(--accent) 7px);
}
.file-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}
.file-size {
  color: var(--muted);
  white-space: nowrap;
}
.code {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.code-hint {
  color: var(--muted);
  font-size: 13px;
}
.code-box {
  padding: 10px 22px;
  border: 1px solid var(--raised-line);
  border-radius: 12px;
  background: var(--bg);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.16em;
  font-variant-numeric: tabular-nums;
}
.bar {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 300px;
  height: 56px;
  padding: 0 18px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--track);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
}
.bar-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 18%;
  background: var(--accent);
}
.bar-label,
.bar-done {
  position: relative;
}
.bar-done {
  display: none;
  align-items: center;
  gap: 10px;
  color: var(--text-2);
}
.bar-done::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--online);
}
/* Один-единственный анимированный момент: полоса доезжает до конца, и игра «запускается» */
.bar.run .bar-fill {
  width: 100%;
  transition: width 2.6s cubic-bezier(0.4, 0, 0.2, 1) 0.3s;
}
.bar.done .bar-fill {
  opacity: 0;
  transition: opacity 0.3s;
}
.bar.done .bar-label {
  display: none;
}
.bar.done .bar-done {
  display: inline-flex;
}

/* Сервер — как обложка в лаунчере */
.server {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 380px;
  border-radius: 22px;
  overflow: hidden;
  background: var(--card);
}
.server + .server {
  margin-top: 16px;
}
.server-art {
  position: absolute;
  inset: 0;
}
.server-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.server-art.fallback {
  background:
    radial-gradient(120% 90% at 85% 10%, rgb(232 69 122 / 0.45), transparent 60%),
    radial-gradient(90% 80% at 10% 100%, rgb(232 69 122 / 0.2), transparent 70%), #17191e;
}
.server::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgb(13 15 18 / 0.94) 0%, rgb(13 15 18 / 0.55) 42%, rgb(13 15 18 / 0) 75%);
}
.server-body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 36px 40px;
}
.server-name {
  margin: 0;
  font-size: clamp(44px, 6vw, 76px);
  line-height: 0.95;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.server-desc {
  max-width: 40em;
  margin: 0;
  color: var(--text-2);
}
.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}
.facts li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 12px;
  border: 1px solid rgb(255 255 255 / 0.14);
  border-radius: 10px;
  background: rgb(13 15 18 / 0.55);
  font-size: 14px;
  font-weight: 600;
}
.server-note {
  max-width: 44em;
  margin: 20px 0 0;
  color: var(--text-3);
}

/* Новости */
.news {
  margin: 0;
  padding: 0;
  list-style: none;
  max-width: 900px;
}
.news li {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 24px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.news li:last-child {
  border-bottom: 1px solid var(--line);
}
.news time {
  color: var(--muted);
  font-size: 15px;
  padding-top: 2px;
}
.news h3 {
  margin: 0 0 6px;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 700;
}
.news p {
  margin: 0;
  color: var(--text-3);
  white-space: pre-line;
}
.news a {
  display: inline-block;
  margin-top: 8px;
  font-weight: 600;
  text-underline-offset: 3px;
}

/* Вопросы */
.faq {
  max-width: 820px;
}
.faq details {
  border-top: 1px solid var(--line);
}
.faq details:last-child {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  position: relative;
  padding: 18px 44px 18px 0;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::before,
.faq summary::after {
  content: '';
  position: absolute;
  right: 6px;
  top: 50%;
  width: 14px;
  height: 2px;
  border-radius: 1px;
  background: var(--muted);
  transition: transform 0.2s;
}
.faq summary::after {
  transform: rotate(90deg);
}
.faq details[open] summary::after {
  transform: rotate(0deg);
}
.faq summary:hover::before,
.faq summary:hover::after {
  background: var(--text);
}
.faq details p {
  margin: 0 0 14px;
  max-width: 44em;
  color: var(--text-3);
}
.faq details > :last-child {
  margin-bottom: 20px;
}

/* Подвал */
.foot {
  margin-top: 40px;
  border-top: 1px solid var(--line);
}
.foot-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 32px;
  padding-block: 28px 36px;
  color: var(--muted);
  font-size: 14px;
}
.foot p {
  margin: 0;
}

/* ---------- Узкие экраны ---------- */
@media (max-width: 960px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
    padding-block: 48px 56px;
  }
  .step-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }
  .step p {
    max-width: none;
  }
}
@media (max-width: 720px) {
  body {
    font-size: 16px;
  }
  .wrap {
    padding-inline: 16px;
  }
  .nav {
    display: none;
  }
  .top-row {
    justify-content: space-between;
  }
  .lead {
    font-size: 17px;
  }
  .play {
    width: 100%;
  }
  .get {
    align-items: stretch;
  }
  .section-title {
    font-size: 30px;
  }
  .server {
    min-height: 340px;
  }
  .server-body {
    padding: 24px;
  }
  .news li {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }
  .steps,
  .server-section,
  .news-section,
  .faq-section {
    padding-block: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
