/*
 * B-LINK v8.7: «авторские» темы (категория art) — японские, узбекские, киберпанк, ар-деко, аниме, манга, космос, хром,
 * пиксель, акварель, пластилин, бумага. Простые фоны (цвет или мягкий градиент), векторные элементы в цветах палитры
 * (SVG-маска: цвет — background, рисунок — mask, поэтому орнамент перекрашивается вместе с палитрой) и тематические
 * анимации. Ни одной картинки. Файлы css/art/<тема>.css собирает .local-runtime/tools/qa-themes/build_art_css.py
 * (орнаменты — art_ornaments.py), руками не править. Страница подключает только файл своей темы ('css' => 'art').
 * Движение — только при включённой анимации страницы (.bl-motion) и без запроса reduced-motion; без движения всё стоит
 * в законченном виде. У фото-фона (.bl-has-photo) декор фона снимается — правило в конце файла.
 */


.bl-theme-manga .bl-bg i { display: block; position: absolute; pointer-events: none; }
/* the line divider gets the theme's own stroke; the wave divider keeps its shape in the theme accent */
.bl-theme-manga .bl-div--wave .bl-div__in i { background-color: color-mix(in srgb, var(--accent) 55%, transparent); }


/* ============================================================== theme: MANGA */
/* Manga (редизайн 17.11.2026): страница как раскадровка. Поле бумаги и панели в тонкой раме тушью с ровными полями между
   ними, имя плотным японским гротеском (Murecho 900), описание и отзывы — реплики в облачке с хвостиком. Растровый тон
   (скринтон) — единственный «серый» темы: тень за портретом, отклик кнопок на наведение, незаполненные части графиков.
   У квадратной формы значки кнопок, плиток и объявлений стоят в своей узкой ячейке за линией. Один акцент на палитру.
   Без рисунков на фоне, без теней, без свечений, без градиентов. */
.bl-theme-manga {
    --bw: 1px; --shadow: none; --gap: 10px;
    --dialog-bg: var(--surface); --dialog-ink: var(--surface-ink);
    /* скринтон: диагональная решётка точек с шагом 4 px, как экранная сетка тона; цвет даёт background, рисунок — маска */
    --tone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4'%3E%3Ccircle cx='1' cy='1' r='.8'/%3E%3Ccircle cx='3' cy='3' r='.8'/%3E%3C/svg%3E");
    --tone-dense: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4'%3E%3Ccircle cx='2' cy='2' r='1.25'/%3E%3Ccircle r='1.25'/%3E%3Ccircle cx='4' r='1.25'/%3E%3Ccircle cy='4' r='1.25'/%3E%3Ccircle cx='4' cy='4' r='1.25'/%3E%3C/svg%3E");
    --tone-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4'%3E%3Ccircle cx='1' cy='1' r='.55'/%3E%3Ccircle cx='3' cy='3' r='.55'/%3E%3C/svg%3E");
    --window: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8'%3E%3Crect width='8' height='8'/%3E%3C/svg%3E");
    /* хвостик реплики: заливка (перекрывает раму облачка) и обводка двух сторон */
    --tail-fill: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M3.8 18V15.5L1 .9L15.6 15.5V18Z'/%3E%3C/svg%3E");
    --tail-line: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M3.8 15.5L1 .9L15.6 15.5' fill='none' stroke='black' stroke-width='1' stroke-miterlimit='16'/%3E%3C/svg%3E");
}
.bl-theme-manga.bl-btn-square { --br: 0px; --cr: 0px; }
.bl-theme-manga.bl-btn-rounded { --br: 12px; --cr: 14px; }
.bl-theme-manga.bl-ava-square { --ar: 0px; }

/* фон — один цвет */
.bl-theme-manga .bl-bg { background: var(--bg); }

