:root {
  --bg: #0b1622;
  --card: #111f30;
  --text: #e2eaf4;
  --text-muted: #7a96b0;
  --muted: #8aa4be;
  --cyan: #00d4ff;
  --orange: #f5a623;
  --border: rgba(0, 212, 255, 0.15);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* ─── HEADER (как на главной) ─── */
header[role="banner"] {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(11, 22, 34, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}
.nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 0;
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--cyan);
  letter-spacing: 0.05em;
  flex-shrink: 0;
}
.nav-logo img {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.nav-social {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.nav-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(0, 212, 255, 0.06);
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.nav-social-link svg {
  width: 18px;
  height: 18px;
  display: block;
}
.nav-social-telegram { color: #2AABEE; }
.nav-social-discord { color: #5865F2; }
.nav-social-youtube { color: #FF4444; }
.nav-social-link:hover {
  transform: translateY(-1px);
  background: rgba(0, 212, 255, 0.14);
  border-color: rgba(0, 212, 255, 0.45);
}
.nav-social-link:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}
.nav-ip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(0, 212, 255, 0.35);
  border-radius: 10px;
  background: rgba(0, 212, 255, 0.08);
  color: var(--text);
  cursor: pointer;
  flex-shrink: 1;
  min-width: 0;
  overflow: hidden;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
  -webkit-tap-highlight-color: transparent;
}
.nav-ip:hover {
  background: rgba(0, 212, 255, 0.16);
  border-color: rgba(0, 212, 255, 0.55);
}
.nav-ip:active {
  transform: scale(0.98);
}
.nav-ip:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}
.nav-ip.copied {
  border-color: rgba(39, 174, 96, 0.65);
  background: rgba(39, 174, 96, 0.18);
}
.nav-ip-label {
  flex-shrink: 0;
  padding: 8px 10px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-right: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.18);
}
.nav-ip-addr {
  padding: 8px 12px 8px 0;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 0;
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.35);
  border-radius: 8px;
  cursor: pointer;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 3px;
  background: #00d4ff;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
header.nav-open .nav-toggle span:nth-child(1),
.nav.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
header.nav-open .nav-toggle span:nth-child(2),
.nav.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}
header.nav-open .nav-toggle span:nth-child(3),
.nav.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}
.nav-links {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 2px 6px;
  list-style: none;
  margin: 0 0 0 auto;
  padding: 0;
}
.nav-links > li { margin: 0; position: relative; }
.nav-links > li > a,
.nav-dropdown-toggle {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 10px;
  border-radius: 8px;
  border: none;
  background: transparent;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s, background 0.2s;
}
.nav-links > li > a:hover,
.nav-dropdown-toggle:hover,
.nav-dropdown.open > .nav-dropdown-toggle {
  color: var(--cyan);
  background: rgba(0, 212, 255, 0.08);
}
.nav-cta {
  color: var(--cyan) !important;
  border: 1px solid rgba(0, 212, 255, 0.35) !important;
  background: rgba(0, 212, 255, 0.06) !important;
}
.nav-cta:hover {
  background: rgba(0, 212, 255, 0.14) !important;
}
.nav-cta-shop {
  color: #ffe5bd !important;
  border: 1px solid rgba(245, 166, 35, 0.5) !important;
  background: rgba(245, 166, 35, 0.12) !important;
}
.nav-cta-shop:hover {
  color: #fff7eb !important;
  background: rgba(245, 166, 35, 0.22) !important;
  border-color: rgba(245, 166, 35, 0.7) !important;
}
.nav-chevron {
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: 0.7;
  transition: transform 0.2s;
}
.nav-dropdown.open > .nav-dropdown-toggle .nav-chevron {
  transform: rotate(180deg);
}
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 180px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: rgba(17, 31, 48, 0.98);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
  z-index: 300;
}
.nav-dropdown.open > .nav-dropdown-menu {
  display: block;
}
.nav-dropdown-menu a {
  display: block;
  padding: 10px 12px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 6px;
  white-space: nowrap;
  transition: color 0.2s, background 0.2s;
}
.nav-dropdown-menu a:hover {
  color: var(--cyan);
  background: rgba(0, 212, 255, 0.08);
}

/* legacy selectors for pages not yet migrated */
.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
}
.nav-links a:hover { color: var(--cyan); }

