/* ============================================================
   Розыгрыши — /raffle. Приставка rfl-.
   Оформление как у остальных переделанных страниц: карточка на --card-color,
   рамка в 7% белого, акцент --accent, приглушённый текст #8f8f9c.
   Один файл и одна разметка на обе темы: страница отзывчивая.
   ============================================================ */

.rfl-page { color: #fff; font-size: 14px; }

.rfl-hero { margin-bottom: 18px; }
.rfl-hero__title {
    margin: 0 0 8px;
    font-family: Oswald, sans-serif;
    font-size: 28px;
    font-weight: 600;
    letter-spacing: .02em;
    text-transform: uppercase;
    color: #fff;
}
.rfl-hero__desc { color: #8f8f9c; line-height: 1.8; }
.rfl-hero__desc b { color: #fff; }

.rfl-badge { display: inline-block; padding: 2px 10px; border-radius: 10px; font-size: 12px; font-weight: 600; margin-right: 6px; }
.rfl-badge--on { background: rgba(76, 175, 125, .18); color: #4caf7d; }
.rfl-badge--off { background: rgba(143, 143, 156, .2); color: #8f8f9c; }
.rfl-timer { margin-left: 6px; color: #fff; font-weight: 600; font-variant-numeric: tabular-nums; }

.rfl-block {
    background: var(--card-color, #1c1c24);
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 18px;
    padding: 20px;
    margin-bottom: 16px;
}
.rfl-block__title {
    margin: 0 0 6px;
    font-family: Oswald, sans-serif;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: .02em;
    text-transform: uppercase;
}
.rfl-text { line-height: 1.6; overflow-wrap: anywhere; }
.rfl-muted { color: #8f8f9c; font-size: 13px; }
.rfl-empty { color: #8f8f9c; padding: 30px 0; }

.rfl-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.rfl-card {
    display: block;
    padding: 18px;
    border-radius: 18px;
    background: var(--card-color, #1c1c24);
    border: 1px solid rgba(255, 255, 255, .07);
    color: #fff;
    text-decoration: none;
    transition: border-color .15s;
}
.rfl-card:hover { border-color: var(--accent, #4a6cf7); color: #fff; text-decoration: none; }
.rfl-card__title { display: block; font-weight: 600; font-size: 16px; margin-bottom: 6px; }
.rfl-card__meta { color: #8f8f9c; font-size: 13px; }

.rfl-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; margin-top: 12px; }
.rfl-group {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .06);
}
.rfl-group[data-state="ok"] { border-color: rgba(76, 175, 125, .5); }
.rfl-group[data-state="no"] { border-color: rgba(229, 83, 75, .5); }
.rfl-group__img { width: 44px; height: 44px; border-radius: 50%; flex: none; background: #2a2a33; object-fit: cover; }
.rfl-group__body { flex: 1; min-width: 0; }
.rfl-group__name { font-weight: 600; overflow-wrap: anywhere; }
.rfl-group__link { font-size: 12px; color: #8f8f9c; }
.rfl-group__link:hover { color: var(--accent, #4a6cf7); }

.rfl-reqs { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 4px; }
.rfl-req { font-size: 12px; color: #8f8f9c; text-decoration: none; }
.rfl-req::before { content: "○ "; }
.rfl-req:hover { color: var(--accent, #4a6cf7); }
.rfl-req[data-state="ok"] { color: #4caf7d; }
.rfl-req[data-state="ok"]::before { content: "✓ "; }
.rfl-req[data-state="no"] { color: #e5534b; }
.rfl-req[data-state="no"]::before { content: "✕ "; }
.rfl-req--sub { color: #8f8f9c; }
.rfl-group[data-state="ok"] .rfl-req--sub { color: #4caf7d; }
.rfl-group[data-state="ok"] .rfl-req--sub::before { content: "✓ "; }
.rfl-group[data-state="no"] .rfl-req--sub { color: #e5534b; }
.rfl-group[data-state="no"] .rfl-req--sub::before { content: "✕ "; }
.rfl-group[data-state="manual"] .rfl-req--sub::after { content: " — проверяет админ"; }
.rfl-req[data-state="closed"], .rfl-req[data-state="private"] { color: #e5a34b; }
.rfl-req[data-state="private"]::before { content: "! "; }
.rfl-req[data-state="private"]::after { content: " — откройте профиль ВК"; }
.rfl-req[data-state="closed"]::before { content: "! "; }
.rfl-req[data-state="closed"]::after { content: " — откройте страницу для всех"; }

.rfl-mark { display: none; flex: none; min-width: 24px; text-align: center; font-weight: 700; }
.rfl-group[data-state="ok"] .rfl-mark { color: #4caf7d; }
.rfl-group[data-state="ok"] .rfl-mark::before { content: "✓"; }
.rfl-group[data-state="no"] .rfl-mark { color: #e5534b; }
.rfl-group[data-state="no"] .rfl-mark::before { content: "✕"; }
.rfl-group[data-state="manual"] .rfl-mark { color: #8f8f9c; font-size: 11px; font-weight: 500; }
.rfl-group[data-state="manual"] .rfl-mark::before { content: "проверяет админ"; }

.rfl-action { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.rfl-note { line-height: 1.5; }
.rfl-note--bad { color: #e5534b; }
.rfl-number { font-family: Oswald, sans-serif; font-size: 26px; font-weight: 600; color: #4caf7d; }
.rfl-btn {
    display: inline-block;
    padding: 12px 26px;
    border: 0;
    border-radius: 12px;
    background: var(--accent, #4a6cf7);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}
.rfl-btn:hover { filter: brightness(1.1); color: #fff; text-decoration: none; }
.rfl-btn[disabled] { opacity: .55; cursor: wait; }
.rfl-result { min-height: 20px; line-height: 1.5; }
.rfl-result--ok { color: #4caf7d; }
.rfl-result--bad { color: #e5534b; }

.rfl-btn--ghost { background: transparent; border: 1px solid rgba(255, 255, 255, .25); }
.rfl-note--win { color: #f5c542; font-weight: 600; margin-bottom: 12px; }

.rfl-winners { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; margin: 14px 0; }
.rfl-winner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    padding: 16px 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .07);
}
.rfl-winner--me { border-color: #f5c542; background: rgba(245, 197, 66, .08); }
.rfl-winner__place { font-family: Oswald, sans-serif; color: #f5c542; font-size: 18px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.rfl-winner__prize { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.rfl-winner__img { display: block; width: 72px; height: 72px; }
.rfl-winner__prize-title { font-weight: 600; overflow-wrap: anywhere; }
.rfl-winner__who { display: flex; flex-direction: column; align-items: center; gap: 4px; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, .08); width: 100%; }
.rfl-winner__ava { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; background: #2a2a33; border: 2px solid #f5c542; }
.rfl-winner__nick { font-weight: 600; overflow-wrap: anywhere; }
.rfl-winner__num { color: #8f8f9c; font-size: 13px; }
#rfl_roulette { margin-top: 14px; }

.rfl-proof { margin-top: 14px; color: #8f8f9c; font-size: 13px; line-height: 1.6; }
.rfl-proof summary { cursor: pointer; color: #fff; }
.rfl-proof code { color: inherit; overflow-wrap: anywhere; }

/* участники */
.rfl-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; margin-top: 12px; }
.rfl-person { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 14px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .07); min-width: 0; }
.rfl-person--me { border-color: #f5c542; background: rgba(245, 197, 66, .08); }
.rfl-person__ava { flex: none; width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: #2a2a33; }
.rfl-person__nick { flex: 1; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rfl-person__num { flex: none; color: #8f8f9c; font-size: 13px; }
.rfl-person { color: inherit; text-decoration: none; transition: background .15s, border-color .15s; }
.rfl-person:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .18); }
.rfl-person--off { opacity: .5; }
.rfl-person--off .rfl-person__ava { filter: grayscale(1); }
.rfl-people__more { margin-top: 10px; }

.rfl-back { display: inline-block; margin-top: 4px; color: #8f8f9c; }

@media (max-width: 575px) {
    .rfl-hero__title { font-size: 22px; }
    .rfl-block { padding: 16px; border-radius: 14px; }
    .rfl-btn { width: 100%; text-align: center; }
}
