/* ============================================================
   2P_BOT — рулетка скинов (панель стримера)
   Та же типографическая сетка, что у чат-бота, дропов и ставок:
   один акцент, тонкие линии, минимум рамок и цвета.
   Все классы с префиксом rl- .
   ============================================================ */

.rl {
    --r-surface:   #14141f;
    --r-surface-2: #1b1b29;
    --r-surface-3: #232333;

    --r-line:   rgba(255, 255, 255, 0.07);
    --r-line-2: rgba(255, 255, 255, 0.13);

    --r-fg:   #ffffff;
    --r-fg-2: #a3a3b8;
    --r-fg-3: #6e6e85;

    --r-accent:      #9146ff;
    --r-accent-hi:   #a76bff;
    --r-accent-dim:  rgba(145, 70, 255, 0.12);
    --r-accent-line: rgba(145, 70, 255, 0.32);
    --r-ok:   #34d399;
    --r-warn: #f0b429;
    --r-err:  #f87171;
    --r-gold: #fbbf24;

    --r-r:    12px;
    --r-r-lg: 16px;
    --r-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
    --r-ease: cubic-bezier(0.2, 0.8, 0.2, 1);

    max-width: 1448px;
    padding-bottom: 40px;
    color: var(--r-fg);
}

.rl h1, .rl h2, .rl h3, .rl h4 { margin: 0; letter-spacing: -0.02em; color: var(--r-fg); }
.rl p { margin: 0; }
.rl code { font-family: var(--r-mono); }

/* ---------- Служебные состояния ---------- */
.rl-loading { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 96px 24px; color: var(--r-fg-3); font-size: 0.875rem; }
.rl-spinner { width: 26px; height: 26px; border: 2px solid var(--r-line-2); border-top-color: var(--r-accent); border-radius: 50%; animation: rl-spin 0.8s linear infinite; }
.rl-spinner-sm { width: 13px; height: 13px; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: rl-spin .8s linear infinite; display: inline-block; }
@keyframes rl-spin { to { transform: rotate(360deg); } }

/* ============================================================
   Шапка
   ============================================================ */
.rl-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    flex-wrap: wrap;
    padding-bottom: 26px;
}
.rl-head h1 { font-size: 1.625rem; font-weight: 700; line-height: 1.15; }
.rl-head-sub { margin-top: 7px; font-size: 0.875rem; color: var(--r-fg-2); }

.rl-state {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 9px 16px;
    border: 1px solid var(--r-line);
    border-radius: 100px;
    background: var(--r-surface);
    font-size: 0.8125rem;
    font-weight: 600;
    white-space: nowrap;
}
.rl-state.live { border-color: rgba(52, 211, 153, 0.28); }
.rl-state-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--r-fg-3); flex-shrink: 0; }
.rl-state.live .rl-state-dot { background: var(--r-ok); box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.14); animation: rl-pulse-dot 2s ease-in-out infinite; }
@keyframes rl-pulse-dot { 50% { box-shadow: 0 0 0 7px rgba(52, 211, 153, 0); } }

/* ============================================================
   Контент + колонка-помощник
   ============================================================ */
.rl-body {
    display: grid;
    grid-template-columns: minmax(0, 1120px) 300px;
    gap: 28px;
    align-items: start;
}
.rl-main { min-width: 0; display: flex; flex-direction: column; gap: 44px; }

