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

:root {
  --bg: #F8F9FA;
  --surface: #FFFFFF;
  --border: rgba(0,0,0,0.06);
  --text: #1A1A1A;
  --muted: #5F6368;
  --hint: #9AA0A6;
  --accent: #5B6EF5;
  --accent-hover: #4A5CD9;
  --accent-bg: #EEF0FF;
  --blue: #4285F4;
  --tg: #0088CC;
  --vk: #0077FF;
  --green: #0D9F6E;
  --orange: #F59E0B;
  --red: #EF4444;
  --tag-bg: #F1F3F4;
  --font: 'Golos Text', system-ui, -apple-system, sans-serif;
  --radius: 12px;
  --radius-lg: 16px;
}

/* ── DARK THEME ── */
[data-theme="dark"] {
  --bg: #0D0D0D;
  --surface: #171717;
  --border: rgba(255,255,255,0.07);
  --text: #EBEBEB;
  --muted: #A0A0A0;
  --hint: #666666;
  --accent: #A78BFA;
  --accent-hover: #8B5CF6;
  --accent-bg: rgba(124,58,237,0.12);
  --tag-bg: #1F1F1F;
}
[data-theme="dark"] img { opacity: .93; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html { overflow-x: hidden; }
a { color: inherit; text-decoration: none; }

/* ── HEADER ── */
header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
}
body { padding-top: 56px; }
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.3px;
  flex-shrink: 0;
}
.logo img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}
.logo-sub {
  font-weight: 400;
  opacity: .35;
  margin-left: 2px;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  overflow: hidden;
}
.top-nav-link {
  padding: 5px 11px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  transition: background .12s, color .12s;
}
.top-nav-link:hover, .top-nav-link.active {
  background: var(--tag-bg);
  color: var(--text);
  font-weight: 600;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.header-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--accent), #4338CA);
  color: white !important;
  border: none;
  border-radius: 10px;
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font);
  transition: opacity .15s, transform .1s;
  flex-shrink: 0;
  white-space: nowrap;
  text-decoration: none;
  width: auto;
  box-shadow: 0 2px 8px rgba(124,58,237,.2);
}
.header-btn:hover { opacity: .9; transform: translateY(-1px); color: white !important; }
.header-btn svg { width: 14px; height: 14px; fill: white; flex-shrink: 0; }

/* ── LAYOUT ── */
.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 24px;
  display: grid;
  grid-template-columns: 210px 1fr 230px;
  gap: 28px;
  align-items: start;
}

/* ── LEFT SIDEBAR ── */
.sidebar-left {
  position: sticky;
  top: 72px;
  align-self: start;
  height: calc(100vh - 88px);
  overflow-y: auto;
  will-change: transform;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.sidebar-section { margin-bottom: 20px; }
.sidebar-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hint);
  margin-bottom: 6px;
  padding: 0 8px;
}
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 8px;
  border-radius: 9px;
  font-size: 14px;
  color: var(--text);
  transition: background .12s;
  cursor: pointer;
}
.sidebar-link:hover { background: var(--tag-bg); }
.sidebar-link.active { background: var(--tag-bg); font-weight: 600; }
.sidebar-link svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
/* Colored sidebar icons — top section */
.sidebar-link:nth-child(1) svg { color: var(--blue); stroke: var(--blue); }
.sidebar-link:nth-child(2) svg { color: var(--green); stroke: var(--green); }

/* Rubrics section colors */
.sidebar-section:nth-child(3) .sidebar-link:nth-child(2) svg { color: var(--blue); stroke: var(--blue); }
.sidebar-section:nth-child(3) .sidebar-link:nth-child(3) svg { color: var(--accent); stroke: var(--accent); }
.sidebar-section:nth-child(3) .sidebar-link:nth-child(4) svg { color: var(--tg); stroke: var(--tg); }
.sidebar-section:nth-child(3) .sidebar-link:nth-child(5) svg { color: var(--orange); stroke: var(--orange); }

