/* ==========================================================================
   ПАРАДОКС · сайт сервера
   Монохром: светло-серый холст, стеклянная рамка, белые и чёрные карточки.
   Цвета в интерфейсе нет вообще — цветным остаётся только логотип сезона,
   поэтому он и читается главным. Зелёная точка «в сети» — единственное
   исключение, это сигнал, а не украшение.
   ========================================================================== */

/* ============ Токены ============ */
:root {
  --canvas: #dedee1;
  --glass: rgba(255, 255, 255, .40);
  --glass-line: rgba(255, 255, 255, .85);

  --card: #ffffff;
  --fill: #f3f3f5;
  --fill-2: #e8e8eb;
  --line: #ececef;
  --line-2: #d9d9de;

  --ink: #151517;
  --on-ink: #ffffff;
  --ink-2: #4a4a50;
  --muted: #8d8d94;
  --glass-soft: rgba(255, 255, 255, .35);
  --tabbar-bg: rgba(255, 255, 255, .86);
  --plate: rgba(255, 255, 255, .84);

  --dark: #1e1e21;
  --dark-2: #2c2c30;
  --dark-3: #3b3b40;
  --on-dark: #fafafa;
  --on-dark-2: rgba(255, 255, 255, .6);
  --on-dark-line: rgba(255, 255, 255, .1);

  --ok: #2eb04f;
  --bad: #dc3d43;
  --warn: #c98a0a;

  --r-xl: 34px;
  --r-lg: 26px;
  --r-md: 18px;
  --r-sm: 12px;
  --r-xs: 8px;

  --shadow: 0 1px 1px rgba(20, 20, 24, .03), 0 10px 26px -14px rgba(20, 20, 24, .12);
  --shadow-lift: 0 2px 4px rgba(20, 20, 24, .04), 0 22px 44px -18px rgba(20, 20, 24, .22);

  --font: 'Onest', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --ease: cubic-bezier(.2, .7, .3, 1);

  /* Старые имена: на них ссылаются инлайн-стили в страницах лора. */
  --border: var(--line);
  --border-strong: var(--line-2);
  --surface: var(--fill);
  --fg: var(--ink);
  --fg-dim: var(--ink-2);
  --fg-muted: var(--muted);

  color-scheme: light;
}

/* ============ Тёмная тема ============ */
/* Та же система наоборот: холст почти чёрный, белые карточки становятся
   графитовыми, а «чёрные» карточки — на ступень светлее, чтобы остались
   акцентом. Кнопки цвета туши инвертируются сами через --ink / --on-ink. */
:root[data-theme="dark"] {
  --canvas: #0c0c0e;
  --glass: rgba(26, 26, 30, .55);
  --glass-line: rgba(255, 255, 255, .07);
  --glass-soft: rgba(255, 255, 255, .04);
  --tabbar-bg: rgba(24, 24, 28, .86);
  --plate: rgba(20, 20, 24, .82);

  --card: #17171a;
  --fill: #212125;
  --fill-2: #2a2a2f;
  --line: #242428;
  --line-2: #36363c;

  --ink: #f2f2f4;
  --on-ink: #111113;
  --ink-2: #b2b2ba;
  --muted: #7b7b85;

  --dark: #26262b;
  --dark-2: #313137;
  --dark-3: #3e3e45;

  --shadow: 0 0 0 1px rgba(255, 255, 255, .045), 0 12px 30px -14px rgba(0, 0, 0, .7);
  --shadow-lift: 0 0 0 1px rgba(255, 255, 255, .07), 0 24px 48px -18px rgba(0, 0, 0, .8);
  color-scheme: dark;
}
:root[data-theme="dark"] .bg {
  background:
    radial-gradient(1100px 760px at 18% 8%, #1b1b20 0%, transparent 62%),
    radial-gradient(900px 700px at 92% 96%, #17171b 0%, transparent 60%),
    linear-gradient(160deg, #0a0a0c 0%, #111114 55%, #0b0b0d 100%);
}
:root[data-theme="dark"] .bg__ring {
  background: radial-gradient(closest-side, transparent 64%, rgba(255,255,255,.06) 76%, rgba(255,255,255,.015) 86%, transparent 100%);
}
:root[data-theme="dark"] .shell::before { box-shadow: 0 50px 120px -50px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255,255,255,.05); }
:root[data-theme="dark"] .tile--light { background: #3a3a40; color: var(--ink); }
:root[data-theme="dark"] .mcard--more { border-color: var(--line-2); }
:root[data-theme="dark"] .wiki-modal__error,
:root[data-theme="dark"] .stat-row__state--bad, :root[data-theme="dark"] .tag--remove { background: rgba(220, 61, 67, .16); color: #ff8a8e; }
:root[data-theme="dark"] .craft { filter: brightness(.92); }

/* ============ Основа ============ */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  transition: background-color .3s ease, color .3s ease;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--canvas);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; padding: 0; }
img { display: block; max-width: 100%; }
h1, h2, h3, h4 { font-weight: 600; letter-spacing: -.025em; line-height: 1.2; text-wrap: balance; }
p { text-wrap: pretty; }
::selection { background: var(--ink); color: var(--on-ink); }
[hidden] { display: none !important; }
:target { scroll-margin-top: 24px; }

:where(a, button, input, textarea, select, [tabindex]):focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}
.btn:focus-visible, .icon-btn:focus-visible, .side__item:focus-visible,
.tabbar__item:focus-visible, .card:focus-visible, .mcard:focus-visible,
.wiki-row:focus-visible, .gallery__item:focus-visible { border-radius: inherit; }

code {
  font-family: var(--font-mono);
  font-size: .88em;
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--fill);
  color: var(--ink);
  overflow-wrap: anywhere;
}
kbd {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  padding: 3px 7px;
  border-radius: 7px;
  background: var(--card);
  color: var(--ink-2);
  box-shadow: inset 0 0 0 1px var(--line-2), 0 1.5px 0 var(--line-2);
  white-space: nowrap;
}
.pxi { display: block; object-fit: contain; image-rendering: pixelated; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 200;
  padding: 10px 16px; border-radius: 999px;
  background: var(--ink); color: var(--on-ink); font-weight: 600;
  transition: top .2s;
}
.skip-link:focus { top: 16px; }

/* ============ Фон ============ */
/* Два мягких светлых кольца на сером — как изгибы стекла за рамкой.
   Кольцо нарисовано радиальным градиентом, а не размытием: огромный
   filter: blur на фиксированном слое заметно тормозит прокрутку. */
