/* ==========================================================================
   HEARTHHOLD — Единая таблица стилей сайта игры (Pixset Studio).
   Визуальная система полностью синхронизирована с внутриигровым интерфейсом:
   "Tactile Forged Charcoal Slate & Burnished Antique Gold" — тёмно-сланцевые
   панели с микротекстурой камня, верхняя золотая кромка (#cfa14a), тёплое
   золото на основных действиях, чёткая типографика Inter и плавная GPU-анимация.
   ========================================================================== */

:root {
  --bg:           #0c0e13;
  --bg-2:         #14161c;
  --panel:        #1e222a;
  --panel-top:    #252a34;
  --line:         rgba(220, 226, 238, 0.16);
  --line-strong:  rgba(220, 226, 238, 0.26);
  --gold:         #cfa14a;
  --gold-bright:  #ebbf63;
  --gold-soft:    #f8dfa5;
  --amber:        #de8833;
  --green:        #10b981;
  --red:          #ef4444;
  --text:         #f5f6f8;
  --text-soft:    #cbd2de;
  --dim:          #929ba9;

  /* Семантические псевдонимы для совместимости со страницами */
  --cyan:         #ebbf63;
  --magenta:      #de8833;
  --orange:       #f8dfa5;
  --y:            #cfa14a;

  --pixel:        'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mono:         'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --code-font:    ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --maxw:         1180px;
}

:root { color-scheme: dark; }

/* ── Скроллбары (идентичны внутриигровым) ────────────────────────────────── */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(207, 161, 74, 0.5) rgba(14, 17, 22, 0.85);
}
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: rgba(14, 17, 22, 0.85); }
::-webkit-scrollbar-thumb {
  background: rgba(207, 161, 74, 0.45);
  border-radius: 4px;
  border: 1px solid rgba(24, 28, 36, 0.6);
}
::-webkit-scrollbar-thumb:hover { background: var(--gold-bright); }
::-webkit-scrollbar-corner { background: var(--bg); }

.tw::-webkit-scrollbar, .toc::-webkit-scrollbar { width: 7px; height: 7px; }
.tw::-webkit-scrollbar-track, .toc::-webkit-scrollbar-track { background: transparent; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* ── Двуязычность (RU / EN) ──────────────────────────────────────────────── */
[data-site-lang="ru"] [data-l="en"],
[data-site-lang="en"] [data-l="ru"] { display: none !important; }

/* ── Отступ для якорных ссылок под липкой шапкой ─────────────────────────── */
:target, section[id], article section, [id]:not(body):not(html) { scroll-margin-top: 88px; }
@media (max-width: 860px) {
  :target, section[id], article section, [id]:not(body):not(html) { scroll-margin-top: 132px; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--mono);
  font-size: 15.5px;
  line-height: 1.62;
  background-image:
    radial-gradient(ellipse 85% 440px at 50% 0%, rgba(207, 161, 74, 0.09), transparent 72%),
    radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 0);
  background-size: 100% 100%, 10px 10px;
  background-attachment: scroll, fixed;
  overflow-x: hidden;
  animation: pageIn .42s ease-out both;
}

/* ── Сетка и секции ──────────────────────────────────────────────────────── */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
section { padding: 56px 0; border-top: 1px solid rgba(220, 226, 238, 0.09); }
section:first-of-type { border-top: none; }

/* ── Типографика ─────────────────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--pixel);
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 16px;
  text-wrap: balance;
}
h1 {
  font-size: clamp(28px, 4.8vw, 48px);
  color: #f8fafc;
  letter-spacing: -0.02em;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.65);
}
h2 {
  font-size: clamp(20px, 3vw, 28px);
  color: #f8fafc;
  letter-spacing: -0.015em;
  position: relative;
  padding-bottom: 12px;
}
h3 {
  font-size: clamp(16px, 2.2vw, 19px);
  font-weight: 700;
  color: var(--gold-bright);
  letter-spacing: -0.005em;
}
h4 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-soft);
}
p  { margin: 0 0 15px; color: var(--text-soft); }
a  {
  color: var(--gold-bright);
  text-decoration: none;
  border-bottom: 1px solid rgba(235, 191, 99, 0.35);
  transition: color .18s ease, border-color .18s ease;
}
a:hover { color: #ffffff; border-bottom-color: var(--gold-soft); }
code {
  font-family: var(--code-font);
  background: #12141a;
  color: var(--gold-soft);
  padding: 2px 7px;
  border-radius: 6px;
  font-size: .88em;
  border: 1px solid var(--line);
  word-break: break-word;
}
.lead { font-size: clamp(15.5px, 2.1vw, 18.5px); color: #e2e8f0; line-height: 1.6; }
.dim  { color: var(--dim); }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

.tag {
  display: inline-block;
  font-family: var(--pixel);
  font-weight: 700;
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border: 1px solid rgba(207, 161, 74, 0.45);
  color: var(--gold-soft);
  border-radius: 99px;
  margin: 0 6px 8px 0;
  background: rgba(207, 161, 74, 0.12);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.tag:hover { transform: translateY(-1px); border-color: var(--gold-bright); }
.tag.mag { border-color: rgba(222, 136, 51, 0.5); color: #fed7aa; background: rgba(222, 136, 51, 0.14); }
.tag.grn { border-color: rgba(16, 185, 129, 0.5); color: #6ee7b7; background: rgba(16, 185, 129, 0.14); }
.tag.orn { border-color: rgba(235, 191, 99, 0.55); color: var(--gold-soft); background: rgba(235, 191, 99, 0.14); }

/* ── Иконки (SVG строго вместо эмодзи) ──────────────────────────────────── */
.ico-svg {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}
.btn .ico-svg {
  width: 16px;
  height: 16px;
  margin-right: 8px;
  vertical-align: -3px;
}
.card .ico .ico-svg {
  width: 30px;
  height: 30px;
  color: var(--gold-bright);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}
