/* Блог KittyGum: список статей и статья. Поверх kg.css */
.app.blog { max-width: 1180px; padding: 0 16px 80px; }
@media (min-width: 900px) { .app.blog { margin: 0 auto; min-height: 0; border-radius: 0; background: none; box-shadow: none; overflow: visible; padding: 0 24px 80px; } }
.blog .topbar { padding: 16px 0 12px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--gold-hi); }
.crumbs span[aria-hidden] { opacity: .5; }

/* Шапка списка */
.b-hero { padding: 18px 0 8px; max-width: 720px; }
.b-hero h1 { font: 300 40px/44px var(--head); margin-top: 8px; }
.b-hero h1 b { font-weight: 500; }
.b-hero p { color: var(--muted); font-size: 16px; line-height: 24px; margin-top: 10px; }

/* Карточки статей */
.posts { display: grid; gap: 18px; margin-top: 22px; }
@media (min-width: 640px) { .posts { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .posts { grid-template-columns: repeat(3, 1fr); } }
.pc-card { display: grid; grid-template-rows: auto 1fr; border-radius: 24px; overflow: hidden; background: var(--glass); box-shadow: inset 0 0 0 1px var(--line); color: var(--text); text-decoration: none; transition: transform 400ms var(--spring), box-shadow 300ms var(--ease); }
.pc-card:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--line-strong), 0 24px 50px rgba(0,0,0,.45); }
.pc-card .ph { aspect-ratio: 1000 / 622; background: #1a0710; overflow: hidden; }
.pc-card .ph img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 800ms var(--ease); }
.pc-card:hover .ph img { transform: scale(1.04); }
.pc-card .tx { padding: 16px 18px 20px; display: grid; gap: 8px; align-content: start; }
.pc-card h2 { font: 400 21px/26px var(--head); }
.pc-card .meta { font-size: 12px; color: var(--muted); letter-spacing: .02em; }
.pc-card .ex { font-size: 14px; line-height: 21px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
/* первая статья крупно */
@media (min-width: 980px) {
  .pc-card.lead { grid-column: 1 / -1; grid-template-rows: none; grid-template-columns: 1.3fr 1fr; }
  .pc-card.lead .ph { aspect-ratio: auto; min-height: 380px; }
  .pc-card.lead .tx { padding: 36px; align-content: center; }
  .pc-card.lead h2 { font-size: 34px; line-height: 40px; }
  .pc-card.lead .ex { -webkit-line-clamp: 5; font-size: 16px; line-height: 25px; }
}

.pager { display: flex; justify-content: center; gap: 8px; margin-top: 30px; flex-wrap: wrap; }
.pager a, .pager span { min-width: 44px; height: 44px; padding: 0 14px; display: grid; place-items: center; border-radius: 14px; background: var(--glass); box-shadow: inset 0 0 0 1px var(--line); color: var(--text); text-decoration: none; font: 600 14px/1 var(--font); }
.pager .cur { background: var(--gold-metal); color: var(--ink); box-shadow: none; }

/* Блок игр */
.play-cta { margin-top: 40px; padding: 26px; border-radius: 28px; background: linear-gradient(130deg, rgba(142,22,56,.35), rgba(216,180,122,.10)); box-shadow: inset 0 0 0 1px var(--line-strong); display: grid; gap: 16px; }
.play-cta h2 { font: 300 28px/32px var(--head); }
.play-cta h2 b { font-weight: 500; }
.games-mini { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.games-mini a { padding: 14px; border-radius: 18px; background: rgba(11,5,8,.45); box-shadow: inset 0 0 0 1px var(--line); color: var(--text); text-decoration: none; display: grid; gap: 4px; transition: transform 300ms var(--spring); }
.games-mini a:hover { transform: translateY(-3px); }
.games-mini b { font: 500 16px/20px var(--head); color: var(--gold-hi); }
.games-mini small { color: var(--muted); font-size: 12px; line-height: 16px; }
.seo-text { margin-top: 40px; color: var(--muted); font-size: 15px; line-height: 24px; max-width: 760px; }
.seo-text h2, .seo-text h3 { color: var(--text); font: 400 24px/30px var(--head); margin: 22px 0 8px; }
.seo-text p { margin-top: 10px; }

/* ---------- Статья ---------- */
.a-head { max-width: 820px; padding: 14px 0 10px; }
.a-head h1 { font: 300 38px/44px var(--head); margin-top: 12px; letter-spacing: -.01em; }
.a-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 14px; color: var(--muted); font-size: 13px; }
.a-meta b { color: var(--gold-hi); font-weight: 600; }
.a-cover { margin-top: 20px; border-radius: 28px; overflow: hidden; aspect-ratio: 1000 / 622; max-height: 520px; width: 100%; background: #1a0710; box-shadow: 0 30px 70px rgba(0,0,0,.5); }
.a-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.a-layout { display: grid; gap: 28px; margin-top: 30px; }
@media (min-width: 1000px) { .a-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; } }
.a-side { display: grid; gap: 16px; align-content: start; }
@media (min-width: 1000px) { .a-side { position: sticky; top: 20px; } }

/* Оглавление: в тексте оно приходит блоком .sub-menu, скрипт переносит его сюда */
.toc { padding: 18px; border-radius: 22px; background: var(--glass); box-shadow: inset 0 0 0 1px var(--line); }
.toc .label { display: block; margin-bottom: 8px; }
.toc ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; counter-reset: t; }
.toc li { counter-increment: t; }
.toc a { display: grid; grid-template-columns: 24px 1fr; gap: 6px; padding: 7px 8px; border-radius: 10px; color: var(--muted); font-size: 14px; line-height: 19px; text-decoration: none; }
.toc a::before { content: counter(t); color: var(--gold); font-weight: 600; font-size: 12px; padding-top: 1px; }
.toc a:hover, .toc a.on { color: var(--text); background: rgba(255,240,225,.05); }
.toc a.on::before { color: var(--gold-hi); }
details.toc summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
details.toc summary::-webkit-details-marker { display: none; }
details.toc summary::after { content: "+"; color: var(--gold); font-size: 22px; }
details.toc[open] summary::after { content: "−"; }
details.toc ul { margin-top: 8px; }
.side-cta { padding: 18px; border-radius: 22px; background: linear-gradient(140deg, rgba(142,22,56,.4), rgba(216,180,122,.12)); box-shadow: inset 0 0 0 1px var(--line-strong); display: grid; gap: 10px; }
.side-cta b { font: 400 20px/24px var(--head); }
.side-cta p { color: var(--muted); font-size: 14px; line-height: 20px; }

