/* Рулетка розыгрыша (rr-). Одна на админку и страницу игроков, цвета заданы здесь, чтобы не зависеть от темы. */

.rr { background: #14141b; border: 1px solid rgba(255, 255, 255, .08); border-radius: 18px; padding: 20px; color: #fff; }

.rr__title {
    font-family: Oswald, sans-serif;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: .02em;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 14px;
}

.rr__view {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    background: #0d0d12;
    border: 1px solid rgba(255, 255, 255, .06);
    padding: 14px 0;
}
.rr__view::before, .rr__view::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 22%;
    z-index: 2;
    pointer-events: none;
}
.rr__view::before { left: 0; background: linear-gradient(90deg, #0d0d12, rgba(13, 13, 18, 0)); }
.rr__view::after { right: 0; background: linear-gradient(-90deg, #0d0d12, rgba(13, 13, 18, 0)); }

.rr__marker {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 3px;
    margin-left: -1.5px;
    background: #f5c542;
    box-shadow: 0 0 14px rgba(245, 197, 66, .8);
    z-index: 3;
}

.rr__strip { display: flex; gap: 8px; will-change: transform; }

/* карточка участника на ленте: аватар, ник, номер */
.rr__item {
    flex: none;
    width: 120px;
    padding: 10px 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    border-radius: 12px;
    background: #1d1d27;
    border: 1px solid rgba(255, 255, 255, .07);
    color: #c9c9d4;
}
.rr__ava { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; background: #2a2a33; }
.rr__nick { max-width: 100%; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rr__num { font-family: Oswald, sans-serif; font-size: 13px; color: #8f8f9c; }
.rr__item--win { background: #3a2f0d; border-color: #f5c542; color: #f5c542; box-shadow: 0 0 22px rgba(245, 197, 66, .5); }
.rr__item--win .rr__num { color: #f5c542; }

/* итог места: заголовок, приз, под ним победитель */
.rr__results { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin-top: 16px; }
.rr-result {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    padding: 16px 14px;
    border-radius: 16px;
    background: rgba(245, 197, 66, .08);
    border: 1px solid rgba(245, 197, 66, .4);
    animation: rr-pop .45s ease-out;
}
.rr-result__place { font-family: Oswald, sans-serif; color: #f5c542; font-size: 18px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.rr-result__prize { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.rr-result__img { display: block; width: 72px; height: 72px; }
.rr-result__prize-title { font-weight: 600; overflow-wrap: anywhere; }
.rr-result__who { display: flex; flex-direction: column; align-items: center; gap: 4px; padding-top: 10px; border-top: 1px solid rgba(245, 197, 66, .25); width: 100%; }
.rr-result__ava { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; background: #2a2a33; border: 2px solid #f5c542; }
.rr-result__nick { font-weight: 600; overflow-wrap: anywhere; }
.rr-result__num { color: #8f8f9c; font-size: 13px; }

.rr__controls { text-align: center; margin-top: 14px; }
.rr__btn { padding: 8px 18px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .2); background: transparent; color: #fff; cursor: pointer; }
.rr__btn:hover { background: rgba(255, 255, 255, .08); }

@keyframes rr-pop { from { transform: scale(.85); opacity: 0; } to { transform: scale(1); opacity: 1; } }

@media (prefers-reduced-motion: reduce) { .rr-result { animation: none; } }

@media (max-width: 575px) {
    .rr { padding: 14px; }
    .rr__item { width: 96px; padding: 8px 4px; }
    .rr__ava { width: 44px; height: 44px; }
    .rr__nick { font-size: 12px; }
}
