.wheel-container {
    position: relative;
}

:where(.ui-wheel-of-fortune) {
    --_items: 8;
    all: unset;
    aspect-ratio: 1 / 1;
    container-type: inline-size;
    direction: ltr;
    display: grid;
    position: relative;
    width: 100%;

    &>* {
        position: absolute;
    }

    ul {
        all: unset;
        clip-path: inset(0 0 0 0 round 50%);
        display: grid;
        inset: 0;
        place-content: center start;
        margin-bottom: 0 !important;

        li {
            align-content: center;
            aspect-ratio: 1 / calc(2 * tan(180deg / var(--_items)));
            /* background: hsl(calc(360deg / var(--_items) * calc(var(--_idx))), 100%, 75%); */
            clip-path: polygon(0% 0%, 100% 50%, 0% 100%);
            display: grid;
            font-size: 2rem;
            grid-area: 1 / -1;
            padding-left: 3ch;
            rotate: calc(360deg / var(--_items) * calc(var(--_idx) - 1));
            transform-origin: center right;
            user-select: none;
            width: 50cqi;
            padding: 0;
            justify-content: center;

            font-weight: 400;

            &:nth-of-type(1) {
                --_idx: 1;
                background-color: #8CC63F;

                p {
                    color: white;
                }

            }

            &:nth-of-type(2) {
                --_idx: 2;
                background-color: #f3f9eb;

                p {
                    color: black;
                }
            }

            &:nth-of-type(3) {
                --_idx: 3;
                background-color: #8cc63f;

                p {
                    color: white;
                }
            }

            &:nth-of-type(4) {
                --_idx: 4;
                background-color: #f3f9eb;

                p {
                    color: black;
                }
            }

            &:nth-of-type(5) {
                --_idx: 5;
                background-color: #8cc63f;

                p {
                    color: white;
                }
            }

            &:nth-of-type(6) {
                --_idx: 6;
                background-color: #f3f9eb;

                p {
                    color: black;
                }
            }

            &:nth-of-type(7) {
                --_idx: 7;
            }

            &:nth-of-type(8) {
                --_idx: 8;
            }

            &:nth-of-type(9) {
                --_idx: 9;
            }

            &:nth-of-type(10) {
                --_idx: 10;
            }

            &:nth-of-type(11) {
                --_idx: 11;
            }

            &:nth-of-type(12) {
                --_idx: 12;
            }

            p {
                width: 100px;
                transform: rotate(270deg);
                text-align: center;
                font-size: 2rem;
            }
        }
    }
}

.indicator {
    width: 0;
    height: 0;
    border-left: 30px solid transparent;
    border-right: 35px solid transparent;
    border-bottom: 28px solid rgb(0, 0, 0);
    z-index: 1;
    transform: rotate(158deg);
    top: 48%;
    left: 42%;
}

/* .indicator::before {
    content: "";
    position: absolute;
    top: 5px;
    left: -15px;
    width: 0px;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-bottom: 30px solid crimson;
    z-index: 0;
} */


.ui-wheel-of-fortune {
    width: 55rem;
    transform: rotate(90deg);
    border-radius: 50%;
    /* box-shadow: 16px -19px 4px 1px #d9d9d9b4; */
    box-shadow: rgba(0, 0, 0, 0.25) 20px -18px 55px, rgba(0, 0, 0, 0.12) 20px -10px 30px, rgba(0, 0, 0, 0.12) 8px -10px 6px, rgba(0, 0, 0, 0.17) -7px -3px 13px, rgba(0, 0, 0, 0.09) 0px -3px 5px;
    border: solid 1px #777777;
    /* box-shadow: rgba(0, 0, 0, 0.3) 1px -20px 38px, rgba(0, 0, 0, 0.22) 8px -13px 12px; */
    position: absolute;
    top: 0;
    z-index: -1;
}

.btn-container {
    text-align: center;
    position: absolute;
    top: 43%;
    left: 44.5%;
}

#spin-wheel {
    margin-top: 3rem;
    background: linear-gradient(135deg, #F2F2F2 14.65%, #B3B3B3 85.36%);
    border: solid 10px white;
    border-radius: 50%;
    width: 58px;
    height: 58px;
    box-shadow: 0px 0px 30px 6px #656565;
}

#spin-wheel:active {
    transform: scale(0.9);
}

.wheel-container {
    margin: auto;
    width: fit-content;
}

.prize {
    top: 55%;
    position: absolute;
    z-index: 11;
}

.tries {
    border: 1px solid #8CC63F;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-inline-start: 1rem;
}

.tries img {
    width: 30px;
    height: auto;
}

.spins p {
    margin-bottom: 0;
    color: #181820;
    font-weight: 500;
    font-size: var(--fnt-base-size);
}

.steps {
    background-color: #8CC63F80;
    padding: 28px 46px;
    border-radius: 0.5rem;
}

.steps .step {
    display: flex;
    align-items: center;
    width: fit-content;
}

.steps .step p {
    font-size: var(--fnt-base-size);
    font-weight: 500;
    color: #1E1E1E;
    margin-bottom: 0;
}

.steps .step img {
    width: 30px;
    height: auto;
    margin-inline-end: 1rem;
}

