/* GoldClan.ru — стили концепции v1. Mobile-first: базовые правила для 390px, расширения через min-width.
   Порядок: база → шапка → общие компоненты → главная → статья → контент записи (the_content) → наследие → футер. */

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--gc-header-h) + 12px); }
body {
  margin: 0;
  background: var(--gc-paper);
  color: var(--gc-ink);
  font: 400 var(--gc-fs-m)/1.5 var(--gc-font-text);
  font-feature-settings: "kern", "liga";
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--gc-gold); outline-offset: 2px; border-radius: 4px; }
.gc-visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.gc-wrap { width: 100%; max-width: var(--gc-container); margin: 0 auto; padding: 0 var(--gc-gutter); }

/* Подложка под картинку: держит 16:9 до загрузки (нет CLS) и видна, если файл не загрузился */
/* Рамка обложки повторяет пропорцию картинки в пределах 16:9…2.1:1 (DEC-016): 2:1 у записей 2016–2021, 16:9 с 2022. Текст на обложках стоит у края, поэтому не режем */
.gc-media { position: relative; aspect-ratio: var(--gc-ratio, 16 / 9); overflow: hidden; background: var(--gc-wash); }
.gc-media img { width: 100%; height: 100%; object-fit: cover; }
/* Квадратные и узкие обложки (уже 1.55:1): вписываем целиком на подложку. Класс ставит шаблон по размерам вложения */
.gc-media--fit img { object-fit: contain; }

