/*
 * Golden Crown — шаблон casino-sidebar («лобби»-приложение: боковое меню + сайдбар).
 * Все цвета только через CSS-переменные темы (--c-*), их печатает includes/head.php
 * из config/site.php → theme. Схема (dark/light) — атрибут data-scheme на <html>.
 *
 * Раскладка:
 *   ≥1280px — боковое меню (подписи) | контент | правый сайдбар;
 *   768–1279 — узкая полоса иконок | контент, сайдбар под контентом;
 *   <768 — меню выезжает по бургеру.
 * Блоки внутри колонки контента подстраиваются под её ширину (container queries),
 * поэтому одинаково ведут себя в колонке, в сайдбаре и в редакторе.
 */

/* ---------- Tokens ---------- */
:root {
    --c-accent-soft: color-mix(in srgb, var(--c-accent) 14%, transparent);
    --c-accent-line: color-mix(in srgb, var(--c-accent) 45%, transparent);
    --c-accent2-soft: color-mix(in srgb, var(--c-accent-2) 16%, transparent);
    --c-hover: color-mix(in srgb, var(--c-text) 6%, transparent);
    --c-line: color-mix(in srgb, var(--c-border) 88%, transparent);
    --c-chip: color-mix(in srgb, var(--c-text) 6%, transparent);
    --c-overlay: color-mix(in srgb, var(--c-bg) 70%, transparent);
    --c-logo-plate: var(--c-bg);
    --radius-sm: max(6px, calc(var(--radius) - 4px));
    --radius-lg: calc(var(--radius) + 6px);
    --side-w: 252px;
    --rail-w: 76px;
    --aside-w: 318px;
    --top-h: 60px;
    --pad: clamp(16px, 2.2vw, 32px);
    --page-max: 1480px;
    --ease: cubic-bezier(.2, .7, .2, 1);
    --shadow: 0 1px 3px rgb(0 0 0 / .2);
    --shadow-pop: 0 4px 12px rgb(0 0 0 / .3);
    color-scheme: dark;
}

html[data-scheme="light"] {
    --c-hover: color-mix(in srgb, var(--c-text) 5%, transparent);
    --c-chip: color-mix(in srgb, var(--c-text) 5%, transparent);
    --c-overlay: color-mix(in srgb, var(--c-text) 45%, transparent);
    --c-logo-plate: var(--c-text);
    --shadow: 0 1px 3px rgb(0 0 0 / .1);
    --shadow-pop: 0 4px 12px rgb(0 0 0 / .14);
    color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--top-h) + 16px);
}