.mobile-number-input label {
    font-size: 18px !important;
    font-weight: 800 !important;
    color: #3B2314 !important;
}

.modal-dialog {
    max-width: 400px !important;
}



.modal-dialog .btn {
    width: 160px;
}

.modal-dialog .btn .home-btn {
    background-color: #E8EAEE;
}

.title,
h2,
.h2,
p,
label {
    text-align: start;
}

.code-container {
    display: flex;
    margin-bottom: 1rem;
}

.code-container input {
    border: 1px solid #8CC63F;
    padding: 1rem;
    background-color: #ececec;
    width: 100%;
    border-start-end-radius: 0;
    border-end-end-radius: 0;
    border-start-start-radius: 0.5rem;
    border-end-start-radius: 0.5rem;
    border: dashed 2px #8CC63F;
}

.code-container #copy-code {
    width: fit-content;
    border-start-start-radius: 0;
    border-end-start-radius: 0;
    border-start-end-radius: 0.5rem;
    border-end-end-radius: 0.5rem;
    border: solid 2px #8CC63F;
}

.code-container #copy-code:hover {
    transform: translateY(0);
}

/* .wheel-border {
    position: relative;
    width: 55rem;
    height: 55rem;
    border: 20px solid #d9a66e;
    border-radius: 50%;
    box-shadow: inset 0 5px 15px rgba(0, 0, 0, 0.3), 0 10px 20px rgba(0, 0, 0, 0.2);
    
} */

.wheel-border {
    position: relative;
    width: 55rem;
    height: 55rem;
    border-radius: 50%;
    background: linear-gradient(0deg, #AE5D23 0.01%, #FFC87F 50.61%, #B1603C 100.01%);
    mask: radial-gradient(circle, transparent calc(50% - 10px), black calc(50% - 9px));
    -webkit-mask: radial-gradient(circle, transparent calc(65% - 10px), black calc(50% - 9px));
}

.inner-shadow {
    box-shadow: inset 0px 0px 10px 15px rgb(0 0 0 / 60%);
    width: 49rem;
    height: 49rem;
    border-radius: 50%;
    position: absolute;
    margin: auto;
    display: block;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}


.light {
    position: absolute;
    top: 19px;
    left: 50%;
    width: 18px;
    height: 18px;
    background: radial-gradient(50% 50% at 50% 50%, #FCEE21 60%, #ffffff 30%);
    background-blend-mode: screen;
    border-radius: 50%;
    transform: translate(-50%, -50%) rotate(var(--rotate));
    transform-origin: center 26.5rem;
    /* Adjusted for the larger circle */
    /* box-shadow: 0 0 15px 5px #ffd700, 0 0 10px #fff; */
}

.light.on {
    background: radial-gradient(34.41% 34.41% at 50% 50%, #fff 0%, #FCEE21 49%, #fff 100%);
    background-blend-mode: screen;
    animation: pulse 1.5s infinite ease-in-out;
}

/* Light Pulse Effect */
@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 0 15px 5px #ffffff, 0 0 10px #fff;
        opacity: 1;
    }

    50% {
        box-shadow: 0 0 25px 10px #ffffff, 0 0 15px #fff;
        opacity: 0.8;
    }
}

.wheel-title {
    text-transform: capitalize;
    font-size: 80px;
    font-weight: 700;
    background: linear-gradient(0deg, #AE5D23 0.01%, #FFC87F 50.61%, #B1603C 100.01%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
}

@media screen and (max-width: 575px) {
    .modal-dialog {
        max-width: 380px !important;
    }

    ul {
        margin-bottom: 0 !important;

        li {
            font-size: 1.2rem;
        }
    }

    .wheel-border {
        width: 42rem !important;
        height: 42rem !important;
    }

    .ui-wheel-of-fortune {
        width: 42rem !important;
    }

    .inner-shadow {
        width: 38rem !important;
        height: 38rem !important;
    }

    .light {
        transform-origin: center 20.5rem;
        top: 15px;
    }

    .wheel-title {
        font-size: 50px;
    }

    .btn-container {
        left: 43%;
        top: 38%;
    }

    .indicator {
        left: 37%;
        top: 47.5%;
    }
}

#confetti {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

@property --k {
    syntax: "<number>";
    initial-value: 0;
    inherits: false;
}

#win-amount p {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 0;
    --k: 0;
    place-self: center;
    background: linear-gradient(90deg, hsl(calc(var(--k)*1turn), 95%, 65%), hsl(calc(var(--k)*1turn + 90deg), 95%, 65%)) text;
    color: transparent;
    font-weight: 900;
    filter: url(#f);
    text-align: center;
    text-transform: uppercase;
    animation: k 4s linear infinite;
}

@keyframes k {
    to {
      --k: 1 ;
    }
  }

[dir="rtl"] body {
    font-family: "ram-ar", system-ui, -apple-system, BlinkMacSystemFont, “Segoe UI”, Roboto, Oxygen-Sans, Ubuntu, Cantarell, “Helvetica Neue”, Arial, sans-serif;
    font-size: var(--fnt-size-1x);
    font-weight: 400;
}