.sidebar-divider {
  height: 1px;
  background: var(--border);
  margin: 14px 0;
}

/* Sidebar TG widget — clean compact style */
.widget {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
}
.widget-header {
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.widget-tg-bg { background: linear-gradient(135deg, #0088CC, #00B4D8); }
.widget-header svg { width: 20px; height: 20px; fill: white; flex-shrink: 0; }
.widget-info { flex: 1; }
.widget-name { font-size: 13px; font-weight: 700; color: white; }
.widget-sub-text { font-size: 11px; color: rgba(255,255,255,.7); }
.widget-body { padding: 8px 10px; }
.widget-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 8px 0;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font);
  transition: opacity .12s;
  color: white;
}
.widget-btn:hover { opacity: .88; color: white; }
.btn-tg { background: linear-gradient(135deg, #0088CC, #00B4D8); }
.btn-vk { background: linear-gradient(135deg, #0077FF, #2AABEE); }
.widget-btn svg { width: 14px; height: 14px; fill: white; }

/* Sidebar bottom */
.sidebar-bottom {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sidebar-shop-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--accent);
  color: white !important;
  border-radius: 8px;
  padding: 9px 0;
  font-size: 12px;
  font-weight: 600;
  transition: background .12s;
  box-shadow: none;
}
.sidebar-shop-btn:hover { background: var(--accent-hover); }
.sidebar-shop-btn svg { width: 13px; height: 13px; }
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--tag-bg);
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 0;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all .15s;
  width: 100%;
  font-family: var(--font);
}
.theme-toggle:hover { color: var(--text); border-color: rgba(0,0,0,.12); }
[data-theme="dark"] .theme-toggle:hover { border-color: rgba(255,255,255,.15); }
.theme-toggle svg { width: 14px; height: 14px; }

/* ── FEED ── */
.feed {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}
h1.section-label,
.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hint);
  margin: 0 0 14px 0;
  padding: 0;
  line-height: 1.4;
}

/* Hero card */
.card-hero {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 16px;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
  display: block;
}
.card-hero:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,0,0,.09);
}
.card-hero-img {
  width: 100%;
  aspect-ratio: 2/1;
  overflow: hidden;
  position: relative;
}
.card-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a0a2e, #2d1b69);
}
.img-placeholder svg { fill: rgba(255,255,255,.15); }
.card-hero-body { padding: 18px 20px 20px; }

.card-tags { display: flex; gap: 6px; margin-bottom: 10px; }
.ctag {
  background: var(--tag-bg);
  border-radius: 20px;
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
}
.ctag.hot { background: var(--accent-bg); color: var(--accent); }

h2.card-hero-title,
.card-hero-title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.3px;
  margin: 0;
  margin-bottom: 8px;
}
.card-hero-excerpt {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--hint);
}
.card-meta svg { width: 13px; height: 13px; fill: var(--hint); }
.meta-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--hint);
  opacity: .5;
}