body {
    margin: 0;
    background: var(--c-bg);
    color: var(--c-text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

body.navLinksOpen { overflow: hidden; }

h1, h2, h3, h4 {
    margin: 0;
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.01em;
}

p { margin: 0; }
img { max-width: 100%; height: auto; }
a { color: var(--c-accent); text-decoration: none; }
a:hover { text-decoration: underline; }
svg { flex: none; }
button { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; }

.icon { width: 20px; height: 20px; }

.skipUrl {
    position: fixed;
    top: 8px;
    left: 8px;
    z-index: 100;
    padding: .6rem 1rem;
    border-radius: var(--radius-sm);
    background: var(--c-accent);
    color: var(--c-accent-ink);
    font-weight: 700;
    transform: translateY(-160%);
}

.skipUrl:focus { transform: none; }

/* ---------- Buttons ---------- */
.btn {
    --btn-pad: .68rem 1.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: var(--btn-pad);
    border: 1px solid transparent;
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: .95rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease), transform .18s var(--ease);
}

.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn .icon { width: 18px; height: 18px; }

.go_mainBtn { background: var(--c-accent); color: var(--c-accent-ink); }
.go_mainBtn:hover { background: color-mix(in srgb, var(--c-accent) 86%, var(--c-text)); }

.go_outline { border-color: var(--c-border); background: transparent; color: var(--c-text); }
.go_outline:hover { border-color: var(--c-accent-line); background: var(--c-hover); }

.go_light { border-color: var(--c-line); background: var(--c-surface-2); color: var(--c-text); }
.go_light:hover { border-color: var(--c-accent-line); }

.go_small { --btn-pad: .5rem .85rem; font-size: .875rem; }
.go_lg { --btn-pad: .85rem 1.35rem; font-size: 1rem; }
.go_chunk { width: 100%; white-space: normal; text-align: center; }

.chip {
    display: inline-flex;
    align-items: center;
    padding: .2rem .6rem;
    border-radius: 999px;
    background: var(--c-chip);
    color: var(--c-muted);
    font-size: .74rem;
    font-weight: 600;
    white-space: nowrap;
}

.eyebrow {
    display: inline-block;
    color: var(--c-accent);
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.adultMark {
    display: inline-grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border: 1.5px solid var(--c-danger);
    border-radius: 50%;
    color: var(--c-text);
    font-size: .7rem;
    font-weight: 800;
}

.adultMark--lg { width: 38px; height: 38px; font-size: .82rem; }

/* ---------- Stars ---------- */
.stars { position: relative; display: inline-flex; vertical-align: middle; line-height: 0; }
.stars-base, .stars-fill { display: flex; gap: 2px; }
.stars-base { color: var(--c-border); }
.stars-fill { position: absolute; inset: 0 auto 0 0; overflow: hidden; color: var(--c-accent); }
.stars svg { width: 15px; height: 15px; fill: currentColor; }

/* ---------- App shell ---------- */
.mobileShell {
    display: grid;
    grid-template-columns: var(--side-w) minmax(0, 1fr);
    min-height: 100vh;
}

.mobileFrame {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* ---------- Side navigation ---------- */
.sideNavLinks {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    flex-direction: column;
    gap: 18px;
    height: 100vh;
    height: 100dvh;
    padding: 16px 14px 18px;
    border-right: 1px solid var(--c-line);
    background: var(--c-surface);
    overflow-y: auto;
    scrollbar-width: thin;
}

.sideNavLinks-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 44px;
    padding-inline: 4px;
}

.brandUrl {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    color: var(--c-text);
    text-decoration: none;
}

.brandUrl:hover { text-decoration: none; }
.brandUrl-mark { width: 36px; height: 36px; border-radius: var(--radius-sm); object-fit: contain; }
.brandUrl-blurb {
    display: -webkit-box;
    overflow: hidden;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.15;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.brandUrl-brandname { display: block; width: auto; height: 40px; max-width: 196px; object-fit: contain; object-position: left center; }
.sideNavLinks .brandUrl--brandname .brandUrl-mark { display: none; }

.sideNavLinks-x {
    display: none;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--c-line);
    border-radius: var(--radius-sm);
    background: transparent;
    cursor: pointer;
}

.sideNavLinks-list { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }

.sideNavLinks-url {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 12px;
    border-radius: var(--radius);
    color: var(--c-muted);
    font-size: .95rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color .15s var(--ease), color .15s var(--ease);
}

.sideNavLinks-url:hover { background: var(--c-hover); color: var(--c-text); text-decoration: none; }

.sideNavLinks-sign {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: var(--radius-sm);
    background: var(--c-chip);
    transition: background-color .15s var(--ease), color .15s var(--ease);
}

.sideNavLinks-sign .icon { width: 19px; height: 19px; }
.sideNavLinks-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.sideNavLinks-url.stCurrent { background: var(--c-accent-soft); color: var(--c-text); }
.sideNavLinks-url.stCurrent .sideNavLinks-sign { background: var(--c-accent); color: var(--c-accent-ink); }

.sideNavLinks-footer { display: grid; gap: 14px; margin-top: auto; }
.sideNavLinks-buttons { display: grid; gap: 8px; }

.sideNavLinks-smallprint {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-inline: 4px;
    color: var(--c-muted);
    font-size: .8rem;
}

.sideNavLinksBackdrop { display: none; }

/* ---------- Top bar ---------- */
.headStrip {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    gap: 12px;
    height: var(--top-h);
    padding: 0 var(--pad);
    border-bottom: 1px solid var(--c-line);
    background: var(--c-bg);
    transition: box-shadow .2s var(--ease);
}

.headStrip.stStuck { box-shadow: var(--shadow); }

.headStrip-burg {
    display: none;
    place-items: center;
    width: 40px;
    height: 40px;
    margin-left: -6px;
    border: 0;
    border-radius: var(--radius-sm);
    background: transparent;
    cursor: pointer;
}

.headStrip-burg .icon { width: 24px; height: 24px; }
.headStrip-burg:hover { background: var(--c-hover); }

.brandUrl--head { display: none; }
.brandUrl--head .brandUrl-mark { width: 32px; height: 32px; }
.brandUrl--head .brandUrl-brandname { height: 34px; max-width: 160px; }

.headStrip-search {
    display: flex;
    align-items: center;
    gap: 10px;
    width: min(340px, 40%);
    height: 40px;
    padding: 0 14px;
    border: 1px solid var(--c-line);
    border-radius: 999px;
    background: var(--c-surface);
    color: var(--c-muted);
    font-size: .9rem;
    text-decoration: none;
}

.headStrip-search:hover { border-color: var(--c-accent-line); color: var(--c-text); text-decoration: none; }
.headStrip-search span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.headStrip-deal {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    margin-left: auto;
    padding: 5px 14px 5px 5px;
    border: 1px solid var(--c-accent-line);
    border-radius: 999px;
    background: var(--c-accent-soft);
    color: var(--c-text);
    font-size: .875rem;
    text-decoration: none;
}

.headStrip-deal:hover { text-decoration: none; background: color-mix(in srgb, var(--c-accent) 22%, transparent); }

.headStrip-dealSign {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--c-accent);
    color: var(--c-accent-ink);
}

.headStrip-dealSign .icon { width: 17px; height: 17px; }
.headStrip-dealBlurb { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.headStrip-dealBlurb > span { color: var(--c-muted); }

.headStrip-buttons { display: none; align-items: center; gap: 8px; margin-left: auto; }
.headStrip-deal + .headStrip-buttons { margin-left: 0; }

/* ---------- Main & columns ---------- */
.appMain {
    flex: 1 0 auto;
    width: 100%;
    max-width: var(--page-max);
    margin-inline: auto;
    padding: 14px var(--pad) 8px;
    container: page / inline-size;
}

.crumbs { margin-bottom: 10px; color: var(--c-muted); font-size: .82rem; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--c-border); }
.crumbs a { color: var(--c-muted); }
.crumbs a:hover { color: var(--c-text); }

.pageCols-main { min-width: 0; container: content / inline-size; }

/* ---------- Sections ---------- */
.chunkPart { padding-block: clamp(14px, 1.8vw, 24px); }
.chunkPart--tight { padding-block: clamp(8px, 1.2vw, 14px); }

.areaHeading { display: grid; gap: 6px; margin-bottom: 16px; }
.areaHeading-name { font-size: clamp(1.35rem, 1.05rem + 1vw, 1.75rem); }
.areaHeading-top { max-width: 68ch; color: var(--c-muted); }

.railHeading {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px 20px;
    margin-bottom: 16px;
}

.railHeading .areaHeading { margin-bottom: 0; }

.railHeading-url {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 2px;
    font-size: .9rem;
    font-weight: 700;
    white-space: nowrap;
}

.railHeading-url .icon { width: 17px; height: 17px; }

.chunkFooter { display: flex; justify-content: flex-start; margin-top: 18px; }

/* ---------- Hero (лобби) ---------- */
.blk-hero { padding-block: 4px 14px; }

.intro-panel {
    position: relative;
    display: grid;
    grid-template-areas: "text";
    gap: 22px 32px;
    align-items: center;
    padding: clamp(20px, 3vw, 36px);
    border: 1px solid var(--c-line);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--c-accent) 12%, transparent) 0%, transparent 55%),
        radial-gradient(90% 120% at 100% 100%, color-mix(in srgb, var(--c-accent-2) 14%, transparent) 0%, transparent 60%),
        var(--c-surface);
    overflow: hidden;
}

.intro-blurb { grid-area: text; display: grid; gap: 14px; justify-items: start; min-width: 0; }

.intro-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px 5px 10px;
    border-radius: 999px;
    background: var(--c-chip);
    color: var(--c-muted);
    font-size: .8rem;
    font-weight: 600;
}

.intro-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--c-success);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--c-success) 22%, transparent);
}

/* Один размер H1 на всех страницах (и в compact) */
.intro-name {
    max-width: 22ch;
    font-size: clamp(1.9rem, 1.35rem + 1.9vw, 2.75rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -.02em;
}

.intro-subheading { max-width: 60ch; color: var(--c-muted); font-size: 1.04rem; }

.intro-rank { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: var(--c-muted); font-size: .9rem; }
.intro-rank strong { color: var(--c-text); }
.intro-buttons { display: flex; flex-wrap: wrap; gap: 10px; }

.intro-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-width: 100%;
    margin: 2px 0 0;
    padding: 0;
    list-style: none;
}

.intro-chips li {
    display: inline-flex;
    flex: none;
    align-items: center;
    gap: 7px;
    padding: 6px 12px 6px 9px;
    border: 1px solid var(--c-line);
    border-radius: 999px;
    background: color-mix(in srgb, var(--c-bg) 40%, transparent);
    color: var(--c-muted);
    font-size: .84rem;
    font-weight: 500;
    white-space: nowrap;
}

.intro-chips .icon { width: 16px; height: 16px; color: var(--c-accent); }

