/* Кейс-батл: список, создание, комната. Редкость — только классы .t0–.t5 (--tc/--th) из cases.css. */
.bt { container: bt / inline-size; --vs-w: 28px; --lane-gap: 8px; --ar-pad: 8px; --well: var(--bg-inset); --card-bg: var(--s1);
  --lanes-h: clamp(320px, calc(100vh - 340px), 430px); padding-bottom: 16px; overflow-x: clip; overflow-clip-margin: 30px; }
.bt img { -webkit-user-drag: none; user-select: none; }
.bt, .bt-dlg { --icon-accent: currentColor; --icon-accent-opacity: 0; }
/* R9 (закон вида: зелёного/красного нигде; ART0930 в ядре уже так): в батле --win — светлый акцент сайта (сумма лидера,
   победитель, «идёт», счётчик), «лучший дроп» — наш градиент; аватары ботов и цвета команд — без зелёных/красных */
.bt, .bt-dlg { --win: #A9B4FF; --win-soft: rgba(169,180,255,.14); --win-line: rgba(169,180,255,.30); --win-solid: #7B8CFF;
  --win-fill: linear-gradient(100deg, #5B74FE 0%, #6C66FA 50%, #7B5CF0 100%);
  --av-1: #6C66FA; --av-2: #2E7CD6; --av-6: #8A5CF0; --av-7: #C77B2B; }
:is(.bt, .bt-dlg) .btn--primary { background: var(--primary-fill); color: var(--on-primary); text-shadow: var(--on-primary-shadow); font-family: var(--font-body); font-weight: 700;
  box-shadow: var(--accent-edge); border-color: transparent; }
:is(.bt, .bt-dlg) .btn--primary:hover:not(:disabled) { background: var(--primary-fill-hover); color: var(--on-primary); }
:is(.bt, .bt-dlg) .btn--primary:active:not(:disabled) { background: var(--primary-fill-press); }
:is(.bt, .bt-dlg) .btn--primary .ico { filter: none; color: currentColor; }
.bt-hide-xs { display: inline; }

/* ── Мелкие общие детали ── */
.bt-pill { display: inline-flex; align-items: center; height: 28px; padding: 0 9px; border-radius: 8px; background: var(--btn-price-bg); border: 1px solid var(--btn-price-bg);
  font: 700 14px/1 var(--font-body); white-space: nowrap; font-variant-numeric: tabular-nums; }
.bt-icon, .bt-back { position: relative; flex: none; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px;
  background: var(--surface-3); border: 1px solid var(--line-btn); color: var(--text-2); transition: color var(--dur-1), background-color var(--dur-1); }
.bt-icon:hover, .bt-back:hover { color: var(--text); background: var(--surface-active); }
.bt-icon[aria-pressed="false"] { color: var(--text-3); }
.bt-textbtn { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 0 10px; border-radius: 10px; color: var(--text-2); font: 600 14px var(--font-body); text-decoration: none; }
.bt-textbtn:hover { color: var(--text); background: rgba(255,255,255,.05); }
.bt-textbtn[hidden] { display: none; }
.bt-mod { --sz: 26px; flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; width: var(--sz); height: var(--sz);
  border-radius: calc(var(--sz) * .3); color: var(--text-2); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-btn); }
.bt-mode { display: inline-flex; align-items: center; gap: 7px; font: 600 14px/1.1 var(--font-body); color: var(--text); white-space: nowrap; }
.bt-mt { display: inline-flex; align-items: baseline; gap: 7px; min-width: 0; white-space: nowrap; }
.bt-mt b { font: 700 14px/1 var(--font-display); letter-spacing: -.01em; color: var(--text); }
.bt-mt span { font: 600 13.5px/1 var(--font-body); color: var(--text-2); }
.bt-tags { display: inline-flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.bt-tag { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 8px 0 6px; border-radius: 8px; background: var(--tint-06);
  color: var(--text-2); font: 600 12px/1 var(--font-body); white-space: nowrap; }
.bt-tag .ico { flex: none; color: var(--primary-text); }
.bt-tag--more { padding: 0 8px; }
/* Модификаторы значками без подписи — шапка комнаты на узком экране (там, где чипы со словами не помещаются). */
.bt-micons { display: none; align-items: center; gap: 4px; flex: none; }
.bt-mi { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 7px; background: var(--tint-06); color: var(--primary-text); }
.bt-mi--txt { width: auto; padding: 0 6px; color: var(--text-2); font: 700 12px/1 var(--font-body); white-space: nowrap; font-variant-numeric: tabular-nums; }
.bt-mi[hidden] { display: none; }
.bt-rhead__info > * { flex: none; }
.bt-ava { --sz: 30px; position: relative; flex: none; display: inline-flex; align-items: center; justify-content: center; width: var(--sz); height: var(--sz);
  border-radius: 50%; overflow: hidden; background: var(--surface-active); color: var(--text); font: 700 max(12px, calc(var(--sz) * .42))/1 var(--font-body); box-shadow: 0 0 0 2px var(--surface); }
.bt-ava--bot { background: var(--ab, var(--av-3)); color: var(--white); }
.bt-ava--me { background: var(--primary-fill); color: var(--on-primary); text-shadow: var(--on-primary-shadow); }
.bt-ava--empty { background: rgba(255,255,255,.03); color: var(--text-3); box-shadow: none; border: 1.5px dashed var(--line-chip); }
.bt-ava--ghost { background: var(--surface-2); color: var(--text-3); box-shadow: inset 0 0 0 1px var(--line-btn); }
.bt-ava.is-won { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--win); z-index: 1; }
.bt-ava[data-player] { cursor: pointer; }
.bt-scheme { display: inline-flex; align-items: center; gap: 7px; }
.bt-scheme__team { display: inline-flex; align-items: center; }
.bt-scheme__team > .bt-ava + .bt-ava { margin-left: -6px; }
.bt-vs { flex: none; display: inline-flex; align-items: center; font-style: normal; color: var(--text-3); }
.bt-vsg { display: block; flex: none; }
.bt-name { display: inline-flex; align-items: baseline; gap: 6px; min-width: 0; font: 600 14px/1.2 var(--font-body); color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bt-name small { flex: none; font: 700 12px/1 var(--font-body); color: var(--text-3); padding: 3px 6px; border-radius: 6px; background: var(--tint-07); }
.bt-name--me small { color: var(--on-primary); background: var(--primary-solid); }
.bt-name--empty { color: var(--text-3); }
.bt-name__t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bt-name__vy { display: none; }
.bt-name.is-vy .bt-name__t, .bt-name.is-vy small { display: none; }
.bt-name.is-vy .bt-name__vy { display: inline; }
.bt-seat__name .bt-name__t { white-space: inherit; }
.bt-cthumb { --sz: 56px; position: relative; flex: none; display: inline-flex; align-items: center; justify-content: center; width: var(--sz); height: var(--sz); border-radius: 12px;
  background: var(--s2); overflow: hidden; }
.bt-cthumb img { width: 100%; height: 100%; object-fit: cover; }
.bt-cthumb--gift img { width: 74%; height: 74%; object-fit: contain; }

/* ── Подменю раздела ── */
.bt-subnav { display: flex; gap: 4px; width: max-content; max-width: 100%; margin: 16px 0 14px; padding: 4px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.bt-subnav::-webkit-scrollbar { display: none; }
.bt-subnav__a { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 10px; color: var(--text-2); font: 600 14px var(--font-body); text-decoration: none; white-space: nowrap; transition: background-color var(--dur-1), color var(--dur-1); }
.bt-subnav__a:hover { color: var(--text); background: rgba(255,255,255,.05); }
.bt-subnav__a.is-on { color: var(--text); background: var(--surface-active); }
.bt-subnav__a.is-on .ico { color: var(--primary-text); }
.bt-subnav__n { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--win-soft); color: var(--win); font: 700 12px/20px var(--font-body); text-align: center; }
.bt--game .bt-subnav { display: none; }

/* ── Список: шапка ── */
.bt-lhead { position: relative; display: flex; align-items: center; gap: 12px 20px; margin: 2px 0 16px; }
.bt-lhead__top { position: relative; display: contents; }
.bt-lhead__t { font: 800 26px/1.1 var(--font-display); letter-spacing: -.02em; color: var(--white); white-space: nowrap; }
.bt-lhead__t:focus { outline: none; }
.bt-lhead__row { order: 2; display: flex; align-items: center; gap: 12px; min-width: 0; }
.bt-lhead__go { order: 3; margin-left: auto; height: 44px; padding: 0 18px; border-radius: 12px; gap: 8px; font-size: 15px; }
/* С обложкой: узкий баннер (заголовок и «Создать» на нём), вкладки — строкой ниже. */
.bt-lhead.has-cover { flex-direction: column; align-items: stretch; }
.bt-lhead.has-cover .bt-lhead__top { display: flex; align-items: center; gap: 16px; height: 104px; padding: 0 24px; border-radius: 22px; overflow: hidden; isolation: isolate;
  background: var(--s1); border: 1px solid var(--line); }
.bt-lhead.has-cover .bt-lhead__row { align-self: stretch; }
.bt-lban { position: absolute; inset: 0; z-index: -1; }
.bt-lban__hero { position: absolute; right: 24%; top: 50%; height: 165%; width: auto; transform: translateY(-43%); filter: drop-shadow(0 10px 18px rgba(0,0,0,.35)); }
.bt-lhead.has-cover .bt-lhead__t { font-size: 28px; text-shadow: 0 2px 12px rgba(0,0,0,.4); }
.bt-lhead.has-cover .bt-lhead__go { box-shadow: var(--accent-edge), 0 8px 20px rgba(0,0,0,.35); }
.bt-tabs { display: flex; gap: 2px; padding: 4px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.bt-tabs__b { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: 9px; color: var(--text-3); font: 600 14px var(--font-body); white-space: nowrap; transition: background-color var(--dur-1), color var(--dur-1); }
.bt-tabs__b:hover { color: var(--text); }
.bt-tabs__b.is-on { background: var(--surface-active); color: var(--text); }
.bt-tabs__n { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--tint-07); color: var(--text-3); font: 700 12px/20px var(--font-body); text-align: center; font-variant-numeric: tabular-nums; }
.bt-tabs__b.is-on .bt-tabs__n { background: var(--primary-solid); color: var(--on-primary); }
/* «+N» у «Активных» (телефон): на месте общего числа, та же жёлтая пилюля + мягкое кольцо — видно, что это новое. */
.bt-tabs__new { display: none; }
.bt-tabs__b.is-on .bt-tabs__new { box-shadow: 0 0 0 2px var(--primary-line); animation: bt-in-pop .2s var(--ease) both; }

/* ── Список: карточка батла (телефон — обложка сверху; ПК — строка) ── */
:is(ul, ol).bt-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
/* Карточки ниже первого экрана не рисуются и не качают обложки, пока к ним не подлистали (меньше картинок на старте). */
.bt-li:nth-child(n+4) { content-visibility: auto; contain-intrinsic-size: auto 232px; }
.bt-card { position: relative; display: flex; flex-direction: column; height: 100%; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); overflow: hidden;
  color: var(--text); text-decoration: none; transition: border-color .18s var(--ease), transform .18s var(--ease); }
.bt-card:hover { border-color: var(--line-strong); }
.bt-card:active { transform: scale(.99); }
.bt-card.is-mine { border-color: var(--primary-line); }
.bt-cv { position: relative; display: block; flex: none; height: 116px; overflow: hidden; isolation: isolate; background: var(--bg-inset); }
.bt-cv::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--s1); }
.bt-cv::after { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; background: linear-gradient(180deg, transparent 55%, color-mix(in srgb,var(--bg-inset) 28%,transparent)); }
.bt-cv__r { position: absolute; left: 12px; top: 50%; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; width: 68px; height: 80px; transform: translateY(-50%);
  border-radius: 16px; background: color-mix(in srgb,var(--bg-inset) 58%,transparent); border: 1px solid var(--glass-line); box-shadow: 0 10px 24px rgba(0,0,0,.28); }
.bt-cv__r b { font: 800 30px/1 var(--font-display); letter-spacing: -.04em; color: var(--white); font-variant-numeric: tabular-nums; }
.bt-cv__r small { font: 600 12px/1 var(--font-body); color: var(--text-2); }
.bt-cv__art { position: absolute; left: 88px; right: 8px; top: 0; bottom: 0; display: flex; align-items: center; justify-content: center; }
.bt-cv__c { --sz: 88px; position: relative; flex: none; width: var(--sz); height: var(--sz); border-radius: 18px; box-shadow: 0 12px 22px rgba(0,0,0,.42);
  transform: rotate(calc(var(--k) * 8deg - 7deg)) translateY(calc(var(--k) * 2px)); }
.bt-cv__c + .bt-cv__c { margin-left: -22px; }
.bt-cv[data-n="1"] .bt-cv__c { --sz: 96px; transform: rotate(-5deg); }
.bt-cv[data-n="2"] .bt-cv__c:nth-child(2) { transform: rotate(7deg) translateY(4px); }
.bt-cv__c:nth-child(1) { z-index: 3; } .bt-cv__c:nth-child(2) { z-index: 2; } .bt-cv__c:nth-child(3) { z-index: 1; }
.bt-cv__c img { width: 100%; height: 100%; object-fit: cover; border-radius: 18px; }
.bt-cv__c img.is-gift { object-fit: contain; padding: 10%; background: color-mix(in srgb,var(--bg-inset) 40%,transparent); }
.bt-cv__c i { position: absolute; right: -4px; bottom: -4px; padding: 4px 6px; border-radius: 8px; background: color-mix(in srgb,var(--bg-inset) 86%,transparent); color: var(--white); font: 700 12px/1 var(--font-body); font-style: normal; }
.bt-cv__more { position: absolute; right: 8px; bottom: 8px; z-index: 4; padding: 5px 8px; border-radius: 8px; background: color-mix(in srgb,var(--bg-inset) 70%,transparent); color: var(--white); font: 700 12px/1 var(--font-body); }
.bt-cv__st { position: absolute; right: 8px; top: 8px; z-index: 4; display: flex; }
.bt-cv__st:empty { display: none; }
.bt-chip { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 8px; background: color-mix(in srgb,var(--bg-inset) 72%,transparent); color: var(--text); font: 700 12px/1 var(--font-body); white-space: nowrap; font-variant-numeric: tabular-nums; }
.bt-chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--win); box-shadow: 0 0 0 3px var(--win-soft); animation: bt-pulse 1.2s ease-in-out infinite; }
.bt-chip--win { color: var(--win); }
.bt-cv__prog { position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; height: 3px; background: color-mix(in srgb,var(--bg-inset) 50%,transparent); }
.bt-cv__prog i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--win); transition: width .6s var(--ease); }
@keyframes bt-pulse { 50% { opacity: .45; } }
.bt-card__body { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "info who" "cta cta"; align-items: center; gap: 10px 10px; padding: 10px 12px 12px; }
.bt-card__info { grid-area: info; display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; min-width: 0; }
.bt-card__who { grid-area: who; display: flex; justify-content: flex-end; min-width: 0; }
.bt-card__cta { grid-area: cta; display: flex; min-width: 0; }
.bt-who { display: inline-flex; align-items: center; gap: 6px; }
.bt-who__team { display: inline-flex; align-items: center; }
.bt-who__team > .bt-ava + .bt-ava { margin-left: -7px; }
.bt-cta { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 12px 0 16px; border-radius: 12px; pointer-events: none;
  background: var(--surface-3); border: 1px solid var(--line-btn); color: var(--text); font: 700 15px/1 var(--font-body); white-space: nowrap; transition: background-color .18s; }
.bt-cta .ico { color: var(--text-2); }
.bt-card:hover .bt-cta { background: var(--surface-active); }
.bt-cta--play { justify-content: space-between; background: var(--primary-fill); border-color: transparent; color: var(--on-primary); box-shadow: var(--accent-edge); pointer-events: auto; cursor: pointer; }
.bt-cta--play.is-busy { opacity: .7; cursor: progress; }
.bt-card:hover .bt-cta--play { background: var(--primary-fill-hover); }
.bt-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 32px 20px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); text-align: center; color: var(--text-2); font-size: 14px; }
.bt-empty b { font: 700 16px/1.3 var(--font-display); color: var(--text-2); }
/* Батл, добавленный в конец списка на лету, появляется мягко (порядок видимых карточек не меняется). */
.bt-li.is-new { animation: bt-in-up .24s var(--ease) both; }
/* «Новые батлы N» (ПК) — справа в строке вкладок, своё место, НЕ поверх карточек. Высота строки задана вкладками (46),
   кнопка ниже её (36) — появление/скрытие ничего не сдвигает. На телефоне вместо неё «+N» у вкладки «Активные». */
.bt-newpill { flex: none; margin-left: auto; display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 7px 0 14px; border-radius: 10px; border: 1px solid var(--line-btn);
  background: var(--surface-3); color: var(--text); font: 600 14px/1 var(--font-body); white-space: nowrap; animation: bt-in-fade .2s var(--ease) both; cursor: pointer;
  transition: background-color var(--dur-1), border-color var(--dur-1); }
.bt-newpill:hover { background: var(--surface-active); border-color: var(--line-strong); }
.bt-newpill[hidden] { display: none; }
.bt-newpill b { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center; background: var(--primary-solid); color: var(--on-primary); font: 700 12px/1 var(--font-body); font-variant-numeric: tabular-nums; }
@container bt (min-width: 760px) {
  :is(ul, ol).bt-list { gap: 10px; }
  .bt-li:nth-child(n+4) { contain-intrinsic-size: auto 134px; }
  .bt-card { flex-direction: row; align-items: stretch; min-height: 132px; }
  .bt-cv { flex: 0 0 min(40%, 340px); height: auto; min-height: 132px; }
  .bt-cv__c { --sz: 96px; }
  .bt-cv__c + .bt-cv__c { margin-left: -30px; }
  .bt-cv[data-n="1"] .bt-cv__c { --sz: 104px; }
  .bt-cv__art { left: 96px; }
  .bt-cv__r { left: 16px; width: 70px; height: 86px; }
  .bt-card__body { flex: 1; grid-template-columns: minmax(0, 1fr) auto minmax(190px, 220px); grid-template-areas: "info who cta"; gap: 16px 20px; padding: 16px 16px 16px 20px; }
  .bt-card__info { flex-direction: column; align-items: flex-start; gap: 10px; }
  .bt-mt b { font-size: 16px; }
  .bt-mt span { font-size: 14px; }
  .bt-who .bt-ava { --sz: 32px !important; }
  .bt-cta { height: 48px; }
}