/* Cards grid */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 20px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,.08);
}
.card-img {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: linear-gradient(135deg, #1a0a2e, #2d1b69);
  border-radius: var(--radius) var(--radius) 0 0;
}
.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.card-body {
  padding: 12px 14px 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
h2.card-title,
h3.card-title,
.card-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 6px 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-excerpt {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
  margin-bottom: 10px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-footer {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--hint);
  margin-top: auto;
}
.card-footer svg { width: 12px; height: 12px; fill: var(--hint); }

/* Load more */
.load-spinner { display: flex; justify-content: center; align-items: center; padding: 32px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── RIGHT SIDEBAR ── */
.sidebar-right {
  position: sticky;
  top: 72px;
  align-self: start;
  height: calc(100vh - 88px);
  overflow-y: auto;
  will-change: transform;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

/* ── ARTICLE PAGE ── */
.article {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
}
.breadcrumbs span { opacity: .5; }
.article-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.tag {
  background: var(--tag-bg);
  border-radius: 20px;
  padding: 4px 11px;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}
.tag.hot { background: var(--accent-bg); color: var(--accent); }

h1 {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.article-meta .meta-dot {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--hint);
}
.article-cover {
  width: 100%;
  border-radius: 4px;
  margin-top: 8px;
  margin-bottom: 28px;
  line-height: 0;
  background: var(--bg);
}
.article-cover img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
}
.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.meta-item svg {
  flex-shrink: 0;
  opacity: .6;
}

/* Article body */
.article-body p { margin-bottom: 16px; color: var(--text); opacity: .85; }
.article-body h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 32px 0 14px;
  letter-spacing: -0.3px;
}
.article-body h3 { font-size: 17px; font-weight: 600; margin: 20px 0 8px; }
.article-body ul { margin: 0 0 16px 0; padding-left: 0; list-style: none; }
.article-body ul li { padding: 5px 0 5px 18px; position: relative; }
.article-body ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 14px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.article-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.article-body a:hover { text-decoration: none; }

/* Gameplay screenshots (figure/figcaption) */
.article-body figure {
  margin: 24px 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  line-height: 0;
}
.article-body figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
}
.article-body figcaption {
  line-height: 1.4;
  padding: 10px 14px;
  font-size: 12px;
  color: var(--hint);
  text-align: center;
  background: var(--tag-bg);
}

/* Ghost Koenig editor width classes */
.kg-width-wide { margin-left: -60px; margin-right: -60px; max-width: calc(100% + 120px); }
.kg-width-full { margin-left: calc(-50vw + 50%); margin-right: calc(-50vw + 50%); max-width: 100vw; width: 100vw; }
@media (max-width: 768px) {
  .kg-width-wide { margin-left: 0; margin-right: 0; max-width: 100%; }
}

/* Price table — modern card style */
table.gpd-price-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 16px 0 24px;
}
.gpd-price-table th {
  padding: 12px 16px;
  font-size: 11px; font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--hint);
  text-align: left;
  background: var(--tag-bg);
  border-bottom: 2px solid var(--border);
}
.gpd-price-table td {
  padding: 12px 16px;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
}
.gpd-price-table tr:last-child td { border-bottom: none; }
.gpd-price-table tbody tr { transition: background .12s; }
.gpd-price-table tbody tr:hover td { background: var(--accent-bg); }
.gpd-price-gpd {
  font-weight: 700;
  color: var(--accent);
  font-size: 15px;
}
.gpd-price-official { color: var(--muted); text-decoration: line-through; font-size: 13px; }
.gpd-price-save {
  background: #E8F9EE; color: #1A7F3C;
  font-size: 11px; font-weight: 600;
  padding: 2px 7px; border-radius: 4px; margin-left: 6px;
}
[data-theme="dark"] .gpd-price-save { background: rgba(29,185,84,.15); color: #4ADE80; }

/* CTA button */
.buy-btn, .sidebar-shop-btn, .sidebar-bottom .gpd-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: linear-gradient(135deg, var(--accent), #4338CA);
  color: white !important;
  border: none;
  border-radius: 12px;
  padding: 14px 0;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font);
  transition: opacity .15s, transform .12s, box-shadow .15s;
  letter-spacing: -0.1px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(124,58,237,.25);
}
.buy-btn:hover, .sidebar-shop-btn:hover, .sidebar-bottom .gpd-cta-btn:hover {
  opacity: .92;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(124,58,237,.35);
  color: white !important;
}
.buy-btn svg, .sidebar-shop-btn svg, .sidebar-bottom .gpd-cta-btn svg { width: 18px; height: 18px; fill: white; }
.buy-btn-wrap { padding: 16px 20px; }

