.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 44px; padding: 0 18px;
  border: 1px solid transparent; border-radius: var(--r-md);
  font-family: var(--font-body); font-size: 15px; font-weight: 700; line-height: 1;
  white-space: nowrap; text-decoration: none; cursor: pointer;
  transition: background-color var(--dur-1) var(--ease), border-color var(--dur-1) var(--ease),
              color var(--dur-1) var(--ease), transform var(--dur-1) var(--ease), box-shadow var(--dur-2) var(--ease);
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; }
.btn svg { display: block; }
.btn--primary {
  background: var(--primary-fill); color: var(--on-primary); font-weight: 700;
  text-shadow: none; box-shadow: var(--accent-edge);
}
.btn--primary:hover:not(:disabled) { background: var(--primary-fill-hover); color: var(--on-primary); }
.btn--primary .ico, .btn--primary svg { color: currentColor; }
.btn--primary:active:not(:disabled) { background: var(--primary-fill-press); box-shadow: var(--accent-edge); }

.btn--secondary { background: var(--surface-2); border-color: var(--line-btn); color: var(--text); font-weight: 600; }
.btn--secondary:hover:not(:disabled) { background: var(--surface-hover); border-color: var(--line-hover); color: var(--text); }
.btn--glass { background: var(--btn-glass); border-color: var(--btn-glass-line); color: var(--on-fill); font-weight: 700; }
.btn--glass:hover:not(:disabled) { background: rgba(255,255,255,.24); border-color: rgba(255,255,255,.36); color: var(--on-fill); }

.btn--ghost { background: transparent; color: var(--text-2); font-weight: 600; }
.btn--ghost:hover:not(:disabled) { background: var(--surface); color: var(--text); }

.btn--outline { background: var(--surface); border-color: var(--line-strong); color: var(--text); font-weight: 600; }
.btn--outline:hover:not(:disabled) { border-color: var(--line-hover); color: var(--text); }

.btn--win { background: var(--win-fill); color: var(--on-fill); font-weight: 700; text-shadow: none; box-shadow: var(--win-edge), 0 6px 18px rgba(19,168,107,.2); }
.btn--win:hover:not(:disabled) { background: var(--win-fill-hover); color: var(--on-fill); }
.btn--win:active:not(:disabled) { box-shadow: var(--win-edge); }