/* Купон бонуса */
.coupon {
    grid-area: coupon;
    display: grid;
    min-width: 0;
    border: 1px solid var(--c-accent-line);
    border-radius: var(--radius-lg);
    background: color-mix(in srgb, var(--c-bg) 72%, var(--c-surface));
    box-shadow: var(--shadow);
}

.coupon-main { display: grid; gap: 4px; justify-items: start; padding: 20px 22px 18px; }

.coupon-sign {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    margin-bottom: 8px;
    border-radius: 50%;
    background: var(--c-accent-soft);
    color: var(--c-accent);
}

.coupon-sign .icon { width: 22px; height: 22px; }

.coupon-name { color: var(--c-muted); font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }

.coupon-sum {
    font-family: var(--font-heading);
    font-size: clamp(1.45rem, 1.1rem + 1.1vw, 1.9rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.01em;
}

.coupon-smallprint { color: var(--c-muted); font-size: .84rem; }

.coupon-cta {
    display: grid;
    align-items: center;
    padding: 16px 22px 20px;
    border-top: 1.5px dashed var(--c-accent-line);
}

.blk-hero:not(.intro--plain):not(.intro--lobby) .intro-panel {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
    grid-template-areas: "text coupon";
}

/* Главная: текст + купон слева, мозаика игр справа */
.intro--lobby .intro-panel {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    grid-template-areas: "text mosaic" "coupon coupon";
}

.intro--lobby .coupon { grid-template-columns: minmax(0, 1fr) auto; }
.intro--lobby .coupon-main { grid-template-columns: auto minmax(0, 1fr); column-gap: 16px; align-items: center; }
.intro--lobby .coupon-sign { grid-row: span 3; margin: 0; width: 52px; height: 52px; }
.intro--lobby .coupon-cta { border-top: 0; border-left: 1.5px dashed var(--c-accent-line); padding: 20px 26px; }

/* Мозаика обложек: одна крупная 2×2 и четыре малых, все квадратные */
.mosaic {
    grid-area: mosaic;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    align-self: center;
}

.mosaic-square {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 1 / 1;
    border-radius: var(--radius);
    background:
        radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--c-accent) 30%, transparent), transparent 60%),
        linear-gradient(140deg, var(--c-surface-2), color-mix(in srgb, var(--c-accent-2) 30%, var(--c-surface-2)));
    color: var(--c-text);
    overflow: hidden;
    text-decoration: none;
    box-shadow: var(--shadow);
}

.mosaic-square:hover { text-decoration: none; }
.mosaic-square:first-child { grid-column: span 2; grid-row: span 2; }
.mosaic-square img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.mosaic-square:hover img { transform: scale(1.04); }
.mosaic-glyph .icon { width: 34px; height: 34px; opacity: .55; }
.mosaic-square:first-child .mosaic-glyph .icon { width: 64px; height: 64px; }
.mosaic-letter { position: absolute; right: 10px; bottom: 8px; font-family: var(--font-heading); font-weight: 800; opacity: .4; }

.mosaic-label {
    position: absolute;
    inset: auto 0 0;
    display: none;
    padding: 28px 14px 12px;
    background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--c-bg) 85%, transparent));
    font-family: var(--font-heading);
    font-weight: 700;
}

.mosaic-square:first-child .mosaic-label { display: block; }

/* 404 и подобные: всё по центру, без купона */
.intro--center .intro-panel { justify-items: center; padding-block: clamp(32px, 6vw, 72px); text-align: center; }
.intro--center .intro-blurb { justify-items: center; max-width: 720px; }
.intro--center .intro-name,
.intro--center .intro-subheading { margin-inline: auto; }
.intro--center .intro-buttons,
.intro--center .intro-chips,
.intro--center .intro-rank { justify-content: center; }

@container page (max-width: 900px) {
    .intro--lobby .intro-panel,
    .blk-hero:not(.intro--plain):not(.intro--lobby) .intro-panel {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas: "text" "coupon" "mosaic";
    }

    .intro--lobby .coupon,
    .intro--lobby .coupon-main { grid-template-columns: minmax(0, 1fr); }
    .intro--lobby .coupon-sign { grid-row: auto; margin-bottom: 8px; width: 42px; height: 42px; }
    .intro--lobby .coupon-cta { border-left: 0; border-top: 1.5px dashed var(--c-accent-line); padding: 16px 22px 20px; }

    /* Мозаика — лента обложек */
    .mosaic {
        display: flex;
        gap: 10px;
        margin-inline: calc(clamp(20px, 3vw, 36px) * -1);
        padding-inline: clamp(20px, 3vw, 36px);
        overflow-x: auto;
        scrollbar-width: none;
    }

    .mosaic::-webkit-scrollbar { display: none; }
    .mosaic-square, .mosaic-square:first-child { flex: none; width: 104px; }
    .mosaic-square:first-child .mosaic-label { display: none; }
    .mosaic-square:first-child .mosaic-glyph .icon { width: 34px; height: 34px; }
}

@container page (max-width: 560px) {
    /* Бейджи — одной строкой с горизонтальной прокруткой */
    .intro-chips {
        flex-wrap: nowrap;
        width: calc(100% + 2 * clamp(20px, 3vw, 36px));
        max-width: none;
        margin-inline: calc(clamp(20px, 3vw, 36px) * -1);
        padding-inline: clamp(20px, 3vw, 36px);
        overflow-x: auto;
        scrollbar-width: none;
    }

    .intro-chips::-webkit-scrollbar { display: none; }
    .intro--center .intro-chips { justify-content: flex-start; }
    .intro-buttons { width: 100%; }
    .intro-buttons .btn { flex: 1 1 auto; }
}

/* ---------- Article (rich-text) ---------- */
.article-name { font-size: clamp(1.35rem, 1.05rem + 1vw, 1.75rem); }
.article-name + .article-body { margin-top: 12px; }

.prose, .rt_html { color: var(--c-text); font-size: 1.02rem; line-height: 1.7; }
.rt_html > * + * { margin-top: 1em; }
.rt_html > :first-child { margin-top: 0; }
.prose > * + * { margin-top: .9em; }
.prose > :first-child { margin-top: 0; }
.rt_html h3, .prose h3 { margin-top: 1.5em; font-size: 1.18rem; }
.rt_html h2, .prose h2 { margin-top: 1.6em; font-size: 1.4rem; }
.rt_html ul, .rt_html ol, .prose ul, .prose ol { padding-left: 1.3em; }
.rt_html li + li, .prose li + li { margin-top: .4em; }
.rt_html ul li::marker, .prose ul li::marker { color: var(--c-accent); }
.rt_html a, .prose a { text-decoration: underline; text-decoration-color: var(--c-accent-line); text-underline-offset: 3px; }
.rt_html strong, .prose strong { color: var(--c-text); }
.rt_html blockquote { margin-inline: 0; padding: 12px 18px; border-left: 3px solid var(--c-accent); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; background: var(--c-surface); color: var(--c-muted); }
.rt_html table { display: block; width: 100%; max-width: 100%; overflow-x: auto; border-collapse: collapse; font-size: .94rem; }
.rt_html th, .rt_html td { padding: .65rem .85rem; border-bottom: 1px solid var(--c-line); text-align: left; }
.rt_html th { background: var(--c-surface); }