.rl-rail { position: sticky; top: 20px; display: flex; flex-direction: column; gap: 12px; }
.rl-rail-card {
    display: flex;
    flex-direction: column;
    gap: 9px;
    padding: 14px 16px;
    border: 1px solid var(--r-line);
    border-radius: var(--r-r);
    background: var(--r-surface);
}
.rl-rail-title { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; color: var(--r-fg-3); }
.rl-rail-line { display: flex; align-items: center; gap: 9px; font-size: 0.8125rem; color: var(--r-fg); }
.rl-rail-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--r-fg-3); flex-shrink: 0; }
.rl-rail-dot.on { background: var(--r-ok); box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.12); }
.rl-rail-sub { margin: -3px 0 0 16px; font-size: 0.75rem; line-height: 1.55; color: var(--r-fg-3); }
.rl-rail-stats { margin-top: 3px; padding-top: 4px; border-top: 1px solid var(--r-line); }
.rl-rail-stat { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: 0.8125rem; color: var(--r-fg-3); }
.rl-rail-stat b { color: var(--r-fg); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rl-rail-note {
    padding: 13px 15px;
    border: 1px solid var(--r-line);
    border-radius: var(--r-r);
    background: var(--r-surface-2);
    font-size: 0.78125rem;
    line-height: 1.6;
    color: var(--r-fg-3);
}
.rl-rail-note b { display: block; margin-bottom: 4px; color: var(--r-fg-2); font-weight: 600; }
.rl-rail-link {
    display: flex;
    width: fit-content;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    font-size: 0.78125rem;
    font-weight: 600;
    color: var(--r-accent-hi);
    text-decoration: none;
}
.rl-rail-link:hover { color: var(--r-fg); }
.rl-rail-steps { margin: 0; padding: 0; list-style: none; counter-reset: rl-step; display: flex; flex-direction: column; gap: 11px; }
.rl-rail-steps li { counter-increment: rl-step; position: relative; padding-left: 26px; }
.rl-rail-steps li::before {
    content: counter(rl-step);
    position: absolute; left: 0; top: 1px;
    width: 18px; height: 18px;
    border-radius: 50%;
    background: var(--r-accent-dim);
    color: var(--r-accent-hi);
    font-size: 0.625rem; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
}
.rl-rail-steps b { display: block; font-size: 0.8125rem; font-weight: 600; color: var(--r-fg); }
.rl-rail-steps span { display: block; margin-top: 2px; font-size: 0.75rem; line-height: 1.45; color: var(--r-fg-3); }

@media (max-width: 1420px) {
    .rl-body { grid-template-columns: minmax(0, 1fr); }
    .rl-rail { position: static; flex-direction: row; flex-wrap: wrap; }
    .rl-rail > * { flex: 1 1 260px; }
}
@media (max-width: 720px) {
    .rl-rail { flex-direction: column; }
}

/* ============================================================
   Секции и панели
   ============================================================ */
.rl-sec { display: flex; flex-direction: column; gap: 14px; }
.rl-sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.rl-sec-title { font-size: 1.0625rem; font-weight: 700; display: flex; align-items: center; gap: 9px; }
.rl-sec-desc { margin-top: 5px; font-size: 0.8125rem; color: var(--r-fg-2); max-width: 44rem; }
.rl-count {
    min-width: 20px; padding: 1px 7px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.07);
    color: var(--r-fg-3);
    font-size: 0.6875rem; font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.rl-panel {
    border: 1px solid var(--r-line);
    border-radius: var(--r-r-lg);
    background: var(--r-surface);
    overflow: hidden;
}
.rl-panel-pad { padding: 18px 20px; }

.rl-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 15px 20px; }
.rl-row + .rl-row { border-top: 1px solid var(--r-line); }
.rl-row-text { min-width: 0; }
.rl-row-title { display: block; font-size: 0.875rem; font-weight: 600; color: var(--r-fg); }
.rl-row-title a { color: var(--r-accent-hi); text-decoration: none; font-weight: 600; }
.rl-row-title a:hover { color: var(--r-fg); }
.rl-row-hint { display: block; margin-top: 4px; font-size: 0.78125rem; line-height: 1.5; color: var(--r-fg-3); max-width: 42rem; }
.rl-row-ctl { flex-shrink: 0; display: flex; align-items: center; gap: 10px; }

/* ============================================================
   Поля и подписи
   ============================================================ */
