/*
 * 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.c_nav-links-active { 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; }

.c_skip-hyper {
    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%);
}

.c_skip-hyper: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; }

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

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

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

.c_trigger--sm { --btn-pad: .5rem .85rem; font-size: .875rem; }
.c_trigger--lg { --btn-pad: .85rem 1.35rem; font-size: 1rem; }
.c_trigger--block { 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;
}

.c_adult-sign {
    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;
}

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

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

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

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

/* ---------- Side navigation ---------- */
.c_side-nav-links {
    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;
}

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

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

.c_identity-hyper:hover { text-decoration: none; }
.c_identity-hyper-sign { width: 36px; height: 36px; border-radius: var(--radius-sm); object-fit: contain; }
.c_identity-hyper-text {
    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;
}

.c_identity-hyper-wordmark { display: block; width: auto; height: 40px; max-width: 196px; object-fit: contain; object-position: left center; }
.c_side-nav-links .c_identity-hyper--wordmark .c_identity-hyper-sign { display: none; }

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

.c_side-nav-links-ul { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }

.c_side-nav-links-hyper {
    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);
}

.c_side-nav-links-hyper:hover { background: var(--c-hover); color: var(--c-text); text-decoration: none; }

.c_side-nav-links-pict {
    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);
}

.c_side-nav-links-pict .icon { width: 19px; height: 19px; }
.c_side-nav-links-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.c_side-nav-links-hyper.c_state-now { background: var(--c-accent-soft); color: var(--c-text); }
.c_side-nav-links-hyper.c_state-now .c_side-nav-links-pict { background: var(--c-accent); color: var(--c-accent-ink); }

.c_side-nav-links-end { display: grid; gap: 14px; margin-top: auto; }
.c_side-nav-links-actions { display: grid; gap: 8px; }

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

.c_side-nav-links-back { display: none; }

/* ---------- Top bar ---------- */
.c_head-line {
    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);
}

.c_head-line.c_state-scrolled { box-shadow: var(--shadow); }

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

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

.c_identity-hyper--head { display: none; }
.c_identity-hyper--head .c_identity-hyper-sign { width: 32px; height: 32px; }
.c_identity-hyper--head .c_identity-hyper-wordmark { height: 34px; max-width: 160px; }

.c_head-line-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;
}

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

.c_head-line-campaign {
    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;
}

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

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

.c_head-line-campaign-pict .icon { width: 17px; height: 17px; }
.c_head-line-campaign-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c_head-line-campaign-text > span { color: var(--c-muted); }

.c_head-line-actions { display: none; align-items: center; gap: 8px; margin-left: auto; }
.c_head-line-campaign + .c_head-line-actions { margin-left: 0; }

/* ---------- Main & columns ---------- */
.c_site-primary {
    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); }

.c_page-cols-primary { min-width: 0; container: content / inline-size; }

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

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

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

.c_rail-header .c_stripe-block-header { margin-bottom: 0; }

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

.c_rail-header-hyper .icon { width: 17px; height: 17px; }

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

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

.c_masthead-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;
}

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

.c_masthead-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;
}

.c_masthead-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) */
.c_masthead-ttl {
    max-width: 22ch;
    font-size: clamp(1.9rem, 1.35rem + 1.9vw, 2.75rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -.02em;
}

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

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

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

.c_masthead-tags 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;
}

.c_masthead-tags .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);
}

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

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

.c_coupon-pict .icon { width: 22px; height: 22px; }

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

.c_coupon-value {
    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;
}

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

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

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

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

.c_masthead--lobby .coupon { grid-template-columns: minmax(0, 1fr) auto; }
.c_masthead--lobby .c_coupon-primary { grid-template-columns: auto minmax(0, 1fr); column-gap: 16px; align-items: center; }
.c_masthead--lobby .c_coupon-pict { grid-row: span 3; margin: 0; width: 52px; height: 52px; }
.c_masthead--lobby .c_coupon-control { 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;
}

.c_mosa-card {
    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);
}

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