/* Иллюстрация раздела — по центру, целиком (без обрезки) */
.rt_figure { max-width: 820px; margin: 1.5em auto; }
.rt_html > .rt_figure { margin-top: 1.5em; margin-bottom: 1.5em; }
.rt_html > .rt_figure:first-child { margin-top: .2em; }
.rt_figure img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid var(--c-line);
    border-radius: var(--radius-lg);
    background: var(--c-surface);
}

/* ---------- TOC ---------- */
.outlineFrame {
    border: 1px solid var(--c-line);
    border-radius: var(--radius-lg);
    background: var(--c-surface);
}

.outlineFrame-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 16px;
    list-style: none;
    cursor: pointer;
}

.outlineFrame-heading::-webkit-details-marker { display: none; }

.outlineFrame-sign {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    background: var(--c-accent-soft);
    color: var(--c-accent);
}

.outlineFrame-sign .icon { width: 18px; height: 18px; }
.outlineFrame-name { flex: 1; font-family: var(--font-heading); font-weight: 700; }
.outlineFrame-count { padding: 2px 9px; border-radius: 999px; background: var(--c-chip); color: var(--c-muted); font-size: .78rem; font-weight: 700; }
.outlineFrame-chev { display: grid; color: var(--c-muted); transition: transform .2s var(--ease); }
.outlineFrame[open] .outlineFrame-chev { transform: rotate(180deg); }

.outlineFrame-navLinks { padding: 0 10px 12px; }

.outlineFrame-list {
    display: grid;
    gap: 2px;
    margin: 0;
    padding: 10px 0 0;
    border-top: 1px solid var(--c-line);
    counter-reset: toc;
    list-style: none;
}

.outlineFrame-list a {
    position: relative;
    display: flex;
    gap: 10px;
    padding: 7px 10px;
    border-radius: var(--radius-sm);
    color: var(--c-muted);
    font-size: .92rem;
    line-height: 1.4;
    counter-increment: toc;
}

.outlineFrame-list a::before { content: counter(toc, decimal-leading-zero); min-width: 2ch; color: var(--c-border); font-weight: 700; font-variant-numeric: tabular-nums; }
.outlineFrame-list a:hover { background: var(--c-hover); color: var(--c-text); text-decoration: none; }
.outlineFrame-list a.stChosen { background: var(--c-accent-soft); color: var(--c-text); }
.outlineFrame-list a.stChosen::before { color: var(--c-accent); }

@container content (min-width: 700px) {
    .outlineFrame-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 8px; }
}

/* ---------- Quick info ---------- */
.factGrid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    margin: 0;
    border: 1px solid var(--c-line);
    border-radius: var(--radius-lg);
    background: var(--c-surface);
    overflow: hidden;
}

.factGrid-cell {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 11px 16px;
    border-bottom: 1px solid var(--c-line);
}

.factGrid-cell:last-child { border-bottom: 0; }
.factGrid dt { color: var(--c-muted); font-size: .88rem; }
.factGrid dd { margin: 0; font-weight: 700; text-align: right; }

@container (min-width: 520px) {
    .factGrid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        border: 0;
        background: transparent;
    }

    .factGrid-cell {
        flex-direction: column;
        gap: 4px;
        padding: 14px 16px;
        border: 1px solid var(--c-line);
        border-radius: var(--radius);
        background: var(--c-surface);
    }

    .factGrid-cell:last-child { border-bottom: 1px solid var(--c-line); }
    .factGrid dt { font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
    .factGrid dd { font-family: var(--font-heading); font-size: 1.08rem; text-align: left; }
}

@container (min-width: 760px) {
    .factGrid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- Games grid ---------- */
.entryGrid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

@container (min-width: 480px) { .entryGrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@container (min-width: 660px) { .entryGrid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@container (min-width: 980px) { .entryGrid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

.entrySquare { display: flex; flex-direction: column; min-width: 0; color: var(--c-text); text-decoration: none; }
.entrySquare:hover { text-decoration: none; }

.entrySquare-cover {
    --play: clamp(50px, 36%, 76px);
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 1 / 1;
    border-radius: var(--radius);
    background: var(--c-surface-2);
    overflow: hidden;
}

.entrySquare-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.entrySquare-cover--blank {
    background:
        radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--c-accent) 26%, transparent), transparent 60%),
        linear-gradient(150deg, var(--c-surface-2), color-mix(in srgb, var(--c-accent-2) 28%, var(--c-surface-2)));
}

.entrySquare-glyph .icon { width: 38%; height: auto; min-width: 34px; opacity: .55; }
.entrySquare-glyph { display: grid; place-items: center; width: 100%; }
.entrySquare-letter { position: absolute; right: 10px; bottom: 8px; font-family: var(--font-heading); font-weight: 800; opacity: .4; }

.entrySquare-chip {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
    padding: 3px 8px;
    border-radius: 999px;
    background: var(--c-accent);
    color: var(--c-accent-ink);
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

/* Наведение: затемнение и крупная круглая кнопка ровно по центру обложки */
.entrySquare-hover {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: color-mix(in srgb, var(--c-bg) 62%, transparent);
    opacity: 0;
    transition: opacity .2s var(--ease);
}

.entrySquare-start {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    place-items: center;
    width: var(--play);
    height: var(--play);
    border-radius: 50%;
    background: var(--c-accent);
    color: var(--c-accent-ink);
    transform: translate(-50%, -50%) scale(.82);
    transition: transform .25s var(--ease);
}

.entrySquare-start .icon { width: 46%; height: 46%; }

.entrySquare-name {
    position: absolute;
    top: calc(50% + var(--play) / 2 + 8px);
    left: 0;
    right: 0;
    color: var(--c-text);
    font-size: .82rem;
    font-weight: 700;
    text-align: center;
}

.entrySquare:hover .entrySquare-hover,
.entrySquare:focus-visible .entrySquare-hover { opacity: 1; }

.entrySquare:hover .entrySquare-start,
.entrySquare:focus-visible .entrySquare-start { transform: translate(-50%, -50%) scale(1); }

.entrySquare-label {
    margin-top: 8px;
    overflow: hidden;
    font-size: .92rem;
    font-weight: 600;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.entrySquare-developer { overflow: hidden; color: var(--c-muted); font-size: .8rem; text-overflow: ellipsis; white-space: nowrap; }

@media (hover: none) {
    .entrySquare-hover { display: none; }
}

/* ---------- Providers ---------- */
.railHeading-arrows { display: flex; gap: 8px; }

.railArrow {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--c-line);
    border-radius: 50%;
    background: var(--c-surface);
    cursor: pointer;
}

.railArrow:hover { border-color: var(--c-accent-line); }
.railArrow[disabled] { opacity: .35; cursor: default; }
.railArrow--prev .icon { transform: rotate(90deg); }
.railArrow--next .icon { transform: rotate(-90deg); }

.developerRibbon {
    display: flex;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
}

.developerRibbon::-webkit-scrollbar { display: none; }

.developerPill {
    display: flex;
    flex: none;
    align-items: center;
    gap: 10px;
    padding: 7px 16px 7px 7px;
    border: 1px solid var(--c-line);
    border-radius: 999px;
    background: var(--c-surface);
    scroll-snap-align: start;
}

.developerPill-logotype,
.developerPill-letter {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
}

/* Логотипы библиотеки рассчитаны на тёмный фон — подложка тёмная и в светлой теме */
.developerPill-logotype { padding: 5px; background: var(--c-logo-plate); object-fit: contain; }
.developerPill-letter { background: var(--c-accent2-soft); color: var(--c-text); font-size: .78rem; font-weight: 800; }
.developerPill-label { font-size: .9rem; font-weight: 600; white-space: nowrap; }

@media (hover: none), (max-width: 767px) {
    .railHeading-arrows { display: none; }
}

/* ---------- Bonus cards ---------- */
.dealGrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 14px; }

.dealItem {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px;
    border: 1px solid var(--c-line);
    border-radius: var(--radius-lg);
    background: var(--c-surface);
    overflow: hidden;
}

.dealItem--best {
    border-color: var(--c-accent-line);
    background: linear-gradient(180deg, var(--c-accent-soft), transparent 55%), var(--c-surface);
}

.dealItem--best::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: var(--c-accent);
}