.tr .ico .ico-svg {
  width: 18px;
  height: 18px;
  color: var(--gold-bright);
}
.toc a .ico-svg,
summary .ico-svg {
  width: 14px;
  height: 14px;
  margin-right: 7px;
  vertical-align: -2px;
  color: var(--gold-bright);
}

/* ── Шапка сайта ─────────────────────────────────────────────────────────── */
header.top {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(180deg, rgba(24, 28, 36, 0.98) 0%, rgba(15, 18, 24, 0.98) 100%);
  border-bottom: 1px solid rgba(207, 161, 74, 0.35);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
}
.top .wrap {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  min-height: 62px;
  padding-top: 8px;
  padding-bottom: 8px;
  max-width: min(1360px, 100%);
}
.brand {
  font-family: var(--pixel);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -0.01em;
  color: #f8fafc;
  border: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  transition: color .2s ease, transform .2s ease;
}
.brand:hover { color: var(--gold-soft); border: none; transform: translateX(2px); }
.brand-ico {
  width: 26px;
  height: 26px;
  margin-right: 9px;
  border-radius: 7px;
  object-fit: contain;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  transition: transform .35s cubic-bezier(.34, 1.56, .64, 1);
}
.brand:hover .brand-ico { transform: rotate(-8deg) scale(1.08); }

.tostudio {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 99px;
  background: rgba(18, 21, 28, 0.9);
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--dim);
  white-space: nowrap;
}
.tostudio:hover { color: var(--gold-bright); border-color: rgba(235, 191, 99, 0.45); }
.tostudio img { width: 16px; height: 16px; object-fit: contain; display: block; }
@media (max-width: 960px) { .tostudio span { display: none !important; } }

nav.main {
  margin-left: auto;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}