.bg {
  position: fixed; inset: 0; z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(1100px 760px at 18% 8%, #f5f5f7 0%, transparent 62%),
    radial-gradient(900px 700px at 92% 96%, #f0f0f2 0%, transparent 60%),
    linear-gradient(160deg, #d6d6d9 0%, #e6e6e9 55%, #d9d9dc 100%);
}
.bg__ring {
  position: absolute;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, transparent 64%, rgba(255,255,255,.75) 76%, rgba(255,255,255,.2) 86%, transparent 100%);
}
.bg__ring--a { width: 92vmax; left: -34vmax; top: -40vmax; }
.bg__ring--b { width: 78vmax; right: -30vmax; bottom: -42vmax; opacity: .8; }

/* ============ Рамка ============ */
.shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 244px minmax(0, 1fr);
  gap: 26px;
  max-width: 1480px;
  min-height: calc(100vh - 56px);
  margin: 28px auto;
  padding: 16px 22px 16px 16px;
  border-radius: 42px;
}
/* Стекло — на отдельном слое. С backdrop-filter на самой рамке она стала бы
   контейнером для position: fixed, и нижняя панель, поиск и окна
   приклеивались бы к рамке, а не к экрану. */
.shell::before {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  border-radius: inherit;
  background: var(--glass);
  border: 1px solid var(--glass-line);
  box-shadow: 0 50px 120px -50px rgba(20, 20, 24, .32), inset 0 1px 0 rgba(255,255,255,.9);
  -webkit-backdrop-filter: blur(22px) saturate(115%);
  backdrop-filter: blur(22px) saturate(115%);
  pointer-events: none;
}
@media (max-width: 1540px) { .shell { margin: 20px; min-height: calc(100vh - 40px); } }

.main-col { min-width: 0; display: flex; flex-direction: column; }
#main { flex: 1; outline: none; }

/* ============ Боковая панель ============ */
.side {
  position: sticky;
  top: 36px;
  align-self: start;
  height: calc(100vh - 72px);
  max-height: 940px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 26px 14px 16px;
  border-radius: 30px;
  background: var(--card);
  box-shadow: var(--shadow);
  overflow-y: auto;
  scrollbar-width: none;
}
.side::-webkit-scrollbar { display: none; }
.side__brand {
  display: flex; align-items: center; gap: 10px;
  padding: 0 10px;
  font-size: 21px; font-weight: 700; letter-spacing: -.035em;
}
.side__brand img {
  width: 32px; height: auto;
  transition: transform .5s cubic-bezier(.2, .8, .3, 1.35);
}
/* Знак поворачивается под курсором — как раньше в рельсе. */
.side__brand:hover img, .top__mark:hover img { transform: rotate(-12deg) scale(1.1); }
.top__mark img { transition: transform .5s cubic-bezier(.2, .8, .3, 1.35); }
.side__nav, .side__group { display: flex; flex-direction: column; gap: 2px; }
.side__label {
  padding: 0 12px 8px;
  font-size: 11.5px; font-weight: 600;
  letter-spacing: .07em; text-transform: uppercase;
  color: var(--muted);
}
.side__item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px;
  border-radius: 13px;
  font-size: 14.5px; font-weight: 500;
  color: var(--ink-2);
  transition: background-color .18s ease, color .18s ease;
}
.side__item svg { flex: none; }
.side__item:hover { background: var(--fill); color: var(--ink); }
.side__item.is-active { background: var(--ink); color: var(--on-ink); }
.side__fact {
  display: flex; align-items: center; gap: 12px;
  padding: 7px 12px;
  font-size: 14px; color: var(--ink-2);
}
.side__fact b { font-weight: 600; color: var(--ink); }
.side__dot {
  flex: none; width: 10px; height: 10px; border-radius: 50%;
  background: var(--line-2);
  transition: background-color .3s;
}
.side__dot.is-on { background: var(--ok); box-shadow: 0 0 0 4px rgba(46, 176, 79, .14); }
.side__dot--idle { background: #b4b4ba; }
.side__foot { margin-top: auto; }

/* ============ Верхняя строка ============ */
.top {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 4px 24px 6px;
}
.top__mark { display: none; }
.top__head { min-width: 0; }
.top__title {
  margin: 0;
  font-size: clamp(26px, 2.3vw, 34px);
  font-weight: 600;
  letter-spacing: -.04em;
  line-height: 1.1;
}
.top__sub { margin: 6px 0 0; font-size: 14.5px; color: var(--muted); }
.top__actions { margin-left: auto; display: flex; align-items: center; gap: 10px; flex: none; }

.icon-btn, .avatar {
  position: relative;
  display: grid; place-items: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--card);
  color: var(--ink);
  box-shadow: var(--shadow);
  transition: transform .2s var(--ease), box-shadow .2s;
}
.icon-btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-lift); }
.icon-btn__dot {
  position: absolute; top: 11px; right: 12px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--ink); box-shadow: 0 0 0 2px var(--card);
}
.avatar {
  background: linear-gradient(145deg, #3a3a3f, #151517);
  color: rgba(255,255,255,.8);
  overflow: hidden;
}
.avatar:hover { transform: translateY(-1px); box-shadow: var(--shadow-lift); }
.avatar--face { background: #cfcfd4; }
.skin-face, .skin-bust { display: block; image-rendering: pixelated; }

/* ============ Кнопки ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px;
  border-radius: 999px;
  font-size: 14.5px; font-weight: 600; letter-spacing: -.005em;
  white-space: nowrap;
  transition: background-color .18s ease, color .18s ease, box-shadow .18s ease, transform .2s var(--ease);
}
.btn svg { flex: none; }
.btn--lg { height: 52px; padding: 0 26px; font-size: 15.5px; }
.btn--sm { height: 36px; padding: 0 15px; font-size: 13.5px; }
.btn--dark, .btn--primary { background: var(--ink); color: var(--on-ink); }
.btn--dark:hover, .btn--primary:hover { background: #000; transform: translateY(-1px); }
.btn--ghost { background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--on-ink); }
.btn.is-active { background: var(--ink); color: var(--on-ink); box-shadow: none; }
.btn:disabled { opacity: .42; cursor: not-allowed; transform: none; }

/* ============ Карточки ============ */
.card {
  position: relative;
  min-width: 0;
  padding: 24px 26px;
  border-radius: var(--r-lg);
  background: var(--card);
  box-shadow: var(--shadow);
}
.card--dark { background: var(--dark); color: var(--on-dark); }
.card--dark code { background: rgba(255,255,255,.1); color: #fff; }
.card__head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 18px;
}
.card__title { margin: 0; font-size: 19px; font-weight: 600; letter-spacing: -.025em; }
.card__hint { font-size: 13px; color: var(--muted); }
.counter {
  display: grid; place-items: center;
  min-width: 32px; height: 32px; padding: 0 6px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1.5px var(--line-2);
  font-size: 12px; font-weight: 600; color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}

/* ============ Главная: сетка ============ */
.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 20px;
}
.hero { grid-column: 1 / -1; }
.addr, .server { grid-column: span 6; }
.strip { grid-column: 1 / -1; }
.faq-card { grid-column: span 8; }
.community { grid-column: span 4; }

/* Сезон: текст слева, зернистый куб справа. Куб крупнее карточки и обрезан
   её краями (низ уходит за край), левым краем, редея, заходит под текст на ~70px —
   ровно настолько при любой ширине: обе границы считаются от колонки текста
   в cqw (проценты ширины самой карточки). Холст прозрачный и не ловит мышь —
   кнопки под ним живые. */
.hero {
  container-type: inline-size;
  display: flex; flex-direction: column; justify-content: center;
  padding: 36px 38px 34px;
  overflow: hidden;
}
.hero__main { position: relative; z-index: 1; max-width: 58%; max-width: min(58cqw, 520px); }
.hero__art {
  position: absolute; z-index: 0;
  top: -10px; right: 3%; width: 42%;
  left: calc(38px + min(58cqw, 520px) - 70px); right: auto;
  width: min(calc(100cqw - min(58cqw, 520px) + 70px), 520px);
  aspect-ratio: .93;
  pointer-events: none;
}
.hero__logo { width: min(560px, 100%); height: auto; margin: 0 0 24px -4px; }
.hero__desc {
  margin: 0 0 28px;
  max-width: 46ch;
  font-size: 17px; line-height: 1.6;
  color: var(--ink-2);
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 10px; }

/* Сервер сейчас */
.server { display: flex; flex-direction: column; padding: 24px 24px 22px; }
.server__live {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--on-dark-2);
}
.server__live i { width: 8px; height: 8px; border-radius: 50%; background: var(--dark-3); }
.server__live i.is-on { background: var(--ok); box-shadow: 0 0 0 4px rgba(46, 176, 79, .18); }
.server__nums { display: flex; gap: 36px; margin: 4px 0 18px; }
.server__num { display: flex; align-items: flex-end; gap: 10px; }
.server__num b {
  font-size: 58px; font-weight: 500; letter-spacing: -.05em; line-height: .86;
  font-variant-numeric: tabular-nums;
}
.server__num span { font-size: 12.5px; line-height: 1.3; color: var(--on-dark-2); padding-bottom: 2px; }
.server__bar {
  height: 6px; margin: 0 0 22px;
  border-radius: 999px;
  background: rgba(255,255,255,.1);
  overflow: hidden;
}
.server__bar i {
  display: block; height: 100%;
  border-radius: inherit;
  background: var(--on-dark);
  transition: width 1s var(--ease);
}
.server__who { margin-top: auto; }
.server__who-cap { margin-bottom: 10px; font-size: 12.5px; color: var(--on-dark-2); }
.server__heads { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.server__head {
  width: 44px; height: 44px; padding: 3px;
  border-radius: 12px;
  background: var(--dark-2);
  transition: transform .2s var(--ease), background-color .2s;
}
.server__head:hover { transform: translateY(-2px); background: var(--dark-3); }
.server__head .skin-face { width: 38px !important; height: 38px !important; border-radius: 8px; }
.server__more { font-size: 13px; color: var(--on-dark-2); padding-left: 4px; }
.server__empty { margin: 0; font-size: 14px; color: var(--on-dark-2); }

/* Адрес */
.addr { display: flex; flex-direction: column; container-type: inline-size; }
/* В узкой карточке адрес важнее подписи на кнопке. */
@container (max-width: 330px) {
  .ipf__copy { width: 38px; padding: 0; justify-content: center; }
  .ipf__copy span { display: none; }
}
.addr .card__head svg { color: var(--muted); }
.addr__more { margin-top: auto; align-self: flex-start; height: 40px; }
.legend {
  list-style: none; margin: 20px 0 22px; padding: 0;
  display: grid; gap: 10px;
}
.legend li { display: flex; align-items: center; gap: 11px; font-size: 14px; color: var(--ink-2); }
.legend i { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--ink); }
.legend i.is-mid { background: #9d9da3; }
.legend i.is-light { background: transparent; box-shadow: inset 0 0 0 1.5px #b9b9bf; }

.ipf__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ipf__label { font-size: 13px; color: var(--muted); }
.ipf__tabs { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--fill); }
.ipf__tab {
  height: 28px; padding: 0 12px;
  border-radius: 999px;
  font-size: 12px; font-weight: 600; letter-spacing: .02em;
  color: var(--muted);
  transition: background-color .18s, color .18s;
}
.ipf__tab:hover { color: var(--ink); }
.ipf__tab.is-on { background: var(--ink); color: var(--on-ink); }
.ipf__field {
  display: flex; align-items: center; gap: 10px;
  margin-top: 10px;
  padding: 6px 6px 6px 16px;
  border-radius: 16px;
  background: var(--fill);
}
.ipf__ip {
  flex: 1; min-width: 0;
  font-family: var(--font-mono);
  font-size: 14.5px; font-weight: 500;
  overflow-wrap: anywhere;
  line-height: 1.35;
}
.ipf__copy {
  flex: none;
  display: inline-flex; align-items: center; gap: 7px;
  height: 38px; padding: 0 14px;
  border-radius: 12px;
  background: var(--card);
  font-size: 13px; font-weight: 600;
  box-shadow: 0 1px 2px rgba(0,0,0,.06);
  transition: background-color .18s, color .18s;
}
.ipf__copy:hover { background: var(--ink); color: var(--on-ink); }

/* Зернистый куб */
.dlogo { position: absolute; inset: 0; touch-action: pan-y; }
.dlogo canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.dlogo__fallback { position: absolute; inset: 0; margin: auto; width: 60%; height: auto; max-height: 80%; object-fit: contain; image-rendering: pixelated; }

/* Полосы: механики и обновления */
.strip__head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  margin: 10px 6px 14px;
}
.strip__head h2 { margin: 0; font-size: 21px; }
.strip__head h2 span { color: var(--muted); font-weight: 500; }
.strip__head a {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 13.5px; font-weight: 500; color: var(--ink-2);
}
.strip__head a:hover { color: var(--ink); }
.strip__row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.strip__row--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.mcard {
  display: flex; flex-direction: column;
  min-height: 214px;
  padding: 20px 22px 22px;
  overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s;
}
.mcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.mcard__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.mcard__ico {
  display: grid; place-items: center;
  width: 52px; height: 52px;
  border-radius: 16px;
  background: var(--fill);
}
.mcard__kind { font-size: 12px; color: var(--muted); padding-top: 4px; }
.mcard__title { margin: 18px 0 6px; font-size: 18.5px; }
.mcard__body {
  margin: 0; padding-right: 44px;
  font-size: 13.5px; line-height: 1.5; color: var(--muted);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
/* Чёрный уголок со стрелкой — вход в карточку. */
.mcard__go {
  position: absolute; right: 0; bottom: 0;
  display: grid; place-items: center;
  width: 58px; height: 58px;
  border-radius: 22px 0 var(--r-lg) 0;
  background: var(--ink); color: var(--on-ink);
  transition: width .25s var(--ease);
}
.mcard:hover .mcard__go { width: 72px; }
.mcard--more {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  min-height: 214px;
  border-radius: var(--r-lg);
  border: 1.5px dashed #b4b4ba;
  background: var(--glass-soft);
  font-size: 15px; font-weight: 500; color: var(--ink-2);
  transition: background-color .2s, border-color .2s;
}
.mcard--more:hover { background: var(--card); border-color: var(--ink); color: var(--ink); }

.ucard {
  display: flex; flex-direction: column; gap: 12px;
  min-height: 172px;
  padding: 22px 24px 24px;
  transition: transform .25s var(--ease), box-shadow .25s;
}
.ucard:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.ucard__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.ucard__title { margin: 0; font-size: 18px; }
.ucard__date { flex: none; font-size: 12.5px; color: var(--on-dark-2); padding-top: 3px; }
.ucard__tag { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--on-dark-2); }
.ucard__tag i { width: 6px; height: 6px; border-radius: 50%; background: #fff; }
.ucard__body {
  margin: auto 0 0;
  font-size: 13.5px; line-height: 1.5; color: var(--on-dark-2);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

/* Вопросы */
.faq { display: flex; flex-direction: column; }
.faq__item { border-top: 1px solid var(--line); }
.faq__item:first-child { border-top: none; }
.faq__q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 16px 0;
  text-align: left;
  font-size: 16px; font-weight: 500; letter-spacing: -.01em;
  color: var(--ink);
}
.faq__q:hover { color: #000; }
.faq__sign {
  position: relative; flex: none;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--fill);
  transition: background-color .2s;
}
.faq__item.is-open .faq__sign { background: var(--ink); }
.faq__sign::before, .faq__sign::after {
  content: '';
  position: absolute; left: 50%; top: 50%;
  width: 11px; height: 1.8px; margin: -.9px 0 0 -5.5px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform .3s var(--ease), opacity .2s, background-color .2s;
}
.faq__sign::after { transform: rotate(90deg); }
.faq__item.is-open .faq__sign::before, .faq__item.is-open .faq__sign::after { background: var(--on-ink); }
.faq__item.is-open .faq__sign::after { transform: rotate(0); opacity: 0; }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .34s var(--ease); }
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__a-inner { overflow: hidden; font-size: 15px; line-height: 1.65; color: var(--ink-2); max-width: 70ch; }
.faq__item.is-open .faq__a-inner { padding: 0 50px 18px 0; }
.faq__a-inner a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.faq__a-inner strong { color: var(--ink); font-weight: 600; }