.container {
  max-width: 980px;
  margin: 0 auto;
  padding: 28px 20px 48px;
  overflow-x: clip;
}
h1 { margin-top: 0; font-size: 2rem; }
h2 { margin-top: 28px; font-size: 1.35rem; color: var(--text); }
h3 { color: var(--text); font-size: 1.1rem; }
p, li { color: var(--muted); }
a { color: var(--cyan); }
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  margin-top: 14px;
}
code {
  background: rgba(0, 212, 255, 0.12);
  color: var(--cyan);
  padding: 2px 7px;
  border-radius: 6px;
  font-family: ui-monospace, "Cascadia Code", "Courier New", monospace;
  font-size: 0.92em;
}
.tip {
  border-left: 3px solid var(--cyan);
  padding-left: 12px;
  margin: 10px 0;
}
.badge-soon {
  display: inline-block;
  background: rgba(245, 166, 35, 0.15);
  color: var(--orange);
  border: 1px solid rgba(245, 166, 35, 0.4);
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.tag-grief {
  background: rgba(255, 82, 82, 0.15);
  color: #ff8a80;
  border: 1px solid rgba(255, 82, 82, 0.45);
}
.tag-cheat {
  background: rgba(186, 104, 255, 0.15);
  color: #ce93d8;
  border: 1px solid rgba(186, 104, 255, 0.45);
}
.tag-pest {
  background: rgba(245, 166, 35, 0.15);
  color: var(--orange);
  border: 1px solid rgba(245, 166, 35, 0.45);
}
.tag-spam {
  background: rgba(122, 150, 176, 0.15);
  color: var(--text-muted);
  border: 1px solid rgba(122, 150, 176, 0.4);
}
.ip-list {
  font-family: ui-monospace, "Cascadia Code", "Segoe UI Mono", monospace;
  font-size: 0.85rem;
  line-height: 1.7;
  word-break: break-all;
}
.ip-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  margin: 2px 0;
}
.tag-ip-static {
  background: rgba(0, 212, 255, 0.12);
  color: var(--cyan);
  border: 1px solid rgba(0, 212, 255, 0.4);
  font-size: 0.7rem;
  text-transform: lowercase;
  font-weight: 600;
  letter-spacing: 0;
}
.tag-ip-dyn {
  background: rgba(245, 166, 35, 0.12);
  color: var(--orange);
  border: 1px solid rgba(245, 166, 35, 0.4);
  font-size: 0.7rem;
  text-transform: lowercase;
  font-weight: 600;
  letter-spacing: 0;
}
.blacklist-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid rgba(0, 212, 255, 0.35);
  background: rgba(0, 212, 255, 0.08);
  color: var(--cyan);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
}
.blacklist-download:hover {
  background: rgba(0, 212, 255, 0.16);
}
.blacklist-hero {
  border: 1px solid rgba(255, 82, 82, 0.35);
  background: linear-gradient(135deg, rgba(255, 82, 82, 0.08), rgba(0, 212, 255, 0.05));
  border-radius: 12px;
  padding: 18px 20px;
  margin: 16px 0 24px;
}
.blacklist-hero p { margin: 0.4em 0; }
.blacklist-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 4px;
}
.blacklist-filters a {
  text-decoration: none;
}
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  font-size: 0.92rem;
}
.table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 10px 0;
}
.table-wrap table {
  margin-top: 0;
}
th, td {
  border: 1px solid var(--border);
  padding: 8px 10px;
  text-align: left;
}
th { color: var(--cyan); }
footer {
  border-top: 1px solid var(--border);
  padding: 32px 20px;
  text-align: center;
}
footer p { color: var(--muted); font-size: 0.85rem; margin: 6px 0; }
footer a { color: var(--cyan); text-decoration: none; }
.mc-disclaimer {
  max-width: 52rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.45;
  color: var(--muted);
}
.mc-disclaimer small {
  font-size: 0.78rem;
}

