/* ==========================================================================
   DropHub — розыгрыши (raffles.html)

   Структура — со страницы-образца (баннер, ряды розыгрышей по периодам,
   карточка приза с условием, кнопкой, отсчётом и победителями), вид —
   наш: палитра главной (индиго #1A1430, поверхности #221B3E / #2C2452),
   лайм сайта — главное действие, фиолет бренда — свечение, заголовки
   Oswald, текст Inter. Цвет тира (--tc) — значок, чип, полоса прогресса;
   цвет редкости приза (--rc) — свечение карточки, имя скина, кромка.

   Телефон — до 760px (тот же порог, что в mobile.css): нижняя полоса
   вкладок, одна колонка, ни одного backdrop-filter, бесконечные анимации
   выключены (кроме точки «идут сейчас» и самого отсчёта).
   ========================================================================== */

.rf-body {
  --rf-bg:      #1A1430;
  --rf-deep:    #120C26;
  --rf-surf:    #221B3E;
  --rf-surf-2:  #2C2452;
  --rf-line:    #3A3166;
  --rf-text:    #F5F3FF;
  --rf-dim:     #BDB7DE;
  --rf-mute:    #8F87B5;
  --rf-lime:    var(--lime, #D7FF00);
  --rf-gold:    #FFC93C;
  --rf-mint:    #34D399;
  --rf-mono:    ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;
  /* нейтрали шапки с фиолетовым подтоном — как на главной */
  --panel:     #0D0A1A;
  --panel-2:   #130E24;
  --panel-3:   #1E1836;
  --line:      #2B2449;
  --line-soft: #1F1938;
  background-color: var(--rf-bg);
}
html.rf-lock { overflow: hidden; }

.rf-page {
  max-width: 1320px; margin: 0 auto;
  padding: 18px var(--pad-x) 72px;
  display: flex; flex-direction: column; gap: 18px;
  color: var(--rf-text);
}
.rf-page img { max-width: 100%; }
.rf-sr {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ═══════════════ КНОПКИ ═══════════════ */

.rf-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 24px; border-radius: 12px; border: 1px solid transparent;
  font-family: var(--f-cond); font-size: 15px; font-weight: 600; line-height: 1;
  letter-spacing: .06em; text-transform: uppercase; text-decoration: none; white-space: nowrap;
  cursor: pointer; overflow: hidden;
  transition: transform .14s, filter .14s, background .16s, border-color .16s, color .16s, box-shadow .16s;
}
.rf-btn svg { width: 18px; height: 18px; flex: none; }
.rf-btn:focus-visible { outline: 2px solid var(--rf-lime); outline-offset: 3px; }
.rf-btn--sm { height: 40px; padding: 0 16px; font-size: 14px; border-radius: 11px; }
.rf-btn--block { width: 100%; height: 46px; padding: 0 14px; }
.rf-btn > span { overflow: hidden; text-overflow: ellipsis; }

.rf-btn--lime, .rf-btn--go, .rf-btn--steam {
  background: var(--rf-lime); color: #121700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 10px 26px -12px rgba(215, 255, 0, .75);
}
.rf-btn--lime:hover, .rf-btn--go:hover, .rf-btn--steam:hover { transform: translateY(-2px); filter: brightness(1.06); }
.rf-btn--lime:active, .rf-btn--go:active, .rf-btn--steam:active { transform: translateY(0); }
/* блик по главной кнопке карточки — зовёт нажать */
.rf-btn--go::after {
  content: ''; position: absolute; top: 0; bottom: 0; left: -40%; width: 30%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent);
  transform: skewX(-20deg);
  animation: rf-shine 3.6s ease-in-out infinite;
}
@keyframes rf-shine { 0%, 62% { left: -40%; } 100% { left: 130%; } }
.rf-btn--ghost {
  background: rgba(28, 22, 54, .72); color: #EDE8FF; border-color: rgba(160, 125, 255, .22);
}
.rf-btn--ghost:hover { background: var(--rf-surf-2); border-color: rgba(190, 160, 255, .38); }
.rf-btn--in {
  cursor: default; background: rgba(215, 255, 0, .08); color: #E6FF7A; border-color: rgba(215, 255, 0, .42);
  box-shadow: inset 0 0 18px -8px rgba(215, 255, 0, .45);
}
.rf-btn--in svg { width: 19px; height: 19px; }
.rf-btn--need {
  background: rgba(255, 255, 255, .035); color: color-mix(in srgb, var(--tc, #A855F7) 55%, #fff);
  border: 1px dashed color-mix(in srgb, var(--tc, #A855F7) 55%, transparent);
  font-size: 14px;
}
.rf-btn--need:hover { background: color-mix(in srgb, var(--tc, #A855F7) 12%, transparent); border-style: solid; }
.rf-btn--off { cursor: default; background: rgba(255, 255, 255, .05); color: var(--rf-mute); border-color: rgba(255, 255, 255, .06); font-size: 14px; }
.rf-btn--off svg { width: 16px; height: 16px; }
.rf-btn.is-busy { pointer-events: none; filter: saturate(.6) brightness(.9); }
.rf-btn.is-busy::before {
  content: ''; width: 16px; height: 16px; border-radius: 50%; flex: none;
  border: 2px solid currentColor; border-right-color: transparent; animation: rf-rot .7s linear infinite;
}

.rf-spin {
  display: inline-block; width: 15px; height: 15px; flex: none; border-radius: 50%;
  border: 2px solid currentColor; border-right-color: transparent; animation: rf-rot .7s linear infinite;
}
@keyframes rf-rot { to { transform: rotate(360deg); } }

/* ═══════════════ БАННЕР ═══════════════ */

.rf-hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  grid-template-areas: "body art";
  align-items: center; gap: 8px;
  min-height: 400px; padding: 40px 0 40px 48px;
  border-radius: var(--r-banner, 20px);
  border: 1px solid rgba(166, 120, 255, .30);
  background: linear-gradient(112deg, #24164C 0%, #1B1239 46%, #2A1659 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 30px 60px -42px rgba(130, 60, 255, .7);
}
.rf-hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.rf-hero__glow {
  position: absolute; inset: 0;
  background:
    radial-gradient(46% 92% at 76% 52%, rgba(166, 44, 255, .48), transparent 66%),
    radial-gradient(34% 62% at 0% 0%, rgba(215, 255, 0, .10), transparent 70%),
    radial-gradient(42% 80% at 28% 120%, rgba(56, 189, 248, .14), transparent 70%);
}
.rf-hero__beams {
  position: absolute; right: -6%; top: -60%; width: 66%; aspect-ratio: 1;
  background: repeating-conic-gradient(from 8deg, rgba(220, 190, 255, .10) 0deg 4deg, transparent 4deg 15deg);
  -webkit-mask-image: radial-gradient(closest-side, #000 16%, transparent 74%);
          mask-image: radial-gradient(closest-side, #000 16%, transparent 74%);
}
/* световой блик по диагонали */
.rf-hero::after {
  content: ''; position: absolute; z-index: -1; top: -60%; bottom: -60%; left: -30%; width: 20%;
  background: linear-gradient(90deg, transparent, rgba(235, 220, 255, .08), transparent);
  transform: rotate(18deg);
  animation: rf-sweep 9s ease-in-out infinite;
  pointer-events: none;
}
@keyframes rf-sweep { 0%, 55% { left: -30%; } 100% { left: 130%; } }

.rf-hero__body { grid-area: body; position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; min-width: 0; }
.rf-hero__eyebrow {
  display: inline-flex; align-items: center; gap: 9px; max-width: 100%;
  min-height: 30px; padding: 4px 14px 4px 11px; border-radius: 999px;
  border: 1px solid rgba(215, 255, 0, .32); background: rgba(215, 255, 0, .07);
  color: #EAFF9A; font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.rf-dot {
  width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--rf-lime);
  box-shadow: 0 0 0 0 rgba(215, 255, 0, .6); animation: rf-pulse 1.8s ease-out infinite;
}
@keyframes rf-pulse { 0% { box-shadow: 0 0 0 0 rgba(215, 255, 0, .55); } 100% { box-shadow: 0 0 0 9px rgba(215, 255, 0, 0); } }
.rf-hero__title {
  margin: 0; display: flex; flex-direction: column; gap: 8px;
  font-family: var(--f-cond); font-weight: 700; text-transform: uppercase; line-height: .9;
  font-size: clamp(54px, 6.2vw, 96px); letter-spacing: .01em;
  background: linear-gradient(180deg, #FFFFFF 18%, #EADFFF 58%, #B993FF 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 8px 26px rgba(150, 70, 255, .45));
}
.rf-hero__title small {
  font-size: clamp(14px, 1.25vw, 17px); line-height: 1; letter-spacing: .28em; font-weight: 600;
  background: none; -webkit-text-fill-color: var(--rf-lime); color: var(--rf-lime);
  filter: drop-shadow(0 0 14px rgba(215, 255, 0, .4));
}
.rf-hero__lead { margin: 0; max-width: 52ch; font-size: 16px; line-height: 1.6; color: #DDD6F6; }

.rf-hero__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }

.rf-hero__art { grid-area: art; position: relative; align-self: stretch; min-width: 0; min-height: 320px; margin: -40px 0; }
.rf-hero__halo {
  position: absolute; left: 54%; top: 56%; width: 78%; aspect-ratio: 1; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(255, 196, 80, .30), rgba(166, 44, 255, .22) 52%, transparent 74%);
}
.rf-hero__img {
  position: absolute; right: -2%; top: 50%; height: 112%; width: auto; max-width: none !important;
  transform: translateY(-50%);
  -webkit-mask-image: radial-gradient(64% 70% at 56% 52%, #000 50%, transparent 100%);
          mask-image: radial-gradient(64% 70% at 56% 52%, #000 50%, transparent 100%);
}
.rf-coin {
  position: absolute; width: 56px; height: 56px;
  filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .5)) drop-shadow(0 0 16px rgba(255, 200, 60, .35));
  animation: rf-bob 5.5s ease-in-out infinite;
}
.rf-coin--a { left: 4%; top: 18%; transform: rotate(-14deg); }
.rf-coin--b { left: 14%; bottom: 14%; width: 40px; height: 40px; animation-delay: -2s; animation-duration: 6.5s; }
.rf-coin--c { right: 6%; top: 9%; width: 34px; height: 34px; animation-delay: -3.4s; animation-duration: 7s; }
@keyframes rf-bob { 0%, 100% { translate: 0 0; rotate: -8deg; } 50% { translate: 0 -12px; rotate: 8deg; } }

/* ═══════════════ РАЗДЕЛЫ ═══════════════ */

.rf-sec { margin-top: 30px; scroll-margin-top: 84px; }
.rf-sec__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.rf-sec__title {
  margin: 0; display: flex; align-items: center; gap: 12px;
  font-family: var(--f-cond); font-size: clamp(24px, 2.3vw, 32px); font-weight: 700;
  letter-spacing: .02em; text-transform: uppercase; color: #fff;
}
.rf-sec__title::before {
  content: ''; flex: none; width: 6px; height: .9em; border-radius: 3px;
  background: linear-gradient(180deg, #F2FF9C, var(--rf-lime) 55%, #8DB300); box-shadow: 0 0 14px rgba(215, 255, 0, .5);
}
.rf-sec__sub { margin: 6px 0 0; font-size: 14px; color: var(--rf-dim); }
.rf-sec__head .rf-btn { flex: none; }

.rf-note {
  margin: 0 0 16px; padding: 13px 16px; border-radius: 13px;
  background: rgba(255, 201, 60, .08); box-shadow: inset 0 0 0 1px rgba(255, 201, 60, .28);
  color: #FFE29A; font-size: 14px; line-height: 1.5;
}
.rf-note[hidden] { display: none; }

/* ═══════════════ ТИРЫ ═══════════════
   Сетка на 4 колонки: тир занимает столько колонок, сколько у него
   призов (--span, до 4). У тира с одним призом карточка — его колонка. */

.rf-tiers {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 16px;
  grid-auto-flow: row dense; align-items: stretch;
}
.rf-tier { grid-column: span var(--span, 1); min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.rf-tier__head { display: flex; align-items: center; justify-content: center; gap: 11px; min-height: 34px; min-width: 0; text-align: center; }
.rf-tier__ico {
  flex: none; width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center;
  color: var(--tc); background: color-mix(in srgb, var(--tc) 14%, rgba(18, 12, 38, .6));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tc) 38%, transparent), 0 0 22px -8px var(--tc);
}
.rf-tier__ico svg { width: 22px; height: 22px; }
.rf-tier__txt { min-width: 0; }
.rf-tier__title {
  margin: 0; font-family: var(--f-cond); font-size: 21px; font-weight: 600; line-height: 1.1;
  letter-spacing: .03em; text-transform: uppercase; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rf-tier__meta { margin: 3px 0 0; font-size: 12.5px; color: var(--rf-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rf-tier__cards { flex: 1; display: grid; grid-template-columns: repeat(var(--n, 1), minmax(0, 1fr)); gap: 16px; }

/* ═══════════════ КАРТОЧКА ═══════════════ */

.rf-card {
  --rc: #8C7BFF; --tc: #A855F7;
  position: relative; isolation: isolate; overflow: hidden; min-width: 0;
  display: flex; flex-direction: column; gap: 12px;
  padding: 14px 14px 12px;
  border-radius: 18px;
  background:
    radial-gradient(130% 56% at 50% 0%, color-mix(in srgb, var(--rc) 40%, transparent) 0%, transparent 66%),
    linear-gradient(180deg, #2A2053 0%, #1F1841 48%, #181231 100%);
  border: 1px solid color-mix(in srgb, var(--rc) 34%, #3A3166);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 24px 46px -30px color-mix(in srgb, var(--rc) 85%, transparent);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
/* светящаяся кромка сверху */
.rf-card::before {
  content: ''; position: absolute; left: 14%; right: 14%; top: 0; height: 2px; border-radius: 2px; z-index: 1;
  background: linear-gradient(90deg, transparent, var(--rc), transparent);
  box-shadow: 0 0 14px var(--rc);
}
/* фирменный узор — молнии из логотипа, как у карточек скинов сайта */
.rf-card::after {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; border-radius: inherit;
  background: linear-gradient(180deg, color-mix(in srgb, var(--rc) 45%, #fff) 0%, color-mix(in srgb, var(--rc) 30%, transparent) 30%, transparent 52%);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cg fill='%23000'%3E%3Cpath d='M11.5 2 5 12.2h4.3L7 20l7.2-10.8H9.8z'/%3E%3Cpath d='M31.5 22 25 32.2h4.3L27 40l7.2-10.8h-4.4z'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 40px 40px repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cg fill='%23000'%3E%3Cpath d='M11.5 2 5 12.2h4.3L7 20l7.2-10.8H9.8z'/%3E%3Cpath d='M31.5 22 25 32.2h4.3L27 40l7.2-10.8h-4.4z'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 40px 40px repeat;
  opacity: .16;
}
@media (hover: hover) {
  .rf-card:hover {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--rc) 62%, #3A3166);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 30px 54px -28px color-mix(in srgb, var(--rc) 95%, transparent);
  }
}
.rf-card.is-joined {
  border-color: rgba(215, 255, 0, .46);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), inset 0 0 0 1px rgba(215, 255, 0, .10), 0 24px 46px -28px rgba(215, 255, 0, .38);
}

.rf-card__top { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 26px; }
.rf-chip {
  display: inline-flex; align-items: center; gap: 6px; min-width: 0; height: 26px; padding: 0 11px 0 8px; border-radius: 999px;
  background: color-mix(in srgb, var(--tc) 14%, rgba(10, 6, 24, .55));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tc) 42%, transparent);
  color: color-mix(in srgb, var(--tc) 62%, #fff);
  font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; white-space: nowrap;
}
.rf-chip > span { overflow: hidden; text-overflow: ellipsis; }
.rf-chip .rf-spin { width: 12px; height: 12px; border-width: 2px; }
.rf-dot--tc { width: 7px; height: 7px; background: var(--tc); animation-name: rf-pulse-tc; }
@keyframes rf-pulse-tc { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--tc) 60%, transparent); } 100% { box-shadow: 0 0 0 7px transparent; } }
.rf-chip--in { color: #E6FF7A; background: rgba(215, 255, 0, .10); box-shadow: inset 0 0 0 1px rgba(215, 255, 0, .42); }
.rf-chip--in .rf-chip__i { color: var(--rf-lime); }
.rf-chip--draw { color: #FFE29A; background: rgba(255, 201, 60, .10); box-shadow: inset 0 0 0 1px rgba(255, 201, 60, .38); }
.rf-chip--wait { color: var(--rf-mute); background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.rf-chip--wait .rf-chip__i { color: var(--rf-mute); }
.rf-chip__i { display: grid; place-items: center; color: var(--tc); }
.rf-chip__i svg { width: 15px; height: 15px; display: block; }
.rf-wear {
  flex: none; padding: 5px 7px; border-radius: 7px;
  font-size: 11px; font-weight: 700; line-height: 1; letter-spacing: .04em;
  color: color-mix(in srgb, var(--rc) 50%, #fff);
  background: color-mix(in srgb, var(--rc) 18%, rgba(10, 6, 24, .6));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--rc) 45%, transparent);
}
.rf-wear[hidden] { display: none; }

.rf-card__stage { position: relative; height: 158px; margin: -4px -6px 0; display: grid; place-items: center; }
.rf-card__rays {
  position: absolute; left: 50%; top: 50%; width: 250px; height: 250px; margin: -125px 0 0 -125px; border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, color-mix(in srgb, var(--rc) 26%, transparent) 0deg 6deg, transparent 6deg 18deg);
  -webkit-mask-image: radial-gradient(closest-side, #000 18%, transparent 72%);
          mask-image: radial-gradient(closest-side, #000 18%, transparent 72%);
  opacity: .75;
  animation: rf-rot 48s linear infinite;
}
.rf-card__glow {
  position: absolute; left: 50%; top: 54%; width: 190px; height: 130px; margin: -65px 0 0 -95px; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--rc) 72%, transparent), transparent);
  opacity: .9;
}
.rf-card .rf-card__img {
  position: absolute; top: 2px; left: 0; right: 0; margin: 0 auto; width: min(92%, 270px); height: calc(100% - 4px); max-width: none;
  object-fit: contain;
  filter: drop-shadow(0 16px 18px rgba(0, 0, 0, .55));
  animation: rf-float 6s ease-in-out infinite;
}
.rf-card .rf-card__img[hidden], .rf-card .rf-card__img.is-broken { display: none; }
@keyframes rf-float { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-7px) rotate(1deg); } }
.rf-card__ph { display: none; }
.rf-card.is-pending .rf-card__ph {
  display: block; position: relative; width: 62%; height: 58%; border-radius: 16px;
  background: linear-gradient(90deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .10), rgba(255, 255, 255, .04));
  background-size: 200% 100%; animation: rf-shim 1.4s linear infinite;
}
@keyframes rf-shim { to { background-position: -200% 0; } }

.rf-card__name { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; text-align: center; }
.rf-card__weapon, .rf-card__skin { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rf-card__weapon { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--rf-dim); }
.rf-card__skin {
  font-family: var(--f-cond); font-size: 22px; font-weight: 600; line-height: 1.15; letter-spacing: .02em;
  color: color-mix(in srgb, var(--rc) 48%, #fff);
}
.rf-card.is-pending .rf-card__weapon, .rf-card.is-pending .rf-card__skin { color: var(--rf-mute); }
.rf-card__price {
  align-self: center; display: inline-flex; align-items: center;
  padding: 3px 16px 4px; border-radius: 999px;
  background: rgba(10, 6, 24, .42); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07);
  font-family: var(--f-cond); font-size: 27px; font-weight: 700; line-height: 1.15; color: #fff;
  font-variant-numeric: tabular-nums;
}

/* условие и прогресс */
.rf-cond {
  display: flex; flex-direction: column; gap: 10px; padding: 11px 12px; border-radius: 13px;
  background: rgba(9, 6, 22, .46); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
}
.rf-cond__row { display: flex; flex-direction: column; gap: 3px; }
.rf-cond__k { flex: none; font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--rf-mute); }
.rf-cond__v { min-width: 0; font-size: 13.5px; font-weight: 600; line-height: 1.35; color: #fff; }
.rf-prog[hidden] { display: none; }
.rf-prog__bar { height: 8px; border-radius: 99px; overflow: hidden; background: rgba(255, 255, 255, .07); }
.rf-prog__bar i {
  display: block; height: 100%; width: 0; min-width: 6px; border-radius: inherit;
  background: linear-gradient(90deg, color-mix(in srgb, var(--tc) 50%, #1A1430), var(--tc));
  box-shadow: 0 0 12px -2px var(--tc);
  transition: width .6s cubic-bezier(.2, .8, .2, 1);
}
.rf-prog.is-done .rf-prog__bar i { background: linear-gradient(90deg, #86AE00, var(--rf-lime)); box-shadow: 0 0 14px -2px var(--rf-lime); }
.rf-prog__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 7px; font-size: 12px; color: var(--rf-dim); }
.rf-prog__t { display: inline-flex; align-items: center; gap: 5px; min-width: 0; white-space: nowrap; }
.rf-prog__t svg { width: 14px; height: 14px; flex: none; }
.rf-prog.is-done .rf-prog__t { color: var(--rf-lime); font-weight: 600; }
.rf-prog__v { flex: none; color: #fff; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.rf-prog__v span { color: var(--rf-mute); font-weight: 500; }

.rf-card__act { display: flex; }
.rf-card__act > * { flex: 1; }

/* отсчёт: сегменты с «одометром» */
.rf-timer { display: flex; align-items: flex-start; justify-content: center; gap: 5px; }
.rf-seg { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.rf-seg__n {
  display: flex; padding: 7px 9px 6px; border-radius: 10px;
  background: linear-gradient(180deg, #170F31, #0E0A21);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07), inset 0 -12px 16px -14px color-mix(in srgb, var(--tc) 85%, transparent);
  font-family: var(--f-cond); font-size: 25px; font-weight: 600; line-height: 1; color: #fff;
}
.rf-seg small { font-size: 9.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--rf-mute); }
.rf-sep { padding-top: 9px; font-family: var(--f-cond); font-size: 20px; font-style: normal; line-height: 1; color: var(--rf-mute); }
.rf-dg { display: inline-block; height: 1.16em; width: .6em; overflow: hidden; text-align: center; }
.rf-dg__s { display: flex; flex-direction: column; transition: transform .5s cubic-bezier(.22, .9, .24, 1); }
.rf-dg__s i { display: block; height: 1.16em; line-height: 1.16em; font-style: normal; }
.rf-seg--d, .rf-sep--d { display: none; }
.rf-card--days .rf-seg--d { display: flex; }
.rf-card--days .rf-sep--d { display: block; }
.rf-card.is-drawing .rf-timer { opacity: .4; }
.rf-card__when { display: none; }

.rf-card__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin-top: auto; padding-top: 11px; border-top: 1px solid rgba(255, 255, 255, .06);
}
.rf-people { display: inline-flex; align-items: center; gap: 6px; min-width: 0; font-size: 12.5px; color: var(--rf-dim); white-space: nowrap; }
.rf-people svg { width: 17px; height: 17px; flex: none; color: var(--tc); }
.rf-people b { color: #fff; font-weight: 700; font-variant-numeric: tabular-nums; }
.rf-winbtn {
  display: inline-flex; align-items: center; gap: 7px; flex: none; height: 32px; padding: 0 11px 0 5px; border-radius: 999px;
  background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .09);
  color: #EDE8FF; font-size: 12px; font-weight: 700; letter-spacing: .02em; cursor: pointer;
  transition: background .15s, box-shadow .15s;
}
.rf-winbtn:hover { background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(255, 201, 60, .45); }
.rf-winbtn:focus-visible { outline: 2px solid var(--rf-lime); outline-offset: 2px; }
.rf-winbtn__i { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; color: var(--rf-gold); background: rgba(255, 201, 60, .12); }
.rf-winbtn__i svg { width: 15px; height: 15px; }
.rf-stack { display: inline-flex; }
.rf-stack .rf-ava + .rf-ava { margin-left: -7px; }

/* аватар: картинка Steam или буква на цветном круге */
.rf-ava {
  --h: 260;
  flex: none; display: inline-grid; place-items: center; overflow: hidden;
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, hsl(var(--h) 72% 56%), hsl(calc(var(--h) + 40) 70% 36%));
  box-shadow: 0 0 0 2px #1A1430;
  color: #fff; font-family: var(--f-cond); font-size: 16px; font-weight: 600; line-height: 1;
}
.rf-ava img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rf-ava--xs { width: 22px; height: 22px; font-size: 11px; box-shadow: 0 0 0 2px #221A42; }
.rf-ava--lg { width: 60px; height: 60px; font-size: 24px; box-shadow: 0 0 0 3px #1A1430, 0 0 0 5px var(--rf-gold), 0 0 26px -4px var(--rf-gold); }

/* значок уровня вместо аватара (drophub.level.js): размер — только --s,
   форму, цвет и цифру рисует сам компонент */
.rf-lvl { --s: 38px; }
.rf-lvl--xs { --s: 22px; }
.rf-lvl--sm { --s: 20px; }
.rf-lvl--lg { --s: 60px; }
.rf-stack .kz-lvl + .kz-lvl { margin-left: -2px; }
/* стопка в кнопке «Победители» — только цветные шестиугольники, без цифр:
   «1 Победители» читалось как счётчик победителей. Уровень остаётся
   в подсказке значка, цифры — в окне «Победители» и в ленте.
   Специфичность выше правила компонента .kz-lvl.kz-lvl>.kz-lvl__n */
.rf-stack .kz-lvl.rf-lvl--xs > .kz-lvl__n { display: none; }
/* победитель в итоге раунда: вместо золотого кольца — золотое свечение
   по контуру шестиугольника (своя строка светится цветом ступени) */
.kz-lvl.rf-lvl--lg { filter: drop-shadow(0 0 3px rgba(255, 201, 60, .7)) drop-shadow(0 0 16px rgba(255, 201, 60, .38)); }
/* список участников в проверке раунда: значок и имя в строку */
/* круглое фото с висящим значком (krazeLevel.player, raffles.js ava):
   в стопке кнопки «Победители» — круги внахлёст, значки маленькие и без
   цифр (как раньше: «1 Победители» читалось бы как счётчик); победитель
   в итоге раунда — золотое свечение, значку место под кругом */
.rf-stack .kz-ava { --b: 13px; box-shadow: 0 0 0 2px #221A42; border-radius: 50%; }
.rf-stack .kz-ava + .kz-ava { margin-left: -6px; }
.rf-stack .kz-ava .kz-lvl.kz-lvl > .kz-lvl__n { display: none; }
.kz-ava.rf-pl--lg { margin-bottom: 10px; filter: drop-shadow(0 0 3px rgba(255, 201, 60, .7)) drop-shadow(0 0 16px rgba(255, 201, 60, .38)); }

/* подведение итогов и итог прошлого раунда поверх карточки */
.rf-card__flash {
  position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; padding: 22px;
  border-radius: inherit;
  background: radial-gradient(90% 60% at 50% 38%, rgba(70, 36, 140, .94), rgba(16, 10, 34, .97));
  animation: rf-in .35s ease both;
}
.rf-card__flash[hidden] { display: none; }
.rf-flash { display: flex; flex-direction: column; align-items: center; gap: 9px; text-align: center; max-width: 100%; }
.rf-flash__k { display: inline-flex; align-items: center; gap: 7px; color: var(--rf-gold); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.rf-flash__k svg { width: 17px; height: 17px; }
.rf-flash__n { max-width: 100%; font-family: var(--f-cond); font-size: 24px; font-weight: 600; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rf-flash__p { font-size: 13px; line-height: 1.4; color: #E6DEFF; }
.rf-flash__s { font-size: 12px; color: var(--rf-mute); }
@keyframes rf-in { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }

.rf-card.is-burst .rf-card__act .rf-btn { animation: rf-burst .9s ease-out; }
@keyframes rf-burst { 0% { box-shadow: 0 0 0 0 rgba(215, 255, 0, .6); } 100% { box-shadow: 0 0 0 16px rgba(215, 255, 0, 0); } }
.rf-card.is-new .rf-card__img { animation: rf-pop .6s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes rf-pop { from { opacity: 0; transform: scale(.7) translateY(10px); } to { opacity: 1; transform: none; } }

/* ═══════════════ ПОБЕДИТЕЛИ ═══════════════ */

.rf-wins { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.rf-wins.is-empty { display: block; }
.rf-win {
  --rc: #8C7BFF; --tc: #A855F7;
  position: relative; min-width: 0; display: flex; flex-direction: column; gap: 10px;
  padding: 14px; border-radius: 16px; overflow: hidden;
  background:
    radial-gradient(100% 62% at 50% 46%, color-mix(in srgb, var(--rc) 28%, transparent), transparent 70%),
    linear-gradient(180deg, #251D49, #1A1435);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07);
}
.rf-win::before { content: ''; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 0 3px 3px 0; background: var(--tc); box-shadow: 0 0 12px var(--tc); }
.rf-win.is-me { box-shadow: inset 0 0 0 1px rgba(215, 255, 0, .5), 0 0 30px -12px rgba(215, 255, 0, .5); }
.rf-win__who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.rf-win__txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rf-win__txt b { font-size: 14px; font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rf-win__txt small { font-size: 11.5px; color: var(--rf-mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rf-win__me {
  margin-left: auto; flex: none; padding: 4px 8px; border-radius: 999px;
  background: rgba(215, 255, 0, .14); color: var(--rf-lime); font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
}
.rf-win__stage { height: 98px; display: grid; place-items: center; }
.rf-win__item { display: flex; flex-direction: column; align-items: center; gap: 1px; min-width: 0; text-align: center; }
.rf-win__item span { max-width: 100%; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--rf-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rf-win__item b { max-width: 100%; font-family: var(--f-cond); font-size: 17px; font-weight: 600; color: color-mix(in srgb, var(--rc) 48%, #fff); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rf-win__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, .06); }
.rf-win__price { font-family: var(--f-cond); font-size: 19px; font-weight: 600; color: #fff; }

/* мини-картинка приза со свечением редкости */
.rf-pmini { position: relative; flex: none; display: grid; place-items: center; width: 66px; height: 50px; }
.rf-pmini::before {
  content: ''; position: absolute; inset: 6% 8%; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--rc) 66%, transparent), transparent);
}
.rf-pmini img { position: relative; max-width: 100%; max-height: 100%; object-fit: contain; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .5)); }
.rf-pmini img.is-broken { display: none; }
.rf-pmini--lg { width: 156px; height: 98px; }

.rf-empty {
  display: flex; align-items: center; gap: 18px; padding: 22px 24px; border-radius: 16px;
  border: 1px dashed rgba(190, 160, 255, .26); background: rgba(34, 27, 62, .5);
}
.rf-empty__i {
  flex: none; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 17px;
  color: var(--rf-gold); background: rgba(255, 201, 60, .10); box-shadow: inset 0 0 0 1px rgba(255, 201, 60, .32), 0 0 26px -10px rgba(255, 201, 60, .7);
}
.rf-empty__i svg { width: 30px; height: 30px; }
.rf-empty b { font-family: var(--f-cond); font-size: 20px; font-weight: 600; letter-spacing: .02em; color: #fff; }
.rf-empty p { margin: 4px 0 0; font-size: 14px; line-height: 1.5; color: var(--rf-dim); }
.rf-empty--modal { margin-top: 4px; }

/* ═══════════════ ЧЕСТНОСТЬ ═══════════════ */

/* ═══════════════ ОКНО ═══════════════ */

.rf-modal { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 16px; }
.rf-modal[hidden] { display: none; }
.rf-modal__back { position: absolute; inset: 0; background: rgba(7, 4, 16, .76); opacity: 0; transition: opacity .2s; }
.rf-modal__box {
  position: relative; width: min(620px, 100%); max-height: min(86vh, 800px); overflow: auto; overscroll-behavior: contain;
  padding: 0 22px 22px; border-radius: 20px; outline: none;
  background: linear-gradient(180deg, #271E4E 0%, #1A1436 100%);
  border: 1px solid rgba(190, 160, 255, .22);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .85);
  opacity: 0; transform: translateY(14px) scale(.98); transition: opacity .22s, transform .22s;
  color: var(--rf-text);
}
.rf-modal.is-open .rf-modal__back { opacity: 1; }
.rf-modal.is-open .rf-modal__box { opacity: 1; transform: none; }
.rf-modal__head {
  position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 18px 0 14px; background: linear-gradient(180deg, #271E4E 72%, rgba(39, 30, 78, 0));
}
.rf-modal__title { margin: 0; font-family: var(--f-cond); font-size: 24px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: #fff; }
.rf-modal__x {
  display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 50%; cursor: pointer;
  color: var(--rf-dim); background: rgba(255, 255, 255, .06); transition: background .15s, color .15s;
}
.rf-modal__x svg { width: 18px; height: 18px; }
.rf-modal__x:hover { color: #fff; background: rgba(255, 255, 255, .12); }
.rf-modal__lead { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 0 0 14px; font-size: 13px; color: var(--rf-dim); }
.rf-modal__h3 { margin: 18px 0 8px; font-family: var(--f-cond); font-size: 15px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #fff; }
.rf-loading { display: flex; align-items: center; gap: 10px; padding: 30px 0; color: var(--rf-dim); font-size: 14px; }

.rf-wl { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.rf-wl__row {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 14px;
  background: rgba(10, 6, 24, .42); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
}
.rf-wl__row.is-me { box-shadow: inset 0 0 0 1px rgba(215, 255, 0, .45); }
.rf-wl__who { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rf-wl__who b { font-size: 14px; font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rf-wl__who em {
  font-style: normal; margin-left: 4px; padding: 1px 6px; border-radius: 999px; vertical-align: 1px;
  background: rgba(215, 255, 0, .14); color: var(--rf-lime); font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
}
.rf-wl__who small { font-size: 11.5px; color: var(--rf-mute); }
.rf-wl__prize { display: flex; align-items: center; gap: 6px; min-width: 0; }
.rf-wl__prize > span { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.rf-wl__prize i { font-style: normal; font-size: 10.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--rf-dim); white-space: nowrap; }
.rf-wl__prize b { font-size: 13px; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 150px; }
.rf-wl__prize em { font-style: normal; font-family: var(--f-cond); font-size: 14px; font-weight: 600; color: var(--rf-lime); }

/* ═══════════════ ТОСТ ═══════════════ */

.rf-toast {
  position: fixed; left: 50%; bottom: 26px; z-index: 250;
  display: flex; align-items: center; gap: 10px; max-width: min(540px, calc(100% - 24px));
  padding: 12px 18px; border-radius: 14px;
  background: #2A2152; color: #fff; font-size: 14px; font-weight: 600; line-height: 1.4;
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .75), inset 0 0 0 1px rgba(255, 255, 255, .1);
  opacity: 0; transform: translate(-50%, 16px); pointer-events: none;
  transition: opacity .25s, transform .25s;
}
.rf-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.rf-toast svg { width: 18px; height: 18px; flex: none; color: var(--rf-lime); }
.rf-toast.is-err { background: #3B1631; box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .75), inset 0 0 0 1px rgba(255, 90, 90, .36); }
.rf-toast.is-win { background: linear-gradient(90deg, #2F2263, #3D2B0D); box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .75), inset 0 0 0 1px rgba(255, 201, 60, .5); }
.rf-toast.is-win svg { color: var(--rf-gold); }

/* ═══════════════ ПОЯВЛЕНИЕ ═══════════════ */

.rf-anim .rf-rv.rf-pre { opacity: 0; transform: translateY(16px); transition: opacity .5s ease var(--d, 0ms), transform .5s ease var(--d, 0ms); }
.rf-anim .rf-rv.rf-pre.is-in { opacity: 1; transform: none; }

/* ═══════════════ ШИРИНА ═══════════════ */

@media (max-width: 1199px) {
  .rf-tiers { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 12px; }
  .rf-tier--multi { grid-column: 1 / -1; }
  .rf-tier--multi .rf-tier__cards { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
  .rf-wins { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rf-hero { padding-left: 36px; min-height: 360px; }
}
@media (max-width: 1023px) {
  .rf-wins { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rf-hero { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
}

/* ─── телефон ─── */
@media (max-width: 760px) {
  .rf-page { padding-top: 12px; padding-bottom: 40px; gap: 14px; }
  .rf-sec { margin-top: 22px; scroll-margin-top: 64px; }
  .rf-sec__head { align-items: center; margin-bottom: 14px; }
  .rf-sec__sub { font-size: 13px; }

  .rf-hero {
    grid-template-columns: minmax(0, 1fr); grid-template-areas: "art" "body";
    gap: 0; min-height: 0; padding: 0 0 20px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07);
  }
  .rf-hero::after { display: none; }
  .rf-hero__art { min-height: 0; height: 215px; margin: 0 0 -8px; }
  /* на телефоне арт — баннером во всю ширину, снизу тает в фон */
  .rf-hero__img {
    left: 0; right: 0; top: 0; width: 100%; height: 100%; transform: none;
    object-fit: cover; object-position: 50% 32%;
    -webkit-mask-image: linear-gradient(180deg, #000 52%, transparent 100%);
            mask-image: linear-gradient(180deg, #000 52%, transparent 100%);
  }
  .rf-hero__halo { left: 50%; top: 48%; width: 340px; }
  .rf-coin { animation: none; }
  .rf-coin--a { left: 6%; top: 22%; width: 44px; height: 44px; }
  .rf-coin--b { left: auto; right: 7%; bottom: 10%; }
  .rf-coin--c { right: auto; left: 20%; top: auto; bottom: 6%; }
  .rf-hero__body { padding: 0 16px; gap: 13px; }
  .rf-hero__title { font-size: 50px; gap: 6px; }
  .rf-hero__title small { font-size: 13px; letter-spacing: .24em; }
  .rf-hero__lead { font-size: 14.5px; line-height: 1.55; }
  .rf-hero__cta { width: 100%; }
  .rf-hero__cta .rf-btn { flex: 1 1 0; min-width: 0; padding: 0 12px; height: 46px; font-size: 14px; }

  .rf-tiers { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .rf-tier, .rf-tier--multi { grid-column: auto; }
  /* несколько призов у тира — лентой вбок, как на образце */
  .rf-tier--multi .rf-tier__cards {
    display: grid; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 86%;
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin: 0 calc(-1 * var(--pad-x)); padding: 2px var(--pad-x) 6px; scroll-padding: 0 var(--pad-x);
  }
  .rf-tier--multi .rf-tier__cards::-webkit-scrollbar { display: none; }
  .rf-tier--multi .rf-card { scroll-snap-align: start; }
  .rf-card { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08); }
  .rf-card__rays, .rf-card .rf-card__img, .rf-btn--go::after, .rf-dot--tc { animation: none; }
  .rf-card__stage { height: 150px; }

  .rf-wins {
    display: grid; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 72%;
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin: 0 calc(-1 * var(--pad-x)); padding: 2px var(--pad-x) 6px; scroll-padding: 0 var(--pad-x);
  }
  .rf-wins::-webkit-scrollbar { display: none; }
  .rf-wins.is-empty { display: block; margin: 0; padding: 0; overflow: visible; }
  .rf-win { scroll-snap-align: start; }
  .rf-empty { padding: 18px; gap: 14px; align-items: flex-start; }


  .rf-modal { place-items: end center; padding: 0; }
  .rf-modal__box {
    width: 100%; max-height: 88vh; border-radius: 20px 20px 0 0;
    padding: 0 16px calc(18px + env(safe-area-inset-bottom, 0px));
  }
  .rf-modal__title { font-size: 21px; }
  .rf-wl__row { grid-template-columns: auto minmax(0, 1fr) auto; }
  .rf-wl__prize { grid-column: 2 / -1; grid-row: 2; }
  .rf-wl__prize b { max-width: none; }

  /* полоса вкладок снизу — тост над ней */
  .rf-toast { bottom: calc(70px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 420px) {
  .rf-hero__title { font-size: 44px; }
  .rf-card { padding: 13px 12px 11px; }
  .rf-seg__n { font-size: 22px; padding: 6px 7px 5px; }
  .rf-card__skin { font-size: 20px; }
  .rf-card__price { font-size: 25px; }
  .rf-sec__head .rf-btn span { display: none; }
  .rf-sec__head .rf-btn { width: 40px; padding: 0; }
}
@media (max-width: 360px) {
  .rf-hero__title { font-size: 40px; }
  .rf-timer { gap: 3px; }
  .rf-seg__n { font-size: 20px; padding: 6px 6px 5px; }
}

/* ─── меньше движения ─── */
@media (prefers-reduced-motion: reduce) {
  .rf-hero::after, .rf-dot, .rf-coin, .rf-card__rays, .rf-card .rf-card__img, .rf-btn--go::after,
  .rf-card.is-pending .rf-card__ph, .rf-card.is-new .rf-card__img, .rf-card.is-burst .rf-card__act .rf-btn { animation: none; }
  .rf-dg__s, .rf-prog__bar i, .rf-card, .rf-modal__box, .rf-modal__back, .rf-toast { transition: none; }
  .rf-card__flash { animation: none; }
  .rf-anim .rf-rv.rf-pre { opacity: 1; transform: none; transition: none; }
  @media (hover: hover) { .rf-card:hover { transform: none; } }
}

/* ═══ Шапка по образцу владельца (2026-11-01): слева заголовок и две строки
   на фоне страницы, справа картинка (барабан, девушка, подарок) — тает в фон
   влево и вниз, текст на неё не заходит. Без карточек, кнопок и чисел.
   Заменила баннер на весь блок (2026-10-19). ═══ */
.rf-hero {
  grid-template-columns: minmax(0, 1fr); grid-template-areas: "body";
  align-items: center; min-height: 330px; padding: 20px 0 34px;
  border: 0; border-radius: 0; box-shadow: none; overflow: visible;
  background: radial-gradient(38% 70% at 74% 100%, rgba(124, 58, 237, .26), transparent 72%);
}
.rf-hero::after { display: none; }
/* тонкая линия-разделитель снизу, гаснет вправо */
.rf-hero::before {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, rgba(166, 120, 255, .5), rgba(166, 120, 255, .14) 40%, transparent 78%);
}
/* заголовок — одной строкой, как на образце: ширина строки ≈ 11.6 кегля */
.rf-hero__body { position: relative; z-index: 1; max-width: min(640px, 46%); gap: 14px; }
.rf-hero__title {
  display: block; font-size: clamp(34px, 3.4vw, 52px); line-height: .95; letter-spacing: .01em;
  filter: drop-shadow(0 6px 20px rgba(150, 70, 255, .35));
}
.rf-hero__lead { max-width: none; font-size: 16.5px; line-height: 1.5; font-weight: 500; color: #E8E3FF; }
.rf-hero__art {
  position: absolute; z-index: 0; top: -10px; bottom: 1px; right: 0; width: 64%;
  display: block; margin: 0; min-height: 0; grid-area: auto; overflow: hidden; pointer-events: none;
  -webkit-mask-image:
    linear-gradient(90deg, transparent 0%, #000 26%),
    linear-gradient(180deg, #000 72%, transparent 100%);
  -webkit-mask-composite: source-in;
          mask-image:
    linear-gradient(90deg, transparent 0%, #000 26%),
    linear-gradient(180deg, #000 72%, transparent 100%);
          mask-composite: intersect;
}
.rf-hero__art::after { display: none; }
.rf-hero__img {
  position: absolute; inset: 0; width: 100%; height: 100%; max-width: none !important; transform: none;
  object-fit: cover; object-position: 100% 42%;
  -webkit-mask-image: none; mask-image: none;
}
/* узко для двух колонок — картинка сверху на всю ширину, текст под ней */
@media (max-width: 860px) {
  .rf-hero { grid-template-areas: "art" "body"; min-height: 0; padding: 0 0 22px; background: none; }
  .rf-hero__art {
    position: relative; inset: auto; grid-area: art; width: auto; height: auto; aspect-ratio: 1252 / 754;
    margin: 0 calc(-1 * var(--pad-x)) -26px;
    -webkit-mask-image: linear-gradient(180deg, #000 62%, transparent 100%);
            mask-image: linear-gradient(180deg, #000 62%, transparent 100%);
  }
  .rf-hero__img { object-position: 50% 40%; }
  .rf-hero__body { max-width: none; padding: 0; gap: 10px; }
  .rf-hero__title { font-size: 44px; }
  .rf-hero__lead { font-size: 15px; }
}
@media (max-width: 420px) { .rf-hero__title { font-size: 38px; } }
@media (max-width: 360px) { .rf-hero__title { font-size: 34px; } }
.rf-chip[hidden] { display: none; }
/* ═══════════════ РАЗДЕЛЫ И КАРТОЧКИ — по образцу ═══════════════
   Раздел — строкой: слева заголовок и подзаголовок, справа «Пополнить
   баланс»; под ним 5 карточек в ряд (не влезают — лента вбок).
   Карточка: износ в углу, оружие и скин над картинкой, цена, условие на
   полосе, кнопка, внизу таймер · участники · победители. */
.rf-tier__ico { display: none; }
.rf-tiers { grid-template-columns: minmax(0, 1fr); gap: 36px; }
.rf-tier, .rf-tier--multi { grid-column: auto; gap: 16px; }
.rf-tier__head { justify-content: space-between; text-align: left; gap: 16px; min-height: 0; }
.rf-tier__txt { flex: 1; min-width: 0; }
.rf-tier__title { font-size: 24px; white-space: normal; }
.rf-tier__meta { margin-top: 6px; font-size: 14px; line-height: 1.4; white-space: normal; }
.rf-tier__cards, .rf-tier--multi .rf-tier__cards {
  display: grid; grid-auto-flow: row; grid-template-columns: repeat(5, minmax(196px, 1fr)); gap: 14px;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity;
  margin: 0; padding: 2px 2px 10px; scrollbar-width: thin; scrollbar-color: rgba(160, 125, 255, .35) transparent;
}
.rf-tier__cards > .rf-card { scroll-snap-align: start; }

.rf-card {
  gap: 8px; padding: 12px 12px 10px; border: 0; border-radius: 16px;
  background:
    linear-gradient(to top, color-mix(in srgb, var(--rc) 30%, transparent) 0%, color-mix(in srgb, var(--rc) 8%, transparent) 100%),
    #1B1638;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), inset 0 0 0 1px color-mix(in srgb, var(--rc) 22%, transparent);
}
.rf-card::before { display: none; }
.rf-card::after { opacity: .08; }
@media (hover: hover) {
  .rf-card:hover { transform: translateY(-3px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), inset 0 0 0 1px color-mix(in srgb, var(--rc) 45%, transparent), 0 18px 34px -22px color-mix(in srgb, var(--rc) 90%, transparent); }
}
.rf-card.is-joined { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), inset 0 0 0 1.5px rgba(215, 255, 0, .5); }
.rf-card__top { position: absolute; top: 10px; left: 10px; right: 10px; z-index: 3; min-height: 0; pointer-events: none; }
.rf-chip { height: 22px; padding: 0 9px 0 7px; font-size: 10px; }
.rf-wear { margin-left: auto; padding: 4px 6px; border-radius: 8px; font-size: 10px; font-weight: 900; letter-spacing: .02em; box-shadow: none; }
.rf-card__name { padding: 4px 26px 0; gap: 1px; }
.rf-card__weapon { font-size: 13px; font-weight: 500; letter-spacing: 0; text-transform: none; color: #fff; }
.rf-card__skin { font-family: inherit; font-size: 13px; font-weight: 500; letter-spacing: 0; color: color-mix(in srgb, var(--rc) 62%, #fff); }
.rf-card__stage { height: 108px; margin: 0 -4px; }
.rf-card .rf-card__img { width: min(84%, 180px); }
.rf-card__glow { width: 150px; height: 96px; margin: -48px 0 0 -75px; opacity: .7; }
.rf-card__price {
  padding: 0; background: none; box-shadow: none;
  font-family: inherit; font-size: 15px; font-weight: 800; line-height: 1.2; color: var(--rf-lime);
}
.rf-cond { gap: 6px; padding: 0; background: none; box-shadow: none; }
.rf-cond__v {
  display: flex; align-items: center; justify-content: center; min-height: 40px; margin: 0 -12px; padding: 4px 14px;
  text-align: center; font-size: 12px; font-weight: 600; line-height: 1.35;
  color: color-mix(in srgb, var(--rc) 55%, #fff);
  background: linear-gradient(90deg, transparent 0%, color-mix(in srgb, var(--rc) 24%, transparent) 50%, transparent 100%);
}
.rf-cond__v .kz-cur { width: 1em; height: 1em; vertical-align: -.15em; }
.rf-prog__bar { height: 5px; }
.rf-prog__row { margin-top: 5px; font-size: 11px; }
.rf-card__act .rf-btn--block { height: 42px; padding: 0 14px; border-radius: 13px; justify-content: space-between; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
.rf-card__act .rf-btn--block svg { width: 16px; height: 16px; }
.rf-card__foot { gap: 6px; padding-top: 2px; border-top: 0; justify-content: space-between; }
.rf-clock, .rf-people, .rf-winbtn { height: 30px; border-radius: 10px; }
.rf-clock {
  flex: 1.7; display: grid; place-items: center; min-width: 0; padding: 0 6px;
  background: rgba(10, 8, 26, .55); color: #fff; font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap;
}
.rf-people {
  flex: 1; justify-content: center; gap: 4px; padding: 0 6px;
  background: color-mix(in srgb, var(--rc) 22%, rgba(10, 8, 26, .55)); color: #fff; font-size: 13px;
}
.rf-people svg { width: 15px; height: 15px; color: color-mix(in srgb, var(--rc) 60%, #fff); }
.rf-people b { font-weight: 800; }
.rf-winbtn {
  width: 34px; padding: 0; justify-content: center; box-shadow: none;
  background: color-mix(in srgb, var(--rc) 22%, rgba(10, 8, 26, .55));
}
.rf-winbtn svg { width: 16px; height: 16px; color: var(--rf-gold); }
.rf-card.is-drawing .rf-clock { opacity: .45; }

@media (max-width: 760px) {
  .rf-tiers { gap: 30px; }
  .rf-tier__head { flex-wrap: wrap; gap: 10px; }
  .rf-tier__title { font-size: 21px; }
  .rf-tier__meta { font-size: 13px; }
  .rf-tier__cards, .rf-tier--multi .rf-tier__cards {
    grid-template-columns: repeat(5, 72%);
    margin: 0 calc(-1 * var(--pad-x, 16px)); padding: 2px var(--pad-x, 16px) 8px; scroll-padding: 0 var(--pad-x, 16px);
    scroll-snap-type: x mandatory; scrollbar-width: none;
  }
  .rf-tier__cards::-webkit-scrollbar { display: none; }
}
