/* Неон лаунчера. Источник — оболочка лаунчера (src/styles.css, Layout A).
   Новые экраны сайта берут только эти токены, вторую палитру не заводим.

   Холст
   --bg       #07080d  страница
   --surface  #0b0d15  боковая панель, колонка вики
   --panel    #0e1019  карточка, плашка
   --panel-2  #141a2a  выбранная строка
   Сетка холста: 40×40 px, линия rgba(34, 228, 240, 0.045). Звёздный фон лаунчер не рисует.

   Текст
   --ink    #e9ecf5  основной
   --ink-2  #c5cbe0  вторичный, неактивные вкладки
   --muted  #9aa3bd  подписи
   Абзац под заголовком: #b8bfd6

   Цвета
   циан     #22e4f0  rgb(34, 228, 240)  линии, метки, активная вкладка, свечение заголовка
   маджента #ff3d8b  rgb(255, 61, 139)  одно главное действие на экране (скачать, играть)
   текст на мадженте: #0a0010
   --good #3cf08a  живая точка: ещё тень 0 0 8px rgba(60, 240, 138, 0.6)
   --bad  #ff6b81
   --warn #ffb36b

   Шрифты
   заголовок  Unbounded, вес 700
   текст      Exo 2
   служебное  JetBrains Mono, 11px, интервал 0.16em, верхний регистр, часто с префиксом //

   Углы. Радиуса нет.
   --cut    срез только сверху справа, 12px.
            polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%)
            Строки списка, двери вики, ссылки-плашки.
   --cut-2  срез сверху справа и снизу слева, 18px.
            polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px))
            Только главная кнопка.

   Состояния
   Активная вкладка: заливка цианом, текст --bg, тень 0 0 22px rgba(34, 228, 240, 0.25)
   Главная кнопка: заливка маджентой, текст #0a0010, --cut-2,
     тень 0 0 32px rgba(255, 61, 139, 0.45), наведение — та же тень 44px и сдвиг на 1px вверх
   Метка: рамка 1px циан, поля 3px 8px, моно 12px
   Карточка: --panel, рамка 1px --line, левый кант 2px циан
   Ссылка-плашка: рамка rgba(255, 61, 139, 0.6), фон rgba(255, 61, 139, 0.06), --cut
   Свечение заголовка: 0 0 24px rgba(34, 228, 240, 0.35)
   Выбранная строка: фон --panel-2 и внутренняя линия 1px rgba(34, 228, 240, 0.45)
   Рамки: --line #1f2333, сильнее --line-2 #2b3147
   Пустое место: пунктир 1px --line-2
*/
:root {
  --bg: #07080d;
  --surface: #0b0d15;
  --panel: #0e1019;
  --panel-2: #141a2a;
  --ink: #e9ecf5;
  --ink-2: #c5cbe0;
  --muted: #9aa3bd;
  --line: #1f2333;
  --line-2: #2b3147;
  --accent: #22e4f0;
  --accent-rgb: 34, 228, 240;
  --accent-2: #ff3d8b;
  --accent-2-rgb: 255, 61, 139;
  --good: #3cf08a;
  --bad: #ff6b81;
  --warn: #ffb36b;
  --top-h: 56px;
  --radius: 0px;
  --display: "LP Unbounded", "Segoe UI", sans-serif;
  --body: "LP Exo 2", "Segoe UI", sans-serif;
  --mono: "LP Mono", Consolas, monospace;
  --cut: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
  --cut-2: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
  --text-body: #b8bfd6;
  --on-act: #0a0010;
  --title-glow: 0 0 24px rgba(var(--accent-rgb), 0.35);
  --act-glow: 0 0 32px rgba(var(--accent-2-rgb), 0.45);
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(var(--accent-rgb), 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--accent-rgb), 0.045) 1px, transparent 1px);
  background-size: 40px 40px;
  color: var(--ink);
  font: 16px/1.5 var(--body);
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
.stars { display: none; }
.top, main { position: relative; z-index: 1; }
.top {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: stretch;
  gap: 28px;
  height: var(--top-h);
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(11, 13, 21, 0.86);
  backdrop-filter: blur(16px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 20px;
  color: var(--ink);
  text-shadow: 0 0 18px rgba(var(--accent-rgb), 0.35);
}
.brand img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(var(--accent-rgb), 0.3));
}
.top nav { display: flex; align-items: stretch; gap: 2px; flex: 1; }
.top nav a, .btn, .who button {
  border: 1px solid transparent;
  background: transparent;
  padding: 8px 12px;
  color: var(--muted);
  cursor: pointer;
}
/* Пункт шапки во всю высоту: подсветка снизу и полоса циана. */
.top nav a, .who > a, .who > button {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 18px;
  border: 0;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
  transition: color 0.15s ease, background-color 0.15s ease, text-shadow 0.15s ease;
}
.top nav a::after, .who > a::after, .who > button::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(var(--accent-rgb), 0.9), 0 0 28px rgba(var(--accent-rgb), 0.5);
  opacity: 0;
  transform: scaleX(0.4);
  transition: opacity 0.15s ease, transform 0.2s ease;
}
.top nav a:hover, .who > a:hover, .who > button:hover {
  color: var(--ink);
  background: linear-gradient(to top, rgba(var(--accent-rgb), 0.16), rgba(var(--accent-rgb), 0) 85%);
  text-shadow: 0 0 14px rgba(var(--accent-rgb), 0.6);
}
.top nav a:hover::after, .who > a:hover::after, .who > button:hover::after { opacity: 0.7; transform: scaleX(1); }
.top nav a.active, .top nav a.active:hover {
  color: var(--accent);
  background: linear-gradient(to top, rgba(var(--accent-rgb), 0.24), rgba(var(--accent-rgb), 0.04) 90%);
  text-shadow: 0 0 14px rgba(var(--accent-rgb), 0.7);
}
.top nav a.active::after { opacity: 1; transform: scaleX(1); }
.btn.primary {
  color: white;
  border-color: rgba(var(--accent-rgb), 0.55);
  background: rgba(var(--accent-rgb), 0.12);
}
.who { margin-left: auto; display: flex; align-items: stretch; gap: 2px; color: var(--muted); }
.who > a.account-btn { color: var(--accent); }
.account-btn {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: transparent;
  padding: 8px 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.82);
  cursor: pointer;
}
.view { min-height: calc(100vh - 56px); }
.landing-hero {
  min-height: calc(100vh - 70px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 24px 72px;
}
.landing-logo {
  width: 112px;
  height: 112px;
  object-fit: contain;
  filter: drop-shadow(0 0 28px rgba(var(--accent-rgb), 0.45));
}
.landing-hero h1 {
  margin: 18px 0 0;
  font-family: "Century Gothic", Bahnschrift, "Segoe UI", sans-serif;
  font-weight: 400;
  font-size: clamp(42px, 7vw, 76px);
  letter-spacing: 0.42em;
  line-height: 1;
  padding-left: 0.42em;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
}
.orbit-sub {
  margin: 14px 0 0;
  letter-spacing: 0.46em;
  text-transform: uppercase;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.38);
  padding-left: 0.46em;
}
.landing-hero .lede {
  max-width: 36rem;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 18px;
}
.kicker {
  margin: 0 0 12px;
  font-family: var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 11px;
  color: var(--accent);
}
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.account { max-width: 440px; margin: 0 auto; padding: 72px 28px; }
.account h2 { margin: 0 0 18px; font-size: 36px; font-weight: 500; }
.account-line { margin: 18px 0 8px; color: var(--muted); }
.account-line strong { color: var(--ink); font-weight: 550; }
.account .hint { color: var(--muted); font-size: 14px; }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
  justify-content: center;
}
.play-btn {
  min-width: 240px;
  padding: 16px 28px;
  font-size: 18px;
  letter-spacing: 0.04em;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35), 0 0 24px rgba(var(--accent-rgb), 0.18);
}
.btn.ghost { color: rgba(255, 255, 255, 0.72); }
.pitch {
  padding: 88px 8vw 48px;
  display: grid;
  gap: 36px;
}
.pitch h2 {
  max-width: 16ch;
  margin: 8px 0 0;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.pitch-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.pitch-grid article {
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.pitch-grid h3 { margin: 0 0 8px; font-size: 18px; font-weight: 550; }
.pitch-grid p { margin: 0; color: var(--muted); }
.landing-foot {
  display: flex;
  gap: 22px;
  padding: 22px 8vw 32px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}
.landing-foot a:hover { color: white; }
@media (max-width: 900px) {
  .pitch-grid { grid-template-columns: 1fr; }
}
.browser {
  height: calc(100vh - 62px);
  display: grid;
  grid-template-columns: 1fr 300px;
}
.stage {
  display: flex;
  align-items: flex-end;
  padding: 36px;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(40, 60, 90, 0.35), transparent 50%),
    #07080c;
}
.stage.theme-plain { background: #0c0d12; }
.stage h2 {
  margin: 8px 0;
  font-size: 52px;
  font-weight: 500;
  letter-spacing: 0.08em;
}
.stage p { margin: 0 0 16px; color: var(--muted); }
.rail {
  border-left: 1px solid var(--line);
  background: rgba(5, 6, 8, 0.92);
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.rail-head, .list-head {
  padding: 16px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 11px;
  color: var(--muted);
}
.list-head { display: flex; justify-content: space-between; align-items: center; padding: 0 0 12px; }
.rail-scroll, #mine-list { overflow: auto; padding: 0 8px 16px; }
.server, .mine-item {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 10px;
  text-align: left;
  padding: 10px 12px;
  margin-bottom: 4px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
}
.server.current, .mine-item.current { background: rgba(var(--accent-rgb), 0.12); }
.server small, .mine-item small { grid-column: 1; color: var(--muted); font-size: 12px; }
.live { color: var(--good); }
.mine {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  padding: 28px;
}
form { display: flex; flex-direction: column; gap: 14px; max-width: 720px; }
label { display: flex; flex-direction: column; gap: 6px; color: var(--muted); font-size: 13px; }
input, select, textarea {
  background: #101218;
  border: 1px solid var(--line);
  padding: 10px;
}
.row { display: grid; grid-template-columns: 1fr 180px; gap: 12px; }
.error { color: var(--bad); margin: 0; }
.token-box { border-top: 1px solid var(--line); padding-top: 12px; }
code { color: var(--accent); }
.btn.danger { color: var(--bad); border-color: rgba(224, 122, 122, 0.45); }
@media (max-width: 900px) {
  .steps, .browser, .mine, .row { grid-template-columns: 1fr; }
  h1 { font-size: 40px; }
  .browser { height: auto; }
  .stage { min-height: 420px; }
}

/* Text-only button, e.g. "Забыл пароль?" under the login form. */
.link-btn {
  align-self: flex-start;
  margin-top: 10px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.link-btn:hover { text-decoration: underline; }

/* form, label and .actions set display: flex, which would override the hidden attribute. */
[hidden] { display: none !important; }

/* One-time code for linking a BYOND key in game. */
.link-code { margin-top: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; }
.link-code code { font-size: 22px; letter-spacing: 0.12em; color: var(--ink); user-select: all; }

/* Server form: list of addresses, checkbox row, moderation line. */
.routes { border: 1px solid var(--line); padding: 12px 14px; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.routes legend { color: var(--muted); font-size: 13px; padding: 0 6px; }
.route-row { display: grid; grid-template-columns: 150px 1fr 100px auto; gap: 8px; align-items: center; }
.route-row button { border: 0; background: none; color: var(--bad); cursor: pointer; padding: 6px; }
.routes .link-btn { margin-top: 0; }
label.check { flex-direction: row; align-items: center; gap: 8px; }
textarea { resize: vertical; }
.state-line { margin: 0; padding: 10px 12px; border: 1px solid var(--line); color: var(--muted); }
.state-line.approved { color: var(--good); border-color: rgba(111, 219, 154, 0.35); }
.state-line.rejected, .state-line.hidden-state { color: var(--bad); border-color: rgba(231, 160, 160, 0.35); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.tags span { font-size: 12px; padding: 2px 8px; border: 1px solid var(--line); color: var(--muted); }
.stage-links { display: flex; gap: 14px; margin-bottom: 12px; }
.stage-links a { color: var(--accent); }

/* Admin panel. */
.admin { padding: 28px; max-width: 1100px; }
.admin h2 { font-weight: 500; letter-spacing: 0.06em; margin: 8px 0 14px; }
.admin-filter { display: flex; gap: 6px; margin-bottom: 12px; }
.admin-filter button { border: 1px solid var(--line); background: transparent; padding: 6px 12px; color: var(--muted); cursor: pointer; }
.admin-filter button.current { color: white; border-color: rgba(var(--accent-rgb), 0.55); background: rgba(var(--accent-rgb), 0.12); }
.admin-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 32px; }
.admin-item { border: 1px solid var(--line); padding: 12px 14px; display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; align-items: start; }
.admin-item small { color: var(--muted); display: block; }
.admin-item .actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.admin-item .btn { padding: 5px 10px; font-size: 13px; border-color: var(--line); }
.admin-search { flex-direction: row; max-width: 520px; margin-bottom: 12px; }
.admin-search input { flex: 1; }
.badge { font-size: 11px; padding: 1px 6px; border: 1px solid rgba(var(--accent-rgb), 0.5); color: var(--accent); margin-left: 6px; }
@media (max-width: 900px) {
  .route-row { grid-template-columns: 1fr 1fr; }
  .admin-item { grid-template-columns: 1fr; }
}

/* Server page editor (page-editor.js). */
.mine-main { display: flex; flex-direction: column; gap: 32px; min-width: 0; }
.page-editor { border-top: 1px solid var(--line); padding-top: 20px; }
.pe-head h2 { font-weight: 500; letter-spacing: 0.06em; margin: 0 0 4px; }
.pe-head .hint { color: var(--muted); font-size: 13px; margin: 0 0 16px; }
.page-editor .actions { display: flex; align-items: center; gap: 12px; }
.mine-tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); }
.mine-tabs button { border: 1px solid transparent; border-bottom: 0; background: transparent; padding: 10px 16px; color: var(--muted); cursor: pointer; margin-bottom: -1px; }
.mine-tabs button.current { color: white; border-color: var(--line); background: var(--bg); }
.mine-main .page-editor { border-top: 0; padding-top: 0; }
.mine-main { gap: 20px; }
.list-head button { border: 1px solid var(--line); background: transparent; color: var(--muted); padding: 4px 12px; cursor: pointer; }
.list-head button:hover { color: white; border-color: rgba(var(--accent-rgb), 0.55); }

/* Launcher preview in the page editor: the launcher window (src/styles.css, layout A)
   at its real size, scaled down by page-editor.js. Fonts are the launcher's own. */
@font-face { font-family: "LP Exo 2"; src: url("/media/exo-2-cyrillic.woff2") format("woff2"); font-weight: 100 900; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "LP Exo 2"; src: url("/media/exo-2-latin.woff2") format("woff2"); font-weight: 100 900; unicode-range: U+0000-00FF, U+2000-206F, U+2116, U+2190-21FF; }
@font-face { font-family: "LP Unbounded"; src: url("/media/unbounded-cyrillic.woff2") format("woff2"); font-weight: 200 900; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "LP Unbounded"; src: url("/media/unbounded-latin.woff2") format("woff2"); font-weight: 200 900; unicode-range: U+0000-00FF, U+2000-206F, U+2116; }
@font-face { font-family: "LP Mono"; src: url("/media/jetbrains-mono-cyrillic.woff2") format("woff2"); font-weight: 100 800; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "LP Mono"; src: url("/media/jetbrains-mono-latin.woff2") format("woff2"); font-weight: 100 800; unicode-range: U+0000-00FF, U+2000-206F, U+2116; }


.lp {
  --accent: #22e4f0; --accent-rgb: 34, 228, 240; --accent-2: #ff3d8b; --accent-2-rgb: 255, 61, 139; --bg: #07080d;
  --surface: #0b0d15; --panel: #0e1019; --panel-2: #141a2a; --line: #1f2333; --line-2: #2b3147;
  --ink: #e9ecf5; --ink-2: #c5cbe0; --muted: #9aa3bd; --good: #3cf08a;
  --display: "LP Unbounded", "LP Exo 2", sans-serif; --body: "LP Exo 2", "Segoe UI", sans-serif; --mono: "LP Mono", Consolas, monospace;
  --cut: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
  --cut-2: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
  position: absolute; top: 0; left: 0;
  width: 1264px; min-height: 821px;
  display: flex;
  transform-origin: 0 0;
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(var(--accent-rgb), 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--accent-rgb), 0.045) 1px, transparent 1px);
  background-size: 40px 40px;
  font: 15px/1.4 var(--body);
  color: var(--ink);
  text-align: left;
  pointer-events: none;
  user-select: none;
}
.lp * { box-sizing: border-box; }
.lp p, .lp h1, .lp h2 { margin: 0; }

.lp-side { width: 256px; flex: 0 0 256px; display: flex; flex-direction: column; gap: 22px; padding: 22px 14px 16px; background: var(--surface); border-right: 1px solid var(--line); }
.lp-brand { display: flex; align-items: center; gap: 10px; padding: 0 8px; color: var(--accent); }
.lp-mark { width: 60px; height: 60px; margin: -12px 0 -12px -4px; }
.lp-brand { gap: 8px; padding: 0 4px; }
.lp-brand-name { font-family: "LP Unbounded", "LP Exo 2", sans-serif; font-weight: 700; font-size: 15px; letter-spacing: 0.18em; color: var(--ink); }
.lp-section { display: flex; flex-direction: column; gap: 8px; }
.lp-label { padding: 0 8px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.lp-list { display: flex; flex-direction: column; gap: 6px; }
.lp-server { display: flex; align-items: center; gap: 12px; padding: 10px 12px; clip-path: var(--cut); }
.lp-server.active { background: var(--panel-2); box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), 0.45); }
.lp-server-icon { width: 40px; height: 40px; flex: 0 0 40px; display: grid; place-items: center; background: var(--bg); font-family: var(--display); font-weight: 700; font-size: 16px; color: var(--accent); }
.lp-server-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.lp-server-name { font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-server-meta { display: flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.lp-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--line-2); flex: 0 0 7px; }
.lp-dot.live { background: var(--good); box-shadow: 0 0 8px rgba(60, 240, 138, 0.6); }
.lp-add { padding: 11px 12px; border: 1px dashed var(--line-2); color: var(--muted); font-size: 14px; white-space: pre; }
.lp-spacer { flex: 1 1 auto; }
.lp-account { display: flex; align-items: center; gap: 12px; padding: 12px; background: var(--panel); border: 1px solid var(--line); }
.lp-avatar { width: 36px; height: 36px; flex: 0 0 36px; display: grid; place-items: center; background: var(--accent-2); color: #0a0010; font-weight: 700; overflow: hidden; }
.lp-avatar img { width: 36px; height: 36px; object-fit: cover; }
.lp-chip-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lp-chip-name { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-chip-sub { font-family: var(--mono); font-size: 11px; color: var(--muted); }

.lp-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.lp-tabs { display: flex; gap: 4px; padding: 20px 40px 0; }
.lp-tab { padding: 11px 18px; font-weight: 600; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }
.lp-tab.active { color: var(--bg); background: var(--accent); box-shadow: 0 0 22px rgba(var(--accent-rgb), 0.25); }
.lp-stage { flex: 1 1 auto; display: flex; flex-direction: column; gap: 28px; padding: 24px 40px 24px; }
.lp-top { display: flex; gap: 32px; align-items: flex-start; }
.lp-hero { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.lp-tags { display: flex; flex-wrap: wrap; gap: 8px; min-height: 22px; }
.lp-tag { padding: 3px 8px; border: 1px solid var(--accent); color: var(--accent); font-family: var(--mono); font-size: 12px; }
.lp-tag.alt { border-color: var(--accent-2); color: var(--accent-2); }
.lp-title { font-family: var(--display); font-weight: 700; font-size: 76px; line-height: 0.95; letter-spacing: 0.04em; color: var(--ink); text-shadow: 0 0 24px rgba(var(--accent-rgb), 0.35); overflow-wrap: anywhere; }
.lp-sub { max-width: 460px; font-size: 16px; line-height: 1.5; color: #b8bfd6; }
.lp-play-row { display: flex; gap: 12px; align-items: stretch; margin-top: 6px; }
.lp-play { display: flex; flex-direction: column; justify-content: center; gap: 2px; min-height: 76px; padding: 14px 36px; background: var(--accent-2); clip-path: var(--cut-2); box-shadow: 0 0 32px rgba(var(--accent-2-rgb), 0.45); }
.lp-play strong { font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: 0.06em; text-transform: uppercase; color: #0a0010; }
.lp-play small { font-family: var(--mono); font-size: 12px; font-weight: 600; color: rgba(10, 0, 16, 0.78); }
.lp-route { min-width: 190px; display: flex; flex-direction: column; justify-content: center; gap: 3px; padding: 10px 16px; border: 1px solid var(--line-2); background: var(--panel); }
.lp-route-label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.lp-route-line { display: flex; align-items: center; gap: 8px; }
.lp-route-name { font-size: 15px; font-weight: 600; }
.lp-route-ms { font-family: var(--mono); font-size: 12px; color: var(--good); }
.lp-refresh { width: 48px; display: grid; place-items: center; border: 1px solid var(--line-2); background: var(--panel); color: var(--ink-2); font-size: 18px; }

.lp-status { width: 330px; flex: 0 0 330px; display: flex; flex-direction: column; gap: 14px; padding: 18px; border: 1px solid var(--line); background: rgba(14, 16, 25, 0.92); }
.lp-status-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.lp-status-title { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.lp-badge { padding: 4px 10px; border: 1px solid rgba(var(--accent-rgb), 0.55); color: var(--accent); font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; max-width: 150px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.lp-stat { display: flex; flex-direction: column; gap: 4px; padding: 12px; background: var(--bg); min-width: 0; }
.lp-stat-k { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.lp-stat-v { font-family: var(--mono); font-size: 15px; font-weight: 600; line-height: 1.25; overflow-wrap: anywhere; }
.lp-stat-v.big { font-size: 26px; color: var(--accent); }
.lp-status-note { font-size: 12px; color: var(--muted); }

.lp-page { display: flex; flex-direction: column; gap: 22px; }
.lp-block-title { margin: 0 0 10px; font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.lp-text { margin: 0 0 10px; max-width: 760px; font-size: 15px; line-height: 1.55; color: var(--ink-2); white-space: pre-line; }
.lp-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.lp-card { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; background: var(--panel); border: 1px solid var(--line); border-left: 2px solid var(--accent); }
.lp-card strong { font-family: var(--display); font-size: 13px; font-weight: 600; letter-spacing: 0.04em; }
.lp-card span { font-size: 14px; line-height: 1.45; color: var(--muted); white-space: pre-line; }
.lp-links { display: flex; flex-wrap: wrap; gap: 8px; }
.lp-link { padding: 8px 14px; border: 1px solid rgba(var(--accent-2-rgb), 0.6); background: rgba(var(--accent-2-rgb), 0.06); color: var(--accent-2); font-size: 14px; clip-path: var(--cut); }

.lp-news { display: flex; flex-direction: column; gap: 12px; }
.lp-news-head { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.lp-news-all { color: var(--accent); letter-spacing: 0; text-transform: none; }
.lp-news-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.lp-news-card { display: flex; flex-direction: column; gap: 8px; padding: 16px; background: var(--panel); border: 1px solid var(--line); }
.lp-news-meta { font-family: var(--mono); font-size: 11px; color: var(--accent-2); }
.lp-news-card p { font-size: 14px; line-height: 1.45; color: var(--muted); }

.lp-footer { margin: 0 40px; height: 48px; flex: 0 0 48px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); }
.lp-footer-tools { display: flex; gap: 22px; padding-left: 16px; font-size: 13px; color: var(--muted); }
.lp-version { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.lp-brand-text { display: inline-flex; flex-direction: column; gap: 3px; line-height: 1; }
.lp-brand-sub { align-self: flex-start; font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: 0.4em; margin-right: -0.4em; color: var(--accent); }

/* ----- page constructor (page-editor.js) ----- */
.mine.is-page { grid-template-columns: minmax(0, 1fr); }
.mine.is-page > aside { display: none; }
.page-editor .pe-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 12px; }
.page-editor .pe-head .hint { max-width: 760px; margin: 0; }
.pe-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.pe-dirty { color: #ffcf7a !important; }
.pe-tool { min-width: 32px; height: 32px; padding: 0 8px; border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; font-size: 15px; }
.pe-tool:hover:not(:disabled) { border-color: rgba(var(--accent-rgb), 0.6); }
.pe-tool:disabled { opacity: 0.3; cursor: default; }
.pe-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.pe-toolbar-label { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.pe-add { display: flex; flex-wrap: wrap; gap: 6px; flex: 1 1 auto; }
.pe-add-btn { padding: 6px 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); color: var(--ink); cursor: pointer; font-size: 13px; }
.pe-add-btn:hover:not(:disabled) { border-color: rgba(var(--accent-rgb), 0.6); background: rgba(var(--accent-rgb), 0.08); }
.pe-add-btn.is-system { border-style: dashed; color: var(--muted); }
.pe-add-btn:disabled { opacity: 0.4; cursor: default; }
.pe-check { flex-direction: row; align-items: center; gap: 6px; color: var(--ink); font-size: 13px; cursor: pointer; }
.pe-check input { width: auto; padding: 0; }
.pe-work { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
.pe-canvas { min-width: 0; position: sticky; top: 76px; }
.pe-preview { position: relative; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 18px 60px rgba(0, 0, 0, 0.5); }
.pe-inspector { display: flex; flex-direction: column; gap: 10px; max-height: calc(100vh - 100px); overflow-y: auto; position: sticky; top: 76px; padding-right: 4px; }
.pe-ins-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding-bottom: 6px; }
.pe-ins-head strong { font-size: 15px; letter-spacing: 0.04em; color: var(--accent); }
.pe-ins-head .pe-hint { flex-basis: 100%; }
.pe-ins-tools { display: flex; gap: 4px; margin-left: auto; }
.pe-link { border: 0; background: none; color: var(--muted); cursor: pointer; padding: 0; font-size: 12px; }
.pe-link:hover { color: var(--ink); }
.pe-sec { border: 1px solid var(--line); padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 10px; background: rgba(255, 255, 255, 0.015); }
.pe-sec h3 { margin: 0; font-size: 11px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.pe-sec h3:empty { display: none; }
.pe-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; align-items: end; }
.pe-field { gap: 4px; min-width: 0; }
.pe-label { font-size: 12px; color: var(--muted); }
.pe-field input, .pe-field select, .pe-field textarea { width: 100%; box-sizing: border-box; padding: 7px 8px; font-size: 13px; color: var(--ink); }
.pe-field textarea { resize: vertical; font-family: inherit; line-height: 1.4; }
.pe-hint { font-size: 11px; line-height: 1.4; color: var(--muted); margin: 0; }
.pe-warn { font-size: 12px; color: #ffcf7a; margin: 0; }
.pe-wide { width: 100%; }
.pe-seg { display: flex; border: 1px solid var(--line); }
.pe-seg button { flex: 1; padding: 6px 0; border: 0; border-right: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; font-size: 13px; }
.pe-seg button:last-child { border-right: 0; }
.pe-seg button.current { background: rgba(var(--accent-rgb), 0.16); color: var(--ink); }
.pe-color { display: flex; align-items: center; gap: 6px; }
.pe-color input[type="color"] { width: 38px; height: 30px; padding: 2px; flex: 0 0 38px; cursor: pointer; }
.pe-color input[type="range"] { flex: 1 1 auto; min-width: 40px; padding: 0; }
.pe-color.is-default input { opacity: 0.35; }
.pe-clear { border: 1px solid var(--line); background: transparent; color: var(--muted); width: 26px; height: 26px; cursor: pointer; flex: 0 0 26px; }
.pe-presets { display: flex; flex-wrap: wrap; gap: 6px; }
.pe-preset { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: transparent; padding: 6px 10px; cursor: pointer; color: var(--muted); }
.pe-preset.current { color: white; border-color: rgba(var(--accent-rgb), 0.6); background: rgba(var(--accent-rgb), 0.12); }
.pe-swatch { width: 16px; height: 16px; border: 2px solid; }
.pe-layers { display: flex; flex-direction: column; gap: 2px; max-height: 260px; overflow-y: auto; }
.pe-layer { display: flex; gap: 8px; align-items: baseline; padding: 6px 8px; border: 1px solid transparent; background: transparent; color: var(--ink); cursor: pointer; text-align: left; font-size: 13px; }
.pe-layer:hover { border-color: var(--line); }
.pe-layer.is-hidden { opacity: 0.45; }
.pe-layer-type { flex: 0 0 auto; color: var(--accent); font-size: 12px; }
.pe-layer-text { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pe-items { display: flex; flex-direction: column; gap: 10px; }
.pe-item { display: flex; flex-direction: column; gap: 6px; padding: 8px; border: 1px solid var(--line); }
.pe-item-tools { display: flex; gap: 4px; align-items: center; }
.pe-item-n { flex: 1; font-size: 12px; color: var(--muted); }
.pe-item-tools .pe-tool { min-width: 26px; height: 26px; font-size: 13px; }
@media (max-width: 1200px) {
  .pe-work { grid-template-columns: minmax(0, 1fr); }
  .pe-canvas, .pe-inspector { position: static; max-height: none; }
}

/* Canvas: the launcher frame becomes interactive, cells get outlines and handles. */
.pe-preview .lp { pointer-events: auto; }
.pe-preview .lp.no-nebula { background-image: none; }
.lp-play-part { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.opg-cell[data-align="center"] .lp-play-part { align-items: center; }
.opg-cell[data-align="right"] .lp-play-part { align-items: flex-end; }
.lp-route-picker { display: flex; gap: 8px; align-items: stretch; }
.lp-play-row { flex-wrap: wrap; margin-top: 0; }
.lp-last-line { font-family: var(--mono); font-size: 13px; color: var(--muted); opacity: 0.6; }
.pe-placeholder { opacity: 0.4; border-style: dashed !important; }
.opg-edit .opg-cell { cursor: move; outline: 1px dashed rgba(255, 255, 255, 0.1); outline-offset: 2px; }
.opg-edit .opg-cell * { pointer-events: none; }
.opg-edit .opg-cell:hover { outline-color: rgba(var(--accent-rgb), 0.55); }
.opg-edit .opg-cell.is-hidden { opacity: 0.3; }
.opg-edit .opg-cell.pe-selected { outline: 2px solid var(--accent); outline-offset: 2px; }
.opg-edit.pe-lines {
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.018) calc(100% - 8px), transparent calc(100% - 8px)),
    linear-gradient(to bottom, transparent 17px, rgba(255, 255, 255, 0.03) 17px);
  background-size: calc((100% + 8px) / 24) 100%, 100% 18px;
}
.pe-handle { position: absolute; width: 14px; height: 14px; background: var(--accent); border: 2px solid #05060a; pointer-events: auto !important; z-index: 5; }
.pe-h-n, .pe-h-s { left: calc(50% - 7px); cursor: ns-resize; }
.pe-h-e, .pe-h-w { top: calc(50% - 7px); cursor: ew-resize; }
.pe-h-n { top: -9px; }
.pe-h-s { bottom: -9px; }
.pe-h-e { right: -9px; }
.pe-h-w { left: -9px; }
.pe-h-ne { top: -9px; right: -9px; cursor: nesw-resize; }
.pe-h-sw { bottom: -9px; left: -9px; cursor: nesw-resize; }
.pe-h-nw { top: -9px; left: -9px; cursor: nwse-resize; }
.pe-h-se { bottom: -9px; right: -9px; cursor: nwse-resize; }
.pe-badge { position: absolute; left: -2px; top: -34px; padding: 4px 8px; background: var(--accent); color: #05060a; font: 600 13px/1 var(--mono); white-space: nowrap; z-index: 6; }
.pe-fold { position: absolute; left: 256px; right: 0; top: 773px; border-top: 2px dashed rgba(255, 207, 122, 0.45); padding: 4px 40px; font: 13px var(--mono); color: rgba(255, 207, 122, 0.7); pointer-events: none; z-index: 50; }
.lp-server.pe-pick { cursor: pointer; }
.lp-server.pe-pick * { pointer-events: none; }
.lp-server.pe-pick:hover { outline: 1px dashed rgba(var(--accent-rgb), 0.6); }
.lp-server.pe-picked { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Компоненты брендбука. Раскладка — DESIGN.md, образцы — /brand.html.
   .type-display заголовок, .type-body абзац, .type-meta подпись.
   .btn.play-btn одно малиновое действие. .btn.guide-btn тихий вход. */
.type-display {
  font-family: var(--display);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-shadow: var(--title-glow);
}
.type-body {
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text-body);
}
.type-meta {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* Главная: сверху две равные колонки, снизу полоса кнопок. */
.landing {
  max-width: 1320px;
  margin: 0 auto;
  padding: 56px 28px 72px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.landing-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.landing-block {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 40px;
  background: var(--panel);
  border: 1px solid var(--line);
  clip-path: var(--cut);
}
.landing-block .kicker { margin: 0 0 16px; color: var(--accent); }
.landing-about h1 {
  margin: 0;
  font-size: clamp(48px, 5.4vw, 76px);
}
.landing-play h2 {
  margin: 0;
  font-size: clamp(32px, 3.4vw, 44px);
}
.landing-block .landing-lede { max-width: 44ch; margin: 20px 0 0; }
.landing-top .landing-block { min-height: 380px; }
.landing-facts {
  width: 100%;
  margin: auto 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.landing-facts dt { margin: 0 0 6px; color: var(--muted); }
.landing-facts dd { margin: 0; color: var(--ink); font-size: 16px; font-weight: 600; }
.wiki-mark { display: block; color: inherit; }
.wiki-mark .kicker { margin: 0 0 8px; }
.landing-wiki h2, .wiki-head h2 {
  margin: 0;
  font-size: clamp(52px, 6vw, 84px);
}
.landing-lede, .wiki-lede {
  max-width: 46ch;
  margin: 0;
}
.wiki-doors {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.wiki-group {
  margin: 16px 0 0;
  color: var(--muted);
}
.wiki-group:first-child { margin-top: 0; }
.wiki-door {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent);
  background: var(--panel);
  color: var(--ink);
  clip-path: var(--cut);
}
.wiki-door:hover {
  border-color: rgba(var(--accent-rgb), 0.55);
  background-color: rgba(var(--accent-rgb), 0.06);
}
.wiki-door-code {
  flex: 0 0 auto;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
}
.wiki-door-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.wiki-door-text strong { font-weight: 600; font-size: 15px; }
.wiki-door-text small {
  color: var(--text-body);
  font-size: 14px;
  line-height: 1.45;
}
.landing-play {
  background:
    radial-gradient(ellipse at 85% 15%, rgba(var(--accent-rgb), 0.10), transparent 50%),
    radial-gradient(ellipse at 90% 95%, rgba(var(--accent-2-rgb), 0.08), transparent 45%),
    var(--panel);
}
.landing-play .landing-logo {
  position: absolute;
  top: 28px;
  right: 32px;
  width: 88px;
  height: 88px;
  object-fit: contain;
  filter: drop-shadow(0 0 18px rgba(var(--accent-rgb), 0.35));
}
.landing-play .play-btn { margin-top: auto; }
.landing-note { margin: 14px 0 0; color: var(--muted); }
.landing-play .landing-lede { margin-bottom: 28px; }
.landing-needs { padding: 28px 40px 32px; }
.need-cards {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 12px;
}
.need-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  border: 1px solid var(--line-2);
  border-left: 2px solid var(--accent);
  background: var(--surface);
  color: var(--ink);
  clip-path: var(--cut);
}
.need-card:hover {
  border-color: rgba(var(--accent-rgb), 0.55);
  background-color: rgba(var(--accent-rgb), 0.06);
}
.need-code {
  flex: 0 0 auto;
  padding-top: 4px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
}
.need-text { display: flex; flex-direction: column; gap: 4px; }
.need-text strong {
  font-family: var(--display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.need-text small { color: var(--text-body); font-size: 14px; line-height: 1.45; }
.btn.play-btn, .btn.guide-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1;
}
.btn.play-btn {
  min-width: 260px;
  min-height: 76px;
  padding: 14px 36px;
  border: 0;
  background: var(--accent-2);
  color: var(--on-act);
  font-family: var(--display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  clip-path: var(--cut-2);
  box-shadow: var(--act-glow);
}
.btn.play-btn:hover {
  color: #0a0010;
  transform: translateY(-1px);
  box-shadow: 0 0 44px rgba(var(--accent-2-rgb), 0.6);
}
.btn.guide-btn {
  min-height: 52px;
  padding: 12px 22px;
  border: 1px solid rgba(var(--accent-rgb), 0.55);
  background: transparent;
  color: var(--ink);
  font-family: var(--display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  clip-path: var(--cut);
}
.btn.guide-btn:hover {
  color: var(--ink);
  background-color: rgba(var(--accent-rgb), 0.08);
  transform: translateY(-1px);
}
.orbit-note {
  margin: 14px 0 0;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.wiki { max-width: 980px; margin: 0 auto; padding: 48px 28px 80px; }
.wiki-head { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-bottom: 22px; }
.wiki-head .kicker { margin: 0; }
.wiki-back {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
}
.wiki-back:hover { text-decoration: underline; }
.wiki-pending {
  max-width: 62ch;
  margin: 0 0 18px;
  color: var(--ink-2);
}
.wiki-legacy {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid rgba(var(--accent-rgb), 0.55);
  background: transparent;
  color: var(--accent);
  clip-path: var(--cut);
}
.wiki-legacy:hover { background-color: rgba(var(--accent-rgb), 0.08); }
.guide { max-width: 760px; margin: 0 auto; padding: 48px 28px 80px; }
.guide .wiki-back { display: inline-block; margin-bottom: 18px; }
.guide .kicker { margin: 0 0 8px; }
.guide h2 { margin: 0 0 12px; font-size: clamp(48px, 6vw, 76px); }
.guide h3 { margin: 36px 0 12px; color: var(--accent); }
.guide p, .guide-steps p, .guide-rule p {
  max-width: 62ch;
  margin: 0 0 14px;
  color: var(--text-body);
  font-size: 16px;
  line-height: 1.55;
}
.guide-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.guide-steps li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent);
}
.guide-steps span {
  flex: 0 0 auto;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  padding-top: 3px;
}
.guide-steps strong { display: block; font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.guide-steps p { margin: 0; }
.guide-rule {
  max-width: 62ch;
  margin: 0 0 14px;
  padding: 16px 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent-2);
}
.guide-rule strong {
  display: block;
  margin-bottom: 8px;
  font-family: var(--display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink);
}
.guide-rule p { margin: 0; }
.guide .wiki-legacy { margin-bottom: 8px; }
.guide-links { display: flex; flex-wrap: wrap; gap: 8px; }
.guide-links a {
  padding: 8px 14px;
  border: 1px solid rgba(var(--accent-rgb), 0.55);
  color: var(--accent);
  clip-path: var(--cut);
}
.guide-links a:hover { background-color: rgba(var(--accent-rgb), 0.08); }

/* Кант на срезе: clip-path отрезает рамку вместе с углом, поэтому скос
   дорисовывается фоном. --edge = цвет рамки элемента. */
.landing-block, .wiki-door, .need-card, .btn.guide-btn, .wiki-legacy, .guide-links a, .lp-link, .lp-server.active, .rm-nav {
  --edge: var(--line);
  background-image: linear-gradient(to bottom left, transparent 50%, var(--edge) 50%, var(--edge) calc(50% + 1px), transparent calc(50% + 1px));
  background-size: 12px 12px;
  background-position: top right;
  background-repeat: no-repeat;
  background-origin: border-box;
}
.need-card { --edge: var(--line-2); }
.need-card.is-wip { opacity: 0.55; cursor: default; }
.need-card.is-wip:hover { border-color: var(--line-2); border-left-color: var(--accent); background-color: var(--surface); --edge: var(--line-2); }
.wip-tag {
  margin-left: 8px;
  padding: 2px 6px;
  border: 1px solid var(--line-2);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.16em;
  color: var(--muted);
  vertical-align: middle;
}
.btn.guide-btn, .wiki-legacy, .guide-links a { --edge: rgba(var(--accent-rgb), 0.55); }
.lp-link { --edge: rgba(var(--accent-2-rgb), 0.6); }
.lp-server.active { --edge: rgba(var(--accent-rgb), 0.45); }
.wiki-door:hover, .need-card:hover { --edge: rgba(var(--accent-rgb), 0.55); }
.landing-block.landing-play {
  background-image:
    linear-gradient(to bottom left, transparent 50%, var(--edge) 50%, var(--edge) calc(50% + 1px), transparent calc(50% + 1px)),
    radial-gradient(ellipse at 85% 15%, rgba(var(--accent-rgb), 0.10), transparent 50%),
    radial-gradient(ellipse at 90% 95%, rgba(var(--accent-2-rgb), 0.08), transparent 45%);
  background-size: 12px 12px, auto, auto;
  background-position: top right, 0 0, 0 0;
  background-repeat: no-repeat;
  background-origin: border-box, padding-box, padding-box;
}
@media (max-width: 900px) {
  .guide { padding: 32px 20px 64px; }
}

/* Статьи вики и роадмап. */
.art-note {
  max-width: 62ch;
  margin: 0 0 8px;
  padding: 12px 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent);
  color: var(--ink-2);
  font-size: 15px;
}
.article { max-width: 760px; margin-bottom: 36px; }
.article h3 { margin: 36px 0 12px; color: var(--accent); }
.article p, .art-list li {
  max-width: 62ch;
  color: var(--text-body);
  font-size: 16px;
  line-height: 1.55;
}
.article p { margin: 0 0 14px; }
.article b, .article strong { color: var(--ink); font-weight: 600; }
.article .guide-steps p, .article .guide-rule p { margin: 0; }
.article .guide-rule { margin: 0 0 14px; }
.art-link { color: var(--accent); }
.art-link:hover { text-decoration: underline; }
.art-list { margin: 0 0 14px; padding-left: 20px; }
.art-list li { margin-bottom: 6px; }
.art-list li::marker { color: var(--accent); }
.art-table { margin: 0 0 14px; overflow-x: auto; border: 1px solid var(--line); background: var(--panel); }
.art-table table { width: 100%; border-collapse: collapse; font-size: 15px; }
.art-table th {
  padding: 10px 14px;
  text-align: left;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--line-2);
}
.art-table td {
  padding: 10px 14px;
  vertical-align: top;
  color: var(--text-body);
  border-top: 1px solid var(--line);
  line-height: 1.45;
}
.art-table td:first-child { color: var(--ink); font-weight: 600; }
.art-table tbody tr:first-child td { border-top: 0; }
.art-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 8px; margin: 0 0 14px; }
.art-card {
  padding: 16px 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent);
}
.art-card .type-meta { margin: 0 0 6px; color: var(--accent); }
.art-card > strong {
  display: block;
  margin-bottom: 10px;
  font-family: var(--display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.art-card p { margin: 0 0 8px; font-size: 15px; }
.art-card p:last-child { margin-bottom: 0; }

.faction-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 148px;
  margin: 0 0 14px;
}
.faction-logo img {
  display: block;
  max-width: 100%;
  max-height: 148px;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Статьи Кромки: оглавление слева, статья справа. На узком экране оглавление — строка с прокруткой. */
.wiki:has(.kromka-layout) { max-width: 1320px; }
.kromka-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}
.kromka-main { min-width: 0; }
.kromka-toc {
  position: sticky;
  top: calc(var(--top-h) + 28px);
  display: flex;
  flex-direction: column;
  padding-top: 4px;
  border-left: 1px solid var(--line-2);
}
.kromka-toc-title { margin: 0 0 10px; padding-left: 18px; color: var(--muted); }
.kromka-toc a {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-left: -1px;
  padding: 8px 12px 8px 17px;
  border-left: 2px solid transparent;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.3;
  transition: color 0.15s, background-color 0.15s, border-color 0.15s;
}
.kromka-toc a:hover {
  color: var(--ink);
  border-left-color: rgba(var(--accent-rgb), 0.45);
  background: linear-gradient(to right, rgba(var(--accent-rgb), 0.08), transparent 80%);
}
.kromka-toc a.is-active {
  color: var(--accent);
  border-left-color: var(--accent);
  background: linear-gradient(to right, rgba(var(--accent-rgb), 0.14), transparent 85%);
  box-shadow: -6px 0 14px -8px rgba(var(--accent-rgb), 0.9);
  text-shadow: 0 0 12px rgba(var(--accent-rgb), 0.4);
}
.kromka-toc-code {
  flex: 0 0 18px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.kromka-toc a.is-active .kromka-toc-code { color: var(--accent); }
.kromka-toc a.kromka-toc-side { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); }
.kromka-toc a.kromka-toc-side:hover { color: var(--ink); }
.kromka-toc.brand-toc { position: static; max-width: 260px; margin-bottom: 14px; }
@media (max-width: 960px) {
  .kromka-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .kromka-toc {
    position: static;
    flex-direction: row;
    overflow-x: auto;
    padding: 0;
    border-left: 0;
    border-bottom: 1px solid var(--line-2);
    scrollbar-width: none;
  }
  .kromka-toc::-webkit-scrollbar { display: none; }
  .kromka-toc-title { display: none; }
  .kromka-toc a {
    flex: 0 0 auto;
    margin: 0 0 -1px;
    padding: 10px 14px;
    border-left: 0;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
  }
  .kromka-toc a:hover { border-bottom-color: rgba(var(--accent-rgb), 0.45); background: linear-gradient(to top, rgba(var(--accent-rgb), 0.08), transparent); }
  .kromka-toc a.is-active { border-bottom-color: var(--accent); background: linear-gradient(to top, rgba(var(--accent-rgb), 0.14), transparent); box-shadow: 0 6px 14px -8px rgba(var(--accent-rgb), 0.9); }
  .kromka-toc a.kromka-toc-side { margin: 0 0 -1px; padding-top: 10px; border-top: 0; }
}

/* Звёздная карта Кромки. Текст — в единицах viewBox, поэтому на узком экране карта не сжимается, а листается вбок. */
.article:has(.km-map) { max-width: 1040px; }
.km-map {
  margin: 0 0 8px;
  background:
    radial-gradient(ellipse at 45% 52%, rgba(var(--accent-rgb), 0.06), transparent 50%),
    var(--surface);
  border: 1px solid var(--line-2);
  clip-path: var(--cut-2);
}
.km-scroll { overflow-x: auto; }
.km-svg { display: block; width: 100%; height: auto; }
.km-grid line { stroke: rgba(var(--accent-rgb), 0.06); stroke-width: 1; }
.km-coords text { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; fill: var(--line-2); }
.km-nebula { fill: var(--ink-2); filter: url(#km-noise); opacity: 0.16; }
.km-nebula-label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  fill: var(--muted);
}
.km-zone { fill-opacity: 0.07; stroke-opacity: 0.5; stroke-width: 1; stroke-dasharray: 6 5; }
.km-lane { stroke: var(--ink-2); stroke-opacity: 0.45; stroke-width: 1.5; }
.km-lane-edge { stroke-dasharray: 2 6; }
.km-lane-hidden { stroke: var(--muted); stroke-dasharray: 1 6; stroke-linecap: round; stroke-width: 2; }
.km-lane-gate { stroke: var(--accent); stroke-opacity: 0.8; stroke-dasharray: 10 8; }
.km-days, .km-edge {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  fill: var(--muted);
  paint-order: stroke;
  stroke: var(--surface);
  stroke-width: 5px;
}
.km-edge { text-transform: uppercase; letter-spacing: 0.18em; }
.km-sys { cursor: pointer; outline: none; }
.km-hit { fill: transparent; }
.km-sys-orbit { fill: none; stroke: var(--line-2); }
.km-sys-belt { fill: none; stroke: var(--ink-2); stroke-opacity: 0.55; stroke-width: 2; stroke-dasharray: 1 3.5; stroke-linecap: round; }
.km-sys-belt.is-debris, .km-orbit-belt.is-debris { stroke: var(--bad); }
.km-sys-gate { fill: none; stroke: var(--accent); stroke-width: 2; stroke-dasharray: 4 3; }
.km-sys-station { fill: var(--accent); filter: drop-shadow(0 0 4px rgba(var(--accent-rgb), 0.9)); }
.km-sys-colony { fill: var(--warn); }
.km-star { filter: drop-shadow(0 0 5px rgba(233, 236, 245, 0.55)); }
.km-sys-name { font-family: var(--display); font-size: 15px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; fill: var(--ink); transition: fill 0.15s; }
.km-sys-point { font-family: var(--body); font-size: 13px; fill: var(--muted); }
.km-sys:hover .km-sys-orbit, .km-sys:focus-visible .km-sys-orbit { stroke: rgba(var(--accent-rgb), 0.6); }
.km-sys:hover .km-sys-name, .km-sys:focus-visible .km-sys-name { fill: var(--accent); }
.km-sys.is-active .km-sys-orbit { stroke: var(--accent); stroke-width: 1.5; filter: drop-shadow(0 0 6px rgba(var(--accent-rgb), 0.9)); }
.km-sys.is-active .km-sys-name { fill: var(--accent); }
.km-sys.is-active .km-sys-point { fill: var(--ink-2); }
.km-scale line { stroke: var(--ink-2); stroke-width: 1.5; }
.km-scale text { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; fill: var(--muted); }

.km-legend {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px 28px;
  padding: 16px 20px 18px;
  border-top: 1px solid var(--line);
  background: var(--panel);
}
.km-legend .type-meta { margin: 0 0 8px; color: var(--muted); }
.km-legend ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.km-legend li { display: flex; align-items: center; gap: 10px; color: var(--text-body); font-size: 14px; }
.km-icon { flex: 0 0 22px; width: 22px; height: 16px; overflow: visible; }
.km-legend-nebula { fill: var(--ink-2); opacity: 0.3; }
.km-swatch { flex: 0 0 22px; height: 12px; border: 1px dashed; }
.km-legend li .km-swatch { box-shadow: inset 0 0 0 20px rgba(7, 8, 13, 0.82); }

.km-info {
  margin: 0 0 14px;
  padding: 18px 20px 6px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent);
}
.km-info-meta { margin: 0 0 4px; color: var(--accent); }
.km-info-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-bottom: 8px; }
.km-info-head strong { font-family: var(--display); font-size: 22px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink); }
.km-info-star { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; color: var(--muted); }
.km-info > p { max-width: 70ch; }
.km-system-svg { display: block; width: 100%; height: auto; margin: 4px 0 10px; }
.km-system-star { filter: drop-shadow(0 0 16px rgba(233, 236, 245, 0.35)); opacity: 0.9; }
.km-orbit { fill: none; stroke: rgba(197, 203, 224, 0.22); stroke-width: 1; }
.km-orbit-belt { stroke: var(--ink-2); stroke-opacity: 0.5; stroke-width: 6; stroke-dasharray: 1 5; stroke-linecap: round; }
.km-body { fill: var(--panel-2); stroke: var(--ink-2); stroke-width: 1.5; }
.km-body.is-giant { fill: #1a2236; stroke: var(--ink-2); }
.km-body.is-ocean { stroke: var(--accent); }
.km-body.is-ice { stroke: var(--ink); stroke-dasharray: 2 2; }
.km-body.is-moon { fill: var(--ink-2); stroke: none; }
.km-tether { stroke: var(--line-2); stroke-dasharray: 2 3; }
.km-body-name, .km-body-au, .km-body-tag { paint-order: stroke; stroke: var(--panel); stroke-width: 5px; }
.km-body-name { font-family: var(--body); font-size: 14px; font-weight: 600; fill: var(--ink); }
.km-body-au { font-family: var(--mono); font-size: 11px; fill: var(--muted); }
.km-body-tag { font-family: var(--body); font-size: 13px; fill: var(--accent); }
.km-objects { margin-top: 4px; }
.km-objects li { font-size: 15px; }
.article .km-draft { color: var(--muted); font-size: 14px; max-width: 80ch; }
@media (max-width: 760px) {
  .km-svg { width: 900px; max-width: none; }
  .km-system-svg { width: 760px; max-width: none; }
  .km-legend { grid-template-columns: minmax(0, 1fr); }
}

.rm-updated { margin: 6px 0 4px; color: var(--muted); }
.rm-nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  max-width: 1040px;
  margin: 8px 0 28px;
  background-color: var(--panel);
  border: 1px solid var(--line);
  clip-path: var(--cut);
}
.rm-nav a {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 16px 18px;
  border-right: 1px solid var(--line);
  color: var(--ink-2);
  transition: color 0.15s, background-color 0.15s;
}
.rm-nav a:last-child { border-right: 0; }
.rm-nav a:hover { color: var(--ink); background-color: rgba(var(--accent-rgb), 0.06); }
.rm-nav-code { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.rm-nav strong { font-family: var(--display); font-size: 15px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; line-height: 1.25; }

.rm-checks { max-width: 1040px; margin-bottom: 12px; }
.rm-title { margin: 0 0 8px; color: var(--accent); }
.rm-lede { max-width: 68ch; margin: 0 0 14px; color: var(--text-body); }
.rm-check-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.rm-check {
  padding: 16px 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 2px solid var(--warn);
}
.rm-check h4 { margin: 0 0 8px; font-size: 16px; font-weight: 600; color: var(--ink); line-height: 1.3; }
.rm-check p { margin: 0; color: var(--text-body); font-size: 14px; line-height: 1.45; }

.rm-chapter { max-width: 880px; margin-top: 64px; scroll-margin-top: calc(var(--top-h) + 20px); }
.rm-code { margin: 0 0 6px; color: var(--accent); }
.rm-milestone {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  text-shadow: var(--title-glow);
}
.rm-track { display: flex; flex-direction: column; }
.rm-step {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 8px 16px;
  position: relative;
  padding-bottom: 22px;
}
.rm-step::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 32px;
  bottom: 0;
  width: 1px;
  background: var(--line-2);
}
.rm-step:last-child { padding-bottom: 0; }
.rm-step:last-child::before { display: none; }
.rm-step-n {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: var(--bg);
  border: 1px solid var(--line-2);
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
  position: relative;
  z-index: 1;
}
.rm-step-work .rm-step-n { border-color: var(--accent); box-shadow: 0 0 12px rgba(var(--accent-rgb), 0.45); }
.rm-step-branch .rm-step-n { border-color: var(--warn); color: var(--warn); }
.rm-step-done .rm-step-n { border-color: var(--good); color: var(--good); }
.rm-step-body { padding-top: 4px; }
.rm-stage-top { display: flex; align-items: baseline; gap: 12px; }
.rm-step-body h4 { margin: 0; font-size: 18px; font-weight: 600; color: var(--ink); }
.rm-out { margin: 6px 0 0; max-width: 62ch; color: var(--ink-2); font-size: 16px; line-height: 1.45; }
.rm-step .art-list { margin: 8px 0 0; }
.rm-step .art-list li { font-size: 15px; margin-bottom: 5px; line-height: 1.4; color: var(--ink-2); }
.rm-status {
  flex: 0 0 auto;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.rm-work { color: var(--accent); }
.rm-branch { color: var(--warn); }
.rm-done { color: var(--good); }
.rm-needs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 10px 0 0; color: var(--muted); font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; }
.rm-needs span { padding: 3px 8px; border: 1px solid var(--line-2); color: var(--ink-2); letter-spacing: 0; font-family: var(--body); font-size: 13px; }
.rm-note { margin: 16px 0 0; color: var(--ink-2); }
@media (max-width: 800px) {
  .rm-nav, .rm-check-row { grid-template-columns: 1fr; }
  .rm-nav a { border-right: 0; border-bottom: 1px solid var(--line); }
  .rm-nav a:last-child { border-bottom: 0; }
}
@media (max-width: 900px) {
  .art-cards { grid-template-columns: 1fr; }
  .faction-logo, .faction-logo img { height: 128px; max-height: 128px; }
}

.book { max-width: 880px; margin: 0 auto; padding: 48px 28px 96px; }
.book > .type-display { font-size: clamp(48px, 6vw, 76px); margin: 0 0 16px; }
.book > .type-body { max-width: 62ch; }
.book section { margin-top: 48px; }
.book h2 { margin: 0 0 16px; color: var(--accent); }
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 8px; }
.swatch {
  min-height: 96px;
  padding: 12px;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 2px;
}
.swatch span { font-family: var(--mono); font-size: 13px; color: var(--ink); }
.swatch small { font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em; color: var(--muted); }
.swatch.is-ink span, .swatch.is-ink small { color: var(--on-act); }
.brand-sample-title { font-size: 48px; margin: 0 0 12px; }
.brand-sample-meta { color: var(--accent); margin: 0; }
.top.top-sample { position: static; z-index: auto; margin-bottom: 16px; border: 1px solid var(--line); }
.brand-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-bottom: 16px; }

.faction-brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 8px;
  margin: 0 0 14px;
}
.faction-brand {
  margin: 0;
  padding: 18px 16px 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.faction-brand img {
  display: block;
  width: 100%;
  height: 120px;
  object-fit: contain;
}
.faction-brand figcaption {
  margin: 0;
  font-family: var(--display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}
.brand-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.brand-split > div {
  padding: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent);
}
.brand-split .type-meta { color: var(--accent); margin: 0 0 8px; }
.brand-split .type-body { margin: 0; }
@media (max-width: 900px) {
  .book { padding: 32px 20px 64px; }
  .brand-split { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .top { flex-wrap: wrap; gap: 0 16px; height: auto; padding: 0 16px; }
  .brand { height: 52px; font-size: 17px; gap: 10px; }
  .brand img { width: 30px; height: 30px; }
  .top nav { flex: 1 0 100%; order: 3; height: 44px; margin: 0 -16px; padding: 0 6px; border-top: 1px solid var(--line); }
  .top nav a, .who > a, .who > button { padding: 0 10px; font-size: 13px; letter-spacing: 0.06em; }
  .who { height: 52px; }
  .landing { padding: 24px 16px 48px; gap: 12px; }
  .landing-top { grid-template-columns: 1fr; gap: 12px; }
  .landing-block { padding: 28px 20px; }
  .landing-play .landing-logo { top: 18px; right: 16px; width: 64px; height: 64px; }
  .need-cards { grid-template-columns: 1fr; }
  .landing-top .landing-block { min-height: 0; }
  .landing-facts { margin-top: 28px; }
  .wiki-doors { gap: 8px; }
  .wiki { padding: 32px 20px 64px; }
}

/* roadmap polish */
.rm-nav a { border-bottom: 1px solid var(--line); }
.rm-nav a:hover { box-shadow: inset 0 -2px 0 var(--accent); }
.rm-overview, .rm-arch { max-width: 1040px; margin-bottom: 24px; }
.rm-bar { display: flex; gap: 3px; height: 10px; margin: 4px 0 12px; }
.rm-seg { flex: 1 1 0; background: var(--line-2); display: block; }
.rm-seg-done { background: var(--good); }
.rm-seg-work { background: var(--accent); box-shadow: 0 0 8px rgba(var(--accent-rgb), 0.6); }
.rm-seg-branch { background: var(--warn); }
.rm-seg-plan { background: var(--line-2); }
.rm-seg-closed { background: repeating-linear-gradient(135deg, var(--line-2) 0 4px, var(--panel-2, #141a2a) 4px 8px); outline: 1px solid var(--line-2); outline-offset: -1px; }
.rm-legend { display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--ink-2); font-size: 14px; }
.rm-legend-item { display: inline-flex; align-items: center; gap: 8px; }
.rm-dot { width: 10px; height: 10px; display: inline-block; flex: 0 0 auto; }
.rm-arch { padding: 20px; background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--accent); clip-path: var(--cut); }
.rm-arch .rm-lede { margin-bottom: 16px; }
.rm-arch-flow { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 12px; align-items: stretch; }
.rm-arch-node { padding: 14px 16px; background: var(--surface); border: 1px solid var(--line-2); }
.rm-arch-node h4 { margin: 6px 0 6px; font-family: var(--display); font-size: 16px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink); }
.rm-arch-node p { margin: 0; color: var(--text-body); font-size: 14px; line-height: 1.45; }
.rm-arch-tag { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.rm-arch-arrow { align-self: center; font-size: 26px; color: var(--accent); text-shadow: var(--title-glow); }
.rm-arch-link { margin: 14px 0 0; color: var(--muted); font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; }
.rm-chapter-meta { margin: 0 0 12px; color: var(--muted); }
.rm-step-body { padding: 12px 16px 14px; background: var(--panel); border: 1px solid var(--line); border-left: 2px solid var(--line-2); }
.rm-step-branch .rm-step-body { border-left-color: var(--warn); }
.rm-step-work .rm-step-body { border-left-color: var(--accent); }
.rm-step-done .rm-step-body { border-left-color: var(--good); }
.rm-step-closed .rm-step-body { border-left-color: var(--muted); border-style: dashed; border-left-style: solid; }
.rm-step-closed .rm-step-n { border-style: dashed; color: var(--muted); }
.rm-stage-top { align-items: center; flex-wrap: wrap; justify-content: space-between; }
.rm-status { padding: 3px 8px; border: 1px solid currentColor; line-height: 1.2; }
.rm-plan { color: var(--muted); border-color: var(--line-2); }
.rm-closed { color: var(--ink-2); border-style: dashed; }
.rm-step { padding-bottom: 14px; }
.rm-step::before { top: 40px; }
@media (max-width: 800px) {
  .rm-arch-flow { grid-template-columns: 1fr; }
  .rm-arch-arrow { justify-self: center; transform: rotate(90deg); }
  .rm-step { grid-template-columns: 28px minmax(0, 1fr); gap: 8px 10px; }
  .rm-step-n { width: 28px; height: 28px; font-size: 12px; }
  .rm-step::before { left: 13px; top: 32px; }
  .rm-step-body { padding: 10px 12px 12px; }
}

/* ===== Лендинг: главная (lnd-*) ===== */
.lnd { max-width: 1320px; margin: 0 auto; padding: 40px 28px 80px; display: flex; flex-direction: column; gap: 28px; }
.lnd-hero { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 16px; }
.lnd-box, .lnd-play { position: relative; overflow: hidden; }
.lnd-intro {
  display: flex; flex-direction: column; align-items: flex-start; padding: 48px 44px; min-height: 460px;
  background: radial-gradient(ellipse at 100% 0%, rgba(var(--accent-rgb), 0.09), transparent 55%), var(--panel);
  border: 1px solid var(--line); clip-path: var(--cut-2); --edge: var(--line);
}
.lnd-intro > *:not(.lnd-orbit) { position: relative; z-index: 1; }
.lnd-intro .kicker { margin: 0 0 20px; color: var(--accent); }
.lnd-intro h1 { margin: 0; font-size: clamp(32px, 4.2vw, 58px); line-height: 1.08; }
.lnd-lede { max-width: 54ch; margin: 24px 0 0; font-size: 17px; line-height: 1.6; color: var(--text-body); }
.lnd-actions { margin-top: auto; padding-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; }
.lnd-orbit { position: absolute; right: -90px; top: 50%; width: 460px; height: 460px; transform: translateY(-50%); opacity: 0.55; pointer-events: none; }
.lnd-orbit circle { fill: none; stroke: rgba(var(--accent-rgb), 0.28); stroke-width: 1; }
.lnd-orbit .faint, .lnd-orbit line { stroke: rgba(var(--accent-rgb), 0.12); stroke-width: 1; }
.lnd-orbit .core { fill: var(--accent); stroke: none; }
.lnd-orbit .dot-a { fill: var(--accent-2); stroke: none; }
.lnd-orbit .dot-b { fill: var(--accent); stroke: none; }
.lnd-spin { transform-origin: 200px 200px; animation: lnd-spin 38s linear infinite; }
.lnd-spin-2 { animation-duration: 22s; animation-direction: reverse; }
@keyframes lnd-spin { to { transform: rotate(360deg); } }
.lnd-play { min-height: 460px; padding: 44px 40px; }
.lnd-points { list-style: none; margin: 22px 0 28px; padding: 0; display: flex; flex-direction: column; gap: 12px; max-width: 40ch; }
.lnd-points li { position: relative; padding-left: 18px; color: var(--text-body); font-size: 15px; line-height: 1.5; }
.lnd-points li::before { content: ""; position: absolute; left: 0; top: 8px; width: 7px; height: 7px; background: var(--accent); clip-path: polygon(0 0, 100% 0, 100% 100%, 40% 100%, 0 60%); }
.lnd-tele {
  display: flex; flex-wrap: wrap; gap: 10px 36px; align-items: center; padding: 14px 22px;
  border: 1px solid var(--line); background: var(--surface); font-size: 14px; font-weight: 600; clip-path: var(--cut);
}
.lnd-tele span { display: inline-flex; flex-direction: column; gap: 2px; }
.lnd-tele em { font-style: normal; font-family: var(--mono); font-size: 11px; font-weight: 400; color: var(--muted); letter-spacing: 0.06em; }
.lnd-tele-live { flex-direction: row !important; align-items: center; gap: 10px !important; padding-right: 36px; border-right: 1px solid var(--line); }
.lnd-tele-live i { width: 9px; height: 9px; background: var(--muted); display: block; }
.lnd-tele-live.on i { background: var(--good); box-shadow: 0 0 10px rgba(60, 240, 138, 0.7); animation: lnd-pulse 2.2s ease-in-out infinite; }
.lnd-tele-live.off i { background: var(--bad); }
.lnd-tele-live b { font-family: var(--mono); font-size: 13px; font-weight: 500; }
@keyframes lnd-pulse { 50% { opacity: 0.35; } }
.lnd-sec-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 20px; margin-bottom: 18px; }
.lnd-sec-head .kicker { flex: 1 0 100%; margin: 0; color: var(--accent); }
.lnd-sec-head h2 { margin: 0; font-size: clamp(22px, 2.4vw, 32px); }
.lnd-more { margin-left: auto; font-family: var(--mono); font-size: 13px; color: var(--accent); }
.lnd-more:hover { color: white; }
.lnd-factions { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 10px; }
.lnd-fac {
  --fc: 34, 228, 240; position: relative; display: flex; flex-direction: column; gap: 8px; padding: 18px 16px 18px;
  background: var(--panel); border: 1px solid var(--line); border-top: 2px solid rgba(var(--fc), 0.7); clip-path: var(--cut);
  transition: transform 0.18s, background-color 0.18s, border-color 0.18s;
}
.lnd-fac img { width: 100%; height: 96px; object-fit: contain; transition: transform 0.25s, filter 0.25s; filter: saturate(0.9); }
.lnd-fac strong { font-family: var(--display); font-size: 13px; letter-spacing: 0.05em; text-transform: uppercase; color: rgb(var(--fc)); }
.lnd-fac small { font-size: 13px; line-height: 1.45; color: var(--text-body); }
.lnd-fac:hover { transform: translateY(-3px); background-color: rgba(var(--fc), 0.07); border-color: rgba(var(--fc), 0.5); }
.lnd-fac:hover img { transform: scale(1.06); filter: saturate(1.15) drop-shadow(0 0 14px rgba(var(--fc), 0.35)); }
.lnd-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.lnd-card { padding: 22px 22px 24px; background: var(--panel); border: 1px solid var(--line); border-left: 2px solid var(--accent); clip-path: var(--cut); display: flex; flex-direction: column; gap: 10px; }
.lnd-card:nth-child(even) { border-left-color: var(--accent-2); }
.lnd-card:nth-child(even) .need-code { color: var(--accent-2); }
.lnd-card strong { font-family: var(--display); font-size: 15px; letter-spacing: 0.04em; text-transform: uppercase; line-height: 1.3; }
.lnd-card p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--text-body); }
.lnd-nav { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
@media (max-width: 1000px) {
  .lnd-hero { grid-template-columns: 1fr; }
  .lnd-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lnd-intro, .lnd-play { min-height: 0; }
}
@media (max-width: 640px) {
  .lnd { padding: 20px 14px 56px; }
  .lnd-intro { padding: 32px 22px; }
  .lnd-play { padding: 32px 22px; }
  .lnd-orbit { right: -200px; opacity: 0.3; }
  .lnd-cards { grid-template-columns: 1fr; }
  .lnd-factions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lnd-tele { gap: 12px 24px; }
  .lnd-tele-live { border-right: 0; flex: 1 0 100%; }
  .lnd-nav { grid-template-columns: 1fr; }
  .btn.play-btn { min-width: 0; width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .lnd-spin, .lnd-tele-live.on i { animation: none; } }