/* ─── ARTICLES (listing + article v2 layout) ─── */
.container-wide {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.article-list {
  display: grid;
  gap: 18px;
  margin-top: 20px;
}
.article-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}
.article-card:hover {
  border-color: rgba(0, 212, 255, 0.45);
  transform: translateY(-2px);
}
.article-card-link {
  display: grid;
  grid-template-columns: minmax(0, 280px) 1fr;
  gap: 0;
  text-decoration: none;
  color: inherit;
}
.article-card-picture {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 160px;
}
.article-card-img {
  width: 100%;
  height: 100%;
  min-height: 160px;
  object-fit: cover;
  display: block;
}
.article-card-body {
  padding: 18px 20px;
}
.article-card-body h2 {
  margin: 0 0 8px;
  font-size: 1.25rem;
  color: var(--text);
}
.article-card-body p {
  margin: 0 0 10px;
  font-size: 0.95rem;
}
.article-card-more {
  color: var(--cyan);
  font-size: 0.9rem;
  font-weight: 600;
}
.article-card-link:not(:has(.article-card-img)) .article-card-body {
  padding-top: 0;
}

/* Article page v2 (hero + sidebar TOC) */
body.article-v2 {
  background: #050a0f;
}
.article-hero-banner--minimal {
  min-height: clamp(220px, 32vw, 320px);
}
.article-hero-media--flat {
  background: linear-gradient(125deg, #0b1622 0%, #050a0f 42%, #122636 100%);
}
.article-hero-overlay--minimal {
  background: linear-gradient(180deg, rgba(5, 10, 15, 0.15) 0%, rgba(5, 10, 15, 0.88) 100%);
}
.guide-single {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 64px;
}
.guide-single .article-main {
  max-width: none;
}
.article-hero-banner {
  position: relative;
  z-index: 0;
  min-height: clamp(300px, 44vw, 440px);
  display: flex;
  align-items: flex-end;
  margin-bottom: 8px;
  overflow: hidden;
}
.article-hero-media {
  position: absolute;
  inset: 0;
}
.article-hero-media picture,
.article-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.article-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 10, 15, 0.25) 0%, rgba(5, 10, 15, 0.94) 78%),
    linear-gradient(90deg, rgba(5, 10, 15, 0.88) 0%, rgba(5, 10, 15, 0.35) 52%, transparent 100%);
}
.article-hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 36px 24px 44px;
}
.article-breadcrumb {
  margin: 0 0 18px;
  font-size: 0.88rem;
  color: rgba(226, 234, 244, 0.72);
}
.article-breadcrumb a {
  color: rgba(0, 212, 255, 0.9);
  text-decoration: none;
}
.article-breadcrumb a:hover {
  text-decoration: underline;
}
.article-category {
  margin: 0 0 10px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #c47033;
}
.article-title {
  margin: 0 0 14px;
  max-width: 16ch;
  font-size: clamp(2rem, 5.2vw, 3.35rem);
  font-weight: 800;
  line-height: 1.06;
  color: #fff;
}
.article-lead {
  margin: 0 0 18px;
  max-width: 54ch;
  font-size: clamp(1rem, 2.2vw, 1.12rem);
  line-height: 1.55;
  color: rgba(226, 234, 244, 0.92);
}
.article-hero-jump {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--cyan);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
}
.article-hero-jump:hover {
  text-decoration: underline;
}

.article-page {
  padding: 12px 0 64px;
}
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 300px);
  gap: 36px 40px;
  align-items: start;
}
.article-main .article-meta {
  margin: 0 0 20px;
  font-size: 0.88rem;
  color: var(--text-muted);
}
.article-status-banner {
  margin: 0 0 18px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(245, 166, 35, 0.1);
  border: 1px solid rgba(245, 166, 35, 0.35);
}
.article-main .card {
  display: flow-root; /* полоски h2 и фон не заходят под float/sidebar */
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  margin-top: 36px;
}
.article-main .card:first-of-type {
  margin-top: 8px;
}
.article-main .card h2 {
  margin: 0 0 16px;
  padding-bottom: 12px;
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
  color: #fff;
  border-bottom: none;
  position: relative;
}
.article-main .card h2::after {
  content: '';
  display: block;
  height: 2px;
  margin-top: 12px;
  max-width: 100%;
  background: linear-gradient(90deg, rgba(0, 212, 255, 0.95), rgba(0, 212, 255, 0.08) 72%, transparent);
  border-radius: 2px;
  box-shadow: 0 0 18px rgba(0, 212, 255, 0.25);
}
.article-main .card h3 {
  margin-top: 22px;
  font-size: 1.05rem;
  color: var(--cyan);
}
.article-main .card p,
.article-main .card li {
  color: rgba(226, 234, 244, 0.88);
}
.article-tldr {
  background: rgba(17, 31, 48, 0.65);
  border: 1px solid rgba(0, 212, 255, 0.22);
  border-radius: 14px;
  padding: 20px 22px;
  border-left: 3px solid var(--orange);
}
.article-tldr h2 {
  font-size: 1.1rem;
  margin-top: 0;
}
.article-tldr h2::after {
  display: none;
}