/* ---- шапка: портрет с растровым тоном, имя, реплика */
.bl-theme-manga .bl-hero { gap: 22px; padding: 12px 0 14px; }
.bl-theme-manga .bl-hero__body { gap: 8px; }
.bl-theme-manga .bl-hero__name { font-weight: 900; font-size: clamp(34px, 10.4vw, 46px); line-height: 1.02; letter-spacing: -.025em; text-wrap: balance; }
.bl-theme-manga .bl-hero--side .bl-hero__name { font-size: clamp(26px, 7.8vw, 34px); }
.bl-theme-manga .bl-ava img { background: var(--bg-2); box-shadow: 0 0 0 var(--bw) var(--ink); }
.bl-theme-manga .bl-ava::before { content: ""; position: absolute; inset: 0; border-radius: var(--ar); translate: 9px 9px; background: var(--ink); -webkit-mask: var(--tone) 0 0 / 4px 4px round; mask: var(--tone) 0 0 / 4px 4px round; }
.bl-theme-manga .bl-hero--side .bl-ava::before { translate: 8px 8px; }

/* реплика: облачко в тонкой раме, хвостик тянется к имени (заливка ::after перекрывает раму, обводка ::before поверх) */
.bl-theme-manga .bl-hero__tag { position: relative; isolation: isolate; margin-top: 19px; padding: 12px 20px 13px; max-width: min(34ch, 100%); color: var(--surface-ink); background: var(--surface); border: var(--bw) solid var(--ink); border-radius: 30px; font-size: 15px; line-height: 1.45; }
.bl-theme-manga :is(.bl-hero__tag, .bl-quote)::before, .bl-theme-manga :is(.bl-hero__tag, .bl-quote)::after { content: ""; position: absolute; width: 18px; height: 18px; pointer-events: none; }
.bl-theme-manga :is(.bl-hero__tag, .bl-quote)::after { z-index: 1; background: var(--surface); -webkit-mask: var(--tail-fill) 0 0 / 100% 100% no-repeat; mask: var(--tail-fill) 0 0 / 100% 100% no-repeat; }
.bl-theme-manga :is(.bl-hero__tag, .bl-quote)::before { z-index: 2; background: var(--ink); -webkit-mask: var(--tail-line) 0 0 / 100% 100% no-repeat; mask: var(--tail-line) 0 0 / 100% 100% no-repeat; }
.bl-theme-manga .bl-hero__tag::before, .bl-theme-manga .bl-hero__tag::after { left: calc(50% - 28px); bottom: calc(100% - 3px); }
.bl-theme-manga :is(.bl-hero--side, .bl-ta--left) .bl-hero__tag::before, .bl-theme-manga :is(.bl-hero--side, .bl-ta--left) .bl-hero__tag::after { left: 20px; }
.bl-theme-manga .bl-hero.bl-ta--right .bl-hero__tag::before, .bl-theme-manga .bl-hero.bl-ta--right .bl-hero__tag::after { left: auto; right: 20px; transform: scaleX(-1); }

.bl-theme-manga .bl-chips { gap: 6px; margin-top: 6px; }
.bl-theme-manga :is(.bl-chip, .bl-verified) { padding: 6px 9px; border-radius: min(var(--br), 999px); background: transparent; color: var(--ink); border: 1px solid var(--ink); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; line-height: 1.1; }

/* ---- заголовки и текст */
.bl-theme-manga .bl-h { font-weight: 800; letter-spacing: -.02em; line-height: 1.12; }
.bl-theme-manga .bl-h--1 { font-weight: 900; }
.bl-theme-manga .bl-h--6 { font-family: var(--font); font-weight: 700; font-size: 11.5px; letter-spacing: .18em; color: var(--accent-text, var(--accent)); }
.bl-theme-manga .bl-b--heading { margin-top: 18px; }

/* ---- кнопки. Обычная — панель (бумага чуть светлее поля), контурная — рама на поле, мягкая — ровная заливка --bg-2 в раме,
   акцентная — заливка акцентом. Текст всегда на ровном фоне; растровый тон проступает только при наведении. */