/* Сообщество */
.community { display: flex; flex-direction: column; gap: 10px; }
.community .card__head { margin-bottom: 8px; }
.qr {
  display: flex; align-items: center; gap: 16px;
  padding: 12px;
  border-radius: 20px;
  background: var(--fill);
  transition: background-color .2s;
}
.qr:hover { background: var(--fill-2); }
.qr img { flex: none; width: 88px; height: 88px; border-radius: 12px; background: #fff; filter: grayscale(1) contrast(1.25); }
.community__bot { margin-top: auto; width: 100%; }
.qr div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.qr b { display: inline-flex; align-items: center; gap: 7px; font-size: 15px; font-weight: 600; }
.qr span { font-size: 13px; color: var(--muted); }
.qr code { margin-top: 6px; align-self: flex-start; background: var(--card); font-size: 12px; }

/* ============ Внутренние страницы ============ */
.page { animation: pageIn .45s var(--ease); }
@keyframes pageIn { from { opacity: 0; translate: 0 10px; } to { opacity: 1; translate: 0 0; } }
.block { padding: 0; }
.block + .block { margin-top: 20px; }
.container { width: 100%; }

.section-head { margin: 0 0 22px; }
.eyebrow { margin-bottom: 8px; font-size: 13px; font-weight: 500; color: var(--muted); }
.section-title { margin: 0; font-size: clamp(24px, 2.1vw, 30px); letter-spacing: -.035em; }
.section-sub { margin: 10px 0 0; max-width: 62ch; font-size: 15.5px; line-height: 1.6; color: var(--ink-2); }

.bullets { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.bullets li { position: relative; padding-left: 22px; font-size: 15.5px; line-height: 1.62; color: var(--ink-2); }
.bullets li::before {
  content: ''; position: absolute; left: 3px; top: .68em;
  width: 7px; height: 7px; border-radius: 2px;
  background: var(--ink);
}
.bullets strong { color: var(--ink); font-weight: 600; }

/* ============ Вики ============ */
.wiki-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.wiki-search, .wiki-back {
  display: inline-flex; align-items: center; gap: 10px;
  height: 46px; padding: 0 14px 0 16px;
  border-radius: 999px;
  background: var(--card);
  box-shadow: var(--shadow);
  font-size: 14.5px; color: var(--muted);
  transition: box-shadow .2s, color .2s;
}
.wiki-search { min-width: min(340px, 100%); }
.wiki-search kbd { margin-left: auto; }
.wiki-search:hover, .wiki-back:hover { color: var(--ink); box-shadow: var(--shadow-lift); }
.wiki-back { padding: 0 18px 0 14px; color: var(--ink); font-weight: 500; }
.wiki-back svg { transform: rotate(180deg); }
.wiki-me { display: flex; align-items: center; gap: 12px; }
.wiki-author { display: flex; align-items: center; gap: 10px; }
.wiki-author__avatar { width: 38px; height: 38px; border-radius: 11px; overflow: hidden; background: var(--fill); }
.wiki-author__avatar img { width: 100%; height: 100%; image-rendering: pixelated; }
.wiki-author__avatar-fallback { display: grid; place-items: center; width: 100%; height: 100%; font-weight: 700; }
.wiki-author__label { font-size: 11.5px; color: var(--muted); }
.wiki-author__nick { font-size: 14px; font-weight: 600; }

.wiki-index { display: grid; gap: 20px; }
.wiki-index__top { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px; }
.wiki-card { padding: 26px 28px; border-radius: var(--r-lg); background: var(--card); box-shadow: var(--shadow); }
.wiki-card--intro { display: flex; flex-direction: column; background: var(--dark); color: var(--on-dark); }
.wiki-card--intro p { flex: 1; }
.wiki-card__h { margin: 0 0 12px; font-size: 19px; }
.wiki-card__h--sub { margin-top: 22px; }
.wiki-card p { margin: 0 0 20px; font-size: 15px; line-height: 1.65; color: var(--ink-2); }
.wiki-card--intro p { color: var(--on-dark-2); }
.wiki-card__row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--on-dark-line);
  font-size: 14px;
}
.wiki-card__k { color: var(--on-dark-2); }
.wiki-card__v { font-weight: 500; text-align: right; }
.wiki-card__ip { background: rgba(255,255,255,.1); color: #fff; font-size: 13px; }
.wiki-card__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.wiki-card__list a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 12px; margin: 0 -12px;
  border-radius: 12px;
  font-size: 15px;
  transition: background-color .18s;
}
.wiki-card__list a::after { content: '›'; color: var(--muted); font-size: 18px; line-height: 1; }
.wiki-card__list a:hover { background: var(--fill); }

.wiki-anchors { display: none; }
.wiki-cats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.wiki-cat-card { padding: 22px 24px 24px; border-radius: var(--r-lg); background: var(--card); box-shadow: var(--shadow); }
.wiki-cat-card.is-wide { grid-column: 1 / -1; }
.wiki-cat-card__head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.wiki-cat-card__head svg {
  box-sizing: content-box;
  padding: 9px; border-radius: 50%;
  background: var(--fill);
}
.wiki-cat-card__head h2 { margin: 0; font-size: 17.5px; }
.wiki-cat-card__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 8px; }
.wiki-row {
  display: flex; align-items: center; gap: 11px;
  padding: 11px 14px;
  border-radius: 14px;
  background: var(--fill);
  font-size: 14.5px; font-weight: 500;
  transition: background-color .18s, color .18s;
}
.wiki-row > span { flex: 1; min-width: 0; }
.wiki-row:hover { background: var(--ink); color: var(--on-ink); }
.wiki-row__bullet { flex: none !important; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .35; }
.wiki-row .pxi { flex: none; }

.wiki-layout, .wiki-main { display: block; min-width: 0; }