.article-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 8px 0 4px;
}
.article-feature {
  background: rgba(8, 18, 28, 0.75);
  border: 1px solid rgba(0, 212, 255, 0.28);
  border-radius: 12px;
  padding: 16px 14px 18px;
  min-height: 100%;
}
.article-feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 12px;
  border: 1px solid rgba(0, 212, 255, 0.45);
  border-radius: 10px;
  color: var(--cyan);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.12);
}
.article-feature-icon svg {
  width: 22px;
  height: 22px;
}
.article-feature h3 {
  margin: 0 0 8px;
  font-size: 0.95rem;
  color: #fff;
}
.article-feature p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.article-sidebar {
  position: relative;
}
.article-toc {
  position: sticky;
  top: 88px;
  padding: 4px 0 12px;
}
.article-toc-title {
  margin: 0 0 12px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--cyan);
}
.article-toc-title::after {
  content: '';
  display: block;
  height: 1px;
  margin-top: 10px;
  background: linear-gradient(90deg, rgba(0, 212, 255, 0.5), transparent);
}
.article-toc-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: article-toc;
}
.article-toc-list li {
  margin: 0 0 10px;
  counter-increment: article-toc;
}
.article-toc-list a {
  display: block;
  color: rgba(0, 212, 255, 0.92);
  text-decoration: none;
  font-size: 0.92rem;
  line-height: 1.4;
  padding-left: 1.6em;
  position: relative;
}
.article-toc-list a::before {
  content: counter(article-toc) '.';
  position: absolute;
  left: 0;
  color: rgba(0, 212, 255, 0.65);
  font-weight: 600;
}
.article-toc-list a:hover,
.article-toc-list a.is-active {
  color: #fff;
  text-decoration: underline;
}

