/* Блог (сценарий blog#style) — поверх landing.css: те же шрифты, палитра ночного города, кнопки «▶ Играть».
   Пиксельные рамки — ступенчатый clip-path (как переключатель языка лендинга) и внутренние тени; иконки предметов — атлас игры.
   Телефон — сначала: одна колонка, оглавление свёрнуто, липкая кнопка «Играть». */
.b-body { --px-c: 4px; background: var(--bg); }
.pxf, .b-pc, .b-try, .b-tip, .b-note, .b-card, .b-toc details, .b-q, .b-fallback, .b-table, .b-cover, .b-fig img {
  clip-path: polygon(0 var(--px-c), var(--px-c) var(--px-c), var(--px-c) 0, calc(100% - var(--px-c)) 0, calc(100% - var(--px-c)) var(--px-c), 100% var(--px-c), 100% calc(100% - var(--px-c)), calc(100% - var(--px-c)) calc(100% - var(--px-c)), calc(100% - var(--px-c)) 100%, var(--px-c) 100%, var(--px-c) calc(100% - var(--px-c)), 0 calc(100% - var(--px-c)));
}
/* значок предмета из атласа (как ui/itemicon.js: миниатюры 24 px, целый масштаб; размер атласа — в странице, server/blog.js) */
.pxi { --z: 1; display: inline-block; flex: none; width: calc(24px * var(--z)); height: calc(24px * var(--z)); vertical-align: -0.3em;
  background: url(/img/items.png) calc(var(--px) * -24px * var(--z)) calc(var(--py) * -24px * var(--z)) / calc(576px * var(--z)) auto no-repeat;
  image-rendering: pixelated; font-style: normal; }
.pxi.z2 { --z: 2; } .pxi.z3 { --z: 3; } .pxi.z4 { --z: 4; }
.b-text .pxi:not(.z2):not(.z3):not(.z4) { --z: 1; margin: 0 2px; }
.b-emo { font-style: normal; }

/* ---------- шапка ---------- */
.b-top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 8px; padding: max(10px, env(safe-area-inset-top)) var(--gut) 10px;
  background: rgba(8, 12, 26, 0.9); backdrop-filter: blur(10px); box-shadow: inset 0 -2px 0 #1c2652, 0 10px 30px -14px rgba(0, 0, 0, 0.8); }