/* Steps — clean minimal cards */
ol.gpd-steps, .article-body ol {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 16px 0 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
ol.gpd-steps li, .article-body ol li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  counter-increment: step;
  font-size: 14px;
  line-height: 1.5;
  background: var(--tag-bg);
  border-radius: var(--radius);
  transition: background .15s;
}
ol.gpd-steps li:hover, .article-body ol li:hover { background: var(--border); }
ol.gpd-steps li::before, .article-body ol li::before {
  content: counter(step);
  width: 30px; height: 30px; min-width: 30px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* Advantages — modern grid cards */
.gpd-advantages {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 16px 0 24px;
}
.gpd-advantages li, .adv {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 16px;
  list-style: none;
  transition: transform .15s, box-shadow .15s;
}
.gpd-advantages li:hover, .adv:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,.06);
}
.adv-icon { font-size: 26px; margin-bottom: 8px; }
.adv-title { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.adv-text { font-size: 13px; color: var(--muted); line-height: 1.45; }

/* FAQ — accordion style */
.article-body h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
  padding: 16px 20px;
  background: var(--tag-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 4px;
  cursor: default;
  transition: background .15s;
  position: relative;
}
.article-body h3:hover { background: var(--accent-bg); }
.article-body h3 + p {
  padding: 14px 20px;
  margin: 0 0 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  margin-top: -4px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  opacity: 1;
}

/* FAQ legacy classes */
.faq-item { border-bottom: 1px solid var(--border); padding: 16px 0; }
.faq-q { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.faq-a { font-size: 14px; color: var(--muted); }

/* Article body CTA button */
.article-body .gpd-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 400px;
  margin: 28px auto;
  background: linear-gradient(135deg, var(--accent), #4338CA);
  color: white !important;
  border: none;
  border-radius: 14px;
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font);
  transition: opacity .15s, transform .12s, box-shadow .15s;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(124,58,237,.3);
}
.article-body .gpd-cta-btn:hover {
  opacity: .92;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(124,58,237,.4);
  color: white !important;
}

/* Info highlight box */
.gpd-info-box {
  background: var(--accent-bg);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 16px 20px;
  margin: 16px 0 24px;
  font-size: 14px;
  line-height: 1.55;
}
.gpd-info-box strong { color: var(--accent); }

/* Comparison table special styling */
.gpd-price-table td:nth-child(2) { font-weight: 600; color: var(--green); }
.gpd-price-table thead th:nth-child(2) { color: var(--accent); }

/* Game info block */
.gpd-game-info {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin: 20px 0 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.gpd-game-subtitle {
  font-size: 13px;
  color: var(--accent);
  font-weight: 500;
  margin-top: 2px;
  line-height: 1.4;
}
.gpd-game-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  background: var(--accent-bg);
  color: var(--accent);
  border: 1px solid rgba(91,110,245,.15);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
  margin-left: auto;
  white-space: nowrap;
}
.gpd-game-logo {
  width: 64px; height: 64px;
  border-radius: 14px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
}
.gpd-game-details { flex: 1; }
.gpd-game-name { font-size: 18px; font-weight: 700; margin-bottom: 2px; }
.gpd-game-currency {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 2px;
}
.gpd-currency-icon { width: 20px; height: 20px; border-radius: 50%; }
.gpd-game-update { font-size: 12px; color: var(--hint); }

/* Step TG/VK buttons */
.gpd-step-buttons {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.gpd-btn-tg, .gpd-btn-vk {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: white !important;
  text-decoration: none;
  transition: opacity .15s, transform .1s;
}
.gpd-btn-tg { background: linear-gradient(135deg, #0088CC, #00B4D8); }
.gpd-btn-vk { background: linear-gradient(135deg, #0077FF, #2AABEE); }
.gpd-btn-tg:hover, .gpd-btn-vk:hover { opacity: .88; transform: translateY(-1px); color: white !important; }
.gpd-btn-tg svg, .gpd-btn-vk svg { flex-shrink: 0; }

/* Related posts */
.related-title { font-size: 20px; font-weight: 700; margin-bottom: 16px; letter-spacing: -0.3px; }

/* TOC */
.toc-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 16px;
}
.toc-title {
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hint);
  margin-bottom: 12px;
}
.toc-link {
  display: block;
  font-size: 13px;
  color: var(--muted);
  padding: 5px 0 5px 10px;
  border-left: 2px solid transparent;
  transition: color .12s, border-color .12s;
}
.toc-link:hover, .toc-link.active {
  color: var(--text);
  border-color: var(--accent);
}

/* Promo box */
.promo-box {
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  border-radius: var(--radius);
  padding: 16px;
  color: white;
}
.promo-label { font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.promo-title { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.promo-sub { font-size: 12px; opacity: .6; margin-bottom: 12px; }
.promo-code {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 15px; font-weight: 700;
  letter-spacing: 0.05em;
  text-align: center;
  margin-bottom: 10px;
}
.promo-date { font-size: 11px; opacity: .45; text-align: center; }

/* ── POPUP ── */
@keyframes popIn {
  from { opacity: 0; transform: translateY(14px) scale(.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(4px);
  z-index: 999;
  align-items: center;
  justify-content: center;
}
.popup-overlay.open { display: flex; }
.popup-card {
  width: 380px;
  background: var(--surface);
  border-radius: 20px;
  overflow: hidden;
  animation: popIn .28s cubic-bezier(.34,1.4,.64,1) forwards;
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
.popup-promo {
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  padding: 10px 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.popup-promo-badge {
  background: var(--accent);
  color: white;
  font-size: 10px; font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 4px;
  flex-shrink: 0;
}
.popup-promo-text { font-size: 12px; color: rgba(255,255,255,.8); }
.popup-promo-code {
  margin-left: auto;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 6px;
  padding: 3px 9px;
  font-size: 12px; font-weight: 700;
  color: white;
  flex-shrink: 0;
}
.popup-body { padding: 22px 20px 20px; }
.popup-game-row { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.popup-game-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #1a0a2e, #2d1b69);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; flex-shrink: 0; overflow: hidden;
}
.popup-game-icon img { width: 100%; height: 100%; object-fit: cover; }
.popup-game-label { font-size: 12px; color: var(--muted); }
.popup-game-name { font-size: 16px; font-weight: 700; }
.popup-close {
  margin-left: auto;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--tag-bg);
  border: none;
  color: var(--muted);
  font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}
.popup-close:hover { background: var(--border); }
.popup-heading { font-size: 20px; font-weight: 700; letter-spacing: -0.3px; margin-bottom: 6px; }
.popup-sub { font-size: 14px; color: var(--muted); line-height: 1.5; margin-bottom: 18px; }
.popup-btns { display: flex; flex-direction: column; gap: 10px; }
.popup-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 0;
  border: none;
  border-radius: 13px;
  font-size: 15px; font-weight: 700;
  cursor: pointer;
  font-family: var(--font);
  transition: opacity .12s, transform .12s;
  color: white;
  text-decoration: none;
}
.popup-btn:hover { opacity: .88; transform: translateY(-1px); color: white; }
.popup-btn svg { width: 20px; height: 20px; fill: white; }
.popup-btn-vk { background: linear-gradient(135deg, #0077FF, #2AABEE); }
.popup-btn-tg { background: linear-gradient(135deg, #0088CC, #00B4D8); }
.popup-footer-note {
  margin-top: 14px;
  text-align: center;
  font-size: 12px;
  color: var(--hint);
}
.popup-footer-note b { color: var(--muted); font-weight: 500; }

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding: 20px 24px;
  margin-top: 12px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--hint);
}
.footer-left { display: flex; align-items: center; gap: 6px; }
.footer-right { display: flex; gap: 16px; }
.footer-sep { opacity: .4; }
footer a { color: var(--muted); transition: color .12s; }
footer a:hover { color: var(--text); }

/* ── MOBILE STICKY BAR ── */
.mobile-sticky-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 98;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 8px 12px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  box-shadow: 0 -4px 20px rgba(0,0,0,.1);
}
.sticky-bar-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex-shrink: 1;
  min-width: 0;
}
.sticky-bar-badge {
  display: inline-block;
  width: fit-content;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: white;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  border-radius: 4px;
  padding: 1px 6px;
  line-height: 1.4;
}
.sticky-bar-text {
  font-size: 11px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}
.sticky-bar-cta {
  display: flex;
  align-items: center;
  gap: 0;
  background: linear-gradient(135deg, var(--accent), #4338CA);
  border-radius: 12px;
  padding: 0;
  text-decoration: none !important;
  flex-shrink: 0;
  box-shadow: 0 3px 12px rgba(99,102,241,.35);
  transition: transform .12s, box-shadow .12s;
  overflow: hidden;
}
.sticky-bar-cta:active { transform: scale(.96); box-shadow: 0 1px 6px rgba(99,102,241,.25); }
.sticky-bar-cta-promo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 6px 10px 6px 12px;
  gap: 0;
}
.sticky-bar-cta-label {
  font-size: 8px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255,255,255,.7);
  line-height: 1.3;
}
.sticky-bar-cta-code {
  font-size: 14px;
  font-weight: 800;
  color: white;
  letter-spacing: .04em;
  font-family: var(--font);
  line-height: 1.2;
}
.sticky-bar-cta-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.15);
  width: 40px;
  align-self: stretch;
  color: white;
  border-left: 1px solid rgba(255,255,255,.15);
}
@keyframes pulse-arrow {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(3px); }
}
.sticky-bar-cta-arrow svg {
  animation: pulse-arrow 2s ease-in-out infinite;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(0,0,0,.1); border-radius: 3px; }
[data-theme="dark"] ::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); }

/* ── MOBILE MENU ── */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--text);
}
.mobile-menu-btn svg { width: 24px; height: 24px; }