.article-hero,
.article-figure img,
.article-figure picture,
.article-figure picture img {
  width: 100%;
  height: auto;
  display: block;
}
.article-figure {
  margin: 18px 0;
  text-align: center;
}
.article-figure figcaption {
  margin-top: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.article-figure .article-gif {
  width: 100%;
  max-width: 640px;
  height: auto;
  margin: 0 auto;
  border-radius: 8px;
  display: block;
}

/* ─── ENCYCLOPEDIA / WIKI MOB CARD ─── */
.wiki-layout {
  display: flow-root;
  margin: 8px 0 8px;
}
.wiki-body {
  min-width: 0;
}
/* BFC: секции и полоски h2 не заходят под float-инфобокс */
.wiki-body > .wiki-intro,
.wiki-body > .card {
  display: flow-root;
}
.wiki-intro p {
  margin-top: 0;
}
.wiki-body > .card:first-of-type {
  margin-top: 20px;
}
.wiki-short {
  margin: 0.85rem 0 0.4rem;
  width: 168px;
  height: 298px;
  max-width: 100%;
  border-radius: 10px;
  overflow: hidden;
  background: #000;
  position: relative;
}
.wiki-short iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.wiki-short-caption {
  margin: 0 0 0.2rem;
  font-size: 0.88rem;
}

.map-actions {
  margin: 0.5rem 0 1rem;
}
.map-embed-wrap {
  position: relative;
  width: 100%;
  min-height: min(70vh, 720px);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #0a0e14;
}
.map-embed {
  display: block;
  width: 100%;
  height: min(75vh, 780px);
  min-height: min(70vh, 720px);
  border: 0;
}
.map-fallback {
  margin-top: 0.75rem;
  color: var(--muted, #9aa4b2);
}
@media (max-width: 768px) {
  .map-embed,
  .map-embed-wrap {
    min-height: 62vh;
    height: 62vh;
    border-radius: 10px;
  }
}
.wiki-infobox {
  float: right;
  width: min(320px, 38%);
  margin: 0 0 22px 28px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  clear: right;
}
.wiki-infobox-head {
  padding: 14px 16px 10px;
  text-align: center;
  background: linear-gradient(180deg, rgba(0, 212, 255, 0.08), transparent);
}
.wiki-infobox-head h2 {
  margin: 0 0 4px;
  font-size: 1.2rem;
}
.wiki-infobox-sub {
  margin: 0 0 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
}
.wiki-infobox-badges {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}
.wiki-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.wiki-kind-passive {
  background: rgba(80, 200, 120, 0.15);
  color: #7ddea0;
  border: 1px solid rgba(80, 200, 120, 0.4);
}
.wiki-kind-neutral {
  background: rgba(245, 166, 35, 0.15);
  color: var(--orange);
  border: 1px solid rgba(245, 166, 35, 0.4);
}
.wiki-kind-hostile {
  background: rgba(255, 82, 82, 0.15);
  color: #ff8a80;
  border: 1px solid rgba(255, 82, 82, 0.45);
}
.wiki-kind-boss {
  background: rgba(186, 104, 255, 0.15);
  color: #ce93d8;
  border: 1px solid rgba(186, 104, 255, 0.45);
}
.wiki-cat {
  background: rgba(0, 212, 255, 0.1);
  color: var(--cyan);
  border: 1px solid rgba(0, 212, 255, 0.35);
}
.wiki-infobox-media {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: #0a121c;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.wiki-infobox-media picture {
  display: block;
  width: 100%;
  height: 100%;
}
.wiki-infobox-media img,
.wiki-infobox-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.wiki-stats {
  margin: 0;
  padding: 4px 0 10px;
}
.wiki-stats > div {
  display: grid;
  grid-template-columns: 38% 62%;
  gap: 8px;
  padding: 7px 14px;
  border-top: 1px solid rgba(0, 212, 255, 0.07);
}
.wiki-stats dt {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
}
.wiki-stats dd {
  margin: 0;
  color: var(--text);
  font-size: 0.88rem;
  word-break: break-word;
}
.wiki-hearts {
  color: #ff7a7a;
  font-weight: 700;
  white-space: nowrap;
}
.wiki-cat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0 28px;
}
.wiki-cat-card h2 {
  margin-top: 0;
  font-size: 1.15rem;
}
.wiki-cat-count {
  color: var(--cyan);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0;
}
.wiki-cat-list {
  margin: 8px 0 0;
  font-size: 0.92rem;
}
.wiki-entry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.wiki-entry-card .wiki-infobox-badges {
  justify-content: flex-start;
  margin-bottom: 8px;
}
.wiki-entry-card .article-card-link {
  grid-template-columns: 1fr;
}
.wiki-entry-card .article-card-picture,
.wiki-entry-card .article-card-img {
  min-height: 150px;
  max-height: 180px;
}

.online-players {
  --online-row-h: 44px;
  width: 100%;
  max-width: 640px;
  margin: 16px auto 0;
  text-align: left;
}
.online-players-title {
  margin: 0 0 10px;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.online-players-list {
  display: flex;
  flex-direction: column;
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: calc(var(--online-row-h) * 10);
  overflow-x: hidden;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(17, 31, 48, 0.72);
}
.online-players-list li {
  list-style: none;
}
.online-player {
  display: flex;
  align-items: center;
  gap: 8px;
  height: var(--online-row-h);
  min-height: var(--online-row-h);
  flex-shrink: 0;
  box-sizing: border-box;
  padding: 4px 12px;
  border-bottom: 1px solid rgba(0, 212, 255, 0.08);
}
.online-player:last-child {
  border-bottom: none;
}
.online-avatar {
  width: 28px;
  height: 28px;
  border-radius: 5px;
  background: #0b1622;
  flex-shrink: 0;
  image-rendering: pixelated;
}
.online-meta {
  min-width: 0;
  flex: 1;
}
.online-name {
  font-weight: 700;
  color: #fff;
  font-size: 0.88rem;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.online-sub {
  color: var(--text-muted);
  font-size: 0.72rem;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.online-tag {
  color: var(--cyan);
  font-weight: 700;
  letter-spacing: 0.04em;
}
.online-role {
  color: var(--orange);
}
.online-rank {
  color: #fbbf24;
}
.online-server {
  opacity: 0.85;
}
.online-clan-none {
  opacity: 0.8;
}
.card .online-players {
  margin: 12px 0 0;
  max-width: none;
}

@media (max-width: 600px) {
  .online-players { --online-row-h: 40px; }
  .online-avatar { width: 24px; height: 24px; }
  .online-player { padding: 3px 8px; gap: 6px; }
}

@media (max-width: 400px) {
  .nav-logo {
    font-size: 0;
    gap: 0;
    letter-spacing: 0;
  }
  .nav-ip-label {
    display: none;
  }
  .nav-ip-addr {
    padding: 7px 10px;
    font-size: 0.78rem;
  }
}
@media (max-width: 768px) {
  .nav-ip {
    margin-left: auto;
    max-width: min(52vw, 220px);
  }
  .nav-social {
    gap: 4px;
  }
  .nav-social-link {
    width: 32px;
    height: 32px;
  }
  .nav-toggle {
    display: flex;
    margin-left: 0;
  }
  .nav-links {
    display: none !important;
    position: absolute;
    top: 100%;
    left: -24px;
    right: -24px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 16px 32px 24px;
    background: rgba(11, 22, 34, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
    z-index: 200;
  }
  header.nav-open .nav-links,
  .nav.nav-open .nav-links {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-left: 0;
  }
  .nav-links > li > a,
  .nav-dropdown-toggle {
    padding: 14px 12px;
    font-size: 1rem;
    color: var(--text);
    border-bottom: 1px solid rgba(0, 212, 255, 0.1);
    border-radius: 0;
    width: 100%;
    justify-content: space-between;
  }
  .nav-dropdown-menu {
    position: static;
    display: none;
    box-shadow: none;
    border: none;
    border-radius: 0;
    background: rgba(0, 0, 0, 0.2);
    padding: 0;
    min-width: 0;
  }
  .nav-dropdown.open > .nav-dropdown-menu {
    display: block;
  }
  .nav-dropdown-menu a {
    padding: 12px 12px 12px 24px;
    border-bottom: 1px solid rgba(0, 212, 255, 0.06);
    font-size: 0.95rem;
  }
  .nav-links > li:last-child > a {
    border-bottom: none;
  }
  .article-layout {
    grid-template-columns: 1fr;
  }
  .article-sidebar {
    order: -1;
  }
  .article-toc {
    position: static;
    padding-bottom: 4px;
  }
  .article-feature-grid {
    grid-template-columns: 1fr 1fr;
  }
  .article-title {
    max-width: none;
  }
  .article-card-link {
    grid-template-columns: 1fr;
  }
  .article-card-picture {
    min-height: 180px;
    max-height: 200px;
  }
  .article-card-img {
    min-height: 180px;
    max-height: 200px;
  }
  .wiki-infobox {
    float: none;
    width: 100%;
    max-width: 420px;
    margin: 0 auto 22px;
  }
  .wiki-short {
    width: 135px;
    height: 240px;
  }
  .wiki-cat-grid {
    grid-template-columns: 1fr;
  }
  .wiki-stats > div {
    grid-template-columns: 36% 64%;
    padding: 6px 12px;
  }
  .table-wrap {
    margin-left: -4px;
    margin-right: -4px;
    padding-bottom: 4px;
  }
  .card table,
  .table-wrap table {
    table-layout: fixed;
    font-size: 0.82rem;
  }
  .card th,
  .card td,
  .table-wrap th,
  .table-wrap td {
    padding: 6px 8px;
    word-break: break-word;
    overflow-wrap: anywhere;
    hyphens: auto;
  }
}

@media (min-width: 769px) {
  .nav {
    justify-content: flex-start;
  }
  .nav-toggle {
    display: none !important;
  }
  .article-toc {
    top: 88px;
  }
  /* Невидимая зона между кнопкой и меню — иначе при медленном движении мыши :hover сбрасывается */
  .nav-dropdown-menu::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: -12px;
    height: 12px;
  }
  .nav-dropdown:hover > .nav-dropdown-menu,
  .nav-dropdown:focus-within > .nav-dropdown-menu {
    display: block;
  }
  .nav-dropdown:hover > .nav-dropdown-toggle,
  .nav-dropdown:focus-within > .nav-dropdown-toggle {
    color: var(--cyan);
    background: rgba(0, 212, 255, 0.08);
  }
}

/* ─── Donate / services cards ─── */
.donate-page-head {
  margin: 0.35rem 0 1.1rem;
}
.donate-page-head h1 {
  margin: 0;
  font-size: clamp(1.55rem, 3.2vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1.15;
}
.donate-lead {
  margin: 0.65rem 0 0;
  color: var(--muted);
  max-width: 40rem;
  line-height: 1.45;
}
.donate-section-note {
  margin: -0.35rem 0 0.95rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
  max-width: 46rem;
}
.guide-single:has(#donate-catalog) {
  padding-top: 0.35rem;
}
.article-page:has(#donate-catalog) {
  padding-top: 0.5rem;
  padding-bottom: 5.5rem;
}

.donate-section-title {
  margin: 0 0 0.85rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.02em;
}
.donate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.1rem;
  margin-bottom: 1.75rem;
}
.donate-grid--vip {
  grid-template-columns: 1fr;
}

.donate-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.25rem 1.25rem 1.15rem;
  border-radius: 18px;
  border: 1px solid transparent;
  background: var(--card);
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  min-height: 100%;
}
.donate-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--donate-accent, var(--cyan));
}
.donate-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.35);
}
.donate-card.is-selected {
  border-color: color-mix(in srgb, var(--donate-accent, var(--cyan)) 70%, white);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--donate-accent, var(--cyan)) 45%, transparent),
    0 16px 40px rgba(0, 0, 0, 0.35);
}