nav.main a {
  position: relative;
  font-family: var(--pixel);
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: 0.04em;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-top-color: rgba(255, 255, 255, 0.2);
  border-radius: 9px;
  color: var(--text-soft);
  background: linear-gradient(180deg, #252a35 0%, #171a22 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  white-space: nowrap;
  transition: color .18s ease, border-color .18s ease, transform .18s ease, background .18s ease;
}
nav.main a:hover {
  color: #ffffff;
  border-color: rgba(235, 191, 99, 0.65);
  transform: translateY(-1px);
}
nav.main a[aria-current="page"] {
  color: #17120a;
  background: linear-gradient(180deg, #cfa14a 0%, #9e7529 100%);
  border-color: #ebbf63;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

/* ── Переключатель языка ─────────────────────────────────────────────────── */
.langsw {
  display: flex;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
  flex-shrink: 0;
  background: #14171f;
}
.langsw button {
  font-family: var(--pixel);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.05em;
  padding: 7px 11px;
  cursor: pointer;
  background: transparent;
  color: var(--dim);
  border: none;
  border-left: 1px solid var(--line);
  transition: color .18s ease, background .18s ease;
}
.langsw button:first-child { border-left: none; }
.langsw button:hover { color: var(--gold-bright); }
.langsw button[aria-pressed="true"] {
  background: linear-gradient(180deg, rgba(207, 161, 74, 0.26), rgba(158, 117, 41, 0.16));
  color: var(--gold-soft);
}

/* ── Логотип в Hero ──────────────────────────────────────────────────────── */
.logo {
  width: clamp(104px, 20vw, 138px);
  height: auto;
  display: block;
  margin: 0 auto 16px;
  border-radius: 24px;
  filter: drop-shadow(0 16px 32px rgba(0, 0, 0, 0.85));
}

/* ── Hero (отражение #menu в игре) ───────────────────────────────────────── */
.hero {
  padding: 64px 0 46px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: -25% 10% auto;
  height: 420px;
  background: radial-gradient(ellipse at 50% 42%, rgba(207, 161, 74, 0.15), transparent 65%);
  pointer-events: none;
  animation: haloBreathe 7s ease-in-out infinite;
}
.hero > * { position: relative; }
.hero h1 {
  margin-bottom: 10px;
}
.hero .sub {
  position: relative;
  font-family: var(--pixel);
  font-weight: 700;
  font-size: clamp(11px, 1.8vw, 12.5px);
  color: var(--gold-bright);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 auto 28px;
  padding-bottom: 18px;
  max-width: 520px;
  animation: fadeUp .65s ease-out .15s both;
}
/* Ромбовидный золотой орнамент из главного меню игры */
.hero .sub::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 4px;
  transform: translateX(-50%);
  width: 210px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.hero .sub::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 1px;
  width: 7px;
  height: 7px;
  transform: translateX(-50%) rotate(45deg);
  background: var(--gold-bright);
  box-shadow: 0 0 8px var(--gold-bright);
}
.hero .lead { max-width: 760px; margin-left: auto; margin-right: auto; }

/* ── Кнопки (идентичны .menu-btn и .ac-btn из игры) ──────────────────────── */
.btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 28px 0 14px;
}
.btn {
  position: relative;
  overflow: hidden;
  display: block;
  min-width: 248px;
  padding: 15px 24px;
  border-radius: 11px;
  font-family: var(--pixel);
  font-weight: 700;
  font-size: 14.5px;
  letter-spacing: 0.02em;
  text-align: center;
  border: 1px solid var(--line-strong);
  border-top-color: rgba(255, 255, 255, 0.22);
  color: var(--text);
  background: linear-gradient(180deg, #262b36 0%, #171a22 100%);
  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform .18s cubic-bezier(.22, 1, .36, 1), border-color .18s ease, box-shadow .22s ease, filter .18s ease;
}
.btn small {
  display: block;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0;
  margin-top: 5px;
  color: var(--dim);
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.14) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .6s ease;
  pointer-events: none;
}
.btn:hover::after { transform: translateX(120%); }
.btn:hover {
  transform: translateY(-2px);
  border-color: var(--gold-bright);
  color: #ffffff;
  filter: brightness(1.08);
  box-shadow:
    0 12px 26px rgba(0, 0, 0, 0.58),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}
.btn:active { transform: translateY(0) scale(.985); }

.btn.primary {
  background: linear-gradient(180deg, #cfa14a 0%, #9e7529 100%);
  border-color: #ebbf63;
  border-top-color: #f8dfa5;
  color: #17120a;
  box-shadow:
    0 8px 22px rgba(0, 0, 0, 0.52),
    inset 0 1px 0 rgba(255, 255, 255, 0.38);
}
.btn.primary small { color: rgba(23, 18, 10, 0.78); font-weight: 600; }
.btn.primary:hover {
  color: #120e07;
  border-color: var(--gold-soft);
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.62),
    0 0 22px rgba(207, 161, 74, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.btn.ghost {
  display: inline-block;
  border-color: var(--line);
  background: rgba(22, 25, 33, 0.88);
  color: var(--text-soft);
  min-width: 0;
  padding: 11px 18px;
  font-size: 13px;
  margin: 4px;
}
.btn.ghost:hover {
  border-color: var(--gold-bright);
  color: var(--gold-soft);
  background: rgba(34, 39, 50, 0.94);
}
.btn.danger {
  border-color: rgba(239, 68, 68, 0.55);
  color: #fecaca;
  background: linear-gradient(180deg, rgba(84, 24, 28, 0.9) 0%, rgba(52, 16, 18, 0.95) 100%);
}
.btn.danger:hover {
  border-color: #f87171;
  color: #ffffff;
}
button.btn { cursor: pointer; font-family: var(--pixel); }
button.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; filter: none; }
button.btn:disabled::after { display: none; }
button.btn.small, .btn.small {
  padding: 10px 16px;
  font-size: 12.5px;
  min-width: 0;
  display: inline-block;
}
form button.btn, .panel > button.btn { width: 100%; min-width: 0; }

/* ── Карточки, панели и статистика (материал .dialog-card из игры) ─────────── */
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card {
  position: relative;
  background:
    radial-gradient(rgba(255, 255, 255, 0.032) 1px, transparent 0),
    linear-gradient(180deg, #20242e 0%, #14161c 100%);
  background-size: 8px 8px, 100% 100%;
  border: 1px solid var(--line);
  border-top: 2px solid rgba(207, 161, 74, 0.65);
  border-radius: 14px;
  padding: 22px;
  box-shadow:
    0 14px 32px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
  transition: transform .24s cubic-bezier(.22, 1, .36, 1), border-color .24s ease, box-shadow .24s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(235, 191, 99, 0.55);
  border-top-color: var(--gold-bright);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.68),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.card .ico {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid rgba(207, 161, 74, 0.35);
  background: rgba(16, 19, 25, 0.9);
  margin-bottom: 14px;
  transition: transform .3s cubic-bezier(.34, 1.56, .64, 1), border-color .2s ease;
}
.card:hover .ico {
  transform: scale(1.08);
  border-color: var(--gold-bright);
}
.card p:last-child { margin-bottom: 0; }

.stats { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.stat {
  text-align: center;
  border: 1px solid var(--line);
  border-top: 2px solid var(--gold);
  border-radius: 12px;
  padding: 18px 12px;
  background:
    radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 0),
    linear-gradient(180deg, #21252f 0%, #14161c 100%);
  background-size: 8px 8px, 100% 100%;
  box-shadow:
    0 12px 26px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: transform .24s cubic-bezier(.22, 1, .36, 1), border-color .24s ease;
}
.stat:hover {
  transform: translateY(-3px);
  border-color: rgba(235, 191, 99, 0.55);
}
.stat b {
  display: block;
  font-family: var(--pixel);
  font-weight: 800;
  font-size: clamp(22px, 3.4vw, 32px);
  color: var(--gold-bright);
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.stat span { font-size: 13px; color: var(--text-soft); font-weight: 500; }

/* ── Загрузки / Архив сборок ─────────────────────────────────────────────── */
.dl { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.dl .card { display: flex; flex-direction: column; }
.dl .card .btn { margin-top: auto; min-width: 0; width: 100%; }

.badge {
  display: inline-block;
  font-family: var(--pixel);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 99px;
  background: rgba(16, 185, 129, 0.14);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.5);
  margin-left: 8px;
  vertical-align: middle;
}
.badge.off {
  background: rgba(207, 161, 74, 0.14);
  color: var(--gold-soft);
  border-color: rgba(207, 161, 74, 0.5);
}
.card.soon { opacity: .76; }
.btn.disabled {
  display: block;
  text-align: center;
  cursor: not-allowed;
  border-color: var(--line);
  color: var(--dim);
  background: #14171f;
  padding: 14px 20px;
  border-radius: 11px;
  border-width: 1px;
  border-style: solid;
  font-family: var(--pixel);
  font-weight: 700;
  font-size: 13px;
  box-shadow: none;
}
.btn.disabled:hover { transform: none; box-shadow: none; filter: none; }
.btn.disabled::after { display: none; }

/* ── Журнал обновлений ───────────────────────────────────────────────────── */
.rel {
  border-left: 2px solid var(--line);
  padding: 0 0 8px 24px;
  margin: 0 0 28px;
  position: relative;
  transition: border-color .25s ease;
}
.rel:hover { border-left-color: rgba(235, 191, 99, 0.55); }
.rel::before {
  content: '';
  position: absolute;
  left: -7px;
  top: 5px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--gold);
}
.rel.now::before {
  border-color: var(--green);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.6);
}
.rel h3 { margin-bottom: 4px; color: #f8fafc; }
.rel .when { font-size: 13px; color: var(--dim); margin-bottom: 12px; font-weight: 600; }
.rel ul { margin: 8px 0 14px; padding-left: 20px; color: var(--text-soft); }
.rel li { margin-bottom: 6px; }

/* ── Таблицы ─────────────────────────────────────────────────────────────── */
.tw {
  overflow-x: auto;
  margin: 0 0 22px;
  border: 1px solid var(--line);
  border-top: 2px solid var(--gold);
  border-radius: 12px;
  max-width: 100%;
  background: linear-gradient(180deg, #1b1f28 0%, #13161c 100%);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}
table { border-collapse: collapse; width: 100%; min-width: 460px; font-size: 14px; }
th, td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid rgba(220, 226, 238, 0.1);
  vertical-align: top;
  font-variant-numeric: tabular-nums;
}
th {
  background: rgba(16, 19, 26, 0.92);
  color: var(--gold-bright);
  font-family: var(--pixel);
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
td { color: var(--text-soft); }
tr:last-child td { border-bottom: none; }
tbody tr { transition: background .18s ease; }
tbody tr:hover { background: rgba(207, 161, 74, 0.07); }
.rank-1 { color: var(--gold-bright); font-weight: 800; }
.rank-2 { color: #e2e8f0; font-weight: 700; }
.rank-3 { color: #e29b59; font-weight: 700; }

/* ── Фильтры таблицы рекордов (.tabs2) ───────────────────────────────────── */
.tabs2 { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.tabs2 .cap {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
  margin-right: 4px;
}
.tabs2 button {
  background: linear-gradient(180deg, #252a35 0%, #171a22 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text-soft);
  font-family: var(--pixel);
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: 0.04em;
  padding: 8px 14px;
  cursor: pointer;
  transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.tabs2 button:hover { color: #ffffff; border-color: rgba(235, 191, 99, 0.6); }
.tabs2 button.sel {
  background: linear-gradient(180deg, #cfa14a 0%, #9e7529 100%);
  border-color: #ebbf63;
  color: #17120a;
}

/* ── Вики ────────────────────────────────────────────────────────────────── */
.wiki { display: grid; grid-template-columns: 260px 1fr; gap: 34px; align-items: start; padding: 34px 0 70px; }
.wiki > * { min-width: 0; }
.toc {
  position: sticky;
  top: 78px;
  max-height: calc(100vh - 96px);
  overflow-y: auto;
  border: 1px solid var(--line);
  border-top: 2px solid var(--gold);
  border-radius: 14px;
  background:
    radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 0),
    linear-gradient(180deg, #20242e 0%, #14161c 100%);
  background-size: 8px 8px, 100% 100%;
  padding: 16px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.5);
}
.toc h4 { margin-bottom: 12px; }
.toc a {
  position: relative;
  display: block;
  padding: 7px 10px;
  border: none;
  border-radius: 8px;
  color: var(--text-soft);
  font-size: 13.5px;
  font-weight: 500;
  transition: background .18s ease, color .18s ease, padding-left .18s ease;
}
.toc a:hover, .toc a.active {
  background: rgba(207, 161, 74, 0.14);
  color: var(--gold-soft);
  padding-left: 14px;
}
.toc a.active::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 8px;
  bottom: 8px;
  width: 3px;
  background: var(--gold-bright);
  border-radius: 2px;
}
.toc input {
  width: 100%;
  padding: 9px 11px;
  margin-bottom: 12px;
  background: #12141a;
  border: 1px solid rgba(220, 226, 238, 0.2);
  border-radius: 8px;
  color: var(--text);
  font-family: var(--mono);
  font-size: 13.5px;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.toc input:focus {
  outline: none;
  border-color: var(--gold-bright);
  box-shadow: 0 0 0 2px rgba(235, 191, 99, 0.22);
}
.wiki article section { padding: 0 0 42px; border: none; }
.wiki article section:first-child { padding-top: 0; }
.wiki article h2 { padding-top: 16px; border-top: 1px solid var(--line); }
.wiki article section:first-child h2 { border-top: none; padding-top: 0; }

details {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 18px;
  margin: 0 0 16px;
  background: linear-gradient(180deg, #1d212b 0%, #14161c 100%);
  transition: border-color .22s ease;
}
details[open] { border-color: rgba(207, 161, 74, 0.55); }
summary {
  cursor: pointer;
  font-family: var(--pixel);
  font-weight: 700;
  font-size: 14px;
  color: var(--gold-soft);
  list-style: none;
  transition: color .18s ease;
}
summary::-webkit-details-marker { display: none; }
summary::before {
  content: '\25B8';
  display: inline-block;
  margin-right: 9px;
  color: var(--gold-bright);
  transition: transform .28s cubic-bezier(.34, 1.56, .64, 1);
}
details[open] > summary::before { transform: rotate(90deg); }
summary:hover { color: #ffffff; }
details > *:first-of-type:not(summary) { margin-top: 14px; }
details[open] > *:not(summary) { animation: detailsOpen .32s cubic-bezier(.22, .61, .36, 1) both; }

.note {
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold-bright);
  background: rgba(207, 161, 74, 0.08);
  padding: 13px 16px;
  margin: 0 0 18px;
  border-radius: 10px;
  font-size: 14px;
  color: var(--text-soft);
}
.note.cy { border-left-color: var(--gold); background: rgba(30, 34, 44, 0.9); }

ul.clean { list-style: none; padding: 0; margin: 0 0 18px; }
ul.clean li {
  padding: 9px 0 9px 24px;
  position: relative;
  border-bottom: 1px solid rgba(220, 226, 238, 0.09);
  color: var(--text-soft);
  transition: transform .2s ease, color .2s ease;
}
ul.clean li:hover { transform: translateX(4px); color: #ffffff; }
ul.clean li::before {
  content: '\25B8';
  position: absolute;
  left: 4px;
  color: var(--gold-bright);
}
ul.clean li:last-child { border-bottom: none; }

/* ── Страница музыки ─────────────────────────────────────────────────────── */
.list { display: grid; gap: 9px; margin-bottom: 24px; }
.tr {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: linear-gradient(180deg, #1f242f 0%, #151820 100%);
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.tr:hover {
  border-color: rgba(235, 191, 99, 0.55);
  background: linear-gradient(180deg, #272d3b 0%, #191d26 100%);
  transform: translateX(3px);
}
.tr.on {
  border-color: var(--gold-bright);
  background: linear-gradient(180deg, rgba(207, 161, 74, 0.18) 0%, rgba(28, 25, 20, 0.96) 100%);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
}
.tr .ico {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #12141a;
  border: 1px solid rgba(207, 161, 74, 0.35);
  color: var(--gold-bright);
  font-family: var(--pixel);
  font-weight: 700;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.tr .nm { flex: 1 1 auto; min-width: 0; }
.tr .nm b {
  display: block;
  font-family: var(--pixel);
  font-weight: 700;
  font-size: 13.5px;
  color: #f8fafc;
  margin-bottom: 3px;
  overflow-wrap: anywhere;
}
.tr .nm span { color: var(--dim); font-size: 13px; }
.tr .dur { flex: 0 0 auto; color: var(--dim); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.tr .bar { height: 3px; background: rgba(207, 161, 74, 0.2); border-radius: 2px; overflow: hidden; margin-top: 8px; display: none; }
.tr.on .bar { display: block; }
.tr .bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold), var(--gold-soft)); }

.foot {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 45;
  padding: 10px 16px;
  background: linear-gradient(180deg, rgba(24, 28, 36, 0.97) 0%, rgba(14, 17, 23, 0.99) 100%);
  border-top: 1px solid rgba(207, 161, 74, 0.45);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.65);
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.foot button {
  font-family: var(--pixel);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.04em;
  padding: 9px 14px;
  background: linear-gradient(180deg, #262b36 0%, #171a22 100%);
  color: var(--gold-bright);
  border: 1px solid rgba(235, 191, 99, 0.45);
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: border-color .18s ease, filter .18s ease, transform .15s ease;
}
.foot button:hover { border-color: var(--gold-soft); filter: brightness(1.12); color: #ffffff; }
.foot .now {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 13px;
  color: var(--gold-soft);
  max-width: 240px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.foot .vol { display: inline-flex; align-items: center; gap: 8px; color: var(--dim); font-size: 13px; }
.foot input[type=range] { accent-color: var(--gold); width: 110px; cursor: pointer; }

/* ── Подвал (Footer) ─────────────────────────────────────────────────────── */
footer.site {
  border-top: 1px solid rgba(220, 226, 238, 0.12);
  background: rgba(10, 12, 17, 0.85);
  padding: 34px 0;
  color: var(--dim);
  font-size: 13.5px;
}
footer.site .wrap { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.legal-line {
  max-width: var(--maxw);
  margin: 20px auto 0;
  padding: 15px 20px 0;
  border-top: 1px solid rgba(220, 226, 238, 0.09);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  font-family: var(--mono);
  font-size: 12px;
}
.legal-line a { color: var(--dim); border-bottom: none; }
.legal-line a:hover { color: var(--gold-bright); }

/* ── Адаптация под мобильные экраны ──────────────────────────────────────── */
@media (max-width: 860px) {
  .wiki { grid-template-columns: 1fr; gap: 20px; }
  .toc { position: static; max-height: none; }
  section { padding: 40px 0; }
  .hero { padding: 40px 0 30px; }
  .btn { min-width: 100%; }
  .top .wrap { height: auto; padding-top: 8px; padding-bottom: 8px; gap: 8px 10px; flex-wrap: wrap; }
  nav.main { margin-left: 0; width: 100%; gap: 5px; }
  nav.main a { flex: 1 1 auto; text-align: center; padding: 6px 8px; font-size: 10.5px; }
  .langsw button { padding: 6px 9px; font-size: 10.5px; }
  body { font-size: 15px; }
}
@media (max-width: 480px) {
  .wrap { padding: 0 14px; }
  .card { padding: 17px; }
  nav.main a { font-size: 10px; padding: 6px 6px; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   MOTION SYSTEM (GPU compositor properties only)
   ═══════════════════════════════════════════════════════════════════════════ */
@keyframes pageIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes haloBreathe {
  0%, 100% { opacity: .82; transform: scale(1); }
  50%      { opacity: 1;  transform: scale(1.05); }
}
@keyframes detailsOpen { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes langFade { 0% { opacity: 1; } 40% { opacity: .45; } 100% { opacity: 1; } }

[data-rv] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .52s cubic-bezier(.22, .61, .36, 1), transform .52s cubic-bezier(.22, .61, .36, 1);
  transition-delay: var(--d, 0s);
  will-change: opacity, transform;
}
[data-rv].in { opacity: 1; transform: none; }
[data-rv="zoom"] { transform: scale(.95); }
[data-rv="zoom"].in { transform: none; }

h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg, var(--gold), rgba(207, 161, 74, 0.2), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .6s cubic-bezier(.22, .61, .36, 1) .08s;
}
[data-rv].in h2::after, h2.in::after { transform: scaleX(1); }

body.langswap { animation: langFade .3s ease; }

/* ── Индикатор чтения + Кнопка «Наверх» ─────────────────────────────────── */
#readProgress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 100%;
  z-index: 60;
  transform-origin: left;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--gold), var(--gold-soft));
  transition: transform .12s linear;
  pointer-events: none;
}
#toTop {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 55;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  cursor: pointer;
  background: linear-gradient(180deg, #252a35 0%, #171a22 100%);
  border: 1px solid rgba(207, 161, 74, 0.55);
  color: var(--gold-bright);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.6);
  display: grid;
  place-items: center;
  opacity: 0;
  transform: translateY(12px) scale(.9);
  pointer-events: none;
  transition: opacity .26s ease, transform .26s cubic-bezier(.34, 1.56, .64, 1), border-color .2s ease;
}
#toTop.show { opacity: 1; transform: none; pointer-events: auto; }
#toTop:hover { border-color: var(--gold-soft); transform: translateY(-2px); color: #ffffff; }
body:has(.foot) #toTop { bottom: 82px; }

a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 2px;
}

/* ── Анимация запуска игры (#launchFx) ───────────────────────────────────── */
#launchFx {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 42%, #1f232c 0%, #0c0e13 80%);
  opacity: 0;
  transition: opacity .22s ease;
  text-align: center;
  padding: 24px;
}
#launchFx.on { opacity: 1; }
#launchFx .fxInner { position: relative; z-index: 3; }
#launchFx .fxLogo {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  display: block;
  margin: 0 auto 18px;
  filter: drop-shadow(0 16px 32px rgba(0, 0, 0, 0.85));
}
#launchFx .fxTitle {
  font-family: var(--pixel);
  font-weight: 800;
  font-size: clamp(24px, 4vw, 34px);
  color: #f8fafc;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
#launchFx .fxLog {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--gold-soft);
  min-height: 22px;
}
#launchFx .fxBar {
  width: min(320px, 70vw);
  height: 6px;
  margin: 20px auto 0;
  background: #171a22;
  border: 1px solid rgba(207, 161, 74, 0.35);
  border-radius: 99px;
  overflow: hidden;
}
#launchFx .fxBar i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft));
  animation: fxFill 1.15s cubic-bezier(.4, 0, .2, 1) .1s forwards;
}
@keyframes fxFill { to { width: 100%; } }
#launchFx::before, #launchFx::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(180deg, #0c0e13, #171a22);
  border-color: rgba(207, 161, 74, 0.45);
  border-style: solid;
  border-width: 0;
  pointer-events: none;
  z-index: 1;
}
#launchFx::before { top: 0; border-bottom-width: 1px; transform: translateY(-101%); animation: shutterTop 1.25s cubic-bezier(.6, 0, .3, 1) .24s forwards; }
#launchFx::after  { bottom: 0; border-top-width: 1px; transform: translateY(101%); animation: shutterBot 1.25s cubic-bezier(.6, 0, .3, 1) .24s forwards; }
@keyframes shutterTop { 0% { transform: translateY(-101%); } 70%, 100% { transform: translateY(0); } }
@keyframes shutterBot { 0% { transform: translateY(101%); }  70%, 100% { transform: translateY(0); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  [data-rv] { opacity: 1 !important; transform: none !important; }
  h2::after { transform: scaleX(1) !important; }
  #launchFx::before, #launchFx::after { transform: none; }
}

/* ── Аккаунт, панели, формы, библиотека, бейджи (Pixset Studio) ─────────── */
.panel {
  background:
    radial-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 0),
    linear-gradient(180deg, #20242e 0%, #14161c 100%);
  background-size: 8px 8px, 100% 100%;
  border: 1px solid var(--line);
  border-top: 2px solid var(--gold);
  border-radius: 14px;
  padding: 26px;
  max-width: 480px;
  margin: 0 auto;
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.72),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.panel.wide { max-width: 760px; }

.field { margin-bottom: 16px; text-align: left; }
.field label {
  display: block;
  font-family: var(--pixel);
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: 0.05em;
  color: var(--text-soft);
  margin-bottom: 7px;
}
.field input, .field textarea, .field select {
  width: 100%;
  box-sizing: border-box;
  padding: 11px 13px;
  background: #111319;
  border: 1px solid rgba(220, 226, 238, 0.22);
  border-radius: 9px;
  color: var(--text);
  font-family: var(--mono);
  font-size: 14.5px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { line-height: 1.55; min-height: 96px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--gold-bright);
  box-shadow: 0 0 0 2px rgba(235, 191, 99, 0.22);
}
.field input::placeholder, .field textarea::placeholder { color: var(--dim); }

.tabs { display: flex; gap: 8px; margin-bottom: 20px; }
.tabs button {
  flex: 1;
  padding: 10px 10px;
  cursor: pointer;
  border-radius: 9px;
  font-family: var(--pixel);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.04em;
  background: #14171f;
  border: 1px solid var(--line);
  color: var(--dim);
  transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.tabs button:hover { color: var(--gold-bright); border-color: rgba(235, 191, 99, 0.5); }
.tabs button.on {
  color: #17120a;
  border-color: #ebbf63;
  background: linear-gradient(180deg, #cfa14a 0%, #9e7529 100%);
}

.msg {
  display: none;
  padding: 11px 14px;
  margin-bottom: 18px;
  font-size: 13.5px;
  border: 1px solid;
  border-left-width: 3px;
  border-radius: 9px;
  text-align: left;
}
.msg.show { display: block; }
.msg.err { border-color: rgba(239, 68, 68, 0.55); background: rgba(74, 22, 26, 0.68); color: #fecaca; }
.msg.ok  { border-color: rgba(16, 185, 129, 0.5); background: rgba(16, 56, 42, 0.65); color: #a7f3d0; }

/* Кнопка «мой аккаунт» в шапке (совместима с pixset-me.js) */
.me { display: inline-flex; align-items: center; gap: 7px; vertical-align: middle; }
.me-ava {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  border-radius: 5px;
  object-fit: cover;
  display: grid;
  place-items: center;
  border: 1px solid rgba(235, 191, 99, 0.55);
  background: #14171f;
  font-family: var(--pixel);
  font-weight: 700;
  font-size: 10px;
  font-style: normal;
  color: var(--gold-bright);
  line-height: 1;
  overflow: hidden;
}
.me-nick { max-width: 12ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nbdgs { display: inline-flex; align-items: center; gap: 4px; vertical-align: middle; }
.nbdg { display: inline-flex; align-items: center; justify-content: center; width: 15px; height: 15px; flex: 0 0 15px; }
.nbdg img { width: 100%; height: 100%; object-fit: contain; display: block; }
.nbdg i { width: 9px; height: 9px; border-radius: 50%; background: var(--gold-bright); display: block; }

.who { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.who .ava {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold);
  border-radius: 12px;
  background: #14171f;
  font-family: var(--pixel);
  font-weight: 800;
  font-size: 22px;
  color: var(--gold-bright);
  padding: 0;
  overflow: hidden;
}
.who .ava img { width: 100%; height: 100%; object-fit: cover; display: block; }
.who .nick { font-family: var(--pixel); font-weight: 800; font-size: 18px; color: #f8fafc; margin-bottom: 4px; }
.who .mail { font-size: 13px; color: var(--dim); word-break: break-all; }

.avaActions { display: flex; gap: 14px; margin-top: 8px; flex-wrap: wrap; }
.avaActions button, .avaActions a {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--gold-bright);
  border-bottom: 1px dashed currentColor;
  line-height: 1.4;
}
.avaActions button:hover, .avaActions a:hover { color: #ffffff; }

.lib { display: grid; gap: 12px; margin-bottom: 14px; }
.lib .item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 17px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #13161e;
  flex-wrap: wrap;
}
.lib .item b { font-family: var(--pixel); font-weight: 800; font-size: 14.5px; color: #f8fafc; }

.promo-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.promo-row input {
  flex: 1 1 200px;
  min-width: 0;
  box-sizing: border-box;
  padding: 11px 12px;
  background: #111319;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--text);
  font-family: var(--code-font);
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.promo-row .btn { flex: 0 0 auto; min-width: 0; padding: 12px 18px; white-space: nowrap; }

/* ── Бейджи в кабинете ───────────────────────────────────────────────────── */
.bdgs { display: grid; gap: 8px; margin-bottom: 16px; }
.bdg {
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: center;
  gap: 4px 12px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold-bright);
  border-radius: 9px;
  background: rgba(207, 161, 74, 0.06);
}
.bdg img { width: 28px; height: 28px; object-fit: contain; display: block; grid-row: span 2; }
.bdg i { width: 12px; height: 12px; border-radius: 50%; display: block; grid-row: span 2; margin: 0 8px; background: var(--gold-bright); }
.bdg b { font-family: var(--pixel); font-weight: 700; font-size: 13px; color: var(--text); }
.bdg .bdg-hint { grid-column: 2; font-family: var(--mono); font-size: 12px; color: var(--dim); line-height: 1.5; }

/* ── Онлайн-лидерборд Pixset Studio (.lb / .lbrow) ───────────────────────── */
.lb {
  border: 1px solid var(--line);
  border-top: 2px solid var(--gold);
  border-radius: 14px;
  background:
    radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 0),
    linear-gradient(180deg, #1e222b 0%, #13161c 100%);
  background-size: 8px 8px, 100% 100%;
  overflow: hidden;
  margin-top: 14px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.55);
}
.lbrow {
  display: grid;
  grid-template-columns: 44px 32px 1fr auto;
  align-items: center;
  gap: 10px 12px;
  padding: 12px 18px;
  border-bottom: 1px solid rgba(220, 226, 238, 0.09);
  transition: background .16s ease;
}
.lbrow:last-child { border-bottom: none; }
.lbrow:hover { background: rgba(207, 161, 74, 0.08); }
.lbrow .r {
  font-family: var(--pixel);
  font-weight: 800;
  font-size: 13px;
  color: var(--dim);
  font-variant-numeric: tabular-nums;
}
.lbrow .r.top1 { color: var(--gold-bright); }
.lbrow .r.top2 { color: #e2e8f0; }
.lbrow .r.top3 { color: #e29b59; }
.lbrow .ava {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(207, 161, 74, 0.4);
  background: #14171f;
  font-family: var(--pixel);
  font-weight: 700;
  font-size: 12px;
  color: var(--gold-bright);
  overflow: hidden;
}
.lbrow .ava img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lbrow a { border-bottom: none; color: var(--text); font-weight: 700; }
.lbrow a:hover { color: var(--gold-soft); }
.lbrow .s {
  font-family: var(--pixel);
  font-weight: 700;
  font-size: 13.5px;
  color: var(--green);
  font-variant-numeric: tabular-nums;
}
@media (max-width: 520px) {
  .lbrow { grid-template-columns: 36px 28px 1fr auto; gap: 8px; padding: 10px 12px; }
  .lbrow .s { font-size: 12.5px; }
}

/* ── Плашка статуса закрытой веб-версии (Web-Gate) ────────────────────────── */
.gate-banner {
  margin: 14px auto 0;
  max-width: var(--max, 1120px);
  padding: 0 22px;
  animation: fadeUp .28s ease-out both;
}
.gate-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1px solid rgba(248, 113, 113, 0.55);
  border-left: 3px solid var(--gold-bright);
  background: linear-gradient(180deg, rgba(64, 22, 26, 0.92) 0%, rgba(28, 17, 22, 0.96) 100%);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
  color: var(--text);
  font-size: 13.5px;
  line-height: 1.5;
}
.gate-banner-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.gate-banner-ico {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(235, 191, 99, 0.45);
  background: rgba(15, 17, 23, 0.72);
  color: var(--gold-bright);
}
.gate-banner-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  flex-wrap: wrap;
}
.gate-banner-close {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(20, 23, 31, 0.9);
  color: var(--text-soft);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: border-color .15s ease, color .15s ease;
}
.gate-banner-close:hover {
  border-color: var(--gold-bright);
  color: #ffffff;
}
@media (max-width: 680px) {
  .gate-banner-inner {
    flex-direction: column;
    align-items: stretch;
  }
  .gate-banner-actions {
    justify-content: flex-end;
  }
}

/* ── Вкладки разделов (.sectnav) и списки строк (аккаунт и админка) ─────── */
.sectnav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.sectnav button {
  cursor: pointer;
  padding: 9px 14px;
  border-radius: 9px;
  background: linear-gradient(180deg, #252a35 0%, #171a22 100%);
  border: 1px solid var(--line);
  color: var(--dim);
  font-family: var(--pixel);
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color .18s ease, border-color .18s ease, background .18s ease, transform .15s ease;
}
.sectnav button:hover {
  color: var(--gold-soft);
  border-color: rgba(235, 191, 99, 0.55);
  transform: translateY(-1px);
}
.sectnav button[aria-pressed="true"] {
  color: #17120a;
  border-color: var(--gold-bright);
  background: linear-gradient(180deg, #cfa14a 0%, #9e7529 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.sect > :first-child { margin-top: 0 !important; }

.rows { display: grid; gap: 10px; }
.rows .row,
.rowline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: linear-gradient(180deg, #1d212b 0%, #13161d 100%);
  transition: border-color .18s ease, background .18s ease;
}
.rows .row:hover,
.rowline:hover { border-color: rgba(207, 161, 74, 0.4); }
.rows .row .btn,
.rowline .btn { width: auto; min-width: 0; padding: 9px 15px; font-size: 12.5px; }

.btn.solid {
  display: inline-block;
  width: auto;
  min-width: 0;
  padding: 11px 18px;
  font-size: 13px;
  background: linear-gradient(180deg, #cfa14a 0%, #9e7529 100%);
  border-color: #ebbf63;
  border-top-color: #f8dfa5;
  color: #17120a;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn.solid:hover { color: #120e07; border-color: var(--gold-soft); }
.btn.quiet {
  display: inline-block;
  width: auto;
  min-width: 0;
  padding: 10px 16px;
  font-size: 12.5px;
  border-color: var(--line);
  background: rgba(22, 25, 33, 0.9);
  color: var(--text-soft);
}
.btn.quiet:hover { border-color: var(--gold-bright); color: var(--gold-soft); }

.badge.mute {
  background: rgba(146, 155, 169, 0.14);
  color: var(--dim);
  border-color: rgba(146, 155, 169, 0.35);
}
.st {
  display: inline-block;
  font-family: var(--pixel);
  font-weight: 700;
  font-size: 10.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 3px 9px;
  border: 1px solid;
  border-radius: 99px;
}
.st.paid { color: #6ee7b7; border-color: rgba(16, 185, 129, 0.55); background: rgba(16, 185, 129, 0.12); }
.st.pending { color: var(--gold-soft); border-color: rgba(207, 161, 74, 0.55); background: rgba(207, 161, 74, 0.12); }
.st.failed, .st.refunded { color: var(--dim); border-color: var(--line); background: rgba(20, 23, 31, 0.65); }

.tblwrap {
  overflow-x: auto;
  margin: 0 0 22px;
  border: 1px solid var(--line);
  border-top: 2px solid var(--gold);
  border-radius: 12px;
  max-width: 100%;
  background: linear-gradient(180deg, #1b1f28 0%, #13161c 100%);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}
.tblwrap td .btn { width: auto; min-width: 0; padding: 7px 12px; font-size: 11.5px; }

.grantbox { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.grantbox[hidden], .field[hidden] { display: none !important; }
.grantbox > .field { flex: 1; min-width: 195px; margin-bottom: 0; }
.grantbox .btn { width: auto; min-width: 0; padding: 11px 18px; font-size: 13px; }

.theme-lock-ico {
  width: 14px; height: 14px;
  display: inline-block;
  vertical-align: -2px;
  margin-right: 6px;
  color: var(--gold-bright);
}