/* ── Создание ── */
.bt-head { display: flex; align-items: center; gap: 12px; margin: 2px 0 14px; }
.bt-head .bt-icon { margin-left: auto; }
.bt-h1 { font: 800 24px/1.1 var(--font-display); letter-spacing: -.02em; }
.bt-h1:focus { outline: none; }
.bt-sec { margin-top: 18px; min-width: 0; }
.bt-sec__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.bt-sec__head .bt-h2 { margin: 0; }
.bt-h2 { display: flex; align-items: baseline; gap: 10px; margin: 0 0 10px; font: 700 15px/1.2 var(--font-display); letter-spacing: -.01em; color: var(--text); }
.bt-h2__n { color: var(--text-3); font: 600 13px var(--font-body); }
.bt-cgrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 20px; }
:is(ul, ol).bt-rounds { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 8px; }
.bt-rtile { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; padding: 10px 8px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.bt-rtile__art .bt-cthumb { border-radius: 14px; }
.bt-rtile__name { max-width: 100%; margin-top: 2px; font: 600 13.5px/1.2 var(--font-body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bt-rtile__price { font: 700 13px var(--font-body); color: var(--text-2); font-variant-numeric: tabular-nums; }
.bt-rtile__x { position: absolute; top: 6px; right: 6px; z-index: 2; display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 8px; background: color-mix(in srgb,var(--bg-inset) 60%,transparent); color: var(--text-3); }
.bt-rtile__x::after { content: ""; position: absolute; inset: -9px; }
.bt-rtile__x:hover { color: var(--text); }
.bt-rtile--add { padding: 0; border: 0; background: none; }
.bt-radd { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 100%; min-height: 172px; border-radius: 16px; border: 1.5px dashed var(--line-chip); color: var(--text-2);
  transition: border-color var(--dur-2), color var(--dur-2), background-color var(--dur-2); }
.bt-radd:hover:not(:disabled) { border-color: var(--primary-line); color: var(--text); background: var(--primary-soft); }
.bt-radd:disabled { opacity: .45; }
.bt-radd__ico { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 14px; background: var(--primary-soft); color: var(--primary-text); }
.bt-radd b { font: 700 14px/1.2 var(--font-body); text-align: center; }
.bt-step { display: inline-flex; align-items: center; gap: 2px; margin-top: 4px; padding: 2px; border-radius: 10px; background: var(--bg-inset); border: 1px solid var(--line); }
.bt-step button { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 8px; color: var(--text-2); }
.bt-step button:hover:not(:disabled) { background: var(--tint-07); color: var(--text); }
.bt-step button:disabled { opacity: .35; }
.bt-step b { min-width: 24px; text-align: center; font: 700 14.5px var(--font-body); font-variant-numeric: tabular-nums; }
.bt-step--sm button { width: 30px; height: 30px; }
.bt-seg { display: flex; gap: 2px; padding: 4px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.bt-seg__b { flex: 1 1 0; min-width: 0; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 8px; border-radius: 9px; color: var(--text-2);
  font: 600 14.5px var(--font-body); white-space: nowrap; transition: background-color var(--dur-1), color var(--dur-1), box-shadow var(--dur-1); }
.bt-seg__b b { font: 700 13.5px/1 var(--font-display); letter-spacing: -.01em; }
.bt-seg__b .ico { color: var(--text-3); }
.bt-seg__b:hover { color: var(--text); }
.bt-seg__b.is-on { background: var(--surface-active); color: var(--text); box-shadow: inset 0 0 0 1px var(--primary-line); }
.bt-seg__b.is-on .ico { color: var(--primary-text); }
.bt-mchips { display: flex; flex-wrap: wrap; gap: 8px; }
.bt-mchip { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 13px 0 11px; border-radius: 11px; background: var(--surface); border: 1px solid var(--line-btn); color: var(--text-2);
  font: 600 14px var(--font-body); white-space: nowrap; transition: background-color var(--dur-1), border-color var(--dur-1), color var(--dur-1); }
.bt-mchip .ico { color: var(--text-3); }
.bt-mchip:hover { color: var(--text); border-color: var(--line-chip); }
.bt-mchip.is-on { background: var(--primary-soft); border-color: var(--primary-line); color: var(--text); }
.bt-mchip.is-on .ico { color: var(--primary-text); }
.bt-mchip.is-blocked { opacity: .4; }
.bt-mnote { display: flex; flex-direction: column; gap: 4px; margin-top: 10px; font: 500 13px/1.4 var(--font-body); color: var(--text-3); }
.bt-mnote b { color: var(--text-2); font-weight: 600; }
.bt-mnote:empty { display: none; }
.bt-range { display: flex; flex-direction: column; gap: 6px; max-width: 420px; margin-top: 12px; cursor: default; }
.bt-range__txt { font: 500 13px var(--font-body); color: var(--text-2); }
.bt-range__txt b { font: 700 14px/1 var(--font-display); color: var(--text); }
.bt-range input { --p: 87.5%; width: 100%; height: 26px; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; }
.bt-range input::-webkit-slider-runnable-track { height: 6px; border-radius: 99px; background: linear-gradient(90deg, var(--primary-solid) var(--p), rgba(255,255,255,.1) var(--p)); }
.bt-range input::-moz-range-track { height: 6px; border-radius: 99px; background: linear-gradient(90deg, var(--primary-solid) var(--p), rgba(255,255,255,.1) var(--p)); }
.bt-range input::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -8px; border-radius: 50%; background: var(--white); box-shadow: 0 0 0 4px var(--primary-line), 0 3px 8px rgba(0,0,0,.45); }
.bt-range input::-moz-range-thumb { width: 22px; height: 22px; border: 0; border-radius: 50%; background: var(--white); box-shadow: 0 0 0 4px var(--primary-line), 0 3px 8px rgba(0,0,0,.45); }
.bt-range input:focus-visible { outline: 2px solid var(--text); outline-offset: 4px; border-radius: 8px; }
.bt-sum { position: sticky; bottom: 16px; z-index: 6; margin-top: 22px; }
.bt-sum__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 8px 8px 8px 20px; border-radius: 18px;
  background: color-mix(in srgb,var(--bg-inset) 92%,transparent); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border: 1px solid var(--line-strong); box-shadow: 0 10px 26px -10px rgba(0,0,0,.55); }
.bt-sum__txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.bt-sum__txt b { font: 700 15px/1.1 var(--font-body); }
.bt-sum__txt span { font: 500 13px/1.2 var(--font-body); color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bt-go { position: relative; display: inline-flex; align-items: center; justify-content: space-between; gap: 14px; min-width: 240px; height: 52px; padding: 0 10px 0 20px; border-radius: 14px;
  background: var(--primary-fill); color: var(--on-primary); box-shadow: var(--accent-edge); transition: transform var(--dur-2) var(--ease), opacity var(--dur-2); }
.bt-go:hover:not(:disabled) { background: var(--primary-fill-hover); }
.bt-go:active:not(:disabled) { transform: scale(.98); background: var(--primary-fill-press); }
.bt-go:disabled { opacity: .45; cursor: not-allowed; }
.bt-go.is-busy { opacity: .7; cursor: progress; }
.bt-go__l { font: 700 16px/1 var(--font-body); white-space: nowrap; }
.bt-go__p { display: inline-flex; align-items: center; height: 34px; padding: 0 11px; border-radius: 9px; background: var(--btn-price-bg); border: 1px solid var(--btn-price-bg);
  font: 700 15px/1 var(--font-body); white-space: nowrap; font-variant-numeric: tabular-nums; }
.bt-go--md { min-width: 0; height: 44px; padding: 0 8px 0 16px; border-radius: 12px; }
.bt-go--md .bt-go__l { font-size: 15px; }
.bt-go--md .bt-go__p { height: 30px; padding: 0 9px; border-radius: 8px; font-size: 14px; }

/* ── Выбор кейсов (диалог) ── */
.bt-dlg--picker .cs-dlg__panel { display: flex; flex-direction: column; width: min(1080px, 100%); max-height: calc(100dvh - 48px); }
.bt-dlg--picker .cs-dlg__head, .bt-pctrl, .bt-pauto, .bt-pfoot { flex: none; }
.bt-dlg--rules .cs-dlg__panel { width: min(620px, 100%); }
.bt-pctrl { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.bt-psearch { flex: 1 1 260px; position: relative; display: flex; align-items: center; }
.bt-psearch .ico { position: absolute; left: 14px; color: var(--text-3); pointer-events: none; }
.bt-psearch .input { width: 100%; height: 44px; padding-left: 42px; }
.bt-pselect .select { height: 44px; }
.bt-pselect--sec .select { min-width: 190px; }
.bt-sort { display: flex; gap: 2px; padding: 3px; border-radius: 12px; background: var(--surface-sunk); border: 1px solid var(--line); }
.bt-sort__b { height: 36px; padding: 0 12px; border-radius: 9px; color: var(--text-3); font: 600 13.5px var(--font-body); white-space: nowrap; }
.bt-sort__b:hover { color: var(--text); }
.bt-sort__b[aria-checked="true"] { background: var(--surface-active); color: var(--text); }
.bt-pctrl .bt-sort { align-self: stretch; }
.bt-pfil { display: contents; }
.bt-pauto { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; margin-top: 12px; padding: 12px 14px; border-radius: 16px; background: rgba(255,255,255,.05); border: 1px solid var(--line); }
.bt-pauto__t { display: inline-flex; align-items: center; gap: 8px; align-self: center; margin-right: auto; font: 700 14.5px var(--font-body); }
.bt-pauto__t .ico { color: var(--primary-text); }
.bt-pauto__f { display: flex; flex-direction: column; gap: 4px; }
.bt-pauto__f span { font: 500 12px var(--font-body); color: var(--text-3); }
.bt-pauto__f .input { width: 130px; height: 42px; }
.bt-pauto .btn { height: 42px; }
:is(ul, ol).bt-pgrid { flex: 0 1 auto; min-height: 150px; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); align-content: start; gap: 8px; margin-top: 14px; max-height: min(56vh, 600px); overflow: auto; overscroll-behavior: contain; padding: 2px; }
.bt-ptile { position: relative; display: flex; flex-direction: column; align-items: center; border-radius: 16px; background: rgba(255,255,255,.05); border: 1.5px solid transparent; transition: border-color var(--dur-1), background-color var(--dur-1); }
.bt-ptile:hover { background: var(--tint-08); }
.bt-ptile.is-on { border-color: var(--primary-solid); background: var(--primary-soft); }
.bt-ptile__n { position: absolute; top: 6px; right: 6px; z-index: 2; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px; background: var(--primary-fill); color: var(--on-primary);
  font: 800 13px/24px var(--font-body); text-align: center; font-variant-numeric: tabular-nums; box-shadow: 0 4px 10px rgba(0,0,0,.35); pointer-events: none; }
.bt-ptile__main { display: flex; flex-direction: column; align-items: center; gap: 3px; width: 100%; padding: 8px 8px 10px; border-radius: 14px; color: var(--text); }
.bt-ptile__art { display: block; width: 100%; max-width: 120px; }
.bt-ptile__name { max-width: 100%; font: 600 13.5px/1.2 var(--font-body); text-align: center; white-space: normal; overflow-wrap: normal; hyphens: manual;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.bt-ptile__price { font: 700 13px var(--font-body); color: var(--text-2); }
/* Длинное слово в названии («Франкенштейн») — плотнее, а не обрезано краем плитки. */
.bt-ptile__name--lw1 { letter-spacing: -.02em; }
.bt-ptile__name--lw { letter-spacing: -.03em; overflow-wrap: anywhere; }
.bt-ptile .bt-step { margin: 0 0 10px; }
.bt-pempty { grid-column: 1 / -1; padding: 40px; text-align: center; color: var(--text-3); }
.bt-pmore { grid-column: 1 / -1; height: 1px; }
.bt-pfoot { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.bt-pfoot__sum { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 18px; margin-right: auto; color: var(--text-2); font: 500 14px var(--font-body); }
.bt-pfoot__sum b { color: var(--text); font: 700 16px var(--font-display); }
.bt-pfoot__sum b.is-over { color: var(--danger-text); }
.bt-pfoot__note { color: var(--win); font: 600 13px var(--font-body); }
.bt-rules { display: flex; flex-direction: column; gap: 16px; margin-top: 14px; max-height: min(64vh, 640px); overflow: auto; padding-right: 4px; }
.bt-rules h3 { display: flex; align-items: center; gap: 8px; font: 700 14.5px var(--font-display); margin-bottom: 8px; }
.bt-rules h3 .ico { color: var(--primary-text); }
.bt-rules__steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; color: var(--text-2); font-size: 14px; line-height: 1.5; }
.bt-rules__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.bt-rules__list li { display: flex; flex-direction: column; gap: 2px; padding: 9px 12px; border-radius: 12px; background: rgba(255,255,255,.05); }
.bt-rules__list b { font: 600 14px var(--font-body); }
.bt-rules__list span { font: 500 13.5px/1.5 var(--font-body); color: var(--text-2); }

/* ── Комната: шапка (одна строка на ПК) ── */
.bt-rhead { display: flex; align-items: center; gap: 12px; min-height: 52px; margin: 2px 0 10px; }
.bt-rhead__t { flex: none; font: 800 18px/1 var(--font-display); letter-spacing: -.02em; white-space: nowrap; }
.bt-rhead__t span { color: var(--text-3); }
.bt-rhead__t:focus { outline: none; }
.bt-rhead__info { flex: none; display: inline-flex; align-items: center; gap: 8px; min-width: 0; height: 40px; padding: 0 10px; border-radius: 12px; color: var(--text-3); transition: background-color var(--dur-1); }
.bt-rhead__info:hover { background: rgba(255,255,255,.05); color: var(--text-2); }
.bt-rhead__info .bt-tags { flex-wrap: nowrap; }
.bt-car { position: relative; flex: 1 1 auto; min-width: 0; height: 52px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.bt-car.is-over { justify-content: flex-start; -webkit-mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 16px), transparent); mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 16px), transparent); }
.bt-car.is-over.is-start { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 16px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 16px), transparent); }
.bt-car.is-over.is-end { -webkit-mask-image: linear-gradient(90deg, transparent, #000 16px); mask-image: linear-gradient(90deg, transparent, #000 16px); }
.bt-car__track { display: flex; gap: 6px; padding: 4px; transition: transform .5s var(--ease); }
.bt-car__i { position: relative; flex: none; display: flex; border-radius: 12px; opacity: .38; transition: opacity .3s, box-shadow .3s; }
.bt-car__i .bt-cthumb { --sz: 44px !important; border-radius: 12px; }
.bt-car__i.is-done { opacity: .62; }
.bt-car__i.is-cur { opacity: 1; box-shadow: 0 0 0 2px var(--primary-solid); }
.bt-car__i--tie { box-shadow: 0 0 0 1.5px var(--violet-text); }
.bt-car__n { position: absolute; left: 2px; top: 2px; z-index: 2; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 6px; background: color-mix(in srgb,var(--bg-inset) 82%,transparent); color: var(--text-2);
  font: 700 12px/18px var(--font-body); text-align: center; font-variant-numeric: tabular-nums; pointer-events: none; }
.bt-car__i.is-cur .bt-car__n { background: var(--primary-solid); color: var(--on-primary); }
.bt-rhead__nums { flex: none; display: flex; gap: 16px; }
.bt-rhead__num { display: flex; flex-direction: column; gap: 4px; }
.bt-rhead__num small { font: 500 12px/1 var(--font-body); color: var(--text-3); white-space: nowrap; }
.bt-rhead__num b { font: 700 15px/1 var(--font-body); white-space: nowrap; font-variant-numeric: tabular-nums; }
.bt-rhead__tools { flex: none; display: flex; gap: 6px; }

/* ── Комната: арена ── */
.bt-stage { position: relative; padding: var(--ar-pad); border-radius: 22px; isolation: isolate; background: var(--surface-sunk); border: 1px solid var(--line-hero); }
.bt-pls { display: grid; gap: var(--lane-gap); align-items: stretch; }
.bt-pvs { min-width: 0; }
.bt-pl { min-width: 0; display: flex; flex-direction: column; container: bt-pl / inline-size; }
.bt-pl__bar { position: relative; display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px 0 6px; border-radius: 12px; background: rgba(255,255,255,.04);
  transition: box-shadow .3s, background-color .3s; }
.bt-pl__ava { display: inline-flex; flex: none; }
.bt-pl__name { min-width: 0; flex: 1; overflow: hidden; display: flex; align-items: center; }
.bt-pl__name .bt-name { max-width: 100%; font-size: 13.5px; }
.bt-pl.is-lead .bt-pl__sum { color: var(--win); }
.bt-pl__sum { flex: none; font: 800 14.5px/1 var(--font-body); white-space: nowrap; font-variant-numeric: tabular-nums; }
.bt-pls .bt-pl__sum.is-s { font-size: 12.5px; }
.bt-pls .bt-pl__sum.is-s.is-xs { font-size: 12px; }
.bt-pl__sum.is-bump { animation: bt-bump .55s var(--ease); }
@keyframes bt-bump { 30% { transform: scale(1.12); color: var(--win); } }
.bt-pl.is-me .bt-pl__bar { background: var(--primary-soft); }
/* Ожидание: каждое место показано один раз — крупно на арене (аватар, «Вы», «Бот»/«Играть»); ряд полос появится со стартом.
   До первого раунда суммы («0 ₽») не показываем. */
.bt-stage.is-waiting .bt-pls { display: none; }
.bt-stage.is-waiting .bt-arena { margin-top: 0; }
.bt-stage.is-pre .bt-pl__sum { visibility: hidden; }
.bt-stage.is-off .bt-pls { display: none; }
.bt-stage.is-off .bt-arena { margin-top: 0; }
.bt-lane.is-me::after { content: ""; position: absolute; inset: 0; z-index: 4; border-radius: inherit; pointer-events: none; box-shadow: inset 0 0 0 1.5px var(--primary-line); }
.bt-pl.is-winner .bt-pl__bar { background: var(--win-soft); box-shadow: inset 0 0 0 1px var(--win-line); }
.bt-pl.is-winner .bt-pl__sum { color: var(--win); }
.bt-pl.is-loser .bt-pl__bar { opacity: .6; }
.bt-pl.is-join .bt-pl__ava .bt-ava { animation: bt-land .55s cubic-bezier(.2,1.5,.4,1) both; }
.bt-arena { position: relative; margin-top: 8px; isolation: isolate; }
.bt-lanes { display: grid; gap: var(--lane-gap); height: var(--lanes-h); }
.bt-arena.is-final .bt-lanes { position: absolute; top: 0; left: 0; right: 0; }
.bt-arena.is-final .bt-ov { position: relative; inset: auto; min-height: var(--lanes-h); }
.bt-lane { position: relative; min-width: 0; border-radius: 16px; background: var(--well); overflow: hidden; box-shadow: inset 0 0 0 1px rgba(255,255,255,.04); transition: opacity .4s, filter .4s; }
.bt-lane.is-out { opacity: .3; filter: grayscale(.6); }
.bt-lvs { display: flex; align-items: center; justify-content: center; }
.bt-lvs span { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--surface-3); border: 1px solid var(--line-chip); color: var(--text-2); }
.bt-lvs .bt-vsg { width: 16px; height: 9px; }
/* Барабан: центральная рамка, затемнение вне центра; двигается только transform ленты. */
.bt-reel { --vh: 118px; --gap: 8px; position: absolute; inset: 0; overflow: hidden; }
.bt-reel::before { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(180deg, color-mix(in srgb,var(--bg-inset) 96%,transparent) 0, color-mix(in srgb,var(--bg-inset) 62%,transparent) calc(50% - var(--vh) / 2 - 18px), transparent calc(50% - var(--vh) / 2 - 6px),
    transparent calc(50% + var(--vh) / 2 + 6px), color-mix(in srgb,var(--bg-inset) 62%,transparent) calc(50% + var(--vh) / 2 + 18px), color-mix(in srgb,var(--bg-inset) 96%,transparent) 100%); }
.bt-strip { position: absolute; left: 10px; right: 10px; top: 0; display: flex; flex-direction: column; gap: var(--gap); will-change: transform; }
.bt-strip.is-b1 { filter: blur(.6px); }
.bt-strip.is-b2 { filter: blur(1.3px); }
.bt-mark { position: absolute; left: 5px; right: 5px; top: 50%; z-index: 3; height: calc(var(--vh) + 10px); transform: translateY(-50%); pointer-events: none; border-radius: 17px;
  border: 1.5px solid var(--glass-line); transition: opacity .3s, border-color .3s; }
.bt-mark::before, .bt-mark::after { content: ""; position: absolute; top: 50%; width: 0; height: 0; border: 6px solid transparent; transform: translateY(-50%); }
.bt-mark::before { left: -6px; border-left: 8px solid var(--primary-solid); }
.bt-mark::after { right: -6px; border-right: 8px solid var(--primary-solid); }
.bt-reel.is-stopped .bt-mark { border-color: transparent; }
.bt-reel.is-stopped .bt-mark::before, .bt-reel.is-stopped .bt-mark::after { opacity: .5; }
.bt-it { position: relative; flex: none; height: var(--vh); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-width: 0; padding: 6px 8px;
  border-radius: 14px; overflow: hidden; background: var(--s2); box-shadow: inset 0 0 0 1px var(--s-line);
  transition: opacity .35s, transform .35s var(--ease), box-shadow .35s; }
/* R1: редкость предмета — чёткая нижняя полоска, нейтральная поверхность остаётся одинаковой у всех цен. */
.bt-it::after, .bt-drop__img::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; height: 4px; background: rgb(var(--tc)); pointer-events: none; }
.bt-it__img { position: relative; display: flex; align-items: center; justify-content: center; width: calc(var(--vh) * .54); height: calc(var(--vh) * .54); flex: none; }
.bt-it__img img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 6px 8px rgba(0,0,0,.45)); }
.bt-it__t { display: flex; flex-direction: column; align-items: center; gap: 2px; max-width: 100%; min-width: 0; }
.bt-it__n { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 600 12px/1.15 var(--font-body); color: var(--text-3); transition: color .3s; }
.bt-it__p { max-width: 100%; overflow: hidden; text-overflow: clip; white-space: nowrap; font: 800 13px/1.15 var(--font-body); color: var(--text-2); font-variant-numeric: tabular-nums; transition: color .3s; }
.bt-it__p.is-s { font-size: 12px; letter-spacing: -.02em; }
.bt-reel.is-stopped .bt-it:not(.is-win) { opacity: .32; }
.bt-it.is-win { z-index: 1; transform: scale(var(--win-s, 1.05)); background: var(--s2);
  box-shadow: inset 0 0 0 2px var(--s-line-hi); }
.bt-it.is-win .bt-it__n { color: var(--text); }
.bt-it.is-win .bt-it__p { color: var(--white); }
.bt-it.is-win:not(.is-still) { animation: bt-it-win .5s cubic-bezier(.2,1.4,.4,1) both; }
@keyframes bt-it-win { 0% { transform: scale(.97); } 55% { transform: scale(calc(var(--win-s, 1.05) + .04)); } 100% { transform: scale(var(--win-s, 1.05)); } }
.bt-arena.is-wide .bt-reel { --vh: 140px; }
.bt-arena.is-wide { --win-s: 1.02; }
.bt-arena.is-wide .bt-it__n { font-size: 13.5px; }
.bt-arena.is-wide .bt-it__p { font-size: 15px; }
.bt-it--c { padding: 6px 4px; }
.bt-it--c .bt-it__img { width: calc(var(--vh) * .58); height: calc(var(--vh) * .58); }
.bt-it--c .bt-it__n { display: none; }
.bt-it--c .bt-it__p { font-size: 12px; }
.bt-it.is-fit .bt-it__img, .bt-drop.is-fit .bt-drop__img { container-type: size; }
.bt-it.is-fit .bt-it__img img, .bt-drop.is-fit .bt-drop__img img {
  --rw: calc(min(100cqw / var(--bw), 100cqh / var(--bh)) * .94);
  position: absolute; left: calc(50% - var(--rw) * var(--cx)); top: calc(50% - var(--rw) * var(--cy)); width: var(--rw); height: auto; max-width: none; max-height: none; }
.bt-drop.is-fit .bt-drop__img img { --rw: calc(min(100cqw / var(--bw), 100cqh / var(--bh)) * .84); }
.bt-lane.is-rare .bt-it.is-win { animation: bt-rare 1.4s var(--ease) both; }
@keyframes bt-rare { 0% { transform: scale(.97); } 30% { transform: scale(calc(var(--win-s, 1.05) + .04)); } 100% { transform: scale(var(--win-s, 1.05)); } }
.bt-reel.is-robbed .bt-it.is-win, .bt-reel.is-grabbing .bt-it.is-win { visibility: hidden; }
/* «+N ₽» — над своей выпавшей карточкой. */
.bt-lane__plus { position: absolute; left: 50%; top: calc(50% - var(--vh-plus, 59px) - 6px); z-index: 5; transform: translate(-50%, -100%); padding: 5px 9px; border-radius: 9px;
  background: color-mix(in srgb,var(--win) 16%,var(--bg-inset)); border: 1px solid var(--win-line); color: var(--win); font: 800 13px/1 var(--font-body); white-space: nowrap; font-variant-numeric: tabular-nums; opacity: 0; pointer-events: none; }
.bt-arena { --vh-plus: 59px; }
.bt-arena.is-wide { --vh-plus: 70px; }
.bt-lane__plus.is-s { padding: 4px 6px; font-size: 12px; letter-spacing: -.02em; }
.bt-lane__plus.is-s.is-xs { padding: 3px 4px; border-radius: 7px; letter-spacing: -.04em; }
.bt-lane__plus.is-best { background: var(--win-fill); color: var(--on-fill); border-color: var(--glass-line); text-shadow: 0 1px 1px rgba(0,0,0,.18); }
.bt-lane__plus.is-on { animation: bt-plus var(--plus-dur, 1.6s) var(--ease) both; }
.bt-lane__plus.is-out { animation: bt-plus-out .2s ease-out both; }
@keyframes bt-plus-out { from { opacity: .85; } to { opacity: 0; transform: translate(-50%, calc(-100% - 6px)); } }
@keyframes bt-plus { 0% { opacity: 0; transform: translate(-50%, calc(-100% + 8px)); } 14% { opacity: 1; transform: translate(-50%, -100%); } 80% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, calc(-100% - 8px)); } }
.bt-arena.is-claw .bt-lane__plus { visibility: hidden; }