.donate-card--fly {
  --donate-accent: #3dd6ff;
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(61, 214, 255, 0.28), transparent 55%),
    linear-gradient(165deg, #14324a 0%, #111f30 55%);
}
.donate-card--tp {
  --donate-accent: #c084fc;
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(192, 132, 252, 0.3), transparent 55%),
    linear-gradient(165deg, #2a1f45 0%, #111f30 55%);
}
.donate-card--vip {
  --donate-accent: #f5c542;
  background:
    radial-gradient(90% 70% at 0% 0%, rgba(245, 197, 66, 0.35), transparent 50%),
    radial-gradient(80% 60% at 100% 100%, rgba(255, 120, 40, 0.18), transparent 45%),
    linear-gradient(145deg, #3a2a12 0%, #1a2433 48%, #111f30 100%);
  padding: 1.5rem 1.5rem 1.35rem;
}
.donate-card--home {
  --donate-accent: #f0a05a;
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(240, 160, 90, 0.28), transparent 55%),
    linear-gradient(165deg, #3a2a18 0%, #111f30 55%);
}
.donate-card--workshop {
  --donate-accent: #e07a4a;
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(224, 122, 74, 0.3), transparent 55%),
    linear-gradient(165deg, #3a2218 0%, #111f30 55%);
}
.donate-card--style {
  --donate-accent: #f472b6;
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(244, 114, 182, 0.28), transparent 55%),
    linear-gradient(165deg, #3a1830 0%, #111f30 55%);
}

.donate-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}
.donate-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.55rem;
  line-height: 1;
  background: color-mix(in srgb, var(--donate-accent) 22%, transparent);
  border: 1px solid color-mix(in srgb, var(--donate-accent) 45%, transparent);
  box-shadow: 0 0 24px color-mix(in srgb, var(--donate-accent) 25%, transparent);
}
.donate-card-badge {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  color: #0b1622;
  background: var(--donate-accent);
}
.donate-card h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: #fff;
}
.donate-card-desc {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  flex: 1;
}
.donate-card-perks {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.35rem;
}
.donate-card-perks li {
  display: flex;
  gap: 0.45rem;
  align-items: flex-start;
  font-size: 0.92rem;
  color: var(--text);
}
.donate-card-perks li::before {
  content: "✦";
  color: var(--donate-accent);
  font-size: 0.75rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
}
.donate-card-perks--detailed {
  gap: 0.55rem;
}
.donate-card-perks--detailed li {
  display: block;
  position: relative;
  padding-left: 1.15rem;
  font-size: 0.88rem;
  line-height: 1.45;
}
.donate-card-perks--detailed li::before {
  position: absolute;
  left: 0;
  margin-top: 0.15rem;
}
.donate-card-perks--detailed li strong {
  color: #fff;
}
.purchases-form {
  display: grid;
  gap: 0.85rem;
  max-width: 28rem;
}
.purchases-field {
  display: grid;
  gap: 0.35rem;
}
.purchases-field label {
  font-size: 0.9rem;
  color: var(--muted);
}
.purchases-field input {
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-elevated, #12161c);
  color: var(--text);
  font: inherit;
}
.donate-card-price {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  margin-top: 0.15rem;
}
.donate-card-price strong {
  font-size: 1.85rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}
