/*
|--------------------------------------------------------------------------
| WHEEL OVERLAY
|--------------------------------------------------------------------------
*/

.wheel-overlay {

    position: fixed;

    inset: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    background:
        rgba(0,0,0,0.82);

    backdrop-filter:
        blur(14px);

    z-index: 999999999;

    opacity: 0;

    visibility: hidden;

    transition:
        0.25s ease;
}

.wheel-overlay.show {

    opacity: 1;

    visibility: visible;
}

/*
|--------------------------------------------------------------------------
| MODAL
|--------------------------------------------------------------------------
*/

.wheel-modal {

    position: relative;

    width: 100%;

    max-width: 760px;

    padding:
        42px
        24px
        32px;

    border-radius: 34px;

    background:
        linear-gradient(
            135deg,
            rgba(16,16,16,0.98),
            rgba(8,8,8,0.98)
        );

    border:
        1px solid rgba(255,255,255,0.05);

    box-shadow:
        0 0 100px rgba(255,52,52,0.12);

    overflow: visible;
}

/*
|--------------------------------------------------------------------------
| HEADER
|--------------------------------------------------------------------------
*/

.wheel-header {

    text-align: center;

    margin-bottom: 30px;
}

.wheel-title {

    color: #FFFFFF;

    font-size: 42px;

    font-weight: 900;
}

.wheel-subtitle {

    margin-top: 8px;

    color:
        rgba(255,255,255,0.45);

    font-size: 13px;

    font-weight: 700;

    letter-spacing: 2px;
}

/*
|--------------------------------------------------------------------------
| WRAPPER
|--------------------------------------------------------------------------
*/

.wheel-wrapper {

    position: relative;

    width: 520px;
    height: 520px;

    margin:
        0 auto;
}

/*
|--------------------------------------------------------------------------
| POINTER
|--------------------------------------------------------------------------
*/

.wheel-pointer {

    position: absolute;

    top: -10px;
    left: 50%;

    transform:
        translateX(-50%);

    width: 0;
    height: 0;

    border-left: 24px solid transparent;
    border-right: 24px solid transparent;
    border-top: 44px solid #FF3434;

    z-index: 5;

    filter:
        drop-shadow(
            0 0 18px rgba(255,52,52,0.45)
        );
}

/*
|--------------------------------------------------------------------------
| WHEEL
|--------------------------------------------------------------------------
*/

.wheel {

    position: relative;

    width: 100%;
    height: 100%;

    border-radius: 50%;

    isolation: isolate;

    overflow: hidden;

    background:
        conic-gradient(
            from -18deg,
            #FF2A2A 0deg 36deg,
            #050505 36deg 72deg,
            #FF2A2A 72deg 108deg,
            #050505 108deg 144deg,
            #FF2A2A 144deg 180deg,
            #050505 180deg 216deg,
            #FF2A2A 216deg 252deg,
            #050505 252deg 288deg,
            #FF2A2A 288deg 324deg,
            #050505 324deg 360deg
        );

    transform: translateZ(0);

    outline:
        10px solid rgba(255,255,255,0.05);

    box-shadow:
        0 0 80px rgba(255,52,52,0.16);

    transition:
        transform 6s cubic-bezier(
            0.08,
            0.9,
            0.2,
            1
        );
}

/*
|--------------------------------------------------------------------------
| SECTORS
|--------------------------------------------------------------------------
*/

.wheel-sector-inner {

    position: absolute;

    width: 110px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    gap: 5px;

    transform-origin: center center;

    text-align: center;

    color: #FFFFFF;

    font-weight: 900;

    pointer-events: none;

    z-index: 10;
}

.wheel-sector-inner i {

    font-size: 22px;

    filter:
        drop-shadow(
            0 0 10px rgba(255,255,255,0.5)
        );
}

.wheel-sector-inner span {

    font-size: 14px;

    line-height: 1;

    white-space: nowrap;

    max-width: 120px;

    white-space: normal;

    word-break: break-word;

    overflow-wrap: break-word;

    hyphens: auto;

    line-height: 1.1;

    text-shadow:
        0 0 12px rgba(0,0,0,0.8);
}

/*
|--------------------------------------------------------------------------
| BUTTON
|--------------------------------------------------------------------------
*/

.wheel-spin-button {

    width: 100%;

    max-width: 320px;

    height: 64px;

    display: flex;

    align-items: center;
    justify-content: center;

    margin:
        40px auto 0;

    border: none;

    border-radius: 22px;

    background:
        linear-gradient(
            180deg,
            #FF3434,
            #A40000
        );

    color: #FFFFFF;

    font-size: 22px;

    font-weight: 900;

    cursor: pointer;

    transition:
        0.2s ease;

    box-shadow:
        0 0 40px rgba(255,52,52,0.25);
}

.wheel-spin-button:hover {

    transform:
        translateY(-2px);

    box-shadow:
        0 0 50px rgba(255,52,52,0.4);
}

