:root {
    --rrb-bg-modal: rgb(247, 246, 252);
    --rrb-gold-title: linear-gradient(
            90deg,
            #ffd86b 0%,
            #ffbf3f 100%,
            #fff0a6 100%
    );
}

body.dark-theme {
    --rrb-bg-modal: radial-gradient(circle at top left,
    rgba(180, 126, 255, 0.22),
    transparent 40%),
    radial-gradient(circle at bottom right,
            rgba(255, 208, 92, 0.14),
            transparent 35%),
    linear-gradient(
            135deg,
            #12081f 0%,
            #1b0f2f 45%,
            #14091f 100%
    );
    --rrb-gold-title: linear-gradient(
            90deg,
            #ffd86b 0%,
            #ffbf3f 45%,
            #fff0a6 100%
    );
}

.rg_bonus_reward__wrapper {
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    place-items: center;
    position: fixed;
    opacity: 1;
    z-index: 102;
    transition: 0.3s ease-in-out all;
    display: none;
    color: var(--main-text-color);
}

.rg_bonus_reward__wrapper.active {
    display: grid;
}

.rg_bonus_reward {
    position: relative;
    width: 95%;
    max-width: 980px;
    border-radius: 34px;
    overflow: hidden;
    background: var(--rrb-bg-modal);
    border: 1px solid rgba(176, 123, 255, 0.35);
    box-shadow: 0 0 80px rgba(137, 92, 255, 0.22),
    0 20px 60px rgba(0, 0, 0, 0.65);
}

.rg_bonus_reward::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
            90deg,
            transparent,
            rgba(255, 255, 255, 0.03),
            transparent
    );
    pointer-events: none;
}

.rg_bonus_reward__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 55px 60px;
}

.rg_bonus_reward__image {
    position: relative;
    width: 42%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rg_bonus_reward__image::before {
    content: "";
    position: absolute;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: radial-gradient(
            circle,
            rgba(255, 201, 87, 0.25),
            transparent 70%
    );
    filter: blur(10px);
}

.rg_bonus_reward__image img {
    position: relative;
    width: 100%;
    max-width: 360px;
    object-fit: contain;
    z-index: 2;
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-12px);
    }

    100% {
        transform: translateY(0px);
    }
}

.rg_bonus_reward__info {
    width: 58%;
    color: white;
}

.rg_bonus_reward__info h2 {
    font-size: 55px;
    line-height: 1.02;
    font-weight: 800;
    letter-spacing: -2px;
    color: var(--main-text-color);
}

.rg_bonus_reward__info h2 span {
    display: inline-block;
    margin-top: 12px;
    background: var(--rrb-gold-title);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.rg_bonus_reward__info p {
    margin-top: 28px;
    font-size: 22px;
    line-height: 1.45;
    max-width: 520px;
    color: var(--main-text-color);
}

.rg_bonus_reward__info p strong {
    color: #ffd45d;
    font-weight: 800;
}

.rg_bonus_reward__btn {
    width: 100%;
    max-width: 320px;
    margin-top: 25px;
    height: 76px;
    padding: 0 52px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(
            180deg,
            #d9ff00 0%,
            #b6df00 100%
    );
    color: #111;
    font-size: 20px;
    font-weight: 800;
    cursor: pointer;
    transition: 0.25s ease;
    box-shadow: 0 10px 35px rgba(187, 255, 0, 0.32);
}

.rg_bonus_reward__btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 16px 40px rgba(187, 255, 0, 0.45);
}

.rg_bonus_reward__close--btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 1px solid var(--main-text-color);
    background: rgba(255, 255, 255, 0.04);
    color: var(--main-text-color);
    font-size: 34px;
    cursor: pointer;
    transition: 0.2s ease;
    z-index: 10;
}

.rg_bonus_reward__close--btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}

.coins {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.coin {
    position: absolute;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: radial-gradient(circle, #ffe38a, #d49c00);
    box-shadow: 0 0 14px rgba(255, 215, 0, .7);
    animation: blink 2s infinite alternate;
}

.coin:nth-child(1) {
    top: 18%;
    left: 38%;
}

.coin:nth-child(2) {
    top: 72%;
    left: 44%;
}

.coin:nth-child(3) {
    top: 32%;
    left: 48%;
}

.coin:nth-child(4) {
    top: 62%;
    left: 18%;
}

@keyframes blink {
    from {
        opacity: .3;
        transform: scale(.8);
    }

    to {
        opacity: 1;
        transform: scale(1.2);
    }
}

@media (max-width: 900px) {
    .rg_bonus_reward__content {
        flex-direction: column;
        text-align: center;
        padding: 25px;
    }

    .rg_bonus_reward__image,
    .rg_bonus_reward__info {
        width: 100%;
    }

    .rg_bonus_reward__info h2 {
        font-size: 36px;
    }

    .rg_bonus_reward__info p {
        font-size: 16px;
        margin-left: auto;
        margin-right: auto;
    }

    .rg_bonus_reward__btn {
        font-size: 18px;
        height: 65px;
    }
}

@media (max-width: 520px) {
    .rg_bonus_reward__content {
        padding: 15px 10px;
    }

    .rg_bonus_reward__info h2 {
        font-size: 24px;
    }

    .rg_bonus_reward__info p {
        font-size: 16px;
    }

    .rg_bonus_reward__btn {
        height: 50px;
        font-size: 16px;
        margin-top: 15px;
    }

    .rg_bonus_reward__close--btn {
        top: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 24px;
    }
}