.c_mosa-title {
    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;
}

.c_mosa-card:first-child .c_mosa-title { display: block; }

/* 404 и подобные: всё по центру, без купона */
.c_masthead--center .c_masthead-panel { justify-items: center; padding-block: clamp(32px, 6vw, 72px); text-align: center; }
.c_masthead--center .c_masthead-text { justify-items: center; max-width: 720px; }
.c_masthead--center .c_masthead-ttl,
.c_masthead--center .c_masthead-tagline { margin-inline: auto; }
.c_masthead--center .c_masthead-actions,
.c_masthead--center .c_masthead-tags,
.c_masthead--center .c_masthead-mark { justify-content: center; }

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

    .c_masthead--lobby .coupon,
    .c_masthead--lobby .c_coupon-primary { grid-template-columns: minmax(0, 1fr); }
    .c_masthead--lobby .c_coupon-pict { grid-row: auto; margin-bottom: 8px; width: 42px; height: 42px; }
    .c_masthead--lobby .c_coupon-control { 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; }
    .c_mosa-card, .c_mosa-card:first-child { flex: none; width: 104px; }
    .c_mosa-card:first-child .c_mosa-title { display: none; }
    .c_mosa-card:first-child .c_mosa-glyph .icon { width: 34px; height: 34px; }
}

@container page (max-width: 560px) {
    /* Бейджи — одной строкой с горизонтальной прокруткой */
    .c_masthead-tags {
        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;
    }

    .c_masthead-tags::-webkit-scrollbar { display: none; }
    .c_masthead--center .c_masthead-tags { justify-content: flex-start; }
    .c_masthead-actions { width: 100%; }
    .c_masthead-actions .btn { flex: 1 1 auto; }
}

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

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

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

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

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

.c_outline-pane-header::-webkit-details-marker { display: none; }

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

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

.c_outline-pane-nav-links { padding: 0 10px 12px; }

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

.c_outline-pane-ul 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;
}

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

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

/* ---------- Quick info ---------- */
.c_fact-tiles {
    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;
}

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

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

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

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

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

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

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

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

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

.c_slot-card-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;
}

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

.c_slot-card-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)));
}

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

.c_slot-card-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;
}

/* Наведение: затемнение и крупная круглая кнопка ровно по центру обложки */
.c_slot-card-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);
}

.c_slot-card-play {
    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);
}

.c_slot-card-play .icon { width: 46%; height: 46%; }

.c_slot-card-label {
    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;
}

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

.c_slot-card:hover .c_slot-card-play,
.c_slot-card:focus-visible .c_slot-card-play { transform: translate(-50%, -50%) scale(1); }

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

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

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

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

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

.c_rail-arrow:hover { border-color: var(--c-accent-line); }
.c_rail-arrow[disabled] { opacity: .35; cursor: default; }
.c_rail-arrow--left .icon { transform: rotate(90deg); }
.c_rail-arrow--forward .icon { transform: rotate(-90deg); }

.c_provider-bar {
    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;
}

.c_provider-bar::-webkit-scrollbar { display: none; }

.c_provider-chip {
    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;
}

.c_provider-chip-brand,
.c_provider-chip-mono {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
}

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

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

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

.c_campaign-card {
    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;
}

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

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

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

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

.c_campaign-card--pick .c_campaign-card-pict { background: var(--c-accent); color: var(--c-accent-ink); }
.c_campaign-card-amount { font-family: var(--font-heading); font-size: 1.45rem; font-weight: 800; line-height: 1.15; letter-spacing: -.01em; }
.c_campaign-card-ttl { color: var(--c-muted); font-family: var(--font-body); font-size: .95rem; font-weight: 600; }
.c_campaign-card-text { color: var(--c-muted); font-size: .93rem; }
.c_campaign-card-end { display: grid; gap: 8px; margin-top: auto; padding-top: 10px; }
.c_campaign-card-conditions { 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;
}

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

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

.c_stepper-num {
    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;
}