.rl-label { display: block; font-size: 0.78125rem; font-weight: 500; color: var(--r-fg-2); margin-bottom: 8px; }
.rl-label-note { font-weight: 400; color: var(--r-fg-3); }
.rl-hint { font-size: 0.78125rem; line-height: 1.5; color: var(--r-fg-3); }

.rl-input {
    width: 100%;
    box-sizing: border-box;
    height: 38px;
    padding: 0 12px;
    background: var(--r-surface-2);
    border: 1px solid var(--r-line);
    border-radius: 9px;
    color: var(--r-fg);
    font-family: inherit;
    font-size: 0.875rem;
    outline: none;
    transition: border-color 0.16s var(--r-ease), background 0.16s var(--r-ease);
}
.rl-input::placeholder { color: var(--r-fg-3); }
.rl-input:hover { border-color: var(--r-line-2); }
.rl-input:focus { border-color: var(--r-accent-line); background: var(--r-surface-3); }
.rl-input-num { width: 78px; text-align: center; font-variant-numeric: tabular-nums; font-weight: 600; }
.rl-input-suffix { display: flex; align-items: center; gap: 8px; }
.rl-suffix { font-size: 0.75rem; color: var(--r-fg-3); white-space: nowrap; }

.rl-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.rl-chip {
    display: inline-flex; align-items: center;
    height: 30px; padding: 0 12px;
    border: 1px solid var(--r-line);
    border-radius: 100px;
    background: var(--r-surface-2);
    color: var(--r-fg-2);
    font-family: inherit;
    font-size: 0.78125rem;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.16s var(--r-ease), border-color 0.16s var(--r-ease), background 0.16s var(--r-ease);
}
.rl-chip:hover { color: var(--r-fg); border-color: var(--r-accent-line); background: var(--r-accent-dim); }
.rl-chip.active { color: var(--r-fg); border-color: var(--r-accent-line); background: var(--r-accent-dim); font-weight: 600; }

/* ============================================================
   Выбор варианта карточками (что разыгрываем / режим)
   ============================================================ */