.donate-card-price span {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.donate-qty {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
}
.donate-qty button {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--donate-accent) 50%, transparent);
  background: color-mix(in srgb, var(--donate-accent) 16%, transparent);
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
  transition: background 0.15s ease, transform 0.1s ease;
}
.donate-qty button:hover {
  background: color-mix(in srgb, var(--donate-accent) 32%, transparent);
}
.donate-qty button:active {
  transform: scale(0.96);
}
.donate-qty input {
  width: 3.2rem;
  text-align: center;
  padding: 0.45rem 0.25rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(11, 22, 34, 0.7);
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 700;
  -moz-appearance: textfield;
}
.donate-qty input::-webkit-outer-spin-button,
.donate-qty input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.donate-qty-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-left: 0.25rem;
}

.donate-checkout {
  position: static;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem 1.1rem;
  padding: 0.75rem 1.15rem;
  min-height: 72px;
  box-sizing: border-box;
  border-radius: 16px;
  border: 1px solid rgba(0, 212, 255, 0.35);
  background: rgba(11, 22, 34, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.45);
}
.donate-checkout-nick,
.donate-checkout-sum,
.donate-pay-btn {
  height: 48px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
}
.donate-checkout-nick {
  gap: 0.7rem;
  flex: 1 1 12rem;
  min-width: 11rem;
  max-width: 18rem;
  padding: 0 0.9rem;
  border-radius: 12px;
  border: 1px solid rgba(0, 212, 255, 0.38);
  background:
    linear-gradient(135deg, rgba(0, 212, 255, 0.12), rgba(245, 166, 35, 0.06)),
    rgba(11, 22, 34, 0.92);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}