.mobile-nav {
  display: none;
  position: fixed;
  top: 56px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--surface);
  z-index: 99;
  padding: 20px 24px;
  overflow-y: auto;
}
.mobile-nav.open { display: block; }
.mobile-nav .sidebar-link { padding: 10px 8px; font-size: 15px; }
.mobile-nav .sidebar-link svg { width: 20px; height: 20px; }
.mobile-nav .sidebar-divider { margin: 12px 0; }
.mobile-nav .sidebar-label { margin-top: 4px; }
.mobile-nav .sidebar-bottom { margin-top: 20px; }

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  .page { grid-template-columns: 1fr; padding: 16px; }
  .sidebar-left, .sidebar-right { display: none; }
  .top-nav { display: none; }
  .mobile-menu-btn { display: block; }
  .header-btn { padding: 8px 14px; font-size: 12px; }
  h1 { font-size: 24px; }
  .mobile-sticky-bar { display: flex; }
  body { padding-bottom: 64px; }
  .footer-inner { flex-direction: column; gap: 8px; text-align: center; }
  .footer-right { justify-content: center; }
}
@media (max-width: 480px) {
  /* Header: shorter text on small screens */
  .header-btn { padding: 8px 12px; font-size: 11px; }
  .header-btn svg { width: 13px; height: 13px; }
}
@media (max-width: 768px) {
  /* Global word breaking for Russian text */
  .article-body * {
    overflow-wrap: break-word;
    word-wrap: break-word;
  }

  /* 2-column price table: fixed layout ok */
  .article-body table.gpd-price-table {
    width: 100%;
    table-layout: fixed;
    font-size: 13px;
  }
  .gpd-price-table th,
  .gpd-price-table td {
    padding: 10px 10px;
    font-size: 13px;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    -webkit-hyphens: auto;
  }
  .gpd-price-gpd { font-size: 13px; }

  /* 3-4 column comparison table: horizontal scroll */
  .article-body table:not(.gpd-price-table) {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    font-size: 12px;
  }
  .article-body table:not(.gpd-price-table) th,
  .article-body table:not(.gpd-price-table) td {
    white-space: normal;
    min-width: 100px;
    word-break: break-word;
    hyphens: auto;
    -webkit-hyphens: auto;
  }

  /* If comparison table also has gpd-price-table class, allow scroll */
  table.gpd-price-table:has(th:nth-child(3)) {
    display: block;
    overflow-x: auto;
    table-layout: auto;
  }

  /* 4-column comparison table: first col wider */
  .gpd-price-table th:first-child,
  .gpd-price-table td:first-child { width: auto; min-width: 80px; }

  /* Steps: allow wrapping */
  ol.gpd-steps li, .article-body ol li {
    flex-wrap: wrap;
    padding: 12px 14px;
    font-size: 13px;
    gap: 10px;
  }
  .gpd-step-buttons {
    width: 100%;
    flex-wrap: wrap;
    margin-top: 6px;
  }
  .gpd-btn-tg, .gpd-btn-vk {
    padding: 8px 12px;
    font-size: 12px;
    flex: 1;
    justify-content: center;
    min-width: 110px;
  }

  /* Game info block */
  .gpd-game-info {
    padding: 14px 16px;
    gap: 10px;
    flex-wrap: wrap;
  }
  .gpd-game-logo {
    width: 48px;
    height: 48px;
    border-radius: 12px;
  }
  .gpd-game-name { font-size: 16px; }
  .gpd-game-badge {
    font-size: 11px;
    padding: 4px 10px;
    order: -1;
    margin-left: 0;
  }
  .gpd-game-currency { font-size: 12px; flex-wrap: wrap; }
  .gpd-game-update { font-size: 11px; }

  /* FAQ */
  .article-body h3 {
    font-size: 14px;
    padding: 14px 16px;
  }
  .article-body h3 + p {
    padding: 12px 16px;
    font-size: 13px;
  }

  /* Content fit */
  .article-body { padding: 0; max-width: 100%; overflow-x: hidden; }
  .article-body p { font-size: 14px; word-break: break-word; }
  .article-body h2 { font-size: 18px; word-break: break-word; }
  .article-body img { max-width: 100%; height: auto; }

  /* Ghost kg-card blocks */
  .kg-card, .kg-html-card { max-width: 100%; overflow-x: hidden; }

  /* Cover image */
  .article-cover { margin-top: 8px; margin-bottom: 20px; margin-left: 0; margin-right: 0; border-radius: 4px; }
  .article-cover img { width: 100%; height: auto; }

  /* Gameplay screenshots */
  .article-body figure { margin: 16px 0; border-radius: 8px; }
  .article-body figure img { max-height: 350px; }
  .article-body figcaption { font-size: 11px; padding: 8px 12px; }

  /* Buy button */
  .buy-btn, .article-body .gpd-cta-btn {
    padding: 14px 20px;
    font-size: 14px;
  }
}