/* ── Ожидание игроков ── */
.bt-slot { position: absolute; inset: 0; z-index: 3; display: none; align-items: center; justify-content: center; padding: 12px; container-type: inline-size; }
.bt-arena.is-waiting .bt-slot { display: flex; }
.bt-arena.is-waiting .bt-reel { visibility: hidden; }
.bt-arena.is-waiting .bt-lanes { height: 230px; }
.bt-seat { display: flex; flex-direction: column; align-items: center; gap: 9px; text-align: center; min-width: 0; max-width: 100%; }
.bt-seat__ava { position: relative; display: inline-flex; }
.bt-seat__ring, .bt-seat__pulse { position: absolute; inset: -6px; border-radius: 50%; pointer-events: none; }
.bt-seat__ring { border: 2px solid var(--pc); opacity: .9; box-shadow: 0 0 24px color-mix(in srgb, var(--pc) 30%, transparent); }
.bt-seat__pulse { border: 2px dashed var(--line-chip); animation: bt-breath 2.4s ease-in-out infinite; }
.bt-seat .bt-ava--empty { border: 0; }
.bt-seat__name { max-width: 100%; font: 600 14.5px var(--font-body); }
.bt-seat__name .bt-name { font-size: 14.5px; }
.bt-seat__ok { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: 999px; background: var(--win-soft); color: var(--win); font: 700 12.5px var(--font-body); }
.bt-seat__wait { display: inline-flex; align-items: center; gap: 6px; color: var(--text-3); font: 500 13px var(--font-body); }
.bt-seat__wait::before { content: ""; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--line-chip); border-top-color: var(--text-2); animation: bt-spin .9s linear infinite; }
.bt-seat__btn { max-width: 100%; white-space: nowrap; gap: 8px; }
.bt-seat__btn[data-join] { height: 44px; padding: 0 8px 0 14px; border-radius: 12px; justify-content: space-between; }
.bt-seat__btn .bt-pill { height: 28px; font-size: 13.5px; }
.bt-seat__btn.is-busy { opacity: .6; cursor: progress; }
@container (max-width: 179.98px) {
  .bt-seat__btn[data-join] { flex-direction: column; justify-content: center; gap: 1px; height: auto; min-height: 48px; padding: 6px 14px; }
  .bt-seat__btn[data-join] .bt-pill { height: auto; padding: 0; background: none; border: 0; font-size: 12.5px; font-weight: 600; opacity: .8; }
  .bt-seat__btn[data-bot] .ico { display: none; }
}
@keyframes bt-breath { 0%, 100% { opacity: .45; transform: scale(1); } 50% { opacity: 1; transform: scale(1.04); } }
.bt-seat.is-join .bt-seat__ava .bt-ava { animation: bt-land .6s cubic-bezier(.2,1.5,.4,1) both; }
.bt-seat.is-join .bt-seat__ring { animation: bt-ring-in .5s .1s var(--ease) both; }
.bt-seat.is-join .bt-seat__name, .bt-seat.is-join .bt-seat__ok { animation: bt-in-up .45s .18s var(--ease) both; }
@keyframes bt-land { 0% { transform: translateY(-18px) scale(.6); opacity: 0; } 60% { opacity: 1; } 100% { transform: none; opacity: 1; } }
@keyframes bt-ring-in { from { transform: scale(.7); opacity: 0; } }
.bt-arena__banner { position: absolute; left: 12px; right: 12px; top: 12px; z-index: 6; display: flex; justify-content: center; pointer-events: none; }
.bt-arena__banner > * { pointer-events: auto; max-width: 100%; }
.bt-arena.is-claw .bt-arena__banner { top: auto; bottom: 12px; }
.bt-arena.is-waiting .bt-arena__banner { position: relative; left: auto; right: auto; top: auto; display: block; margin-bottom: 8px; }
.bt-wait { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 10px 10px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); animation: bt-in-up .4s var(--ease) both; }
.bt-wait__spin { flex: none; width: 24px; height: 24px; border-radius: 50%; border: 3px solid var(--primary-soft); border-top-color: var(--primary-text); animation: bt-spin .9s linear infinite; }
@keyframes bt-spin { to { transform: rotate(360deg); } }
.bt-wait__t { flex: 1 1 200px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.bt-wait__t b { font: 700 15px var(--font-body); }
.bt-wait__t b span { color: var(--primary-text); }
.bt-wait__t > span { font: 500 13px var(--font-body); color: var(--text-3); }
.bt-wait__acts { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-left: auto; }
.bt-wait__acts .btn { height: 40px; }
.bt-join { display: flex; align-items: center; gap: 8px; max-width: 420px; height: 44px; padding: 0 6px 0 14px; border-radius: 12px; background: var(--bg-inset); border: 1px solid var(--line-strong); }
.bt-join__l { flex: none; font: 600 12.5px var(--font-body); color: var(--text-3); }
.bt-join__u { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 500 13px var(--font-mono); color: var(--text-2); }
.bt-join__c { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 10px; background: var(--primary-fill); color: var(--on-primary); }
.bt-note { display: inline-flex; align-items: center; gap: 9px; padding: 8px 13px; border-radius: 12px; background: color-mix(in srgb,var(--bg-inset) 92%,transparent); border: 1px solid var(--line-chip); font: 500 13.5px/1.3 var(--font-body); color: var(--text-2);
  box-shadow: 0 10px 30px rgba(0,0,0,.4); animation: bt-in-up .35s var(--ease) both; }
.bt-note > .ico { flex: none; color: var(--primary-text); }
.bt-note b { flex: none; font: 700 14px var(--font-body); color: var(--text); }
.bt-note > span { min-width: 0; }
.bt-note--claw { padding: 6px 12px 6px 10px; gap: 6px; }
.bt-note--claw b { font-size: 13px; }

/* ── Отсчёт, джекпот ── */
.bt-ov { position: absolute; inset: 0; z-index: 7; display: none; align-items: center; justify-content: center; padding: 16px; border-radius: 16px; }
.bt-ov.is-on { display: flex; }
.bt-ov--cd, .bt-ov--jp { background: color-mix(in srgb,var(--bg-inset) 55%,transparent); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); animation: bt-in-fade .24s both; }
.bt-ov--fin { background: color-mix(in srgb,var(--bg-inset) 62%,transparent); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.bt-cd { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.bt-cd__ring { position: relative; display: flex; align-items: center; justify-content: center; width: 120px; height: 120px; }
.bt-cd__ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.bt-cd__trk { fill: color-mix(in srgb,var(--bg-inset) 60%,transparent); stroke: var(--tint-08); stroke-width: 6; }
.bt-cd__arc { fill: none; stroke: var(--primary-solid); stroke-width: 6; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 0; }
.bt-cd__arc.is-run { animation: bt-cd-arc 1s linear both; }
@keyframes bt-cd-arc { to { stroke-dashoffset: 100; } }
.bt-cd b { position: relative; font: 800 52px/1 var(--font-display); color: var(--white); font-variant-numeric: tabular-nums; }
.bt-cd b.is-tick { animation: bt-cd .6s cubic-bezier(.2,1.2,.4,1) both; }
@keyframes bt-cd { 0% { transform: scale(1.5); opacity: 0; filter: blur(8px); } 100% { transform: scale(1); opacity: 1; filter: blur(0); } }
.bt-cd__t { font: 700 12px var(--font-display); text-transform: uppercase; letter-spacing: .14em; color: var(--text-2); }
.bt-jp { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.bt-jp__t { font: 700 18px var(--font-display); }
.bt-jp__s { color: var(--text-2); font-size: 14.5px; }
.bt-jp__s b { color: var(--win); }
.bt-jp__track { position: relative; width: 100%; height: 96px; margin-top: 10px; border-radius: 18px; overflow: hidden; background: color-mix(in srgb,var(--bg-inset) 70%,transparent); border: 1px solid var(--line-chip);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.bt-jp__strip { position: absolute; left: 0; top: 8px; bottom: 8px; display: flex; will-change: transform; }
.bt-jp__cyc { flex: none; display: flex; width: 640px; height: 100%; }
.bt-jp__seg { flex: 0 0 var(--w); min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; margin-right: 2px; border-radius: 14px; overflow: hidden;
  background: radial-gradient(80% 100% at 50% 100%, color-mix(in srgb, var(--tc) 60%, transparent), color-mix(in srgb, var(--tc) 14%, transparent)); border: 1px solid color-mix(in srgb, var(--tc) 55%, transparent); }
.bt-jp__who { display: flex; }
.bt-jp__who .bt-ava + .bt-ava { margin-left: -8px; }
.bt-jp__seg.is-win { box-shadow: inset 0 0 0 2px var(--white), 0 0 30px var(--tc); }
.bt-jp__ptr { position: absolute; left: 50%; top: 0; bottom: 0; width: 3px; margin-left: -1.5px; z-index: 2; background: var(--white); box-shadow: 0 0 12px 3px rgba(255,255,255,.5); }
.bt-jp__ptr::before, .bt-jp__ptr::after { content: ""; position: absolute; left: 50%; width: 0; height: 0; border-left: 8px solid transparent; border-right: 8px solid transparent; transform: translateX(-50%); }
.bt-jp__ptr::before { top: 0; border-top: 10px solid var(--white); }
.bt-jp__ptr::after { bottom: 0; border-bottom: 10px solid var(--white); }
:is(ul, ol).bt-jp__legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 16px; margin-top: 10px; }
.bt-jp__legend li { display: inline-flex; align-items: center; gap: 7px; font: 600 13px var(--font-body); color: var(--text-2); }
.bt-jp__legend i { width: 10px; height: 10px; border-radius: 3px; background: var(--tc); }
.bt-jrow { display: flex; align-items: center; gap: 7px; }
.bt-jrow i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.bt-frule { display: flex; flex-direction: column; gap: 4px; font-weight: 500; font-size: 13.5px; }

/* ── Итог: карточка RubWin v2 (win-fx.css) прямо на арене. Ленты под ней убраны — без «рамки в рамке». ── */
.bt-arena.is-final .bt-lanes { visibility: hidden; }
.bt-ov--fin { padding: 8px 0; background: none; }
.bt-ov__fb { display: flex; flex-direction: column; align-items: stretch; gap: 8px; width: min(360px, 100%); }
.bt-ov__fbt { margin-bottom: 8px; text-align: center; font: 700 18px/1.3 var(--font-body); color: var(--text); }

/* «Включить звук» — вошли в комнату без жеста: маленькая кнопка снизу арены (затемнённая часть лент). */
.bt-sndon { position: absolute; left: 0; right: 0; bottom: 12px; z-index: 9; width: max-content; margin-inline: auto; display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px 0 12px;
  border-radius: 10px; background: var(--surface-3); border: 1px solid var(--line-btn); color: var(--text); font: 600 13.5px/1 var(--font-body); white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0,0,0,.45); cursor: pointer; animation: bt-in-up .24s var(--ease) both; }
.bt-sndon[hidden] { display: none; }
.bt-sndon .bt-sndon__i { flex: none; color: var(--primary-text); }
.bt-sndon:hover { background: var(--surface-4, var(--surface-3)); border-color: var(--line-strong); }
.bt-sndon:focus-visible { outline: 2px solid rgba(255,255,255,.85); outline-offset: 2px; }
/* 3–4 узкие колонки: круглая кнопка-значок (подпись — для экранного диктора), не закрывает соседние колонки. */
.bt-arena.is-compact .bt-sndon { width: 40px; height: 40px; padding: 0; justify-content: center; border-radius: 50%; }
.bt-arena.is-compact .bt-sndon span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.bt-arena.is-compact .bt-sndon::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid rgba(255,255,255,.4); pointer-events: none; animation: bt-snd-ring 1.8s ease-out infinite; }
@keyframes bt-snd-ring { 0% { opacity: .9; transform: scale(.86); } 70%, 100% { opacity: 0; transform: scale(1.22); } }

/* ── Клешня, вспышки ── */
.bt-fx { position: absolute; inset: 0; z-index: 8; pointer-events: none; overflow: hidden; }
.bt-fly { position: absolute; left: 0; top: 0; will-change: transform; filter: drop-shadow(0 16px 24px rgba(0,0,0,.6)); }
.bt-fly .bt-it { width: 100%; height: 100%; }
.bt-fly--best .bt-it { box-shadow: inset 0 0 0 2px var(--s-line-hi); }
.bt-fly--worst { opacity: .9; }
.bt-claw { position: absolute; left: 0; top: 0; width: 80px; height: 120px; pointer-events: none; will-change: transform; z-index: 2; filter: drop-shadow(0 10px 14px rgba(0,0,0,.6)); }
.bt-claw svg { overflow: visible; }
.bt-claw__arm path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.bt-claw__arm--l { transform-origin: 31px 70px; }
.bt-claw__arm--r { transform-origin: 49px 70px; }
.bt-flash { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 11px 16px; border-radius: 14px; background: color-mix(in srgb,var(--bg-inset) 92%,transparent); border: 1px solid var(--line-chip); font: 700 14.5px var(--font-body); animation: bt-flash 1.8s var(--ease) both; }
@keyframes bt-flash { 0% { opacity: 0; transform: translate(-50%, -40%); } 15%, 80% { opacity: 1; transform: translate(-50%, -50%); } 100% { opacity: 0; } }

/* ── Выпавшее по раундам (история, без повторов сумм) ── */
:is(ul, ol).bt-dt { display: grid; column-gap: var(--lane-gap); row-gap: 6px; margin-top: 10px; padding-inline: calc(var(--ar-pad) + 1px); align-items: stretch; }
:is(ul, ol).bt-dt:empty { display: none; }
.bt-drop { container: bt-dr / inline-size; min-width: 0; display: flex; }
.bt-drop.is-new { animation: bt-drop-in .4s var(--ease) both; animation-delay: calc(var(--i, 0) * 60ms); }
@keyframes bt-drop-in { from { opacity: 0; transform: translateY(-8px); } }
.bt-drop__in { flex: 1; min-width: 0; display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 52px; padding: 5px 12px 5px 5px;
  border-radius: 12px; background: var(--surface); border: 1px solid var(--line); color: var(--text); text-align: left; transition: border-color var(--dur-2), background-color var(--dur-2), opacity .4s; }
.bt-drop__in:hover { border-color: var(--line-chip); background: var(--surface-2); }
.bt-drop__img { position: relative; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; overflow: hidden;
  background: var(--s2); }
.bt-drop__img img { width: 32px; height: 32px; object-fit: contain; }
.bt-drop__txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.bt-drop__txt b { font: 600 13px/1.2 var(--font-body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bt-drop__txt small { display: inline-flex; align-items: center; gap: 4px; font: 600 12px/1.2 var(--font-body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bt-drop__sum { font: 700 13.5px var(--font-body); white-space: nowrap; font-variant-numeric: tabular-nums; }
.bt-drop.is-grab .bt-drop__in { border-color: var(--win-line); }
.bt-drop.is-swap .bt-drop__in { border-color: var(--danger-soft); }
.bt-drop__grab { color: var(--win); }
.bt-drop__lost { color: var(--danger-text); }
.bt-drop.is-lose .bt-drop__in { opacity: .45; }
@container bt-dr (max-width: 200px) {
  .bt-drop__in { grid-template-columns: 36px minmax(0, 1fr); grid-template-areas: "img txt" "img sum"; column-gap: 8px; row-gap: 1px; padding: 5px 8px 5px 5px; min-height: 50px; }
  .bt-drop__img { grid-area: img; width: 36px; height: 40px; }
  .bt-drop__img img { width: 30px; height: 30px; }
  .bt-drop__txt { grid-area: txt; align-self: end; }
  .bt-drop__txt b { font-size: 12px; }
  .bt-drop__txt small { display: none; }
  .bt-drop__sum { grid-area: sum; align-self: start; font-size: 12.5px; color: var(--text-2); }
}
@container bt-dr (max-width: 110px) {
  .bt-drop__in { grid-template-columns: minmax(0, 1fr); grid-template-areas: "img" "sum"; justify-items: center; row-gap: 3px; padding: 4px 3px 6px; min-height: 0; text-align: center; }
  .bt-drop__img { width: 100%; height: 40px; }
  .bt-drop__txt { display: none; }
  .bt-drop__sum { justify-self: center; max-width: 100%; overflow: hidden; font-size: 12px; }
}
@container bt-pl (max-width: 128px) {
  .bt-pls .bt-pl__bar { padding: 0 8px 0 4px; gap: 6px; }
  .bt-pl__name { display: none; }
  .bt-pl__bar > .bt-pl__sum { margin-left: auto; }
}
/* Узкая полоса (4 игрока на телефоне): аватар остаётся — видно, чья колонка; сумма ужимается (fitSums: мельче → без «₽»). */
@container bt-pl (max-width: 90px) {
  .bt-pls .bt-pl__bar { justify-content: center; gap: 4px; padding: 0 4px; }
  .bt-pls .bt-pl__bar .bt-ava { --sz: 20px !important; font-size: 12px; }
  .bt-pl__bar > .bt-pl__sum { flex: 0 1 auto; margin: 0; min-width: 0; overflow: hidden; font-size: 12.5px; }
}
.bt-pls .bt-pl__name .bt-name.is-sm { font-size: 12px; }
/* Имя соперника не влезает рядом с суммой (fitNames) — аватары в полосах убираем у всех, место отдаём имени. */
.bt-pls.is-noava .bt-pl__ava { display: none; }
.bt-pls.is-noava .bt-pl__bar { padding-left: 10px; }
/* Сумма не помещается рядом с аватаром (4 узкие полосы, суммы от 1 000) — аватар у всех сжимается в точку его цвета
   (видно, чья колонка), место отдаём сумме, «₽» остаётся (fitSums). */
.bt-pls.is-tight .bt-pl__ava .bt-ava { --sz: 8px !important; box-shadow: none; }
.bt-pls.is-tight .bt-pl__ava .bt-ava > span { display: none; }

/* ── Подтверждение (отмена батла) и действие окна предмета ── */
.bt-btn-danger { background: var(--danger-fill); border: 1px solid var(--glass-line); color: var(--on-fill); font-weight: 700; }
.bt-btn-danger:hover { background: var(--danger-fill); color: var(--on-fill); }
.bt-dlg--confirm .cs-dlg__text { margin-top: 8px; color: var(--text-2); text-align: center; }
.bt-ii-acts { margin-top: 16px; }
.bt-ii-acts .btn { gap: 8px; }

/* ── Честность ── */
.bt-dlg--fair .cs-dlg__panel { width: min(560px, 100%); }
.bt-flead { margin-top: 10px; color: var(--text-2); font: 500 14px/1.5 var(--font-body); }
.bt-fres { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 12px 14px; border-radius: 14px; font: 700 15px/1.3 var(--font-body); }
.bt-fres .ico { flex: none; }
.bt-fres.is-ok { background: var(--win-soft); color: var(--win); box-shadow: inset 0 0 0 1px var(--win-line); }
.bt-fres.is-bad { background: var(--danger-soft); color: var(--danger-text); }
:is(ul, ol).bt-frolls { display: flex; flex-direction: column; gap: 4px; margin-top: 12px; max-height: 320px; overflow: auto; overscroll-behavior: contain; }
.bt-froll { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto 24px; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 6px 10px; border-radius: 12px; background: rgba(255,255,255,.05); text-align: left; color: var(--text); }
.bt-froll:hover { background: var(--tint-08); }
.bt-froll__n { font: 600 12px var(--font-mono); color: var(--text-3); }
.bt-froll__l { display: flex; flex-direction: column; min-width: 0; }
.bt-froll__l b { font: 600 13.5px var(--font-body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bt-froll__l small { font: 500 12px var(--font-body); color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bt-froll__go { display: inline-flex; color: var(--text-3); }
.bt-gone { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 80px 20px; text-align: center; color: var(--text-2); }
.bt-gone__acts { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }
.bt-empty__ico { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 16px; background: var(--primary-soft); color: var(--primary-text); }

/* ── Появления ── */
@keyframes bt-in-up { from { opacity: 0; transform: translateY(8px); } }
@keyframes bt-in-fade { from { opacity: 0; } }
@keyframes bt-in-pop { from { opacity: 0; transform: scale(.9); } }
.bt.is-enter :is(.bt-lhead, .bt-head, .bt-rhead) { animation: bt-in-up .22s var(--ease) both; }
.bt.is-enter .bt-li { animation: bt-in-up .24s var(--ease) both; }
.bt.is-enter .bt-li:nth-child(2) { animation-delay: .03s; } .bt.is-enter .bt-li:nth-child(3) { animation-delay: .06s; } .bt.is-enter .bt-li:nth-child(n+4) { animation-delay: .09s; }
.bt.is-enter .bt-stage, .bt--create.is-enter .bt-sec { animation: bt-in-up .24s .04s var(--ease) both; }
.bt--create.is-leaving { transition: opacity .2s ease, transform .2s ease; opacity: 0; transform: translateY(-6px); pointer-events: none; }

/* ── ПК: узкий экран по высоте ── */
@media (min-width: 768px) and (max-height: 820px) {
  .bt { --lanes-h: clamp(300px, calc(100vh - 330px), 400px); }
  .bt-reel { --vh: 112px; }
  .bt-arena.is-wide .bt-reel { --vh: 128px; }
  .bt-arena { --vh-plus: 56px; }
  .bt-arena.is-wide { --vh-plus: 64px; }
  .bt-subnav { margin: 12px 0 10px; }
}
@container bt (max-width: 1080px) {
  .bt-rhead__t { display: none; }
}
@container bt (max-width: 900px) {
  .bt-rhead__info .bt-tags { display: none; }
  .bt-rhead__info .bt-micons { display: inline-flex; }
  .bt-rhead__num:last-child { display: none; }
}

/* ── Телефон ── */
@media (max-width: 767.98px) {
  .bt { --vs-w: 18px; --lane-gap: 6px; --ar-pad: 6px; --lanes-h: clamp(290px, calc(100svh - 470px), 360px); }
  .bt-hide-xs { display: none; }
  .bt-subnav { width: 100%; margin: 10px 0 12px; border-radius: 12px; }
  .bt-subnav__a { flex: 1; justify-content: center; padding: 0 8px; font-size: 13.5px; height: 36px; }
  .bt-subnav__a .ico { display: none; }
  .bt-lhead { flex-wrap: wrap; gap: 12px; margin-bottom: 12px; }
  .bt-lhead__t { font-size: 22px; }
  .bt-lhead__go { order: 1; height: 40px; padding: 0 14px; font-size: 14.5px; }
  .bt-lhead__row { flex: 1 1 100%; }
  .bt-lhead__row .bt-tabs { flex: 1 1 auto; min-width: 0; }
  .bt-newpill { display: none !important; }
  .bt-tabs__b.has-new [data-tn] { display: none; }
  .bt-tabs__new:not([hidden]) { display: inline-block; }
  .bt-lhead.has-cover .bt-lhead__top { flex-direction: column; align-items: flex-start; justify-content: center; gap: 10px; height: 116px; padding: 0 16px; border-radius: 20px; }
  .bt-lhead.has-cover .bt-lhead__t { font-size: 22px; }
  .bt-lhead.has-cover .bt-lhead__go { margin-left: 0; }
  .bt-lhead.has-cover .bt-lhead__top { background: var(--s1); }
  .bt-lban__hero { right: 2px; height: 138%; transform: translateY(-45%); }
  .bt-tabs__b { flex: 1 1 0; padding: 0 6px; font-size: 14px; }
  .bt-h1 { font-size: 20px; }
  .bt-head { margin-bottom: 10px; }
  .bt-sec { margin-top: 14px; }
  .bt-sec__head, .bt-h2 { margin-bottom: 8px; }
  .bt-cgrid { grid-template-columns: minmax(0, 1fr); }
  /* Ряд кейсов: ровно 3 плитки в поле страницы (без обрезки по краю поля); больше трёх — лента во всю ширину экрана,
     следующая плитка выглядывает из-за края экрана. */
  :is(ul, ol).bt-rounds { display: flex; gap: 8px; overflow-x: auto; padding: 0 var(--gutter, 16px) 2px; margin-inline: calc(-1 * var(--gutter, 16px));
    scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter, 16px); scrollbar-width: none; overscroll-behavior-x: contain; }
  .bt-rounds::-webkit-scrollbar { display: none; }
  .bt-rtile { flex: 0 0 calc((100% - 16px) / 3); scroll-snap-align: start; padding: 8px 4px; gap: 2px; }
  .bt-rtile .bt-cthumb { --sz: 64px !important; }
  .bt-rtile__name { font-size: 13px; }
  .bt-radd { min-height: 148px; gap: 6px; }
  .bt-radd__ico { width: 40px; height: 40px; border-radius: 12px; }
  .bt-radd b { font-size: 13px; }
  .bt-rtile .bt-step button { width: 30px; height: 30px; }
  .bt-seg__b { height: 40px; font-size: 14px; }
  .bt-seg--fmt .bt-seg__b b { font-size: 12.5px; }
  .bt-mchips { gap: 6px; }
  .bt-mchip { height: 36px; padding: 0 11px 0 9px; font-size: 13.5px; }
  /* Липкая «Создать» — на своей панели во всю ширину прямо над таббаром (одна нижняя «док»-панель): текст и чипы
     под ней не просвечивают. Панель выходит на поля страницы, поэтому у страницы создания обрезка по ширине снята. */
  .bt--create { overflow-x: visible; }
  .bt-sum { bottom: calc(var(--tabbar-h, 76px) + env(safe-area-inset-bottom, 0px)); margin: 18px calc(-1 * var(--gutter, 16px)) -16px; padding: 10px var(--gutter, 16px);
    background: var(--tabbar-bg); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-top: 1px solid var(--line); }
  .bt-sum__in { padding: 0; border-radius: 14px; background: none; border: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .bt-sum .bt-go { box-shadow: var(--accent-edge); }
  .bt-sum__txt { display: none; }
  .bt-sum .bt-go { flex: 1; min-width: 0; }
  .bt-dlg--picker .cs-dlg__panel { padding: 12px; max-height: calc(100dvh - 24px); border-radius: 24px; }
  /* Поиск — строкой, все фильтры — одной строкой ниже (листается вбок, если не влезает). */
  .bt-pctrl { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
  .bt-psearch { flex: none; width: 100%; }
  .bt-pfil { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; }
  .bt-pfil::-webkit-scrollbar { display: none; }
  .bt-pfil > * { flex: none; }
  .bt-pselect--sec .select { min-width: 0; max-width: 124px; }
  .bt-psearch .input { height: 42px; }
  .bt-pselect .select { width: auto; height: 38px; padding-left: 10px; padding-right: 26px; background-position: right 7px center; font-size: 13px; border-radius: 11px; }
  .bt-pfil .bt-pselect--price { flex: 1 1 auto; min-width: 0; }
  .bt-pfil .bt-pselect--price .select { width: 100%; }
  /* Сортировка — квадратная кнопка со значком «↑↓» (список вариантов — родной), чтобы все фильтры влезли в одну строку. */
  .bt-pselect--sort .select { width: 40px; padding: 0; color: transparent; text-indent: -999px; background-position: center;
    background-image: none; }
  .bt-pselect--sort .select option { color: var(--text); }
  .bt-pfil .bt-sort { padding: 2px; }
  .bt-pfil .bt-sort__b { height: 32px; padding: 0 10px; }
  :is(ul, ol).bt-pgrid { flex: 1 1 auto; min-height: 120px; max-height: none; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 10px; }
  .bt-ptile__main { padding: 6px 4px 8px; }
  .bt-ptile__name { font-size: 12.5px; }
  .bt-ptile__name--lw { font-size: 12px; }
  .bt-ptile__price { font-size: 12px; }
  .bt-pauto { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; grid-template-areas: "n s b"; align-items: end; gap: 8px; margin-top: 10px; padding: 8px 10px 10px; }
  .bt-pauto__t { display: none; }
  .bt-pauto [data-p="auto"] { grid-area: b; height: 40px; padding: 0 12px; }
  .bt-pauto__f--n { grid-area: n; }
  .bt-pauto__f:not(.bt-pauto__f--n) { grid-area: s; }
  .bt-pauto__f .input { width: 100%; height: 40px; }
  .bt-pfoot { flex-wrap: wrap; margin-top: 10px; padding-top: 10px; gap: 8px; }
  .bt-pfoot__sum { width: 100%; }
  .bt-pfoot .btn { flex: 1; height: 48px; }
  /* Комната: одна строка управления + подпись режима. */
  .bt-rhead { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "back car tools" "info info nums"; gap: 6px 8px; min-height: 0; margin: 0 0 8px; }
  .bt-rhead .bt-back { grid-area: back; }
  .bt-rhead__t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .bt-car { grid-area: car; height: 48px; justify-content: flex-start; }
  .bt-car__i .bt-cthumb { --sz: 40px !important; }
  .bt-rhead__tools { grid-area: tools; }
  .bt-rhead .bt-icon--link { display: none; }
  .bt-rhead__info { grid-area: info; justify-self: start; max-width: 100%; overflow: hidden; height: 28px; padding: 0 6px 0 2px; gap: 6px; }
  .bt-rhead__info .bt-mt b { font-size: 12.5px; }
  .bt-rhead__info .bt-mt span { font-size: 13px; }
  .bt-rhead__info .bt-tag { height: 22px; }
  .bt-rhead__nums { grid-area: nums; align-self: center; gap: 12px; }
  .bt-rhead__num { flex-direction: row; align-items: baseline; gap: 5px; }
  .bt-rhead .bt-rhead__num:first-child small { display: inline; }
  .bt-rhead .bt-rhead__num + .bt-rhead__num { display: none; }
  .bt-rhead.is-pre .bt-rhead__num:first-child { display: none; }
  .bt-rhead.is-pre .bt-rhead__num + .bt-rhead__num { display: flex; }
  .bt-rhead__num small { font-size: 12px; }
  .bt-rhead__num b { font-size: 13.5px; }
  .bt-stage { border-radius: 18px; }
  /* Комната — не короче экрана: подвал сайта со ссылками не стоит в первом экране игры (и под пальцем после «Создать»). */
  .bt--game { min-height: calc(100svh - var(--header-h, 60px) - var(--tabbar-h, 76px) - env(safe-area-inset-bottom, 0px) - 40px); }
  /* Итог: карточка RubWin — единственная рамка (без «рамки в рамке»): у арены снимаем фон, рамку и боковые поля. */
  .bt-stage.is-final { padding-inline: 0; padding-bottom: 0; background: none; border-color: transparent; }
  .bt-stage.is-final .bt-ov { padding-inline: 0; }
  .bt-reel { --vh: 104px; --gap: 6px; }
  .bt-arena { --vh-plus: 52px; }
  .bt-strip { left: 7px; right: 7px; }
  .bt-mark { left: 3px; right: 3px; border-radius: 15px; }
  .bt-arena.is-compact .bt-reel { --vh: 88px; }
  .bt-arena.is-compact { --vh-plus: 44px; }
  .bt-lane { border-radius: 14px; }
  .bt-lvs span { width: 18px; height: 18px; border: 0; background: none; }
  .bt-lvs .bt-vsg { width: 16px; height: 9px; }
  :is(.bt--1v1v1, .bt--1v1v1v1) { --vs-w: 0px; }
  .bt--2v2 { --vs-w: 6px; }
  :is(.bt--1v1v1, .bt--1v1v1v1, .bt--2v2) .bt-lvs span { display: none; }
  .bt-arena.is-waiting .bt-lanes { height: 200px; }
  .bt-seat .bt-ava { --sz: 52px !important; }
  :is(.bt--1v1v1, .bt--1v1v1v1, .bt--2v2) .bt-seat .bt-ava { --sz: 40px !important; }
  .bt-seat { gap: 7px; width: 100%; }
  .bt-seat__name { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; width: 100%; overflow: hidden; white-space: normal; line-height: 1.2; }
  :is(.bt--1v1v1v1, .bt--2v2) .bt-seat__name:not(:has(.only-phone)) { display: none; }
  :is(.bt--1v1v1v1, .bt--2v2) .bt-seat__ok { width: 26px; height: 26px; padding: 0; justify-content: center; }
  .bt-seat__name .bt-name { white-space: normal; overflow: visible; display: inline; }
  .bt-seat__name, .bt-seat__name .bt-name { font-size: 13px; }
  .bt-seat__name .bt-name small { display: none; }
  .bt-seat__btn { height: 40px; padding: 0 10px; font-size: 13.5px; }
  .bt-seat__wait { font-size: 12px; }
  .bt-seat__wait::before { display: none; }
  .bt-slot { padding: 8px; }
  .bt-wait { padding: 10px; gap: 10px; }
  .bt-wait__t b { font-size: 14.5px; }
  .bt-wait__t > span { font-size: 12.5px; }
  .bt-wait__acts { margin-left: 0; width: 100%; }
  .bt-wait__acts .btn { flex: 1 1 0; min-width: 0; padding: 0 10px; font-size: 14px; }
  .bt-wait__acts .btn[data-cancel] { flex: 0 0 auto; }
  .bt-join { width: 100%; max-width: none; }
  .bt-arena__banner { left: 6px; right: 6px; top: 8px; }
  .bt-arena.is-claw .bt-arena__banner { top: auto; bottom: 8px; }
  .bt-note { gap: 7px; padding: 7px 11px; font-size: 13px; }
  .bt-cd__ring { width: 104px; height: 104px; }
  .bt-cd b { font-size: 44px; }
  .bt-ov { padding: 6px; }
  .bt-sndon { bottom: 8px; height: 36px; font-size: 13px; }
  .bt-jp__t { font-size: 16px; }
  .bt-jp__track { height: 80px; }
  .bt-lane__plus { font-size: 12.5px; padding: 4px 7px; }
  .bt-pl__bar { height: 36px; padding: 0 9px 0 4px; gap: 6px; border-radius: 10px; }
  .bt-pl__bar .bt-ava { --sz: 26px !important; }
  .bt-pl__name .bt-name { font-size: 13px; }
  .bt-pl__name .bt-name small { display: none; }
  .bt-pl__sum { font-size: 13.5px; }
  :is(ul, ol).bt-dt { row-gap: 5px; margin-top: 8px; }
  .bt-drop__in { border-radius: 11px; }
  .bt-sort__b, .bt-back, .bt-icon, .bt-step button { position: relative; }
  .bt-sort__b::after, .bt-step button::after { content: ""; position: absolute; left: 50%; top: 50%; width: max(100%, 44px); height: max(100%, 44px); transform: translate(-50%, -50%); }
}
@media (max-width: 400px) {
  .bt-cv__c { --sz: 80px; }
  .bt-cv[data-n="1"] .bt-cv__c { --sz: 90px; }
  .bt-cv__c + .bt-cv__c { margin-left: -26px; }
  .bt-who .bt-ava { --sz: 26px !important; }
  .bt-tabs__b { gap: 5px; font-size: 13.5px; }
  .bt-rhead { column-gap: 6px; }
  .bt-rhead .bt-icon, .bt-rhead .bt-back { width: 36px; height: 36px; border-radius: 10px; }
  .bt-pauto { grid-template-columns: 50px minmax(0, 1fr) auto; }
  .bt-pauto [data-p="auto"] .ico { display: none !important; }
}
@media (max-width: 767.98px) and (max-height: 700px) {
  .bt { --lanes-h: 270px; }
  .bt-reel { --vh: 96px; }
  .bt-arena { --vh-plus: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  .bt-car__track, .bt-cv__prog i { transition: none; }
  .bt.is-enter *, .bt-drop.is-new, .bt-li.is-new, .bt-newpill, .bt-tabs__new, .bt-sndon, .bt-sndon::after, .bt-wait, .bt-note, .bt-it.is-win, .bt-lane.is-rare .bt-it.is-win, .bt-chip i { animation: none !important; }
  .bt-strip.is-b1, .bt-strip.is-b2 { filter: none; }
}

/* CODEXCASES0928B — насыщенный индиго, яркие обложки и фон редкости. */
.bt, .bt-dlg { --well:var(--bg-inset); --card-bg:var(--s1); }
.bt { background: transparent; }
.bt .bt-subnav { margin-top:0; border-radius:99px; }
.bt .bt-subnav__a, .bt .bt-tabs, .bt .bt-tabs__b { border-radius:99px; }
.bt .bt-subnav__a.is-on, .bt .bt-tabs__b.is-on { background:var(--primary-fill); color:var(--on-primary); }
.bt .bt-subnav__a.is-on .ico { color:inherit; }
.bt .bt-tabs__b.is-on .bt-tabs__n { color:inherit; background:var(--btn-price-bg); }
.bt .bt-lhead { flex-direction:column; align-items:stretch; }
.bt .bt-lhead .bt-lhead__top { position:relative; display:flex; flex-direction:row; justify-content:flex-end; align-items:center; height:126px; padding:16px; border-radius:20px; overflow:hidden; isolation:isolate; border:1px solid var(--glass-line);
 background:var(--s1); }
.bt .bt-lhead__go { position:relative; z-index:2; margin-left:auto; border-radius:99px; height:44px; }
.bt .bt-lhead__row { align-self:stretch; }
.bt-night-art { position:absolute; left:16px; top:12px; width:195px; height:104px; display:flex; align-items:center; }
.bt-night-art img { width:104px; height:104px; border-radius:16px; transform:rotate(-8deg); box-shadow:0 8px 18px color-mix(in srgb,var(--bg-inset) 40%,transparent); }
.bt-night-art img + img { margin-left:-30px; transform:rotate(8deg); }
.bt-night-art svg { position:absolute; left:66px; height:118px; width:47px; fill:var(--accent-hover); stroke:color-mix(in srgb,var(--white) 75%,var(--primary-top)); filter:drop-shadow(0 0 8px color-mix(in srgb,var(--accent) 50%,transparent)); }
.bt .bt-card { border-color:var(--glass-line); background:var(--s1); }
.bt .bt-cv { height:136px; background:var(--s2); }
.bt .bt-cv::before { opacity:1; background: var(--s1); }
.bt .bt-cv__c { --sz:104px; }
.bt .bt-cv[data-n="1"] .bt-cv__c { --sz:112px; }
.bt .bt-cv__c + .bt-cv__c { margin-left:-24px; }
.bt .bt-cv__r { background:color-mix(in srgb,var(--bg-inset) 60%,transparent); border-radius:16px; }
.bt .bt-cta, .bt .btn, .bt .bt-pill, .bt .bt-chip { border-radius:99px; }
.bt .bt-cta--play { background:var(--s2); color:var(--text); box-shadow:inset 0 0 0 1px var(--glass-line); }
.bt .bt-card:hover .bt-cta--play { background:var(--surface-active); }
.bt .bt-cta--play .bt-pill { color:var(--primary-hi); background:var(--tint-06); border:0; }
.bt .bt-stage { background:var(--s1); border-color:var(--glass-line); }
.bt :is(.bt-it,.bt-drop__img) { background:var(--s2); }
.bt .bt-it.is-win { box-shadow:inset 0 0 0 2px var(--s-line-hi); }
.bt .bt-it__n, .bt .bt-it__p { color:var(--text); }
.bt .bt-stage.is-final { background:none; }
@media(max-width:379.98px) {
 .bt-night-art { left:8px; width:174px; }
 .bt-night-art img { width:94px; height:94px; }
 .bt .bt-lhead__go { padding-inline:12px; }
 .bt .bt-cv__c { --sz:96px; }
}

/* CODEXCASES0928 wave 2 — превью раундов во всю ширину карточки, как в макете. */
.bt .bt-lhead { gap: 8px; margin-bottom: 8px; }
.bt .bt-lhead__go { flex-direction: column; gap: 4px; min-width: 88px; height: 68px; padding: 8px 15px; border-radius: 22px; }
.bt .bt-lhead__go .ico { width: 22px; height: 22px; }
.bt .bt-tabs { width: 100%; padding: 0; gap: 6px; background: none; border: 0; }
.bt .bt-tabs__b { flex: 1 0 auto; height: 36px; padding: 0 11px; font-size: 13px; background: var(--tint-06); border: 1px solid var(--glass-line); color: var(--text-2); }
.bt .bt-tabs__b.is-on { border-color: var(--primary-line); }
.bt .bt-tabs__n { padding: 0; min-width: 14px; background: none; color: inherit; }
.bt .bt-tabs__b.is-on .bt-tabs__n { background: none; }
.bt .bt-list { gap: 8px; }
.bt .bt-card { padding: 8px; }
.bt .bt-cv { height: 112px; background: none; overflow: visible; }
.bt .bt-cv::before, .bt .bt-cv::after { display: none; }
.bt .bt-cv__art { position: static; height: 100%; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; }
.bt .bt-cv[data-n="1"] .bt-cv__art { grid-template-columns: minmax(0,112px); grid-template-rows: 112px; justify-content: center; }
.bt .bt-cv[data-n="2"] .bt-cv__art { grid-template-columns: repeat(2,minmax(0,140px)); justify-content: center; }
.bt .bt-cv[data-n="1"] { height: 112px; min-height: 112px; max-height: 112px; }
.bt .bt-cv[data-n="2"] { height: 140px; }
.bt .bt-cv .bt-cv__c { width: 100%; height: 100%; margin: 0; border-radius: 14px; transform: none; box-shadow: inset 0 0 0 1px var(--glass-line); overflow: hidden; background: var(--s2); }
.bt .bt-cv[data-n] .bt-cv__c { transform: none; }
.bt .bt-cv__c img { border-radius: 14px; object-fit: cover; }
.bt .bt-cv__c i { right: 5px; bottom: 5px; background: var(--glass-sheet-bg); border-radius: 99px; }
.bt .bt-cv__r { z-index: 4; top: 6px; left: 6px; transform: none; width: auto; height: 24px; flex-direction: row; gap: 4px; padding: 0 9px; border-radius: 99px; border: 1px solid var(--glass-line); box-shadow: none; background: var(--glass-sheet-bg); }
.bt .bt-cv__r b, .bt .bt-cv__r small { font: 700 12px/1 var(--font-body); color: var(--text); letter-spacing: normal; }
.bt .bt-cv__st { right: 6px; top: 6px; }
.bt .bt-cv__more { right: 6px; bottom: 6px; padding: 6px 9px; border-radius: 99px; background: var(--glass-sheet-bg); font-size: 15px; }
.bt .bt-cv__prog { overflow: hidden; border-radius: 99px; bottom: -4px; }
.bt .bt-card__body { grid-template-columns: minmax(0,1fr); grid-template-areas: "info" "who" "cta"; gap: 8px; padding: 10px 0 0; }
.bt .bt-card__info { justify-content: space-between; gap: 6px; }
.bt .bt-mt { gap: 6px; }
.bt .bt-mt b { font-size: 16px; }
.bt .bt-card__info .bt-tag { border-radius: 99px; padding: 0 7px; }
.bt .bt-card__info .bt-tag .ico { display: none; }
.bt .bt-card__who { justify-content: space-between; align-items: center; gap: 6px; }
.bt .bt-who { gap: 7px; }
.bt .bt-who .bt-ava { --sz: 32px !important; }
.bt .bt-who__team > .bt-ava + .bt-ava { margin-left: 4px; }
.bt .bt-waiting { display: inline-flex; align-items: center; gap: 6px; font: 700 12px/1 var(--font-body); color: var(--win); white-space: nowrap; }
.bt .bt-waiting i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.bt .bt-cta { height: 48px; font-size: 16px; }
.bt .bt-cta--play .bt-pill { font: 600 14px/1 var(--font-display); }
.bt .bt-icon, .bt .bt-back { border-radius: 50%; }
.bt .bt-seg, .bt .bt-seg__b, .bt .bt-go { border-radius: 99px; }
.bt .bt-li:nth-child(n+4) { contain-intrinsic-size: auto 258px; }
@container bt (max-width: 339px) {
 .bt .bt-cv { height: 102px; }
 .bt .bt-tabs__b { gap: 4px; padding-inline: 8px; font-size: 12px; }
 .bt .bt-card__info { flex-wrap: nowrap; }
 .bt .bt-card__info .bt-mt span { font-size: 12px; }
 .bt .bt-card__info .bt-tag { font-size: 12px; padding-inline: 6px; }
 .bt .bt-card__info .bt-tags { gap: 4px; }
}
@container bt (min-width: 760px) {
 .bt .bt-lhead__go { flex-direction: row; height: 44px; border-radius: 99px; }
 .bt .bt-tabs { width: max-content; }
 .bt .bt-tabs__b { flex: none; padding-inline: 16px; }
 .bt .bt-card { min-height: 154px; }
 .bt .bt-cv { flex: 0 0 min(43%,360px); height: 136px; min-height: 136px; }
 .bt .bt-cv[data-n="1"] { height: 112px; align-self: center; }
 .bt .bt-cv[data-n="2"] { height: 136px; }
 .bt .bt-card__body { grid-template-columns: minmax(0,1fr) minmax(176px,210px); grid-template-areas: "info cta" "who cta"; gap: 12px 18px; padding: 12px 8px 12px 20px; align-content: center; }
 .bt .bt-card__info { flex-direction: row; justify-content: flex-start; gap: 8px; }
 .bt .bt-card__who { justify-content: flex-start; gap: 12px; }
 .bt .bt-li:nth-child(n+4) { contain-intrinsic-size: auto 154px; }
}

/* Поверхности создания и комнаты продолжают тот же индиго-холст. */
.bt, .bt-dlg { --well: var(--bg-inset); }
.bt .bt-sum__in { background: var(--glass-sheet-bg); border-radius: 28px; }
.bt .bt-go__p, .bt .bt-mchip { border-radius: 99px; }
.bt .bt-rtile__price, .bt-dlg .bt-ptile__price { color: var(--primary-hi); }
.bt .bt-reel::before { background: linear-gradient(180deg,color-mix(in srgb,var(--bg-inset) 96%,transparent),color-mix(in srgb,var(--bg-inset) 62%,transparent) calc(50% - var(--vh) / 2 - 18px),transparent calc(50% - var(--vh) / 2 - 6px),transparent calc(50% + var(--vh) / 2 + 6px),color-mix(in srgb,var(--bg-inset) 62%,transparent) calc(50% + var(--vh) / 2 + 18px),color-mix(in srgb,var(--bg-inset) 96%,transparent)); }
.bt .bt-note, .bt .bt-flash { background: var(--glass-sheet-bg); }
.bt .bt-ov--cd, .bt .bt-ov--jp { background: var(--glass-dim); }
.bt .bt-ov--fin { background: var(--glass-dim); }
.bt .bt-cd__trk { fill: color-mix(in srgb,var(--bg-inset) 60%,transparent); }
.bt .bt-jp__track { background: var(--chip-dark); }
/* Фон страницы продолжается на боковые поля; правило активно только в разделе батлов. */
body:has(.bt) { background: var(--bg); }
body:has(.bt) .bt { background: transparent; }

/* CODEXCASES0928 wave 3 — независимые стеклянные пилюли, палитра из токенов ядра. */
.bt .bt-subnav, .bt .bt-tabs, .bt .bt-seg, :is(.bt,.bt-dlg) .bt-sort {
 gap: 6px; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none;
}
.bt .bt-subnav { width: max-content; max-width: 100%; margin: 0 0 10px; }
:is(.bt,.bt-dlg) :is(.bt-subnav__a,.bt-tabs__b,.bt-seg__b,.bt-sort__b,.bt-mchip) {
 border: 1px solid var(--glass-line); border-radius: var(--r-pill);
 background: var(--glass-hi),var(--glass-bg); box-shadow: var(--glass-edge);
 -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
 backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat)); color: var(--text-2);
}
.bt .bt-subnav__a { gap: 6px; height: 36px; padding-inline: 12px; }
:is(.bt,.bt-dlg) :is(.bt-subnav__a.is-on,.bt-tabs__b.is-on,.bt-seg__b.is-on,.bt-sort__b[aria-checked="true"],.bt-mchip.is-on) {
 background: var(--primary-fill); color: var(--on-primary); border-color: var(--primary-line); box-shadow: var(--accent-edge);
 -webkit-backdrop-filter: none; backdrop-filter: none;
}
.bt :is(.bt-seg__b.is-on,.bt-mchip.is-on) .ico { color: inherit; }
.bt .bt-subnav__n { color: inherit; background: var(--btn-price-bg); }
.bt .bt-tabs__b { flex: none; }
.bt .bt-tabs { width: max-content; max-width: 100%; }
@media(max-width:767.98px) {
 .bt .bt-subnav__a { font-size: 13px; padding-inline: 11px; }
 .bt .bt-tabs__b { font-size: 12.5px; padding-inline: 10px; }
}
@media(max-width:379.98px) {
 .bt .bt-subnav__a { gap: 5px; padding-inline: 9px; font-size: 12.5px; }
 .bt .bt-tabs__b { gap: 4px; padding-inline: 8px; font-size: 12px; }
}

@media(max-width:767.98px) {
 .bt-pselect--sort { position: relative; }
 .bt-pselect--sort::after { content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; transform: translate(-50%,-50%); pointer-events: none; background: var(--text-3); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 4.5v15M4.6 16 8 19.5l3.4-3.5M16 19.5v-15M12.6 8 16 4.5 19.4 8'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 4.5v15M4.6 16 8 19.5l3.4-3.5M16 19.5v-15M12.6 8 16 4.5 19.4 8'/%3E%3C/svg%3E") center/contain no-repeat; }
}

/* CODEXCASES0928N — один кейс остаётся компактным; на телефоне возврат уже есть в шапке сайта. */
.bt .bt-cv[data-n="1"] .bt-cv__c { width: 112px; max-width: 100%; height: 112px; max-height: 112px; }
@media(max-width:480px) {
 .bt--create > .bt-head > .bt-back { display: none; }
}

/* CODEXCASES0929C — V3: рисованная шапка, крупный ряд обложек, одна строка игроков и большая кнопка входа. */
.bt--list > .lf { margin-bottom: 16px; }
.bt .bt-lhead .bt-lhead__top {
 display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 14px;
 height: 136px; padding: 16px; border-radius: 20px; background: var(--bg-inset); border-color: var(--s-line-hi);
}
.bt-head-art { position: absolute; inset: 0 0 0 auto; width: 52%; max-width: 220px; overflow: hidden; z-index: -1; }
.bt-head-art img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: center; }
.bt .bt-lhead.has-cover .bt-lhead__t { position: relative; font-size: 22px; line-height: 1.1; text-shadow: none; }
.bt .bt-lhead.has-cover .bt-lhead__go { flex-direction: row; gap: 6px; height: 38px; min-width: 0; padding: 0 12px; margin: 0; border-radius: 12px; font-size: 13px; box-shadow: var(--btn-primary-shadow); }
.bt .bt-lhead__go .ico { width: 17px; height: 17px; }
.bt .bt-tabs__b { border-radius: 12px; background: var(--s1); box-shadow: inset 0 1px 0 var(--s-line); -webkit-backdrop-filter: none; backdrop-filter: none; }
.bt .bt-tabs__b.is-on { background: var(--primary-fill); color: var(--on-primary); box-shadow: var(--accent-edge); }
.bt .bt-card { padding: 10px; gap: 0; border: 1px solid var(--s-line-hi); border-radius: 20px; background: var(--s1); box-shadow: inset 0 1px 0 var(--s-line); }
.bt .bt-cv[data-n] { display: flex; flex-direction: column; gap: 8px; flex: none; width: 100%; height: auto; min-height: 0; max-height: none; align-self: stretch; }
.bt .bt-cv__meta { display: flex; align-items: center; gap: 6px; min-height: 24px; }
.bt .bt-cv__r { position: static; flex: none; height: 23px; padding: 0 8px; border-radius: 9px; background: var(--surface-active); border-color: var(--s-line-hi); }
.bt .bt-cv__r b, .bt .bt-cv__r small { font-size: 12px; }
.bt .bt-cv__meta .bt-tags { gap: 4px; }
.bt .bt-cv__meta .bt-tag { height: 23px; gap: 4px; padding: 0 6px; font-size: 12px; border-radius: 9px; }
.bt .bt-cv__meta .bt-tag .ico { width: 12px; height: 12px; }
.bt .bt-cv__st { position: static; margin-left: auto; min-width: 0; }
.bt .bt-cv__st .bt-chip { height: 23px; padding: 0 7px; font-size: 12px; border-radius: 9px; }
.bt .bt-cv[data-n] .bt-cv__art { position: relative; inset: auto; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); grid-template-rows: auto; justify-content: center; gap: 8px; height: 112px; }
.bt .bt-cv[data-n="1"] .bt-cv__art { grid-template-columns: minmax(0,112px); }
.bt .bt-cv[data-n="2"] .bt-cv__art { grid-template-columns: repeat(2,minmax(0,112px)); }
.bt .bt-cv[data-n] .bt-cv__c { width: 100%; height: 100%; max-width: 112px; max-height: 112px; justify-self: center; border-radius: 13px; }
.bt .bt-cv__c img { border-radius: inherit; }
.bt .bt-cv__more { right: 6px; bottom: 6px; border-radius: 9px; }
.bt .bt-card__body { grid-template-columns: minmax(0,1fr) auto; grid-template-areas: "info who" "cta cta"; gap: 10px 8px; padding: 10px 0 0; }
.bt .bt-card__info { justify-content: flex-start; flex-direction: row; }
.bt .bt-mt { gap: 5px; }
.bt .bt-mt b { font-size: 14px; }
.bt .bt-mt span { font-size: 12px; }
.bt .bt-card__who { justify-content: flex-end; gap: 0; }
.bt .bt-who { gap: 6px; }
.bt .bt-who .bt-ava { --sz: 25px !important; }
.bt .bt-who__team > .bt-ava + .bt-ava { margin-left: -5px; }
.bt .bt-who .bt-vsg { width: 18px; }
.bt .bt-waiting { display: none; }
.bt .bt-cta { height: 46px; padding: 0 12px; border-radius: 13px; font-size: 15px; }
.bt .bt-cta--play { background: var(--primary-fill); color: var(--on-primary); border-color: var(--btn-primary-line); box-shadow: var(--btn-primary-shadow); }
.bt .bt-cta--play .bt-pill { border: 1px solid var(--glass-line); border-radius: 9px; height: 28px; background: var(--btn-price-bg); color: var(--on-primary); font: 700 14px/1 var(--font-body); }
.bt .bt-li:nth-child(n+4) { contain-intrinsic-size: auto 253px; }
@container bt (max-width:339px) {
 .bt .bt-cv[data-n="3"] .bt-cv__art { height: 99px; }
 .bt .bt-mt b { font-size: 13px; }
 .bt .bt-mt span { font-size: 12px; }
 .bt .bt-who { gap: 5px; }
}
@container bt (min-width:760px) {
 .bt .bt-lhead .bt-lhead__top { height: 156px; padding-inline: 24px; }
 .bt-head-art { max-width: 360px; width: 42%; }
 .bt .bt-lhead.has-cover .bt-lhead__t { font-size: 28px; }
 .bt .bt-lhead.has-cover .bt-lhead__go { height: 40px; padding-inline: 16px; font-size: 14px; }
 .bt .bt-card { gap: 18px; align-items: center; padding: 12px; }
 .bt .bt-cv[data-n] { flex: 0 0 min(43%,360px); width: auto; }
 .bt .bt-card__body { grid-template-columns: minmax(0,1fr); grid-template-areas: "info" "who" "cta"; gap: 10px; padding: 0; }
 .bt .bt-card__who { justify-content: flex-start; }
 .bt .bt-cta { max-width: none; }
 .bt .bt-li:nth-child(n+4) { contain-intrinsic-size: auto 170px; }
}

/* CODEXCASES0929G — единые поверхности и две вертикальные карточки на ПК без растянутых пустых строк. */
.bt .bt-list { gap: 16px; }
.bt .bt-lhead { gap: 16px; margin-bottom: 24px; }
.bt .bt-lhead .bt-lhead__top { height: 144px; padding: 16px; gap: 12px; background: var(--s1); border: 1px solid var(--s-line); border-radius: 20px; }
.bt .bt-lhead.has-cover .bt-lhead__t, .bt .bt-h1 { font: 700 24px/1.15 var(--font-display); }
.bt .bt-h2 { font-size: 18px; }
.bt .bt-sec { margin-top: 24px; }
.bt .bt-head-art { width: 45%; max-width: 220px; }
.bt .bt-lhead.has-cover .bt-lhead__go { height: 52px; padding-inline: 12px; gap: 8px; border-radius: 99px; font: 700 16px/1 var(--font-body); box-shadow: var(--accent-edge); }
.bt .bt-lhead__go .ico { width: 20px; height: 20px; }
.bt .bt-card { flex-direction: column; align-items: stretch; gap: 0; padding: 16px; border: 1px solid var(--s-line); border-radius: 20px; background: var(--s1); box-shadow: none; }
.bt .bt-cv[data-n] { flex: none; width: 100%; gap: 8px; }
.bt .bt-cv[data-n] .bt-cv__art { grid-template-columns: repeat(3,minmax(0,112px)); gap: 8px; }
.bt .bt-cv[data-n="1"] .bt-cv__art { grid-template-columns: minmax(0,112px); }
.bt .bt-cv[data-n="2"] .bt-cv__art { grid-template-columns: repeat(2,minmax(0,112px)); }
.bt .bt-card__body { flex: none; grid-template-columns: minmax(0,1fr) auto; grid-template-areas: "info who" "cta cta"; gap: 12px 8px; padding: 12px 0 0; }
.bt .bt-card__who { justify-content: flex-end; }
.bt .bt-mt b { font-size: 14px; }
.bt .bt-mt span { font-size: 12px; }
.bt .bt-cv__r { background: var(--s2); border-color: var(--s-line); border-radius: 99px; }
.bt .bt-cv__r b, .bt .bt-cv__r small, .bt .bt-cv__meta .bt-tag, .bt .bt-cv__st .bt-chip { font-size: 12px; }
.bt .bt-cv__meta .bt-tag, .bt .bt-cv__st .bt-chip { background: var(--s2); border-radius: 99px; }
.bt .bt-cv__st .bt-chip { padding-inline: 6px; }
.bt .bt-cv__meta .bt-tag .ico { width: 14px; height: 14px; }
.bt .bt-cta, .bt .bt-go, .bt .bt-go--md { height: 52px; padding-inline: 16px; border-radius: 99px; font: 700 16px/1 var(--font-body); box-shadow: none; }
.bt .bt-cta { color: var(--text); background: var(--s2); border-color: var(--s-line-hi); }
.bt .bt-cta--play { background: var(--primary-fill); color: var(--on-primary); border-color: var(--btn-primary-line); box-shadow: var(--accent-edge); }
.bt .bt-card:hover .bt-cta--play { background: var(--primary-fill-hover); }
.bt .bt-cta--play .bt-pill { color: var(--on-primary); background: var(--btn-price-bg); border-radius: 99px; font-size: 14px; }
.bt .bt-go__l { font: 700 16px/1 var(--font-body); }
.bt .bt-go__p { color: var(--on-primary); background: var(--btn-price-bg); }
.bt .bt-rtile__price, .bt-dlg .bt-ptile__price { color: var(--text); }
.bt .bt-seat__ring { box-shadow: none; }
.bt .bt-subnav, .bt .bt-tabs, .bt .bt-seg, :is(.bt,.bt-dlg) .bt-sort { gap: 8px; }
:is(.bt,.bt-dlg) :is(.bt-subnav__a,.bt-tabs__b,.bt-seg__b,.bt-sort__b,.bt-mchip) { height: 40px; border: 1px solid var(--s-line); border-radius: 99px; background: var(--s2); color: var(--text-2); box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
:is(.bt,.bt-dlg) :is(.bt-subnav__a.is-on,.bt-tabs__b.is-on,.bt-seg__b.is-on,.bt-sort__b[aria-checked="true"],.bt-mchip.is-on) { background: var(--primary-fill); color: var(--on-primary); border-color: var(--btn-primary-line); box-shadow: var(--accent-edge); }
.bt .bt-subnav__a { font-size: 14px; }
.bt .bt-tabs__b { font-size: 14px; gap: 6px; padding-inline: 10px; }
.bt .bt-li:nth-child(n+4) { contain-intrinsic-size: auto 280px; }
@media(max-width:767.98px) {
 .page:has(.bt) { --gutter: 16px; padding-inline: 16px; }
 .bt .bt-subnav { margin-bottom: 24px; }
 .bt .bt-tabs { width: 100%; }
 .bt .bt-tabs__b { flex: 1 1 auto; min-width: 0; padding-inline: 8px; font-size: 12px; }
 .bt .bt-card__info { min-width: 0; }
 .bt .bt-card__info .bt-mt { gap: 4px; }
 .bt .bt-mt b { font-size: 13px; }
 .bt .bt-who { gap: 4px; }
 .bt .bt-who .bt-ava { --sz: 24px !important; }
}
@container bt (max-width:339px) {
 .bt .bt-cv[data-n="3"] .bt-cv__art { height: 93px; }
 .bt .bt-mt b { font-size: 12px; }
 .bt .bt-who .bt-ava { --sz: 23px !important; }
 .bt .bt-cv__meta { gap: 4px; }
 .bt .bt-cv__r { padding-inline: 6px; }
}
@container bt (min-width:760px) {
 .bt .bt-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
 .bt .bt-empty { grid-column: 1 / -1; }
 .bt .bt-lhead { gap: 24px; margin-bottom: 24px; }
 .bt .bt-lhead .bt-lhead__top { flex-direction: row; align-items: center; justify-content: flex-start; height: 120px; padding: 12px 20px; gap: 24px; }
 .bt .bt-head-art { position: static; z-index: 0; flex: 0 0 144px; width: 144px; height: 96px; max-width: none; order: 0; }
 .bt .bt-lhead.has-cover .bt-lhead__t { font-size: 28px; order: 1; }
 .bt .bt-h1 { font-size: 28px; }
 .bt .bt-h2 { font-size: 22px; }
 .bt .bt-lhead.has-cover .bt-lhead__go { height: 52px; padding-inline: 20px; font-size: 16px; margin-left: auto; order: 2; }
 .bt .bt-card { padding: 20px; min-height: 0; }
 .bt .bt-cv[data-n] { flex: none; width: 100%; }
 .bt .bt-cv[data-n] .bt-cv__art { height: 112px; }
 .bt .bt-card__body { grid-template-columns: minmax(0,1fr) auto; grid-template-areas: "info who" "cta cta"; gap: 12px 8px; padding: 16px 0 0; }
 .bt .bt-card__who { justify-content: flex-end; }
 .bt .bt-li:nth-child(n+4) { contain-intrinsic-size: auto 292px; }
}
/* «+N» держится на третьей обложке и в широкой карточке, а не на свободном поле справа. */
.bt .bt-cv[data-n="3"] .bt-cv__more { right: max(6px,calc(50% - 170px)); }

/* BOARD9: на 320 px название шапки не касается рисунка, фильтры и сумма читаются целиком. */
@media(max-width:340px) {
 .bt .bt-head-art { width: 38%; }
 .bt-dlg--picker .bt-pfil { display: grid; grid-template-columns: minmax(0,1fr) 118px 36px; gap: 6px; }
 .bt-dlg--picker .bt-pselect--sec .select { width: 100%; max-width: none; }
 .bt-dlg--picker .bt-pselect--sort .select { width: 36px; }
 .bt-dlg--picker .bt-pauto { grid-template-columns: 44px minmax(0,1fr) auto; }
 .bt-dlg--picker .bt-pauto__f .input { padding-inline: 8px; }
 .bt-dlg--picker .bt-pauto [data-p="auto"] { padding-inline: 8px; }
}

/* R3: смысл батла — режим и значки модов; число игроков остаётся понятным в выборе и схеме мест. */
.bt .bt-mt { align-items: center; }
.bt .bt-mt > .ico { flex: none; color: var(--text-2); }
.bt .bt-micons { display: inline-flex; }
.bt .bt-mi { flex: none; width: 24px; height: 24px; }
.bt .bt-card__info { flex-wrap: wrap; gap: 6px 8px; }
.bt .bt-card__info .bt-micons { flex-wrap: wrap; max-width: 100%; }
.bt .bt-seg--fmt { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.bt .bt-seg--fmt .bt-seg__b b { font: 600 13px/1.2 var(--font-body); }

/* R4: действие и точная цена — одна подпись по центру, без отдельной ценовой капсулы. */
.bt :is(.bt-cta--play,.bt-go,.bt-seat__btn[data-join],.bt-room-join) { justify-content: center; gap: 0; }
.bt .bt-actioncopy { display: inline-block; min-width: 0; text-align: center; white-space: nowrap; }
.bt .bt-actioncopy :is(.bt-pill,.bt-go__p) { display: inline; height: auto; padding: 0; margin: 0; border: 0; border-radius: 0; background: none; box-shadow: none; color: inherit; font: inherit; font-weight: 800; opacity: 1; }
.bt .bt-seat__btn[data-join], .bt .bt-room-join { min-height: 52px; height: 52px; padding-inline: 16px; font: 700 16px/1.1 var(--font-body); }
.bt .bt-room-join { flex: 1 1 240px; min-width: 0; border-radius: 99px; }
.bt .bt-seat__joinicon { display: none; align-items: center; justify-content: center; }
/* В узкой колонке цена видна на общей кнопке над местами; плюс сохраняет выбор конкретного места. */
@container (max-width:259.98px) {
 .bt .bt-seat.is-empty:has([data-join]) > .bt-seat__ava { display: none; }
 .bt .bt-seat__btn[data-join] { width: 52px; max-width: 100%; min-width: 0; padding: 0; flex-direction: row; }
 .bt .bt-seat__btn[data-join] .bt-actioncopy { display: none; }
 .bt .bt-seat__joinicon { display: inline-flex; }
}

.bt .rw--inline .rw__btn--priced { height: 52px; }
.bt .rw--inline .rw__btn--priced .rw__lbl { overflow: visible; text-overflow: clip; }
/* На320 текст действия важнее повторной декоративной стрелки; точная сумма целиком остаётся в строке. */
@media(max-width:359.98px) {
 .bt .rw--inline .rw__btn--priced { font-size: 14px; }
 .bt .rw--inline .rw__btn--priced > svg { display: none; }
}

:is(.bt,.bt-dlg) .bt-sym { font-weight: 700; }

/* R5: создание — спокойные непрозрачные поверхности; геометрия и состояния выбора прежние. */
.bt--create .bt-rtile:not(.bt-rtile--add) { background: var(--s1); border-color: var(--s-line); box-shadow: none; }
.bt--create .bt-step { background: var(--s2); }
.bt--create .bt-sum { -webkit-backdrop-filter: none; backdrop-filter: none; }
.bt--create .bt-sum__in { background: var(--s1); border: 1px solid var(--s-line); border-radius: 20px; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.bt--create :is(.bt-seg__b.is-on,.bt-mchip.is-on) { box-shadow: none; }
.bt--create :is(.bt-seg__b.is-on,.bt-mchip.is-on) .ico { color: inherit; }
.bt-dlg--picker :is(.bt-pauto,.bt-ptile) { background: var(--s2); border-color: var(--s-line); box-shadow: none; }
.bt-dlg--picker .bt-ptile:hover { border-color: var(--s-line-hi); }
.bt-dlg--picker .bt-ptile.is-on { background: var(--s2); border-color: var(--primary-solid); }
@media(max-width:767.98px) {
 .bt--create .bt-sum { background: var(--s1); border-top-color: var(--s-line); }
 .bt--create .bt-sum__in { background: transparent; border: 0; border-radius: 0; }
}

/* OWNER-0929-R3 / C3: рисованные сцены целиком, крупные обложки вместо счётчиков раундов. */
.bt .bt-lhead .bt-lhead__top, .bt .bt-head--cover {
 position: relative; isolation: isolate; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end;
 width: 100%; height: auto; min-height: 0; aspect-ratio: 1134 / 720; padding: 16px; gap: 12px;
 overflow: hidden; border: 1px solid var(--s-line); border-radius: 20px; background: var(--s1);
}
.bt .bt-head-art { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; max-width: none; margin: 0; }
.bt .bt-head-art img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: center; }
.bt .bt-lhead__top::after, .bt .bt-head--cover::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(0deg,rgba(0,0,0,.62),transparent 65%); }
.bt .bt-lhead__top > :not(picture), .bt .bt-head--cover > :not(picture) { position: relative; z-index: 2; }
.bt .bt-lhead.has-cover .bt-lhead__t, .bt .bt-head--cover .bt-h1 { margin: 0; color: var(--white); text-shadow: 0 1px 3px rgba(0,0,0,.35); }
.bt .bt-lhead.has-cover .bt-lhead__go { margin: 0; flex: none; }
.bt .bt-head--cover .bt-back { position: absolute; top: 16px; left: 16px; }
.bt .bt-head--cover .bt-icon { position: absolute; top: 16px; right: 16px; margin: 0; }

/* Три обложки не сжимаются: на узком телефоне ряд можно пролистать внутри карточки. */
.bt .bt-card { padding: 12px; }
.bt .bt-cv__meta:not(:has(.bt-chip)) { display: none; }
.bt .bt-cv[data-n] .bt-cv__art { display: flex; justify-content: flex-start; gap: 8px; height: 112px; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scrollbar-width: none; }
.bt .bt-cv[data-n="1"] .bt-cv__art, .bt .bt-cv[data-n="2"] .bt-cv__art { justify-content: center; }
.bt .bt-cv__art::-webkit-scrollbar { display: none; }
.bt .bt-cv[data-n] .bt-cv__c { flex: 0 0 112px; width: 112px; height: 112px; max-width: none; max-height: none; margin: 0; }
.bt .bt-cv[data-n] .bt-cv__more { right: 6px; bottom: 6px; }
.bt .bt-li:nth-child(n+4) { contain-intrinsic-size: auto 270px; }

/* Выбранные кейсы и выбор: крупный рисунок, прежние количества и управляющие кнопки. */
.bt--create :is(ul,ol).bt-rounds { grid-template-columns: repeat(auto-fill,minmax(168px,1fr)); gap: 12px; }
.bt--create .bt-rtile { padding: 12px 8px; gap: 6px; }
.bt--create .bt-rtile .bt-cthumb { --sz: 144px !important; }
.bt-dlg--picker :is(ul,ol).bt-pgrid { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.bt-dlg--picker .bt-ptile__art { max-width: 152px; }
.bt-dlg--picker .bt-ptile__main { padding: 10px 8px; gap: 6px; }

/* Цена больше не зависит от соседнего счётчика; лента занимает самостоятельную строку. */
.bt .bt-rhead { display: grid; grid-template-columns: auto auto minmax(0,1fr) auto auto; grid-template-areas: "back title info nums tools" "car car car car car"; gap: 12px; }
.bt .bt-rhead > .bt-back { grid-area: back; }
.bt .bt-rhead__t { grid-area: title; }
.bt .bt-rhead__info { grid-area: info; justify-self: start; }
.bt .bt-rhead__nums { grid-area: nums; }
.bt .bt-rhead__tools { grid-area: tools; justify-self: end; }
.bt :is(.bt-rhead,.bt-rhead.is-pre) .bt-rhead__num.bt-rhead__price { display: flex; }
.bt .bt-car { grid-area: car; width: 100%; height: 128px; min-width: 0; justify-content: center; }
.bt .bt-car.is-over { justify-content: flex-start; }
.bt .bt-car__track { gap: 10px; padding: 4px; }
.bt .bt-car__i, .bt .bt-car__i.is-done { opacity: 1; }
.bt .bt-car__i .bt-cthumb { --sz: 120px !important; border-radius: 16px; }
.bt .bt-car__i { border-radius: 16px; }
@media(min-width:768px) {
 .bt .bt-lhead .bt-lhead__top, .bt .bt-head--cover { aspect-ratio: 3 / 1; padding: 24px 32px; align-items: flex-start; justify-content: center; flex-direction: column; }
 .bt .bt-lhead__top::after, .bt .bt-head--cover::after { background: linear-gradient(90deg,rgba(0,0,0,.38),transparent 48%); }
 .bt .bt-lhead.has-cover .bt-lhead__t, .bt .bt-head--cover .bt-h1 { max-width: 36%; }
 .bt .bt-lhead.has-cover .bt-lhead__go { margin: 0; }
 .bt .bt-card { padding: 16px; }
 .bt .bt-cv[data-n] .bt-cv__art { justify-content: center; height: 132px; }
 .bt .bt-cv[data-n] .bt-cv__c { flex-basis: 132px; width: 132px; height: 132px; }
}
@media(max-width:767.98px) {
 .bt .bt-lhead .bt-lhead__top, .bt .bt-head--cover { aspect-ratio: auto; padding: 0 0 16px; }
 .bt .bt-head-art { position: relative; aspect-ratio: 1134 / 720; height: auto; flex: none; }
 .bt .bt-head-art img { position: absolute; inset: 0; }
 .bt .bt-lhead__top::after, .bt .bt-head--cover::after { display: none; }
 .bt .bt-lhead.has-cover .bt-lhead__t, .bt .bt-head--cover .bt-h1 { margin-inline: 16px; color: var(--text); text-shadow: none; }
 .bt .bt-lhead.has-cover .bt-lhead__go { margin-inline: 16px; }
 .bt--create .bt-rtile { flex: 0 0 148px; padding: 10px 8px; }
 .bt--create .bt-rtile .bt-cthumb { --sz: 128px !important; }
 .bt-dlg--picker :is(ul,ol).bt-pgrid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
 .bt .bt-rhead { grid-template-columns: auto minmax(0,1fr) auto; grid-template-areas: "back nums tools" "info info info" "car car car"; gap: 8px; }
 .bt .bt-rhead__nums { justify-self: start; }
 .bt .bt-rhead__info { max-width: 100%; height: 32px; }
 .bt .bt-car { height: 104px; }
 .bt .bt-car__i .bt-cthumb { --sz: 96px !important; }
}
/* На телефоне заголовок списка и вход в создание занимают одну строку под целой сценой. */
@media(max-width:767.98px) {
 .bt .bt-lhead .bt-lhead__top { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 12px 8px; }
 .bt .bt-lhead__top .bt-head-art { grid-column: 1 / -1; }
 .bt .bt-lhead.has-cover .bt-lhead__t { min-width: 0; margin: 0 0 0 16px; }
 .bt .bt-lhead.has-cover .bt-lhead__go { margin: 0 16px 0 0; padding-inline: 12px; }
 .bt .bt-lhead__go .ico { display: none; }
}
@media(max-width:339.98px) {
 .bt .bt-lhead.has-cover .bt-lhead__t { font-size: 22px; }
 .bt .bt-lhead.has-cover .bt-lhead__go { font-size: 14px; }
}

/* DC-S1: итог после модификаторов; липкая плашка перекрывала чипы при прокрутке. */
.bt--create .bt-sum { position: relative; bottom: auto; }

/* R4: общий с витриной мобильный кадр 4:3; отдельный вопрос рядом с каждым модификатором. */
@media(max-width:767.98px) {
 .bt .bt-head-art { aspect-ratio: 4 / 3; }
}
.bt--create .bt-moption { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; }
.bt--create .bt-mhelp { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 36px; height: 36px; padding: 0; border: 1px solid var(--s-line-hi); border-radius: 50%; background: var(--s2); color: var(--text-2); }
.bt--create .bt-mhelp:hover { background: var(--surface-hover); color: var(--text); }
.bt--create .bt-mhelp:focus-visible { outline: 2px solid var(--primary-solid); outline-offset: 3px; }
.bt-dlg--mod-help .bt-mod-help__body { display: flex; align-items: flex-start; gap: 12px; }
.bt-dlg--mod-help .bt-mod-help__icon { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 48px; height: 48px; border-radius: 14px; background: var(--s2); color: var(--primary-text); }
.bt-dlg--mod-help .bt-mod-help__body .cs-dlg__text { min-width: 0; margin: 0; }

/* R5: на ПК та же полная обложка, что на телефоне; форма создания без обложки.
   Одна справка рядом с заголовком режима объясняет все режимы и модификаторы. */
.bt--create .bt-mode-head { justify-content:flex-start; gap:10px; }
.bt--create .bt-mode-head .bt-mhelp { width:44px; height:44px; }
@media (min-width:768px) {
 .bt--list .bt-lhead .bt-lhead__top { min-height:224px; aspect-ratio:auto; padding:24px; background:#241341; }
 .bt--list .bt-lhead .bt-head-art { position:absolute; inset:0 0 0 auto; width:300px; height:100%; aspect-ratio:auto; }
 .bt--list .bt-head-art img { object-fit:contain; object-position:right center; }
 .bt--list .bt-lhead__top::after { display:none; }
 .bt--list .bt-head-art::after { content:""; position:absolute; inset:0; background:linear-gradient(90deg,#241341,transparent 24%); pointer-events:none; }
 .bt--list .bt-lhead.has-cover .bt-lhead__t { max-width:calc(100% - 320px); }
}

/* A4V1 (B017): «Как играть» — пошаговый гайд по снимкам (общий cases/help.js), тот же вид, что на странице кейса.
   ПК — справа от вкладок; телефон — строкой под вкладками. */
.bt .bt-lhead__row { flex-wrap:wrap; }
.bt .bt-lhead__guide { flex:none; gap:6px; }
@media(min-width:768px) { .bt .bt-lhead__guide { margin-left:auto; } }
/* A4V1: поля поиска и авто-подбора кейсов на телефоне 16 px — без зума iOS/Telegram при фокусе. */
@media(max-width:767.98px) { .bt-psearch .input, .bt-pauto__f .input { font-size:16px; } }

/* ═══ R6 (разбор владельца №6): батл ═══ */
/* B2: чёткая прокрутка — без размытия движения, затемнение вне центра мягче (карточки выше/ниже видны, не «мыло») */
.bt-strip.is-b1, .bt-strip.is-b2 { filter: none; }
.bt-reel::before {
  background: linear-gradient(180deg, color-mix(in srgb,var(--bg-inset) 72%,transparent) 0, color-mix(in srgb,var(--bg-inset) 30%,transparent) calc(50% - var(--vh) / 2 - 18px), transparent calc(50% - var(--vh) / 2 - 6px),
    transparent calc(50% + var(--vh) / 2 + 6px), color-mix(in srgb,var(--bg-inset) 30%,transparent) calc(50% + var(--vh) / 2 + 18px), color-mix(in srgb,var(--bg-inset) 72%,transparent) 100%); }
.bt-reel.is-stopped .bt-it:not(.is-win) { opacity: .45; }
.bt-it__img img { image-rendering: auto; backface-visibility: hidden; }

/* B3 и общее «салатового нигде»: суммы и подписи — белые; победитель и лидер — фиолетовая рамка вместо зелёной заливки */
.bt-pl.is-lead .bt-pl__sum, .bt-pl.is-winner .bt-pl__sum, .bt-chip--win, .bt-subnav__n, .bt-pfoot__note, .bt-jp__s b, .bt-drop__grab,
.bt .bt-waiting { color: var(--text); }
.bt-pl.is-winner .bt-pl__bar { background: color-mix(in srgb, var(--primary-solid, #6C66FA) 16%, var(--s2)); box-shadow: inset 0 0 0 1.5px var(--primary-line, rgba(123,92,240,.6)); }
.bt-ava.is-won { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--primary-solid, #6C66FA); }
@keyframes bt-bump { 30% { transform: scale(1.12); color: var(--text); } }
.bt-lane__plus { background: var(--s2); border-color: var(--s-line-hi); color: var(--text); }
.bt-lane__plus.is-best { background: var(--primary-fill); color: #fff; border-color: transparent; text-shadow: none; }
.bt-seat__ok { background: var(--s2); color: var(--text); box-shadow: inset 0 0 0 1px var(--s-line); }
.bt-fres.is-ok { background: var(--s2); color: var(--text); box-shadow: inset 0 0 0 1px var(--s-line-hi); }
.bt-subnav__n { background: var(--s2); }

/* B1: 1–2 кейса — шапка комнаты не пустая: крупные обложки с названием и ценой */
.bt-car__cap { display: none; }
.bt .bt-rhead--few .bt-car { height: auto; overflow: visible; }
.bt .bt-rhead--few .bt-car__track { gap: 16px; padding: 4px 0; transform: none !important; }
.bt .bt-rhead--few .bt-car__i { flex-direction: column; align-items: center; gap: 8px; opacity: 1; box-shadow: none; }
.bt .bt-rhead--few .bt-car__i .bt-cthumb { --sz: 160px !important; border-radius: 18px; }
.bt .bt-rhead--few .bt-car__i.is-cur .bt-cthumb { box-shadow: 0 0 0 2px var(--primary-solid); }
.bt .bt-rhead--few .bt-car__cap { display: flex; flex-direction: column; align-items: center; gap: 2px; max-width: 170px; text-align: center; }
.bt .bt-rhead--few .bt-car__cap b { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 700 15px/1.2 var(--font-body); color: var(--text); }
.bt .bt-rhead--few .bt-car__cap span { font: 700 14px/1.2 var(--font-display); color: var(--text-2); font-variant-numeric: tabular-nums; }
@media (max-width: 380px) { .bt .bt-rhead--few .bt-car__i .bt-cthumb { --sz: 136px !important; } }
@media (min-width: 768px) { .bt .bt-rhead--few .bt-car__i .bt-cthumb { --sz: 176px !important; } }

/* B4: создание — обложки крупнее и без рамок, «Добавить кейс» крупнее и в размер плитки */
.bt--create .bt-rtile:not(.bt-rtile--add) { background: none; border: 0; box-shadow: none; padding: 0 0 4px; }
.bt--create .bt-rtile .bt-cthumb { --sz: 164px !important; border-radius: 18px; }
.bt--create .bt-rtile__name { font: 700 15px/1.2 var(--font-body); color: var(--text); }
.bt--create .bt-rtile__price { font: 700 15px/1.2 var(--font-display); color: var(--text); font-variant-numeric: tabular-nums; }
.bt--create .bt-rtile__x { top: 6px; right: 6px; }
.bt--create .bt-radd { min-height: 236px; gap: 12px; border-radius: 18px; border: 2px dashed var(--s-line-hi); background: var(--s1); }
.bt--create .bt-radd__ico { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--primary-fill); color: #fff; }
.bt--create .bt-radd__ico .ico { width: 30px; height: 30px; }
.bt--create .bt-radd b { font: 700 16px/1.2 var(--font-body); color: var(--text); }
@media (max-width: 767.98px) {
  .bt--create .bt-rtile { flex: 0 0 172px; padding: 0 0 4px; }
  .bt--create .bt-rtile .bt-cthumb { --sz: 164px !important; }
  .bt--create .bt-radd { min-height: 236px; }
}
@media (min-width: 768px) { .bt--create .bt-rtile .bt-cthumb { --sz: 176px !important; } .bt--create .bt-radd { min-height: 252px; } }

/* B4: справка «Режимы и модификаторы» — значок каждого режима/модификатора слева, как на кнопках */
.bt-rules__list li.bt-rules__ic { flex-direction: row; align-items: flex-start; gap: 12px; }
.bt-rules__g { flex: none; display: grid; place-items: center; width: 24px; height: 24px; margin-top: 1px; color: var(--text); }   /* значок без плашки (R6: «иконки на плашках — убрать») */
.bt-rules__tx { display: flex; flex-direction: column; gap: 2px; min-width: 0; }

/* B4: фильтры выбора кейсов («Все темы», «Любая цена», сортировка) и авто-подбор — наш вид: пилюли s2, шрифт 14/600 белый */
.bt-pselect .select { height: 40px; border-radius: 999px; background-color: var(--s2); border: 1px solid var(--s-line); color: var(--text); font: 600 14px var(--font-body); }
.bt-pauto { background: var(--s1); border-color: var(--s-line); }
.bt-pauto__f span { font: 600 13px var(--font-body); color: var(--text-2); }
.bt-pauto__f .input { height: 40px; border-radius: 12px; background: var(--s2); border: 1px solid var(--s-line); font-weight: 700; }
@media (max-width: 767.98px) {
  .bt-pselect .select { height: 40px; font-size: 14px; border-radius: 999px; }
  .bt-psearch .input, .bt-pauto__f .input { font-size: 16px; }
}

/* R6 (B4): обложка в создании — без рамки и подложки (картинка кейса целиком) */
.bt--create .bt-rtile .bt-cthumb { border: 0; box-shadow: none; background: none; outline: 0; }
.bt--create .bt-rtile .bt-cthumb::before, .bt--create .bt-rtile .bt-cthumb::after { display: none; }
/* R6 (B4): выбор кейсов — названия и цены крупнее, цена белая, как на витрине */
.bt-ptile__name { font: 700 14px/1.2 var(--font-body); color: var(--text); }
.bt-ptile__price { font: 700 14px/1.2 var(--font-display); color: var(--text); font-variant-numeric: tabular-nums; }

/* ═══ R7 (разбор владельца №7) ═══ */
/* R7-1: шапка раздела без обложки — «Кейс-батл» слева, «Создать» справа, одной строкой, без карточки */
.bt .bt-lhead.bt-lhead--plain .bt-lhead__top { display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 12px;
  aspect-ratio: auto; min-height: 0; height: auto; padding: 0; margin: 4px 0 12px; border: 0; border-radius: 0; background: none; overflow: visible; }
.bt .bt-lhead.bt-lhead--plain .bt-lhead__top::after { display: none; }
.bt .bt-lhead.bt-lhead--plain .bt-lhead__t { margin: 0; max-width: none; color: var(--text); text-shadow: none; font: 700 24px/1.2 var(--font-display); }
.bt .bt-lhead.bt-lhead--plain .bt-lhead__go { margin: 0; flex: none; }
@media (min-width: 768px) { .bt .bt-lhead.bt-lhead--plain .bt-lhead__t { font-size: 28px; } }
/* R7-3: открытие кейса в батле — предметы крупно, без рамок, фон-«прожектор» сверху в цвете редкости (образец 22).
   Центральная стеклянная рамка убрана — остаются указатели-треугольники по бокам. */
.bt .bt-reel .bt-it { background: radial-gradient(150px 95% at 50% -14%, rgba(var(--th, var(--tc)), .9), rgba(var(--tc), .38) 50%, rgba(var(--tc), 0) 92%), linear-gradient(180deg, rgba(var(--tc), .14), rgba(var(--tc), 0) 70%), var(--s1);
  box-shadow: none; border: 0; justify-content: flex-end; padding: 4px 8px 10px; }
.bt-it::after { display: none; }
.bt-it__img { width: calc(var(--vh) * .68); height: calc(var(--vh) * .68); }
.bt-it__img img { filter: drop-shadow(0 8px 12px rgba(0,0,0,.4)); }
.bt-it__n { color: var(--text-2); }
.bt-it__p { color: var(--text); }
.bt .bt-reel .bt-it.is-win { background: radial-gradient(170px 100% at 50% -14%, rgba(var(--th, var(--tc)), 1), rgba(var(--tc), .5) 52%, rgba(var(--tc), 0) 94%), linear-gradient(180deg, rgba(var(--tc), .22), rgba(var(--tc), 0) 75%), var(--s1); box-shadow: none; }
.bt-mark { border-color: transparent; }
.bt-reel.is-stopped .bt-it:not(.is-win) { opacity: .4; }
/* R7-2: карточка победы — подарки крупно (до 4), тот же «прожектор» по редкости, без рамок и полосок */
.bt .rw-k-winner .rw__strip { gap: 8px; justify-content: center; flex-wrap: nowrap; }
.bt .rw__card.rw-k-winner .rw__strip .rw__th:not(.rw__more) { flex: 0 0 auto; width: 72px; height: 72px; border-radius: 16px; box-shadow: none; border: 0;
  background: radial-gradient(95% 85% at 50% -10%, rgba(var(--tc), .7), rgba(var(--tc), .16) 60%, rgba(var(--tc), 0) 90%), var(--s2); }
.bt .rw__card.rw-k-winner .rw__strip .rw__th:not(.rw__more)::after { display: none; }
.bt .rw-k-winner .rw__strip .rw__th img { width: 82%; height: 82%; object-fit: contain; }
.bt .rw__card.rw-k-winner .rw__strip .rw__th.rw__more { flex: 0 0 auto; width: 72px; height: 72px; border-radius: 16px; display: grid; place-items: center; font: 700 16px var(--font-display); color: var(--text-2); background: var(--s2); }

.bt .bt-lhead.bt-lhead--plain .bt-lhead__go { height: 44px; min-height: 0; padding: 0 20px; align-self: center; font-size: 15px; }
@media (min-width: 768px) { .bt .bt-lhead.bt-lhead--plain .bt-lhead__go { height: 48px; } }
/* R7-2/R7-3 доводка (сверка на живом): карточка победы — подарки 96 px на ПК и при 1–2 подарках на телефоне;
   лента 1–2 игроков — высокие карточки (как на образце 22), картинка крупнее, колонка не шире 240 px; рамки своей колонки нет */
.bt .rw__card.rw-k-winner .rw__strip:not(:has(.rw__th:nth-child(4))) .rw__th { width: 96px; height: 96px; }
@media (max-width: 767.98px) { .bt .rw__card.rw-k-winner .rw__strip:has(.rw__th:nth-child(3)) .rw__th { width: 72px; height: 72px; } }
.bt-lane.is-me::after { box-shadow: none; }
.bt .bt-arena.is-wide .bt-reel { --vh: 176px; }
.bt .bt-arena.is-wide .bt-strip { left: max(8px, calc(50% - 120px)); right: max(8px, calc(50% - 120px)); }
.bt .bt-arena.is-wide .bt-it__img { width: calc(var(--vh) * .7); height: calc(var(--vh) * .7); }
@media (max-width: 767.98px) { .bt .bt-arena.is-wide .bt-reel { --vh: 156px; } }
@media (min-width: 768px) { .bt .bt-arena.is-wide .bt-reel { --vh: 196px; } .bt { --lanes-h: clamp(420px, calc(100vh - 300px), 480px); } }
@media (max-width: 767.98px) {
  .bt .bt-arena:not(.is-compact):not(.is-wide) .bt-reel { --vh: 132px; }
  .bt .bt-arena:not(.is-compact) .bt-it__img { width: calc(var(--vh) * .7); height: calc(var(--vh) * .7); }
}
/* R9 (A-7): итог — все выигранные предметы сеткой в несколько рядов: до 3 — крупно (96), 4–8 — по 4 в ряд, больше — по 5–6 в ряд,
   до 3 рядов видно, остальное — прокруткой внутри сетки */
.bt .rw__card.rw-k-winner .rw__strip:has(.rw__th:nth-child(4)) { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; max-width: 336px; margin-inline: auto; }
.bt .rw__card.rw-k-winner .rw__strip:has(.rw__th:nth-child(4)) .rw__th { width: auto !important; height: auto !important; aspect-ratio: 1; }
.bt .rw__card.rw-k-winner .rw__strip:has(.rw__th:nth-child(9)) { grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 6px; max-width: 360px;
  max-height: calc(3 * 60px + 2 * 6px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding: 2px; }
.bt .rw__card.rw-k-winner .rw__strip:has(.rw__th:nth-child(9)) .rw__th { border-radius: 12px; }
@media (min-width: 768px) { .bt .rw__card.rw-k-winner .rw__strip:has(.rw__th:nth-child(9)) { max-width: 420px; } .bt .rw__card.rw-k-winner:has(.rw__strip .rw__th:nth-child(5)) { width: min(480px, 100%); } }

/* ═══ R10 (разбор владельца №10) ═══ */
/* B1: экран победы — «Победитель» небольшой строкой, под ней аватар 72 и ник крупно, затем сумма; у команды — аватары 44 с никами.
   Все подарки видны: сетка с прокруткой внутри (до 4 рядов), без «Не повезло» внизу */
.bt .rw__card.rw-k-winner .rw__head .rw__title { font: 600 15px/1.2 var(--font-body); letter-spacing: .02em; color: var(--text-2); }
.bt .rw__card.rw-k-winner .rw__pls { margin-top: 4px; gap: 12px 20px; }
.bt .rw__card.rw-k-winner .rw__pls--one .rw__pl { flex-direction: column; gap: 10px; }
.bt .rw__card.rw-k-winner .rw__pls--one .rw__av { width: 72px; height: 72px; background: none; box-shadow: 0 0 0 3px var(--s1), 0 0 0 5px rgba(158,164,255,.75), 0 10px 26px rgba(91,116,254,.35); }
.bt .rw__card.rw-k-winner .rw__pls--one .rw__pl b { font: 700 24px/1.15 var(--font-display); color: var(--text); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bt .rw__card.rw-k-winner .rw__pls:not(.rw__pls--one) .rw__av { width: 44px; height: 44px; background: none; }
.bt .rw__card.rw-k-winner .rw__pls:not(.rw__pls--one) .rw__pl b { font: 700 16px/1.2 var(--font-body); color: var(--text); }
.bt .rw__card.rw-k-winner .rw__av .bt-ava { width: 100%; height: 100%; }
.bt .rw__card.rw-k-winner .rw__amt { margin-top: 10px; }
.bt .rw__card.rw-k-winner .rw__strip:has(.rw__th:nth-child(9)) { max-height: calc(4 * 60px + 3 * 6px); }
@media (min-width: 768px) { .bt .rw__card.rw-k-winner .rw__strip:has(.rw__th:nth-child(9)) { max-height: calc(4 * 68px + 3 * 6px); } }
/* B3: «назад» в батле — тот же «‹», что у игр и внутренних страниц (шапка сайта, layout.css .topbar__back). На телефоне «‹» уже
   есть в шапке (ведёт к списку батлов) — своя стрелка не дублируется; на ПК — та же кнопка: пилюля 40 px, «‹» 22 px */
@media (max-width: 767.98px) {
  html[data-inner] .bt .bt-back { display: none; }
  html[data-inner] .bt .bt-rhead { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "nums tools" "info info" "car car"; }
}
@media (min-width: 768px) {
  .bt .bt-back { width: 40px; height: 40px; border-radius: var(--r-pill); color: var(--text);
    background: var(--btn-secondary, rgba(255,255,255,.09)); box-shadow: inset 0 0 0 1px var(--btn-secondary-line, rgba(255,255,255,.12)); transition: transform var(--dur-1) var(--ease); }
  .bt .bt-back:hover { background: var(--btn-secondary-hover, rgba(255,255,255,.13)); color: var(--text); }
  .bt .bt-back:active { transform: scale(.97); }
}
/* B2: «Режимы и модификаторы» — не стена текста: значок нашим цветом + название + одна короткая строка, строки плотнее,
   всё окно на экране телефона без прокрутки */
html .bt-dlg--rules .cs-dlg__head .cs-dlg__title { font-size: 20px; line-height: 1.2; }
.bt-dlg--rules .bt-rules__list li.bt-rules__ic { align-items: center; gap: 12px; padding: 7px 12px; min-height: 48px; }
.bt-dlg--rules .bt-rules__ic .bt-rules__g { color: #9EA4FF; margin-top: 0; }
.bt-dlg--rules .bt-rules__ic .bt-rules__tx { gap: 1px; }
.bt-dlg--rules .bt-rules__ic .bt-rules__tx > b { font: 700 14.5px/1.25 var(--font-body); color: var(--text); }
.bt-dlg--rules .bt-rules__ic .bt-rules__tx > span { font: 500 13.5px/1.3 var(--font-body); color: var(--text-2); }
.bt-dlg--rules .bt-rules:has(.bt-rules__ic) h3 { margin-bottom: 6px; }
.bt-dlg--rules .bt-rules__list li.bt-rules__ic { min-height: 44px; padding-block: 6px; }
/* R10 (B2 доводка, iPhone): окно «Режимы и модификаторы» без прокрутки — список не упирается в 64vh (на iPhone 14 это 425 px),
   строки плотнее, подписи разделов мельче; на телефоне без «Понятно» (закрывают крестик и тап мимо окна) */
.bt-dlg--rules .bt-rules:has(.bt-rules__ic) { max-height: calc(100dvh - 150px); gap: 10px; margin-top: 8px; }
@media (max-width: 767.98px) {
  .bt-dlg--rules:has(.bt-rules__ic) .cs-dlg__acts { display: none; }
  .bt-dlg--rules .bt-rules:has(.bt-rules__ic) { max-height: calc(100dvh - 104px); }
  .bt-dlg--rules .bt-rules:has(.bt-rules__ic) h3 { font: 600 13px/1.2 var(--font-body); color: var(--text-3); margin-bottom: 5px; }
  .bt-dlg--rules .bt-rules__list:has(> .bt-rules__ic) { gap: 4px; }
  .bt-dlg--rules .bt-rules__list li.bt-rules__ic { min-height: 0; padding: 5px 10px; gap: 10px; }
  .bt-dlg--rules .bt-rules__ic .bt-rules__tx > b { font-size: 14px; line-height: 1.2; }
  .bt-dlg--rules .bt-rules__ic .bt-rules__tx > span { font-size: 13px; line-height: 1.25; }
}
.bt-dlg--rules .cs-dlg__head .cs-dlg__title { min-width: 0; }
@media (max-width: 379.98px) { html .bt-dlg--rules .cs-dlg__head .cs-dlg__title { font-size: 17px; } }
@media (max-height: 600px) and (max-width: 767.98px) {
  .bt-dlg--rules .bt-rules__list li.bt-rules__ic { padding-block: 4px; }
  .bt-dlg--rules .bt-rules:has(.bt-rules__ic) { gap: 8px; }
}
@media (max-height: 600px) and (max-width: 767.98px) {
  .bt-dlg--rules:has(.bt-rules__ic) .cs-dlg__panel { padding-top: 12px; padding-bottom: 12px; }
  .bt-dlg--rules .bt-rules__list:has(> .bt-rules__ic) { gap: 3px; }
  .bt-dlg--rules .bt-rules:has(.bt-rules__ic) { max-height: calc(100dvh - 92px); }
}

/* R11 A5 (общее правило редкости владельца: «совместить нижнее подчёркивание редкости и свет-прожектор сверху»): барабаны,
   дропы раундов и итог — поверхность --s2, мягкий свет цветом редкости сверху (--tc из .t0–.t5 = --rarN-c) и подчёркивание
   3 px цветом редкости снизу; название и цена — белым. */
.bt .bt-reel .bt-it, .bt .bt-drop__img, .bt .rw__card.rw-k-winner .rw__strip .rw__th:not(.rw__more) {
  --r11-bg:
    radial-gradient(130% 95% at 50% -12%, rgba(var(--tc),.62) 0%, rgba(var(--tc),.3) 48%, rgba(var(--tc),.12) 100%),
    linear-gradient(180deg, rgba(var(--tc),.1), rgba(var(--tc),.04)),   /* R12 A3: свет ровно на всю карточку */
    var(--s2);
  --rs-spot: var(--r11-bg);
  position: relative; overflow: hidden; background: var(--r11-bg); border: 0;
}
.bt .bt-reel .bt-it.is-win { background: var(--r11-bg); box-shadow: inset 0 0 0 2px rgba(255,255,255,.22); }
.bt .bt-it::after, .bt .bt-drop__img::after, .bt .rw__card.rw-k-winner .rw__strip .rw__th:not(.rw__more)::after {
  content: ""; display: block; position: absolute; left: 0; right: 0; bottom: 0; top: auto; height: 3px; z-index: 2; pointer-events: none;
  background: rgb(var(--tc)); box-shadow: 0 -2px 10px rgba(var(--tc),.55);
}
.bt .bt-drop__img::after { height: 2px; }
.bt .bt-reel .bt-it .bt-it__img img, .bt .bt-drop__img img, .bt .rw-k-winner .rw__strip .rw__th img { filter: drop-shadow(0 6px 8px rgba(0,0,0,.4)); }
.bt .bt-reel .bt-it .bt-it__n { color: #fff; font-weight: 700; }
.bt .bt-reel .bt-it .bt-it__p { color: #fff; }
.bt .bt-drop__img img { filter: drop-shadow(0 3px 5px rgba(0,0,0,.4)); }
/* B4 (R10): лента как новый спин кейса (CODEXCASES0930R10A) — подарок крупно, почти на всю карточку; подпись и цена поверх низа
   на затемнении (RARSPOT). Пока лента крутится — только картинки (без мелькания текста), на остановке подписи проявляются. */
.bt .bt-reel .bt-it { justify-content: flex-start; padding: 6px 6px 0; }
.bt .bt-reel .bt-it .bt-it__img { width: calc(var(--vh) * .76); height: calc(var(--vh) * .76); margin-top: 2px; }
.bt .bt-reel .bt-it .bt-it__t { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 18px 8px 8px;
  background: linear-gradient(180deg, rgba(23,27,43,0), rgba(23,27,43,.92) 62%); transition: opacity .25s var(--ease); }
.bt .bt-reel.is-spinning .bt-it .bt-it__t { opacity: 0; transition-duration: .12s; }
.bt .bt-reel .bt-it.bt-it--c .bt-it__img { width: calc(var(--vh) * .7); height: calc(var(--vh) * .7); }
.bt .bt-reel .bt-it.bt-it--c .bt-it__t { padding: 14px 4px 6px; }

/* R11 (сверка V1): аватары ботов и цвета команд в батле — без красного/кирпичного/розово-красного и бирюзы (на крупном
   аватаре 72 px она читалась как зелёный). Общая палитра --av-* в tokens.css (ядро) прежняя — здесь только страница батла,
   включая карточку итога, если она вне .bt */
:root:has(#page[data-page="case-battle"]) {
  --av-1: #6C66FA; --av-2: #2E7CD6; --av-3: #3A4468; --av-4: #B04FD8;
  --av-5: #8A5CF0; --av-6: #5B74FE; --av-7: #C77B2B; --av-8: #9E8CFF;
}
/* R11 (сверка V1, R7-2 «подарки крупнее»): итог на ПК при многих предметах — плитки 72 px (было 48–52), карточка шире */
@media (min-width: 768px) {
  .bt .rw__card.rw-k-winner:has(.rw__strip .rw__th:nth-child(9)) { width: min(620px, 100%); }
  .bt .rw__card.rw-k-winner .rw__strip:has(.rw__th:nth-child(9)) { grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 8px;
    max-width: 580px; max-height: calc(3 * 80px + 2 * 8px); }
}
/* R11 (сверка V1, iPhone SE): список батлов — на низком экране шапка плотнее, первая карточка не уходит под таббар */
@media (max-width: 767.98px) and (max-height: 700px) {
  .bt .bt-lhead.bt-lhead--plain .bt-lhead__top { margin: 0 0 8px; }
  .bt.bt--list > .lw { margin-bottom: 10px; }
  .bt.bt--list > .bt-lhead { margin: 0 0 12px; }

  /* «Как играть» — значком справа от вкладок (было отдельной строкой 40 px), обложки карточек 84 px (были 112) */
  .bt .bt-lhead__row { flex-wrap: nowrap; gap: 8px; width: 100%; max-width: 100%; min-width: 0; }
  .bt .bt-lhead__row > .bt-tabs { flex: 1 1 0; width: auto; min-width: 0; max-width: calc(100% - 48px); overflow-x: auto; scrollbar-width: none; }
  .bt .bt-lhead__guide { flex: none; width: 40px; height: 40px; padding: 0; justify-content: center; font-size: 0; gap: 0; }
  .bt .bt-lhead__guide svg { width: 20px; height: 20px; }
  .bt .bt-card .bt-cv { height: 84px; }
  .bt .bt-card .bt-cv[data-n="1"] .bt-cv__art { grid-template-columns: minmax(0, 84px); grid-template-rows: 84px; }
}


/* R12 K3: a single field. No lane gutters, card frames or bouncing selected tiles.
   Rarity remains a restrained upper light and a fine lower bar within each seamless strip. */
.bt.bt--game .bt-stage { padding: 0; overflow: hidden; border: 0; background: var(--s1); border-radius: 20px; }
.bt.bt--game .bt-pls { gap: 0; padding: 10px 0; background: var(--s1); }
.bt.bt--game .bt-pl { padding: 0 8px; }
.bt.bt--game .bt-pl__bar { border-radius: 10px; }
.bt.bt--game .bt-arena { margin-top: 0; }
.bt.bt--game .bt-lanes { gap: 0; overflow: hidden; background: var(--s1); }
.bt.bt--game .bt-lane { border: 0; border-radius: 0; box-shadow: none; background: transparent; }
.bt.bt--game .bt-lane::after { display: none; }
.bt.bt--game .bt-reel { --gap: 0px; }
.bt.bt--game .bt-strip, .bt.bt--game .bt-arena.is-wide .bt-strip { left: 0; right: 0; gap: 0; }
.bt.bt--game .bt-reel .bt-it,
.bt.bt--game .bt-reel .bt-it.is-win { border-radius: 0; border: 0; box-shadow: none; transform: none; animation: none;
  background: radial-gradient(110% 74% at 50% -20%, rgba(var(--tc),.28), rgba(var(--tc),.075) 52%, rgba(var(--tc),0) 100%), var(--s1);
  transition: opacity .3s; }
.bt.bt--game .bt-reel .bt-it::after { height: 2px; left: 22%; right: 22%; box-shadow: 0 -2px 9px rgba(var(--tc),.18); border-radius: 2px; }
.bt.bt--game .bt-reel .bt-it .bt-it__t { background: linear-gradient(180deg, transparent, color-mix(in srgb,var(--s1) 92%,transparent) 75%); }
.bt.bt--game .bt-reel::before { background: linear-gradient(180deg,var(--s1),color-mix(in srgb,var(--s1) 64%,transparent) 16%,transparent 39%,transparent 61%,color-mix(in srgb,var(--s1) 64%,transparent) 84%,var(--s1)); }
.bt.bt--game .bt-field-mark { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.bt.bt--game .bt-field-mark::before,
.bt.bt--game .bt-field-mark::after { content: ""; position: absolute; top: 50%; width: 0; height: 0; transform: translateY(-50%); border: 6px solid transparent; }
.bt.bt--game .bt-field-mark::before { left: 0; border-left: 9px solid var(--primary-solid); }
.bt.bt--game .bt-field-mark::after { right: 0; border-right: 9px solid var(--primary-solid); }
.bt.bt--game .bt-arena:is(.is-waiting,.is-final) .bt-field-mark { display: none; }
.bt.bt--game .bt-arena.is-wide { --vh-plus: 98px; }
.bt.bt--game .bt-stage.is-final { background: transparent; }
.bt.bt--game .bt-arena.is-waiting .bt-slot { padding: 12px 8px; }
.bt.bt--game .bt-arena.is-waiting .bt-arena__banner { padding: 8px; margin: 0; }
.bt.bt--game .bt-pls.is-noava .bt-pl__ava { display: inline-flex; }
.bt.bt--game .bt-pls.is-tight .bt-pl__ava .bt-ava { --sz: 28px !important; }
.bt.bt--game .bt-pls.is-tight .bt-pl__ava .bt-ava > span { display: inline; }
@media (max-width: 767.98px) {
  .bt.bt--game .bt-stage { border-radius: 16px; }
  .bt.bt--game .bt-pl { padding: 0 4px; }
  .bt.bt--game .bt-pls { padding: 8px 0; }
  .bt.bt--game .bt-pl__bar { display: grid; grid-template-columns: 28px minmax(0,1fr); gap: 4px 6px; height: auto; min-height: 50px; padding: 7px 6px; }
  .bt.bt--game .bt-pl__ava { grid-column: 1; grid-row: 1 / 3; }
  .bt.bt--game .bt-pl__ava .bt-ava { --sz: 28px !important; }
  .bt.bt--game .bt-pl__name { grid-column: 2; grid-row: 1; }
  .bt.bt--game .bt-pl__sum { grid-column: 2; grid-row: 2; min-width: 0; max-width: 100%; font-size: 13px; }
  .bt.bt--game .bt-arena:not(.is-compact) { --vh-plus: 66px; }
  .bt.bt--game:is(.bt--1v1v1,.bt--1v1v1v1,.bt--2v2) .bt-pl__bar { display: flex; flex-direction: column; justify-content: center; gap: 5px; min-height: 88px; padding: 6px 3px; }
  .bt.bt--game:is(.bt--1v1v1,.bt--1v1v1v1,.bt--2v2) .bt-pl__name { width: 100%; justify-content: center; flex: none; }
  .bt.bt--game:is(.bt--1v1v1,.bt--1v1v1v1,.bt--2v2) .bt-pl__sum { width: 100%; text-align: center; }
  .bt.bt--game .bt-arena.is-compact .bt-reel { --vh: 112px; }
  .bt.bt--game .bt-arena.is-compact { --vh-plus: 56px; }
  .bt.bt--game .bt-arena.is-compact .bt-it__img { max-width: 92%; }
}
/* Names stay visible above the amount even in the narrowest four-player layout. */
.bt.bt--game .bt-pl__name { display: flex; }
.bt.bt--game .bt-pl__bar > .bt-pl__sum { margin-left: 0; }
/* Keep the current case and the field centre together on a phone screen. */
.bt.bt--game .bt-rhead--few .bt-car__i .bt-cthumb { --sz: 112px !important; }
@media (max-width: 767.98px) {
  .bt.bt--game .bt-rhead--few .bt-car__i .bt-cthumb { --sz: 88px !important; }
  .bt.bt--game .bt-rhead--few .bt-car__track { gap: 16px; }
  .bt.bt--game .bt-rhead--few .bt-car__cap { max-width: 146px; }
  .bt.bt--game .bt-rhead--few .bt-car__cap b { font-size: 13px; }
  .bt.bt--game .bt-rhead--few .bt-car__cap span { font-size: 13px; }
}
.bt.bt--game .bt-dt { column-gap: 0; padding-inline: 0; }
.bt.bt--game .bt-dt > .bt-drop { margin-inline: 4px; }
/* In team mode the names carry the team colour without dividing the rolling field. */
.bt.bt--2v2 .bt-pl__bar { box-shadow: inset 0 2px 0 var(--pc); }

/* R12 V1: на низком телефоне текущий кейс и управление занимают две строки,
   чтобы центр слитного поля и выпавшие подарки оставались выше нижней панели. */
@media (max-width: 480px) and (max-height: 779px) {
  html[data-inner] .bt.bt--game .bt-rhead {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "info tools" "car nums";
    gap: 4px 8px; margin: 0 0 6px;
  }
  .bt.bt--game .bt-rhead__info { height: 44px; padding-inline: 0; }
  .bt.bt--game .bt-rhead .bt-icon { width: 44px; height: 44px; }
  .bt.bt--game .bt-rhead__nums { justify-self: end; }
  .bt.bt--game .bt-car { height: 52px; }
  .bt.bt--game .bt-car__track { gap: 8px; padding: 2px; }
  .bt.bt--game .bt-car__i .bt-cthumb { --sz: 48px !important; }
  .bt.bt--game .bt-rhead--few .bt-car { justify-content: flex-start; }
  .bt.bt--game .bt-rhead--few .bt-car__track { width: 100%; gap: 8px; padding: 2px; }
  .bt.bt--game .bt-rhead--few .bt-car__i { width: 100%; min-width: 0; flex-direction: row; gap: 8px; }
  .bt.bt--game .bt-rhead--few .bt-car__track:has(.is-cur) .bt-car__i:not(.is-cur),
  .bt.bt--game .bt-rhead--few .bt-car__track:not(:has(.is-cur)) .bt-car__i:not(:first-child) { display: none; }
  .bt.bt--game .bt-rhead--few .bt-car__i .bt-cthumb { --sz: 48px !important; border-radius: 10px; }
  .bt.bt--game .bt-rhead--few .bt-car__cap { flex: 1; min-width: 0; align-items: flex-start; max-width: none; text-align: left; }
  .bt.bt--game .bt-rhead--few .bt-car__cap b { max-width: 100%; }
  .bt.bt--game .bt-pls { padding: 4px 0; }
  .bt.bt--game:is(.bt--1v1v1,.bt--1v1v1v1,.bt--2v2) .bt-pl__bar {
    min-height: 72px; gap: 2px; padding-block: 4px;
  }
  .bt.bt--game { --lanes-h: clamp(168px, calc(100svh - 400px), 340px); }
}
/* R12 V1 (320): имя победителя целиком — мельче и в две строки вместо «Тестовый игр…», метка «вы» видна */
@media (max-width: 359.98px) {
  .bt .rw__card.rw-k-winner .rw__pls--one .rw__pl b { font-size: 19px; white-space: normal; overflow: visible; text-align: center; line-height: 1.2; }
  .bt .rw__card.rw-k-winner .rw__pls--one .rw__av { width: 60px; height: 60px; }
}

/* CUR0930: «Выбор кейсов» → цена. Выбранный диапазон рисуется поверх поля с логотипом валюты, как на витрине («до 60 ★»);
   сам <select> остаётся (текст прозрачный). Его список — родной, системным шрифтом: там подписи словами («до 60 звёзд»). */
.bt-pselect--price { position: relative; }
.bt-pselect.bt-pselect--price .select { color: transparent; }
.bt-pselect.bt-pselect--price .select option { color: var(--text); background-color: var(--s2); }
.bt-pselect__face { position: absolute; inset: 0 40px 0 15px; display: flex; align-items: center; min-width: 0; overflow: hidden;
  white-space: nowrap; pointer-events: none; color: var(--text); font: 600 14px var(--font-body); }
.bt-pselect__face > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 767.98px) { .bt-pselect__face { inset: 0 26px 0 11px; } }

/* PCFIX1001 */
/* Only real selected cases occupy tracks. Larger selections retain the full list. */
@media (min-width: 1024px) {
  .bt--create :is(ul, ol).bt-rounds { grid-template-columns: repeat(auto-fit, minmax(176px, 1fr)); }
  .bt--create .bt-rounds:has(> .bt-rtile:last-child:nth-child(-n+2)) {
    grid-template-columns: repeat(auto-fit, minmax(176px, 280px));
  }
}
@media (min-width: 1200px) {
  .bt--create:not(:has(.bt-rounds > :nth-child(7))) {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr);
    grid-template-areas: "live live" "head head" "rounds settings" "rounds mods" "summary summary";
    gap: 20px 32px;
    align-items: start;
  }
  .bt--create:not(:has(.bt-rounds > :nth-child(7))):has(> .bt-subnav) {
    grid-template-areas: "nav nav" "live live" "head head" "rounds settings" "rounds mods" "summary summary";
  }
  .bt--create:not(:has(.bt-rounds > :nth-child(7))) > .bt-subnav { grid-area: nav; margin-block: 0; }
  .bt--create:not(:has(.bt-rounds > :nth-child(7))) > .lf { grid-area: live; margin-block: 0; }
  .bt--create:not(:has(.bt-rounds > :nth-child(7))) > .bt-head { grid-area: head; margin-block: 0; }
  .bt--create:not(:has(.bt-rounds > :nth-child(7))) > .bt-sec[aria-labelledby="bt-rounds-h"] { grid-area: rounds; margin-block: 0; }
  .bt--create:not(:has(.bt-rounds > :nth-child(7))) > .bt-cgrid { grid-area: settings; grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .bt--create:not(:has(.bt-rounds > :nth-child(7))) > .bt-cgrid > .bt-sec { margin-block: 0; }
  .bt--create:not(:has(.bt-rounds > :nth-child(7))) > .bt-sec[aria-labelledby="bt-mods-h"] { grid-area: mods; margin-block: 0; }
  .bt--create:not(:has(.bt-rounds > :nth-child(7))) > .bt-sum { grid-area: summary; margin-top: 0; }
}
@media (min-width: 1600px) {
  .bt--create:not(:has(.bt-rounds > :nth-child(7))) > .bt-cgrid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
/* PCFIX1001 END */

/* SITEQA-A1001 — list, creation and waiting room; money handlers stay unchanged. */
/* 3: every shown cover and its counter fit inside the card. */
.bt .bt-card .bt-cv[data-n] .bt-cv__art {
  position: relative; inset: auto; display: grid; grid-template-columns: repeat(3,minmax(0,1fr));
  justify-content: center; gap: 8px; height: auto; overflow: visible;
}
.bt .bt-card .bt-cv[data-n="1"] .bt-cv__art { grid-template-columns: minmax(0,calc((100% - 16px)/3)); }
.bt .bt-card .bt-cv[data-n="2"] .bt-cv__art { grid-template-columns: repeat(2,minmax(0,calc((100% - 16px)/3))); }
.bt .bt-card .bt-cv[data-n] .bt-cv__c {
  flex: none; width: 100%; height: auto; aspect-ratio: 1; min-width: 0; max-width: none;
  margin: 0; transform: none; box-shadow: none;
}
.bt .bt-card .bt-cv[data-n] .bt-cv__more { right: 4px; bottom: 4px; }
/* 18: help and the appearance of new battles share the right end of the row. */
@media (min-width:768px) {
  .bt .bt-lhead__guide { margin-left: auto; }
  .bt .bt-newpill { margin-left: 0; }
}
/* 5: catalogue-like battle cards and a bounded action beside the mode. */
@media (min-width:1200px) {
  .bt .bt-list { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .bt .bt-card__body { grid-template-columns: minmax(0,1fr) auto; grid-template-areas: "info cta" "who who"; gap: 10px 8px; }
  .bt .bt-card__info { flex-wrap: wrap; }
  .bt .bt-card__cta { justify-content: flex-end; align-self: start; }
  .bt .bt-card .bt-cta { flex: none; width: auto; min-width: 0; max-width: 100%; height: 44px; min-height: 44px; padding-inline: 12px; font-size: 14px; }
  .bt .bt-card .bt-pill { padding-inline: 0; background: none; border: 0; font-size: 14px; }
  .bt .bt-card__who { justify-content: flex-start; }
}
@media (min-width:1600px) { .bt .bt-list { grid-template-columns: repeat(4,minmax(0,1fr)); } }
/* 7: the same heading and control dimensions for mode and player count. */
.bt.bt--create .bt-cgrid .bt-sec__head { min-height: 32px; align-items: center; margin-bottom: 10px; }
.bt.bt--create .bt-cgrid .bt-mhelp { width: 32px; height: 32px; min-width: 32px; padding: 4px; }
.bt.bt--create .bt-cgrid .bt-mhelp .ico { width: 24px; height: 24px; }
.bt.bt--create .bt-seg__b { min-height: 44px; height: 44px; font-size: 15px; }
.bt.bt--create .bt-seg__b b { font-size: 15px; }
.bt.bt--create .bt-sum__in { background: none; border: 0; box-shadow: none; padding: 8px 0; }
.bt.bt--create .bt-sum__txt { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 8px 14px; }
@media (min-width:1200px) {
  .bt.bt--create:not(:has(.bt-rounds > :nth-child(7))) > .bt-cgrid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
/* 8: real two-column selection; action remains above the phone navigation. */
@media (max-width:767.98px) {
  .bt.bt--create { container-type: normal; padding-bottom: 96px; }
  .bt.bt--create :is(ul,ol).bt-rounds {
    display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px;
    width: 100%; margin: 0; padding: 0; overflow: visible; scroll-snap-type: none;
  }
  .bt.bt--create .bt-rtile { flex: none; width: auto; min-width: 0; padding: 0 0 4px; }
  .bt.bt--create .bt-rtile .bt-cthumb { --sz: 112px !important; }
  .bt.bt--create .bt-radd { min-height: 0; height: 100%; gap: 10px; }
  .bt.bt--create .bt-radd__ico { width: 48px; height: 48px; }
  .bt.bt--create .bt-radd b { font-size: 15px; }
  .bt.bt--create > .bt-sum {
    position: fixed; inset: auto 12px calc(var(--tabbar-h,76px) + env(safe-area-inset-bottom,0px) + 8px);
    z-index: 31; width: auto; margin: 0; padding: 8px; border: 1px solid var(--s-line);
    border-radius: 99px; background: var(--s1); box-shadow: 0 6px 22px #0005;
  }
  .bt.bt--create .bt-sum__in { padding: 0; }
  .bt.bt--create .bt-sum__txt { display: none; }
}
/* 9: one price button; occupied and free places have the same circle and label. */
.bt.bt--game .bt-wait { background: none; border: 0; box-shadow: none; padding: 8px 0; }
.bt.bt--game .bt-room-join { flex: none; width: auto; min-width: 0; max-width: 100%; }
.bt.bt--game .bt-seat { display: grid; grid-template-rows: 64px minmax(32px,auto) auto; align-self: flex-start; align-content: start; justify-items: center; gap: 8px; }
.bt.bt--game .bt-seat .bt-seat__ava { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; }
.bt.bt--game .bt-seat.is-empty:has([data-join]) > .bt-seat__ava { display: inline-flex; }
.bt.bt--game .bt-seat .bt-ava { --sz: 64px !important; }
.bt.bt--game .bt-seat .bt-seat__name { display: flex; min-height: 32px; align-items: start; justify-content: center; font-size: 13px; }
.bt.bt--game .bt-seat .bt-seat__name .bt-name { white-space: normal; max-width: 100%; font-size: 13px; }
.bt.bt--game .bt-seat__pick { border: 0; background: none; padding: 0; border-radius: 50%; }
.bt.bt--game .bt-seat__pick:focus-visible { outline: 2px solid var(--primary-text); outline-offset: 6px; }
.bt.bt--game .bt-seat__pick.is-busy { opacity: .6; cursor: progress; }
/* SITEQA-A1001 END */

/* SITEQA-A1001 — second pass: desktop picker text and controls fit. */
@media (min-width:768px) {
 .bt-dlg--picker .bt-pauto__f:has([data-pas]) .input { width: 176px; }
 .bt-dlg--picker .bt-psearch .input { height: 40px; }
}
/* SITEQA-A1001 END — desktop picker. */

/* BATTLEPC1001 — a bounded desktop arena; the reel still reads its CSS geometry. */
@media (min-width: 1024px) {
  .bt.bt--game {
    --lane-gap: 12px;
    --ar-pad: 12px;
    --lanes-h: 396px;
    --pc-lane: 320px;
    --pc-arena: calc(var(--seats, 4) * var(--pc-lane));
    width: min(100%, 1200px);
    margin-inline: auto;
  }
  .bt.bt--game:has(.bt-lane:nth-child(4)) { --pc-lane: 270px; }
  .bt.bt--game .bt-stage { width: min(100%, var(--pc-arena)); margin-inline: auto; }
  .bt.bt--game .bt-arena .bt-reel { --vh: 176px; }
  .bt.bt--game .bt-reel .bt-it .bt-it__n { font-size: 14px; }
  .bt.bt--game .bt-reel .bt-it .bt-it__p { font-size: 16px; }
  .bt.bt--game :is(ul, ol).bt-dt { width: min(100%, var(--pc-arena)); margin: 12px auto 0; padding-inline: 0; column-gap: 0; row-gap: 8px; }
  .bt.bt--game .bt-drop { padding-inline: 3px; }
  .bt.bt--game .bt-drop__in { min-height: 58px; grid-template-columns: 46px minmax(0, 1fr) auto; gap: 8px; padding: 6px 10px 6px 6px; }
  .bt.bt--game .bt-drop__img { width: 46px; height: 46px; }
}
/* BATTLEPC1001 END */
/* PCART1002-battle: desktop cover collages span their cards. */
@media (min-width: 1024px) {
  .bt .bt-list .bt-card { overflow: hidden; padding: 0; background: #171137; }
  .bt .bt-list .bt-card .bt-cv[data-n] { gap: 0; background: linear-gradient(120deg, var(--ca), var(--cb)); }
  .bt .bt-list .bt-card .bt-cv__meta { position: absolute; z-index: 5; top: 10px; right: 10px; }
  .bt .bt-list .bt-card .bt-cv[data-n] .bt-cv__art {
    display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 2px; width: 100%; height: 190px;
  }
  .bt .bt-list .bt-card .bt-cv[data-n="1"] .bt-cv__art { grid-template-columns: minmax(0,1fr); }
  .bt .bt-list .bt-card .bt-cv[data-n="2"] .bt-cv__art { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .bt .bt-list .bt-card .bt-cv[data-n] .bt-cv__c {
    width: 100%; height: 100%; aspect-ratio: auto; max-width: none; max-height: none; border-radius: 0;
  }
  .bt .bt-list .bt-card .bt-cv__c img { border-radius: 0; object-position: 50% 42%; }
  .bt .bt-list .bt-card .bt-card__body {
    position: relative; z-index: 1; margin-top: -30px; padding: 30px 16px 16px;
    background: linear-gradient(0deg, rgba(17,10,38,.98), rgba(17,10,38,.88) 70%, transparent);
  }
}

/* BATTLEROOM1002-room: room proportions only; list and catalog banner are outside this scope. */
.bt.bt--game .bt-wait { gap: 10px; flex-wrap: wrap; justify-content: center; }
.bt.bt--game .bt-wait__t { text-align: center; }
.bt.bt--game .bt-wait__acts { flex-wrap: wrap; justify-content: center; gap: 8px; }
.bt.bt--game :is(.bt-room-join, .bt-wait__acts > .btn, .bt-seat__btn) {
  min-height: 44px; border-radius: 12px; white-space: nowrap;
}
@media (min-width: 768px) {
  .bt.bt--game {
    --pc-lane: 340px; --pc-arena: calc(var(--seats, 4) * var(--pc-lane));
    --lanes-h: 352px;
    width: min(100%, var(--pc-arena)); max-width: 1080px; margin-inline: auto;
  }
  .bt.bt--game:is(.bt--1v1v1v1, .bt--2v2) { --pc-lane: 256px; }
  .bt.bt--game .bt-stage { width: 100%; margin-inline: auto; }
  .bt.bt--game .bt-arena .bt-reel { --vh: 220px; }
  .bt.bt--game .bt-arena, .bt.bt--game .bt-arena:is(.is-wide, .is-compact) { --vh-plus: 110px; }
  .bt.bt--game .bt-reel .bt-it .bt-it__img {
    width: min(calc(var(--vh) * .82), 90%); height: auto; aspect-ratio: 1;
    max-height: calc(var(--vh) - 32px); margin-top: 0;
  }
  .bt.bt--game .bt-arena.is-waiting .bt-lanes { height: 196px; }
  .bt.bt--game .bt-arena.is-waiting .bt-slot { padding-block: 8px; }
  .bt.bt--game .bt-reel .bt-it .bt-it__t { padding-bottom: 10px; }
  .bt.bt--game :is(ul, ol).bt-dt { width: 100%; margin-inline: auto; }
}
@media (max-width: 767.98px) {
  .bt.bt--game { --lanes-h: clamp(250px, calc(100svh - 450px), 310px); }
  .bt.bt--game .bt-arena .bt-reel { --vh: 136px; }
  .bt.bt--game .bt-arena, .bt.bt--game .bt-arena:is(.is-wide, .is-compact) { --vh-plus: 68px; }
  .bt.bt--game .bt-reel .bt-it .bt-it__img {
    width: min(calc(var(--vh) * .8), 92%); height: auto; aspect-ratio: 1;
    max-height: calc(var(--vh) - 24px);
  }
  .bt.bt--game .bt-arena.is-waiting .bt-lanes { height: 180px; }
  .bt.bt--game .bt-seat__btn { min-height: 40px; padding-inline: 6px; font-size: 12px; }
  .bt.bt--game .bt-room-join { width: 100%; }
}
/* BATTLEROOM1002-room END */

/* AGENT7FIX1002: «Создать за … ₽» на телефоне — под плавающей кнопкой сплошная нижняя подложка во всю ширину до низа экрана
   (меню сайта — выше неё): заголовки и кнопки страницы больше не выглядывают сбоку и под кнопкой. Сама кнопка — прежняя. */
@media (max-width:767.98px) {
  .bt.bt--create > .bt-sum { background: none; border: 0; box-shadow: none; padding: 0; }
  .bt.bt--create > .bt-sum::before {
    content: ""; position: absolute; z-index: -1; pointer-events: none; left: -12px; right: -12px; top: -14px;
    bottom: calc(-1 * (var(--tabbar-h, 76px) + env(safe-area-inset-bottom, 0px) + 8px));
    background: linear-gradient(to bottom, transparent, var(--bg) 14px);
  }
  .bt.bt--create > .bt-sum > .bt-sum__in { padding: 8px; border: 1px solid var(--s-line); border-radius: 99px; background: var(--s1); box-shadow: 0 6px 22px #0005; }
}

/* MINI1002-battle-result: низкий Telegram WebView — подарки листаются внутри итога,
   кнопки результата остаются над нижним меню. На ПК прежние размеры. */
@media (max-width: 767.98px) {
  .bt .rw__card.rw-k-winner .rw__strip:has(.rw__th:nth-child(9)) {
    max-height: clamp(120px, calc(100dvh - 548px), 258px);
  }
}

/* MINI1002-battle-reels: поле и картинки только телефона; тайминги и выпадение прежние. */
@media (max-width: 767.98px) {
  .bt.bt--game { --lanes-h: var(--bt-phone-lanes-h, clamp(250px, calc(100svh - 450px), 310px)); }
  .bt.bt--game .bt-reel .bt-it { padding-inline: 3px; }
  .bt.bt--game .bt-reel .bt-it .bt-it__img {
    width: min(calc(var(--vh) * .88), 100%);
    max-width: 100%; max-height: calc(var(--vh) - 20px);
  }
}

/* MINI1002-battle-take: уже выданные подарки — сразу в инвентарь; только телефон. */
@media (max-width:767.98px) {
  .bt .bt-payout { display:flex; flex-direction:column; justify-content:center; gap:3px; min-height:44px;
    margin-top:12px; padding:6px 10px; border-radius:12px; background:var(--s2); color:var(--text-2); text-align:center; font:500 12px/1.3 var(--font-body); }
  .bt .bt-payout b { color:var(--text); font-size:14px; }
  .bt .bt-payout:focus-visible { outline:2px solid var(--accent); outline-offset:3px; }
  .bt .rw__card.rw-k-winner[style*="--bt-result-strip-h"] .rw__strip:has(.rw__th:nth-child(4)) {
    max-height:var(--bt-result-strip-h); overflow-y:auto; overscroll-behavior:contain; scrollbar-width:thin;
  }
}

/* MINI1002-battle-create: клавиатура телефона — подвал выбора доступен прокруткой, без обрезания. */
@media (max-width:767.98px) and (max-height:550px) {
  .bt-dlg--picker .cs-dlg__panel { overflow-y:auto; overscroll-behavior:contain; scroll-padding-block:12px; }
  .bt-dlg--picker :is(ul,ol).bt-pgrid { overscroll-behavior-y:auto; }
}

/* NAMES1002: on a phone a long player name uses the existing ellipsis, including our seat. */
@media (max-width:1023.98px) {
  .bt-name.is-vy .bt-name__t { display:block; }
  .bt-name.is-vy .bt-name__vy { display:none; }
}

/* N2-cases-5: keep the case picker inside the visible area above the phone keyboard. */
@media (max-width:767.98px) {
  .bt-dlg--picker.bt-has-keyboard[open] {
    position:fixed; inset:var(--bt-pick-top, 0px) 0 auto; margin:0;
    height:var(--bt-pick-h); padding:12px; align-items:flex-start;
  }
  .bt-dlg--picker.bt-has-keyboard .cs-dlg__panel {
    max-height:calc(var(--bt-pick-h) - 24px); overflow-y:auto;
    overscroll-behavior:contain; scroll-padding-block:12px;
  }
  .bt-dlg--picker.bt-has-keyboard :is(ul,ol).bt-pgrid {
    min-height:80px; overscroll-behavior-y:auto;
  }
}

/* N2-cases-7: long published client seeds stay inside the phone battle proof. */
@media (max-width:767.98px) {
  .cs-dlg--fair.bt-dlg .fr-steps .fr-dim { overflow-wrap:anywhere; }
}

/* N2-cases-11: scrollable phone prize rows keep their own square height. */
@media (max-width:767.98px) {
  .bt .rw__card.rw-k-winner[style*="--bt-result-strip-h"] .rw__strip:has(.rw__th:nth-child(4)) {
    grid-auto-rows:max-content; align-content:start;
  }
}

/* N2-cases-perf-2: тень картинок карточек ленты — только в покое. drop-shadow на 64 карточках × 4 ленты растрировался при каждом
   появлении новых тайлов: в WebKit старт раунда 490–800 мс и кадры по 150 мс. Как в кейсах (.cs-well.is-spinning … filter: none). */
.bt [data-reel]:is(.is-spinning, .is-preparing) .bt-it:not(.is-win) .bt-it__img img { filter: none; }

/* N2-cases-18: в ожидании 1v1 одно добавление бота; для больших комнат выбор места остаётся. */
@media (max-width: 767.98px) {
  .bt.bt--game.bt--1v1 .bt-arena.is-waiting:has([data-fill]) .bt-seat__btn { display: none; }
}

/* N3-battle-1: Telegram-фото участника в прежнем круге, буква видна при img-fail. */
@media (max-width: 1023.98px) {
  .bt-ava > .bt-ava__photo {
    position: absolute; inset: 0; display: block; width: 100%; height: 100%;
    border-radius: inherit; object-fit: cover; pointer-events: none;
  }
}

/* N3-battle-2 / ART3-B1: cover metadata and images keep their own height in the phone list. */
@media (max-width: 767.98px) {
  .bt.bt--list .bt-list .bt-card .bt-cv { height: auto; }
}

/* N3-battle-invite-1 — Telegram: invite below the waiting lobby, desktop stays unchanged. */
.bt-invite { display: none; }
@media (max-width: 1023.98px) {
  .bt.bt--game .bt-invite:not([hidden]) { display: block; margin: 14px 0 16px; }
  .bt.bt--game .bt-invite__button { width: 100%; min-height: 52px; gap: 10px; border-radius: 16px; font-size: 15px; font-weight: 700; }
}

/* N3-battle-errors-1: keep a phone link error close to its section. */
@media (max-width: 767.98px) {
  .bt .bt-gone { padding-block: 24px; }
}

/* N3-cases-6: телефонный итог батла учитывает все кнопки, включая репост. */
@media (max-width: 767.98px) {
  .bt .rw__card.rw-k-winner[style*="--bt-result-h"] {
    max-height: var(--bt-result-h);
    min-height: 0;
  }
  .bt .rw__card.rw-k-winner[style*="--bt-result-h"] .rw__main {
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
  }
}


/* BATTLEAVA1002: полный круг победителя и центрированная буква на телефоне. */
@media (max-width: 1023.98px) {
  /* Кольцо выступает на5px, прежний отступ4px резал его в .rw__main с overflow:auto. */
  .bt .rw__card.rw-k-winner .rw__pls { padding-top: 6px; }
  .bt .rw__card.rw-k-winner .rw__av {
    display: inline-flex; align-items: center; justify-content: center;
    flex-shrink: 0; line-height: 1;
  }
  .bt .rw__card.rw-k-winner .rw__av > .bt-ava--winner {
    display: flex; align-items: center; justify-content: center;
    width: 100%; height: 100%; min-width: 0; min-height: 0;
    margin: 0; padding: 0; line-height: 1; border-radius: 50%;
  }
  .bt .rw__card.rw-k-winner .bt-ava--winner > span {
    display: flex; align-items: center; justify-content: center;
    width: 100%; height: 100%; margin: 0; padding: 0; font: inherit;
  }
  .bt .rw__card.rw-k-winner .bt-ava--winner > .bt-ava__photo {
    position: absolute; inset: 0; display: block; width: 100%; height: 100%;
    object-fit: cover; object-position: center; border-radius: inherit;
  }
}

/* ── COINFLIP1007: монетка тайбрейка ── крупно поверх батла; золотая монета в стиле Crazy Wheel (обод, пунктир, блик),
   на сторонах аватарки претендентов; больше двух — подсветка по кругу. Только transform/opacity. */
.bt-cf { position: absolute; inset: 0; z-index: 3; display: grid; place-content: center; justify-items: center; gap: 14px; padding: 12px;
  background: radial-gradient(70% 60% at 50% 45%, rgba(24,20,60,.62), rgba(10,12,28,.86)); animation: bt-cf-in .22s ease both; }
.bt-cf.is-out { opacity: 0; transition: opacity .26s ease; }
@keyframes bt-cf-in { from { opacity: 0; } to { opacity: 1; } }
.bt-cf__stage { position: relative; width: clamp(140px, 44vw, 200px); aspect-ratio: 1; perspective: 900px; display: grid; place-items: center; }
.bt-cf__toss { position: absolute; inset: 0; transform-style: preserve-3d; will-change: transform; }
.bt-cf__coin { position: absolute; inset: 0; transform-style: preserve-3d; will-change: transform; }
.bt-cf__face { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 50%; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  background: radial-gradient(circle at 50% 50%, #6FB0FF 0 40%, #3B8EFA 62%, #1D55C4 72%, transparent 73%); }   /* COINFLIP1007-wk: без filter — в WebKit он ломает 3D и backface */
/* рамка монеты — арт Кузьмы-2 (обод Crazy Wheel, прозрачное окно r=184/512), поверх аватарки; блик — поверх всего */
.bt-cf__face::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: url('../../img/coinflip1007/coin-blue-512.webp') center / 100% 100% no-repeat; }
.bt-cf__face::before { content: ""; position: absolute; inset: 14%; z-index: 3; border-radius: 50%; pointer-events: none;
  background: linear-gradient(125deg, rgba(249,254,253,.42) 0 16%, transparent 32% 100%); }
.bt-cf__face--b { transform: rotateY(180deg); background: radial-gradient(circle at 50% 50%, #FF8C8F 0 40%, #F7494F 62%, #B81F2A 72%, transparent 73%); }
.bt-cf__face--b::after { background-image: url('../../img/coinflip1007/coin-red-512.webp'); }
/* COINFLIP1007-wk: обод и блик тоже не видны с обратной стороны; на остановке проигравшая сторона скрыта явно (iPhone) */
.bt-cf__face::after, .bt-cf__face::before { -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.bt-cf.is-done[data-win="a"] .bt-cf__face--b, .bt-cf.is-done[data-win="b"] .bt-cf__face:not(.bt-cf__face--b) { visibility: hidden; }
.bt-cf__who { position: relative; z-index: 1; display: flex; justify-content: center; align-items: center; gap: 4px; width: 75%; height: 75%; }
.bt-cf__face .bt-cf__who > .bt-ava:only-child { width: 100%; height: 100%; }
.bt-cf--ring .bt-cf__who .bt-ava { box-shadow: 0 0 0 3px rgba(255,255,255,.9), 0 4px 10px rgba(0,0,0,.35); }
.bt-cf--ring .bt-cf__who { width: auto; height: auto; }
.bt-cf__shadow { position: absolute; bottom: -14px; width: 46%; height: 10px; border-radius: 50%; background: rgba(0,0,0,.5); filter: blur(5px); }
.bt-cf__glow { position: absolute; inset: -40%; border-radius: 50%; opacity: 0; pointer-events: none;
  background: radial-gradient(circle, rgba(255,214,90,.75) 0%, rgba(255,214,90,.18) 38%, transparent 62%); }
.bt-cf.is-done .bt-cf__glow { animation: bt-cf-glow 1.1s ease-out both; }
@keyframes bt-cf-glow { 0% { opacity: 0; transform: scale(.6); } 30% { opacity: 1; transform: scale(1); } 100% { opacity: .55; transform: scale(1.05); } }
.bt-cf__t { margin: 0; max-width: 92%; text-align: center; font: 700 15px/1.3 Onest, var(--font-body, sans-serif); color: #fff; text-shadow: 0 2px 6px rgba(0,0,0,.6); }
.bt-cf.is-done .bt-cf__t { font-size: 17px; color: #FFE08A; animation: bt-cf-pop .4s cubic-bezier(.2,.9,.3,1.3) both; }
@keyframes bt-cf-pop { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: none; } }
/* больше двух претендентов: аватарки по кругу, золотая рамка обходит круг и встаёт на победителе */
.bt-cf--ring .bt-cf__stage { width: clamp(176px, 56vw, 230px); }
.bt-cf__ring { position: absolute; inset: 0; --rad: clamp(56px, 18vw, 82px); border-radius: 50%; background: radial-gradient(circle, rgba(255,200,61,.14), transparent 70%); }
.bt-cf__slot { position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%) rotate(calc(var(--i) * 360deg / var(--n))) translateY(calc(-1 * var(--rad))) rotate(calc(var(--i) * -360deg / var(--n))); }
.bt-cf__arm { position: absolute; inset: 0; will-change: transform; }
.bt-cf__arm > i { position: absolute; left: 50%; top: 50%; width: 62px; height: 62px; border-radius: 50%;
  transform: translate(-50%, -50%) translateY(calc(-1 * var(--rad))); border: 3px solid #FFC83D; box-shadow: 0 0 16px rgba(255,200,61,.8); }
.bt-cf--ring.is-done .bt-cf__slot:not(.is-win) { opacity: .45; transition: opacity .3s ease; }
/* итог батла: маленькая монета с аватаркой победителя монетки */
.bt-coinmini { position: relative; display: inline-grid; place-items: center; width: 28px; height: 28px; margin-right: 6px; vertical-align: middle; border-radius: 50%;
  background: radial-gradient(circle, #3B8EFA 0 62%, transparent 63%); }
.bt-coinmini::after { content: ""; position: absolute; inset: 0; background: url('../../img/coinflip1007/coin-blue-128.webp') center / 100% 100% no-repeat; }
.bt-coinmini--b { background: radial-gradient(circle, #F7494F 0 62%, transparent 63%); }
.bt-coinmini--b::after { background-image: url('../../img/coinflip1007/coin-red-128.webp'); }
.bt-coinmini--ring { background: radial-gradient(70% 70% at 35% 30%, #FFF1B0, #FAD859 45%, #A05909); }
.bt-coinmini--ring::after { display: none; }
.bt-coinmini .bt-ava { box-shadow: 0 0 0 1.5px rgba(255,255,255,.9); }
@media (prefers-reduced-motion: reduce) { .bt-cf, .bt-cf.is-done .bt-cf__glow, .bt-cf.is-done .bt-cf__t { animation: none; } .bt-cf.is-done .bt-cf__glow { opacity: .55; } }
/* строка итога с монеткой длинная («Ничья, тайбрейк ничья, монетка: победил …») — переносится, без многоточия */
.rw__note:has(> .bt-coinmini) { white-space: normal; overflow: visible; text-overflow: clip; text-wrap: balance; }

/* SITE1024-BT87 (сайт/87_кейс_батлы.py) · страница кейс-батла на сайте, только html.rb-site; мини-апп без изменений. */
/* «Король батлов недели»: нет данных (демо, сбой) — карточки нет (.bk{display:grid} перебивал hidden, оставался пустой блок 268 px) */
html.rb-site .bk[hidden]{display:none}
/* билеты Турниров и «Позвать друга» (закрытый батл «Пока недоступно»): Турниров на сайте нет */
html.rb-site .bk-invite{display:none}
html.rb-site .bk-tm small,html.rb-site .bk-ghost__s small{font-size:12px}
/* лента LIVE: на ПК сайта ее место левая колонка (от 1280) или ее нет (1024-1279, без стилей сайта суммы резались) */
@media (min-width:1024px){html.rb-site .bt > .lf{display:none}}
/* телефон: «Пригласить друга» в ожидании игроков стоит над нижним меню сайта (баннер Telegram сверху уводил ее под меню) */
@media (max-width:767.98px){html.rb-site .bt.bt--game .bt-invite:not([hidden]){position:sticky;bottom:calc(70px + env(safe-area-inset-bottom,0px));z-index:6}}
/* ПК: «Создать за N ₽» на создании батла липнет к низу окна (на 1024x768 была ниже экрана, на 1280x800 срезана краем; INTEG7-1, INTEG8-1);
   полоса с непрозрачным фоном: прозрачная ложилась текстом на «Режим» и чипы (OWN9-2), при .94 они чуть просвечивали (INTEG10-1) */
@media (min-width:1024px){html.rb-site .bt.bt--create>.bt-sum{position:sticky;bottom:16px;z-index:6;background:#171b2c;border-radius:18px;box-shadow:0 10px 28px rgba(5,7,16,.55),0 0 0 1px rgba(170,185,255,.10)}}
/* /SITE1024-BT87 */

/* SITE1024-BT94 (сайт/94_батлы_выбор.py) · только сайт (html.rb-site): окно «Выбор кейсов» с разделами «Подарки / Скины CS2»,
   плашка «Скины CS2», кнопка «Выбрать кейсы» на пустом создании. Мини-апп без изменений. */
html.rb-site .bt-pkind94{flex:none;display:grid;grid-template-columns:1fr 1fr;gap:4px;margin:10px 0 2px;padding:4px;border-radius:16px;background:rgba(255,255,255,.04);box-shadow:inset 0 0 0 1px rgba(170,185,255,.10)}
html.rb-site .bt-pkind94__b{display:flex;align-items:center;justify-content:center;gap:8px;min-width:0;height:44px;padding:0 12px;border:0;border-radius:12px;background:transparent;color:#AEB8D6;font:700 15px/1 Onest,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;white-space:nowrap;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:background-color .15s ease,color .15s ease}
html.rb-site .bt-pkind94__b img{flex:none;display:block;width:28px;height:28px;object-fit:contain}
html.rb-site .bt-pkind94__b span{overflow:hidden;text-overflow:ellipsis}
html.rb-site .bt-pkind94__b:hover{color:#F8F9FF}
html.rb-site .bt-pkind94__b[aria-checked="true"]{background:var(--primary-fill,linear-gradient(100deg,#5B74FE 0%,#6C66FA 50%,#7B5CF0 100%));color:#fff;box-shadow:inset 0 1px 0 rgba(255,255,255,.22)}
html.rb-site .bt-pkind94__b:focus-visible{outline:2px solid #8F7BFF;outline-offset:2px}
html.rb-site .bt-dlg--picker.is-cs94 :is(.bt-pctrl,.bt-pauto,.bt-pgrid){display:none}
html.rb-site .bt-pcs94{flex:1 1 auto;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;min-height:min(60vh,620px);padding:20px 16px;text-align:center}
html.rb-site .bt-pcs94[hidden]{display:none}
html.rb-site .bt-pcs94__art img{display:block;width:120px;height:120px;object-fit:contain;filter:drop-shadow(0 10px 18px rgba(5,7,20,.55))}
html.rb-site .bt-pcs94__t{font:800 20px/26px Unbounded,system-ui,sans-serif;color:#F8F9FF}
html.rb-site .bt-pcs94__s{max-width:420px;font:500 15px/21px Onest,system-ui,sans-serif;color:#AEB8D6}
html.rb-site .bt-pcs94 .btn{margin-top:6px}
@media (max-width:767.98px){
  html.rb-site .bt-pkind94{margin:6px 0 2px}
  html.rb-site .bt-pkind94__b{height:40px;gap:6px;font-size:14px}
  html.rb-site .bt-pkind94__b img{width:24px;height:24px}
  html.rb-site .bt-pcs94{min-height:50vh}
  html.rb-site .bt-pcs94__art img{width:96px;height:96px}
  html.rb-site .bt-pcs94__t{font-size:17px;line-height:23px}
  html.rb-site .bt-pcs94__s{font-size:14px;line-height:20px}
  /* пустое создание: «Добавить кейс» одна, высотой с плитку кейса (у апки одна плитка сжималась до 84 px) */
  html.rb-site .bt.bt--create .bt-rounds>.bt-rtile--add:only-child .bt-radd{min-height:215px}
}
@media (max-width:767.98px) and (max-height:700px){html.rb-site .bt-pkind94{margin:4px 0 0;padding:3px}html.rb-site .bt-pkind94__b{height:40px}}
/* /SITE1024-BT94 */
