/* ============================================================
   AION Nexus — Editorial Brutalism x Swiss Design skin.
   Подключается ПОСЛЕДНИМ (после style.css / cabinet-theme.css /
   empire.css) и перекрывает визуальный слой. Логика и JS не тронуты.
   Шрифты: self-hosted woff2 в /fonts/brutal/ — без Google Fonts.
   ============================================================ */

/* ---------- Self-hosted fonts ---------- */
@font-face {
  font-family: 'Syne';
  src: url('/fonts/brutal/syne-latin-wght-normal.woff2') format('woff2');
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Syne';
  src: url('/fonts/brutal/syne-latin-ext-wght-normal.woff2') format('woff2');
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Manrope';
  src: url('/fonts/brutal/manrope-cyrillic-ext-wght-normal.woff2') format('woff2');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Manrope';
  src: url('/fonts/brutal/manrope-cyrillic-wght-normal.woff2') format('woff2');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Manrope';
  src: url('/fonts/brutal/manrope-latin-wght-normal.woff2') format('woff2');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  src: url('/fonts/brutal/manrope-latin-ext-wght-normal.woff2') format('woff2');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('/fonts/brutal/jetbrains-mono-cyrillic-ext-wght-normal.woff2') format('woff2');
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('/fonts/brutal/jetbrains-mono-cyrillic-wght-normal.woff2') format('woff2');
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('/fonts/brutal/jetbrains-mono-latin-wght-normal.woff2') format('woff2');
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Playfair Display';
  src: url('/fonts/brutal/playfair-display-cyrillic-400-italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Playfair Display';
  src: url('/fonts/brutal/playfair-display-latin-400-italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root,
[data-theme="light"] {
  --bg: #0E0B0A;
  --bg-2: #15110F;
  --panel: transparent;
  --panel-hover: rgba(242, 233, 228, 0.03);
  --border: #2A2320;
  --border-strong: #2A2320;
  --text: #F2E9E4;
  --muted: #756963;
  --accent-1: #D90429;
  --accent-2: #D90429;
  --accent-3: #D90429;
  --danger: #D90429;
  --ok: #756963;
  --radius: 0px;
  --radius-sm: 0px;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Manrope", "Syne", sans-serif;
  --mono: "JetBrains Mono", "Spline Sans Mono", monospace;
  --grad: none;
  --shadow-soft: none;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --accent: #D90429;
  --accent-dim: rgba(217, 4, 41, 0.12);
  --pad: clamp(1.5rem, 5vw, 7rem);
  --maxw: none;
}

/* ---------- Фон: плоский обсидиан, без аврор и свечений ---------- */
.aurora { display: none !important; }
body {
  background: #0E0B0A !important;
  background-image: none !important;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

::selection { background: #D90429; color: #F2E9E4; }

* { box-shadow: none !important; }
[data-theme="light"] body { background: #0E0B0A !important; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #0E0B0A; }
::-webkit-scrollbar-thumb { background: #2A2320; }
::-webkit-scrollbar-thumb:hover { background: #D90429; }

/* ---------- Типографика: Syne 700-800, плотный кернинг ---------- */
h1, h2, h3, h4,
.section-head h2, .welcome h1, .hero h1, .shop-cat-title,
.admin-card-title, .stub-title, .modal-title, .acc-name {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  line-height: 0.98;
}

h1 { font-size: clamp(2.2rem, 5vw, 4.2rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 3rem); }

.muted, .acc-sub, .ref-left .muted, .char-xp-meta, .shop-hint,
.section-head p, .modal-text, .toggle-text .muted {
  color: var(--muted);
}

/* технические метки — моно, uppercase, широкий трекинг */
.chip, .chip-mini, .chip-tag, .lvl-badge, .db-badge, .lb-page-info,
.back-site, .ref-status, .char-xp-lbl, .char-xp-pct, .lb-tab,
.cp-sidebar-section-title, .page-info, .field span, .acct-banner,
.shop-subcats button, .brand-text, .panel-head-row .btn, .lb-empty,
.st-dot-k {
  font-family: var(--mono) !important;
  text-transform: uppercase;
  letter-spacing: 0.22em;
}

.section-head h2::after {
  content: '';
  display: block;
  width: 4rem;
  height: 2px;
  background: #D90429;
  margin-top: 0.9rem;
}

/* ---------- Кнопки: заливка выезжает снизу ---------- */
.btn, .login-btn, .icon-btn, .cp-sidebar-toggle, .auth-logo button {
  border-radius: 0 !important;
  position: relative;
  overflow: hidden;
  z-index: 0;
  background: transparent;
  border: 1px solid #2A2320;
  color: var(--text);
  font-family: var(--mono) !important;
  font-weight: 400 !important;
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  transition: color .4s var(--ease), border-color .4s var(--ease) !important;
}
.btn::after, .login-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: #D90429;
  transform: translateY(101%);
  transition: transform .5s cubic-bezier(0.7, 0, 0.2, 1);
}
.btn:hover, .login-btn:hover {
  color: #0E0B0A !important;
  background: #D90429 !important;
  border-color: #D90429 !important;
}
.btn:hover::after, .login-btn:hover::after { transform: translateY(0); }
.btn svg, .login-btn svg { position: relative; z-index: 1; }

.btn-primary {
  background: #D90429 !important;
  color: #0E0B0A !important;
  border-color: #D90429 !important;
}
.btn-primary:hover { color: #F2E9E4 !important; filter: none !important; }
.btn-danger { background: #D90429 !important; border-color: #D90429 !important; color: #F2E9E4 !important; }
.btn-ghost { background: transparent !important; }
.btn:hover { border-color: #D90429 !important; }

/* ---------- Поля ввода ---------- */
.field input, .field select, .field textarea,
.ref-link, input[type="text"], input[type="email"], input[type="password"], input[type="number"], select, textarea {
  border-radius: 0 !important;
  background: rgba(242, 233, 228, 0.03) !important;
  border: 1px solid #2A2320 !important;
  color: var(--text) !important;
  transition: border-color .3s;
}
.field input:focus, .ref-link:focus, input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: #D90429 !important;
  box-shadow: none !important;
}

/* ---------- Вход/регистрация ---------- */
.auth-aside, .auth-glow {
  background: #0E0B0A !important;
  background-image: none !important;
}
.auth-card {
  background: #15110F !important;
  border: 1px solid #2A2320 !important;
  border-radius: 0 !important;
}
.auth-logo h1 { font-size: 2rem; }
.auth-logo h1 em { color: #D90429; font-style: normal; }

/* ---------- Нижний сайдбар кабинета: моно-меню ---------- */
.cp-sidebar {
  background: #0E0B0A !important;
  border-right: 1px solid #2A2320 !important;
}
.cp-sidebar-nav { counter-reset: brt-link; }

.cp-sidebar-link {
  border-radius: 0 !important;
  font-family: var(--mono) !important;
  font-size: 10px !important;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted) !important;
  padding: 13px 22px 13px 26px !important;
  position: relative;
  transition: color .3s var(--ease);
}
.cp-sidebar-link svg { display: none; }
.cp-sidebar-link::before {
  counter-increment: brt-link;
  content: "0" counter(brt-link) ".";
  color: #756963;
  margin-right: 10px;
  transition: color .3s;
}
.cp-sidebar-link::after {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  width: 2px; height: 0;
  transform: translateY(-50%);
  background: #D90429;
  transition: height .35s var(--ease);
}
.cp-sidebar-link:hover { color: var(--text) !important; }
.cp-sidebar-link:hover::after { height: 22px; }
.cp-sidebar-link.active {
  color: var(--text) !important;
  background: rgba(217, 4, 41, 0.06) !important;
}
.cp-sidebar-link.active::before,
.cp-sidebar-link.active::after { color: #D90429; height: 22px; }

.cp-sidebar-section-title {
  color: #756963 !important;
  font-size: 9px !important;
  opacity: 1;
}
.cp-sidebar-divider { background: #2A2320; height: 1px; margin: 0 !important; opacity: 1; }
.cp-sidebar-logo, .cp-sidebar-footer-links a {
  font-family: var(--mono) !important;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 10px;
}
.cp-sidebar-logo .brand-text em { color: #D90429; font-style: normal; }
.brand-mark { border-radius: 0 !important; background: #D90429 !important; width: 9px !important; height: 9px !important; box-shadow: none !important; }

/* ---------- Верхняя панель кабинета ---------- */
.topbar {
  background: rgba(14, 11, 10, 0.9) !important;
  backdrop-filter: blur(6px);
  border-bottom: 1px solid #2A2320 !important;
}

/* ---------- Панели и карточки: плоско, волосатые линии ---------- */
.panel, .meta-card, .stat, .acc-row, .ref-row, .admin-card, .admin-cat, .admin-item,
.shop-cat, .shop-item, .modal-box, .empty-state, .stub-box, .table-panel,
.auth-card, .welcome, .hero, .acct, .shop-balance, .aura-box {
  background: transparent !important;
  border: 1px solid #2A2320 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  transform: none !important;
}
.panel, .stat, .welcome { background: #15110F !important; }

.panel-head-row { align-items: center; }

.stat { background: #15110F !important; transition: border-color .4s var(--ease); }
.stat:hover { border-color: #D90429 !important; }
.stat-ico {
  background: rgba(233, 228, 231, 0.44) !important;
  border: 1px solid #2A2320 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  width: 42px; height: 42px;
  display: grid; place-items: center;
}
.stat-ico, .stat-val, .stat-lbl {
  font-family: var(--mono) !important;
  font-weight: 300;
}
.stat-val { font-size: 1.35rem; letter-spacing: 0.02em; color: var(--text); }
.stat-lbl {
  font-size: 9px; text-transform: uppercase; letter-spacing: 0.2em;
  color: #756963;
}
.stat-prog { border-radius: 0; background: #2A2320; height: 3px; }
.stat-prog-fill { background: #D90429; border-radius: 0; }

/* Наименования акка/игроков — Syne */
.acc-name, .player-name, .ref-name, .shop-item-name, .aura-name {
  font-family: var(--display) !important;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.player-row {
  position: relative;
  transition: background .3s var(--ease);
}
.player-row:hover { background: rgba(242, 233, 228, 0.03); }
.player-row:hover .player-name { color: #D90429; }
.player-dot { border-radius: 0 !important; }
.player-dot.online { background: #D90429 !important; }
.lvl-badge { border: 1px solid #2A2320; border-radius: 0 !important; background: transparent !important; color: #756963 !important; }
.chip, .chip-mini, .chip-tag { border: 1px solid #2A2320 !important; border-radius: 0 !important; background: transparent !important; color: #756963 !important; }
.chip-tag { color: #D90429 !important; border-color: rgba(217,4,41,.4) !important; }

/* ---------- Донат / Aura ---------- */
.aura-icon {
  border: 1px solid rgba(217, 4, 41, 0.4) !important;
  border-radius: 0 !important;
  background: rgba(217, 4, 41, 0.08) !important;
  color: #D90429 !important;
  box-shadow: none !important;
}
.shop-balance { background: #15110F !important; }
.shop-balance-ico, .shop-item-price { color: #D90429 !important; font-family: var(--mono) !important; }
.shop-item {
  border: 1px solid #2A2320 !important;
  transition: border-color .4s var(--ease), background .3s;
}
.shop-item:hover { border-color: #D90429 !important; background: rgba(217, 4, 41, 0.05) !important; }
.shop-item:hover .shop-item-name { color: #D90429; }

/* ---------- Таблицы: editorial hairline ---------- */
.data-table th, .table thead th,
.data-table td, .table td {
  border-color: #2A2320 !important;
  border-radius: 0 !important;
}
.data-table th, .table thead th {
  background: #0E0B0A !important;
  color: #756963 !important;
  font-family: var(--mono) !important;
  font-weight: 400 !important;
  font-size: 9px !important;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  border-bottom: 1px solid #2A2320 !important;
}
.data-table tbody td, .table tbody td {
  transition: color .3s var(--ease), background .3s var(--ease);
  font-family: inherit;
}
/* спокойный hover строки: тёплый фон + тонкая красная направляющая слева */
.data-table tbody td:first-child { position: relative; }
.data-table tbody td:first-child::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: #D90429;
  transform: scaleY(0);
  transform-origin: center;
  transition: transform .35s var(--ease);
}
.data-table tbody tr:hover td, .table-hover tbody tr:hover td,
.table-striped tbody tr:hover td {
  background: rgba(242, 233, 228, 0.03) !important;
  color: var(--text);
}
.data-table tbody tr:hover td:first-child::before { transform: scaleY(1); }

.lb-rank, .num { font-family: var(--mono) !important; font-weight: 300; }
.lb-name {
  font-family: var(--display) !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  transition: color .3s;
}
.data-table tbody tr:hover .lb-name { color: #D90429; }
.lb-rating { color: #D90429 !important; letter-spacing: 0.06em; font-weight: 400 !important; }
.lb-gold td, .lb-silver td, .lb-bronze td { background: rgba(242, 233, 228, 0.035) !important; }
.lb-online { color: #D90429 !important; }
.lb-empty { color: #756963 !important; }
.rank-tier-0, .rank-tier-1 { font-family: var(--mono) !important; font-size: 10px !important; letter-spacing: .18em; }

.lb-tabs { gap: 6px; }
.lb-tab {
  border: 1px solid #2A2320 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #756963 !important;
  transition: color .3s, border-color .3s;
}
.lb-tab:hover { color: var(--text) !important; border-color: #D90429 !important; }
.lb-tab.active { color: #0E0B0A !important; border-color: #D90429 !important; background: #D90429 !important; }

/* ---------- Welcome (шапка дашборда) ---------- */
.welcome { background: #15110F !important; }
.welcome h1 { font-size: clamp(2rem, 4.5vw, 3.6rem); }
.welcome-avatar {
  border: 1px solid rgba(217, 4, 41, 0.4) !important;
  border-radius: 0 !important;
  background: rgba(217, 4, 41, 0.08) !important;
  box-shadow: none !important;
  font-family: var(--display) !important;
  font-weight: 800;
  color: #D90429 !important;
}

/* ---------- Модалки / тосты ---------- */
.modal-overlay { background: rgba(14, 11, 10, 0.82) !important; backdrop-filter: blur(3px); }
.modal-box { background: #15110F !important; }
.modal-icon.danger { color: #D90429; border-color: #2A2320; }
.toast { background: #15110F !important; border: 1px solid #D90429 !important; border-radius: 0 !important; color: var(--text) !important; }
.toast.error { border-color: #D90429; }
.toast:not(.error) { border-color: #2A2320 !important; }
.delete-timer { color: #D90429; }
.acct-banner { background: rgba(217, 4, 41, 0.06) !important; border: 1px solid rgba(217, 4, 41, 0.3) !important; }

/* ---------- Сёркль-донаты без скруглений не красиво — оставить кружки ---------- */
.welcome-avatar, .char-badge { border-radius: 0 !important; }
.donut { filter: saturate(0.85) contrast(1.05); }
.lg-name, .lg-val { font-family: var(--mono) !important; font-size: 10px; text-transform: uppercase; letter-spacing: .14em; }

/* ---------- Тумблер и прочее ---------- */
.toggle-track { border-radius: 0 !important; background: #2A2320; }
.toggle-track::after, .toggle-track .knob { border-radius: 0 !important; }
.captcha-img { border-radius: 0 !important; border: 1px solid #2A2320; background: #15110F; }
.acct-pending { border-color: rgba(217, 4, 41, 0.4) !important; }

/* Курсор и ховеры рядов/ссылок */
a { color: inherit; }
.page-content a, .cp-sidebar-footer-links a, .nav-links a { text-decoration: none; }

/* ============================================================
   ПУБЛИЧНЫЙ САЙТ (empire / home / inner)
   ============================================================ */

body.empire, body.empire body {
  background:
    linear-gradient(180deg, #0E0B0A 0%, #15110F 100%) !important;
}

/* Header */
body.empire .site-header {
  background: rgba(14, 11, 10, 0.72);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #2A2320;
  height: 76px;
}
body.empire .site-header.scrolled { background: rgba(14, 11, 10, 0.94); }
body.empire .brand img { display: none; }
body.empire .brand .wm {
  font-family: var(--display) !important;
  font-size: 24px !important;
  font-weight: 800 !important;
  letter-spacing: -0.04em !important;
  color: var(--text) !important;
}
body.empire .brand .wm::after {
  content: '.';
  color: #D90429;
}
body.empire .brand .wm b { color: inherit !important; }

/* меню: моно, нумерация через счётчик */
body.empire .nav-links { counter-reset: brt-nav; gap: 30px; }
body.empire .nav-links li + li::before { display: none; }
body.empire .nav-links a {
  font-family: var(--mono) !important;
  font-size: 10px !important;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: #756963 !important;
  background: none;
}
body.empire .nav-links a::before {
  counter-increment: brt-nav;
  content: '0' counter(brt-nav) '. ';
  color: #756963;
  transition: color .3s;
}
body.empire .nav-links a:hover,
body.empire .nav-links a.active { color: var(--text) !important; }
body.empire .nav-links a.active::before { color: #D90429; }
body.empire .login-btn {
  border-radius: 0 !important;
  font-family: var(--mono) !important;
  font-size: 10px;
  letter-spacing: .26em;
  text-transform: uppercase;
  padding: 12px 22px;
}
body.empire .burger { border-radius: 0 !important; }
body.empire .mobile-menu {
  background: #0E0B0A !important;
  border-bottom: 1px solid #2A2320 !important;
}
body.empire .mobile-menu a {
  font-family: var(--mono) !important;
  text-transform: uppercase;
  letter-spacing: .24em;
  font-size: 11px;
  border-bottom: 1px solid #2A2320;
}

/* Hero */
body.empire .emp-hero__scrim {
  background: linear-gradient(90deg, rgba(14, 11, 10, 0.94) 0%, rgba(14, 11, 10, 0.55) 55%, rgba(14, 11, 10, 0.2) 100%) !important;
}
body.empire .emp-subtitle {
  font-family: var(--mono) !important;
  font-size: 10px !important;
  letter-spacing: .3em !important;
  text-transform: uppercase;
  color: #756963 !important;
}
body.empire .emp-title_hero {
  font-family: var(--display) !important;
  font-weight: 800 !important;
  font-size: clamp(3.4rem, 9.5vw, 9rem) !important;
  letter-spacing: -0.045em !important;
  text-transform: uppercase !important;
  line-height: 0.92 !important;
}
body.empire .emp-title .emp-accent,
body.empire .emp-title .brt-it {
  font-family: "Playfair Display", serif !important;
  font-style: italic !important;
  font-weight: 400 !important;
  text-transform: none !important;
  letter-spacing: -0.02em !important;
  color: var(--text) !important;
}
body.empire .emp-title .emp-accent { color: var(--text) !important; }
body.empire .emp-desc {
  font-family: var(--font) !important;
  color: #756963 !important;
  max-width: 34ch;
}

/* Кнопки сайта: заливка снизу */
body.empire .emp-btn, body.empire .emp-bt {
  border-radius: 0 !important;
  background-image: none !important;
  background: transparent !important;
  border: 1px solid rgba(242, 233, 228, 0.4) !important;
  color: var(--text) !important;
  font-family: var(--mono) !important;
  font-size: 10px !important;
  letter-spacing: .28em;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  z-index: 0;
  transition: color .35s, border-color .35s !important;
}
body.empire .emp-btn::before, body.empire .emp-bt::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: #D90429;
  transform: translateY(101%);
  transition: transform .5s cubic-bezier(0.7, 0, 0.2, 1);
}
body.empire .emp-btn:hover::before, body.empire .emp-bt:hover::before { transform: translateY(0); }
body.empire .emp-btn:hover, body.empire .emp-bt:hover {
  color: #0E0B0A !important;
  border-color: #D90429 !important;
  filter: none !important;
}
body.empire .emp-btn_type_3 { background: #D90429 !important; border-color: #D90429 !important; color: #0E0B0A !important; }
body.empire .emp-btn_type_3:hover { color: #F2E9E4 !important; }
body.empire .emp-bt_gray { background: rgba(242, 233, 228, 0.04) !important; filter: none !important; }
body.empire .emp-bt_solid { background: #D90429 !important; color: #0E0B0A !important; }
body.empire .emp-bt_solid:hover { color: #F2E9E4 !important; }
body.empire .emp-btn svg, body.empire .emp-bt svg { display: none; }

/* Факт-полоса статуса */
body.empire .emp-fact {
  background: transparent !important;
  border: 0 !important;
  border-left: 1px solid #2A2320 !important;
  padding-left: 1.4rem !important;
  text-align: left;
  border-radius: 0 !important;
}
body.empire .emp-fact:hover { background: transparent !important; }
body.empire .emp-fact__k {
  font-family: var(--mono) !important;
  font-size: 9px !important;
  letter-spacing: .3em !important;
  color: #756963 !important;
}
body.empire .emp-fact__v {
  font-family: var(--mono) !important;
  font-size: 13px !important;
  color: var(--text) !important;
}
body.empire .emp-fact__v b { color: #D90429 !important; font-weight: 400; }

/* Новости */
body.empire .emp-note, body.empire .emp-post, body.empire .emp-dl, body.empire .emp-invite {
  border: 1px solid #2A2320 !important;
  border-radius: 0 !important;
  background: #15110F !important;
  background-image: none !important;
  box-shadow: none !important;
  overflow: hidden;
  transition: border-color .4s var(--ease);
}
body.empire .emp-note:hover, body.empire .emp-post:hover { border-color: #D90429 !important; }
body.empire .emp-sec__bg { filter: saturate(0.25) brightness(0.4); }
body.empire .emp-sec__shade { background: linear-gradient(180deg, rgba(14,11,10,.7), rgba(14,11,10,.95)) !important; }
body.empire .emp-note__sub, body.empire .emp-post__date, body.empire .emp-date__txt {
  font-family: var(--mono) !important;
  text-transform: uppercase;
  letter-spacing: .24em;
  font-size: 9px !important;
  color: #756963 !important;
}
body.empire .emp-note__title, body.empire .emp-post__title {
  font-family: var(--display) !important;
  font-weight: 800 !important;
  text-transform: uppercase;
  letter-spacing: -0.03em !important;
}
body.empire .emp-note__content li::marker { color: #D90429; content: '✕  '; }
body.empire .emp-date__sq { border-radius: 0 !important; background: #D90429 !important; }
body.empire .emp-post__img { filter: saturate(0.4) contrast(1.05); transition: filter .5s var(--ease), transform .8s var(--ease); }
body.empire .emp-post:hover .emp-post__img { filter: saturate(0.8); transform: scale(1.03); }
body.empire .emp-post__front { opacity: 1; }
body.empire .emp-post__front .emp-bt_solid { transform: none; opacity: 1; }

/* Загрузки / инвайт */
body.empire .emp-invite__title { font-family: var(--display) !important; font-weight: 800; text-transform: uppercase; letter-spacing: -0.03em; }
body.empire .emp-dl__title { font-family: var(--display) !important; font-weight: 800; text-transform: uppercase; letter-spacing: -0.02em; }
body.empire .emp-dl__row { border-bottom: 1px solid #2A2320; }
body.empire .emp-invite__img { mix-blend-mode: luminosity; opacity: .85; }

/* Footer */
body.empire .emp-footer {
  background: #0E0B0A !important;
  border-top: 1px solid #2A2320 !important;
}
body.empire .emp-footer__line { background: #2A2320 !important; }
body.empire .emp-footer__copy { font-family: var(--mono) !important; text-transform: uppercase; letter-spacing: .2em; font-size: 10px; }
body.empire .emp-footer__links a {
  font-family: var(--mono) !important;
  font-size: 10px !important;
  letter-spacing: .24em;
  text-transform: uppercase;
  border: 0 !important;
  background: none;
}
body.empire .emp-footer__legal, body.empire .emp-footer__bottom, body.empire .emp-footer__desc {
  color: #756963 !important;
}

/* внутренние страницы (downloads/kb/support) */
body.empire .inner-card, body.empire .kb-item, body.empire .dl-card {
  border: 1px solid #2A2320 !important;
  border-radius: 0 !important;
  background: #15110F !important;
}
body.empire .kb-item h3, body.empire .dl-card h3 {
  font-family: var(--display) !important;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.03em;
}

/* ============================================================
   Marquee (делится секции) + Image Reveal + Noise
   ============================================================ */

.brt-marquee {
  overflow: hidden;
  border-block: 1px solid #2A2320;
  background: #0E0B0A;
  padding: 18px 0;
}
.brt-marquee__track {
  display: flex;
  width: max-content;
  animation: brt-scroll 30s linear infinite;
}
.brt-marquee__track span {
  font-family: var(--mono);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 12px;
  color: var(--text);
  padding: 0 2.2rem;
  white-space: nowrap;
}
.brt-marquee__track i {
  color: #D90429;
  font-style: normal;
  font-size: 15px;
}
@keyframes brt-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* появление при скролле */
.brt-reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.brt-reveal.brt-in { opacity: 1; transform: none; }

/* шумовая плёнка */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

@media (prefers-reduced-motion: reduce) {
  .brt-marquee__track { animation: none; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ============================================================
   ������ �������: ������ ��� ��� �������:
   ������ ������ �������� + �������� �����������
   ============================================================ */

.page-content {
  max-width: none !important;
  margin: 0 !important;
  padding: 28px clamp(1.75rem, 4vw, 5rem) 64px !important;
}
.dash { max-width: none !important; }
.dash-grid { max-width: none !important; }
.char-page { max-width: none !important; width: 100%; }

.panel { width: 100%; }
.lb-table-wrap { width: 100%; max-width: none !important; }
.table-scroll { width: 100%; }
.table-panel { width: 100%; }

/* ������ ������ �� ���������� �� ����� ������� */
.data-table td { max-width: none !important; }
.data-table { font-size: 1.02em !important; }
.data-table td { padding-block: 15px !important; }
.data-table th { font-size: 10px !important; letter-spacing: 0.16em !important; padding-block: 12px !important; }
.lb-table th { white-space: nowrap; }
.lb-table td { padding-inline: 16px; }

/* Лог чата: сообщение должно переноситься, а не растягивать таблицу */
.lb-table td.lb-msg {
  white-space: normal !important;
  word-break: break-word !important;
  overflow-wrap: anywhere !important;
}
.lb-table td.lb-time { white-space: nowrap; }
.lb-table td.lb-name-cell .pl-nick { font-weight: 700; }
.lb-table td.lb-name-cell .pl-sub { font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; }

/* �������� �������: ���������� ����-����� �� ������� ���� */
.data-table td.num, .data-table th.num, .num {
  font-family: var(--mono) !important;
  font-weight: 300 !important;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* ���������� ������ ���. �������� */
.chip, .chip-mini, .lvl-badge, .db-badge, .ref-status, .st-dot-k { font-size: 11px !important; letter-spacing: 0.1em !important; }
.captions, .muted, .field span { font-size: 13px !important; }

/* ��������� ������: ������ �������� ������ �������� �������� */
.section-head h2 { font-size: clamp(1.5rem, 2.6vw, 2.4rem) !important; font-weight: 800 !important; }
.section-head p { font-size: 13.5px !important; letter-spacing: 0 !important; text-transform: none !important; }
.muted { letter-spacing: 0.01em !important; }

/* �������/������ ���� �������� �������� � ���������� */
.cp-sidebar-link { font-size: 10.5px !important; letter-spacing: 0.18em !important; }
.cp-sidebar-section-title { font-size: 9.5px !important; letter-spacing: 0.22em !important; }
.topbar .brand-text { font-size: 15px !important; letter-spacing: 0.08em; }

.welcome h1 { font-size: clamp(2.1rem, 4.2vw, 3.4rem) !important; }
.welcome .chip-mini { font-size: 10px !important; letter-spacing: 0.14em !important; }