.c_stepper-item:first-child .c_stepper-num { background: var(--c-accent); color: var(--c-accent-ink); border-color: var(--c-accent); }
.c_stepper-body { padding-top: 9px; }
.c_stepper-ttl { font-size: 1.04rem; }
.c_stepper-text { 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; }
    .c_stepper-item { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 0; }
    .c_stepper-item:not(:last-child)::after { top: 21px; bottom: auto; left: 56px; right: -8px; width: auto; height: 2px; }
    .c_stepper-body { padding-top: 0; }
}

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

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

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

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

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

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

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

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

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

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

/* ---------- Reviews ---------- */
.c_pts-chip {
    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);
}

.c_pts-chip-value {
    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;
}

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

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

.c_assessment-card {
    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);
}

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

.c_assessment-card-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;
}

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

/* ---------- CTA banner ---------- */
.c_callout-bar {
    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);
}

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

.c_callout-bar-pict .icon { width: 26px; height: 26px; }
.c_callout-bar-body { flex: 1; display: grid; gap: 4px; min-width: 0; }
.c_callout-bar-ttl { font-size: clamp(1.15rem, 1rem + .6vw, 1.4rem); }
.c_callout-bar-text { color: var(--c-muted); }
.c_callout-bar-control { display: grid; flex: none; gap: 6px; justify-items: center; }
.c_callout-bar-hint { color: var(--c-muted); font-size: .75rem; }

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

/* ---------- App ---------- */
.c_mob-panel {
    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;
}

.c_mob-panel-body { display: grid; gap: 14px; justify-items: start; }
.c_mob-panel-ttl { font-size: clamp(1.35rem, 1.05rem + 1vw, 1.75rem); }
.c_mob-panel-text { color: var(--c-muted); }
.c_mob-panel-stores { display: flex; flex-wrap: wrap; gap: 10px; }
.c_mob-panel-hint { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--c-muted); font-size: .88rem; }
.c_mob-panel-media { display: none; }

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

.c_store-trigger {
    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;
}

.c_store-trigger:hover { border-color: var(--c-accent-line); text-decoration: none; }
.c_store-trigger .icon { width: 24px; height: 24px; }
.c_store-trigger 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);
}

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

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

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

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

.c_q-a-item-ask {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 15px 0;
    list-style: none;
    cursor: pointer;
}

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

.c_q-a-item-pict {
    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);
}

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

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

/* ---------- Author ---------- */
.c_creator-card {
    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);
}

.c_creator-card-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;
}

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

.c_creator-card-info {
    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;
}

.c_creator-card-info 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; }
.c_creator-card-info .icon { width: 16px; height: 16px; color: var(--c-accent); }

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

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

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

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

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

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

.c_aside-slot-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;
}

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

.c_aside-slot-play {
    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);
}

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

.c_aside-boost {
    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);
}

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

/* Блоки страницы, перенесённые в сайдбар (toc, quick-info) */
.c_page-aside .c_block-part { padding: 0; }
.c_page-aside .c_stripe-block-header { gap: 2px; margin-bottom: 10px; }
.c_page-aside .c_stripe-block-header .eyebrow, .c_page-aside .c_stripe-block-header-opening { display: none; }
.c_page-aside .c_stripe-block-header-ttl { font-size: 1rem; }
.c_page-aside .unit-quick-info { padding: 16px; border: 1px solid var(--c-line); border-radius: var(--radius-lg); background: var(--c-surface); }
.c_page-aside .c_fact-tiles { border: 0; border-radius: 0; background: transparent; }
.c_page-aside .c_fact-tiles-item { padding: 8px 0; }
.c_page-aside .c_fact-tiles dt { font-size: .84rem; }
.c_page-aside .c_fact-tiles dd { font-size: .9rem; }
.c_page-aside .c_outline-pane-header { padding: 12px 14px; }
.c_page-aside .c_outline-pane-nav-links { max-height: calc(100vh - var(--top-h) - 330px); padding-inline: 8px; overflow-y: auto; scrollbar-width: thin; }
.c_page-aside .c_outline-pane-ul a { padding: 6px 8px; font-size: .86rem; }