@media (max-width: 600px) {
  .cards-grid { grid-template-columns: 1fr; }
  .gpd-advantages { grid-template-columns: 1fr; }
  .header-inner { padding: 0 12px; gap: 8px; }
  .card-hero-title { font-size: 18px; }
  .popup-card { width: calc(100% - 32px); }
  .header-btn { padding: 8px 12px; font-size: 11px; }
  .header-btn svg { width: 12px; height: 12px; }
  .logo { font-size: 15px; }

  /* Extra small: tighter spacing */
  .page { padding: 12px; }
  h1 { font-size: 20px; line-height: 1.3; }

  /* Prevent horizontal overflow on body */
  .article-body,
  .gh-content {
    max-width: 100%;
    overflow-x: hidden;
  }

  /* Popup */
  .popup-body { padding: 16px; }
  .popup-heading { font-size: 16px; }
  .popup-btns { flex-direction: column; gap: 8px; }
  .popup-btn { width: 100%; justify-content: center; }

  /* Breadcrumbs overflow */
  .breadcrumbs { font-size: 11px; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; }
  .breadcrumbs span:last-child { white-space: normal; word-break: break-word; }

  /* Article container tighter on small */
  .article { padding: 16px; border-radius: var(--radius); }
  .article-cover img { width: 100%; height: auto; }
}