/* Миры прошлых сезонов */
.oldw { margin: 30px 0 8px; }
.oldw__head { margin-bottom: 14px; }
.oldw__season { margin: 0 0 4px; font-size: 20px; letter-spacing: -.03em; color: var(--ink); }
.oldw__about { margin: 0; max-width: 72ch; font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.oldw__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.oldw__card {
  display: flex; flex-direction: column; gap: 4px;
  padding: 18px 20px; border-radius: var(--r-md, 14px);
  background: var(--fill); color: var(--ink); text-decoration: none;
  box-shadow: inset 0 0 0 1.5px var(--line);
  transition: background-color .18s ease, color .18s ease, box-shadow .18s ease;
}
.oldw__card:hover { background: var(--ink); color: var(--on-ink); box-shadow: none; }
.oldw__title { font-size: 17px; font-weight: 600; letter-spacing: -.02em; }
.oldw__meta { font-size: 13px; color: var(--muted); }
.oldw__card:hover .oldw__meta { color: inherit; opacity: .7; }
.oldw__dl { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-size: 14px; font-weight: 600; }
.wiki-article, .wiki-empty {
  padding: 34px 40px 40px;
  border-radius: var(--r-lg);
  background: var(--card);
  box-shadow: var(--shadow);
}
.wiki-article__head { margin-bottom: 22px; }
.wiki-article__cat { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.wiki-article__title { margin: 0; font-size: clamp(26px, 2.4vw, 34px); letter-spacing: -.04em; }
.wiki-article__meta { margin-top: 14px; }
.wiki-article__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.wiki-article__empty { color: var(--muted); }
.wiki-article__body { font-size: 16px; line-height: 1.72; color: var(--ink-2); }
.wiki-article__body > * { max-width: 72ch; }
.wiki-article__body h1, .wiki-article__body h2, .wiki-article__body h3 { color: var(--ink); margin: 32px 0 10px; }
.wiki-article__body h1 { font-size: 24px; }
.wiki-article__body h2 { font-size: 20px; }
.wiki-article__body h3 { font-size: 17px; }
.wiki-article__body p { margin: 0 0 14px; }
.wiki-article__body ul, .wiki-article__body ol { margin: 0 0 16px; padding-left: 22px; }
.wiki-article__body li { margin-bottom: 6px; }
.wiki-article__body li::marker { color: var(--muted); }
.wiki-article__body strong { color: var(--ink); font-weight: 600; }
.wiki-article__body a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.wiki-article__body a:hover { text-decoration-color: currentColor; }
.wiki-article__body pre { background: var(--fill); padding: 14px 16px; border-radius: 14px; overflow-x: auto; }
.wiki-article__body pre code { background: none; padding: 0; white-space: pre; }
.wiki-article__body blockquote { margin: 0 0 16px; padding: 4px 0 4px 16px; border-left: 3px solid var(--ink); color: var(--ink); }
.wiki-article__body img { border-radius: 16px; }
.wiki-empty { text-align: center; color: var(--muted); }
.wiki-empty__title { margin: 0 0 6px; font-size: 18px; font-weight: 600; color: var(--ink); }
.wiki-empty__sub { margin: 0 0 18px; }
.wiki-notice { margin-bottom: 18px; padding: 12px 16px; border-radius: 14px; background: var(--fill); font-size: 14px; }
.wiki-delete-btn:hover { box-shadow: inset 0 0 0 1.5px var(--bad); color: var(--bad); }

/* Встроенные страницы (лор, о сервере, правила, скриншоты): каждый их
   раздел — своя белая карточка. */
.wiki-static > .page { display: grid; gap: 20px; }
.wiki-static .block + .block { margin-top: 0; }
.wiki-static .block {
  padding: 32px 36px 36px;
  border-radius: var(--r-lg);
  background: var(--card);
  box-shadow: var(--shadow);
}

/* Статья механики */
.mech-page { display: grid; grid-template-columns: minmax(0, 1fr) 316px; gap: 20px; align-items: start; }
.mech { padding: 34px 40px 40px; border-radius: var(--r-lg); background: var(--card); box-shadow: var(--shadow); min-width: 0; }
.mech__head { margin-bottom: 30px; }
.mech__title { margin: 0; font-size: clamp(28px, 2.6vw, 38px); letter-spacing: -.045em; }
.mech__lead { margin: 12px 0 0; max-width: 62ch; font-size: 17px; line-height: 1.6; color: var(--ink-2); }
.mech__sec { margin-top: 32px; }
.mech__h2 { margin: 0 0 14px; font-size: 19px; }
.notes { padding: 22px 24px; border-radius: 20px; background: var(--fill); }

.keys { display: grid; gap: 8px; }
.keybind {
  display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 16px; align-items: center;
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--fill);
}
.keybind__key { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.keybind__plus { font-size: 12px; color: var(--muted); }
.keybind__desc { font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }

.mech-side { position: sticky; top: 24px; }
.mech-side__card { padding: 22px; border-radius: var(--r-lg); background: var(--dark); color: var(--on-dark); box-shadow: var(--shadow); }
.mech-side__name { font-size: 17px; font-weight: 600; letter-spacing: -.02em; }
.mech-side__art {
  display: grid; place-items: center;
  margin: 16px 0 4px;
  padding: 28px 0;
  border-radius: 20px;
  background: radial-gradient(closest-side, #3a3a40, var(--dark-2));
}
.mech-side__art img { width: 136px; height: 136px; object-fit: contain; filter: drop-shadow(0 14px 18px rgba(0,0,0,.4)); }
.mech-side__art .pxi { width: 96px; height: 96px; }
.mech-side__art.mech-side__art--shot { padding: 0; overflow: hidden; }
.mech-side__art.mech-side__art--shot img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; filter: none; }
.mech-side__h { margin: 20px 0 10px; font-size: 12.5px; font-weight: 500; color: var(--on-dark-2); }
.mech-side__facts { margin: 0; display: grid; gap: 2px; }
.mech-side__facts dt { font-size: 12.5px; color: var(--on-dark-2); }
.mech-side__facts dd { margin: 0 0 12px; font-size: 14px; line-height: 1.45; }
.mech-side__cat {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 8px; padding-top: 14px;
  border-top: 1px solid var(--on-dark-line);
  font-size: 13px; color: var(--on-dark-2);
}
.mech-side__cat a { color: #fff; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,.3); }

/* Крафт: окно верстака остаётся игровым — это кусок Minecraft, а не сайта. */
.crafts { display: flex; flex-wrap: wrap; gap: 16px; }
.craft {
  margin: 0;
  width: fit-content; max-width: 100%;
  padding: 10px 12px 12px;
  border-radius: 6px;
  background: #c6c6c6;
  box-shadow: inset -2px -2px 0 #8b8b8b, inset 2px 2px 0 #fdfdfd;
}
.craft__title { margin-bottom: 8px; font-family: var(--font-mono); font-size: 12px; font-weight: 500; color: #3f3f46; }
.craft__frame { position: relative; width: 366px; max-width: 100%; }
.craft__bg { width: 100%; height: 100%; image-rendering: pixelated; }
.cslot { position: absolute; display: grid; place-items: center; }
.cslot img { width: 100%; height: 100%; object-fit: contain; image-rendering: pixelated; }
.cslot img[src*="assets/models/"], .cslot img.is-3d, .craft__result img.is-3d { image-rendering: auto; }
.cslot__n {
  position: absolute; right: -2px; bottom: -4px;
  font-family: var(--font-mono); font-size: 12px; font-weight: 700;
  color: #fff; text-shadow: 1.5px 1.5px 0 rgba(0,0,0,.75);
}
.craft__row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.craft__arrow {
  width: 22px; height: 15px;
  background: #8b8b8b;
  clip-path: polygon(0 34%, 62% 34%, 62% 0, 100% 50%, 62% 100%, 62% 66%, 0 66%);
}
.craft__result {
  display: grid; place-items: center;
  width: 46px; height: 46px;
  background: #8b8b8b;
  box-shadow: inset 2px 2px 0 #373737, inset -2px -2px 0 #fdfdfd;
}
.craft__result img { width: 34px; height: 34px; object-fit: contain; image-rendering: pixelated; }
.craft__note { margin: 10px 2px 0; max-width: 366px; font-size: 12px; line-height: 1.5; color: #3f3f46; }

.media-frame { margin: 28px 0 0; border-radius: 20px; overflow: hidden; background: var(--fill); }
.media-frame img, .media-frame video { display: block; width: 100%; height: auto; }
.rich-link { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.rich-link:hover { text-decoration-color: currentColor; }
.media-frame figcaption { padding: 10px 16px 12px; font-size: 13px; color: var(--muted); }
.media-slot {
  display: grid; place-items: center;
  margin-top: 28px;
  aspect-ratio: 16 / 6;
  border-radius: 20px;
  border: 1.5px dashed var(--line-2);
  color: var(--muted);
  text-align: center;
  font-size: 13.5px;
}
.media-slot__label { padding: 0 20px; }
.media-slot__label b { display: block; margin-bottom: 2px; font-weight: 600; color: var(--ink-2); }
/* место под ролик держим заранее, пока не пришли размеры кадра */
.media-frame video { aspect-ratio: 16 / 9; background: #0b0b0d; }
.mech__h2 + .media-frame, .mech__h2 + .media-slot { margin-top: 0; }
.mech__p { margin: 0 0 12px; max-width: 68ch; font-size: 15.5px; line-height: 1.65; color: var(--ink-2); }

/* Текстуры из игры плиткой: узоры отпечатков и т. п. */
.tex-tiles { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.tex-tile {
  margin: 0; width: 108px;
  display: grid; justify-items: center; gap: 8px;
  padding: 14px 8px 10px;
  border-radius: 16px;
  background: var(--dark);
}
.tex-tile img { width: 64px; height: 64px; image-rendering: pixelated; }
.tex-tile figcaption { font-size: 12.5px; line-height: 1.3; text-align: center; color: var(--on-dark-2); }

/* 3D-модель в карточке предмета */
.mech-side__art.mech-side__art--3d { display: block; place-items: normal; padding: 0; }
.m3d { position: relative; }
.m3d__stage { position: relative; aspect-ratio: 1 / 1; }
.m3d__canvas {
  position: absolute; inset: 0;
  display: block; width: 100%; height: 100%;
  opacity: 0; transition: opacity .4s;
  cursor: grab; touch-action: pan-y;
}
.m3d__canvas.is-drag { cursor: grabbing; }
.m3d.is-ready .m3d__canvas { opacity: 1; }
.m3d.is-failed .m3d__canvas { display: none; }
.mech-side__art .m3d__fallback { position: absolute; inset: 0; margin: auto; transition: opacity .3s; }
.m3d.is-ready .m3d__fallback { opacity: 0; pointer-events: none; }
.m3d__hint { position: absolute; left: 0; right: 0; bottom: 6px; text-align: center; font-size: 11.5px; color: var(--on-dark-2); pointer-events: none; transition: opacity .3s; }
.m3d.is-touched .m3d__hint { opacity: 0; }
.m3d__variants { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; padding: 0 12px 12px; }
.m3d__vlabel { grid-column: 1 / -1; padding-left: 2px; font-size: 12.5px; color: var(--on-dark-2); }
.m3d__chip {
  padding: 6px 0;
  border: 0; border-radius: 999px;
  background: rgba(255,255,255,.08); color: var(--on-dark-2);
  font: inherit; font-size: 12px; line-height: 1; letter-spacing: .06em;
  cursor: pointer;
}
.m3d__chip:hover { background: rgba(255,255,255,.14); color: #fff; }
.m3d__chip.is-on { background: #fff; color: #111; }
.m3d__chip:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* ============ Лор ============ */
.season-tag { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; font-size: 12.5px; font-weight: 600; letter-spacing: .06em; color: var(--muted); }
.season-tag .dot { width: 20px; height: 1.5px; background: var(--ink); }
.timeline { position: relative; padding-left: 30px; }
.timeline::before { content: ''; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 1.5px; background: var(--line-2); }
.tl-item { position: relative; padding-bottom: 14px; opacity: 0; translate: 0 14px; animation: rise .55s var(--ease) forwards; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item__dot { position: absolute; left: -30px; top: 20px; width: 13px; height: 13px; border-radius: 50%; background: var(--card); box-shadow: inset 0 0 0 2.5px var(--ink); }
.tl-item__card { padding: 18px 22px 20px; border-radius: 18px; background: var(--fill); }
.tl-item__date { font-size: 12px; font-weight: 600; letter-spacing: .05em; color: var(--muted); }
.tl-item__title { margin: 4px 0 6px; font-size: 18px; }
.tl-item__body { margin: 0; font-size: 14.5px; line-height: 1.65; color: var(--ink-2); }
.tl-item__body + .tl-item__body { margin-top: 10px; }
.tl-item__quote { margin: 14px 0 0; padding-left: 14px; box-shadow: inset 2px 0 0 var(--ink); font-size: 15px; font-weight: 600; color: var(--ink); }
.lore-note { max-width: 70ch; margin: -8px 0 22px; font-size: 14.5px; line-height: 1.6; color: var(--muted); }
.js-reveal .timeline .tl-item { animation-play-state: paused; }
.js-reveal .timeline.is-in .tl-item { animation-play-state: running; }
.tl-item:nth-child(2) { animation-delay: .07s; }
.tl-item:nth-child(3) { animation-delay: .14s; }
.tl-item:nth-child(4) { animation-delay: .21s; }
.tl-item:nth-child(5) { animation-delay: .28s; }
.tl-item:nth-child(n+6) { animation-delay: .35s; }
.season-next { padding: 26px 28px; border-radius: 22px; background: var(--dark); color: var(--on-dark); }
.season-next__label { font-size: 12px; font-weight: 600; letter-spacing: .06em; color: var(--on-dark-2); }
.season-next__body { margin: 10px 0 22px; max-width: 60ch; font-size: 16px; line-height: 1.65; color: var(--on-dark-2); }
.season-next .btn--primary { background: var(--on-dark); color: var(--dark); }

/* ============ О сервере ============ */
.about-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 26px; }
.stat { padding: 18px 20px; border-radius: 18px; background: var(--fill); }
.stat__n { font-size: 32px; font-weight: 500; letter-spacing: -.045em; line-height: 1.1; }
.stat__n small { margin-left: 4px; font-size: 14px; letter-spacing: 0; color: var(--muted); }
.stat__label { margin-top: 4px; font-size: 13px; color: var(--muted); }
.about-prose p { max-width: 70ch; margin: 0 0 14px; font-size: 16px; line-height: 1.7; color: var(--ink-2); }
.about-prose strong { color: var(--ink); font-weight: 600; }
.features-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.feat { padding: 18px 20px 20px; border-radius: 18px; background: var(--fill); }
.feat__num { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.feat__title { margin: 8px 0 6px; font-size: 16px; }
.feat__body { margin: 0; font-size: 14px; line-height: 1.58; color: var(--ink-2); }

/* ============ Правила ============ */
.rules-render { float: right; width: 168px; margin: 0 0 20px 24px; border-radius: 20px; overflow: hidden; }
.rule-groups { clear: both; }
@media (max-width: 560px) { .rules-render { width: 104px; margin-left: 16px; } }
.rules-render img { width: 100%; height: auto; }
.rule-groups { display: grid; gap: 10px; }
.rule-group { border-radius: 18px; background: var(--fill); overflow: hidden; }
.rule-group__head {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 15px 18px;
  text-align: left;
}
.rule-group__title { display: flex; align-items: center; gap: 12px; font-size: 16px; font-weight: 600; letter-spacing: -.015em; }
.rule-group__num {
  flex: none;
  display: grid; place-items: center;
  min-width: 30px; height: 30px; padding: 0 6px;
  border-radius: 999px;
  background: var(--card);
  font-size: 12px; font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.rule-group--open .rule-group__num { background: var(--ink); color: var(--on-ink); }
.rule-group__chev { color: var(--muted); transition: transform .3s var(--ease); }
.rule-group--open .rule-group__chev { transform: rotate(90deg); color: var(--ink); }
.rule-group__body { max-height: 0; opacity: 0; overflow: hidden; transition: max-height .45s ease, opacity .3s; }
.rule-group--open .rule-group__body { max-height: 30000px; opacity: 1; }
.rule-group__intro { margin: 0 18px 6px 60px; font-size: 13.5px; font-style: italic; color: var(--muted); }
.rule-group__list { list-style: none; margin: 0; padding: 0 18px 16px 60px; }
.rule-group__list > li {
  position: relative;
  padding: 11px 0;
  border-top: 1px solid var(--fill-2);
  font-size: 14.5px; line-height: 1.6; color: var(--ink-2);
}
.rule-item__num { margin-right: 4px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.rule-group__sublist { list-style: none; margin: 8px 0 0; padding: 0 0 0 14px; display: grid; gap: 6px; }
.rule-group__sublist li { position: relative; padding-left: 14px; font-size: 13.5px; color: var(--muted); }
.rule-group__sublist li::before { content: '–'; position: absolute; left: 0; }
.rule-group__list > li.rule-item--head {
  margin-top: 10px; padding: 14px 0 6px;
  font-size: 13px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: var(--muted);
}
.rule-group__list > li.rule-item--head:first-child { margin-top: 0; border-top: 0; }
.rule-group__list > li.rule-item--head .rule-item__num { color: var(--muted); }
.rule-group__list > li.rule-item--note { font-style: italic; color: var(--muted); }
.rules-final { margin: 18px 4px 0; font-size: 13.5px; line-height: 1.6; color: var(--muted); }
.rules-summary {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px;
}
.rules-summary__item { padding: 18px 18px 16px; border-radius: 18px; background: var(--fill); }
.rules-summary__num { display: block; margin-bottom: 10px; font-size: 12px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.rules-summary__item b { display: block; font-size: 15.5px; font-weight: 600; letter-spacing: -.015em; }
.rules-summary__item p { margin: 6px 0 0; font-size: 14px; line-height: 1.55; color: var(--ink-2); }

/* ============ Скриншоты ============ */
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.gallery__item {
  position: relative; display: block;
  aspect-ratio: 16 / 10;
  border-radius: 18px; overflow: hidden;
  background: var(--fill);
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gallery__item:hover img { transform: scale(1.04); }
.gallery__cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 34px 14px 12px;
  background: linear-gradient(transparent, rgba(0,0,0,.66));
  color: #fff; font-size: 13px; text-align: left;
  opacity: 0; transition: opacity .25s;
}
.gallery__item:hover .gallery__cap, .gallery__item:focus-visible .gallery__cap { opacity: 1; }
@media (hover: none) { .gallery__cap { opacity: 1; } }
.lightbox {
  position: fixed; inset: 0; z-index: 120;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  padding: 24px;
  background: rgba(14, 14, 16, .9);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.lightbox img { max-width: min(1400px, 94vw); max-height: 78vh; width: auto; height: auto; border-radius: 18px; }
.lightbox__close {
  position: absolute; top: 20px; right: 20px;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--on-dark); color: var(--dark); font-size: 24px; line-height: 1;
}
.lightbox__cap { color: #fff; font-size: 15px; }
.lightbox__hint { color: rgba(255,255,255,.5); font-size: 12.5px; }

/* ============ Магазин ============ */
.shop-paused {
  display: flex; gap: 12px; align-items: flex-start;
  margin: 0 0 16px; padding: 16px 20px;
  border-radius: var(--r-lg); background: var(--card); box-shadow: var(--shadow);
  border: 1px solid var(--line-2);
}
.shop-paused > svg { flex: none; margin-top: 2px; color: var(--muted); }
.shop-paused b { display: block; font-size: 15px; font-weight: 600; }
.shop-paused p { margin: 4px 0 0; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.sponsor-included { padding: 28px 32px 30px; border-radius: var(--r-lg); background: var(--card); box-shadow: var(--shadow); }
.sponsor-included__title { margin: 0 0 10px; font-size: 20px; }
.sponsor-included__intro { margin: 0 0 14px; max-width: 76ch; font-size: 15px; line-height: 1.65; color: var(--ink-2); }
.sponsor-included__intro strong { color: var(--ink); font-weight: 600; }
.sponsor-included__list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px;
}
.sponsor-included__list li { position: relative; padding-left: 30px; font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }
.sponsor-included__list li::before {
  content: ''; position: absolute; left: 0; top: 1px;
  width: 19px; height: 19px; border-radius: 50%;
  background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat;
}
/* В тёмной теме кружок светлый — галочка нужна тёмная, иначе её не видно. */
:root[data-theme="dark"] .sponsor-included__list li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23151517' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
}
.shop-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 20px 0; }
.plan {
  position: relative;
  display: flex; flex-direction: column; gap: 8px;
  padding: 26px 26px 24px;
  border-radius: var(--r-lg);
  background: var(--card);
  box-shadow: var(--shadow);
  transition: transform .25s var(--ease), box-shadow .25s;
}
.plan:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.plan { overflow: hidden; isolation: isolate; }
/* Логотип сервера наискось в углу карточки подписки, как арт у баннеров:
   уходит за край и лежит под текстом. */
.plan__logo {
  position: absolute; z-index: -1; top: -26px; right: -38px;
  width: min(180px, 46%); height: auto;
  transform: rotate(16deg);
  opacity: .9;
  pointer-events: none;
  transition: transform .5s var(--ease);
}
.plan:hover .plan__logo { transform: rotate(10deg) scale(1.05); }
.plan--featured .plan__logo { opacity: 1; filter: drop-shadow(0 10px 30px rgba(190, 60, 255, .45)); }
/* подпись не залезает под логотип */
.plan__tagline { max-width: 62%; }
@media (max-width: 720px) { .plan__logo { width: 140px; top: -18px; right: -30px; } }
.plan--featured { background: var(--dark); color: var(--on-dark); }
.plan--featured .plan__tagline { color: var(--on-dark-2); }
.plan--featured .btn--primary { background: var(--on-dark); color: var(--dark); }
.plan__name { margin: 0; font-size: 15px; font-weight: 500; letter-spacing: -.01em; }
.plan__price { font-size: 42px; font-weight: 500; letter-spacing: -.05em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.plan__tagline { flex: 1; margin: 0 0 12px; font-size: 14px; line-height: 1.55; color: var(--muted); }
.plan .btn { width: 100%; }
.plan .btn:disabled, .bnr__btn:disabled { opacity: .5; cursor: default; }

.wiki-modal__field span { display: block; margin-bottom: 6px; font-size: 13px; color: var(--muted); }
.wiki-modal__field input, .wiki-modal__field select, .wiki-modal__field textarea, .wiki-editor__textarea {
  width: 100%;
  height: 48px; padding: 0 16px;
  border-radius: 14px;
  border: 1.5px solid transparent;
  background: var(--fill);
  font: inherit; font-size: 15px; color: var(--ink);
  outline: none;
  transition: border-color .18s, background-color .18s;
}
.wiki-modal__field input:focus, .wiki-modal__field select:focus,
.wiki-modal__field textarea:focus, .wiki-editor__textarea:focus { border-color: var(--ink); background: var(--card); }
.wiki-modal__error {
  margin-bottom: 14px; padding: 11px 14px;
  border-radius: 12px;
  background: #fdeced; color: #a3262b;
  font-size: 14px;
}
.shop-note { margin: 16px 6px 0; font-size: 14px; line-height: 1.55; color: var(--muted); }
.shop-note strong { color: var(--ink); }
.shop-note a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* ============ Статус ============ */
.stat-bar {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 22px 26px;
  border-radius: var(--r-lg);
  background: var(--dark); color: var(--on-dark);
  box-shadow: var(--shadow);
}
.stat-bar__pulse { position: relative; width: 14px; height: 14px; flex: none; }
.stat-bar__pulse i { position: absolute; inset: 0; border-radius: 50%; background: var(--tone, #8d8d94); }
.stat-bar__pulse i + i { animation: ping 2s ease-out infinite; }
@keyframes ping { from { transform: scale(1); opacity: .6; } to { transform: scale(2.8); opacity: 0; } }
.stat-bar--ok { --tone: var(--ok); }
.stat-bar--bad { --tone: var(--bad); }
.stat-bar--warn { --tone: var(--warn); }
.stat-bar--idle { --tone: #8d8d94; }
.stat-bar__text { display: flex; flex-direction: column; gap: 2px; }
.stat-bar__text strong { font-size: 19px; font-weight: 600; letter-spacing: -.02em; }
.stat-bar__text span { font-size: 13.5px; color: var(--on-dark-2); }
.stat-bar__ago { margin-left: auto; font-size: 13px; color: var(--on-dark-2); }
.stat-bar__refresh {
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 16px;
  border-radius: 999px;
  background: var(--on-dark); color: var(--dark);
  font-size: 13.5px; font-weight: 600;
}
.stat-bar__refresh:disabled { opacity: .6; cursor: default; }
.stat-note { margin: 14px 6px 0; font-size: 14px; color: var(--muted); }
.stat-list { margin-top: 20px; padding: 6px 26px; border-radius: var(--r-lg); background: var(--card); box-shadow: var(--shadow); }
.stat-row {
  display: grid; grid-template-columns: 12px 200px minmax(0, 1fr) 130px 130px; gap: 16px; align-items: center;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.stat-row:first-child { border-top: none; }
.stat-row__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--tone, #b9b9bf); }
.stat-row--ok { --tone: var(--ok); }
.stat-row--bad { --tone: var(--bad); }
.stat-row--warn { --tone: var(--warn); }
.stat-row__name { font-size: 15px; font-weight: 600; }
.stat-row__desc { font-family: var(--font-mono); font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.stat-row__latency { font-size: 13.5px; color: var(--ink-2); text-align: right; font-variant-numeric: tabular-nums; }
.stat-row__state {
  justify-self: end;
  padding: 5px 12px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600;
  background: var(--fill); color: var(--ink-2);
}
.stat-row__state--ok { background: var(--ink); color: var(--on-ink); }
.stat-row__state--bad { background: #fdeced; color: #a3262b; }

/* ============ Обновления ============ */
.updates { display: grid; gap: 16px; }
.update {
  display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 24px;
  padding: 26px 30px 28px;
  border-radius: var(--r-lg);
  background: var(--card);
  box-shadow: var(--shadow);
}
.update__date { font-size: 14px; font-weight: 500; color: var(--muted); }
.update__title { margin: 0 0 14px; font-size: 20px; }
.update__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.update__list li { display: flex; align-items: flex-start; gap: 12px; }
.update__text { font-size: 15.5px; line-height: 1.6; color: var(--ink-2); }
.tag {
  flex: none; margin-top: 2px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11.5px; font-weight: 600;
  white-space: nowrap;
}
.tag--add { background: var(--ink); color: var(--on-ink); }
.tag--fix { background: var(--fill); color: var(--ink); }
.tag--change { box-shadow: inset 0 0 0 1.5px var(--ink); color: var(--ink); }
.tag--remove { background: #fdeced; color: #a3262b; }
.updates__foot { margin: 18px 6px 0; font-size: 14px; color: var(--muted); }
.updates__foot a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* ============ Поддержка ============ */
.support-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-bottom: 20px; }
.support-card {
  display: flex; flex-direction: column; align-items: flex-start;
  padding: 28px 30px;
  border-radius: var(--r-lg);
  background: var(--card);
  box-shadow: var(--shadow);
  transition: transform .25s var(--ease), box-shadow .25s;
}
.support-card:first-child { background: var(--dark); color: var(--on-dark); }
.support-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.support-card__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--fill); }
.support-card:first-child .support-card__icon { background: var(--dark-2); }
.support-card__title { margin: 20px 0 8px; font-size: 20px; }
.support-card__body { flex: 1; margin: 0 0 22px; max-width: 48ch; font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.support-card:first-child .support-card__body { color: var(--on-dark-2); }
.support-card__more {
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 16px;
  border-radius: 999px;
  background: var(--ink); color: var(--on-ink);
  font-size: 14px; font-weight: 600;
}
.support-card:first-child .support-card__more { background: var(--on-dark); color: var(--dark); }
.support-tips { padding: 26px 30px 28px; border-radius: var(--r-lg); background: var(--card); box-shadow: var(--shadow); }
.support-tips__title { margin: 0 0 16px; font-size: 18px; }

/* ============ Окна вики ============ */
.wiki-modal {
  position: fixed; inset: 0; z-index: 110;
  display: grid; place-items: center;
  padding: 20px;
  background: rgba(20, 20, 24, .3);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.wiki-modal__inner {
  position: relative;
  width: min(460px, 100%);
  padding: 30px 30px 28px;
  border-radius: 28px;
  background: var(--card);
  box-shadow: 0 40px 90px -30px rgba(0,0,0,.35);
}
.wiki-modal__inner--wide { width: min(740px, 100%); }
.wiki-modal__close {
  position: absolute; top: 16px; right: 16px;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--fill); font-size: 20px; line-height: 1;
}
.wiki-modal__title { margin: 0 0 8px; font-size: 22px; }
.wiki-modal__sub { margin: 0 0 18px; font-size: 14.5px; line-height: 1.6; color: var(--ink-2); }
/* команду с кодом не рвём посередине: «/wikilogin» и цифры — одной строкой */
.wiki-modal__sub code { white-space: nowrap; }
.wiki-modal__field { display: block; margin-bottom: 14px; }
.wiki-modal__field textarea, .wiki-editor__textarea { height: auto; min-height: 180px; padding: 14px 16px; resize: vertical; line-height: 1.6; }
.wiki-modal__hint { font-size: 13.5px; color: var(--muted); }
.wiki-modal__hint--center { margin: 10px 0 0; text-align: center; font-size: 12.5px; line-height: 1.5; }
/* Кнопка Discord — в их фирменном цвете: так её узнают с первого взгляда. */
.btn--discord { width: 100%; background: #5865f2; color: #fff; }
.btn--discord:hover { background: #4752c4; transform: translateY(-1px); }
.wiki-modal__or {
  display: flex; align-items: center; gap: 12px;
  margin: 20px 0 14px;
  font-size: 12.5px; color: var(--muted);
}
.wiki-modal__or::before, .wiki-modal__or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.wiki-modal__ok { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 16px 0; text-align: center; }
.wiki-code {
  margin: 16px 0 18px; padding: 18px;
  border-radius: 18px;
  background: var(--fill);
  font-family: var(--font-mono); font-size: 32px; font-weight: 500; letter-spacing: .22em; text-align: center;
}
.wiki-editor__bar { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.wiki-editor__hint { margin-left: auto; font-size: 13px; color: var(--muted); }
.wiki-editor__textarea { min-height: 380px; font-family: var(--font-mono); font-size: 14px; }
.wiki-editor__actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 14px; }

/* ============ Поиск ============ */
.palette {
  position: fixed; inset: 0; z-index: 130;
  padding: 12vh 16px 16px;
  background: rgba(20, 20, 24, .26);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  animation: fadeIn .16s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.palette__box {
  width: min(620px, 100%);
  margin: 0 auto;
  border-radius: 26px;
  background: var(--card);
  box-shadow: 0 40px 90px -30px rgba(0,0,0,.4);
  overflow: hidden;
  animation: pop .22s var(--ease);
}
@keyframes pop { from { transform: translateY(8px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
.palette__field {
  display: flex; align-items: center; gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}
.palette__field input {
  flex: 1; min-width: 0;
  border: none; outline: none; background: transparent;
  font: inherit; font-size: 17px; color: var(--ink);
}
.palette__field input::placeholder { color: #b0b0b6; }
.palette__list { max-height: min(52vh, 440px); overflow-y: auto; padding: 8px; }
.palette__cap { padding: 8px 12px 6px; font-size: 12px; font-weight: 500; color: var(--muted); }
.palette__empty { padding: 22px 12px; text-align: center; font-size: 14px; color: var(--muted); }
.palette__item {
  width: 100%;
  display: flex; align-items: center; gap: 12px;
  padding: 9px 12px;
  border-radius: 14px;
  text-align: left;
}
.palette__item.is-sel { background: var(--fill); }
.palette__ico { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--fill); color: var(--ink-2); }
.palette__item.is-sel .palette__ico { background: var(--card); }
.palette__title { flex: 1; min-width: 0; font-size: 15px; font-weight: 500; }
.palette__kind { font-size: 12px; color: var(--muted); }

/* ============ Подвал, тост, загрузка ============ */
.ftr {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 30px 8px 6px;
  font-size: 13px; color: var(--muted);
}
.ftr__sep { width: 4px; height: 4px; border-radius: 50%; background: #b9b9bf; }
.ftr__links { margin-left: auto; display: flex; gap: 6px; }
.ftr__links a {
  display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--glass-soft);
  color: var(--ink-2);
  transition: background-color .18s, color .18s;
}
.ftr__links a:hover { background: var(--ink); color: var(--on-ink); }

.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 140;
  display: flex; align-items: center; gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--ink); color: var(--on-ink);
  font-size: 14px; font-weight: 500;
  box-shadow: 0 20px 40px -16px rgba(0,0,0,.4);
  transform: translate(-50%, 16px);
  opacity: 0; pointer-events: none;
  transition: opacity .25s, transform .3s var(--ease);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

.boot {
  position: fixed; inset: 0; z-index: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
}
.boot img { width: 60px; height: auto; animation: bob 1.6s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-6px); } }
.boot__bar { width: 120px; height: 3px; border-radius: 3px; background: rgba(20,20,24,.1); overflow: hidden; }
.boot__bar span { display: block; width: 40%; height: 100%; border-radius: inherit; background: var(--ink); animation: slide 1.1s ease-in-out infinite; }
@keyframes slide { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
/* Скелетон до старта React: те же рамка и панель, что у сайта, вместо
   содержимого — серые плашки с бегущим бликом. */
.sk__side { gap: 12px; }
.sk__logo { display: flex; align-items: center; gap: 12px; padding: 0 10px 14px; }
.sk__logo img { width: 32px; height: auto; }
.sk__line, .sk__pill, .sk__card { display: block; border-radius: 12px; background: var(--fill); position: relative; overflow: hidden; }
.sk__line { height: 12px; }
.sk__line--h { width: 140px; height: 28px; margin-bottom: 12px; }
.sk__pill { height: 40px; border-radius: 14px; }
.sk__top { padding: 18px 6px 26px; }
.sk__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.sk__card { height: 220px; border-radius: var(--r-lg); background: var(--card); box-shadow: var(--shadow); }
.sk__card--wide { grid-column: span 2; }
.sk__line::after, .sk__pill::after, .sk__card::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 20%, rgba(255,255,255,.55) 50%, transparent 80%);
  transform: translateX(-100%); animation: sk-shine 1.4s ease-in-out infinite;
}
:root[data-theme="dark"] .sk__line::after, :root[data-theme="dark"] .sk__pill::after, :root[data-theme="dark"] .sk__card::after {
  background: linear-gradient(100deg, transparent 20%, rgba(255,255,255,.06) 50%, transparent 80%);
}
@keyframes sk-shine { to { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) { .sk__line::after, .sk__pill::after, .sk__card::after { animation: none; } }
@media (max-width: 1060px) { .sk__grid { grid-template-columns: minmax(0, 1fr); } .sk__card--wide { grid-column: auto; } }
.sk-article { display: grid; gap: 12px; text-align: left; }
.noscript { position: relative; z-index: 1; max-width: 640px; margin: 60px auto; padding: 28px; border-radius: 24px; background: var(--card); }

/* Старая плашка онлайна — на случай, если её где-то оставят. */
.online-badge { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.online-badge__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }

/* ============ Появление ============ */
@keyframes rise { to { opacity: 1; translate: 0 0; } }
.stagger > * { opacity: 0; translate: 0 14px; animation: rise .55s var(--ease) forwards; }
.js-reveal .stagger > * { animation-play-state: paused; }
.js-reveal .stagger.is-in > * { animation-play-state: running; }
.stagger > *:nth-child(2) { animation-delay: .05s; }
.stagger > *:nth-child(3) { animation-delay: .1s; }
.stagger > *:nth-child(4) { animation-delay: .15s; }
.stagger > *:nth-child(5) { animation-delay: .2s; }
.stagger > *:nth-child(6) { animation-delay: .25s; }
.stagger > *:nth-child(7) { animation-delay: .3s; }
.stagger > *:nth-child(n+8) { animation-delay: .34s; }
.rvl > * { opacity: 0; translate: 0 12px; animation: rise .5s var(--ease) forwards; }
.js-reveal .rvl > * { animation-play-state: paused; }
.js-reveal .rvl.is-in > * { animation-play-state: running; }
.rvl > *:nth-child(2) { animation-delay: .06s; }
.rvl > *:nth-child(3) { animation-delay: .12s; }
.rvl > *:nth-child(4) { animation-delay: .18s; }
.rvl > *:nth-child(n+5) { animation-delay: .24s; }

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

/* ============ Нижняя панель (телефон) ============ */
.tabbar { display: none; }

/* ============ Адаптив ============ */
@media (max-width: 1280px) {
  .hero { grid-column: 1 / -1; }
  .faq-card, .community { grid-column: 1 / -1; }
  .community { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .community .card__head, .community__bot { grid-column: 1 / -1; }
  .strip__row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mech-page { grid-template-columns: minmax(0, 1fr) 280px; }
}

@media (max-width: 1060px) {
  .shell {
    grid-template-columns: minmax(0, 1fr);
    margin: 12px;
    min-height: calc(100vh - 24px);
    padding: 14px 16px calc(96px + env(safe-area-inset-bottom, 0px));
    border-radius: 32px;
  }
  .side { display: none; }
  .top { padding: 6px 2px 20px; }
  .top__mark {
    display: grid; place-items: center; flex: none;
    width: 46px; height: 46px; border-radius: 50%;
    background: var(--card); box-shadow: var(--shadow);
  }
  .top__mark img { width: 26px; height: auto; }
  .tabbar {
    position: fixed; z-index: 90;
    left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    max-width: 520px; margin: 0 auto;
    display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px;
    padding: 6px;
    border-radius: 26px;
    background: var(--tabbar-bg);
    border: 1px solid var(--glass-line);
    box-shadow: 0 20px 50px -20px rgba(20,20,24,.35);
    -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%);
  }
  .tabbar__item {
    display: flex; flex-direction: column; align-items: center; gap: 3px;
    padding: 8px 2px 7px;
    border-radius: 20px;
    font-size: 11px; font-weight: 500;
    color: var(--muted);
    transition: background-color .18s, color .18s;
  }
  .tabbar__item.is-active { background: var(--ink); color: var(--on-ink); }
  .toast { bottom: calc(100px + env(safe-area-inset-bottom, 0px)); }
  .mech-page { grid-template-columns: minmax(0, 1fr); }
  .mech-side { position: static; order: -1; }
  .mech-side__card { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 0 22px; }
  .mech-side__name { grid-column: 1 / -1; }
  .mech-side__art { grid-row: span 3; margin: 14px 0 0; padding: 18px 0; align-self: start; }
  .mech-side__art img { width: 104px; height: 104px; }
  .mech-side__art .pxi { width: 80px; height: 80px; }
  /* 3D-модель в узкой колонке не помещается — даём ей всю ширину карточки */
  .mech-side__art.mech-side__art--3d { grid-column: 1 / -1; grid-row: auto; padding: 0; }
  .mech-side__art--3d .m3d__stage { max-width: 300px; margin: 0 auto; }
  .mech-side__art--3d .m3d__variants { max-width: 340px; margin: 0 auto; }
  .mech-side__art--3d .m3d__fallback { width: 104px; height: 104px; }
}

@media (max-width: 860px) {
  .wiki-index__top, .wiki-cats, .support-grid, .shop-grid { grid-template-columns: minmax(0, 1fr); }
  .about-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .features-grid, .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sponsor-included__list { grid-template-columns: minmax(0, 1fr); }
  .strip__row--3 { grid-template-columns: minmax(0, 1fr); }
  .stat-row { grid-template-columns: 12px minmax(0, 1fr) auto; }
  .stat-row__desc, .stat-row__latency { display: none; }
  .update { grid-template-columns: minmax(0, 1fr); gap: 8px; }
}

@media (max-width: 720px) {
  .shell::before { border-radius: 0; border: none; }
  .shell { margin: 0; border-radius: 0; padding: 12px 14px calc(96px + env(safe-area-inset-bottom, 0px)); min-height: 100vh; }
  .bento { gap: 14px; }
  .bento > * { grid-column: 1 / -1 !important; }
  .hero__main { max-width: none; }
  .community { grid-template-columns: minmax(0, 1fr); }
  .top { gap: 12px; padding-bottom: 16px; }
  .top__title { font-size: 25px; }
  .top__sub { display: none; }
  .top__cta { display: none; }
  /* Холст куба на телефоне не рисуем вовсе (см. PageHome) — прячем и плитку. */
  .wiki-search kbd { display: none; }
  .card, .wiki-card, .wiki-cat-card { padding: 20px; border-radius: 24px; }
  .hero { padding: 24px 22px 24px; }
  .hero__logo { margin-bottom: 18px; }
  .hero__desc { font-size: 15.5px; margin-bottom: 22px; }
  .hero__cta .btn { flex: 1 1 auto; }
  .server__num b { font-size: 48px; }
  .strip__head { margin: 8px 4px 12px; }
  .strip__head h2 { font-size: 19px; }
  .strip__row { gap: 14px; }
  .mcard, .mcard--more { min-height: 190px; }
  .faq__item.is-open .faq__a-inner { padding-right: 0; }
  .wiki-article, .wiki-empty, .mech, .wiki-static .block, .sponsor-included, .support-card, .support-tips, .update { padding: 22px 20px 24px; border-radius: 24px; }
  .wiki-search { flex: 1; }
  .keybind { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .stat-bar__ago { margin-left: 0; width: 100%; }
  .rule-group__intro { margin-left: 18px; }
  .rule-group__list { padding-left: 18px; }
  .ftr { padding-top: 22px; }
  .ftr__sep, .ftr > span:nth-child(3) { display: none; }
  .craft__frame { width: 100%; }
  .craft { width: 100%; }
}

@media (max-width: 480px) {
  .strip__row { grid-template-columns: minmax(0, 1fr); }
  .mcard--more { min-height: 84px; flex-direction: row; }
  .server__nums { gap: 24px; }
  .about-grid, .features-grid { grid-template-columns: minmax(0, 1fr); }
  .gallery { grid-template-columns: minmax(0, 1fr); }
  .mech-side__card { grid-template-columns: minmax(0, 1fr); }
  .mech-side__art { grid-row: auto; }
  .wiki-me .wiki-author { display: none; }
}


/* ============ Страница профиля ============ */
/* Слева баннер ЦЕЛИКОМ — вся шапка карточки из игры, в окне фото живая
   3D-модель игрока, как бюст-«фотография» в игре. Справа ник, таблетки
   (статус, роль, привязки), «о себе» и четыре цифры. */
.prof {
  padding: 0; overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  grid-template-areas: "banner body";
  align-items: start;
}
.prof.is-loading .prof__body { opacity: .6; }
.prof__banner {
  grid-area: banner;
  position: relative;
  margin: 14px 0 14px 14px;
  border-radius: 20px;
  overflow: hidden;
  background: var(--fill);
  box-shadow: 0 0 0 1px var(--line);
}
/* Пиксель-арт: только ближайший сосед, иначе пиксели плывут в кашу. */
.prof__art { display: block; width: 100%; height: auto; aspect-ratio: 105 / 59; image-rendering: pixelated; }
/* Окно фото: бумага окна поверх «иконки гостя» с арта, в ней 3D-модель. */
.prof__photo {
  position: absolute; z-index: 1;
  background: rgb(230, 226, 226);
  opacity: 0; transition: opacity .35s var(--ease);
  cursor: grab; touch-action: pan-y;
}
.prof__photo.is-on, .prof__photo:has(.prof__bust) { opacity: 1; }
.prof__photo:active { cursor: grabbing; }
.prof__photo canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.prof__bust { image-rendering: pixelated; }
.prof__body { grid-area: body; min-width: 0; padding: 24px 28px 26px 26px; transition: opacity .2s; }
.prof__head { display: flex; align-items: center; gap: 10px; }
.prof__nick {
  margin: 0; min-width: 0;
  font-size: clamp(28px, 3vw, 40px); font-weight: 700; letter-spacing: -.035em; line-height: 1.1;
  overflow-wrap: anywhere;
}
.prof__share { flex: none; width: 38px; height: 38px; }
.prof__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  height: 38px; padding: 0 14px 0 12px;
  border-radius: 12px;
  background: var(--fill);
  font-size: 14px; font-weight: 500;
  white-space: nowrap;
}
.chip__px { width: 20px; height: 20px; image-rendering: pixelated; }
.chip--status i { width: 9px; height: 9px; border-radius: 3px; background: var(--line-2); }
.chip--status.is-on i { background: var(--ok); box-shadow: 0 0 0 4px rgba(46, 176, 79, .16); }
.chip--rank { color: var(--ink-2); }
.chip--icon { padding: 0 11px; color: var(--ink-2); }
.prof__wardrobe {
  position: absolute; z-index: 3; left: 12px; top: 12px;
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 14px;
  background: var(--plate);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  color: var(--ink);
  transition: transform .2s var(--ease);
}
.prof__wardrobe:hover { transform: translateY(-2px); }
.prof__about { margin: 20px 0 0; max-width: 62ch; font-size: 17px; line-height: 1.6; color: var(--ink-2); overflow-wrap: anywhere; }
.prof__about.is-empty { font-style: italic; color: var(--muted); }
.prof__stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 22px 0 0; }
.pstat { display: flex; flex-direction: column; gap: 3px; padding: 14px 16px 15px; border-radius: 18px; background: var(--fill); min-width: 0; }
.pstat__label { font-size: 12.5px; font-weight: 600; letter-spacing: .02em; color: var(--muted); }
.pstat b { display: flex; align-items: center; gap: 8px; margin-top: 2px; font-size: 30px; font-weight: 600; letter-spacing: -.04em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.pstat__flame img { width: 26px; height: 26px; image-rendering: pixelated; }
.pstat b.pstat__text { font-size: 18px; letter-spacing: -.02em; line-height: 1.3; min-height: 33px; overflow-wrap: anywhere; }
.pstat span:last-child { font-size: 13px; line-height: 1.4; color: var(--muted); }

.prof-empty { max-width: 560px; }
.prof-empty p { margin: 8px 0 18px; color: var(--ink-2); line-height: 1.6; }

.prof-banners { margin-top: 20px; scroll-margin-top: 20px; }
.prof-banners__actions { display: flex; align-items: center; gap: 14px; }
.prof-banners__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.pb {
  position: relative; display: flex; flex-direction: column; gap: 2px;
  padding-bottom: 12px;
  border-radius: 18px;
  background: var(--fill);
  overflow: hidden;
  transition: transform .2s var(--ease), box-shadow .2s;
}
.pb:hover { transform: translateY(-2px); }
.pb.is-on { box-shadow: 0 0 0 2px var(--ink); }
.pb__art { display: block; aspect-ratio: 105 / 59; background-size: 100% 100%; image-rendering: pixelated; margin-bottom: 8px; }
.pb:not(.is-owned) .pb__art { filter: grayscale(1); opacity: .55; }
.pb__name { padding: 0 12px; font-size: 14px; font-weight: 600; }
.pb__state { padding: 0 12px; font-size: 12.5px; color: var(--muted); }
.pb.is-on .pb__state { color: var(--ink); }
.prof-banners__note { margin: 16px 0 0; font-size: 13.5px; color: var(--muted); }
.prof-banners__note code { white-space: nowrap; }

@media (max-width: 860px) {
  /* Телефон: баннер, под ним ник и цифры. */
  .prof { grid-template-columns: minmax(0, 1fr); grid-template-areas: "banner" "body"; }
  .prof__banner { margin: 10px 10px 0; border-radius: 16px; }
  .prof__body { padding: 18px 18px 20px; }
  .prof__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prof-banners__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 420px) {
  .pstat b { font-size: 26px; }
  .prof-banners__actions .card__hint { display: none; }
}

/* ============ Баннеры в магазине ============ */
.banners { margin: 0 0 20px; }
.banners__head { margin: 6px 6px 16px; }
.banners__title { margin: 0; font-size: 21px; }
.banners__sub { margin: 6px 0 0; max-width: 70ch; font-size: 14.5px; color: var(--ink-2); }
.banners__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.bnr {
  position: relative;
  display: flex; align-items: flex-end;
  /* Пропорции самого баннера: верх с артом виден целиком, плашка ложится на
     низ, где в игре стоят поля карточки. */
  aspect-ratio: 105 / 59;
  border-radius: var(--r-lg);
  overflow: hidden;
  background-size: 100% 100%;
  image-rendering: pixelated;
  box-shadow: var(--shadow);
  transition: transform .25s var(--ease), box-shadow .25s;
}
.bnr:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
/* Текст на стеклянной плашке: баннеры бывают и светлые, и тёмные. */
.bnr__body {
  position: relative;
  width: 100%;
  margin: 10px;
  padding: 12px 12px 12px 16px;
  border-radius: 18px;
  background: var(--plate);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  image-rendering: auto;
}
.bnr__name { margin: 0; font-size: 16.5px; }
.bnr__about { margin: 2px 0 8px; font-size: 12.5px; color: var(--ink-2); }
.bnr__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.bnr__price { font-size: 24px; font-weight: 600; letter-spacing: -.04em; }
.bnr__btn { background: var(--ink); color: var(--on-ink); }
.bnr__btn:hover { background: #000; }
@media (max-width: 1100px) { .banners__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* ============ Оплата EasyDonate ============ */
/* Жёлтый — фирменный цвет EasyDonate (#FFBE3D с их логотипа). Это
   единственная яркая кнопка сайта: оплату видно сразу. `--ed-bg` нужен
   значку: верхний ромб логотипа закрывает кольцо цветом самой кнопки. */
.btn--ed {
  --ed-bg: #ffbe3d;
  background: var(--ed-bg); color: #2a1c00;
  font-weight: 600;
  box-shadow: inset 0 -2px 0 rgba(120, 70, 0, .18), 0 6px 18px -8px rgba(255, 170, 30, .7);
}
.btn--ed:hover { --ed-bg: #ffc853; transform: translateY(-1px); box-shadow: inset 0 -2px 0 rgba(120, 70, 0, .18), 0 10px 24px -8px rgba(255, 170, 30, .85); }
.btn--ed:active { --ed-bg: #f6b129; transform: none; }
.btn--ed:disabled { opacity: .6; }
.btn--ed:focus-visible { outline-color: #b77400; }
.ed-mark { flex: none; transition: transform .35s var(--ease); }
.btn--ed:hover .ed-mark { transform: rotate(-8deg) scale(1.06); }
.ed-mark .ed-c { fill: currentColor; }
.ed-mark .ed-y { fill: var(--ed-bg); transition: fill .2s; }
.plan--featured .btn--ed { box-shadow: inset 0 -2px 0 rgba(120, 70, 0, .18), 0 8px 26px -8px rgba(255, 190, 61, .55); }

.pay { width: min(440px, 100%); }
.pay__item {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  margin: 4px 0 18px; padding: 14px 16px;
  border-radius: 14px; background: var(--fill);
}
.pay__name { font-size: 15px; font-weight: 500; }
.pay__price { flex: none; font-size: 22px; font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.pay__go { width: 100%; margin-top: 4px; }
/* Не из России — витрина CloudDonate. Вторым планом под жёлтой кнопкой:
   серая плашка, обычная кнопка-обводка. */
.pay-abroad {
  margin-top: 18px; padding: 14px 16px 16px;
  border-radius: 16px; background: var(--fill);
}
.pay-abroad__head { display: flex; align-items: center; gap: 8px; font-size: 14.5px; }
.pay-abroad__head svg { flex: none; color: var(--muted); }
.pay-abroad__text { margin: 6px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--ink-2); }
.pay-abroad__go { width: 100%; margin-top: 12px; gap: 8px; }
.pay-abroad__go svg { flex: none; color: var(--muted); }

/* Услуга: картинка, описание, цена с кнопкой — одной полосой. */
.extra {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 22px;
  padding: 20px 24px; border-radius: var(--r-lg);
  background: var(--card); box-shadow: var(--shadow);
  transition: transform .25s var(--ease), box-shadow .25s;
}
.extra:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.extra__art {
  display: grid; place-items: center; width: 112px; height: 112px;
  border-radius: 20px; background: var(--fill);
}
/* Живая 3D-модель товара — на тёмной «витрине», как у предметов в вики:
   ледяная снежинка на светлой плитке теряется. */
.extra__art--3d { display: block; place-items: normal; overflow: hidden; background: radial-gradient(closest-side, #3a3a40, var(--dark-2)); }
.extra__art--3d .m3d__fallback { position: absolute; inset: 0; width: 64%; height: 64%; margin: auto; object-fit: contain; image-rendering: pixelated; transition: opacity .3s; }
.extra__art--3d .m3d__hint { display: none; }
.extra__name { margin: 0 0 6px; font-size: 18px; }
.extra__about { margin: 0; max-width: 62ch; font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.extra__about a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.extra__about code { white-space: nowrap; }
.extra__buy { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
@media (max-width: 720px) {
  .extra { grid-template-columns: auto minmax(0, 1fr); padding: 18px; gap: 16px; }
  .extra__art { width: 72px; height: 72px; border-radius: 16px; }
  .extra__art .mdl-icon { width: 60px; height: 60px; }
  .extra__buy { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; }
}

@media (max-width: 620px) { .banners__grid { grid-template-columns: minmax(0, 1fr); } }

.mdl-icon { display: block; object-fit: contain; image-rendering: auto; }
.wiki-row .mdl-icon { flex: none; margin: -5px 0; }
/* На тёмной теме тёмные предметы (шляпа, геймпад) сливаются с фоном — тонкая светлая кромка. */
:root[data-theme="dark"] .mdl-icon { filter: drop-shadow(0 0 1px rgba(255,255,255,.35)); }

.wiki-article__hint { margin: 8px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--muted); }

.shop-paused--ok > svg { color: var(--ok, #2f9e5b); }
.shop-paused a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

.consent {
  position: fixed; z-index: 60; left: 50%; bottom: 20px; transform: translateX(-50%);
  width: min(640px, calc(100% - 32px));
  display: flex; gap: 14px; align-items: center;
  padding: 14px 16px 14px 20px; border-radius: 18px;
  background: var(--card); color: var(--ink); box-shadow: var(--shadow); border: 1px solid var(--line-2);
}
.consent p { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--ink-2); }
.consent a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.consent .btn { flex: none; }
@media (max-width: 760px) { .consent { bottom: 92px; flex-direction: column; align-items: stretch; } }
.ftr__doc { color: inherit; text-decoration: none; }
.ftr__doc:hover { text-decoration: underline; }
.ftr__doc + .ftr__doc { margin-left: 14px; }
