/**
 * Колесо Фортуны — Стили
 * LR Web Neo 3.5 | module_wheel
 * Black minimal
 */

.wf-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
}
.wf-overlay.wf-open {
    opacity: 1;
    pointer-events: all;
}

.wf-modal {
    background: rgba(14, 14, 14, .92);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 20px;
    padding: 30px 26px 26px;
    width: min(370px, 94vw);
    max-height: 92vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, .08) transparent;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .6);
    transform: translateY(20px) scale(.97);
    opacity: 0;
    transition: transform .35s cubic-bezier(.22, 1, .36, 1), opacity .3s ease;
}
.wf-overlay.wf-open .wf-modal {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.wf-close {
    position: absolute;
    top: 14px; right: 16px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, .08);
    color: rgba(255, 255, 255, .3);
    font-size: 18px;
    width: 30px; height: 30px;
    border-radius: 8px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: border-color .2s, color .2s;
}
.wf-close:hover {
    border-color: rgba(255, 255, 255, .25);
    color: rgba(255, 255, 255, .6);
}

.wf-title {
    font-size: 17px;
    font-weight: 700;
    text-align: center;
    color: #fff;
    letter-spacing: 1.5px;
    margin: 0 0 6px;
    text-transform: uppercase;
}
.wf-subtitle {
    font-size: 11.5px;
    text-align: center;
    color: rgba(255, 255, 255, .3);
    line-height: 1.7;
    margin: 0 0 22px;
}
.wf-subtitle strong {
    color: rgba(255, 255, 255, .5);
    font-weight: 500;
}

.wf-wheel-wrap {
    position: relative;
    width: 300px; height: 300px;
    margin: 0 auto 22px;
    user-select: none;
}
.wf-wheel-wrap canvas {
    border-radius: 50%;
    display: block;
    filter: drop-shadow(0 6px 20px rgba(0, 0, 0, .5));
}
.wf-pointer {
    position: absolute;
    top: -14px; left: 50%;
    transform: translateX(-50%);
    font-size: 24px;
    color: #e74c3c;
    z-index: 2;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .6));
    line-height: 1;
}
.wf-hub {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 22px; height: 22px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #333, #0a0a0a);
    border: 2px solid rgba(255, 255, 255, .1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, .5);
    z-index: 3;
}

.wf-result {
    border-radius: 12px;
    padding: 12px 16px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 14px;
    line-height: 1.5;
    animation: wf-fade .3s ease;
}
@keyframes wf-fade {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}
.wf-result small { font-weight: 400; font-size: 12px; opacity: .7; }
.wf-result--win {
    background: rgba(46, 213, 115, .08);
    border: 1px solid rgba(46, 213, 115, .15);
    color: #2ed573;
}
.wf-result--error {
    background: rgba(255, 71, 87, .08);
    border: 1px solid rgba(255, 71, 87, .15);
    color: #ff4757;
}

.wf-spin-btn {
    display: block;
    width: 100%;
    padding: 14px;
    background: #e74c3c;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: background .2s, transform .15s, box-shadow .2s;
    box-shadow: 0 4px 16px rgba(231, 76, 60, .3);
}
.wf-spin-btn:hover:not(:disabled) {
    background: #c0392b;
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(231, 76, 60, .35);
}
.wf-spin-btn:active:not(:disabled) {
    transform: translateY(0);
}
.wf-spin-btn:disabled, .wf-spin-btn--used {
    background: rgba(255, 255, 255, .04) !important;
    box-shadow: none !important;
    color: rgba(255, 255, 255, .18) !important;
    cursor: not-allowed;
    transform: none !important;
    border: 1px solid rgba(255, 255, 255, .04);
}

.wf-history-btn {
    display: block;
    width: 100%;
    margin-top: 10px;
    padding: 9px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, .06);
    color: rgba(255, 255, 255, .25);
    font-size: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color .2s, color .2s;
}
.wf-history-btn:hover {
    border-color: rgba(255, 255, 255, .15);
    color: rgba(255, 255, 255, .5);
}

.wf-history-wrap {
    margin-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, .04);
    padding-top: 10px;
    animation: wf-fade .25s ease;
}
.wf-history-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 4px;
    border-bottom: 1px solid rgba(255, 255, 255, .03);
    font-size: 12px;
}
.wf-history-row:hover { background: rgba(255, 255, 255, .02); border-radius: 4px; }
.wf-history-prize { flex: 1; color: rgba(255, 255, 255, .55); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wf-history-date { color: rgba(255, 255, 255, .12); font-size: 11px; white-space: nowrap; }

.wf-badge {
    display: inline-block; padding: 2px 8px;
    border-radius: 20px; font-size: 10px; font-weight: 600;
    text-transform: uppercase; letter-spacing: .3px; white-space: nowrap;
}
.wf-badge.rubles { background: rgba(46, 213, 115, .08); color: rgba(46, 213, 115, .7); }

.wf-sidebar-tab {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 14px; border-radius: 8px;
    cursor: pointer; font-size: 14px; color: rgba(255, 255, 255, .45);
    transition: background .15s, color .15s; text-decoration: none;
}
.wf-sidebar-tab:hover { background: rgba(255, 255, 255, .04); color: rgba(255, 255, 255, .7); }
.wf-sidebar-tab.active { background: rgba(231, 76, 60, .08); color: #e74c3c; }
.wf-sidebar-tab .wf-tab-icon { font-size: 16px; min-width: 20px; text-align: center; }

.wf-modal::-webkit-scrollbar { width: 3px; }
.wf-modal::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .06); border-radius: 3px; }

@media (max-width: 380px) {
    .wf-modal { padding: 22px 16px 18px; }
    .wf-wheel-wrap { width: 260px; height: 260px; }
    .wf-wheel-wrap canvas { width: 260px !important; height: 260px !important; }
}
