input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
input[type=number] {
    -moz-appearance: textfield;
}


: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%;
    margin-bottom: 2rem;
    border: 8px solid #950F1C;
    border-radius: 50%;
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.4);

    &::after {
        aspect-ratio: 1/cos(45deg);
        background-color: #8E0917;
        clip-path: polygon(50% 100%, 100% 0, 0 0);
        content: "";
        height: 4cqi;
        position: absolute;
        place-self: start center;
        scale: 1.4;
    }

    & > * {
        position: absolute;
    }

    button {
        aspect-ratio: 1 / 1;
        background: #87c38f;
        border: 0;
        border-radius: 50%;
        cursor: pointer;
        font-size: 5cqi;
        place-self: center;
        width: 15cqi;
    }

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

        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: 4.5cqi;
            grid-area: 1 / -1;
            padding-left: 1.5ch;
            rotate: calc(360deg / var(--_items) * calc(var(--_idx) - 1));
            transform-origin: center right;
            user-select: none;
            width: 50cqi;
            /*direction: rtl;*/

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

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

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

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

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

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

            &: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;
            }
        }
        li:nth-child(odd) {
            background: #87C38F;
        }
        li:nth-child(even) {
            background: #568D66;
        }
    }
}

* {
    box-sizing: border-box;
}

html, body {
    font-family: system-ui, sans-serif;
    background: linear-gradient(135deg, #26413E 0%, #3D7871 50%, #27413E 100%);
    height: 100%;
    padding: 0;
    margin: 0;
    background-repeat: no-repeat;
    background-attachment: fixed; /* مهم */
    background-size: cover;
}

.center-circle {
    font-size: 10px;
    border: 3px solid #A9202B;
    font-weight: bold;
}

.wheel-container {
    width: 100%;
    max-width: 330px;
    margin: auto;
    position: absolute;
    margin-left: calc(50% - 214px);
}

.main {
    padding: 1.5rem 2rem;
}

.wheel-title {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 800;
    color: #87c38f;
}

.spin-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.5);
}

.spin-button {
    background: linear-gradient(150deg, #8E0917 0%, #ac2d3b 100%);
    color: #c3dfcb;
    font-size: 1.5rem;
    font-weight: 700;
    padding: 0.5rem 3rem;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.4);
    font-family: 'IRANSansX', sans-serif;
}

.wheel-header {
    margin-bottom: 1rem;
}

.wheel-footer {
    text-align: center;
    position: relative;
    top: 440px;
}

.tagline {
    font-size: 1.1rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1rem;
    text-align: center;
}

.logo {
    margin: auto;
    background-color: #a5dbac;
    padding: 10px;
    border-radius: 27px;
}

.logo-box {
    text-align: center;
    margin-bottom: 10px;
}

#viewGift {
    font-size: 20px;
    color: #ffd54a;
    text-align: justify;
}
.anar{
    position: absolute;
}