/*
|--------------------------------------------------------------------------
| CLOSE
|--------------------------------------------------------------------------
*/

.wheel-close {

    position: absolute;

    top: 18px;
    right: 18px;

    width: 42px;
    height: 42px;

    border: none;

    border-radius: 14px;

    background:
        rgba(255,255,255,0.05);

    color: #FFFFFF;

    font-size: 18px;

    cursor: pointer;
}

/*
|--------------------------------------------------------------------------
| MOBILE
|--------------------------------------------------------------------------
*/

@media (max-width: 768px) {

    .wheel-overlay {

        padding:
            16px;

        align-items:
            flex-start;

        overflow-y:
            auto;
    }

    .wheel-modal {

        width: 100%;

        max-width: 100%;

        margin:
            20px 0;

        padding:
            24px 14px 20px;

        border-radius: 24px;
    }

    .wheel-close {

        width: 38px;
        height: 38px;

        top: 12px;
        right: 12px;

        border-radius: 12px;
    }

    .wheel-title {

        font-size: 24px;
    }

    .wheel-subtitle {

        font-size: 11px;

        letter-spacing: 1px;
    }

    .wheel-spins-box {

        height: 36px;

        font-size: 12px;

        padding:
            0 14px;
    }

    .wheel-wrapper {

        width: min(82vw, 340px);
        height: min(82vw, 340px);
    }

    .wheel-pointer {

        border-left:
            18px solid transparent;

        border-right:
            18px solid transparent;

        border-top:
            34px solid #FF3434;
    }

    .wheel-sector-inner {

        width: 82px;

        gap: 2px;
    }

    .wheel-sector-inner i {

        font-size: 15px;
    }

    .wheel-sector-inner span {

        font-size: 10px;

        line-height: 1.15;

        font-weight: 900;
    }

    .wheel-spin-button {

        height: 54px;

        margin-top: 24px;

        font-size: 16px;

        border-radius: 16px;
    }

    .wheel-reward-screen {

        min-height: auto;

        padding:
            30px 0;
    }

    .wheel-reward-icon {

        width: 90px;
        height: 90px;

        font-size: 42px;

        margin-bottom: 16px;
    }

    .wheel-reward-title {

        font-size: 28px;
    }

    .wheel-reward-name {

        font-size: 18px;

        margin-top: 12px;
    }

    .wheel-reward-amount {

        font-size: 32px;
    }

    .wheel-claim-button {

        width: 100%;

        max-width: 280px;

        height: 56px;

        font-size: 16px;

        border-radius: 16px;
    }
}

@media (max-width: 430px) {

    .wheel-wrapper {

        width: 300px;
        height: 300px;
    }

    .wheel-sector-inner {

        width: 72px;
    }

    .wheel-sector-inner i {

        font-size: 13px;
    }

    .wheel-sector-inner span {

        font-size: 9px;

        line-height: 1.15;
    }

    .wheel-title {

        font-size: 22px;
    }

    .wheel-reward-amount {

        font-size: 28px;
    }
}

/*
|--------------------------------------------------------------------------
| REWARD SCREEN
|--------------------------------------------------------------------------
*/

.wheel-reward-screen {

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    min-height: 620px;

    text-align: center;

    position: relative;
    z-index: 50;
}

.wheel-reward-icon {

    width: 140px;
    height: 140px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(255,52,52,0.3),
            transparent
        );

    color: #FFFFFF;

    font-size: 64px;

    margin-bottom: 28px;

    box-shadow:
        0 0 80px rgba(255,52,52,0.3);
}

.wheel-reward-title {

    color: #FFFFFF;

    font-size: 42px;

    font-weight: 900;
}

.wheel-reward-name {

    margin-top: 18px;

    color: rgba(255,255,255,0.8);

    font-size: 22px;

    font-weight: 700;
}

.wheel-reward-amount {

    margin-top: 12px;

    color: #FF3434;

    font-size: 54px;

    font-weight: 900;
}

.wheel-claim-button {

    width: 320px;
    height: 68px;

    margin-top: 42px;

    border: none;

    border-radius: 22px;

    background:
        linear-gradient(
            180deg,
            #FF3434,
            #980000
        );

    color: #FFFFFF;

    font-size: 18px;

    font-weight: 900;

    cursor: pointer;

    box-shadow:
        0 0 50px rgba(255,52,52,0.3);
}

/*
|--------------------------------------------------------------------------
| SPINS BOX
|--------------------------------------------------------------------------
*/

.wheel-spins-box {

    width: fit-content;

    height: 42px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    margin:
        18px auto 0;

    padding:
        0 18px;

    border-radius: 14px;

    background:
        rgba(255,255,255,0.04);

    border:
        1px solid rgba(255,255,255,0.05);

    color:
        rgba(255,255,255,0.7);

    font-size: 14px;

    font-weight: 800;
}

.wheel-spins-box span {

    color: #FF3434;

    font-size: 16px;

    font-weight: 900;
}