.donate-checkout-nick:focus-within {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.2);
}
.donate-checkout-nick label {
  display: block;
  flex-shrink: 0;
  margin: 0;
  padding: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cyan);
  line-height: 1;
}
.donate-checkout-nick input {
  appearance: none;
  -webkit-appearance: none;
  flex: 1;
  min-width: 0;
  height: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1;
  font-family: ui-monospace, "Cascadia Code", "Segoe UI", monospace;
  color-scheme: dark;
}
.donate-checkout-nick input::placeholder {
  color: rgba(226, 234, 244, 0.45);
  line-height: 1;
}
.donate-checkout-nick input:focus {
  outline: none;
}
.donate-checkout-nick input:-webkit-autofill,
.donate-checkout-nick input:-webkit-autofill:hover,
.donate-checkout-nick input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text);
  caret-color: var(--text);
  box-shadow: 0 0 0 1000px #0f1c28 inset;
  transition: background-color 9999s ease-out;
}
.donate-checkout-sum {
  gap: 0.35rem;
  font-size: 1.05rem;
  line-height: 1;
  color: var(--text-muted);
  white-space: nowrap;
}
.donate-checkout-sum strong {
  color: #fff;
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1;
}
.donate-pay-note {
  flex: 1 1 100%;
  margin: 0;
  color: var(--text-muted);
  line-height: 1.45;
}
.donate-pay-btn {
  appearance: none;
  justify-content: center;
  margin-left: auto;
  padding: 0 1.6rem;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.02em;
  color: #0b1622;
  text-decoration: none;
  background: linear-gradient(135deg, #00e0ff 0%, #3dffb0 50%, #f5c542 100%);
  background-size: 160% 160%;
  box-shadow: 0 8px 28px rgba(0, 212, 255, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
a.donate-pay-btn {
  display: inline-flex;
  align-items: center;
}
.donate-pay-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow: 0 12px 32px rgba(61, 255, 176, 0.35);
}
.donate-pay-btn:disabled {
  opacity: 0.55;
  cursor: wait;
}
.donate-error {
  flex: 1 0 100%;
  margin: 0;
  color: #ff7b8a;
  font-weight: 600;
  line-height: 1.3;
}
.donate-error:empty {
  display: none;
}
@media (max-width: 640px) {
  .donate-checkout {
    bottom: 8px;
    padding: 0.85rem 1rem;
  }
  .donate-checkout-nick {
    flex: 1 1 100%;
    max-width: none;
  }
  .donate-checkout-sum {
    flex: 1 1 auto;
    height: auto;
  }
  .donate-pay-btn {
    width: 100%;
    margin-left: 0;
    text-align: center;
  }
  .donate-card-price strong {
    font-size: 1.6rem;
  }
}
