/* SewerMC — тёмная тема с багровым акцентом. Единая система с лаунчером:
   палитра, радиусы и типографика повторяют launcher-wpf/MainWindow.xaml. */
@font-face { font-family: 'Inter'; src: url('/fonts/Inter-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/fonts/Inter-SemiBold.ttf') format('truetype'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/fonts/Inter-Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }

:root {
  /* Ровно те же токены, что в лаунчере */
  --bg: #0A0B0E;
  --bg2: #0D0F13;
  --panel: #121319;
  --panel2: #171923;
  --line: #1D2028;
  --line2: #2A2E38;
  --ink: #ECEEF3;
  --dim: #8B8F9C;
  --dim2: #5F636E;
  --acc: #C81F3A;
  --acc-ink: #FF5066;
  --ok: #59C06B;
  --acc-grad: linear-gradient(180deg, #E02546 0%, #A5142C 100%);
  --glow: 0 0 0 1px rgba(200, 31, 58, .35), 0 10px 30px -12px rgba(200, 31, 58, .45);
  --r: 12px;
  --r-sm: 8px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
  display: flex; flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
/* Мягкое багровое свечение сверху — как подсветка баннера в лаунчере */
body::before {
  content: ''; position: fixed; inset: 0 0 auto; height: 520px; pointer-events: none; z-index: 0;
  background: radial-gradient(900px 380px at 50% -140px, rgba(200, 31, 58, .16), transparent 70%);
}
body > * { position: relative; z-index: 1; }

a { color: var(--ink); text-decoration: none; }
::selection { background: rgba(200, 31, 58, .35); }

/* ===== Навигация ===== */
nav {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 6vw;
  background: rgba(13, 15, 19, .82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
  position: sticky; top: 0; z-index: 20;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; letter-spacing: 1px; }
.brand img { width: 30px; height: 30px; border-radius: 7px; }
.nav-right { display: flex; gap: 8px; align-items: center; }
.nav-right a {
  color: var(--dim); font-size: 12px; font-weight: 600;
  letter-spacing: .8px; text-transform: uppercase;
  padding: 8px 12px; border-radius: var(--r-sm);
  transition: color .14s, background .14s;
}
.nav-right a:hover { color: var(--ink); background: rgba(255, 255, 255, .05); }

main { flex: 1; padding: 0 6vw 80px; max-width: 1180px; margin: 0 auto; width: 100%; }

/* ===== Кнопки ===== */
.btn {
  display: inline-block; cursor: pointer;
  font-family: inherit; font-weight: 700; font-size: 13px;
  letter-spacing: .9px; text-transform: uppercase; text-align: center;
  color: #fff; background: var(--acc-grad);
  border: none; border-radius: var(--r-sm);
  padding: 12px 22px;
  transition: filter .14s, transform .1s, box-shadow .14s;
}
.btn:hover { filter: brightness(1.12); box-shadow: var(--glow); }
.btn:active { transform: translateY(1px); }
.btn.big { padding: 15px 32px; font-size: 14px; }
.btn.small { padding: 8px 15px; font-size: 11.5px; }
.btn.ghost {
  background: var(--panel2); color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line2);
}
.btn.ghost:hover { background: #1E2130; box-shadow: inset 0 0 0 1px var(--acc); filter: none; }
/* Недоступная кнопка — нейтральная, а не выцветший акцент (тот читается как «сломано») */
.btn[disabled] {
  background: var(--panel2); color: var(--dim2); cursor: not-allowed;
  box-shadow: inset 0 0 0 1px var(--line); filter: none;
}
.btn[disabled]:hover { box-shadow: inset 0 0 0 1px var(--line); }

/* ===== Hero ===== */
.hero { text-align: center; padding: 96px 0 56px; }
.hero h1 {
  font-weight: 700; font-size: clamp(52px, 9vw, 104px); letter-spacing: 1px; line-height: .98;
  background: linear-gradient(180deg, #FFFFFF 25%, #A8ADBC 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.tag { color: var(--dim); margin-top: 18px; font-size: 13px; letter-spacing: 1.4px; }

.status-pill {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 30px; padding: 10px 18px;
  background: var(--panel); border: 1px solid var(--line2); border-radius: 999px;
  font-size: 12px; font-weight: 600; letter-spacing: .8px; color: var(--dim);
}
.status-pill::before {
  content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--dim2);
}
.status-pill[data-state="on"] { color: var(--ink); }
.status-pill[data-state="on"]::before { background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.status-pill[data-state="off"]::before { background: var(--acc); }

.cta { margin-top: 36px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ===== Карточки ===== */
.cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 16px;
  margin-top: 56px;
}
.card {
  position: relative; overflow: hidden;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r);
  padding: 26px 24px;
  transition: border-color .16s, transform .16s, background .16s;
}
/* Акцентная полоска слева — приём из сайдбара лаунчера */
.card::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--acc-grad); opacity: 0; transition: opacity .16s;
}
.card:hover { border-color: var(--line2); background: var(--panel2); transform: translateY(-2px); }
.card:hover::before { opacity: 1; }
.ci { width: 40px; height: 40px; color: var(--acc-ink); display: block; margin-bottom: 16px; }
.card h3 { font-weight: 600; font-size: 18px; margin-bottom: 8px; }
.card p { color: var(--dim); line-height: 1.6; font-size: 14px; }
.card code, code {
  background: var(--bg2); border: 1px solid var(--line2); border-radius: 5px;
  padding: 2px 7px; color: var(--acc-ink); font-size: 13px;
  font-family: 'Inter', ui-monospace, monospace;
}

/* ===== Шаги ===== */
.steps { margin-top: 72px; }
.steps h2 { font-weight: 700; font-size: 20px; letter-spacing: .8px; text-transform: uppercase; margin-bottom: 18px; }
.steps ol { list-style: none; counter-reset: n; display: flex; flex-direction: column; gap: 10px; }
.steps li {
  counter-increment: n; position: relative; padding: 16px 20px 16px 66px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r);
  color: var(--dim); font-size: 14px; line-height: 1.55;
}
.steps li b { color: var(--ink); font-weight: 600; }
.steps li::before {
  content: counter(n, decimal-leading-zero);
  position: absolute; left: 18px; top: 50%; transform: translateY(-50%);
  font-weight: 700; font-size: 15px; color: var(--acc-ink);
  font-variant-numeric: tabular-nums;
}

/* ===== Формы ===== */
.form-card {
  max-width: 440px; margin: 72px auto 0;
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 34px;
  box-shadow: 0 24px 60px -30px #000;
}
.form-card h2 { font-weight: 700; font-size: 24px; letter-spacing: .6px; text-transform: uppercase; margin-bottom: 8px; }
.form-card form { display: flex; flex-direction: column; gap: 4px; margin-top: 18px; }
.form-card label {
  color: var(--dim); font-size: 11px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase;
  margin-top: 14px;
}
.form-card input, .cab-inline input {
  background: var(--bg2); border: 1px solid var(--line2); border-radius: var(--r-sm);
  padding: 12px 14px; color: var(--ink); font-family: inherit; font-size: 15px; outline: none;
  transition: border-color .14s, box-shadow .14s;
}
.form-card input::placeholder { color: var(--dim2); }
.form-card input:focus, .cab-inline input:focus {
  border-color: var(--acc); box-shadow: 0 0 0 3px rgba(200, 31, 58, .18);
}
.form-card button { margin-top: 24px; }
.dim { color: var(--dim); font-size: 14px; margin-top: 14px; line-height: 1.6; }
.dim a { color: var(--acc-ink); font-weight: 600; }
.dim a:hover { text-decoration: underline; }

/* Сообщения */
.err {
  background: rgba(200, 31, 58, .1); border: 1px solid rgba(200, 31, 58, .45);
  border-left: 3px solid var(--acc); border-radius: var(--r-sm);
  color: #FF8092; font-weight: 600; font-size: 13px;
  padding: 11px 14px; margin-top: 16px;
}
.err-inline { color: var(--acc-ink); font-weight: 600; }
.ok { color: var(--ok); font-weight: 700; }

/* Профиль */
.me-head { display: flex; gap: 14px; align-items: center; margin-bottom: 18px; }
.avatar {
  width: 54px; height: 54px; border-radius: 10px; border: 1px solid var(--line2);
  image-rendering: pixelated; background: var(--bg2);
}
.me-head h2 { text-transform: none; letter-spacing: 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* Плашка роли — как в TAB игры и в профиле лаунчера */
.rank-chip {
  font-size: 10.5px; font-weight: 700; letter-spacing: 1.1px; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px; white-space: nowrap;
  background: var(--panel2); color: var(--dim); border: 1px solid var(--line2);
}
.rank-chip[data-type="donate"] { color: #FFD98A; border-color: rgba(255, 217, 138, .35); background: rgba(255, 217, 138, .1); }
.rank-chip[data-type="staff"] { color: #fff; border-color: transparent; background: var(--acc-grad); }

footer {
  text-align: center; color: var(--dim2); font-size: 11px; letter-spacing: 1px;
  padding: 28px; border-top: 1px solid var(--line);
}

/* ===== Заголовки страниц / секции ===== */
.page-head { padding: 56px 0 28px; border-bottom: 1px solid var(--line); margin-bottom: 32px; }
.page-head h1 { font-size: 38px; letter-spacing: -.4px; margin: 0; }
.page-head .tag { color: var(--dim); margin-top: 10px; }

.sec-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding-bottom: 14px; margin-bottom: 8px; border-bottom: 1px solid var(--line);
}
.sec-head h2 { margin: 0; font-size: 20px; letter-spacing: .4px; }
.more { font-size: 13px; color: var(--acc-ink); font-weight: 600; }
.more:hover { text-decoration: underline; }

/* ===== Новости ===== */
.news-block { margin: 46px 0; display: flex; flex-direction: column; gap: 12px; }
.news {
  padding: 22px 24px; background: var(--panel);
  border: 1px solid var(--line); border-radius: var(--r);
  transition: border-color .16s, background .16s;
}
.news:hover { border-color: var(--line2); background: var(--panel2); }
.news-date { font-size: 11px; letter-spacing: 1.3px; text-transform: uppercase; color: var(--dim2); }
.news h3 { margin: 8px 0; font-size: 19px; font-weight: 600; }
.news p { margin: 0; color: var(--dim); line-height: 1.65; max-width: 76ch; }

/* ===== Магазин / маркет ===== */
.shop { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.shop-item {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r);
  padding: 22px; display: flex; flex-direction: column; gap: 12px;
  transition: border-color .16s, transform .16s;
}
.shop-item:hover { border-color: var(--line2); transform: translateY(-2px); }
.shop-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.shop-item h3 { margin: 0; font-size: 17px; font-weight: 600; }
.shop-item p { margin: 0; color: var(--dim); font-size: 14px; line-height: 1.6; flex: 1; }
.price {
  font-weight: 700; font-size: 16px; white-space: nowrap; color: var(--acc-ink);
  font-variant-numeric: tabular-nums;
}

.notice {
  background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--acc);
  border-radius: var(--r); padding: 16px 20px; margin: 28px 0 56px; font-size: 14px; color: var(--dim);
}
.notice p { margin: 0; }

/* ===== Витрина привилегий: ранги-вкладки ===== */
.rank-picker {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px;
  margin-bottom: 28px;
}
.rank-card {
  position: relative; cursor: pointer; font-family: inherit;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 22px 14px 18px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  transition: border-color .16s, transform .16s, background .16s, box-shadow .16s;
}
.rank-card:hover { border-color: var(--line2); transform: translateY(-3px); }
.rank-card.active {
  border-color: var(--acc);
  background: linear-gradient(180deg, rgba(200, 31, 58, .16), transparent 65%), var(--panel);
  box-shadow: var(--glow);
}
.rank-ico { width: 46px; height: 46px; image-rendering: pixelated; }
.rank-name { font-weight: 700; font-size: 15px; color: var(--ink); letter-spacing: .3px; }
.rank-cost { font-size: 12.5px; color: var(--dim); font-variant-numeric: tabular-nums; }
.rank-card.active .rank-cost { color: var(--acc-ink); }
.rank-best {
  position: absolute; top: -9px; left: 50%; transform: translateX(-50%);
  background: var(--acc-grad); color: #fff; font-size: 9.5px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase; padding: 3px 10px; border-radius: 999px;
  white-space: nowrap;
}

/* Панель выбранного ранга */
.rank-panel {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r);
  padding: 24px; animation: fade .16s;
}
.rank-lead {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 20px;
  flex-wrap: wrap; padding-bottom: 18px; border-bottom: 1px solid var(--line);
}
.rank-lead h3 { font-size: 20px; margin: 0 0 6px; }
.rank-lead .tag { margin: 0; letter-spacing: 0; font-size: 13.5px; }
.rank-price {
  background: var(--bg2); border: 1px solid var(--line2); border-radius: var(--r-sm);
  padding: 10px 16px; font-size: 13px; color: var(--dim); white-space: nowrap;
}
.rank-price b { color: var(--acc-ink); font-size: 19px; font-variant-numeric: tabular-nums; }
.sub {
  margin: 20px 0 12px; font-size: 11.5px; letter-spacing: 1.2px;
  text-transform: uppercase; color: var(--dim2); font-weight: 600;
}

/* Наборы и сетка предметов */
.kits { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.kit { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
.kit-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.kit-top h4 { margin: 0; font-size: 15px; font-weight: 600; }
.kit-mode {
  font-size: 10.5px; letter-spacing: .6px; text-transform: uppercase; color: var(--dim2);
  white-space: nowrap;
}
.kit-items { display: flex; flex-wrap: wrap; gap: 6px; }
/* Ячейка предмета — как слот инвентаря: тёмный квадрат, число в углу */
.kit-item {
  position: relative; width: 40px; height: 40px; display: grid; place-items: center;
  background: #0F1116; border: 1px solid var(--line2); border-radius: 7px;
}
.kit-item img { width: 26px; height: 26px; image-rendering: pixelated; }
.kit-item b {
  position: absolute; right: 2px; bottom: 0; font-size: 10.5px; font-weight: 700;
  color: #fff; text-shadow: 0 1px 2px #000, 0 0 3px #000; font-variant-numeric: tabular-nums;
}
.kit-coins { margin-top: 10px; font-size: 12.5px; color: var(--ok); font-weight: 600; }

/* ===== Таблица сравнения ===== */
.cmp-block { margin-top: 44px; }
.cmp-wrap {
  overflow-x: auto; background: var(--panel);
  border: 1px solid var(--line); border-radius: var(--r); margin-top: 16px;
}
.cmp { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 620px; }
.cmp th, .cmp td {
  padding: 13px 16px; text-align: center; border-bottom: 1px solid var(--line);
}
.cmp thead th {
  position: sticky; top: 0; background: var(--panel2); color: var(--ink);
  font-size: 12px; letter-spacing: .6px; text-transform: uppercase; font-weight: 700;
}
.cmp tbody tr:last-child td { border-bottom: none; }
.cmp tbody tr:hover { background: rgba(255, 255, 255, .02); }
.cmp .cmp-k, .cmp thead th:first-child { text-align: left; color: var(--dim); font-weight: 500; }
.cmp .price { color: var(--acc-ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.cmp .no { color: var(--dim2); }

/* ===== Кабинет: сетка значений ===== */
.me-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px; margin: 22px 0;
}
.me-cell {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r);
  padding: 16px 18px; display: flex; flex-direction: column; gap: 6px;
}
.me-label { font-size: 11px; letter-spacing: 1.3px; text-transform: uppercase; color: var(--dim2); }
.me-value { font-size: 16px; font-weight: 600; }
.me-value.dim { color: var(--dim); font-weight: 400; }

/* Скин */
.me-skin { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 20px; }
.me-skin h3 { margin: 0 0 6px; font-size: 17px; }
.skin-row { display: flex; align-items: center; gap: 16px; margin-top: 12px; flex-wrap: wrap; }
.skin-preview {
  border: 1px solid var(--line2); border-radius: var(--r-sm);
  image-rendering: pixelated; background: var(--bg2);
}

/* Квесты */
.me-quests { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 20px; }
.me-quests h3 { margin: 0 0 12px; font-size: 17px; }
.q-row {
  display: grid; grid-template-columns: 22px minmax(140px, 200px) 1fr; gap: 12px;
  padding: 9px 0; border-bottom: 1px solid var(--line); align-items: baseline;
}
.q-row:last-child { border-bottom: none; }
/* Маркер квеста рисуем CSS: глифы ■/◪/□ в Inter выглядят как «тофу» на тёмном */
.q-mark { font-size: 0; line-height: 0; }
.q-mark::before {
  content: ''; display: inline-block; width: 11px; height: 11px; border-radius: 3px;
  border: 1.5px solid var(--dim2); vertical-align: middle;
}
.q-started .q-mark::before { border-color: var(--acc); background: rgba(200, 31, 58, .35); }
.q-done .q-mark::before { border-color: var(--ok); background: var(--ok); }
.q-title { font-weight: 600; font-size: 14px; }
.q-hint { color: var(--dim2); font-size: 12px; }
.q-row:not(.q-done):not(.q-started) .q-title { color: var(--dim2); font-weight: 400; }
.q-done .q-title { color: var(--ink); }

/* Пустое состояние списка (маркет без лотов и т.п.) — на всю ширину сетки */
.empty {
  grid-column: 1 / -1;
  background: var(--panel); border: 1px dashed var(--line2); border-radius: var(--r);
  padding: 28px; text-align: center; color: var(--dim); font-size: 14px;
}
.empty b { color: var(--ink); }

/* ===== Кабинет: вкладки ===== */
.cabinet { padding: 40px 0 60px; }
.cab-tabs {
  display: flex; gap: 6px; margin-bottom: 24px; flex-wrap: wrap;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 6px;
}
.cab-tab {
  background: transparent; border: none; border-radius: var(--r-sm);
  padding: 10px 18px; font-family: inherit; font-size: 13.5px; font-weight: 600;
  cursor: pointer; color: var(--dim); transition: color .14s, background .14s;
}
.cab-tab:hover { color: var(--ink); background: rgba(255, 255, 255, .04); }
.cab-tab.active { background: var(--acc-grad); color: #fff; }
.cab-body { animation: fade .16s; }
@keyframes fade { from { opacity: 0; transform: translateY(4px) } to { opacity: 1; transform: none } }

.cab-table { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.cab-row {
  display: grid; grid-template-columns: minmax(160px, 220px) 1fr; gap: 14px; align-items: center;
  padding: 14px 18px; border-bottom: 1px solid var(--line);
}
.cab-row:last-child { border-bottom: none; }
.cab-k { font-size: 11.5px; letter-spacing: .8px; text-transform: uppercase; color: var(--dim2); }
.cab-v { font-size: 15px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cab-inline { display: flex; gap: 10px; align-items: center; margin-top: 14px; flex-wrap: wrap; }
.cab-inline input { font-size: 13px; padding: 9px 12px; }

/* ===== Лестница привилегий ===== */
.priv-ladder { display: flex; flex-direction: column; gap: 8px; }
.priv {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r);
  padding: 13px 18px; transition: border-color .16s;
}
.priv:hover { border-color: var(--line2); }
.priv-cur {
  background: linear-gradient(90deg, rgba(200, 31, 58, .18), transparent 60%), var(--panel);
  border-color: var(--acc);
}
.priv-own { border-color: rgba(89, 192, 107, .4); }
.priv-left { display: flex; align-items: center; gap: 12px; }
.priv-ico { width: 26px; height: 26px; image-rendering: pixelated; }
.priv-right { display: flex; align-items: center; gap: 14px; }
.priv-name { font-weight: 700; font-size: 15px; }
.priv-cur .priv-name { color: #fff; }
.priv-note { font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--dim2); }
.priv-cur .priv-note { color: var(--acc-ink); }
.priv-own .priv-note { color: var(--ok); }
.priv-cost {
  font-size: 13px; font-weight: 700; color: var(--dim); font-variant-numeric: tabular-nums;
  min-width: 74px; text-align: right;
}

/* Статус набора в кабинете */
.kit-state { margin-top: 10px; font-size: 12.5px; font-weight: 600; color: var(--dim); }
.kit-ready { border-color: rgba(89, 192, 107, .35); }
.kit-ready .kit-state { color: var(--ok); }
.kit-wait .kit-state { color: var(--dim); }
.kit-done { opacity: .6; }
.kit-locked { opacity: .55; }
.kit-locked .kit-state { color: var(--acc-ink); }

/* История операций */
.log-table td { font-variant-numeric: tabular-nums; }
.delta-up { color: var(--ok); font-weight: 700; }
.delta-down { color: var(--acc-ink); font-weight: 700; }

/* Голова игрока из своего скина (без внешних сервисов) */
.avatar-skin {
  position: relative; width: 72px; height: 72px; overflow: hidden;
  background-image: var(--skin); background-size: 576px 576px; background-position: -72px -72px;
  image-rendering: pixelated;
}
.avatar-skin i {
  position: absolute; inset: 0;
  background-image: var(--skin); background-size: 576px 576px; background-position: -360px -72px;
  image-rendering: pixelated;
}
.avatar-none {
  width: 72px; height: 72px;
  background: repeating-conic-gradient(var(--panel2) 0% 25%, var(--bg2) 0% 50%) 0 / 18px 18px;
}

/* ===== Достижения ===== */
.ach-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.ach {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r);
  padding: 16px 18px; opacity: .45;
}
.ach-got { opacity: 1; border-color: var(--line2); }
.ach-anti.ach-got { border-color: rgba(200, 31, 58, .5); background: rgba(200, 31, 58, .07); }
.ach-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.ach-title { font-weight: 700; font-size: 15px; }
.ach-pts { font-weight: 700; font-size: 13px; white-space: nowrap; color: var(--ok); font-variant-numeric: tabular-nums; }
.ach-anti .ach-pts { color: var(--acc-ink); }
.ach-desc { margin: 6px 0 0; font-size: 13px; color: var(--dim); line-height: 1.55; }

@media (max-width: 720px) {
  nav { padding: 12px 5vw; }
  .nav-right { gap: 2px; }
  .nav-right a { padding: 7px 9px; font-size: 11px; }
  main { padding: 0 5vw 60px; }
  .hero { padding: 64px 0 44px; }
  .cab-row { grid-template-columns: 1fr; gap: 6px; }
  .q-row { grid-template-columns: 20px 1fr; }
  .q-hint { grid-column: 2; }
}