.b-top .logo-t { font-size: 20px; }
.b-nav { display: none; gap: 4px; margin-left: 18px; }
.b-nav a { font: 400 11px/1 var(--pix); color: var(--muted); text-decoration: none; padding: 10px 12px; border-radius: 8px; }
.b-nav a:hover, .b-nav a.on { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.b-nav a.on { color: var(--yellow); }
.b-lang { margin-left: auto; position: relative; }
.b-lang summary { list-style: none; display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 10px; cursor: pointer; font: 400 11px/1 var(--pix); color: var(--text);
  background: linear-gradient(180deg, #24306a, #18214a); box-shadow: inset 0 0 0 2px #36438a, inset 0 -4px 0 rgba(0, 0, 0, 0.3); --px-c: 3px; }
.b-lang summary::-webkit-details-marker { display: none; }
.b-lang summary, .b-lang ul { clip-path: polygon(0 3px, 3px 3px, 3px 0, calc(100% - 3px) 0, calc(100% - 3px) 3px, 100% 3px, 100% calc(100% - 3px), calc(100% - 3px) calc(100% - 3px), calc(100% - 3px) 100%, 3px 100%, 3px calc(100% - 3px), 0 calc(100% - 3px)); }
.b-lang .globe { image-rendering: pixelated; }
.b-lang ul { position: absolute; right: 0; top: calc(100% + 8px); z-index: 70; min-width: 180px; margin: 0; padding: 6px; list-style: none; background: #141c3c; box-shadow: inset 0 0 0 2px #36438a, 0 18px 40px rgba(0, 0, 0, 0.55); }
.b-lang li a { display: block; padding: 11px 14px; font: 600 15px var(--font); color: var(--text); text-decoration: none; }
.b-lang li a:hover { background: rgba(255, 255, 255, 0.08); }
.b-lang li a.on { color: var(--green); }
.b-top .top-login { display: none; height: 36px; }
.b-top .btn { display: inline-flex; }

/* ---------- общая колонка ---------- */
.b-wrap { max-width: 1180px; margin: 0 auto; padding: 0 var(--gut); }
.b-crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 18px 0 0; padding: 0; font-size: 13px; color: var(--dim); }
.b-crumbs li + li::before { content: '›'; margin-right: 6px; color: var(--dim); }
.b-crumbs a { color: var(--muted); text-decoration: none; }
.b-crumbs a:hover { color: var(--text); text-decoration: underline; }
.b-crumbs [aria-current] { color: var(--muted); max-width: 46ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.b-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 10px; font-size: 13.5px; color: var(--dim); }
.b-ver { font: 400 10px/1 var(--pix); color: var(--yellow); padding: 4px 6px; background: rgba(255, 212, 59, 0.12); border-radius: 4px; }
.b-tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.b-tags a { display: inline-flex; gap: 5px; font: 700 11.5px/1 var(--font); letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; color: var(--sky); background: rgba(56, 189, 248, 0.12); padding: 6px 9px; border-radius: 6px; }
.b-tags a:hover { background: rgba(56, 189, 248, 0.22); }
.b-sec-h { font-size: 16px; margin: 0 0 18px; }

/* ---------- лента ---------- */
.b-hero { position: relative; isolation: isolate; overflow: hidden; min-height: 300px; display: grid; align-items: end; padding: 48px var(--gut) 34px; background: #120c2a; }
.b-hero-bg { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 60%; image-rendering: pixelated; }
.b-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11, 16, 32, 0.15), rgba(11, 16, 32, 0.55) 55%, var(--bg) 100%), radial-gradient(60% 70% at 20% 80%, rgba(11, 16, 32, 0.7), transparent); }
.b-hero-in { max-width: 1180px; width: 100%; margin: 0 auto; }
.b-hero .kicker { --ac: var(--pink); background: rgba(11, 16, 32, 0.6); }
.b-hero-h { font-size: 24px; line-height: 1.35; text-shadow: 0 4px 0 #2a1450, 0 0 30px rgba(0, 0, 0, 0.6); text-wrap: balance; }
.b-hero-sub { margin-top: 12px; max-width: 34em; color: #e5e9fb; font-size: 17px; text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8); }
.b-rss { display: inline-flex; gap: 6px; margin-top: 16px; font: 400 10px/1 var(--pix); color: var(--orange); text-decoration: none; padding: 9px 11px; background: rgba(11, 16, 32, 0.6); box-shadow: inset 0 0 0 2px rgba(255, 169, 77, 0.45); border-radius: 6px; }
.b-sub { max-width: 1180px; margin: 0 auto; padding: 34px var(--gut) 0; }
.b-chips ul { display: flex; gap: 8px; overflow-x: auto; list-style: none; margin: 16px 0 0; padding: 2px 0 8px; scrollbar-width: none; }
.b-chips a { display: inline-flex; gap: 6px; white-space: nowrap; font: 600 14px var(--font); color: var(--muted); text-decoration: none; padding: 9px 14px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line2); }
.b-chips a:hover { color: var(--text); box-shadow: inset 0 0 0 1px var(--sky); }
.b-chips a[aria-current] { color: #052e14; background: var(--green); box-shadow: none; }
.b-empty { margin: 40px 0; color: var(--muted); }
.b-feat { margin-top: 18px; }
.b-grid { display: grid; gap: 18px; margin-top: 18px; grid-template-columns: 1fr; }
.b-pc { position: relative; display: flex; flex-direction: column; background: linear-gradient(180deg, var(--card2), var(--card)); box-shadow: inset 0 0 0 2px #2a3570, inset 0 -5px 0 rgba(0, 0, 0, 0.25); transition: transform 0.15s, box-shadow 0.15s; }
.b-pc:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 2px var(--sky), inset 0 -5px 0 rgba(0, 0, 0, 0.25); }
.b-pc-img { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #0e1430; }
.b-pc-img img { width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; transition: transform 0.4s; }
.b-pc:hover .b-pc-img img { transform: scale(1.04); }
.b-new, .b-en { position: absolute; top: 10px; left: 10px; font: 400 10px/1 var(--pix); padding: 7px 8px; color: #3b1d00; background: var(--yellow); box-shadow: 0 3px 0 #b8860b; animation: b-blink 1.6s steps(2) infinite; }
.b-en { left: auto; right: 10px; color: var(--text); background: #36438a; box-shadow: 0 3px 0 #1c2652; animation: none; }
@keyframes b-blink { 50% { filter: brightness(1.25); } }
.b-pc-t { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px 18px; flex: 1; }
.b-pc-h { font-size: 13px; line-height: 1.55; }
.b-pc.big .b-pc-h { font-size: 16px; }
.b-pc-h a { color: var(--text); text-decoration: none; }
.b-pc-h a::after { content: ''; position: absolute; inset: 0; }
.b-pc .b-tags, .b-pc .b-tags a { position: relative; z-index: 1; }
.b-pc-s { color: var(--muted); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.b-pc .b-meta { margin-top: auto; }
.b-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; margin: 34px 0 0; }
.b-pager ol { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.b-pager ol a { display: grid; place-items: center; min-width: 40px; height: 40px; font: 400 12px var(--pix); color: var(--text); text-decoration: none; background: #1c2652; box-shadow: inset 0 0 0 2px #2a3570, 0 4px 0 #0a0f22; }
.b-pager ol a[aria-current] { color: #052e14; background: var(--green); box-shadow: 0 4px 0 var(--green-d); }

/* ---------- пост ---------- */
.b-wrap-post { max-width: 1180px; }
.b-fallback { margin: 16px 0 0; padding: 12px 16px; background: rgba(56, 189, 248, 0.1); box-shadow: inset 0 0 0 2px rgba(56, 189, 248, 0.35); color: #cdeefe; font-size: 15px; }
.b-head { max-width: 820px; margin: 22px auto 0; }
.b-head .b-tags { margin-bottom: 14px; }
.b-h1 { font-size: 20px; line-height: 1.45; text-wrap: balance; text-shadow: 0 3px 0 #2a1450; }
.b-lead { margin-top: 14px; font-size: 18.5px; line-height: 1.55; color: #d9def5; text-wrap: pretty; }
.b-cover { margin: 22px auto 0; max-width: 1100px; background: #0e1430; box-shadow: inset 0 0 0 3px #2a3570; --px-c: 6px; }
.b-cover img { width: 100%; height: auto; image-rendering: pixelated; }
.b-layout { display: grid; gap: 24px; max-width: 820px; margin: 26px auto 0; }
.b-toc details { background: #121a38; box-shadow: inset 0 0 0 2px #2a3570; padding: 4px 0; }
.b-toc summary { cursor: pointer; padding: 12px 16px; font: 400 11px/1 var(--pix); color: var(--yellow); list-style: none; }
.b-toc summary::-webkit-details-marker { display: none; }
.b-toc summary::after { content: ' ▾'; color: var(--dim); }
.b-toc details[open] summary::after { content: ' ▴'; }
.b-toc ol { margin: 0; padding: 0 16px 14px 34px; display: grid; gap: 8px; font-size: 14.5px; }
.b-toc a { color: var(--muted); text-decoration: none; }
.b-toc a:hover, .b-toc a.on { color: var(--text); }
.b-toc a.on { color: var(--green); }
.b-toc li::marker { color: var(--dim); font-size: 12px; }

.b-text { font-size: 17.5px; line-height: 1.72; color: #e3e7f8; min-width: 0; }
.b-text > * + * { margin-top: 18px; }
.b-text h2 { font-size: 15px; line-height: 1.55; margin-top: 46px; padding-bottom: 12px; color: var(--text); scroll-margin-top: 80px;
  background: linear-gradient(90deg, var(--green) 0 24px, var(--yellow) 24px 48px, var(--pink) 48px 72px, transparent 72px) bottom left / 100% 4px no-repeat; }
.b-text h3 { font: 700 19px/1.4 var(--font); margin-top: 28px; color: var(--text); scroll-margin-top: 80px; }
.b-text h4 { font: 700 17px/1.4 var(--font); margin-top: 22px; }
.b-text a { color: var(--sky); text-underline-offset: 3px; }
.b-text a:hover { color: #7dd3fc; }
.b-text strong { color: #fff; }
.b-text ul, .b-text ol { padding-left: 24px; }
.b-text li + li { margin-top: 6px; }
.b-text ul > li::marker { content: '■  '; color: var(--green); font-size: 11px; }
.b-text blockquote { margin-left: 0; padding: 4px 0 4px 18px; border-left: 4px solid var(--violet); color: var(--muted); }
.b-text code { font: 600 0.88em ui-monospace, monospace; padding: 2px 6px; background: rgba(255, 255, 255, 0.08); border-radius: 5px; }
.b-text pre { overflow-x: auto; padding: 14px; background: #0e1430; border-radius: 10px; }
.b-text hr { border: 0; height: 4px; background: repeating-linear-gradient(90deg, #2a3570 0 8px, transparent 8px 16px); margin: 34px 0; }
.b-fig { margin: 26px 0; }
.b-fig img { width: 100%; height: auto; image-rendering: pixelated; background: #0e1430; }
.b-fig figcaption { margin-top: 10px; font-size: 14px; color: var(--dim); text-align: center; }
.b-table { overflow-x: auto; background: #121a38; box-shadow: inset 0 0 0 2px #2a3570; }
.b-table table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.b-table th, .b-table td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.b-table th { font: 400 10px/1.5 var(--pix); color: var(--yellow); background: rgba(0, 0, 0, 0.2); }
.b-table tr:last-child td { border-bottom: 0; }

/* «что нового» — карточки с эмодзи */
.b-news { list-style: none; padding: 0 !important; display: grid; gap: 12px; grid-template-columns: 1fr; }
.b-news li + li { margin-top: 0; }
.b-news > li::marker { content: none; }
.b-card { display: flex; gap: 14px; align-items: flex-start; padding: 16px; background: linear-gradient(180deg, #1c2652, #151d3b); box-shadow: inset 0 0 0 2px #2a3570, inset 0 -4px 0 rgba(0, 0, 0, 0.25); }
.b-card-e { flex: none; display: grid; place-items: center; width: 48px; height: 48px; font-size: 26px; background: #0e1430; box-shadow: inset 0 0 0 2px #36438a; border-radius: 6px; }
.b-card h3 { margin: 2px 0 4px; font: 700 16.5px/1.35 var(--font); }
.b-card p { margin: 0; font-size: 15.5px; line-height: 1.55; color: var(--muted); }

/* «попробуй в игре» */
.b-try { --px-c: 6px; display: grid; grid-template-columns: auto 1fr; gap: 14px 16px; align-items: center; padding: 18px; margin: 28px 0;
  background: radial-gradient(120% 140% at 0% 0%, rgba(74, 222, 128, 0.18), transparent 60%), linear-gradient(180deg, #17304a, #13223e); box-shadow: inset 0 0 0 3px #22c55e, inset 0 -6px 0 rgba(0, 0, 0, 0.3); }
.b-try-ic { display: grid; place-items: center; width: 56px; height: 56px; font-size: 30px; background: #0b1020; box-shadow: inset 0 0 0 2px #22c55e; border-radius: 8px; animation: b-bob 2.2s steps(4) infinite; }
@keyframes b-bob { 50% { transform: translateY(-3px); } }
.b-try-k { font: 400 10px/1.4 var(--pix) !important; color: var(--green); margin: 0 0 6px !important; }
.b-try-t p { margin: 0; font-size: 16px; line-height: 1.55; }
.b-try > * { min-width: 0; }
.b-try-btn { grid-column: 1 / -1; justify-self: start; max-width: 100%; white-space: normal; text-align: center; text-decoration: none !important; color: #052e14 !important; } /* длинная подпись на телефоне — в две строки, а не за край (TWN-73) */
.b-tip, .b-note { padding: 14px 18px; background: rgba(255, 212, 59, 0.08); box-shadow: inset 0 0 0 2px rgba(255, 212, 59, 0.35); }
.b-note { background: rgba(167, 139, 250, 0.1); box-shadow: inset 0 0 0 2px rgba(167, 139, 250, 0.35); }
.b-tip-k { font: 400 10px/1.5 var(--pix) !important; color: var(--yellow); margin: 0 0 6px !important; }
.b-tip p, .b-note p { margin: 0; }
.b-tip p + p, .b-note p + p { margin-top: 8px; }
.b-items { list-style: none; padding: 0 !important; display: flex; flex-wrap: wrap; gap: 10px; }
.b-items li { margin: 0 !important; display: flex; flex-direction: column; align-items: center; gap: 6px; width: 104px; padding: 12px 6px; text-align: center; font-size: 13px; line-height: 1.3; color: var(--muted); background: #121a38; box-shadow: inset 0 0 0 2px #2a3570; border-radius: 6px; }
.b-items li::marker { content: none; }
/* вопросы */
.b-faq { display: grid; gap: 10px; }
.b-q { background: #121a38; box-shadow: inset 0 0 0 2px #2a3570; }
.b-q summary { cursor: pointer; list-style: none; padding: 14px 44px 14px 16px; position: relative; }
.b-q summary::-webkit-details-marker { display: none; }
.b-q summary::after { content: '+'; position: absolute; right: 16px; top: 12px; font: 400 14px var(--pix); color: var(--green); }
.b-q[open] summary::after { content: '–'; }
.b-q summary h3 { margin: 0; font: 700 17px/1.4 var(--font); }
.b-a { padding: 0 16px 14px; color: var(--muted); font-size: 16px; }
.b-a p { margin: 0; }
.b-a p + p { margin-top: 8px; }

.b-share { max-width: 820px; margin: 40px auto 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding-top: 20px; box-shadow: inset 0 2px 0 var(--line); }
.b-share-k { font: 400 10px var(--pix); color: var(--dim); }
.b-sh { font: 600 14px var(--font); color: var(--muted); text-decoration: none; padding: 8px 12px; border-radius: 8px; box-shadow: inset 0 0 0 1px var(--line2); }
.b-sh:hover { color: var(--text); box-shadow: inset 0 0 0 1px var(--sky); }
.b-related { margin-top: 56px; }
.b-final { margin-top: 70px; }
.b-404 { text-align: center; padding-top: 40px; }
.b-404-n { font: 400 64px/1 var(--pix); color: var(--pink); text-shadow: 6px 6px 0 #2a1450; margin: 10px 0 18px; }
.b-404 .b-lead { max-width: 36em; margin-left: auto; margin-right: auto; }
.b-404-go { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 22px; }
.b-404 .b-related { text-align: left; }

/* телефон: «Играть» всегда под рукой */
.b-sticky { position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; padding: 10px var(--gut) calc(10px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, rgba(11, 16, 32, 0), rgba(11, 16, 32, 0.94) 42%); transform: translateY(120%); transition: transform 0.28s; }
.b-sticky.on { transform: none; }
.b-sticky .btn { display: flex; width: 100%; }

/* лендинг: «Из блога» */
.lp-blog { margin-top: 26px; }
.lp-blog-all { margin-top: 22px; text-align: center; }

@media (min-width: 640px) {
  .b-grid { grid-template-columns: repeat(2, 1fr); }
  .b-news { grid-template-columns: repeat(2, 1fr); }
  .b-hero { min-height: 360px; padding-top: 70px; }
  .b-hero-h { font-size: 32px; }
  .b-h1 { font-size: 26px; }
  .b-text h2 { font-size: 17px; }
  .b-try { grid-template-columns: auto 1fr auto; padding: 22px 24px; }
  .b-try-btn { grid-column: auto; }
  .b-top .top-login { display: inline-flex; }
  .b-sticky { display: none; }
}
@media (min-width: 900px) {
  .b-nav { display: flex; }
  .b-grid { grid-template-columns: repeat(3, 1fr); }
  .b-feat .b-pc.big { display: grid; grid-template-columns: 1.35fr 1fr; }
  .b-feat .b-pc-img { aspect-ratio: auto; min-height: 340px; }
  .b-feat .b-pc-t { padding: 26px 28px; justify-content: center; }
  .b-pc.big .b-pc-h { font-size: 19px; line-height: 1.5; }
  .b-pc.big .b-pc-s { -webkit-line-clamp: 5; font-size: 16.5px; }
  .b-hero { min-height: 400px; }
  .b-hero-h { font-size: 38px; }
}
@media (min-width: 1100px) {
  .b-layout { max-width: 1100px; grid-template-columns: 250px minmax(0, 1fr); gap: 46px; }
  .b-layout.no-toc { max-width: 820px; grid-template-columns: 1fr; }
  .b-toc { position: sticky; top: 84px; align-self: start; max-height: calc(100vh - 110px); overflow: auto; }
  .b-head, .b-share { max-width: 1100px; padding-left: 296px; }
  .b-layout.no-toc ~ .b-share { padding-left: 0; max-width: 820px; }
}
@media (prefers-reduced-motion: reduce) { .b-new, .b-try-ic { animation: none; } .b-pc, .b-pc-img img { transition: none; } }
/* текст постов — Rubik: обычные пробелы (у пиксельного шрифта в landing.css они сжаты) */
.b-text h3, .b-text h4, .b-card h3, .b-q summary h3 { word-spacing: normal; }
.b-hero-in { max-width: calc(1180px - 2 * var(--gut)); }
/* телефон: шапка в одну строку — короткая «▶ Играть», без плашки ALPHA; cookie над липкой кнопкой */
.b-top .b-pl { display: none; }
@media (max-width: 459px) { .b-top .alpha { display: none; } .b-top .logo-t { font-size: 18px; } .b-top { gap: 6px; } }
@media (min-width: 460px) { .b-top .b-pl { display: inline; } .b-top .b-ps { display: none; } }
.b-sticky.on ~ .cc { bottom: calc(84px + env(safe-area-inset-bottom)); }
.b-body { overflow-x: hidden; }

/* страницы об игре /game (landing#pages): тот же стиль, что у блога */
.g-index .b-sec-h { margin-top: 34px; }
.g-pc.g-x { justify-content: center; min-height: 150px; background: linear-gradient(180deg, #1c2a5a, var(--card)); }
.g-note { margin: 28px 0 0; padding: 12px 16px; font-size: 13px; line-height: 1.6; opacity: 0.85; }
.g-kicker { margin: 0 0 10px; }
.g-kicker a { color: inherit; text-decoration: none; }
.g-art .b-h1 > span { margin-right: 6px; }