.dealItem-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 4px; }

.dealItem-sign {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: var(--c-accent2-soft);
    color: var(--c-text);
}

.dealItem--best .dealItem-sign { background: var(--c-accent); color: var(--c-accent-ink); }
.dealItem-amount { font-family: var(--font-heading); font-size: 1.45rem; font-weight: 800; line-height: 1.15; letter-spacing: -.01em; }
.dealItem-name { color: var(--c-muted); font-family: var(--font-body); font-size: .95rem; font-weight: 600; }
.dealItem-blurb { color: var(--c-muted); font-size: .93rem; }
.dealItem-footer { display: grid; gap: 8px; margin-top: auto; padding-top: 10px; }
.dealItem-terms { color: var(--c-muted); font-size: .75rem; line-height: 1.45; }

/* ---------- Steps ---------- */
.stepper {
    position: relative;
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.stepper-cell { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; padding-bottom: 18px; }
.stepper-cell:last-child { padding-bottom: 0; }

/* Линия между шагами (вертикальная на узкой колонке) */
.stepper-cell:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 48px;
    bottom: 4px;
    left: 21px;
    width: 2px;
    border-radius: 2px;
    background: var(--c-line);
}

.stepper-number {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1.5px solid var(--c-accent-line);
    border-radius: 50%;
    background: var(--c-surface);
    color: var(--c-accent);
    font-family: var(--font-heading);
    font-weight: 800;
}

.stepper-cell:first-child .stepper-number { background: var(--c-accent); color: var(--c-accent-ink); border-color: var(--c-accent); }
.stepper-body { padding-top: 9px; }
.stepper-name { font-size: 1.04rem; }
.stepper-blurb { margin-top: 4px; color: var(--c-muted); font-size: .93rem; }

@container (min-width: 640px) {
    .stepper { grid-auto-columns: minmax(0, 1fr); grid-auto-flow: column; gap: 16px; }
    .stepper-cell { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 0; }
    .stepper-cell:not(:last-child)::after { top: 21px; bottom: auto; left: 56px; right: -8px; width: auto; height: 2px; }
    .stepper-body { padding-top: 0; }
}

/* ---------- Payments ---------- */
.payChart {
    border: 1px solid var(--c-line);
    border-radius: var(--radius-lg);
    background: var(--c-surface);
    overflow: hidden;
}

.payChart table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.payChart th, .payChart td { padding: 12px 16px; border-bottom: 1px solid var(--c-line); text-align: left; vertical-align: middle; }
.payChart thead th { background: var(--c-surface-2); color: var(--c-muted); font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.payChart tbody tr:last-child th, .payChart tbody tr:last-child td { border-bottom: 0; }
.payChart tbody tr:hover { background: var(--c-hover); }
.payChart td { color: var(--c-text); font-weight: 600; }

.payWay { display: flex; align-items: center; gap: 12px; }
.payWay > span:last-child { display: grid; }

.payWay-sign {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: var(--c-accent2-soft);
    color: var(--c-text);
}

.payWay-label { font-weight: 700; }
.payWay-type { color: var(--c-muted); font-size: .8rem; font-weight: 400; }

@container (max-width: 579px) {
    .payChart { border: 0; background: transparent; }
    .payChart thead { display: none; }
    .payChart table, .payChart tbody { display: grid; gap: 10px; }
    .payChart tr { display: grid; padding: 4px 14px; border: 1px solid var(--c-line); border-radius: var(--radius); background: var(--c-surface); }
    .payChart th, .payChart td { padding: 9px 0; }
    .payChart tbody tr th { border-bottom: 1px solid var(--c-line); }
    .payChart td { display: flex; justify-content: space-between; gap: 12px; border-bottom: 0; }
    .payChart td::before { content: attr(data-label); color: var(--c-muted); font-weight: 400; }
    .payChart tbody tr:last-child th { border-bottom: 1px solid var(--c-line); }
}

/* ---------- Pros & cons ---------- */
.verdict {
    display: grid;
    border: 1px solid var(--c-line);
    border-radius: var(--radius-lg);
    background: var(--c-surface);
    overflow: hidden;
}

.verdict-column { padding: 20px 22px; }
.verdict-column + .verdict-column { border-top: 1px solid var(--c-line); }
.verdict-name { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 1.05rem; }

.verdict-sticker { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; }
.verdict-sticker .icon { width: 17px; height: 17px; }
.verdict-column--good .verdict-sticker { background: color-mix(in srgb, var(--c-success) 18%, transparent); color: var(--c-success); }
.verdict-column--cons .verdict-sticker { background: color-mix(in srgb, var(--c-danger) 18%, transparent); color: var(--c-danger); }

.verdict-list { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.verdict-list li { display: flex; gap: 10px; color: var(--c-muted); }
.verdict-list li .icon { width: 18px; height: 18px; margin-top: 3px; }
.verdict-column--good li .icon { color: var(--c-success); }
.verdict-column--cons li .icon { color: var(--c-danger); }

@container (min-width: 600px) {
    .verdict { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); }
    .verdict-column + .verdict-column { border-top: 0; border-left: 1px solid var(--c-line); }
}

/* ---------- Reviews ---------- */
.markChip {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px 8px 8px;
    border: 1px solid var(--c-line);
    border-radius: 999px;
    background: var(--c-surface);
}

.markChip-sum {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--c-accent);
    color: var(--c-accent-ink);
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 800;
}