.btn--danger { background: var(--danger-soft); border-color: rgba(255,92,122,.35); color: var(--danger-text); font-weight: 600; }
/* REDESIGN0927 (Я3): «Пополнить» — сине-фиолетовый градиент и белый текст; «Вывести» — тёмная вторичная */
.btn--deposit { background: var(--grad-deposit); color: var(--deposit-ink); font-weight: 700; border-color: rgba(255,255,255,.14); box-shadow: var(--deposit-edge), var(--deposit-glow); }
.btn--deposit:hover:not(:disabled) { background: var(--grad-deposit-hover); color: var(--deposit-ink); }
.btn--deposit:active:not(:disabled) { background: var(--grad-deposit-press); box-shadow: var(--deposit-edge); }
.btn--deposit:focus-visible { outline-color: var(--text); }
.btn--deposit .ico, .btn--deposit svg { color: currentColor; }
.btn--withdraw { background: var(--s2); border-color: var(--s-line-hi); color: var(--text-2); font-weight: 700; }
.btn--withdraw:hover:not(:disabled) { background: var(--surface-hover); border-color: var(--line-hover); color: var(--text); }
/* цена внутри кнопки: «Забрать [47 ₽]» — приглушённая таблетка, цифры одной ширины */
.btn__price {
  display: inline-flex; align-items: center; height: 28px; margin-right: -6px; padding: 0 10px; border-radius: 10px;
  background: rgba(0,0,0,.14); font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap;
}
.btn--sm .btn__price { height: 24px; padding: 0 8px; font-size: 13px; border-radius: 8px; margin-right: -4px; }
/* REDESIGN0927: значок валюты (звёзды, TON) в цене — в строку с числом; общее .btn svg { display:block } переносило его вниз */
.btn__price .cur-mark, .btn .money-i__mark { display: inline-block; }
.btn--secondary .btn__price, .btn--withdraw .btn__price, .btn--ghost .btn__price, .btn--outline .btn__price { background: rgba(255,255,255,.07); }
.price-pill {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: var(--r-pill);
  background: var(--s2); color: var(--text); font-size: 15px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap;
}
.price-pill--lg { height: 36px; padding: 0 14px; font-size: 16px; }
.price-pill--on-fill { background: rgba(0,0,0,.18); color: var(--white); }
/* DC-0929 (S7): одна малая кнопка во всех разделах — h40, 14px 700 (локальные 36/13,5 в задачах, турнирах, друзьях сняты) */
.btn--sm { height: var(--btn-h-sm, 40px); padding: 0 14px; border-radius: var(--r-10); font-size: 14px; font-weight: 700; gap: 7px; }
.btn::after, .chip::after, .link-arrow::after { content: ""; position: absolute; inset: min(0px, calc(50% - 22px)); }
.chip, .link-arrow { position: relative; }
.btn--sm::after { content: ""; position: absolute; inset: min(0px, calc(50% - 22px)); }
.btn--lg { height: 48px; padding: 0 22px; border-radius: var(--r-lg); font-size: 15px; }
.btn--xl { height: 54px; padding: 0 30px; border-radius: var(--r-lg); font-size: 16px; }
.btn--display { font-family: var(--font-body); }
.btn--block { display: flex; width: 100%; }
.btn--square { padding: 0; width: 44px; }
.btn--lg.btn--square { width: 48px; } .btn--xl.btn--square { width: 54px; }
.icon-btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 42px; height: 42px; border-radius: var(--r-md);
  background: var(--surface); border: 1px solid var(--line-strong); color: var(--text-2);
  transition: color var(--dur-1) var(--ease), border-color var(--dur-1) var(--ease), background-color var(--dur-1) var(--ease);
}
.icon-btn::after { content: ""; position: absolute; left: 50%; top: 50%; width: max(100%, 44px); height: max(100%, 44px); transform: translate(-50%,-50%); }
.icon-btn:hover { color: var(--text); border-color: var(--line-hover); }
.icon-btn--sm { width: 32px; height: 32px; border-radius: var(--r-9); background: var(--surface-4); }
.icon-btn--bare { background: transparent; border-color: transparent; }
.icon-btn--bare:hover { background: var(--surface); border-color: transparent; }
.icon-btn--accent { background: var(--primary-fill); border-color: transparent; color: var(--on-primary); box-shadow: var(--accent-edge); }
.icon-btn--accent:hover { background: var(--primary-fill-hover); border-color: transparent; color: var(--on-primary); }
.icon-btn__dot {
  position: absolute; top: 7px; right: 7px; width: 8px; height: 8px; border-radius: 50%;
  background: var(--win); box-shadow: 0 0 0 2px var(--surface);
}
.btn-all {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  height: 40px; padding: 0 12px 0 16px; border-radius: var(--r-md);
  background: var(--surface); border: 1px solid var(--line-strong);
  color: var(--text); font-size: 14px; font-weight: 600; white-space: nowrap;
  position: relative;
}
.btn-all::after { content: ""; position: absolute; inset: -2px 0; }
.btn-all:hover { color: var(--text); border-color: var(--line-hover); }
.link-arrow {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 32px;
  color: var(--text); font-size: 14px; font-weight: 600;
}
.link-arrow:hover { color: var(--primary-text); }
.link-arrow svg { transition: transform var(--dur-1) var(--ease); }
.link-arrow:hover svg { transform: translateX(2px); }
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  height: 22px; padding: 0 8px; border-radius: var(--r-sm);
  background: var(--chip-dark); color: var(--text);
  font-size: 11px; font-weight: 700; letter-spacing: .02em; line-height: 1; white-space: nowrap;
}
.badge--rtp { color: var(--win); }
.badge--pvp, .badge--nft { color: var(--text); }
.badge--solid-win { background: var(--win-soft); }
.badge--mod { height: 18px; padding: 0 6px; border-radius: var(--r-xs); background: var(--primary-soft); color: var(--primary-text); letter-spacing: 0; }
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  height: 24px; padding: 0 10px; border-radius: var(--r-pill);
  background: var(--tint-07); color: var(--text-2);
  font-size: 12.5px; font-weight: 600; line-height: 1; white-space: nowrap;
}
.pill--lg { height: 30px; padding: 0 12px; font-size: 13px; font-weight: 700; gap: 8px; }
.pill--sm { height: 22px; padding: 0 8px; font-size: 12px; }
/* ART0930: .pill--win — только пилюля «● N онлайн» (чат ПК, лист чата): текст светло-серый, зелёная лишь точка */
.pill--win { background: var(--tint-07); color: var(--text-2); }
.pill--win .pill__dot { background: var(--online, #22C55E); }
.pill--accent { background: var(--primary-soft); color: var(--primary-text); }
.pill--sky { background: var(--sky-soft); color: var(--sky); }
.pill--danger { background: var(--danger-soft); color: var(--danger-text); }
.pill--on-accent { background: rgba(255,255,255,.18); color: var(--on-fill); font-weight: 700; }
.pill__dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--online, #22C55E); box-shadow: 0 0 0 4px var(--online-soft, rgba(34,197,94,.18)); flex: none; }
.tag {
  display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: var(--r-xs);
  background: var(--tint-08); color: var(--text-2);
  font-size: 10.5px; font-weight: 700; letter-spacing: .04em; line-height: 1;
}
.lvl-badge {
  display: inline-flex; align-items: center; gap: 4px; flex: none;
  height: 18px; padding: 0 6px; border-radius: var(--r-xs);
  background: var(--tint-06); color: var(--lvl, var(--lvl-novice));
  font-size: 11px; font-weight: 600; line-height: 1; white-space: nowrap;
}
.mult {
  display: inline-flex; align-items: center; height: 26px; padding: 0 9px; border-radius: var(--r-sm);
  background: var(--tint-07); color: var(--text);
  font-size: 13.5px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap;
}
.mult--lose { background: var(--tint-06); color: var(--text-3); }
.amount-win { color: var(--win); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.amount-lose { color: var(--text-3); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.avatar {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 32px; height: 32px; border-radius: var(--r-10);
  background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,0) 60%), var(--av, var(--av-1));
  color: var(--on-fill); text-shadow: none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.10);
  font-family: var(--font-body); font-size: 13px; font-weight: 700; line-height: 1; overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar--sm { width: 26px; height: 26px; font-size: 12px; }
.avatar--lg { width: 44px; height: 44px; border-radius: var(--r-md); font-size: 16px; }
.avatar--xl { width: 72px; height: 72px; border-radius: var(--r-xl); font-size: 28px; }
.avatar--round { border-radius: 50%; }
.avatar--mod { background: var(--surface-active); color: var(--primary-text); }
.game-ico {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 34px; height: 34px; border-radius: var(--r-10);
  background: var(--gc, var(--surface-4)); color: var(--white);
}
.game-ico--sm { width: 26px; height: 26px; border-radius: var(--r-xs); }
.game-ico--md { width: 40px; height: 40px; border-radius: var(--r-11); }
.game-ico--lg { width: 44px; height: 44px; border-radius: var(--r-md); }
.game-ico--thumb { position: relative; overflow: hidden; background: var(--surface-4); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.game-ico--thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.gift-thumb {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 44px; height: 44px; border-radius: var(--r-md);
  background: radial-gradient(circle at 50% 45%, var(--glow, rgba(200,210,240,.20)) 0%, rgba(20,27,45,0) 70%), var(--surface-3);
}
.gift-thumb img { width: 86%; height: 86%; object-fit: contain; }
.gift-thumb--lg { width: 48px; height: 48px; }
.gift-thumb--xl { width: 64px; height: 64px; border-radius: var(--r-lg); }
.feature-ico {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 40px; height: 40px; border-radius: var(--r-md);
  background: var(--s2); color: var(--text-2);
}
.feature-ico--accent { background: var(--s2); color: var(--text); }   /* REDESIGN0927: без жёлтых квадратов вокруг иконок */
.feature-ico--sky    { background: var(--sky-soft); color: var(--sky); }
.feature-ico--win    { background: var(--win-soft); color: var(--win); }
.feature-ico--violet { background: var(--violet-soft); color: var(--violet-text); }
.feature-ico--solid  { background: var(--s2); color: var(--text); }
.panel {
  padding: var(--sp-6); border-radius: var(--r-xl);
  background: var(--surface); border: 1px solid var(--line);
}
.panel--lg { padding: 28px 32px; }
.panel--sunk { background: var(--surface-sunk); }
.panel--hero { background: var(--surface-hero); border-color: var(--line-hero); border-radius: var(--r-hero); }
.panel--accent { background: var(--primary-fill); border-color: transparent; color: var(--on-primary); box-shadow: var(--accent-edge); }
.panel--accent .h2, .panel--accent .h3 { color: var(--on-primary); }
@media (max-width: 767.98px) {
  .panel, .panel--lg { padding: var(--sp-5); }
}
.feature {
  display: flex; flex-direction: column;
  padding: var(--sp-6); border-radius: var(--r-xl);
  background: var(--surface); border: 1px solid var(--line);
  min-height: 100%;
}
.feature__title { margin-top: 18px; font-family: var(--font-display); font-weight: 700; font-size: var(--fs-h3); line-height: 1.25; color: var(--text); }
.feature__text { margin-top: 8px; font-size: 14px; line-height: 1.5; color: var(--text-2); }
.feature__foot { margin-top: auto; padding-top: var(--sp-4); }
.feature__value { font-family: var(--font-display); font-weight: 800; font-size: 26px; line-height: 1.1; color: var(--text); }
.feature__value--win { color: var(--win); }
.feature__caption { margin-top: 4px; font-size: 13px; color: var(--text-2); }
.stat__value { font-family: var(--font-display); font-weight: 700; font-size: 22px; line-height: 1.1; color: var(--text); white-space: nowrap; }
.stat__label { margin-top: 5px; font-size: 13px; color: var(--text-3); }
.stat-divider { width: 1px; height: 40px; background: var(--line-strong); flex: none; }
.stat-tile { padding: 12px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.stat-tile .stat__value { font-size: 15px; line-height: 1.2; }
.stat-tile .stat__label { margin-top: 4px; font-size: 12px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--sp-6); }
.section-head__titles { min-width: 0; }
.section-head__row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.section-head__title { font-family: var(--font-body); font-weight: 700; font-size: 20px; line-height: 1.25; letter-spacing: -0.01em; color: var(--text); }   /* REDESIGN0927: заголовки секций — Onest */
@media (max-width: 767.98px) { .section-head__title { font-size: 18px; } }
.section-head__sub { margin-top: 7px; font-size: var(--fs-md); color: var(--text-2); }
.section-head + * { margin-top: 20px; }
.section-head__more-phone { display: none; }
@media (max-width: 767.98px) {
  .section-head { align-items: center; gap: 12px; }
  .section-head__sub { margin-top: 6px; font-size: var(--fs-sm); }
  .section-head + * { margin-top: 14px; }
  .section-head .btn-all { display: none; }
  .section-head__titles { flex: 1; }
  .section-head__row { flex-wrap: nowrap; gap: 10px; }
  .section-head__more-phone { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; margin: -12px 0 -12px auto; color: var(--text); font-size: 14px; font-weight: 600; white-space: nowrap; }
}

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--sp-6); flex-wrap: wrap; }
.page-head__title { font-family: var(--font-display); font-weight: 800; font-size: var(--fs-h1); line-height: 1.12; letter-spacing: -0.02em; color: var(--text); }
.page-head__sub { margin-top: 8px; max-width: 640px; font-size: var(--fs-body); line-height: 1.55; color: var(--text-2); }
.page-head .eyebrow { margin-bottom: 12px; }
.page-head + * { margin-top: var(--sp-8); }
@media (max-width: 767.98px) {
  .page-head + * { margin-top: var(--sp-5); }
  .page-head__sub { font-size: 14px; }
}
.game-grid {
  --gg-gap: var(--game-grid-gap);
  display: grid; gap: var(--gg-gap);
  grid-template-columns: repeat(auto-fill, minmax(max(150px, calc((100% - 5 * var(--gg-gap)) / 6)), 1fr));
}
@media (max-width: 767.98px) { .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.game-grid > .skel { aspect-ratio: 3 / 4; border-radius: 16px; }

.game-card {
  --gc-r: 16px;
  position: relative; display: block; isolation: isolate; min-width: 0;
  container: gcard / size;
  aspect-ratio: 3 / 4; border-radius: var(--gc-r); overflow: hidden;
  background: color-mix(in srgb, var(--gc, var(--surface-2)) 22%, var(--surface-2)); color: var(--white); text-decoration: none; cursor: pointer;
  transform: translateZ(0);
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease), filter 220ms var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.game-card--wide,
.game-grid--feature > .game-card--feature { grid-column: span 2; aspect-ratio: auto; }
@media (max-width: 767.98px) {
  .game-grid > .game-card--wide, .game-grid--feature > .game-card--feature { aspect-ratio: 3 / 2; }
}
.game-card > * { --u: 1cqw; }
.game-card__art--wide { display: none; }
@container gcard (min-aspect-ratio: 6 / 5) {
  .game-card > * { --u: .485cqw; }
  .game-card__art--wide { display: block; }
  .game-card__art--wide ~ .game-card__art--std { display: none; }
}
.game-card__art { position: absolute; inset: 0; z-index: 0; overflow: hidden; border-radius: inherit; pointer-events: none; }
.game-card__bg, .game-card__hero {
  position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-width: none;
  object-fit: cover; object-position: 50% 0; user-select: none; -webkit-user-drag: none;
  transition: transform 340ms var(--ease);
}
.game-card__hero { transform-origin: 50% 45%; }
.game-card__art--wide .game-card__bg, .game-card__art--wide .game-card__hero { object-position: 50% 30%; }
.game-card__art--wide .game-card__hero { transform-origin: 26% 55%; }
.game-card__badge {
  position: absolute; z-index: 2; top: max(7px, calc(var(--u) * 4.5)); left: max(7px, calc(var(--u) * 4.5));
  display: inline-flex; align-items: center; height: clamp(20px, calc(var(--u) * 13), 26px); padding: 0 clamp(6px, calc(var(--u) * 4.4), 9px);
  border-radius: 8px; background: rgba(9, 12, 28, .6);
  font-family: var(--font-body); font-size: clamp(10.5px, calc(var(--u) * 6.8), 13px); font-weight: 700; line-height: 1; white-space: nowrap;
  color: var(--win);
}
.game-card__badge--pvp { color: #FFB8C0; }
.game-card__badge--nft { color: var(--text); }
.game-card__online {
  position: absolute; z-index: 2; top: max(7px, calc(var(--u) * 4.5)); right: max(7px, calc(var(--u) * 4.5));
  display: inline-flex; align-items: center; gap: 5px; height: clamp(20px, calc(var(--u) * 13), 26px); padding: 0 8px; border-radius: 8px;
  background: rgba(9, 12, 28, .6); color: var(--text); font-size: 11.5px; font-weight: 600;
}
.game-card__online::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--online, #22C55E); }
.game-card__body {
  position: absolute; z-index: 2; left: 6px; right: 6px; bottom: calc(var(--u) * 7.5);
  display: flex; flex-direction: column; align-items: center; text-align: center; pointer-events: none;
}
.game-card__title {
  display: block; max-width: 100%; white-space: nowrap; overflow: hidden;
  font-family: var(--font-display); font-weight: 800; letter-spacing: -.025em; line-height: 1.08; color: var(--white);
  font-size: min(calc(var(--u) * 13.5), calc((var(--u) * 100 - 22px) / (var(--tl, 8) * .8)));
  text-shadow: 0 2px 12px rgba(0,0,0,.35);
}
.game-card__sub {
  display: block; margin-top: calc(var(--u) * 2.2);
  font-size: clamp(10px, calc(var(--u) * 6.6), 14px); font-weight: 600; line-height: 1.2; color: rgba(255,255,255,.55);
}
@media (hover: hover) and (pointer: fine) {
  .game-card:hover { transform: translateY(-4px); filter: brightness(1.07); box-shadow: 0 18px 34px rgba(0,0,0,.42); color: var(--white); }
  .game-card:hover .game-card__hero { transform: translateY(-3.5%) scale(1.06) rotate(-1.5deg); }
  .game-card:hover .game-card__bg { transform: scale(1.035); }
}
.game-card:focus-visible { outline: 2px solid var(--primary-text); outline-offset: 3px; transform: translateY(-4px); filter: brightness(1.07); }
.game-card:focus-visible .game-card__hero { transform: translateY(-3.5%) scale(1.06) rotate(-1.5deg); }
.game-card:focus-visible .game-card__bg { transform: scale(1.035); }
.game-card:active { transform: translateY(-1px) scale(.985); }
@media (prefers-reduced-motion: reduce) {
  .game-card, .game-card__hero, .game-card__bg { transition: none; }
  .game-card:hover, .game-card:focus-visible, .game-card:active,
  .game-card:hover .game-card__hero, .game-card:hover .game-card__bg,
  .game-card:focus-visible .game-card__hero, .game-card:focus-visible .game-card__bg { transform: none; }
}
.game-thumb {
  --gt: 56px;
  position: relative; flex: none; display: block; width: var(--gt); height: var(--gt); border-radius: 14px; overflow: hidden;
  background: var(--gc, var(--surface-4));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}
.game-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.game-thumb--sm { --gt: 40px; border-radius: 10px; }
.game-thumb--lg { --gt: 64px; border-radius: 16px; }
.gift-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
@media (max-width: 767.98px) { .gift-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.gift-card {
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center;
  min-height: 210px; padding: 26px 12px 16px; border-radius: var(--r-card);
  background: radial-gradient(circle at 50% 38%, var(--glow, rgba(200,210,240,.20)) 0%, rgba(20,27,45,0) 60%), var(--surface);
  border: 1px solid var(--line); color: var(--text);
  transition: border-color var(--dur-2) var(--ease), transform var(--dur-2) var(--ease);
}
a.gift-card:hover, button.gift-card:hover { border-color: var(--line-strong); transform: translateY(-2px); color: var(--text); }
button.gift-card { width: 100%; font: inherit; cursor: pointer; }
.gift-card[aria-pressed="true"], .gift-card.is-selected { border-color: var(--primary-text); box-shadow: 0 0 0 1px var(--primary-text) inset; }
.gift-card__tag { position: absolute; left: 10px; top: 10px; }
.gift-card__corner { position: absolute; right: 10px; top: 10px; }
.gift-card__img { width: 104px; height: 104px; object-fit: contain; filter: var(--drop-gift); }
.gift-card__name { margin-top: auto; padding-top: 12px; font-size: 14px; font-weight: 700; color: var(--text); line-height: 1.3; }
.gift-card__meta { margin-top: 3px; font-size: 12px; color: var(--text-3); }
.gift-card__price { margin-top: 6px; font-size: 13.5px; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.gift-card__actions { display: flex; gap: 6px; width: 100%; margin-top: 12px; }
.gift-card__actions .btn { flex: 1; }
.gift-card--sm { min-height: 168px; padding: 20px 10px 14px; border-radius: var(--r-card-m); }
.gift-card--sm .gift-card__img { width: 84px; height: 84px; filter: drop-shadow(0 10px 14px rgba(0,0,0,.45)); }
.gift-card--sm .gift-card__name { font-size: 13px; white-space: nowrap; }
.gift-card--sm .gift-card__meta { font-size: 11.5px; }
.gift-card--locked .gift-card__img { opacity: .55; }
.h-scroll {
  display: flex; gap: 10px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x proximity; scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, #000 86%, transparent);
          mask-image: linear-gradient(90deg, #000 86%, transparent);
}
.h-scroll::-webkit-scrollbar { display: none; }
.h-scroll > * { flex: none; scroll-snap-align: start; }
.win-chip {
  display: flex; align-items: center; gap: 10px; flex: none;
  width: 168px; height: 62px; padding: 0 12px 0 9px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  color: var(--text);
}
.win-chip__body { min-width: 0; }
.win-chip__title { font-size: 13.5px; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.win-chip__title--win { color: var(--win); }
.win-chip__sub { margin-top: 2px; font-size: 12px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.win-chip .game-ico, .win-chip .gift-thumb { width: 44px; height: 44px; border-radius: var(--r-md); }
.list-card { padding: 4px 14px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.list-row { display: flex; align-items: center; gap: 12px; min-height: 62px; padding: 8px 0; }
.list-row + .list-row { border-top: 1px solid var(--line); }
.list-row__body { flex: 1; min-width: 0; }
.list-row__title { font-size: 14.5px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-row__sub { margin-top: 2px; font-size: 12.5px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-row__end { flex: none; text-align: right; font-size: 15px; font-weight: 700; white-space: nowrap; }
.list-row .game-ico { width: 42px; height: 42px; border-radius: var(--r-md); }
.list-row .gift-thumb { width: 42px; height: 42px; }
a.list-row { color: inherit; }
a.list-row:hover .list-row__title { color: var(--primary-text); }
.nav-list { padding: 2px 16px; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); }
.nav-list__item { display: flex; align-items: center; gap: 14px; min-height: 76px; color: var(--text); }
.nav-list__item + .nav-list__item { border-top: 1px solid var(--line); }
.nav-list__item:hover { color: var(--text); }
.nav-list__item:hover .nav-list__title { color: var(--primary-text); }
.nav-list__body { flex: 1; min-width: 0; }
.nav-list__title { display: block; font-size: 15px; font-weight: 700; color: var(--text); }
.nav-list__sub { display: block; margin-top: 3px; font-size: 13px; color: var(--text-2); }
.nav-list__chev { color: var(--text-3); }
.tabs {
  display: inline-flex; gap: 4px; padding: 4px; max-width: 100%; overflow-x: auto; scrollbar-width: none;
  border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line-strong);
}
.tabs::-webkit-scrollbar { display: none; }
.tabs--block { display: flex; }
.tabs--block .tabs__tab { flex: 1; }
.tab, .tabs__tab {
  position: relative; flex: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 36px; padding: 0 14px; border-radius: var(--r-9);
  font-size: 14px; font-weight: 600; color: var(--text-2); white-space: nowrap;
  transition: background-color var(--dur-1) var(--ease), color var(--dur-1) var(--ease);
}
.tabs__tab::after { content: ""; position: absolute; inset: min(0px, calc(50% - 22px)) 0; }
.tabs__tab:hover { color: var(--text); }
.tabs__tab[aria-selected="true"], .tabs__tab[aria-pressed="true"] { background: var(--primary-soft); color: var(--primary-text); box-shadow: inset 0 0 0 1px var(--primary-line); font-weight: 700; }
.tabs__count { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: var(--r-pill); background: var(--tint-08); font-size: 12px; font-weight: 700; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips--scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg,#000 84%,transparent); mask-image: linear-gradient(90deg,#000 84%,transparent); padding-right: 32px; }
.chips--scroll::-webkit-scrollbar { display: none; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; flex: none;
  height: 44px; padding: 0 16px; border-radius: var(--r-md);
  background: var(--surface); border: 1px solid var(--line-strong); color: var(--text-2);
  font-size: 14px; font-weight: 600; white-space: nowrap;
  transition: background-color var(--dur-1) var(--ease), color var(--dur-1) var(--ease), border-color var(--dur-1) var(--ease);
}
.chip:hover { color: var(--text); border-color: var(--line-hover); }
.chip[aria-pressed="true"], .chip[aria-selected="true"] {
  background: var(--primary-soft); border-color: var(--primary-line); color: var(--primary-text); font-weight: 700;
}
.chip[aria-pressed="true"]:hover, .chip[aria-selected="true"]:hover { border-color: var(--primary-text); color: var(--primary-text); }
@media (max-width: 767.98px) { .chip { padding: 0 14px; font-size: 13.5px; gap: 7px; } }
.cur-switch {
  display: inline-flex; align-items: center; gap: 2px; padding: 3px;
  border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line-strong);
}
.cur-switch__btn {
  position: relative;
  display: inline-flex; align-items: center; gap: 6px;
  height: 34px; padding: 0 11px; border-radius: var(--r-9);
  font-size: 13.5px; font-weight: 600; color: var(--text-2); white-space: nowrap;
}
.cur-switch__btn::after { content: ""; position: absolute; inset: -5px 0; }
.cur-switch__btn:hover { color: var(--text); }
.cur-switch__btn[aria-pressed="true"] { background: var(--primary-soft); color: var(--primary-text); box-shadow: inset 0 0 0 1px var(--primary-line); font-weight: 700; }
.cur-ico--stars { color: var(--accent); } .cur-ico--ton { color: var(--ton-coin); } .cur-ico--usdt { color: var(--usdt); } .cur-ico--rub { color: var(--rub); }
.option-list { display: flex; flex-direction: column; gap: 8px; }
.option {
  display: flex; align-items: center; gap: 12px; width: 100%;
  min-height: 56px; padding: 0 16px; border-radius: var(--r-lg);
  background: var(--surface-2); border: 1px solid var(--line-btn); color: var(--text);
  font-size: 15px; font-weight: 600; text-align: left;
}
.option:hover { border-color: var(--line-hover); }
.option[aria-pressed="true"], .option[aria-checked="true"] { background: var(--primary-soft); border-color: var(--primary-line); box-shadow: 0 0 0 1px var(--primary-line) inset; }
.option__end { margin-left: auto; color: var(--text-2); font-weight: 600; font-variant-numeric: tabular-nums; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field__label { font-size: 13.5px; font-weight: 600; color: var(--text-2); }
.field__hint { font-size: 12.5px; color: var(--text-3); }
.field__error { font-size: 12.5px; color: var(--danger-text); }
.input, .select, .textarea {
  width: 100%; min-width: 0; height: 48px; padding: 0 14px;
  border-radius: var(--r-md); background: var(--s2); border: 1px solid var(--line-strong);   /* REDESIGN0927: поля — --s2 */
  color: var(--text); font-size: 15px; outline: none;
  transition: border-color var(--dur-1) var(--ease), box-shadow var(--dur-1) var(--ease);
}
.textarea { height: auto; min-height: 96px; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.select { appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238F9AB8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.input::placeholder, .textarea::placeholder { color: var(--text-3); opacity: 1; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--line-hover); }
.input:focus, .select:focus, .textarea:focus { border-color: var(--primary-text); box-shadow: 0 0 0 3px var(--primary-soft); }
.input:disabled, .textarea:disabled { opacity: .6; cursor: not-allowed; }
.input[aria-invalid="true"] { border-color: var(--danger); }
.input--mono { font-family: var(--font-mono); font-size: 13px; }
.input-wrap {
  position: relative; display: flex; align-items: center; gap: 10px;
  height: 44px; padding: 0 14px; border-radius: var(--r-md);
  background: var(--surface); border: 1px solid var(--line-strong); color: var(--text-3);
  transition: border-color var(--dur-1) var(--ease), box-shadow var(--dur-1) var(--ease);
}
.input-wrap:focus-within { border-color: var(--primary-text); box-shadow: 0 0 0 3px var(--primary-soft); }
.input-wrap > input {
  flex: 1; min-width: 0; height: 100%; background: transparent; border: 0; outline: none;
  color: var(--text); font-size: 14px;
}
.input-wrap > input::placeholder { color: var(--text-3); opacity: 1; }
.input-wrap > input::-webkit-search-cancel-button { filter: invert(.6); }
.input-wrap--lg { height: 52px; }
.input-wrap--lg > input { font-size: 17px; font-weight: 600; }
.input-wrap__suffix { color: var(--text-2); font-weight: 600; flex: none; }
.presets { display: flex; gap: 8px; flex-wrap: wrap; }
.preset {
  position: relative; height: 36px; padding: 0 14px; border-radius: var(--r-10);
  background: var(--surface-4); color: var(--text); font-size: 13.5px; font-weight: 600; font-variant-numeric: tabular-nums;
}
.preset::after { content: ""; position: absolute; inset: -4px 0; }
.preset:hover { background: var(--surface-active); }
.preset[aria-pressed="true"] { background: var(--primary-soft); color: var(--primary-text); box-shadow: 0 0 0 1px var(--primary-line) inset; }
.switch { position: relative; display: inline-flex; align-items: center; gap: 12px; min-height: 44px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch__track { position: relative; width: 44px; height: 26px; border-radius: 13px; background: var(--surface-active); transition: background-color var(--dur-2) var(--ease); flex: none; }
.switch__track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--text-2); transition: transform var(--dur-2) var(--ease), background-color var(--dur-2) var(--ease); }
.switch input:checked + .switch__track { background: var(--primary-fill); box-shadow: var(--accent-edge); }
.switch input:checked + .switch__track::after { transform: translateX(18px); background: var(--white); box-shadow: 0 1px 3px rgba(40,28,0,.45); }
.switch input:focus-visible + .switch__track { outline: 2px solid var(--primary-text); outline-offset: 2px; }
.pay-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.pay-chip {
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 12px; border-radius: var(--r-10);
  background: var(--surface-4); color: var(--text); font-size: 14px; font-weight: 600; white-space: nowrap;
}
button.pay-chip[aria-pressed="true"] { box-shadow: 0 0 0 1px var(--primary-line) inset; background: var(--primary-soft); }
@media (max-width: 767.98px) { .pay-chip { height: 36px; font-size: 13.5px; gap: 7px; } }
.table-wrap {
  padding: 4px 16px 6px; border-radius: var(--r-xl);
  background: var(--surface-sunk); border: 1px solid var(--line);
  overflow-x: auto;
}
.table { width: 100%; border-collapse: collapse; }
.table th {
  padding: 14px 12px; text-align: left; white-space: nowrap;
  font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3);
}
.table td {
  height: 58px; padding: 0 12px; border-top: 1px solid var(--line);
  font-size: var(--fs-md); color: var(--text); vertical-align: middle;
}
.table .ta-r { text-align: right; font-variant-numeric: tabular-nums; }
.table .ta-c { text-align: center; }
.table tbody tr { transition: background-color var(--dur-1) var(--ease); }
.table tbody tr:hover { background: rgba(255,255,255,.02); }
.table__cell { display: flex; align-items: center; gap: 10px; }
.table__cell--end { justify-content: flex-end; gap: 8px; }
.table__cell img { width: 30px; height: 30px; object-fit: contain; }
.table-note { margin-top: 12px; font-size: 12.5px; color: var(--text-3); }
.empty {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 48px 24px; border-radius: var(--r-xl);
  background: var(--surface-sunk); border: 1px dashed var(--line-strong);
}
.empty__icon { display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 16px; background: var(--surface-4); color: var(--text-2); }
.empty__title { margin-top: 16px; font-family: var(--font-display); font-weight: 700; font-size: 17px; line-height: 1.3; color: var(--text); }
.empty__text { margin-top: 8px; max-width: 420px; font-size: 14px; line-height: 1.5; color: var(--text-2); }
.empty__actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 20px; }
.progress { position: relative; height: 8px; border-radius: var(--r-pill); background: var(--surface-4); overflow: hidden; }
.progress__bar { position: absolute; inset: 0 auto 0 0; border-radius: inherit; background: var(--primary-fill); }
.progress--win .progress__bar { background: var(--win); }

.countdown { display: flex; gap: 8px; }
.count-box {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  height: 60px; border-radius: var(--r-md); background: var(--bg-inset);
}
.count-box__v { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--text); font-variant-numeric: tabular-nums; }
.count-box__l { margin-top: 3px; font-size: 12px; color: var(--text-2); }

.hash-box {
  padding: 10px 12px; border-radius: var(--r-10); background: var(--bg-inset); border: 1px solid var(--line-strong);
  font-family: var(--font-mono); font-size: 12px; line-height: 1.7; color: var(--text);
  overflow-wrap: anywhere;
}
.hash-box__k { color: var(--text-3); margin-right: 6px; }
.dots { display: flex; align-items: center; gap: 6px; }
.dots__dot { position: relative; width: 6px; height: 6px; border-radius: 3px; background: var(--dot); transition: width var(--dur-2) var(--ease), background-color var(--dur-2) var(--ease); }
.dots__dot::after { content: ""; position: absolute; inset: -19px -8px; }
.dots__dot[aria-pressed="true"], .dots__dot[aria-current="true"] { width: 22px; background: var(--primary-text); }
.medal { display: block; flex: none; }
.medal--obsidian { filter: drop-shadow(0 0 10px rgba(123,92,255,.65)); }
.vip-ladder { position: relative; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); }
.vip-ladder::before { content: ""; position: absolute; left: 6%; right: 6%; top: 25px; height: 4px; border-radius: 2px; background: var(--vip-track); opacity: .8; }
.vip-ladder__step { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.vip-ladder__name { font-size: 13px; font-weight: 600; color: var(--lvl); }
.vip-ladder__step.is-current .medal { transform: scale(1.12); }
.vip-ladder__step.is-current .vip-ladder__name { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 767.98px) {
  .vip-ladder { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 14px; column-gap: 6px; }
  .vip-ladder::before { display: none; }
  .vip-ladder__step { gap: 6px; }
  .vip-ladder__name { font-size: 12px; }
}
.chat { display: flex; flex-direction: column; min-height: 0; height: 100%; background: var(--bg-aside); }
.chat__head {
  flex: none; display: flex; align-items: center; gap: 10px;
  height: 64px; padding: 0 12px 0 16px; border-bottom: 1px solid var(--line);
}
.chat__head-ico { color: var(--primary-text); }
.chat__title { margin: 0; font-size: 16px; font-weight: 700; color: var(--text); font-family: var(--font-body); }
.chat__sub { margin-top: 2px; font-size: 11.5px; color: var(--text-3); }
.chat__pinned { position: relative; z-index: 1; flex: none; margin: 12px 12px 0; padding: 10px 12px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line-strong); box-shadow: 0 10px 18px -8px rgba(5,8,15,.8); }
.chat__pinned-h { display: flex; align-items: center; gap: 6px; color: var(--primary-text); font-size: 12px; font-weight: 700; }
.chat__pinned p { margin-top: 4px; font-size: 13px; line-height: 1.45; color: var(--text-2); }
.chat__log {
  flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain;
  display: flex; flex-direction: column; gap: 14px; padding: 14px 16px;
  scrollbar-width: thin; scrollbar-color: var(--surface-active) transparent;
}
.chat__log.has-above {
  -webkit-mask-image: linear-gradient(180deg, transparent 0, rgba(0,0,0,.03) 12px, rgba(0,0,0,.16) 24px, rgba(0,0,0,.5) 40px, rgba(0,0,0,.86) 56px, #000 70px);
          mask-image: linear-gradient(180deg, transparent 0, rgba(0,0,0,.03) 12px, rgba(0,0,0,.16) 24px, rgba(0,0,0,.5) 40px, rgba(0,0,0,.86) 56px, #000 70px);
}
.chat__log > :first-child { margin-top: auto; }
.chat__composer { flex: none; padding: 12px 16px 18px; border-top: 1px solid var(--line); }
.chat__input {
  display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 6px 0 14px;
  border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line-strong);
}
.chat__input:focus-within { border-color: var(--primary-text); }
.chat__input input { flex: 1; min-width: 0; height: 100%; background: transparent; border: 0; outline: none; color: var(--text); font-size: 14px; }
.chat__input input::placeholder { color: var(--text-3); opacity: 1; }
/* RESIL0927: на сенсорных экранах 16 px — iPhone увеличивает страницу при фокусе поля с шрифтом мельче */
@media (pointer: coarse) { .chat__input input { font-size: 16px; } }
.chat__input input:disabled { cursor: not-allowed; }
.chat__send { width: 34px; height: 34px; border-radius: var(--r-9); background: var(--surface-active); color: var(--text-2); display: inline-flex; align-items: center; justify-content: center; position: relative; }
.chat__send::after { content: ""; position: absolute; inset: -5px; }
.chat__send:not(:disabled):hover { background: var(--primary-fill); color: var(--on-primary); box-shadow: var(--accent-edge); }
.chat__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; font-size: 12px; }
.chat__foot a, .chat__foot button { position: relative; color: var(--text-2); font-size: 12px; font-weight: 600; min-height: 24px; display: inline-flex; align-items: center; }
.chat__foot a::after, .chat__foot button::after { content: ""; position: absolute; inset: -10px -4px; }
.chat__foot a:hover, .chat__foot button:hover { color: var(--text); }
.chat__foot span { color: var(--text-3); }

.chat-msg { flex: none; display: flex; gap: 10px; }
.chat-msg__main { min-width: 0; flex: 1; }
.chat-msg__meta { display: flex; align-items: center; gap: 6px; font-size: 13px; line-height: 18px; min-width: 0; }
.chat-msg__name { font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-msg__text { margin-top: 3px; font-size: 13.5px; line-height: 1.45; color: var(--text-chat); overflow-wrap: anywhere; }
.chat-msg--mine .chat-msg__name { color: var(--primary-text); }
.chat-card { flex: none; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--win-line); }
.chat-card__body { min-width: 0; flex: 1; }
.chat-card__eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--win); }
.chat-card__line { margin-top: 2px; font-size: 13.5px; color: var(--text); }
.chat-card__sub { margin-top: 1px; font-size: 12px; color: var(--text-3); }
.chat-card .game-ico { width: 40px; height: 40px; border-radius: var(--r-11); }
.chat-card .gift-thumb { width: 48px; height: 48px; }
.chat-note { flex: none; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 10px; border-radius: var(--r-md); background: rgba(255,255,255,.035); font-size: 12.5px; color: var(--text-2); text-align: center; }
.chat-note b { color: var(--text); font-weight: 600; }
.chat-promo { flex: none; display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: var(--r-lg); background: var(--surface-chip); border: 1px solid var(--line-chip); }
.chat-promo__ico { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: var(--r-10); background: var(--primary-fill); color: var(--on-primary); box-shadow: var(--accent-edge); flex: none; }
.chat-promo__title { font-size: 13.5px; font-weight: 700; color: var(--text); }
.chat-promo__text { margin-top: 2px; font-size: 12.5px; line-height: 1.4; color: var(--text-2); }
.chat-tourn { flex: none; padding: 12px; border-radius: var(--r-lg); background: var(--surface-chip); border: 1px solid var(--line-chip); }
.chat-tourn__eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--primary-text); }
.chat-tourn__title { margin-top: 2px; font-size: 14px; font-weight: 700; color: var(--text); }
.chat-tourn__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; font-size: 12.5px; color: var(--text-2); }
.modal {
  padding: 0; border: 0; background: transparent; color: var(--text);
  max-width: none; max-height: none; width: 100%; height: 100%;
  overflow: hidden;
}
.modal[open] { display: flex; align-items: center; justify-content: center; }
.modal::backdrop { background: rgba(5,8,15,.62); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }   /* REDESIGN0927: затемнение с размытием 8 px */
.modal__panel {
  position: relative; display: flex; flex-direction: column;
  width: min(520px, calc(100% - 32px)); max-height: min(86vh, 860px);
  border-radius: var(--r-xl); background: var(--s1); border: 1px solid var(--s-line-hi);
  box-shadow: var(--shadow-pop);
  animation: modal-in var(--dur-3) var(--ease);
}
.modal--wide .modal__panel { width: min(760px, calc(100% - 32px)); }
.modal__head { flex: none; display: flex; align-items: center; gap: 12px; padding: 18px 16px 14px 24px; }
.modal__title { flex: 1; min-width: 0; font-family: var(--font-body); font-weight: 700; font-size: 19px; line-height: 1.25; color: var(--text); }
.modal__body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 4px 24px 24px; }
.modal__head .icon-btn:focus-visible { outline-color: rgba(255,255,255,.45); }   /* REDESIGN0927: у крестика без жёлтой рамки при открытии */
.modal__body--flush { padding: 0; display: flex; flex-direction: column; }
.modal__foot { flex: none; display: flex; gap: 10px; justify-content: flex-end; padding: 16px 24px 24px; }
.modal__foot .btn { min-width: 120px; }
@keyframes modal-in { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes modal-out { to { opacity: 0; transform: translateY(8px) scale(.98); } }
.modal[open]::backdrop { animation: backdrop-in var(--dur-3) var(--ease); }
.modal.is-closing::backdrop { animation: backdrop-out 220ms ease-in both; }
.modal.is-closing .modal__panel { animation: modal-out 200ms cubic-bezier(.4,0,1,1) both; pointer-events: none; }
@keyframes backdrop-in { from { opacity: 0; } }
@keyframes backdrop-out { to { opacity: 0; } }
.modal--sheet[open] { align-items: stretch; justify-content: flex-end; }
.modal--sheet.modal--left[open] { justify-content: flex-start; }
.modal--sheet .modal__panel {
  width: min(400px, 100%); max-height: none; height: 100%;
  border-radius: 0; border-width: 0 0 0 1px;
  animation: sheet-in-right var(--dur-3) var(--ease);
}
.modal--sheet.modal--left .modal__panel { border-width: 0 1px 0 0; animation-name: sheet-in-left; }
@keyframes sheet-in-right { from { transform: translateX(24px); opacity: .4; } to { transform: none; opacity: 1; } }
@keyframes sheet-in-left { from { transform: translateX(-24px); opacity: .4; } to { transform: none; opacity: 1; } }
.modal--sheet.is-closing .modal__panel { animation-name: sheet-out-right; }
.modal--sheet.modal--left.is-closing .modal__panel { animation-name: sheet-out-left; }
@keyframes sheet-out-right { to { transform: translateX(32px); opacity: 0; } }
@keyframes sheet-out-left { to { transform: translateX(-32px); opacity: 0; } }
@media (max-width: 767.98px) {
  .modal[open] { align-items: flex-end; }
  .modal__panel {
    width: 100%; max-height: 90dvh;
    border-radius: var(--r-xl) var(--r-xl) 0 0; border-width: 1px 0 0;
    padding-bottom: env(safe-area-inset-bottom);
    animation: sheet-in-up 280ms cubic-bezier(.22,.8,.3,1);   /* MINI1002-fix-sheet-anim: одно движение снизу, 280 мс, ease-out (было 380) */
  }
  .modal.is-closing .modal__panel, .modal--sheet.is-closing .modal__panel, .modal--sheet.modal--left.is-closing .modal__panel { animation: sheet-out-down 240ms cubic-bezier(.4,0,1,1) both; }
  .modal__head { touch-action: none; }
  .modal__body.modal__body--flush { padding: 0; }
  .modal .chat { background: transparent; }
  .modal__panel::before { content: ""; position: absolute; top: 8px; left: 50%; width: 36px; height: 4px; margin-left: -18px; border-radius: 2px; background: var(--line-btn); }
  .modal--sheet[open], .modal--sheet.modal--left[open] { align-items: flex-end; justify-content: stretch; }
  .modal--sheet .modal__panel, .modal--sheet.modal--left .modal__panel { width: 100%; height: 88dvh; border-radius: var(--r-xl) var(--r-xl) 0 0; border-width: 1px 0 0; animation-name: sheet-in-up; }
  .modal__head { padding: 22px 12px 12px 20px; }
  .modal__body { padding: 4px 20px 20px; }
  .modal__foot { padding: 14px 20px 20px; }
  .modal__foot .btn { flex: 1; min-width: 0; }
}
@keyframes sheet-in-up { from { transform: translateY(100%); } to { transform: none; } }
@keyframes sheet-out-down { to { transform: translateY(100%); } }
html.is-modal-open { overflow: hidden; }
/* MINI1002-fix-sheet-anim: окно-подложка не прокручивается даже программно (фокус на крестике во время выезда прокручивал его в WebKit) */
@supports (overflow: clip) { .modal { overflow: clip; } }
/* MINI1002-fix-inv: при открытом окне html{overflow:hidden} забирает прокрутку у страницы, а body{overflow-x:hidden} (base.css)
   тогда сам становится прокручиваемым контейнером — липкая шапка «прилипала» к нему и уезжала вверх на прокрученную высоту
   (страница прыгала при открытии любой шторки и обратно при закрытии). clip режет по горизонтали так же, но контейнером не делает. */
html.is-modal-open body { overflow-x: clip; }
.toast-region {
  position: fixed; right: 24px; bottom: 24px; z-index: var(--z-toast);
  display: flex; flex-direction: column; align-items: flex-end; gap: 8px;
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  display: flex; align-items: center; gap: 10px;
  max-width: min(420px, calc(100vw - 32px)); min-height: 48px; padding: 10px 10px 10px 14px;
  border-radius: var(--r-lg); background: var(--surface-2); border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-pop); color: var(--text); font-size: 14px; line-height: 1.4;
  animation: toast-in var(--dur-3) var(--ease);
}
.toast.is-leaving { opacity: 0; transform: translateY(6px); transition: opacity var(--dur-2), transform var(--dur-2); }
.toast__ico { flex: none; color: var(--text-2); }
.toast__text { flex: 1; min-width: 0; }
.toast--win { border-color: var(--win-line); } .toast--win .toast__ico { color: var(--win); }
.toast--error { border-color: rgba(255,92,122,.4); } .toast--error .toast__ico { color: var(--danger-text); }
.toast--accent { border-color: var(--primary-line); } .toast--accent .toast__ico { color: var(--primary-text); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (max-width: 767.98px) {
  .toast-region { left: 16px; right: 16px; bottom: calc(var(--tabbar-h) + 12px + env(safe-area-inset-bottom)); align-items: stretch; }
  .toast { max-width: none; }
}
.skel {
  display: block; border-radius: var(--r-sm);
  background: linear-gradient(90deg, var(--surface) 0%, var(--surface-4) 45%, var(--surface) 90%);
  background-size: 300% 100%;
  animation: skel 1.4s ease-in-out infinite;
}
.skel--text { height: 12px; border-radius: 6px; }
.skel--title { height: 26px; width: 40%; border-radius: 8px; }
.skel--circle { border-radius: 50%; }
.skel--card { aspect-ratio: 3 / 4; border-radius: 16px; }
.skel--gift { height: 210px; border-radius: var(--r-card); }
.skel--row { height: 58px; border-radius: var(--r-md); }
@keyframes skel { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }
.kv { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 10px 0; }
.kv + .kv { border-top: 1px solid var(--line); }
.kv__k { color: var(--text-2); font-size: 14px; }
.kv__v { color: var(--text); font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.note { padding: 12px 14px; border-radius: var(--r-md); background: var(--surface-sunk); border: 1px solid var(--line); font-size: 13px; line-height: 1.5; color: var(--text-2); }
.note--accent { background: var(--primary-soft); border-color: var(--primary-line); }
.note--win { background: color-mix(in srgb, var(--win) 6%, transparent); border-color: var(--win-line); }
.test-mark { font-size: 12px; color: var(--text-3); }
.wip { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: 32px; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); }
.wip__row { display: flex; align-items: center; gap: 12px; color: var(--text-2); font-size: 15px; }
@media (max-width: 767.98px) { .wip { padding: 20px; } }
/* RESIL0927: картинка не загрузилась — без значка сломанной картинки, видно фон карточки или значка (app.js bindImageFallback) */
img.img-fail { visibility: hidden; }

/* ───────── REDESIGN0927: общие элементы этапа 1б (ui.seg, ui.disclosure, ui.modeTile, ui.icoPlate, .tint) ───────── */
/* Тонировка раздела: 14 % цвета раздела → --s1. Цвет — класс .tone-* или свой --tone в style. */
.tint { background: linear-gradient(135deg, color-mix(in srgb, var(--tone, var(--tone-neutral)) 14%, var(--s1)) 0%, var(--s1) 72%); border: 1px solid var(--s-line); }
.tone-rb { --tone: var(--tone-rakeback); } .tone-cb { --tone: var(--tone-cashback); } .tone-st { --tone: var(--tone-staking); }
.tone-dep { --tone: var(--tone-deposit); } .tone-ref { --tone: var(--tone-friends); } .tone-nft { --tone: var(--tone-nft); }
.tone-vip { --tone: var(--tone-vip); } .tone-win { --tone: var(--win); } .tone-neutral { --tone: var(--tone-neutral); }

/* Плашка иконки: 40 px, иконка 22 в цвете раздела, без рамки. Вид подложки подставим вместе с новым набором иконок. */
.ico-plate {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: var(--ps, 40px); height: var(--ps, 40px); border-radius: calc(var(--ps, 40px) * .3);
  background: color-mix(in srgb, var(--tone, var(--tone-neutral)) 16%, var(--s2)); color: var(--tone, var(--text-2));
}
.ico-plate > .ico { width: calc(var(--ps, 40px) * .55); height: calc(var(--ps, 40px) * .55); }

/* Сегмент: контейнер 44, активный — --s2 и полоса акцента снизу с мягким свечением */
.seg {
  display: inline-flex; gap: 4px; height: 44px; padding: 4px; max-width: 100%; overflow-x: auto; scrollbar-width: none;
  border-radius: 14px; background: var(--s1); border: 1px solid var(--s-line);
}
.seg::-webkit-scrollbar { display: none; }
.seg--block { display: flex; width: 100%; }
.seg--block .seg__item { flex: 1 1 0; }
.seg__item {
  position: relative; flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-width: 0; height: 100%; padding: 0 14px; border-radius: 10px;
  color: var(--text-3); font-size: 14px; font-weight: 600; white-space: nowrap;
  transition: background-color 160ms var(--ease), color 160ms var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.seg__item::after { content: ""; position: absolute; inset: min(0px, calc(50% - 22px)) 0; }
.seg__item::before {
  content: ""; position: absolute; left: 50%; bottom: 3px; width: 22px; height: 2px; margin-left: -11px; border-radius: 2px;
  background: var(--accent); box-shadow: none; opacity: 0; transform: scaleX(.4);
  transition: opacity 160ms var(--ease), transform 160ms var(--ease);
}
@media (hover: hover) { .seg__item:hover { color: var(--text-2); } }
.seg__item[aria-selected="true"], .seg__item[aria-pressed="true"] { background: var(--s2); color: var(--text); font-weight: 700; }
.seg__item[aria-selected="true"]::before, .seg__item[aria-pressed="true"]::before { opacity: 1; transform: none; }
.seg__count { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: var(--r-pill); background: rgba(255,255,255,.07); color: var(--text-2); font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.seg__item[aria-selected="true"] .seg__count, .seg__item[aria-pressed="true"] .seg__count { background: rgba(255,255,255,.10); color: var(--text); }

/* Раскрытие вместо <details>: строка 44 с шевроном, шеврон поворачивается за 150 мс */
.disc { min-width: 0; }
.disc__btn {
  position: relative; display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 0 4px;
  color: var(--text); font-size: 15px; font-weight: 600; text-align: left; -webkit-tap-highlight-color: transparent;
}
.disc__btn > .ico:first-child { color: var(--text-3); }
.disc__label { flex: 1; min-width: 0; }
.disc__meta { flex: none; color: var(--text-3); font-size: 13px; font-weight: 600; }
.disc__chev { flex: none; color: var(--text-3); transition: transform 150ms var(--ease); }
.disc__btn[aria-expanded="true"] .disc__chev { transform: rotate(180deg); }
@media (hover: hover) { .disc__btn:hover .disc__chev { color: var(--text-2); } }
.disc__body { padding: 4px 4px 8px; }
.disc__body[hidden] { display: none; }

/* Плитка-обложка режима (главная, «Кейс-батл», «Апгрейд», баннеры): сочный фон цвета режима, арт справа, название слева внизу */
.mode-tile {
  --mt-a: #7B5CFF; --mt-b: #3B1F9E;
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 4px;
  min-height: var(--mt-h, 132px); padding: 14px 16px; border-radius: 16px;
  background: radial-gradient(120% 90% at 100% 0%, rgba(255,255,255,.22), transparent 55%), linear-gradient(135deg, var(--mt-a) 0%, var(--mt-b) 100%);
  border: 1px solid rgba(255,255,255,.14); box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 10px 24px rgba(0,0,0,.28);
  color: var(--white); text-decoration: none; -webkit-tap-highlight-color: transparent;
  transition: transform 160ms var(--ease), box-shadow 200ms var(--ease);
}
.mode-tile:hover, .mode-tile:focus-visible { color: var(--white); }
@media (hover: hover) { .mode-tile:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 14px 30px rgba(0,0,0,.34); } }
.mode-tile:active { transform: scale(.985); }
.mode-tile__art { position: absolute; z-index: -1; right: -6%; bottom: -4%; top: 22%; width: 52%; display: flex; align-items: flex-end; justify-content: flex-end; pointer-events: none; }
.mode-tile__art > img, .mode-tile__art > svg { width: 100%; height: 100%; object-fit: contain; object-position: right bottom; filter: drop-shadow(0 10px 16px rgba(0,0,0,.35)); transition: transform 240ms var(--ease); }
@media (hover: hover) { .mode-tile:hover .mode-tile__art > img, .mode-tile:hover .mode-tile__art > svg { transform: scale(1.04); } }
.mode-tile::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.22) 0%, rgba(0,0,0,0) 62%); pointer-events: none; }
.mode-tile__title { max-width: 100%; font-family: var(--font-body); font-size: 18px; font-weight: 800; line-height: 1.15; letter-spacing: -0.01em; text-shadow: 0 1px 3px rgba(0,0,0,.35); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mode-tile__meta { max-width: 72%; font-size: 13px; font-weight: 600; line-height: 1.3; color: rgba(255,255,255,.88); text-shadow: 0 1px 2px rgba(0,0,0,.3); }
.mode-tile__badge { position: absolute; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: var(--r-pill); background: rgba(8,11,20,.36); color: var(--white); font-size: 12px; font-weight: 700; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.mode-tile--violet { --mt-a: #8A63E3; --mt-b: #3B1F9E; }
.mode-tile--blue   { --mt-a: #4F86F0; --mt-b: #1F3B9A; }
.mode-tile--pink   { --mt-a: #E0407A; --mt-b: #7A1248; }
.mode-tile--green  { --mt-a: #22B07A; --mt-b: #0B5A45; }
.mode-tile--orange { --mt-a: #F59E2B; --mt-b: #9A3F0C; }
.mode-tile--teal   { --mt-a: #22B8C8; --mt-b: #0D4F72; }
.mode-tile--red    { --mt-a: #F0525E; --mt-b: #8A1830; }
.mode-tile--deposit { --mt-a: #F5A524; --mt-b: #A8650A; }   /* CORESTYLE0928E: пополнение — жёлто-золотое, не синее */
@media (min-width: 768px) { .mode-tile { --mt-h: 164px; padding: 18px 20px; border-radius: 20px; } .mode-tile__title { font-size: 20px; } }
@media (prefers-reduced-motion: reduce) { .mode-tile, .mode-tile__art > img { transition: none; } }

/* ── CORESTYLE0928C: кнопки, сегменты и чипы стиля 0928 (owner-0928n/DESIGN-SYSTEM §4, §5) — поверх прежних правил выше.
   Кнопки — пилюли; вторичная — полупрозрачная белая .09 с линией .12; у жёлтой, синей и зелёной — обводка и тень из токенов.
   Сегмент — пилюля, активный пункт — жёлтая заливка и тёмный текст (без полоски снизу). Чип — пилюля 36, активный — жёлтый. ── */
.btn, .btn--sm, .btn--lg, .btn--xl { border-radius: var(--r-pill); }
.btn:active:not(:disabled) { transform: scale(.97); }
.btn--primary { border-color: var(--btn-primary-line, transparent); box-shadow: var(--btn-primary-shadow, var(--accent-edge)); }
.btn--secondary, .btn--outline { background: var(--btn-secondary, var(--surface-2)); border-color: var(--btn-secondary-line, var(--line-btn)); color: var(--on-btn, var(--text)); }
@media (hover: hover) {
  .btn--secondary:hover:not(:disabled), .btn--outline:hover:not(:disabled) { background: rgba(255,255,255,.13); border-color: rgba(255,255,255,.2); color: var(--on-btn, var(--text)); }
}
.btn--deposit { border-color: var(--btn-deposit-line, rgba(255,255,255,.14)); box-shadow: var(--btn-deposit-shadow, var(--deposit-glow)); }
.btn--win { border-color: var(--btn-win-line, transparent); box-shadow: var(--btn-win-shadow, var(--win-edge)); }
.seg { border-radius: var(--r-pill); }
.seg__item { border-radius: var(--r-pill); color: var(--text-2); font-weight: 700; }
.seg__item::before { display: none; }
.seg__item[aria-selected="true"], .seg__item[aria-pressed="true"] {
  background: var(--primary-fill); color: var(--ink); box-shadow: inset 0 1px 0 rgba(255,255,255,.55);
}
.seg__item[aria-selected="true"] .seg__count, .seg__item[aria-pressed="true"] .seg__count { background: rgba(0,0,0,.14); color: var(--ink); }
.chip { height: 36px; border-radius: var(--r-pill); background: var(--btn-secondary, var(--surface)); border-color: var(--btn-secondary-line, var(--line-strong)); }
.chip[aria-pressed="true"], .chip[aria-selected="true"] { background: var(--primary-fill); border-color: var(--btn-primary-line, var(--primary-line)); color: var(--ink); }
.chip[aria-pressed="true"]:hover, .chip[aria-selected="true"]:hover { border-color: var(--btn-primary-line, var(--primary-line)); color: var(--ink); }

/* CORESTYLE0928F (DAY-PLAN-0928 п. 3): переключатели разделов — ОТДЕЛЬНЫМИ пилюлями, не одной длинной полосой.
   Подложки у сегмента больше нет: каждый пункт — своя вторичная пилюля 40, выбранный — жёлтый. */
.seg { gap: 6px; height: 40px; padding: 0; background: none; border: 0; box-shadow: none; border-radius: 0; }
.seg__item { height: 40px; padding: 0 16px; background: var(--btn-secondary); border: 1px solid var(--btn-secondary-line); }
@media (hover: hover) { .seg__item:not([aria-selected="true"]):not([aria-pressed="true"]):hover { background: rgba(255,255,255,.13); color: var(--text); } }
.seg__item[aria-selected="true"], .seg__item[aria-pressed="true"] { background: var(--primary-fill); border-color: var(--btn-primary-line); color: var(--ink); }

/* ── S0929 (сборщик S, закон owner-0928e/DESIGN-0929): единый стиль общих компонентов — поверх правил выше.
   Кнопки ровно 4 вида (PRIMARY сине-фиолетовая / SECONDARY --s2 / WIN зелёная / DANGER красная), у всех цветных — белый текст.
   Переключатели и чипы: отдельные пилюли, неактивная --s2 + --s-line, активная — главная заливка и белый текст (не жёлтая, не тёмный текст).
   Поверхности: карточка --s1 / --s-line / 20 px, плитка --s2 / 14 px; без цветных ореолов. Текст не мельче 12 px. ── */
.btn--primary, .btn--primary:hover:not(:disabled) { color: var(--on-primary); }
.btn--secondary, .btn--outline { background: var(--btn-secondary); border-color: var(--btn-secondary-line); color: var(--text); }
@media (hover: hover) {
  .btn--secondary:hover:not(:disabled), .btn--outline:hover:not(:disabled) { background: var(--surface-hover); border-color: var(--line-hover); color: var(--text); }
}
.btn--withdraw { background: var(--btn-secondary); border-color: var(--btn-secondary-line); color: var(--text); }
.btn--ghost { color: var(--text-2); }
.btn--danger { background: var(--danger-fill); border-color: var(--btn-danger-line, transparent); color: var(--on-fill); font-weight: 700; box-shadow: var(--btn-danger-shadow, none); }
.btn--danger:hover:not(:disabled) { filter: brightness(1.06); color: var(--on-fill); }
.btn--win, .btn--win:hover:not(:disabled), .btn--deposit, .btn--deposit:hover:not(:disabled) { color: var(--on-fill); }
.btn__price { background: var(--btn-price-bg); }
:is(.btn--win, .btn--danger, .btn--deposit) .btn__price { background: var(--btn-price-bg-on-color); }
.btn--secondary .btn__price, .btn--withdraw .btn__price, .btn--ghost .btn__price, .btn--outline .btn__price { background: rgba(255,255,255,.08); }
.price-pill--on-fill { background: var(--btn-price-bg-on-color); }
.icon-btn { background: var(--s2); border-color: var(--s-line-hi); }
.icon-btn--sm { background: var(--s2); }
.icon-btn--bare { background: transparent; border-color: transparent; }
.icon-btn--accent { background: var(--primary-fill); border-color: transparent; color: var(--on-primary); }

/* переключатели / чипы / пресеты — §5 */
.seg__item { background: var(--s2); border-color: var(--s-line); color: var(--text-2); }
.seg__item::before { content: none; }
@media (hover: hover) { .seg__item:not([aria-selected="true"]):not([aria-pressed="true"]):hover { background: var(--surface-hover); color: var(--text); } }
.seg__item[aria-selected="true"], .seg__item[aria-pressed="true"] {
  background: var(--primary-fill); border-color: transparent; color: var(--on-primary); box-shadow: inset 0 1px 0 rgba(255,255,255,.22);
}
.seg__item[aria-selected="true"] .seg__count, .seg__item[aria-pressed="true"] .seg__count { background: rgba(255,255,255,.20); color: var(--on-primary); }
.chip { background: var(--s2); border-color: var(--s-line); color: var(--text-2); }
.chip[aria-pressed="true"], .chip[aria-selected="true"],
.chip[aria-pressed="true"]:hover, .chip[aria-selected="true"]:hover { background: var(--primary-fill); border-color: transparent; color: var(--on-primary); }
.tabs { gap: 8px; padding: 0; border: 0; background: none; border-radius: 0; }
.tab, .tabs__tab { height: 40px; padding: 0 16px; border-radius: var(--r-pill); background: var(--s2); box-shadow: inset 0 0 0 1px var(--s-line); }
.tabs__tab[aria-selected="true"], .tabs__tab[aria-pressed="true"] { background: var(--primary-fill); color: var(--on-primary); box-shadow: none; }
.tabs__tab[aria-selected="true"] .tabs__count, .tabs__tab[aria-pressed="true"] .tabs__count { background: rgba(255,255,255,.20); }
.cur-switch { border-radius: var(--r-pill); background: var(--s2); border-color: var(--s-line); }
.cur-switch__btn { border-radius: var(--r-pill); }
.cur-switch__btn[aria-pressed="true"] { background: var(--primary-fill); color: var(--on-primary); box-shadow: none; }
.preset { border-radius: var(--r-pill); background: var(--s2); box-shadow: inset 0 0 0 1px var(--s-line); }
.preset:hover { background: var(--surface-hover); }
.preset[aria-pressed="true"] { background: var(--primary-fill); color: var(--on-primary); box-shadow: none; }
.pay-chip { background: var(--s2); box-shadow: inset 0 0 0 1px var(--s-line); }
.switch input:checked + .switch__track::after { box-shadow: 0 1px 3px rgba(10,12,40,.45); }

/* поверхности — §2 */
.panel, .feature, .wip { background: var(--s1); border: 1px solid var(--s-line); border-radius: var(--r-card); }
.panel--sunk { background: var(--s1); }
.panel--accent { background: var(--primary-fill); border-color: transparent; color: var(--on-primary); }
.list-card, .nav-list { background: var(--s1); border: 1px solid var(--s-line); border-radius: var(--r-card); }
.list-row + .list-row, .nav-list__item + .nav-list__item, .kv + .kv { border-top-color: var(--s-line); }
.stat-tile { background: var(--s2); border: 1px solid var(--s-line); border-radius: 14px; }
.win-chip { background: var(--s1); border-color: var(--s-line); }
.table-wrap { background: var(--s1); border-color: var(--s-line); border-radius: var(--r-card); }
.empty { background: var(--s1); border: 1px solid var(--s-line); border-radius: var(--r-card); }
.empty__icon { background: var(--s2); }
.note { background: var(--s2); border-color: var(--s-line); border-radius: 14px; }
.input-wrap { background: var(--s2); border-color: var(--s-line-hi); }
.input, .select, .textarea { border-color: var(--s-line-hi); }
.feature-ico { background: var(--s2); }
/* «тонировка раздела» — была цветным градиентом карточки; по закону карточка сплошная, цвет — только у иконки (.ico-plate) */
.tint { background: var(--s1); border: 1px solid var(--s-line); }
.mode-tile--deposit { --mt-a: #6C7BFF; --mt-b: #3F2FB0; }

/* листы / окна / меню — стекло (§2) */
.modal__panel, .menu {
  background: var(--glass-sheet-bg); border-color: var(--glass-line);
  -webkit-backdrop-filter: saturate(var(--glass-sat, 160%)) blur(var(--glass-sheet-blur, 30px)); backdrop-filter: saturate(var(--glass-sat, 160%)) blur(var(--glass-sheet-blur, 30px));
}
.modal::backdrop { background: var(--glass-dim); }

/* заголовки — §4: страница Unbounded 700 24/28, секция Unbounded 700 18/22, «Все ›» — цвет --accent */
.page-head__title { font-family: var(--font-display); font-weight: 700; font-size: 24px; letter-spacing: -0.01em; }
.section-head__title { font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: -0.01em; }
.btn-all { height: 40px; padding: 0 4px 0 10px; border: 0; background: none; color: var(--accent); font-weight: 600; }
.btn-all:hover { color: var(--accent-hover); border: 0; }
.link-arrow:hover, a.list-row:hover .list-row__title, .nav-list__item:hover .nav-list__title { color: var(--accent); }
@media (min-width: 768px) { .page-head__title { font-size: 28px; } }
@media (max-width: 767.98px) {
  .section-head__title { font-size: 18px; }
  .section-head__more-phone { color: var(--accent); }
}

/* мелкий текст — не меньше 12 px (§0) */
.badge, .lvl-badge, .tag { font-size: 12px; }
.tag { height: 22px; letter-spacing: .02em; }
.lvl-badge { height: 20px; }
.game-card__badge { font-size: clamp(12px, calc(var(--u) * 6.8), 13px); }
.game-card__online { font-size: 12px; }
.game-card__sub { font-size: clamp(12px, calc(var(--u) * 6.6), 14px); }
.gift-card--sm .gift-card__meta { font-size: 12px; }

/* CHATPIN-0929: «Закреплено» — отдельный блок над лентой; прокрученные вверх сообщения не должны
   просвечивать под ним. Верхние 20 px ленты (её отступ и зазор) полностью прозрачны, дальше короткое затухание. */
.chat__log.has-above {
  -webkit-mask-image: linear-gradient(180deg, transparent 0, transparent 20px, rgba(0,0,0,.35) 34px, #000 50px);
          mask-image: linear-gradient(180deg, transparent 0, transparent 20px, rgba(0,0,0,.35) 34px, #000 50px);
}

/* BOARD10: карточки чата — общая поверхность, цвет выигрыша остаётся у суммы. */
.chat-card, .chat-promo, .chat-tourn { background: var(--s1); border-color: var(--s-line); border-radius: var(--r-card); }
.chat-note { background: var(--s2); border-radius: var(--r-lg); }
.chat__pinned { border-radius: var(--r-card); box-shadow: none; }
.chat__sub { font-size: 12px; }
.chat-card__eyebrow, .chat-tourn__eyebrow { font-size: 12px; letter-spacing: 0; text-transform: none; }
.chat__pinned { background: var(--s1); border-color: var(--s-line); }
.chat__input { background: var(--s2); border-color: var(--s-line-hi); }

/* ── F2-S (доводка, раунд 2; закон DESIGN-0929 §4/§5) ──
   U-01: заголовок секции — ОДНО правило на весь сайт: Unbounded 700, 20 px телефон / 22 px ПК, «Все ›» — текст --accent 14 px.
   Страницы задавали свои размеры и шрифты (Onest 18, 17, 21…), поэтому правило поднято над ними :not(#_) (+1 id в специфичности;
   элемента с id «_» нет) — меняется только шрифт, раскладку заголовков страницы держат сами. */
:is(.section-head__title, .acc-h, .v-sec-head__t, .v-pk__h, .tr-h2, .fr-form__title, .fr-more__h, .hm-head__t, .gl-tours__h):not(#_) {
  font-family: var(--font-display); font-weight: 700; font-size: 20px; line-height: 1.2; letter-spacing: -0.01em; color: var(--text);
}
@media (min-width: 768px) {
  :is(.section-head__title, .acc-h, .v-sec-head__t, .v-pk__h, .tr-h2, .fr-form__title, .fr-more__h, .hm-head__t, .gl-tours__h):not(#_) { font-size: 22px; }
}
.btn-all, .section-head__more-phone { color: var(--accent); font-size: 14px; font-weight: 600; }

/* U-02: чипы и переключатели — одно правило. Неактивная пилюля h 40: --s2 + --s-line, текст --text-2;
   активная (aria-pressed / aria-selected) — главная заливка, белый текст, без обводки и без подчёркивания. Тоже :not(#_) —
   поверх локальных копий в страницах (сиреневые обводки, --w-sel). Иконки-плитки способа оплаты (.w-mt) не трогаются. */
.chip { height: 40px; padding: 0 16px; border-radius: var(--r-pill); background: var(--s2); border: 1px solid var(--s-line); color: var(--text-2); font-weight: 600; }
@media (max-width: 767.98px) { .chip { padding: 0 14px; } }
.seg__item::before { content: none; display: none; }
:is(.chip, .seg__item, .tabs__tab, .preset):is([aria-pressed="true"], [aria-selected="true"]):not(#_),
:is(.chip, .seg__item, .tabs__tab, .preset):is([aria-pressed="true"], [aria-selected="true"]):hover:not(#_) {
  background: var(--primary-fill); border-color: transparent; color: var(--on-primary); box-shadow: none;
}

/* U-03 (4): крестик окна — фокус при открытии (showModal ставит его на первую кнопку) не рисует толстую рамку:
   мышь/касание — без рамки, клавиатура — мягкая подложка --s2 вместо обводки. */
.modal__head [data-modal-close]:focus:not(:focus-visible) { outline: none; }
.modal__head [data-modal-close]:focus-visible { outline: none; background: var(--s2); box-shadow: inset 0 0 0 1px var(--s-line-hi); }

/* ── G4-0929 R4 (слово владельца: «Играть слева, сумма справа — абсурд»): кнопка с ценой — ОДНА подпись по центру,
   «Забрать 47 ₽» / «Оплатить 1 000 ₽»: цена сразу за словом, жирнее (Unbounded 800), без своей пилюли и без прижатия к правому краю.
   Разметка ui.btn({ price }) прежняя (.btn--priced > .btn__price). :not(#_) — поверх локальных пилюль цены в страницах ядра
   (account .bcard__btn и т. п.); зона кейсов/игр свою цену в .btn__price не кладёт. ── */
.btn.btn--priced:not(#_) { justify-content: center; gap: .34em; }
.btn.btn--priced:not(#_) > svg:first-child, .btn.btn--priced:not(#_) > .ico:first-child { margin-right: .2em; }
.btn .btn__price:not(#_) {
  display: inline; height: auto; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; color: inherit;
  font-family: var(--font-display); font-size: 1.04em; font-weight: 800; letter-spacing: -.01em; line-height: 1; font-variant-numeric: tabular-nums;
}

/* A4V1-UNIFY (сверка V1: C123/C127/C130/C135 + поля ввода): переключатели .seg — промежуток 8 px по закону §5 (было 6) */
.seg { gap: 8px; }

/* ── RARSPOT-0929 → R11-0929 (разбор владельца №11, 29.09 ~24:40, ОБЯЗАТЕЛЬНО): «совместить нижнее подчёркивание, которое
   обозначает редкость, и свет-прожектор сверху — везде, во всех аспектах игры»; «большие LIVE-дропы слишком много занимают».
   Общий блок. Карточка редкости = КОМПАКТНАЯ карточка прежнего размера (не увеличивать) + ПОДЧЁРКИВАНИЕ снизу цветом редкости
   (3 px) + МЯГКИЙ свет сверху цветом редкости (луч до ~60 % высоты, ~.6 у источника, блик и кромка сверху; прежний яркий —
   .rar-spot--strong). Одинаково везде: LIVE-лента (components/live-wins.css) — те же числа своими классами.
   Цвет — токены --rar0-c … --rar5-c (серый < 100 ₽, синий, фиолетовый от 1 000, розовый от 3 000, красный от 6 000, золото
   от 10 000; tierOf — cases/item-tiers.js). Подчёркивание — всегда --rarN-c. Свет: --rs-g (луч) и --rs-h (блик, --rarN-h).
   R11-ревью: золото и красный полупрозрачным светом поверх синеватой плитки --s2 смешивались в хаки/оливку и бордо —
   у луча r4/r5 свои тёплые цвета (--rar4-g, --rar5-g, блик золота --rar5-gh), полоска остаётся из токена.
   Разметка: class="rar-spot rar-line is-rN" на карточке (N = 0…5). Без is-rN — по классу зоны .t0–.t5 или её --tc/--th, иначе серый.
   · .rar-spot — свет сверху в ::before (z-index -1 внутри isolation, по скруглению карточки). Фон по умолчанию — плитка --s2;
     режет содержимое (overflow: hidden). Кромка сверху (inset 0 1px 0 rgba(var(--rs-h),.26)) — по умолчанию box-shadow;
     своя рамка зоны её заменяет — добавьте кромку к своей тени. --rs-x — центр луча по горизонтали: 50 % (вертикальная
     карточка, подарок по центру) или над картинкой у строки «картинка · текст» (напр. --rs-x: 28px).
     Мелкие квадраты (≤ 40 px) — .rar-spot--fill (свет на всю плитку: картинка закрывает середину луча).
   · .rar-line — подчёркивание 3 px в ::after (поверх содержимого, по скруглению карточки — сам карточку НЕ режет: торчащее
     за край — бейджи, стопки, фокус-кольца — остаётся видно; толщина — --rs-line). ::after занят — дочерний
     <i class="rar-spot__line" aria-hidden="true"></i>, то же подчёркивание.
   · .rar-spot__img — тень картинки; .rar-spot__shade — затемнение под текстом, если текст стоит на свету. ── */
:root{--rar4-g:255,60,48;--rar5-g:255,172,28;--rar5-gh:255,226,140}
.rar-spot{position:relative;isolation:isolate;overflow:hidden;background:var(--s2);--rs-x:50%}
:where(.rar-spot){box-shadow:inset 0 1px 0 rgba(var(--rs-h),.26)}
.rar-spot,.rar-line{--rs-c:var(--tc,var(--rar0-c));--rs-g:var(--rs-c);--rs-h:var(--th,var(--rar0-h))}
:where(.rar-line){position:relative}
:is(.rar-spot,.rar-line):is(.is-r0,.t0){--rs-c:var(--rar0-c);--rs-h:var(--rar0-h)}
:is(.rar-spot,.rar-line):is(.is-r1,.t1){--rs-c:var(--rar1-c);--rs-h:var(--rar1-h)}
:is(.rar-spot,.rar-line):is(.is-r2,.t2){--rs-c:var(--rar2-c);--rs-h:var(--rar2-h)}
:is(.rar-spot,.rar-line):is(.is-r3,.t3){--rs-c:var(--rar3-c);--rs-h:var(--rar3-h)}
:is(.rar-spot,.rar-line):is(.is-r4,.t4){--rs-c:var(--rar4-c);--rs-g:var(--rar4-g);--rs-h:var(--rar4-h)}
:is(.rar-spot,.rar-line):is(.is-r5,.t5){--rs-c:var(--rar5-c);--rs-g:var(--rar5-g);--rs-h:var(--rar5-gh)}
.rar-spot::before{content:"";position:absolute;inset:0;z-index:-1;border-radius:inherit;pointer-events:none;background:var(--rar-full);box-shadow:var(--rar-rim)}   /* A4RARFULL: свет по всей карточке (tokens.css) */
.rar-spot--strong::before{background:
  var(--rar-full),
  radial-gradient(38% 70% at var(--rs-x) -6%, rgba(var(--rs-h),.6) 0%, rgba(var(--rs-h),0) 60%),
  radial-gradient(70% 105% at var(--rs-x) -10%, rgba(var(--rs-g),1) 0%, rgba(var(--rs-g),.75) 28%, rgba(var(--rs-g),.35) 55%, rgba(var(--rs-g),0) 85%),
  linear-gradient(180deg, rgba(var(--rs-g),.22), rgba(0,0,0,0) 75%)}
.rar-spot--fill::before{background:radial-gradient(90% 100% at 50% -5%, rgba(var(--rs-g),.62) 0%, rgba(var(--rs-g),.36) 55%, rgba(var(--rs-g),.16) 100%);box-shadow:var(--rar-rim-sm)}
.rar-line::after,.rar-spot__line{content:"";position:absolute;inset:0;z-index:1;border-radius:inherit;pointer-events:none;
  background:linear-gradient(0deg, rgb(var(--rs-c)) 0 var(--rs-line,3px), rgba(0,0,0,0) var(--rs-line,3px))}
.rar-spot__img{filter:drop-shadow(0 6px 10px rgba(0,0,0,.42))}
.rar-spot__shade{position:absolute;inset:auto 0 0;height:55%;z-index:-1;pointer-events:none;background:linear-gradient(180deg,rgba(23,27,43,0),rgba(23,27,43,.92) 70%)}

/* R12-0930 (C7, владелец: «аватарки людей надо везде показывать»): маленькая аватарка перед ником в карточках чата
   («Подарок выпал», «Крупный выигрыш») — chat.js miniAva; кружок 20 px, буква 12 px */
.chat-ava { display: inline-flex; vertical-align: -5px; margin-right: 5px; }
.chat-ava .avatar { width: 20px; height: 20px; border-radius: 50%; font-size: 12px; font-weight: 800; }

/* A4RARFULL: страница кейса — затемнение под подписью (cases.css ::after, до 92 %) гасило нижний свет карточки; оставляем лёгкую
   подложку под текстом (читается), свет по краям и снизу виден. Кейсовый файл не трогаем — перекрытие здесь. */
html body .cs.cs--case :is(.cs-card,.pz).rar-spot::after { inset: 52% 0 0; background: linear-gradient(180deg, rgba(23,27,43,0), rgba(23,27,43,.5) 70%, rgba(23,27,43,.35)); }
/* A4RARFULL: кейс-батл — барабаны, дропы раундов, итог; инвентарь и окно «Предмет»; кошелёк (вывод подарком) — тот же слой */
html body .bt .bt-reel .bt-it, html body .bt .bt-drop__img, html body .bt .rw__card.rw-k-winner .rw__strip .rw__th:not(.rw__more),
html body .iv .iv-tile, html body .cs-dlg.iv-w .iv-w__pic { --r11-bg: var(--rar-full), var(--s2); }
html body .bt .bt-reel .bt-it, html body .bt .bt-drop__img, html body .bt .rw__card.rw-k-winner .rw__strip .rw__th:not(.rw__more),
html body .iv .iv-tile, html body .cs-dlg.iv-w .iv-w__pic { box-shadow: var(--rar-rim); }
/* ALL1006 (отзыв команды 01.10: «в кейс-батле в спине редкости непонятные»): барабан батла — как лента кейса SPINCARDS1001:
   скруглённая карточка с отступом 3 px (прозрачная рамка, геометрия ленты прежняя), свет редкости по всей карточке и тонкая
   кромка цвета редкости; у выигравшей кромка ярче. Черта 4 px снизу (case-battle.css) — прежняя. Фон case-battle.css
   (.bt :is(.bt-it,…) { background: var(--s2) }) здесь перекрыт. */
html body .bt .bt-reel .bt-it { border: 3px solid transparent; background: var(--rar-full), var(--s2); background-clip: padding-box;
  box-shadow: inset 0 0 0 1px rgba(var(--rf-c), .34); }
html body .bt .bt-reel .bt-it.is-win { box-shadow: inset 0 0 0 1px rgba(var(--rf-c), .78), inset 0 0 0 2px rgba(255,255,255,.16); }
/* ALL1006: во время игры экран батла — .bt.bt--game (case-battle.css), там барабан нарочно плоский: карточки встык, слабый
   свет 0,28 и короткая черта 2 px — по ним редкость не читается. Здесь — та же карточка, что выше, с весом сильнее .bt--game. */
html body .bt.bt--game .bt-reel .bt-it, html body .bt.bt--game .bt-reel .bt-it.is-win { border: 3px solid transparent; border-radius: 14px;
  background: var(--rar-full), var(--s2); background-clip: padding-box; box-shadow: inset 0 0 0 1px rgba(var(--rf-c), .34); }
html body .bt.bt--game .bt-reel .bt-it.is-win { box-shadow: inset 0 0 0 1px rgba(var(--rf-c), .78), inset 0 0 0 2px rgba(255,255,255,.16); }
html body .bt.bt--game .bt-reel .bt-it::after { left: 0; right: 0; height: 3px; border-radius: 0; box-shadow: none; }
html body .bt .bt-drop__img { box-shadow: var(--rar-rim-sm); }
html body .w-gift.w-gift[class*="w-rar"] { background: var(--rar-full), var(--s2); box-shadow: var(--rar-rim); }
/* ALL1003 (владелец 01.10: «в «Бонусы за пополнение» свет только сверху»): картинка тарифа пополнения (.w-tb__art, цвет --tb-c,
   wallet.css CODEXTOPUPBONUS) — тот же свет по всей карточке, что у всех подарков; свой белый блик сверху и черта 3 px остаются */
html body .w-tb__art::before { background: radial-gradient(26% 40% at 50% -6%, rgba(255,255,255,.16) 0%, rgba(255,255,255,0) 70%), var(--rar-full); }
html body .w-tb__art { box-shadow: inset 0 1px 0 rgba(255,255,255,.05), var(--rar-rim); }
html body .w-gift.w-gift[class*="w-rar"]:not(.is-off):not(:disabled):not(:has(input:checked)):not([aria-pressed="true"]):hover { box-shadow: var(--rar-rim), 0 0 0 1px var(--s-line-hi); }