/* Типографика статьи */
.prose { font-size: 17px; line-height: 29px; color: #EFE3D8; max-width: 720px; }
.prose > * + * { margin-top: 18px; }
.prose h2 { font: 400 28px/34px var(--head); color: var(--text); margin-top: 44px; scroll-margin-top: 20px; }
.prose h2 a, .prose h3 a { color: inherit; text-decoration: none; }
.prose h3 { font: 500 21px/28px var(--head); color: var(--gold-hi); margin-top: 30px; scroll-margin-top: 20px; }
.prose a { color: var(--gold-hi); text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 0; list-style: none; display: grid; gap: 8px; }
.prose ul li { position: relative; padding-left: 26px; }
.prose ul li::before { content: ""; position: absolute; left: 6px; top: 12px; width: 7px; height: 7px; border-radius: 50%; background: var(--gold-metal); }
.prose ol { counter-reset: o; }
.prose ol li { counter-increment: o; position: relative; padding-left: 34px; }
.prose ol li::before { content: counter(o); position: absolute; left: 0; top: 3px; width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; background: rgba(216,180,122,.14); color: var(--gold-hi); font: 600 12px/1 var(--font); }
.prose strong, .prose b { color: var(--text); }
.prose blockquote { margin-left: 0; padding: 16px 20px; border-radius: 18px; background: rgba(216,180,122,.08); box-shadow: inset 3px 0 0 var(--gold); font-style: italic; }
.prose img { max-width: 100%; height: auto; border-radius: 18px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.prose .sub-menu { display: none; }

/* Оценка статьи */
.a-rate { margin-top: 40px; padding: 22px; border-radius: 24px; background: var(--glass); box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: 12px; max-width: 720px; }
.a-rate .row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.a-rate .big { font: 300 36px/1 var(--head); }
.a-rate .rb { display: grid; grid-template-columns: repeat(10, 1fr); gap: 6px; }
.a-rate .rb button { height: 40px; border: 0; border-radius: 10px; cursor: pointer; background: rgba(255,240,225,.06); color: var(--text); font: 600 14px/1 var(--font); box-shadow: inset 0 0 0 1px var(--line); }
.a-rate .rb button.lit { background: var(--gold-metal); color: var(--ink); box-shadow: none; }
.a-rate .msg { color: var(--muted); font-size: 13px; }

.related { margin-top: 44px; }
.related > h2 { font: 300 30px/34px var(--head); }
.related .posts { margin-top: 16px; }
@media (max-width: 640px) { .b-hero h1, .a-head h1 { font-size: 31px; line-height: 36px; } .prose { font-size: 16px; line-height: 27px; } .prose h2 { font-size: 24px; line-height: 30px; } }

/* ===== Список статей без картинок: редакционная лента ===== */
.app.blog { padding-top: 8px; }
.b-hero .crumbs { margin-bottom: 14px; }
.b-hero h1 { font-size: clamp(40px, 6vw, 72px); line-height: 1; letter-spacing: -0.035em; }
.b-search { display: flex; align-items: center; gap: 10px; margin-top: 22px; max-width: 460px; padding: 0 14px; border-radius: 16px; background: rgba(255,240,225,.05); box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); }
.b-search input { flex: 1; min-width: 0; border: 0; background: none; padding: 13px 0; color: var(--text); font: 500 15px/20px var(--font); outline: none; }
.list { list-style: none; padding: 0; margin: 30px 0 0; border-top: 1px solid var(--line); }
.list > li > a { display: grid; grid-template-columns: 48px 1fr 40px; gap: 18px; align-items: center; padding: 22px 6px; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; transition: background-color 300ms var(--ease), padding 400ms var(--ease); }
.list > li > a:hover { background: linear-gradient(90deg, rgba(142,22,56,.16), transparent 70%); padding-left: 14px; }
.list .n { font: 300 18px/1 var(--head); color: var(--muted); font-variant-numeric: tabular-nums; }
.list .tx { display: grid; gap: 6px; min-width: 0; }
.list .meta { font-size: 12px; color: var(--muted); letter-spacing: .02em; }
.list .h { font: 400 24px/30px var(--head); letter-spacing: -0.01em; transition: color 300ms var(--ease); }
.list a:hover .h { color: var(--gold-hi); }
.list .ex { font-size: 14px; line-height: 21px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-width: 760px; }
.list .go { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,240,225,.06); color: var(--gold-hi); font: 300 18px/1 var(--head); transition: background 300ms var(--ease), color 300ms var(--ease), transform 400ms var(--spring); }
.list a:hover .go { background: var(--gold-metal); color: var(--ink); transform: translateX(4px); }
/* свежая статья крупнее */
.list li.lead > a { padding: 30px 6px 32px; }
.list li.lead .h { font-size: clamp(30px, 4vw, 46px); line-height: 1.08; }
.list li.lead .ex { -webkit-line-clamp: 3; font-size: 16px; line-height: 25px; }
.list .ad-row { padding: 14px 0; border-bottom: 1px solid var(--line); }
.list .ad-row .kg-ad { margin: 0; }
.list [hidden] { display: none; }
.b-hero + .list, .empty { color: var(--muted); }
@media (max-width: 640px) {
  .list > li > a { grid-template-columns: 1fr 32px; gap: 12px; padding: 18px 2px; }
  .list .n { display: none; }
  .list .h { font-size: 20px; line-height: 26px; }
  .list .go { width: 32px; height: 32px; }
}