.markChip-details { display: grid; gap: 2px; }
.markChip-count { color: var(--c-muted); font-size: .8rem; }

.assessmentGrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 14px; }

.assessmentItem {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0;
    padding: 18px;
    border: 1px solid var(--c-line);
    border-radius: var(--radius-lg);
    background: var(--c-surface);
}

.assessmentItem-author { display: flex; align-items: center; gap: 10px; }
.assessmentItem-author { flex-wrap: wrap; }
.assessmentItem-author .stars { order: -1; flex-basis: 100%; margin-bottom: 4px; }

.assessmentItem-portrait {
    display: grid;
    flex: none;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--c-accent2-soft);
    font-size: .8rem;
    font-weight: 800;
}

.assessmentItem-who { display: grid; min-width: 0; line-height: 1.3; }
.assessmentItem-who strong { font-size: .93rem; }
.assessmentItem-who small { color: var(--c-muted); font-size: .78rem; }
.assessmentItem-blurb { margin: 0; color: var(--c-muted); font-size: .95rem; }

/* ---------- CTA banner ---------- */
.calloutRibbon {
    display: flex;
    align-items: center;
    gap: 18px 22px;
    padding: 20px 22px;
    border: 1px solid var(--c-accent-line);
    border-radius: var(--radius-lg);
    background:
        linear-gradient(100deg, var(--c-accent-soft), transparent 70%),
        var(--c-surface);
}

.calloutRibbon-sign {
    display: grid;
    flex: none;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: var(--c-accent);
    color: var(--c-accent-ink);
}

.calloutRibbon-sign .icon { width: 26px; height: 26px; }
.calloutRibbon-body { flex: 1; display: grid; gap: 4px; min-width: 0; }
.calloutRibbon-name { font-size: clamp(1.15rem, 1rem + .6vw, 1.4rem); }
.calloutRibbon-blurb { color: var(--c-muted); }
.calloutRibbon-cta { display: grid; flex: none; gap: 6px; justify-items: center; }
.calloutRibbon-smallprint { color: var(--c-muted); font-size: .75rem; }

@container (max-width: 620px) {
    .calloutRibbon { flex-direction: column; align-items: flex-start; }
    .calloutRibbon-cta { width: 100%; justify-items: stretch; }
}

/* ---------- App ---------- */
.mobilePanel {
    display: grid;
    gap: 24px;
    padding: clamp(20px, 3vw, 32px);
    border: 1px solid var(--c-line);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(80% 100% at 100% 0%, var(--c-accent2-soft), transparent 70%),
        var(--c-surface);
    overflow: hidden;
}

.mobilePanel-body { display: grid; gap: 14px; justify-items: start; }
.mobilePanel-name { font-size: clamp(1.35rem, 1.05rem + 1vw, 1.75rem); }
.mobilePanel-blurb { color: var(--c-muted); }
.mobilePanel-stores { display: flex; flex-wrap: wrap; gap: 10px; }
.mobilePanel-smallprint { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--c-muted); font-size: .88rem; }
.mobilePanel-image { display: none; }

.tickList { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.tickList li { display: flex; gap: 10px; }
.tickList .icon { width: 18px; height: 18px; margin-top: 3px; color: var(--c-success); }

.shopGo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 9px 16px 9px 12px;
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    background: var(--c-bg);
    color: var(--c-text);
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
}

.shopGo:hover { border-color: var(--c-accent-line); text-decoration: none; }
.shopGo .icon { width: 24px; height: 24px; }
.shopGo small { display: block; color: var(--c-muted); font-size: .7rem; font-weight: 500; }

.handset {
    width: 190px;
    padding: 9px;
    border: 1px solid var(--c-border);
    border-radius: 34px;
    background: var(--c-bg);
    box-shadow: var(--shadow-pop);
}

.handset-screen { display: grid; gap: 10px; padding: 14px 12px; border-radius: 26px; background: var(--c-surface-2); }
.handset-strip { display: flex; align-items: center; gap: 8px; font-size: .75rem; font-weight: 700; }
.handset-logotype { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; background: var(--c-accent); color: var(--c-accent-ink); }
.handset-logotype .icon { width: 15px; height: 15px; }
.handset-brand { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.handset-deal { display: grid; padding: 12px; border-radius: 14px; background: linear-gradient(135deg, var(--c-accent-soft), var(--c-accent2-soft)); font-size: .68rem; }
.handset-deal strong { font-family: var(--font-heading); font-size: 1.3rem; }
.handset-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.handset-tiles i { aspect-ratio: 1; border-radius: 9px; background: color-mix(in srgb, var(--c-text) 10%, transparent); }
.handset-tiles i:nth-child(3n + 1) { background: var(--c-accent-soft); }
.handset-navLinks { display: flex; justify-content: space-around; padding-top: 6px; border-top: 1px solid var(--c-line); }
.handset-navLinks i { width: 16px; height: 16px; border-radius: 5px; background: color-mix(in srgb, var(--c-text) 14%, transparent); }
.handset-navLinks i:first-child { background: var(--c-accent); }

@container (min-width: 640px) {
    .mobilePanel { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
    .mobilePanel-image { display: block; padding-right: 8px; }
}

/* ---------- FAQ ---------- */
.answersList {
    padding-inline: 18px;
    border: 1px solid var(--c-line);
    border-radius: var(--radius-lg);
    background: var(--c-surface);
}

.answersCell + .answersCell { border-top: 1px solid var(--c-line); }

.answersCell-question {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 15px 0;
    list-style: none;
    cursor: pointer;
}

.answersCell-question::-webkit-details-marker { display: none; }
.answersCell-number { min-width: 2ch; color: var(--c-accent); font-family: var(--font-heading); font-size: .82rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.answersCell-question h3 { flex: 1; margin: 0; font-size: 1.02rem; font-weight: 600; line-height: 1.4; }
.answersCell-question:hover h3 { color: var(--c-accent); }

.answersCell-sign {
    display: grid;
    flex: none;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--c-chip);
    transition: transform .25s var(--ease), background-color .2s var(--ease), color .2s var(--ease);
}

.answersCell-sign .icon { width: 17px; height: 17px; }
.answersCell[open] .answersCell-sign { transform: rotate(180deg); background: var(--c-accent); color: var(--c-accent-ink); }

/* Обёртка без отступов — её высоту анимирует main.js; отступы — у вложенного ответа */
.answersCell-body { overflow: hidden; }
.answersCell-reply { padding: 0 44px 18px calc(2ch + 14px); color: var(--c-muted); font-size: .98rem; }

/* ---------- Author ---------- */
.authorItem {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 16px 18px;
    padding: 20px;
    border: 1px solid var(--c-line);
    border-radius: var(--radius-lg);
    background: var(--c-surface);
}

.authorItem-portrait {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--c-accent), var(--c-accent-2));
    color: var(--c-accent-ink);
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 800;
    overflow: hidden;
}

