.wheel-wrapper {
    position: relative;
    transform-origin: center center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: fit-content;
}

.wheel-container {
    position: relative;
    aspect-ratio: 1 / 1;
    width: 880px;
    transition: opacity 0.3s ease;
    z-index: 1;
    color: #281A03;
    pointer-events: auto;
}

.wheel__frame {
    position: absolute;
    top: 0;
    aspect-ratio: 1 / 1;
    width: 880px;
    z-index: 3;
}

.wheel {
    position: absolute;
    bottom: 0;
    aspect-ratio: 1 / 1;
    width: 880px;
    z-index: 2;
}

.wheel__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.wheel__text-wrapper {
    position: absolute;
    aspect-ratio: 1 / 1;
    width: 640px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: "Oswald", sans-serif;
    font-optical-sizing: auto;
    font-weight: 700;
    font-style: normal;
    font-size: 36px;
}

.wheel__text-container {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 100%;
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: space-between;
}

.wheel__text-container > .wheel__text-block:nth-child(1) {
    padding-left: 13%;
}

.wheel__text-container > .wheel__text-block:nth-child(2) {
    padding-right: 13%;
}

.wheel__text-container:nth-child(1) {
    transform: translateX(-50%) translateY(-50%) rotate(-90deg);
    color: #66205A !important;
}

.wheel__text-container:nth-child(1) > .wheel__text-block:nth-child(2) {
    transform: rotate(180deg);
    padding-left: 13% !important;
    padding-right: 0 !important;
}

.wheel__text-container:nth-child(2) > .wheel__text-block:nth-child(2) {
    transform: rotate(180deg);
    padding-left: 13% !important;
    padding-right: 0 !important;
}

.wheel__text-container:nth-child(3) > .wheel__text-block:nth-child(2) {
    transform: rotate(180deg);
    padding-left: 13% !important;
    padding-right: 0 !important;
}

.wheel__text-container:nth-child(4) > .wheel__text-block:nth-child(2) {
    transform: rotate(180deg);
    padding-left: 13% !important;
    padding-right: 0 !important;
}

.wheel__text-container:nth-child(2) {
    transform: translateX(-50%) translateY(-50%) rotate(-135deg);
    color: #FFFFFF;
}

.wheel__text-container:nth-child(3) {
    transform: translateX(-50%) translateY(-50%) rotate(-180deg);
    color: #66205A !important;
}

.wheel__text-container:nth-child(4) {
    transform: translateX(-50%) translateY(-50%) rotate(-225deg);
    color: #FFFFFF;
}

.wheel__text-block {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.wheel__btn {
    aspect-ratio: 880 /140;
    top: -10%;
    z-index: 6;
    cursor: pointer;
    background: image-set(
            url('../img/wheel/wheel_btn_red@1x.webp') 1x,
            url('../img/wheel/wheel_btn_red@2x.webp') 2x
    ) no-repeat center center;
    background-size: contain;
    color: #fff;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.wheel__btn:hover {
    background: image-set(
            url('../img/wheel/wheel_btn_green@1x.webp') 1x,
            url('../img/wheel/wheel_btn_green@2x.webp') 2x
    ) no-repeat center center;
    background-size: contain;
}

.wheel__sway {
    -webkit-animation: 2s sway ease-in-out infinite;
    animation: 2s sway ease-in-out infinite;
}

.wheel__btn-pulse {
    -webkit-animation: 1.5s pulse ease-in-out infinite;
    animation: 1.5s pulse ease-in-out infinite;
    transform-origin: center center;
}

.wheel__spin-first {
    -webkit-animation: 3s spin-first ease-in-out forwards;
    animation: 3s spin-first ease-in-out forwards
}

.wheel__spin-second {
    -webkit-animation: 3s spin-second ease-in-out forwards;
    animation: 3s spin-second ease-in-out forwards
}

@media (orientation: portrait) and (min-width: 0px) {
    .wheel__btn {
        top: 0;
        font-size: clamp(12px, 4.2vw, 48px);
        padding-bottom: 4px;
    }
}

@media (orientation: portrait) and (min-width: 768px) {
    .wheel__btn {
        padding-bottom: 8px;
    }
}

@media (orientation: landscape) and (min-width: 0px) {
    .wheel__btn {
        font-size: clamp(12px, 2vw, 48px);
        padding-bottom: 2px;
    }
}

@media (orientation: landscape) and (min-width: 1024px) and (min-height: 1024px) {
    .wheel__btn {
        padding-bottom: 6px;
    }
}

@-webkit-keyframes pulse {
    0% {
        -webkit-transform: scale(1);
        transform: scale(1);
    }
    50% {
        -webkit-transform: scale(1.03);
        transform: scale(1.03);
    }
    100% {
        -webkit-transform: scale(1);
        transform: scale(1);
    }
}

@keyframes pulse {
    0% {
        -webkit-transform: scale(1);
        transform: scale(1);
    }
    50% {
        -webkit-transform: scale(1.03);
        transform: scale(1.03);
    }
    100% {
        -webkit-transform: scale(1);
        transform: scale(1);
    }
}

@-webkit-keyframes spin-first {
    0% {
        -webkit-transform: rotate(-40deg);
        transform: rotate(-40deg)
    }
    70% {
        -webkit-transform: rotate(1265deg);
        transform: rotate(1265deg)
    }
    80% {
        -webkit-transform: rotate(1256deg);
        transform: rotate(1256deg)
    }
    100% {
        -webkit-transform: rotate(1260deg);
        transform: rotate(1260deg)
    }
}

@keyframes spin-first {
    0% {
        -webkit-transform: rotate(-40deg);
        transform: rotate(-40deg)
    }
    70% {
        -webkit-transform: rotate(1265deg);
        transform: rotate(1265deg)
    }
    80% {
        -webkit-transform: rotate(1256deg);
        transform: rotate(1256deg)
    }
    100% {
        -webkit-transform: rotate(1260deg);
        transform: rotate(1260deg)
    }
}

@-webkit-keyframes spin-second {
    0% {
        -webkit-transform: rotate(-40deg);
        transform: rotate(-40deg)
    }
    70% {
        -webkit-transform: rotate(1445deg);
        transform: rotate(1445deg)
    }
    80% {
        -webkit-transform: rotate(1436deg);
        transform: rotate(1436deg)
    }
    100% {
        -webkit-transform: rotate(1440deg);
        transform: rotate(1440deg)
    }
}

@keyframes spin-second {
    0% {
        -webkit-transform: rotate(-40deg);
        transform: rotate(-40deg)
    }
    70% {
        -webkit-transform: rotate(1445deg);
        transform: rotate(1445deg)
    }
    80% {
        -webkit-transform: rotate(1436deg);
        transform: rotate(1436deg)
    }
    100% {
        -webkit-transform: rotate(1440deg);
        transform: rotate(1440deg)
    }
}