.bl-theme-manga .bl-btn { isolation: isolate; overflow: hidden; min-height: 60px; background: var(--surface); color: var(--surface-ink); border: var(--bw) solid var(--line); box-shadow: none; transition: background-color .18s, color .18s, border-color .18s; }
.bl-theme-manga .bl-btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: currentColor; opacity: 0; -webkit-mask: var(--tone) 0 0 / 4px 4px round; mask: var(--tone) 0 0 / 4px 4px round; transition: opacity .18s; pointer-events: none; }
.bl-theme-manga .bl-btn:hover, .bl-theme-manga .bl-btn:active { transform: none; }
.bl-theme-manga .bl-btn:hover::before { opacity: .22; }
.bl-theme-manga .bl-btn__title { font-family: var(--font-display); font-weight: 700; font-size: 16.5px; line-height: 1.2; letter-spacing: -.005em; -webkit-hyphens: manual; hyphens: manual; text-wrap: balance; }
.bl-theme-manga .bl-btn__sub { font-size: 12.5px; opacity: .72; }
.bl-theme-manga .bl-btn__go { right: 18px; opacity: 1; font-size: 14px; }
/* на акценте тон кладётся тёмным оттенком самого акцента — второй прогон той же краски: ни розового горошка, ни серого */
.bl-theme-manga .bl-btn[data-style="accent"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.bl-theme-manga .bl-btn[data-style="accent"]::before { background: color-mix(in srgb, var(--accent) 50%, #000); }
.bl-theme-manga .bl-btn[data-style="accent"]:hover::before { opacity: .45; }
.bl-theme-manga .bl-btn[data-style="outline"] { background: transparent; color: var(--ink); border-color: var(--ink); }
.bl-theme-manga .bl-btn[data-style="outline"] .bl-btn__title { font-weight: 600; }
.bl-theme-manga .bl-btn[data-style="soft"] { background: var(--bg-2); color: var(--ink); border-color: var(--line); }
.bl-theme-manga .bl-btn[data-style="soft"]:hover::before { opacity: .2; }
/* квадратные кнопки: значок в своей узкой панели слева, отделён линией (у контурной — без линии, легче) */
.bl-theme-manga.bl-btn-square .bl-btn__media { left: 0; top: 0; bottom: 0; width: 56px; height: auto; transform: none; border-radius: 0; border-right: 1px solid currentColor; font-size: 18px; }
.bl-theme-manga.bl-btn-square .bl-btn[data-style="outline"] .bl-btn__media { border-right: 0; }

/* ---- карточки-панели */
.bl-theme-manga .bl-surface { background: var(--surface); color: var(--surface-ink); border: var(--bw) solid var(--line); box-shadow: none; }
.bl-theme-manga :is(.bl-cardlink, .bl-tile, a.bl-product, .bl-doc, .bl-pay, .bl-badge):hover { transform: none; }
.bl-theme-manga :is(a.bl-surface, button.bl-surface, a .bl-surface):hover { background: var(--bg-2); }
.bl-theme-manga :is(.bl-tile__icon, .bl-list__mark, .bl-audio__play, .bl-map__go, .bl-doc__icon) { border-radius: min(calc(var(--br) * .5), 50%); background: var(--ink); color: var(--surface); }
/* плитки контактов при квадратной форме — та же ячейка значка, что у кнопок */
.bl-theme-manga.bl-btn-square .bl-tile { gap: 0; padding: 0; align-items: stretch; }
.bl-theme-manga.bl-btn-square .bl-tile__icon { width: 56px; height: auto; min-height: 60px; border-radius: 0; background: transparent; color: inherit; border-right: 1px solid currentColor; font-size: 17px; }
.bl-theme-manga.bl-btn-square .bl-tile__text { align-self: center; padding: 11px 12px; }
/* в две колонки ячейка уже: номер телефона помещается целиком */
.bl-theme-manga.bl-btn-square .bl-contacts--grid .bl-tile__icon { width: 44px; font-size: 16px; }
.bl-theme-manga.bl-btn-square .bl-contacts--grid .bl-tile:not(:last-child:nth-child(odd)) .bl-tile__text { padding-inline: 10px 8px; }
.bl-theme-manga .bl-product__price { border-radius: min(calc(var(--br) * .5), 999px); background: var(--accent); color: var(--accent-ink); }
.bl-theme-manga .bl-list__mark { width: 20px; height: 20px; font-size: 10px; }
.bl-theme-manga .bl-rowlink { border-bottom: 1px solid var(--line); }

/* ---- соцсети */
.bl-theme-manga .bl-socials .bl-social { background: var(--surface); color: var(--surface-ink); border: var(--bw) solid var(--line); border-radius: min(var(--br), 50%); }
.bl-theme-manga .bl-socials--pills .bl-social { border-radius: var(--br); }
.bl-theme-manga .bl-social:hover { transform: none; background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* ---- блоки */
/* цифры статистики: кегль от ширины самой карточки — «1 250 000+» помещается и в узкую из трёх (Murecho шире базового шрифта) */
.bl-theme-manga .bl-stat { container-type: inline-size; padding: 16px 7px 14px; gap: 6px; }
.bl-theme-manga .bl-stat b { color: var(--surface-ink); font-weight: 900; letter-spacing: -.03em; font-size: clamp(16px, 4.6vw, 24px); font-size: min(28px, 20cqi); }
.bl-theme-manga :is(.bl-stats--1, .bl-stats--2, .bl-stats--4) .bl-stat b { font-size: min(34px, 20cqi); }
.bl-theme-manga .bl-stat span { opacity: 1; color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.bl-theme-manga .bl-count__cell { border-radius: calc(var(--cr) * .5); background: transparent; border: 1px solid currentColor; }
.bl-theme-manga .bl-count__cell b { font-weight: 900; }
.bl-theme-manga .bl-count__cell span { text-transform: uppercase; letter-spacing: .06em; font-size: 10.5px; opacity: .75; }
.bl-theme-manga .bl-timeline li::before { left: 4px; width: 1px; background: currentColor; opacity: .85; }
.bl-theme-manga .bl-timeline li::after { left: 0; top: 6px; width: 9px; height: 9px; border-radius: 0; background: var(--accent-text, var(--accent)); box-shadow: none; }
.bl-theme-manga .bl-timeline time { opacity: 1; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-size: 11px; }
.bl-theme-manga .bl-faq__item summary { font-weight: 700; }
.bl-theme-manga .bl-faq__plus::before, .bl-theme-manga .bl-faq__plus::after { top: 6.5px; height: 1px; border-radius: 0; }
.bl-theme-manga .bl-price__title, .bl-theme-manga .bl-plan__price b { font-weight: 900; }
.bl-theme-manga .bl-price__row i { border-bottom: 2px dotted currentColor; opacity: .45; }
.bl-theme-manga .bl-plan.is-hot { border-color: var(--accent); }
.bl-theme-manga .bl-plan__badge { top: -10px; padding: 4px 8px; border-radius: min(var(--br), 999px); font-size: 10.5px; letter-spacing: .1em; }
/* отзыв — реплика клиента: облачко с хвостиком вниз; поле под ним держит хвостик и в карусели (прокрутка его не режет) */
.bl-theme-manga .bl-quote { position: relative; isolation: isolate; margin-bottom: 15px; border-radius: max(var(--cr), 30px); }
.bl-theme-manga .bl-quote::before, .bl-theme-manga .bl-quote::after { left: 30px; top: calc(100% - 3px); transform: scaleY(-1); }
.bl-theme-manga .bl-quote__stars { color: var(--surface-ink); }
.bl-theme-manga .bl-quote blockquote { opacity: 1; }
.bl-theme-manga .bl-goal__bar { height: 10px; border-radius: 0; background: transparent; box-shadow: inset 0 0 0 1px currentColor; }
.bl-theme-manga .bl-goal__bar i { border-radius: 0; background: var(--accent); }
.bl-theme-manga .bl-person__photo { border-radius: min(var(--br), 50%); }
.bl-theme-manga .bl-div__in i { height: 1px; background: var(--ink); opacity: 1; }
.bl-theme-manga .bl-div__in b { width: 5px; height: 5px; border-radius: 0; background: var(--ink); opacity: 1; }
.bl-theme-manga .bl-div__icon { color: var(--ink); }
.bl-theme-manga .bl-input { border: var(--bw) solid var(--line); border-radius: calc(var(--br) * .6); background: var(--surface); }
.bl-theme-manga .bl-input:focus { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
/* объявление: панель; значок тушью (тип различает сам значок), при квадратной форме — в ячейке за линией, как у кнопок */
.bl-theme-manga .bl-alert:not(.bl-alert--look-tape, .bl-alert--look-shine, .bl-alert--look-gradient) { background: var(--surface); color: var(--surface-ink); border: var(--bw) solid var(--line); border-radius: var(--cr); }
.bl-theme-manga .bl-alert__icon { border-radius: min(calc(var(--br) * .5), 50%); background: var(--surface-ink); color: var(--surface); animation: none; }
.bl-theme-manga.bl-btn-square .bl-alert:is(.bl-alert--look-card, .bl-alert--look-typewriter, .bl-alert--look-pulse) { align-items: stretch; padding-left: 0; }
.bl-theme-manga.bl-btn-square .bl-alert:is(.bl-alert--look-card, .bl-alert--look-typewriter, .bl-alert--look-pulse) .bl-alert__icon { align-self: stretch; width: 50px; height: auto; min-height: 50px; margin-block: -14px; border-radius: 0; background: transparent; color: inherit; border-right: 1px solid currentColor; }
.bl-theme-manga.bl-btn-square .bl-alert:is(.bl-alert--look-card, .bl-alert--look-typewriter, .bl-alert--look-pulse) .bl-alert__text { align-self: center; }
.bl-theme-manga .bl-alert--look-card::before { display: none; }
.bl-theme-manga .bl-alert--look-live { --live: var(--accent-text, var(--accent)); }
.bl-theme-manga .bl-alert__dot { width: 8px; height: 8px; border-radius: 0; box-shadow: none; }
/* статус часов работы: рамка, текст тушью, квадратный маркер (акцент — закрыто, тушь — открыто), без пульса */
.bl-theme-manga .bl-pill, .bl-theme-manga .bl-pill:is(.is-open, .is-closed) { gap: 8px; padding: 5px 10px; background: transparent; color: var(--surface-ink); border: 1px solid currentColor; font-size: 12px; }
.bl-theme-manga .bl-pill i { width: 6px; height: 6px; border-radius: 0; background: var(--surface-ink); box-shadow: none; animation: none; }
.bl-theme-manga .bl-pill.is-open i { box-shadow: none; animation: none; }
.bl-theme-manga .bl-pill.is-closed i { background: var(--accent-text, var(--accent)); }
.bl-theme-manga :is(.bl-opt, .bl-day, .bl-slot, .bl-nps__cell span, .bl-chip-opt span, .bl-stepper__btn, .bl-calc__total, .bl-hours__special, .bl-card__badge, .bl-card__cta, .bl-event__date, .bl-event__count span, .bl-event__link, .bl-coupon__code, .bl-order__item, .bl-pill, .bl-quiz__icon, .bl-pay__brand, .bl-share__copy) { border-radius: calc(var(--br) * .5); }
/* купон — панель с линией отреза тушью, без «билетных» вырезов */
.bl-theme-manga .bl-coupon { border: var(--bw) dashed var(--ink); border-radius: var(--cr); box-shadow: none; }
.bl-theme-manga .bl-coupon::before, .bl-theme-manga .bl-coupon::after { display: none; }

/* ---- медиа в раме панели; подпись галереи — бумажная плашка в углу кадра (вместо затемнения) */
.bl-theme-manga :is(.bl-media a, .bl-media__zoom, .bl-gallery__item, .bl-carousel__slide, .bl-embed, .bl-hero__cover) { outline: var(--bw) solid var(--line); outline-offset: calc(var(--bw) * -1); }
.bl-theme-manga .bl-carousel--quotes .bl-carousel__slide { outline: 0; }
.bl-theme-manga .bl-carousel__dots i { border-radius: min(var(--br), 99px); }
/* скругление при «пилюле» остаётся у самой картинки: рамка подписи не режется углами; при наведении кадр не увеличивается */
.bl-theme-manga .bl-media { overflow: visible; border-radius: 0; }
.bl-theme-manga :is(.bl-media a, .bl-media__zoom, .bl-gallery__item, .bl-cardlink):hover img { transform: none; }
.bl-theme-manga .bl-gallery__cap { left: 8px; right: auto; bottom: 8px; max-width: calc(100% - 16px); padding: 4px 8px; background: var(--surface); color: var(--surface-ink); border: var(--bw) solid var(--line); font-size: 12.5px; line-height: 1.3; }

/* ---- графики: тушь, акцент и растровый тон вместо бледных и радужных заливок; без скруглений и теней */
.bl-theme-manga .bl-chart__title { font-family: var(--font-display); font-weight: 700; }
.bl-theme-manga :is(.bl-cbar__bar, .bl-cscale__track, .bl-cscale__track i, .bl-cscale__steps i, .bl-cpie__part, .bl-chart__key) { border-radius: 0; }
.bl-theme-manga :is(.bl-chart__tip, .bl-cbar.has-axis [data-tip]::after) { border-radius: calc(var(--br) * .5); box-shadow: none; }
.bl-theme-manga .bl-chart__tip span i { border-radius: 0; }
/* столбцы: невыделенные — тон в раме, выделенный — сплошной акцент */
.bl-theme-manga .bl-cbar.has-hl .bl-cbar__bar { background: transparent; box-shadow: inset 0 0 0 1px var(--surface-ink); }
.bl-theme-manga .bl-cbar.has-hl .bl-cbar__bar::before { content: ""; position: absolute; inset: 0; background: var(--surface-ink); -webkit-mask: var(--tone) 0 0 / 4px 4px round; mask: var(--tone) 0 0 / 4px 4px round; }
.bl-theme-manga .bl-cbar.has-hl .is-hl .bl-cbar__bar { background: var(--mark); box-shadow: none; }
.bl-theme-manga .bl-cbar.has-hl .is-hl .bl-cbar__bar::before { content: none; }
/* линия: под линией ровная лёгкая заливка тушью вместо цветного градиента; вторая серия — тушь пунктиром */
.bl-theme-manga .bl-cline__area { fill: var(--surface-ink); fill-opacity: .06; }
.bl-theme-manga .bl-cline.has-two .bl-cline__s, .bl-theme-manga .bl-cline.has-two :is(.bl-cline__dot, .bl-cline__hot) { color: var(--mark) !important; }
.bl-theme-manga .bl-cline.has-two .bl-cline__s ~ .bl-cline__s, .bl-theme-manga .bl-cline.has-two .bl-cline__dot ~ .bl-cline__dot, .bl-theme-manga .bl-cline.has-two .bl-cline__hot ~ .bl-cline__hot { color: var(--surface-ink) !important; }
.bl-theme-manga .bl-cline.has-two .bl-cline__s ~ .bl-cline__s .bl-cline__line { stroke-dasharray: 5 4; stroke-linecap: butt; }
.bl-theme-manga .bl-cline.has-two .bl-cline__s ~ .bl-cline__s .bl-cline__area { fill: none; }
.bl-theme-manga .bl-cline.has-two .bl-chart__legend li .bl-chart__key { background: var(--mark); }
.bl-theme-manga .bl-cline.has-two .bl-chart__legend li ~ li .bl-chart__key { height: 0; background: none; border-top: 2px dashed var(--surface-ink); }
.bl-theme-manga .bl-cline.has-two .bl-chart__tip span i { background: var(--mark) !important; }
.bl-theme-manga .bl-cline.has-two .bl-chart__tip span ~ span i { background: var(--surface-ink) !important; }
/* доли: 0 — тушь, 1 — акцент, 2 — плотный тон, 3 — средний тон, 4 — бумага в раме, 5 — редкий тон (вместо радуги серий) */
.bl-theme-manga .bl-cpie__part, .bl-theme-manga .bl-cpie__key .bl-chart__key { position: relative; isolation: isolate; }
.bl-theme-manga .bl-cpie__part[data-k="0"], .bl-theme-manga .bl-cpie__key[data-k="0"] .bl-chart__key { background: var(--surface-ink); color: var(--surface); }
.bl-theme-manga .bl-cpie__part[data-k="1"], .bl-theme-manga .bl-cpie__key[data-k="1"] .bl-chart__key { background: var(--mark); color: var(--accent-ink); }
.bl-theme-manga .bl-cpie__part:is([data-k="2"], [data-k="3"], [data-k="4"], [data-k="5"]), .bl-theme-manga .bl-cpie__key:is([data-k="2"], [data-k="3"], [data-k="4"], [data-k="5"]) .bl-chart__key { background: var(--surface); color: var(--surface-ink); box-shadow: inset 0 0 0 1px var(--surface-ink); }
.bl-theme-manga .bl-cpie__part:is([data-k="2"], [data-k="3"], [data-k="5"])::before, .bl-theme-manga .bl-cpie__key:is([data-k="2"], [data-k="3"], [data-k="5"]) .bl-chart__key::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--surface-ink); -webkit-mask: var(--tone) 0 0 / 4px 4px repeat; mask: var(--tone) 0 0 / 4px 4px repeat; }
.bl-theme-manga .bl-cpie__part[data-k="2"]::before, .bl-theme-manga .bl-cpie__key[data-k="2"] .bl-chart__key::before { -webkit-mask-image: var(--tone-dense); mask-image: var(--tone-dense); }
.bl-theme-manga .bl-cpie__part[data-k="5"]::before, .bl-theme-manga .bl-cpie__key[data-k="5"] .bl-chart__key::before { -webkit-mask-image: var(--tone-light); mask-image: var(--tone-light); }
/* число доли стоит в бумажном окне, вырезанном из тона (текст никогда не лежит на точках) */
.bl-theme-manga .bl-cpie__part:is([data-k="2"], [data-k="3"], [data-k="5"]):not(:empty)::before { -webkit-mask-size: 4px 4px, 40px 16px; mask-size: 4px 4px, 40px 16px; -webkit-mask-position: 0 0, 4px 50%; mask-position: 0 0, 4px 50%; -webkit-mask-repeat: repeat, no-repeat; mask-repeat: repeat, no-repeat; -webkit-mask-composite: source-out; mask-composite: subtract; }
.bl-theme-manga .bl-cpie__part:is([data-k="3"]):not(:empty)::before { -webkit-mask-image: var(--tone), var(--window); mask-image: var(--tone), var(--window); }
.bl-theme-manga .bl-cpie__part:is([data-k="2"]):not(:empty)::before { -webkit-mask-image: var(--tone-dense), var(--window); mask-image: var(--tone-dense), var(--window); }
.bl-theme-manga .bl-cpie__part:is([data-k="5"]):not(:empty)::before { -webkit-mask-image: var(--tone-light), var(--window); mask-image: var(--tone-light), var(--window); }
/* кольцо и круг: тот же порядок; тон в сетке SVG (viewBox 104 на 172 px — шаг 2,42 = 4 px на экране) */
.bl-theme-manga .bl-cpie__seg[data-k="0"] { fill: var(--surface-ink); }
.bl-theme-manga .bl-cpie__seg[data-k="1"] { fill: var(--mark); }
.bl-theme-manga .bl-cpie__seg:is([data-k="2"], [data-k="3"], [data-k="5"]) { fill: var(--surface-ink); -webkit-mask: var(--tone) 0 0 / 2.42px 2.42px repeat; mask: var(--tone) 0 0 / 2.42px 2.42px repeat; }
.bl-theme-manga .bl-cpie__seg[data-k="2"] { -webkit-mask-image: var(--tone-dense); mask-image: var(--tone-dense); }
.bl-theme-manga .bl-cpie__seg[data-k="5"] { -webkit-mask-image: var(--tone-light); mask-image: var(--tone-light); }
.bl-theme-manga .bl-cpie__seg[data-k="4"] { fill: var(--surface); stroke: var(--surface-ink); stroke-width: .62; }
/* кольца показателей: дорожка — тон, дуга — сплошной акцент без скругления (viewBox 36 на ~100–118 px — шаг 1,3) */
.bl-theme-manga :is(.bl-cring__track, .bl-cring__arc) { stroke-width: 2.6; }
.bl-theme-manga .bl-cring__track { stroke: var(--surface-ink); -webkit-mask: var(--tone) 0 0 / 1.3px 1.3px repeat; mask: var(--tone) 0 0 / 1.3px 1.3px repeat; }
.bl-theme-manga .bl-cring__arc { stroke-linecap: butt; }
.bl-theme-manga :is(.bl-cring__num, .bl-cpie__big) { font-weight: 800; }
/* шкалы: незаполненная часть — тон, заполненная — акцент; точки — пустые кружки в раме */
.bl-theme-manga .bl-cscale__track { position: relative; background: none; }
.bl-theme-manga .bl-cscale__track::before { content: ""; position: absolute; inset: 0; background: var(--surface-ink); -webkit-mask: var(--tone) 0 0 / 4px 4px round; mask: var(--tone) 0 0 / 4px 4px round; }
.bl-theme-manga .bl-cscale__track i { position: relative; }
.bl-theme-manga .bl-cscale__steps i:not(.is-on) { background: var(--surface-ink); -webkit-mask: var(--tone) 0 0 / 4px 4px round; mask: var(--tone) 0 0 / 4px 4px round; }
.bl-theme-manga .bl-cscale--dots .bl-cscale__steps i:not(.is-on) { background: transparent; -webkit-mask: none; mask: none; box-shadow: inset 0 0 0 1px var(--surface-ink); }

/* ---- диалоги */
.bl-theme-manga .bl-dialog { border-radius: var(--cr); border: var(--bw) solid var(--line); box-shadow: none; }
.bl-theme-manga .bl-dialog::backdrop { background: rgba(10, 10, 12, .6); -webkit-backdrop-filter: none; backdrop-filter: none; }
.bl-theme-manga .bl-dialog__close { border-radius: min(var(--br), 50%); background: transparent; border: 1px solid currentColor; }

/* ---- фото-фон владельца: текст ложится в бумажные панели в раме, как надписи поверх рисунка в манге */
.bl-theme-manga.bl-has-photo .bl-hero__body { align-self: stretch; padding: 16px 18px 18px; background: var(--surface); color: var(--surface-ink); border: var(--bw) solid var(--line); border-radius: var(--cr); }
.bl-theme-manga.bl-has-photo :is(.bl-b--heading .bl-h, .bl-sect__title, .bl-catalog__title) { width: fit-content; max-width: 100%; padding: .1em .35em .14em; background: var(--surface); color: var(--surface-ink); border: var(--bw) solid var(--line); }
.bl-theme-manga.bl-has-photo .bl-b--heading .bl-h { margin-inline: auto; }
.bl-theme-manga.bl-has-photo .bl-b--heading .bl-h[style*="left"] { margin-left: 0; }
.bl-theme-manga.bl-has-photo .bl-b--heading .bl-h[style*="right"] { margin-right: 0; }
.bl-theme-manga.bl-has-photo .bl-b--paragraph .bl-text { padding: 12px 14px; background: var(--surface); color: var(--surface-ink); border: var(--bw) solid var(--line); }
.bl-theme-manga.bl-has-photo .bl-media figcaption { width: fit-content; max-width: 100%; margin-inline: auto; padding: 4px 8px; background: var(--surface); color: var(--surface-ink); border: var(--bw) solid var(--line); }
.bl-theme-manga.bl-has-photo :is(.bl-verified, .bl-brand) { background: var(--surface); }
.bl-theme-manga.bl-has-photo .bl-brand { padding: 4px 10px; }
.bl-theme-manga.bl-has-photo .bl-btn[data-style="outline"] { background: var(--surface); }

/* ---- движение: блоки проявляются, тон ложится за портрет, реплика звучит после имени */
@media (prefers-reduced-motion: no-preference) {
    .bl-js .bl-theme-manga.bl-motion [data-reveal] { transform: translateY(10px); transition: opacity .55s var(--ease), transform .55s var(--ease); transition-delay: var(--d, 0ms); }
    .bl-js .bl-theme-manga.bl-motion .bl-b.is-in .bl-ava::before { animation: bl-manga-tone .7s cubic-bezier(.2, .7, .2, 1) .3s both; }
    .bl-js .bl-theme-manga.bl-motion .bl-b.is-in .bl-hero__tag { animation: bl-manga-say .45s var(--ease) .45s both; }
    /* «в эфире»: квадрат мигает, как метка записи (эффект блока, работает и без анимации страницы) */
    .bl-theme-manga .bl-alert--look-live .bl-alert__dot { animation: bl-manga-rec 1.2s steps(1) infinite !important; }
}
@keyframes bl-manga-tone { from { translate: 0 0; opacity: 0; } }
@keyframes bl-manga-say { from { opacity: 0; transform: translateY(6px); } }
@keyframes bl-manga-rec { 50% { opacity: .2; } }


/* ============================================================== background photo */
/* the owner's background photo replaces the theme's background decor (the overlay keeps the page readable) */
.bl-theme-manga.bl-has-photo .bl-bg { background: var(--bg-image) center / cover no-repeat, var(--bg); }
.bl-theme-manga.bl-has-photo .bl-bg::before, .bl-theme-manga.bl-has-photo .bl-bg i { display: none; }
.bl-theme-manga.bl-has-photo .bl-bg::after { all: unset; content: ""; position: absolute; inset: 0; background: var(--bg); opacity: var(--bg-overlay, .3); }