.authorItem-portrait img { width: 100%; height: 100%; object-fit: cover; }
.authorItem-body { display: grid; gap: 3px; align-content: start; }
.authorItem-name { color: var(--c-muted); font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.authorItem-label { font-family: var(--font-heading); font-size: 1.15rem; font-weight: 700; }
.authorItem-label a { color: var(--c-text); text-decoration: underline; text-decoration-color: var(--c-accent-line); text-underline-offset: 4px; }
.authorItem-label a:hover { color: var(--c-accent); }
.authorItem-role { color: var(--c-accent); font-size: .88rem; font-weight: 600; }
.authorItem-bio { margin-top: 6px; color: var(--c-muted); font-size: .94rem; }

.authorItem-details {
    display: flex;
    flex-wrap: wrap;
    grid-column: 1 / -1;
    gap: 8px;
    margin: 0;
    padding: 14px 0 0;
    border-top: 1px solid var(--c-line);
    list-style: none;
}

.authorItem-details li { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 999px; background: var(--c-chip); color: var(--c-muted); font-size: .82rem; }
.authorItem-details .icon { width: 16px; height: 16px; color: var(--c-accent); }

@container (min-width: 720px) {
    .authorItem { grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; }
    .authorItem-portrait { width: 76px; height: 76px; }
    .authorItem-details { flex-direction: column; grid-column: auto; padding: 0 0 0 18px; border-top: 0; border-left: 1px solid var(--c-line); }
}

/* ---------- Sidebar ---------- */
.pageAside {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 10px;
    padding-bottom: 8px;
    container: aside / inline-size;
}

.pageAside-flow, .pageAside-float { display: grid; gap: 16px; align-content: start; min-width: 0; }
.pageAside-slot:empty { display: none; }

.asideItem {
    padding: 16px;
    border: 1px solid var(--c-line);
    border-radius: var(--radius-lg);
    background: var(--c-surface);
}

.asideItem-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.asideItem-name { display: flex; align-items: center; gap: 8px; font-family: var(--font-heading); font-weight: 700; }
.asideItem-name .icon { width: 18px; height: 18px; color: var(--c-accent); }
.asideItem-further { color: var(--c-muted); font-size: .8rem; font-weight: 600; }
.asideItem-further:hover { color: var(--c-accent); }

.asideLibrary-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 10px; margin: 0; padding: 0; list-style: none; }
.asideEntry { display: grid; min-width: 0; color: var(--c-text); text-decoration: none; }
.asideEntry:hover { text-decoration: none; }

.asideEntry-image {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 1 / 1;
    border-radius: var(--radius);
    background: linear-gradient(150deg, var(--c-surface-2), color-mix(in srgb, var(--c-accent-2) 28%, var(--c-surface-2)));
    overflow: hidden;
}

.asideEntry-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.asideEntry-glyph .icon { width: 30px; height: 30px; opacity: .55; }

.asideEntry-start {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: color-mix(in srgb, var(--c-bg) 60%, transparent);
    opacity: 0;
    transition: opacity .2s var(--ease);
}