/* ---------- Шапка ---------- */
.gc-header { position: sticky; top: 0; z-index: 50; background: var(--gc-ink); color: #fff; }
.gc-header__bar { display: flex; align-items: center; gap: var(--gc-s2); height: var(--gc-header-h); }
.gc-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.gc-logo__coin { width: 28px; height: 28px; flex: none; }
.gc-logo__word { font: 700 1.125rem/1 var(--gc-font-display); letter-spacing: -0.01em; }
.gc-logo__tld { color: var(--gc-gold); }
.gc-iconbtn {
  display: inline-grid; place-items: center; width: 44px; height: 44px;
  border: 0; border-radius: var(--gc-r-s); background: transparent; color: #fff; cursor: pointer;
}
.gc-iconbtn:hover { background: rgb(255 255 255 / 0.08); }
.gc-iconbtn svg { width: 22px; height: 22px; }

/* Полоса игр: только мобильный и планшет. Прокрутка вбок, без JS */
.gc-rail { background: var(--gc-ink); border-top: 1px solid rgb(255 255 255 / 0.08); }
.gc-rail__list {
  display: flex; gap: var(--gc-s2); margin: 0; padding: 10px var(--gc-gutter) 12px; list-style: none;
  overflow-x: auto; overflow-y: hidden; scrollbar-width: none; -ms-overflow-style: none; scroll-snap-type: x proximity;
  overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; scroll-padding-inline: var(--gc-gutter);
}
.gc-rail__list::after { content: ""; flex: 0 0 1px; } /* чтобы у последнего пункта сохранялся правый отступ */
.gc-rail__list::-webkit-scrollbar { display: none; }
.gc-rail__item { scroll-snap-align: start; flex: none; }
.gc-rail a {
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px 0 10px;
  border-radius: var(--gc-r-pill); background: rgb(255 255 255 / 0.08); color: #fff;
  font: 600 var(--gc-fs-s)/1 var(--gc-font-text); text-decoration: none; white-space: nowrap;
}
.gc-rail a:hover { background: rgb(255 255 255 / 0.14); }
.gc-rail a[aria-current] { background: #fff; color: var(--gc-ink); }
.gc-rail a[aria-current] .gc-token { box-shadow: none; }
.gc-rail a:focus-visible { outline: 2px solid var(--gc-gold); outline-offset: 2px; }
.gc-rail .gc-token { box-shadow: 0 0 0 2px rgb(255 255 255 / 0.9); }

/* Иконка игры вместо ромба (GAMES[g].icon / gc_game_marker): тот же размер и отступы */
.gc-icon { width: 18px; height: 18px; flex: none; border-radius: 4px; object-fit: contain; }
/* Метка игры: маленький «самоцвет» + название. Единственный цветовой акцент материала */
.gc-token {
  display: inline-block; width: 10px; height: 10px; flex: none; border-radius: 3px; transform: rotate(45deg);
  background: var(--gc-game, var(--gc-other));
}
[data-game="bs"] { --gc-game: var(--gc-bs); }
[data-game="coc"] { --gc-game: var(--gc-coc); }
[data-game="cr"] { --gc-game: var(--gc-cr); }
[data-game="bb"] { --gc-game: var(--gc-bb); }
[data-game="other"] { --gc-game: var(--gc-other); }

/* Мобильное меню */
.gc-drawer[hidden] { display: none; }
.gc-drawer {
  position: fixed; inset: var(--gc-drawer-top, var(--gc-header-h)) 0 0; z-index: 49; overflow-y: auto;
  background: var(--gc-paper); color: var(--gc-ink); padding: var(--gc-s2) 0 var(--gc-s12);
}
/* Планшет: меню — панель справа, а не полотно на весь экран */
@media (min-width: 600px) {
  .gc-drawer { left: auto; width: min(420px, 100%); box-shadow: -16px 0 40px rgb(32 27 61 / 0.16); }
}
.gc-drawer ul { list-style: none; margin: 0; padding: 0; }
.gc-drawer > nav > ul > li { border-bottom: 1px solid var(--gc-line); }
.gc-drawer details > summary {
  display: flex; align-items: center; gap: 10px; padding: 14px var(--gc-gutter);
  font: 700 var(--gc-fs-m)/1.3 var(--gc-font-text); cursor: pointer; list-style: none;
}
.gc-drawer details > summary::-webkit-details-marker { display: none; }
.gc-drawer details > summary::after {
  content: ""; margin-left: auto; width: 8px; height: 8px; border: solid var(--gc-muted); border-width: 0 2px 2px 0;
  transform: rotate(45deg); transition: transform .15s;
}
.gc-drawer details[open] > summary::after { transform: rotate(-135deg); }
.gc-drawer a { display: block; padding: 11px var(--gc-gutter) 11px calc(var(--gc-gutter) + 20px); text-decoration: none; font-size: var(--gc-fs-m); }
.gc-drawer ul ul ul a { padding-left: calc(var(--gc-gutter) + 40px); color: var(--gc-ink-soft); font-size: var(--gc-fs-s); }
.gc-drawer .gc-drawer__plain { padding-left: var(--gc-gutter); font-weight: 700; }

/* Desktop-навигация */
.gc-nav { display: none; }

/* ---------- Общие компоненты ---------- */
.gc-section { padding: var(--gc-s8) 0 0; }
.gc-section__head { display: flex; align-items: baseline; gap: var(--gc-s3); margin-bottom: var(--gc-s3); }
.gc-section__title { margin: 0; font: 600 var(--gc-fs-section)/1.2 var(--gc-font-display); letter-spacing: -0.01em; }
.gc-section__link {
  margin-left: auto; font-size: var(--gc-fs-s); font-weight: 600; color: var(--gc-ink-soft);
  text-decoration: none; white-space: nowrap;
}
.gc-section__link:hover { color: var(--gc-ink); text-decoration: underline; }

/* Мета: игра (цветом) + рубрика + дата. Без точек-разделителей: разные роли — разный вес */
.gc-meta { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 0; row-gap: 2px; font-size: var(--gc-fs-xs); line-height: 1.3; color: var(--gc-muted); }
.gc-meta__game { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; color: var(--gc-game, var(--gc-other)); text-decoration: none; }
.gc-meta__cat { min-width: 0; color: var(--gc-ink-soft); text-decoration: none; overflow-wrap: anywhere; }
/* Разделитель «·» рисует CSS между отдельными элементами: игра · рубрика · дата */
.gc-meta > * + *::before { content: "·"; display: inline-block; margin: 0 8px; font-weight: 400; color: var(--gc-muted); }
.gc-meta time { font-variant-numeric: tabular-nums; }

/* Компактная карточка: миниатюра 16:9 + текст. Основа всех лент */
.gc-row { display: grid; grid-template-columns: var(--gc-thumb) minmax(0, 1fr); gap: var(--gc-s3); padding: var(--gc-s3) 0; border-top: 1px solid var(--gc-line); }
.gc-list > .gc-row:first-child { border-top: 0; padding-top: 0; }
.gc-row__media { border-radius: var(--gc-r-s); align-self: start; }
.gc-row__title {
  margin: 0 0 6px; font: 650 var(--gc-fs-card)/var(--gc-lh-card) var(--gc-font-text); letter-spacing: -0.005em;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.gc-row__title a { text-decoration: none; }
.gc-row__title a::after { content: ""; position: absolute; inset: 0; } /* вся карточка кликабельна */
.gc-row { position: relative; }
.gc-row .gc-meta a { position: relative; z-index: 1; }
.gc-row:hover .gc-row__title a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* Текстовая строка без картинки (игровые секции) */
.gc-line { position: relative; padding: 10px 0; border-top: 1px solid var(--gc-line); }
.gc-line:first-child { border-top: 0; padding-top: 0; }
.gc-line__title { margin: 0 0 4px; font: 600 0.9375rem/1.35 var(--gc-font-text); }
.gc-line__title a { text-decoration: none; }
.gc-line__title a::after { content: ""; position: absolute; inset: 0; }
.gc-line:hover .gc-line__title a { text-decoration: underline; text-underline-offset: 3px; }

.gc-button {
  display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px;
  border: 0; border-radius: var(--gc-r-s); background: var(--gc-gold); color: var(--gc-ink);
  font: 700 var(--gc-fs-m)/1 var(--gc-font-text); text-decoration: none; cursor: pointer;
}
.gc-button:hover { background: #ffc626; }
.gc-button--quiet { background: var(--gc-wash); }
.gc-button--quiet:hover { background: var(--gc-line); }

/* Рекламная зона. Резервирует высоту (без CLS). Пустая/выключенная зона в теме не выводится вообще */
.gc-ad {
  display: grid; place-items: center; margin: var(--gc-s6) auto; max-width: 100%;
  border: 1px dashed #cfcbe0; border-radius: var(--gc-r-s);
  background: repeating-linear-gradient(135deg, var(--gc-wash) 0 10px, #fff 10px 20px);
  color: var(--gc-muted); font-size: var(--gc-fs-xs); text-align: center;
}
.gc-ad b { display: block; font-weight: 700; color: var(--gc-ink-soft); }
.gc-ad--300x250 { width: 300px; height: 250px; }
.gc-ad--320x100 { width: 320px; height: 100px; }
.gc-ad--728x90 { display: none; }
.gc-ad--300x600 { display: none; }

/* Реальная реклама (Яндекс РСЯ). Размер блока задаёт сам Яндекс, мы его не фиксируем и не обрезаем.
   Резерв высоты: только min-height по раскладке, чтобы реклама не сдвигала текст (CLS).  */
.gc-adslot { margin: var(--gc-s6) 0; max-width: 100%; clear: both; }
.gc-adslot__box { max-width: 100%; min-width: 0; }
.gc-adslot--horizontal .gc-adslot__box { min-height: 100px; }
.gc-adslot--in-content .gc-adslot__box { min-height: 250px; }
.gc-adslot--sidebar { margin: 0; }
.gc-adslot--sidebar .gc-adslot__box { min-height: 250px; }
.gc-adslot[data-gc-desktop] { display: none; } /* боковые блоки только на широком экране: на телефоне 300×600 не ужимаем, а не показываем */

/* ---------- Главная ---------- */
.gc-featured { position: relative; padding-top: var(--gc-s4); }
.gc-featured .gc-media { border-radius: var(--gc-r-m); margin-bottom: var(--gc-s3); isolation: isolate; } /* isolation: в Safari скругление не должно «протекать» мимо overflow у картинки */
.gc-featured__title { margin: 6px 0 0; font: 750 var(--gc-fs-featured)/1.2 var(--gc-font-text); letter-spacing: -0.015em; text-wrap: balance; }
.gc-featured__title a { text-decoration: none; }
.gc-featured__title a::after { content: ""; position: absolute; inset: 0; }
.gc-featured .gc-meta a { position: relative; z-index: 1; }

/* «Важное»: управляемый слот (DEC-008). Тёмный блок — отделён от новостной ленты */
.gc-special { position: relative; display: grid; gap: var(--gc-s3); padding: var(--gc-s5); border-radius: var(--gc-r-m); background: var(--gc-ink); color: #fff; }
.gc-special__label { margin: 0; font: 600 var(--gc-fs-s)/1 var(--gc-font-display); color: var(--gc-gold); }
.gc-special__title { margin: 0; font: 700 1.25rem/1.25 var(--gc-font-text); letter-spacing: -0.01em; }
.gc-special__title a { text-decoration: none; }
.gc-special__title a::after { content: ""; position: absolute; inset: 0; }
.gc-special__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: var(--gc-fs-xs); color: #c9c4e0; }
.gc-special__meta > * { white-space: nowrap; }
.gc-special__meta .gc-meta__game { color: #fff; }
.gc-special .gc-button { position: relative; z-index: 1; justify-self: start; }

/* «Полезное»: рейтинг evergreen-материалов по просмотрам. Номер — это реальный ранг */
.gc-popular { list-style: none; margin: 0; padding: 0; counter-reset: gc-rank; }
.gc-popular li { position: relative; display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: var(--gc-s3); padding: 10px 0; border-top: 1px solid var(--gc-line); counter-increment: gc-rank; }
.gc-popular li:first-child { border-top: 0; padding-top: 0; }
.gc-popular li::before { content: counter(gc-rank); font: 700 1.25rem/1.1 var(--gc-font-display); color: var(--gc-gold-deep); }
.gc-popular a { font: 600 0.9375rem/1.35 var(--gc-font-text); text-decoration: none; }
.gc-popular a::after { content: ""; position: absolute; inset: 0; }
.gc-popular li:hover a { text-decoration: underline; text-underline-offset: 3px; }
.gc-popular small { display: block; margin-top: 3px; font-size: var(--gc-fs-xs); color: var(--gc-muted); font-variant-numeric: tabular-nums; }

/* Игровые секции */
.gc-games { display: grid; gap: var(--gc-s8); }
.gc-gamesec__title { display: inline-flex; align-items: center; gap: 10px; }
.gc-gamesec__title .gc-token { width: 12px; height: 12px; }

.gc-home-more { margin-top: var(--gc-s4); }
/* На мобильном «Ещё новости» — продолжение «Последних»: без заголовка и без разрыва */
/* Главная: на мобильном и планшете обёртки колонок прозрачны, порядок задаём order */
.gc-home { display: flex; flex-direction: column; }
.gc-col-main, .gc-col-side { display: contents; }
.gc-featured { order: 1; }
.gc-latest { order: 2; }
.gc-feed { order: 3; }
.gc-special-slot { order: 4; }
.gc-popular-slot { order: 5; }
.gc-col-side > .gc-aside__sticky { order: 6; }
.gc-featured__meta { display: contents; }
.gc-feed { padding-top: 0; }
.gc-feed .gc-list > .gc-row:first-child { border-top: 1px solid var(--gc-line); padding-top: var(--gc-s3); }

/* ---------- Статья ---------- */
.gc-crumbs { padding: var(--gc-s4) 0 0; font-size: var(--gc-fs-s); color: var(--gc-muted); }
.gc-crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; margin: 0; padding: 0; list-style: none; }
.gc-crumbs li:not(:last-child)::after { content: "/"; margin: 0 8px; color: #b9b4cc; }
.gc-crumbs a { text-decoration: none; }
.gc-crumbs a:hover { text-decoration: underline; }

.gc-article__head { padding: var(--gc-s4) 0 var(--gc-s5); }
.gc-article__title { margin: var(--gc-s3) 0 var(--gc-s4); font: 800 var(--gc-fs-h1)/1.15 var(--gc-font-text); letter-spacing: -0.02em; text-wrap: balance; }
.gc-article__info { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: var(--gc-fs-s); color: var(--gc-muted); }
.gc-article__info a { color: var(--gc-ink-soft); }

/* Обложка: на мобильном в край экрана, текст на ней не печатаем — он уже впечатан в картинку */
.gc-cover { margin: 0 calc(var(--gc-gutter) * -1); }
.gc-cover .gc-media { border-radius: 0; }

/* Содержание: только при ≥3 H2 */
.gc-toc { margin: var(--gc-s6) 0; border: 1px solid var(--gc-line); border-radius: var(--gc-r-m); }
.gc-toc summary { display: flex; align-items: center; gap: 10px; padding: 14px var(--gc-s4); font-weight: 700; cursor: pointer; list-style: none; }
.gc-toc summary::-webkit-details-marker { display: none; }
.gc-toc summary::after { content: ""; margin-left: auto; width: 8px; height: 8px; border: solid var(--gc-muted); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.gc-toc[open] summary::after { transform: rotate(-135deg); }
.gc-toc ol { margin: 0; padding: 0 var(--gc-s4) var(--gc-s4) 2.25rem; font-size: 0.9375rem; line-height: 1.4; }
.gc-toc li + li { margin-top: 8px; }
.gc-toc a { text-decoration: none; }
.gc-toc a:hover { text-decoration: underline; }

.gc-article__foot { margin-top: var(--gc-s8); padding-top: var(--gc-s5); border-top: 1px solid var(--gc-line); }
.gc-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.gc-tags a { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border-radius: var(--gc-r-pill); background: var(--gc-wash); font-size: var(--gc-fs-s); font-weight: 600; text-decoration: none; }
.gc-tags a:hover { background: var(--gc-line); }

.gc-comments { padding-top: var(--gc-s8); }
.gc-comments__empty { margin: 0 0 var(--gc-s4); color: var(--gc-ink-soft); }
.gc-form { display: grid; gap: var(--gc-s3); }
.gc-form label { display: grid; gap: 6px; font-size: var(--gc-fs-s); font-weight: 600; }
.gc-form input, .gc-form textarea {
  width: 100%; padding: 12px 14px; border: 1px solid #d6d2e3; border-radius: var(--gc-r-s);
  font: inherit; font-size: var(--gc-fs-m); color: var(--gc-ink); background: #fff;
}
.gc-form textarea { min-height: 120px; resize: vertical; }
.gc-form .gc-button { justify-self: start; }

.gc-aside { display: grid; gap: var(--gc-s2); align-content: start; }
.gc-toc--aside { display: none; }
.gc-feed > .gc-section__head { display: none; } /* на мобильном лента продолжается без нового заголовка */

/* ---------- Контент записи (вывод the_content, старый и новый HTML) ---------- */
.gc-entry { font-size: var(--gc-fs-body); line-height: var(--gc-lh-body); color: var(--gc-ink); overflow-wrap: break-word; }
.gc-entry > * { max-width: var(--gc-measure); }
.gc-entry > :first-child { margin-top: 0; }
.gc-entry p { margin: 0 0 1em; }
.gc-entry > p:first-child { font-size: var(--gc-fs-lead); line-height: 1.55; color: var(--gc-ink); }
.gc-entry a { color: var(--gc-ink); text-decoration-color: var(--gc-gold); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.gc-entry a:hover { text-decoration-color: var(--gc-ink); }
.gc-entry h1, .gc-entry h2 { margin: 1.8em 0 0.6em; font: 750 var(--gc-fs-h2)/1.25 var(--gc-font-text); letter-spacing: -0.015em; text-wrap: balance; }
.gc-entry h3 { margin: 1.5em 0 0.5em; font: 700 var(--gc-fs-h3)/1.3 var(--gc-font-text); }
.gc-entry h4, .gc-entry h5, .gc-entry h6 { margin: 1.4em 0 0.4em; font: 700 var(--gc-fs-body)/1.35 var(--gc-font-text); }
.gc-entry strong, .gc-entry b { font-weight: 700; }

.gc-entry ul, .gc-entry ol { margin: 0 0 1.1em; padding: 0; list-style: none; }
.gc-entry li { position: relative; padding-left: 1.6em; }
.gc-entry li + li { margin-top: 0.45em; }
.gc-entry ul > li::before { content: ""; position: absolute; left: 0.35em; top: 0.68em; width: 6px; height: 6px; border-radius: 1px; background: var(--gc-ink); transform: rotate(45deg); }
/* Нумерованные шаги — шаги установки, реальная последовательность */
.gc-entry ol { counter-reset: gc-step; }
.gc-entry ol > li { counter-increment: gc-step; padding-left: 2.4em; min-height: 1.75em; }
.gc-entry ol > li::before {
  content: counter(gc-step); position: absolute; left: 0; top: 0.1em; display: grid; place-items: center;
  width: 1.6em; height: 1.6em; border-radius: 50%; background: var(--gc-gold-wash); color: var(--gc-gold-deep);
  font: 700 0.8125rem/1 var(--gc-font-text); box-shadow: inset 0 0 0 1.5px var(--gc-gold);
}

/* Кнопки в тексте задаёт только редактор классом (DEC-022). Обычная <a> всегда остаётся ссылкой.
   <a class="gc-button">Открыть</a>   <a class="gc-button gc-button--download">Скачать</a>
   В Gutenberg: блок «Кнопка» → стиль «Скачать» или дополнительный CSS-класс gc-button / gc-button--download. */
.gc-entry a.gc-button, .gc-entry .wp-block-button__link {
  display: inline-flex; vertical-align: middle; align-items: center; justify-content: center; gap: 8px; min-height: 48px; margin: 0.25em 0.5em 0.25em 0; padding: 0 20px;
  border: 0; border-radius: var(--gc-r-s); background: var(--gc-gold); color: var(--gc-ink);
  font: 700 var(--gc-fs-m)/1.2 var(--gc-font-text); text-decoration: none;
}
.gc-entry a.gc-button:hover, .gc-entry .wp-block-button__link:hover { background: #ffc626; color: var(--gc-ink); }
.gc-entry a.gc-button--quiet { background: var(--gc-wash); }
.gc-entry a.gc-button--quiet:hover { background: var(--gc-line); }
/* Класс на обёртке блока Gutenberg: сама обёртка не рисуется, кнопка — вложенная ссылка */
.gc-entry .wp-block-button.gc-button, .gc-entry .wp-block-button.gc-button--download { display: inline-block; min-height: 0; padding: 0; margin: 0; border: 0; background: none; }
.gc-button--download::before,
.gc-entry .wp-block-button.gc-button--download .wp-block-button__link::before,
.gc-entry .wp-block-button.is-style-gc-download .wp-block-button__link::before {
  content: ""; width: 18px; height: 18px; flex: none; background: currentColor;
  -webkit-mask: var(--gc-icon-download) center / contain no-repeat; mask: var(--gc-icon-download) center / contain no-repeat;
}
.gc-entry .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 0.5em; margin: 1em 0; }
:root { --gc-icon-download: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M7 1h2v8l3-3 1.4 1.4L8 12.8 2.6 7.4 4 6l3 3z'/%3E%3Cpath d='M2 13h12v2H2z'/%3E%3C/svg%3E"); }

/* Медиа внутри записи */
.gc-entry img { border-radius: var(--gc-r-s); margin: 0.5em 0; }
.gc-entry .aligncenter, .gc-entry .wp-caption.aligncenter { margin-left: auto; margin-right: auto; }
.gc-entry .alignleft, .gc-entry .alignright { margin: 0.5em auto; } /* на мобильном не обтекаем */
.gc-entry figure { margin: 1.2em 0; }
.gc-entry figcaption, .gc-entry .wp-caption-text { margin-top: 6px; font-size: var(--gc-fs-s); color: var(--gc-muted); }
.gc-entry iframe[src*="youtu"], .gc-entry video { width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; border-radius: var(--gc-r-s); }
.gc-entry blockquote { margin: 1.2em 0; padding: 0.2em 0 0.2em 1em; border-left: 3px solid var(--gc-gold); color: var(--gc-ink-soft); }
.gc-entry hr { border: 0; border-top: 1px solid var(--gc-line); margin: 2em 0; }
.gc-entry code, .gc-entry kbd { padding: 0.1em 0.35em; border-radius: 4px; background: var(--gc-wash); font-size: 0.9em; }

/* ---------- Таблицы (DEC-012) ----------
   Редактор пишет обычный <table>. Фильтр the_content (gc_content_tables) оборачивает её в .gc-table-wrap и поднимает
   «жирную первую строку» старых записей в thead. Здесь только оформление и адаптация под узкие экраны:
   горизонтальная прокрутка внутри блока, страница не ломается. Закрепление первой колонки — только классом gc-sticky-first на таблице. */
.gc-table-wrap {
  max-width: 100%; margin: 1.5em 0; overflow-x: auto; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch;
  border: 1px solid var(--gc-line); border-radius: var(--gc-r-m); background: var(--gc-paper);
  font-size: 0.9375rem; line-height: 1.45;
}
.gc-entry > .gc-table-wrap { max-width: none; }
.gc-table-wrap:focus-visible { outline-offset: 2px; }
.gc-table-wrap table { width: 100%; margin: 0; border-collapse: separate; border-spacing: 0; font-variant-numeric: tabular-nums; }
.gc-table-wrap caption { padding: 12px 14px; text-align: left; font-weight: 700; caption-side: top; }
.gc-table-wrap th, .gc-table-wrap td {
  width: auto; min-width: 4.75rem; max-width: 26rem; padding: 0.7em 0.9em; text-align: left; vertical-align: top;
  background: var(--gc-paper); border-bottom: 1px solid var(--gc-line); overflow-wrap: break-word;
}
.gc-table-wrap thead th { background: var(--gc-wash-2); border-bottom: 2px solid var(--gc-gold); font-weight: 700; vertical-align: bottom; }
.gc-table-wrap tbody tr:nth-child(even) > * { background: var(--gc-wash-1); }
.gc-table-wrap tbody th { font-weight: 700; }
.gc-table-wrap tfoot > tr > * { background: var(--gc-wash-2); font-weight: 700; border-bottom: 0; }
.gc-table-wrap tbody tr:last-child > * { border-bottom: 0; }
.gc-table-wrap tbody:last-child tr:last-child > * { border-bottom: 0; }
.gc-table-wrap [align="right"], .gc-table-wrap .has-text-align-right { text-align: right; }
.gc-table-wrap [align="center"], .gc-table-wrap .has-text-align-center { text-align: center; }
.gc-table-wrap small { color: var(--gc-muted); font-size: 0.85em; }
.gc-table-wrap img { display: inline-block; max-width: none; max-height: 1.7em; width: auto; height: auto; margin: 0; border-radius: 0; vertical-align: middle; }
.gc-table-wrap table[style] { border: 0 !important; }
/* По умолчанию первая колонка не закреплена; включается классом gc-sticky-first на самой таблице */
.gc-table-wrap table.gc-sticky-first th:first-child, .gc-table-wrap table.gc-sticky-first td:first-child { position: sticky; left: 0; z-index: 1; box-shadow: 1px 0 0 var(--gc-line); }
/* Запасной вариант, если фильтр отключён: голая таблица прокручивается сама */
.gc-entry > table { display: block; max-width: 100%; overflow-x: auto; margin: 1.4em 0; font-size: 0.9375rem; line-height: 1.45; border-collapse: collapse; }
.gc-entry > table th, .gc-entry > table td { padding: 0.6em 0.8em; border-bottom: 1px solid var(--gc-line); text-align: left; vertical-align: top; }
.gc-notice { margin: 1em 0; padding: 12px 14px; border-left: 3px solid var(--gc-gold); background: var(--gc-gold-wash); font-size: var(--gc-fs-s); }

/* ---------- Наследие: Shortcodes Ultimate и inline-стили старых записей ---------- */
.gc-entry .su-button-center { text-align: left; margin: 1em 0; }
.gc-entry a.su-button { display: inline-flex !important; border: 0 !important; border-radius: var(--gc-r-s) !important; background: var(--gc-gold) !important; text-decoration: none; }
.gc-entry a.su-button span { padding: 12px 20px !important; border: 0 !important; color: var(--gc-ink) !important; font: 700 var(--gc-fs-m)/1.2 var(--gc-font-text) !important; text-shadow: none !important; }
.gc-entry .su-spoiler { margin: 1em 0; border: 1px solid var(--gc-line); border-radius: var(--gc-r-s); }
.gc-entry .su-spoiler-title { padding: 12px 14px; font-weight: 700; cursor: pointer; }
.gc-entry .su-spoiler-content { padding: 0 14px 14px; }
.gc-entry [style*="font-family"] { font-family: inherit !important; }
.gc-entry [style*="background-color"]:not(.su-button):not(.su-button span) { background-color: transparent !important; }

/* ---------- Футер ---------- */
.gc-footer { margin-top: var(--gc-s12); padding: var(--gc-s10) 0 var(--gc-s8); background: var(--gc-ink); color: #d9d5ea; font-size: var(--gc-fs-s); }
.gc-footer a { color: #fff; text-decoration: none; }
.gc-footer a:hover { text-decoration: underline; }
.gc-footer__grid { display: grid; gap: var(--gc-s6); }
.gc-footer__about { max-width: 34ch; margin: var(--gc-s3) 0 0; }
.gc-footer h2 { margin: 0 0 var(--gc-s3); font: 600 var(--gc-fs-s)/1.2 var(--gc-font-display); color: var(--gc-gold); }
.gc-footer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.gc-footer__legal { margin-top: var(--gc-s8); padding-top: var(--gc-s4); border-top: 1px solid rgb(255 255 255 / 0.12); color: #a9a3c4; }

/* ======================================================================
   ≥ 600px
   ====================================================================== */
@media (min-width: 600px) {
  :root { --gc-gutter: 24px; --gc-thumb: 160px; }
  .gc-cover { margin: 0; }
  .gc-cover .gc-media { border-radius: var(--gc-r-m); }
  .gc-featured__title { font-size: 1.75rem; }
  .gc-featured { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); column-gap: var(--gc-s6); align-content: center; }
  .gc-featured__media { grid-column: 1; grid-row: 1 / span 2; margin-bottom: 0; }
  .gc-featured__meta { display: block; grid-column: 2; grid-row: 1; align-self: end; }
  .gc-featured__title { grid-column: 2; grid-row: 2; align-self: start; margin-top: 10px; }
  .gc-games { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gc-s8); }
  .gc-footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gc-entry .alignleft { float: left; margin: 0.3em 1.2em 0.8em 0; max-width: 45%; }
  .gc-entry .alignright { float: right; margin: 0.3em 0 0.8em 1.2em; max-width: 45%; }
}

/* ======================================================================
   ≥ 1024px: desktop
   ====================================================================== */
@media (min-width: 1024px) {
  :root { --gc-gutter: 32px; --gc-header-h: 64px; --gc-fs-body: 1.125rem; --gc-fs-card: 1.0625rem; --gc-fs-section: 1.25rem; }

  .gc-rail, .gc-header [data-gc-menu] { display: none; }
  .gc-logo { margin-right: var(--gc-s8); }
  .gc-logo__coin { width: 32px; height: 32px; }
  .gc-logo__word { font-size: 1.25rem; }
  .gc-nav { display: block; margin-right: auto; }
  .gc-nav > ul { display: flex; gap: 2px; margin: 0; padding: 0; list-style: none; }
  .gc-nav > ul > li { position: relative; }
  .gc-nav > ul > li > a {
    display: inline-flex; align-items: center; gap: 8px; height: var(--gc-header-h); padding: 0 12px;
    color: #fff; font-weight: 600; font-size: 0.9375rem; text-decoration: none;
    box-shadow: inset 0 -3px 0 transparent;
  }
  .gc-nav > ul > li:hover > a, .gc-nav > ul > li:focus-within > a { box-shadow: inset 0 -3px 0 var(--gc-game, var(--gc-gold)); }
  .gc-nav > ul > li > a .gc-token { box-shadow: 0 0 0 2px rgb(255 255 255 / 0.9); width: 8px; height: 8px; }
  .gc-nav .gc-sub {
    position: absolute; top: 100%; left: 0; min-width: 260px; margin: 0; padding: 8px 0; list-style: none;
    background: #fff; color: var(--gc-ink); border-radius: 0 0 var(--gc-r-m) var(--gc-r-m);
    box-shadow: 0 16px 40px rgb(32 27 61 / 0.18);
    visibility: hidden; opacity: 0; pointer-events: none; transform: translateY(-4px); transition: opacity .12s, transform .12s, visibility .12s;
  }
  .gc-nav li:hover > .gc-sub, .gc-nav li:focus-within > .gc-sub { visibility: visible; opacity: 1; pointer-events: auto; transform: none; }
  .gc-nav .gc-sub a { display: block; padding: 9px 18px; text-decoration: none; font-size: 0.9375rem; }
  .gc-nav .gc-sub a:hover { background: var(--gc-wash); }
  /* Вложенные уровни всегда наследуют видимость родителя: свой visibility: visible делал невидимое меню кликабельным (DEC-023) */
  .gc-nav .gc-sub .gc-sub { position: static; visibility: inherit; opacity: 1; pointer-events: inherit; transform: none; box-shadow: none; padding: 0 0 4px; min-width: 0; }
  .gc-nav .gc-sub .gc-sub a { padding-left: 34px; font-size: var(--gc-fs-s); color: var(--gc-ink-soft); }

  /* Главная: две настоящие колонки. Слева главная новость и лента, справа свежее, «Важное», «Полезное», реклама */
  .gc-home { display: grid; grid-template-columns: minmax(0, 1fr) var(--gc-aside); column-gap: var(--gc-s12); align-items: start; padding-top: var(--gc-s8); }
  .gc-col-main, .gc-col-side { display: block; min-width: 0; }
  .gc-col-side { display: grid; gap: var(--gc-s8); align-content: start; }
  .gc-featured, .gc-latest, .gc-feed, .gc-special-slot, .gc-popular-slot, .gc-col-side > .gc-aside__sticky { order: 0; }
  .gc-featured { display: block; padding-top: 0; }
  .gc-featured__media { margin-bottom: var(--gc-s3); }
  .gc-featured__meta { display: contents; }
  .gc-featured__title { font-size: 2.125rem; line-height: 1.15; margin-top: 10px; }
  .gc-featured .gc-meta { font-size: var(--gc-fs-s); }
  .gc-col-side .gc-section { padding-top: 0; }
  .gc-latest .gc-row { --gc-thumb: 120px; }
  .gc-latest .gc-row__title { font-size: 0.9375rem; }

  .gc-feed { padding-top: var(--gc-s10); }
  .gc-feed .gc-list > .gc-row:first-child { border-top: 0; padding-top: 0; }
  .gc-feed .gc-row { --gc-thumb: 240px; gap: var(--gc-s5); padding: var(--gc-s5) 0; }
  .gc-feed .gc-row__title { font-size: 1.25rem; line-height: 1.25; letter-spacing: -0.01em; }
  .gc-feed .gc-meta { font-size: var(--gc-fs-s); }
  .gc-home-more { max-width: 280px; }

  .gc-ad--300x250.gc-ad--mobile-only, .gc-ad--320x100 { display: none; }
  .gc-ad--728x90 { display: grid; width: 100%; max-width: 728px; height: 90px; }
  .gc-ad--300x600 { display: grid; width: 300px; height: 600px; margin: 0; }
  .gc-adslot[data-gc-desktop] { display: block; }

  .gc-aside { gap: var(--gc-s8); }
  .gc-feed > .gc-section__head { display: flex; }
  .gc-aside__sticky { position: sticky; top: calc(var(--gc-header-h) + var(--gc-s6)); display: grid; gap: var(--gc-s8); }
  .gc-aside .gc-section { padding-top: 0; }

  .gc-games { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--gc-s10); }
  .gc-games-wrap { margin-top: var(--gc-s12); padding-top: var(--gc-s8); border-top: 1px solid var(--gc-line); }
  .gc-games-wrap > .gc-section { padding-top: 0; }

  /* Статья: колонка текста + sidebar */
  .gc-article-layout { display: grid; grid-template-columns: minmax(0, var(--gc-article)) var(--gc-aside); justify-content: space-between; gap: var(--gc-s16); }
  .gc-article__head { padding-top: var(--gc-s5); }
  .gc-article .gc-toc { display: none; }
  .gc-toc--aside { display: block; margin: 0; border: 0; max-height: 60vh; overflow-y: auto; overscroll-behavior: contain; }
  .gc-toc--aside h2 { margin: 0 0 var(--gc-s3); font: 600 var(--gc-fs-s)/1.2 var(--gc-font-display); color: var(--gc-ink-soft); }
  .gc-toc--aside ol { padding: 0 0 0 1.4rem; font-size: var(--gc-fs-s); }
  .gc-toc--aside li::marker { color: var(--gc-muted); }
  .gc-cover { margin-bottom: var(--gc-s8); }
  .gc-cover .gc-media { border-radius: var(--gc-r-m); }
  .gc-entry .gc-ad--300x250 { margin-left: 0; }

  .gc-footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}


@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}

/* ======================================================================
   Шаблоны темы: архивы, поиск, пагинация, комментарии, доступность
   ====================================================================== */
.gc-skip { position: absolute; left: var(--gc-s4); top: -100px; z-index: 100; padding: 10px 14px; background: var(--gc-gold); color: var(--gc-ink); font-weight: 700; border-radius: var(--gc-r-s); }
.gc-skip:focus { top: var(--gc-s2); }

.gc-archive__head { padding: var(--gc-s5) 0 var(--gc-s4); }
.gc-archive__title { display: flex; align-items: center; gap: 10px; margin: 0; font: 700 var(--gc-fs-h1)/1.15 var(--gc-font-display); letter-spacing: -0.01em; text-wrap: balance; }
.gc-archive__title .gc-token { width: 14px; height: 14px; border-radius: 4px; }
.gc-archive__title .gc-icon { width: 28px; height: 28px; }
.gc-archive__desc { max-width: var(--gc-measure); margin-top: var(--gc-s3); color: var(--gc-ink-soft); font-size: var(--gc-fs-m); }
.gc-archive__desc > :first-child { margin-top: 0; }
.gc-archive-layout { display: block; }
.gc-chips { display: flex; flex-wrap: wrap; gap: var(--gc-s2); margin: var(--gc-s4) 0 0; padding: 0; list-style: none; }
.gc-chips a { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: var(--gc-r-pill); background: var(--gc-wash); color: var(--gc-ink); font: 600 var(--gc-fs-s)/1 var(--gc-font-text); text-decoration: none; }
.gc-chips a:hover { background: var(--gc-wash-2); }
.gc-empty { color: var(--gc-ink-soft); }

.gc-search { display: flex; gap: var(--gc-s2); max-width: 560px; margin: var(--gc-s4) 0; }
.gc-search input[type="search"] { flex: 1; min-width: 0; height: 48px; padding: 0 14px; border: 1px solid var(--gc-line); border-radius: var(--gc-r-s); background: var(--gc-paper); font: 400 var(--gc-fs-m)/1 var(--gc-font-text); color: var(--gc-ink); }
.gc-search input[type="search"]:focus-visible { outline: 2px solid var(--gc-gold); outline-offset: 1px; }

.gc-pagination { margin: var(--gc-s8) 0; }
.gc-pagination ul { display: flex; flex-wrap: wrap; gap: var(--gc-s2); margin: 0; padding: 0; list-style: none; }
.gc-pagination a, .gc-pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: var(--gc-r-s); background: var(--gc-wash); color: var(--gc-ink); font: 600 var(--gc-fs-s)/1 var(--gc-font-text); text-decoration: none; }
.gc-pagination a:hover { background: var(--gc-wash-2); }
.gc-pagination .current { background: var(--gc-ink); color: #fff; }
.gc-pagination .dots { background: transparent; }

.gc-comments__list, .gc-comments__list ol { list-style: none; margin: 0; padding: 0; }
.gc-comments__list ol { margin-left: var(--gc-s5); }
.gc-comments__list .comment-body { padding: var(--gc-s4) 0; border-bottom: 1px solid var(--gc-line); }
.gc-comments__list .comment-meta { display: flex; flex-wrap: wrap; gap: 4px var(--gc-s3); color: var(--gc-muted); font-size: var(--gc-fs-s); }
.gc-comments__list .fn { color: var(--gc-ink); font-weight: 700; font-style: normal; }
.gc-comments__list .comment-meta a { color: inherit; text-decoration: none; }
.gc-comments__list .comment-content p { margin: var(--gc-s2) 0; }
.gc-comments__list .reply a { font-size: var(--gc-fs-s); font-weight: 600; }
.gc-comments .comment-reply-title { margin: var(--gc-s6) 0 var(--gc-s3); font: 700 var(--gc-fs-h3)/1.2 var(--gc-font-text); }
/* Форма комментария WordPress (class gc-comment-form). Разметку и поля не меняем, только оформление */
.gc-article-after { max-width: var(--gc-article); }
.gc-comment-form { display: grid; gap: var(--gc-s3); }
.gc-comment-form > p { margin: 0; min-width: 0; }
.gc-comment-form label { display: block; margin-bottom: 4px; font-size: var(--gc-fs-s); font-weight: 600; }
.gc-comment-form textarea, .gc-comment-form input[type="text"], .gc-comment-form input[type="email"], .gc-comment-form input[type="url"] {
  display: block; width: 100%; max-width: 100%; padding: 12px 14px; border: 1px solid #d6d2e3; border-radius: var(--gc-r-s);
  font: 400 var(--gc-fs-m)/1.4 var(--gc-font-text); color: var(--gc-ink); background: var(--gc-paper);
}
.gc-comment-form textarea { height: 140px; min-height: 96px; resize: vertical; }
.gc-comment-form .required { color: var(--gc-gold-deep); }
.gc-comment-form .comment-notes, .gc-comment-form .logged-in-as { font-size: var(--gc-fs-s); line-height: 1.45; color: var(--gc-muted); }
/* Авторизованный: одна компактная строка-примечание вместо абзаца */
.gc-comment-form .logged-in-as { padding: 8px 12px; border-radius: var(--gc-r-s); background: var(--gc-wash); }
.gc-comment-form .logged-in-as a { color: var(--gc-ink-soft); }
.gc-comment-form .required-field-message { white-space: nowrap; }
/* Чекбокс и подпись — один flex-элемент: [ ] Текст. Подходит для штатного «сохранить данные» и для плагинов подписки */
.gc-comment-form .comment-form-cookies-consent, .gc-comment-form .comment-subscription-form, .gc-comment-form .subscribe-to-comments,
.gc-comment-form > p:has(> input[type="checkbox"]) { display: flex; align-items: flex-start; gap: 10px; }
.gc-comment-form input[type="checkbox"] { flex: none; width: 18px; height: 18px; margin: 0.15em 0 0; accent-color: var(--gc-ink); }
.gc-comment-form p:has(> input[type="checkbox"]) label, .gc-comment-form .comment-form-cookies-consent label {
  display: inline; margin: 0; font-size: var(--gc-fs-s); font-weight: 400; line-height: 1.4; color: var(--gc-ink-soft);
}
.gc-comment-form .form-submit { margin-top: var(--gc-s1); }
.gc-comment-form .gc-button { display: inline-flex; width: auto; }
@media (min-width: 600px) {
  .gc-comment-form { grid-template-columns: 1fr 1fr; column-gap: var(--gc-s4); }
  .gc-comment-form > p { grid-column: 1 / -1; }
  .gc-comment-form > .comment-form-author, .gc-comment-form > .comment-form-email { grid-column: auto; }
  .gc-comment-form textarea { height: 200px; }
}

@media (min-width: 1024px) {
  .gc-archive__head { padding-top: var(--gc-s8); }
  .gc-archive-layout { display: grid; grid-template-columns: minmax(0, 1fr) var(--gc-aside); column-gap: var(--gc-s12); align-items: start; }
  .gc-archive-layout .gc-feed { padding-top: 0; }
  .gc-archive-layout .gc-feed .gc-list > .gc-row:first-child { border-top: 1px solid var(--gc-line); padding-top: var(--gc-s5); }
}