@container page (min-width: 700px) {
    .c_page-aside { flex-direction: row; align-items: flex-start; }
    .c_page-aside-flow, .c_page-aside-stuck { flex: 1 1 0; }
    .c_page-aside .c_aside-titles-ul { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

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

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

    .c_page-aside { flex-direction: column; align-items: stretch; margin-top: 0; padding-block: clamp(14px, 1.8vw, 24px); }
    .c_page-aside-flow, .c_page-aside-stuck { flex: none; }
    .c_page-aside--own-titles .c_page-aside-flow { display: grid; }
    .c_page-aside .c_aside-titles-ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .c_page-aside-stuck { position: sticky; top: calc(var(--top-h) + 16px); }
}

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

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

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

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

.c_site-bottom-ttl { 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; }
.c_site-bottom-col ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.c_site-bottom-col a { color: var(--c-muted); font-size: .93rem; }
.c_site-bottom-col a:hover { color: var(--c-text); }

.c_site-bottom-pay {
    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;
}

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

.c_site-bottom-pay img { width: auto; height: auto; max-width: 100%; max-height: 28px; object-fit: contain; }

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

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

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

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

    .c_side-nav-links { align-items: center; padding: 12px 10px; overflow: visible; }
    .c_side-nav-links-head { justify-content: center; padding: 0; }
    .c_side-nav-links .c_identity-hyper-text { display: none; }
    .c_side-nav-links .c_identity-hyper--wordmark .c_identity-hyper-wordmark { display: none; }
    .c_side-nav-links .c_identity-hyper--wordmark .c_identity-hyper-sign { display: block; }
    /* Вордмарк без отдельного знака — уменьшенная картинка */
    .c_side-nav-links .c_identity-hyper--wordmark .c_identity-hyper-wordmark:only-child { display: block; height: auto; max-width: 52px; }
    .c_side-nav-links-nav-links { width: 100%; }
    .c_side-nav-links-hyper { justify-content: center; padding: 6px; }

    .c_side-nav-links-label {
        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);
    }

    .c_side-nav-links-hyper:hover .c_side-nav-links-label,
    .c_side-nav-links-hyper:focus-visible .c_side-nav-links-label { opacity: 1; transform: translate(0, -50%); }
    .c_side-nav-links-pict { width: 40px; height: 40px; }
    .c_side-nav-links-end { width: 100%; }
    .c_side-nav-links-actions { display: none; }
    .c_side-nav-links-hint { justify-content: center; padding: 0; }
    .c_side-nav-links-hint > span:last-child { display: none; }
}

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

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

    .c_mob-shell { display: block; }

    .c_side-nav-links {
        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.c_nav-links-active .c_side-nav-links { transform: none; visibility: visible; transition: transform .28s var(--ease); }
    .c_side-nav-links-dismiss { display: grid; }
    .c_side-nav-links .c_identity-hyper-wordmark { height: 34px; }

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

    body.c_nav-links-active .c_side-nav-links-back { opacity: 1; pointer-events: auto; }

    .c_head-line { gap: 10px; }
    .c_head-line-burg { display: grid; }
    .c_identity-hyper--head { display: inline-flex; }
    .c_head-line-search { display: none; }
    .c_head-line-login { display: none; }

    .c_site-bottom-head { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .c_site-bottom-identity { grid-column: 1 / -1; }

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

    .c_site-bottom-pay::-webkit-scrollbar { display: none; }
    .c_site-bottom-bottom { flex-direction: column; align-items: flex-start; }
    .c_q-a-ul { padding-inline: 14px; }
    .c_q-a-item-reply { padding-right: 0; }
}

@media (max-width: 400px) {
    .c_identity-hyper--head .c_identity-hyper-text { max-width: 130px; }
    .c_head-line-actions .btn { --btn-pad: .5rem .7rem; }
}

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