.asideEntry-start .icon { width: 44px; height: 44px; padding: 12px; border-radius: 50%; background: var(--c-accent); color: var(--c-accent-ink); }
.asideEntry:hover .asideEntry-start { opacity: 1; }
.asideEntry-label { margin-top: 6px; overflow: hidden; font-size: .84rem; font-weight: 600; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.asideEntry-developer { overflow: hidden; color: var(--c-muted); font-size: .74rem; text-overflow: ellipsis; white-space: nowrap; }

.asideExtra {
    display: grid;
    gap: 6px;
    border-color: var(--c-accent-line);
    background:
        radial-gradient(120% 90% at 100% 0%, var(--c-accent-soft), transparent 70%),
        var(--c-surface);
}

.asideExtra-name { display: flex; align-items: center; gap: 8px; color: var(--c-muted); font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.asideExtra-name .icon { width: 18px; height: 18px; color: var(--c-accent); }
.asideExtra-sum { font-family: var(--font-heading); font-size: 1.35rem; font-weight: 800; line-height: 1.2; }
.asideExtra-smallprint { color: var(--c-muted); font-size: .82rem; }
.asideExtra .btn { margin-top: 8px; }

/* Блоки страницы, перенесённые в сайдбар (toc, quick-info) */
.pageAside .chunkPart { padding: 0; }
.pageAside .areaHeading { gap: 2px; margin-bottom: 10px; }
.pageAside .areaHeading .eyebrow, .pageAside .areaHeading-top { display: none; }
.pageAside .areaHeading-name { font-size: 1rem; }
.pageAside .blk-quick-info { padding: 16px; border: 1px solid var(--c-line); border-radius: var(--radius-lg); background: var(--c-surface); }
.pageAside .factGrid { border: 0; border-radius: 0; background: transparent; }
.pageAside .factGrid-cell { padding: 8px 0; }
.pageAside .factGrid dt { font-size: .84rem; }
.pageAside .factGrid dd { font-size: .9rem; }
.pageAside .outlineFrame-heading { padding: 12px 14px; }
.pageAside .outlineFrame-navLinks { max-height: calc(100vh - var(--top-h) - 330px); padding-inline: 8px; overflow-y: auto; scrollbar-width: thin; }
.pageAside .outlineFrame-list a { padding: 6px 8px; font-size: .86rem; }

@container page (min-width: 700px) {
    .pageAside { flex-direction: row; align-items: flex-start; }
    .pageAside-flow, .pageAside-float { flex: 1 1 0; }
    .pageAside .asideLibrary-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Узкие экраны: игры в сайдбаре не дублируют сетку игр самой страницы */
.pageAside--ownLibrary .pageAside-flow:not(:has(.pageAside-slot:not(:empty))) { display: none; }

@media (min-width: 1280px) {
    .pageCols {
        display: grid;
        grid-template-columns: minmax(0, 1fr) var(--aside-w);
        gap: 28px;
        align-items: stretch;
    }

    .pageAside { flex-direction: column; align-items: stretch; margin-top: 0; padding-block: clamp(14px, 1.8vw, 24px); }
    .pageAside-flow, .pageAside-float { flex: none; }
    .pageAside--ownLibrary .pageAside-flow { display: grid; }
    .pageAside .asideLibrary-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pageAside-float { position: sticky; top: calc(var(--top-h) + 16px); }
}

/* ---------- Footer ---------- */
.appBase {
    margin-top: 24px;
    padding: 30px var(--pad) 22px;
    border-top: 1px solid var(--c-line);
    background: var(--c-surface);
}

.appBase > * { max-width: calc(var(--page-max) - 2 * var(--pad)); margin-inline: auto; }

.appBase-head {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 28px 40px;
    padding-bottom: 24px;
}

/* Текст обтекает логотип: начинается рядом с ним и продолжается ниже */
.appBase-brand::after { content: ""; display: block; clear: both; }
.appBase-brand .brandUrl { float: left; margin: 2px 16px 8px 0; }
.appBase-brand .brandUrl-mark { width: 40px; height: 40px; }
.appBase-brand .brandUrl-brandname { height: 40px; }
.appBase-blurb { color: var(--c-muted); font-size: .92rem; line-height: 1.7; }

.appBase-name { margin-bottom: 12px; color: var(--c-text); font-family: var(--font-body); font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; line-height: 1.15; }
.appBase-column ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.appBase-column a { color: var(--c-muted); font-size: .93rem; }
.appBase-column a:hover { color: var(--c-text); }

.appBase-deposits {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    margin-inline: auto;
    padding: 20px 0;
    border-top: 1px solid var(--c-line);
    list-style: none;
}

/* Одинаковые светлые плитки, логотипы — в фирменных цветах (как на кассе) */
.appBase-deposits li {
    display: grid;
    flex: none;
    place-items: center;
    width: 74px;
    height: 44px;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    background: #fff;
}

.appBase-deposits img { width: auto; height: auto; max-width: 100%; max-height: 28px; object-fit: contain; }

.appBase-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding-top: 18px;
    border-top: 1px solid var(--c-line);
}

.appBase-chips { display: flex; align-items: center; gap: 14px; }
.rgUrl { display: inline-flex; align-items: center; gap: 8px; color: var(--c-muted); font-size: .88rem; font-weight: 600; }
.rgUrl .icon { width: 18px; height: 18px; color: var(--c-success); }
.rgUrl:hover { color: var(--c-text); }
.appBase-desc { color: var(--c-muted); font-size: .82rem; }

/* ---------- Responsive: планшет — полоса иконок ---------- */
@media (max-width: 1279px) {
    .headStrip-buttons { display: flex; }
}

@media (min-width: 768px) and (max-width: 1279px) {
    .mobileShell { grid-template-columns: var(--rail-w) minmax(0, 1fr); }

    .sideNavLinks { align-items: center; padding: 12px 10px; overflow: visible; }
    .sideNavLinks-head { justify-content: center; padding: 0; }
    .sideNavLinks .brandUrl-blurb { display: none; }
    .sideNavLinks .brandUrl--brandname .brandUrl-brandname { display: none; }
    .sideNavLinks .brandUrl--brandname .brandUrl-mark { display: block; }
    /* Вордмарк без отдельного знака — уменьшенная картинка */
    .sideNavLinks .brandUrl--brandname .brandUrl-brandname:only-child { display: block; height: auto; max-width: 52px; }
    .sideNavLinks-navLinks { width: 100%; }
    .sideNavLinks-url { justify-content: center; padding: 6px; }

    .sideNavLinks-name {
        position: absolute;
        top: 50%;
        left: calc(100% + 12px);
        z-index: 50;
        padding: 6px 10px;
        border: 1px solid var(--c-line);
        border-radius: var(--radius-sm);
        background: var(--c-surface-2);
        box-shadow: var(--shadow-pop);
        color: var(--c-text);
        font-size: .84rem;
        opacity: 0;
        pointer-events: none;
        transform: translate(-4px, -50%);
        transition: opacity .15s var(--ease), transform .15s var(--ease);
    }

    .sideNavLinks-url:hover .sideNavLinks-name,
    .sideNavLinks-url:focus-visible .sideNavLinks-name { opacity: 1; transform: translate(0, -50%); }
    .sideNavLinks-sign { width: 40px; height: 40px; }
    .sideNavLinks-footer { width: 100%; }
    .sideNavLinks-buttons { display: none; }
    .sideNavLinks-smallprint { justify-content: center; padding: 0; }
    .sideNavLinks-smallprint > span:last-child { display: none; }
}

@media (max-width: 1023px) {
    .headStrip-deal { display: none; }
    .headStrip-search { width: min(320px, 50%); }
}

/* ---------- Responsive: телефон — меню выезжает по бургеру ---------- */
@media (max-width: 767px) {
    :root { --top-h: 56px; }

    .mobileShell { display: block; }

    .sideNavLinks {
        position: fixed;
        inset: 0 auto 0 0;
        z-index: 60;
        width: min(300px, 86vw);
        border-right: 1px solid var(--c-border);
        box-shadow: var(--shadow-pop);
        transform: translateX(-104%);
        visibility: hidden;
        transition: transform .28s var(--ease), visibility 0s linear .28s;
    }

    body.navLinksOpen .sideNavLinks { transform: none; visibility: visible; transition: transform .28s var(--ease); }
    .sideNavLinks-x { display: grid; }
    .sideNavLinks .brandUrl-brandname { height: 34px; }

    .sideNavLinksBackdrop {
        position: fixed;
        inset: 0;
        z-index: 55;
        display: block;
        background: var(--c-overlay);
        opacity: 0;
        pointer-events: none;
        transition: opacity .25s var(--ease);
    }

    body.navLinksOpen .sideNavLinksBackdrop { opacity: 1; pointer-events: auto; }

    .headStrip { gap: 10px; }
    .headStrip-burg { display: grid; }
    .brandUrl--head { display: inline-flex; }
    .headStrip-search { display: none; }
    .headStrip-login { display: none; }

    .appBase-head { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .appBase-brand { grid-column: 1 / -1; }

    /* Платёжки — одной строкой с прокруткой */
    .appBase-deposits {
        flex-wrap: nowrap;
        margin-inline: calc(var(--pad) * -1);
        padding-inline: var(--pad);
        overflow-x: auto;
        scrollbar-width: none;
    }

    .appBase-deposits::-webkit-scrollbar { display: none; }
    .appBase-foot { flex-direction: column; align-items: flex-start; }
    .answersList { padding-inline: 14px; }
    .answersCell-reply { padding-right: 0; }
}

@media (max-width: 400px) {
    .brandUrl--head .brandUrl-blurb { max-width: 130px; }
    .headStrip-buttons .btn { --btn-pad: .5rem .7rem; }
}

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