.rl-choice { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.rl-choice-card {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 40px 14px 14px;
    border: 1px solid var(--r-line);
    border-radius: var(--r-r);
    background: var(--r-surface-2);
    text-align: left;
    font-family: inherit;
    cursor: pointer;
    transition: border-color 0.16s var(--r-ease), background 0.16s var(--r-ease);
}
.rl-choice-card:hover { border-color: var(--r-line-2); }
.rl-choice-card.active { border-color: var(--r-accent-line); background: rgba(145, 70, 255, 0.08); }
.rl-choice-icon {
    display: flex; align-items: center; justify-content: center;
    width: 34px; height: 34px;
    flex-shrink: 0;
    border: 1px solid var(--r-line);
    border-radius: 10px;
    background: var(--r-surface);
    color: var(--r-accent-hi);
}
.rl-choice-card.active .rl-choice-icon { border-color: var(--r-accent-line); }
.rl-choice-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.rl-choice-title { font-size: 0.875rem; font-weight: 600; color: var(--r-fg); }
.rl-choice-desc { font-size: 0.75rem; line-height: 1.45; color: var(--r-fg-3); }
.rl-choice-radio {
    position: absolute; top: 15px; right: 14px;
    width: 16px; height: 16px;
    border-radius: 50%;
    border: 1.5px solid var(--r-line-2);
    transition: border-color 0.18s var(--r-ease), box-shadow 0.18s var(--r-ease);
}
.rl-choice-card.active .rl-choice-radio { border-color: var(--r-accent); box-shadow: inset 0 0 0 3.5px var(--r-accent); }

/* ============================================================
   Выбор скина
   ============================================================ */
.rl-skins { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.rl-skin {
    position: relative;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 12px;
    border: 1px solid var(--r-line);
    border-radius: var(--r-r);
    background: var(--r-surface-2);
    text-align: left;
    font-family: inherit;
    cursor: pointer;
    transition: border-color 0.16s var(--r-ease), background 0.16s var(--r-ease);
}
.rl-skin:hover { border-color: var(--r-line-2); }
.rl-skin.active { border-color: var(--r-accent-line); background: rgba(145, 70, 255, 0.08); }
.rl-skin-img {
    display: flex; align-items: center; justify-content: center;
    width: 46px; height: 36px;
    flex-shrink: 0;
    border-radius: 8px;
    background: var(--r-surface);
    color: var(--r-fg-3);
    overflow: hidden;
}
.rl-skin-img img { width: 100%; height: 100%; object-fit: contain; }
.rl-skin.active .rl-skin-random { color: var(--r-accent-hi); }
.rl-skin-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rl-skin-name { font-size: 0.8125rem; font-weight: 600; color: var(--r-fg); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rl-skin-game { font-size: 0.6875rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--r-fg-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ============================================================
   Тумблер
   ============================================================ */
.rl-toggle { position: relative; display: inline-flex; width: 40px; height: 22px; flex-shrink: 0; cursor: pointer; }
.rl-toggle-track {
    position: absolute; inset: 0;
    background: var(--r-surface-3);
    border: 1px solid var(--r-line-2);
    border-radius: 100px;
    transition: background 0.2s var(--r-ease), border-color 0.2s var(--r-ease);
}
.rl-toggle-track::after {
    content: "";
    position: absolute;
    top: 3px; left: 3px;
    width: 14px; height: 14px;
    border-radius: 50%;
    background: var(--r-fg-3);
    transition: transform 0.2s var(--r-ease), background 0.2s var(--r-ease);
}
.rl-toggle.on .rl-toggle-track { background: var(--r-accent); border-color: var(--r-accent); }
.rl-toggle.on .rl-toggle-track::after { transform: translateX(18px); background: #fff; }

/* ============================================================
   Кнопки
   ============================================================ */
.rl-btn-primary, .rl-btn-ghost, .rl-btn-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 38px;
    padding: 0 18px;
    border-radius: 9px;
    border: 1px solid transparent;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.16s var(--r-ease), border-color 0.16s var(--r-ease), color 0.16s var(--r-ease);
}
.rl-btn-primary svg, .rl-btn-ghost svg, .rl-btn-danger svg { width: 15px; height: 15px; flex-shrink: 0; }
.rl-btn-primary { background: var(--r-accent); color: #fff; }
.rl-btn-primary:hover:not(:disabled) { background: var(--r-accent-hi); }
.rl-btn-ghost { background: transparent; border-color: var(--r-line-2); color: var(--r-fg); }
.rl-btn-ghost:hover:not(:disabled) { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.22); }
.rl-btn-danger { background: transparent; border-color: rgba(248, 113, 113, 0.28); color: var(--r-err); }
.rl-btn-danger:hover:not(:disabled) { background: rgba(248, 113, 113, 0.1); }
.rl-btn-primary:disabled, .rl-btn-ghost:disabled, .rl-btn-danger:disabled {
    background: var(--r-surface-2); border-color: var(--r-line); color: var(--r-fg-3); cursor: not-allowed;
}
.rl-btn-sm { height: 32px; padding: 0 12px; font-size: 0.8125rem; }
.rl-btn-lg { height: 46px; padding: 0 26px; font-size: 0.9375rem; }
.rl-btn-lg svg { width: 17px; height: 17px; }

.rl-icon-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px;
    flex-shrink: 0;
    background: transparent;
    border: 1px solid var(--r-line-2);
    border-radius: 8px;
    color: var(--r-fg-3);
    cursor: pointer;
    transition: color 0.16s, background 0.16s, border-color 0.16s;
}
.rl-icon-btn:hover:not(:disabled) { color: var(--r-fg); background: rgba(255, 255, 255, 0.05); }
.rl-icon-btn:disabled { cursor: not-allowed; opacity: 0.6; }

/* ============================================================
   Участники
   ============================================================ */
.rl-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: var(--r-line); border-bottom: 1px solid var(--r-line); }
.rl-stat { display: flex; flex-direction: column; gap: 4px; padding: 13px 16px; background: var(--r-surface); }
.rl-stat-value { font-size: 1.0625rem; font-weight: 700; color: var(--r-fg); font-variant-numeric: tabular-nums; }
.rl-stat.on .rl-stat-value { color: var(--r-accent-hi); }
.rl-stat-label { font-size: 0.6875rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--r-fg-3); }

.rl-eligible {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    padding: 13px 20px;
    border-bottom: 1px solid var(--r-line);
    font-size: 0.8125rem;
    color: var(--r-fg-2);
}
.rl-eligible b { color: var(--r-fg); font-weight: 700; font-variant-numeric: tabular-nums; }
.rl-eligible svg { color: var(--r-ok); flex-shrink: 0; }

.rl-people { display: flex; flex-wrap: wrap; gap: 7px; padding: 16px 20px; }
.rl-person {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 4px 11px 4px 4px;
    border: 1px solid var(--r-line);
    border-radius: 100px;
    background: var(--r-surface-2);
    font-size: 0.78125rem;
    color: var(--r-fg-2);
    max-width: 210px;
}
.rl-person span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rl-ava {
    width: 22px; height: 22px; flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
    background: var(--r-surface-3);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.6875rem; font-weight: 700; color: var(--r-fg-3);
}
.rl-ava img { width: 100%; height: 100%; object-fit: cover; }
.rl-ava-lg { width: 44px; height: 44px; font-size: 1rem; }
.rl-people-more { align-self: center; font-size: 0.78125rem; color: var(--r-fg-3); }

/* ============================================================
   Панель запуска
   ============================================================ */
.rl-launch {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    padding: 16px 20px;
    border: 1px solid var(--r-accent-line);
    border-radius: var(--r-r-lg);
    background: var(--r-surface);
}
.rl-launch-info { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.rl-launch-title { font-size: 0.9375rem; font-weight: 600; color: var(--r-fg); }
.rl-launch-summary { font-size: 0.78125rem; line-height: 1.5; color: var(--r-fg-3); }
.rl-launch-summary b { color: var(--r-fg-2); font-weight: 600; }

/* ============================================================
   Сбор ставок
   ============================================================ */
.rl-run-head {
    display: flex; align-items: center; justify-content: space-between;
    gap: 18px; flex-wrap: wrap;
    padding: 16px 20px;
    border-bottom: 1px solid var(--r-line);
}
.rl-run-title { font-size: 0.9375rem; font-weight: 600; }
.rl-run-sub { margin-top: 4px; font-size: 0.78125rem; color: var(--r-fg-3); }
.rl-timer { display: flex; flex-direction: column; gap: 2px; align-items: flex-end; }
.rl-timer-label { font-size: 0.6875rem; letter-spacing: 0.07em; text-transform: uppercase; color: var(--r-fg-3); }
.rl-timer-value { font-family: var(--r-mono); font-size: 1.375rem; font-weight: 700; color: var(--r-fg); font-variant-numeric: tabular-nums; }
.rl-timer-value.warn { color: var(--r-warn); }

.rl-bets { display: flex; flex-direction: column; padding: 8px 20px 16px; max-height: 340px; overflow-y: auto; }
.rl-bet { display: flex; align-items: center; gap: 11px; padding: 9px 0; }
.rl-bet + .rl-bet { border-top: 1px solid var(--r-line); }
.rl-bet-name { flex: 1; min-width: 0; font-size: 0.8125rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rl-bet-amount { display: inline-flex; align-items: center; gap: 5px; font-size: 0.8125rem; font-weight: 700; color: var(--r-gold); font-variant-numeric: tabular-nums; flex-shrink: 0; }
.rl-bet-share { width: 46px; text-align: right; font-size: 0.75rem; color: var(--r-fg-3); font-variant-numeric: tabular-nums; flex-shrink: 0; }

/* ============================================================
   Анимация розыгрыша
   ============================================================ */
.rl-spin { padding: 28px 20px 30px; text-align: center; }
.rl-spin-label { font-size: 0.875rem; font-weight: 600; color: var(--r-fg-2); margin-bottom: 18px; animation: rl-blink 1.4s ease-in-out infinite; }
@keyframes rl-blink { 50% { opacity: 0.45; } }

.rl-slot-track {
    position: relative;
    width: 100%;
    max-width: 840px;
    margin: 0 auto;
    height: 92px;
    overflow: hidden;
    border: 1px solid var(--r-line-2);
    border-radius: var(--r-r);
    background: var(--r-surface-2);
    display: flex;
    align-items: center;
    contain: paint;
}
.rl-slot-items { display: flex; flex-direction: row; white-space: nowrap; will-change: transform; }
.rl-slot-items.spinning { transition: transform 30s cubic-bezier(0.1, 0.9, 0.1, 1); }
/* Ширина элемента ленты жёстко связана с itemWidth в коде страницы (120px) */
.rl-slot-item {
    box-sizing: border-box;
    width: 120px;
    height: 92px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    flex-shrink: 0;
    border-right: 1px solid var(--r-line);
}
.rl-slot-item:last-child { border-right: none; }
.rl-slot-item span { max-width: 104px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.78125rem; font-weight: 600; color: var(--r-fg-2); }

.rl-slot-indicator {
    position: absolute; top: 0; bottom: 0; left: 50%;
    width: 2px;
    transform: translateX(-50%);
    background: var(--r-accent);
    opacity: 0.55;
    pointer-events: none;
    z-index: 10;
}
.rl-slot-indicator::before, .rl-slot-indicator::after {
    content: "";
    position: absolute; left: 50%;
    transform: translateX(-50%);
    width: 0; height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    z-index: 11;
}
.rl-slot-indicator::before { top: 0; border-top: 8px solid var(--r-accent); }
.rl-slot-indicator::after { bottom: 0; border-bottom: 8px solid var(--r-accent); }

/* Аукцион: молоток вместо ленты */
.rl-auction { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: 44px 24px; }
.rl-auction-mark {
    position: relative;
    display: flex; align-items: center; justify-content: center;
    width: 92px; height: 92px;
    border: 1px solid var(--r-accent-line);
    border-radius: 24px;
    background: var(--r-accent-dim);
    color: var(--r-accent-hi);
}
.rl-auction-mark svg { animation: rl-hammer 0.8s ease-in-out infinite; transform-origin: 70% 70%; }
@keyframes rl-hammer {
    0%, 100% { transform: rotate(0deg); }
    30% { transform: rotate(-24deg); }
    60% { transform: rotate(12deg); }
}
.rl-auction-text { font-size: 0.9375rem; font-weight: 600; color: var(--r-fg-2); }

/* ============================================================
   Результат
   ============================================================ */
.rl-result { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 30px 20px 24px; text-align: center; }
.rl-result-label { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; color: var(--r-fg-3); }
.rl-result-winner { display: flex; align-items: center; gap: 13px; }
.rl-result-ava {
    width: 56px; height: 56px; flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid var(--r-accent-line);
    background: var(--r-surface-2);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.25rem; font-weight: 700; color: var(--r-accent-hi);
}
.rl-result-ava img { width: 100%; height: 100%; object-fit: cover; }
.rl-result-who { display: flex; flex-direction: column; gap: 3px; text-align: left; }
.rl-result-name { font-size: 1.125rem; font-weight: 700; letter-spacing: -0.02em; }
.rl-result-twitch { font-size: 0.8125rem; color: var(--r-accent-hi); }

.rl-result-prize {
    display: inline-flex; align-items: center; gap: 11px;
    padding: 9px 15px 9px 9px;
    border: 1px solid var(--r-line);
    border-radius: 100px;
    background: var(--r-surface-2);
}
.rl-result-prize img { width: 54px; height: 38px; object-fit: contain; flex-shrink: 0; }
.rl-result-prize-name { font-size: 0.8125rem; font-weight: 600; color: var(--r-fg-2); }
.rl-result-meta { font-size: 0.78125rem; color: var(--r-fg-3); }
.rl-result-meta b { color: var(--r-fg-2); font-weight: 600; }

.rl-delivery {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
    max-width: 560px;
    padding: 13px 15px;
    border: 1px solid var(--r-line);
    border-radius: var(--r-r);
    background: var(--r-surface-2);
    text-align: left;
}
.rl-delivery-icon { flex-shrink: 0; margin-top: 1px; color: var(--r-fg-3); }
.rl-delivery.ok { border-color: rgba(52, 211, 153, 0.24); background: rgba(52, 211, 153, 0.06); }
.rl-delivery.ok .rl-delivery-icon { color: var(--r-ok); }
.rl-delivery.pending { border-color: rgba(240, 180, 41, 0.24); background: rgba(240, 180, 41, 0.06); }
.rl-delivery.pending .rl-delivery-icon { color: var(--r-warn); }
.rl-delivery.fail { border-color: rgba(248, 113, 113, 0.24); background: rgba(248, 113, 113, 0.06); }
.rl-delivery.fail .rl-delivery-icon { color: var(--r-err); }
.rl-delivery-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.rl-delivery-title { font-size: 0.875rem; font-weight: 600; color: var(--r-fg); }
.rl-delivery-sub { font-size: 0.78125rem; line-height: 1.55; color: var(--r-fg-3); }
.rl-delivery .rl-btn-ghost { margin-top: 6px; align-self: flex-start; }

/* ============================================================
   Сообщения / пустые состояния
   ============================================================ */
.rl-msg { padding: 11px 15px; border-radius: 10px; font-size: 0.8125rem; line-height: 1.5; border: 1px solid transparent; }
.rl-msg.ok { background: rgba(52, 211, 153, 0.08); border-color: rgba(52, 211, 153, 0.22); color: var(--r-ok); }
.rl-msg.warn { background: rgba(240, 180, 41, 0.07); border-color: rgba(240, 180, 41, 0.22); color: var(--r-warn); }
.rl-msg.err { background: rgba(248, 113, 113, 0.08); border-color: rgba(248, 113, 113, 0.22); color: var(--r-err); }

.rl-note {
    padding: 11px 14px;
    border: 1px solid var(--r-line);
    border-radius: 10px;
    background: var(--r-surface-2);
    font-size: 0.78125rem;
    line-height: 1.6;
    color: var(--r-fg-3);
}
.rl-note b { color: var(--r-fg-2); font-weight: 600; }

.rl-empty {
    padding: 34px 24px;
    border: 1px dashed var(--r-line-2);
    border-radius: var(--r-r-lg);
    text-align: center;
}
.rl-empty h3 { font-size: 0.9375rem; font-weight: 600; }
.rl-empty p { margin-top: 6px; font-size: 0.8125rem; line-height: 1.55; color: var(--r-fg-3); }
.rl-empty .rl-btn-ghost, .rl-empty .rl-btn-primary { margin-top: 16px; }
.rl-empty-inline { padding: 26px 20px; text-align: center; font-size: 0.8125rem; color: var(--r-fg-3); }

/* ============================================================
   История
   ============================================================ */
.rl-hist-row {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) 118px 116px;
    align-items: center;
    gap: 16px;
    padding: 13px 20px;
}
.rl-hist-row + .rl-hist-row { border-top: 1px solid var(--r-line); }
.rl-hist-prize { display: flex; align-items: center; gap: 11px; min-width: 0; }
.rl-hist-img {
    display: flex; align-items: center; justify-content: center;
    width: 44px; height: 34px;
    flex-shrink: 0;
    border-radius: 8px;
    background: var(--r-surface-2);
    color: var(--r-fg-3);
    overflow: hidden;
}
.rl-hist-img img { width: 100%; height: 100%; object-fit: contain; }
.rl-hist-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rl-hist-name { display: flex; align-items: center; gap: 7px; font-size: 0.8125rem; font-weight: 600; color: var(--r-fg); min-width: 0; }
.rl-hist-name > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rl-hist-date { font-size: 0.71875rem; color: var(--r-fg-3); font-variant-numeric: tabular-nums; }
.rl-hist-winner { display: flex; align-items: center; gap: 9px; min-width: 0; }
.rl-hist-winner-info { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.rl-hist-winner-name { font-size: 0.8125rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rl-hist-winner-twitch { font-size: 0.71875rem; color: var(--r-fg-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rl-hist-meta { display: flex; align-items: center; gap: 6px; font-size: 0.75rem; color: var(--r-fg-3); justify-content: flex-end; font-variant-numeric: tabular-nums; }
.rl-hist-meta svg { flex-shrink: 0; }

.rl-tag {
    display: inline-flex; align-items: center;
    padding: 2px 8px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--r-fg-2);
    font-size: 0.6875rem; font-weight: 600;
    white-space: nowrap; flex-shrink: 0;
}
.rl-badge {
    display: inline-flex; align-items: center;
    padding: 3px 10px;
    border-radius: 100px;
    font-size: 0.71875rem; font-weight: 600;
    white-space: nowrap;
}
.rl-badge-ok      { background: rgba(52, 211, 153, 0.1);  color: var(--r-ok); }
.rl-badge-pending { background: rgba(240, 180, 41, 0.12); color: var(--r-warn); }
.rl-badge-fail    { background: rgba(248, 113, 113, 0.1); color: var(--r-err); }
.rl-badge-none    { background: rgba(255, 255, 255, 0.05); color: var(--r-fg-3); }

.rl-pager { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 13px 20px; border-top: 1px solid var(--r-line); }
.rl-pager-info { font-size: 0.8125rem; color: var(--r-fg-3); font-variant-numeric: tabular-nums; }

/* ============================================================
   PRO-заглушка
   ============================================================ */
.rl-gate {
    max-width: 560px;
    margin: 56px auto;
    padding: 36px 32px;
    border: 1px solid var(--r-line);
    border-radius: 20px;
    background: var(--r-surface);
    text-align: center;
}
.rl-gate-mark {
    display: inline-flex; align-items: center; justify-content: center;
    width: 52px; height: 52px;
    margin-bottom: 18px;
    border: 1px solid var(--r-accent-line);
    border-radius: 15px;
    background: var(--r-accent-dim);
    color: var(--r-accent-hi);
}
.rl-gate h2 { font-size: 1.25rem; font-weight: 700; }
.rl-gate-desc { margin-top: 10px; font-size: 0.875rem; line-height: 1.6; color: var(--r-fg-2); }
.rl-gate-list { display: grid; gap: 10px; margin: 24px 0 26px; text-align: left; }
.rl-gate-item { display: flex; align-items: flex-start; gap: 10px; font-size: 0.8125rem; color: var(--r-fg-2); }
.rl-gate-item svg { flex-shrink: 0; margin-top: 2px; color: var(--r-ok); }

/* ============================================================
   Адаптив
   ============================================================ */
@media (max-width: 900px) {
    .rl-hist-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); row-gap: 10px; }
    .rl-hist-meta { justify-content: flex-start; }
}
@media (max-width: 720px) {
    .rl-head { align-items: flex-start; }
    .rl-state { width: 100%; justify-content: center; }
    .rl-row { flex-direction: column; align-items: stretch; gap: 12px; }
    .rl-row-ctl { justify-content: space-between; }
    .rl-launch { flex-direction: column; align-items: stretch; }
    .rl-launch .rl-btn-primary { width: 100%; }
    .rl-run-head { align-items: flex-start; }
    .rl-timer { align-items: flex-start; }
    .rl-hist-row { grid-template-columns: minmax(0, 1fr); }
    .rl-result-winner { flex-direction: column; text-align: center; }
    .rl-result-who { text-align: center; align-items: center; }
}
