@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: "Inter", sans-serif;
    background: #070917;

    @media (min-width: 768px) {
        height: 100vh;
    }
}

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #070917;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 9999999999;

    @media (min-width: 768px) {
        padding: 12px 24px;
    }
}

.header > .logo {
    display: none;

    @media (min-width: 768px) {
        display: block;
    }
}

.header > .logo-mobile {
    @media (min-width: 768px) {
        display: none;
    }
}

.custom-select {
    position: relative;
    width: 140px;
    font-size: 14px;
    color: #9F9CBE;
    cursor: pointer;
    user-select: none;
}

.lang__arrow {
    transition: transform .2s ease;
}

.custom-select:has(.lang__list:not([hidden])) .lang__current {
    background: #1B1D2A;
    border-color: #20222E;
}
.custom-select:has(.lang__list:not([hidden])) .lang__arrow {
    transform: rotate(180deg);
}

.lang__current {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 2px solid #20222E;
    border-radius: 10px;
    padding: 8px 12px;
    background: #070917;
    gap: 6px;
}

.lang__current > .lang__flag {
    width: 20px;
    height: 20px;
}

.lang__arrow {
    margin-left: auto;
    width: 12px;
    height: 7px;
}

.lang__list {
    position: absolute;
    top: calc(100% + 8px);
    left: auto;
    right: 0;
    background: #1B1D2A;
    border: 2px solid #20222E;
    border-radius: 8px;
    list-style: none;
    padding: 10px;
    margin: 0;
    z-index: 999;
    width: 200px;
}

.lang__list li {
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    border-radius: 10px;
}

.lang__list li > img, svg {
    width: 24px;
    height: 24px;
}

.lang__list li:hover {
    background: #09B0FD1A;
}

.main {
    padding: 64px 16px 24px;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;

    @media (min-width: 1200px) {
        padding: 64px 24px 24px 100px;
    }
}

.preview__info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 463px;
    width: 100%;
    height: 100%;
    margin-top: 24px;

    @media (min-width: 768px) {
        display: flex;
    }
}

.preview__title {
    color: #F9FFF9;
    text-align: center;
    font-size: 32px;
    font-weight: 500;
    line-height: 32px;
    letter-spacing: -1.28px;
    margin: 0;

    @media (min-width: 1200px) {
        font-size: 64px;
        line-height: 64px;
        letter-spacing: -2.56px;
        text-align: left;
    }
}

.preview__title + h2 {
    margin-bottom: 24px;

    @media (min-width: 1200px) {
        margin-bottom: 0;
    }
}

.preview__text {
    margin: 16px 0 50px;
    color: rgba(255, 255, 255, 0.60);
    text-align: center;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    display: none;

    @media (min-width: 1200px) {
        font-size: 16px;
        line-height: 24px;
        text-align: left;
        display: block;
        max-width: 425px;
    }
}

.main__img,
.main__img-mob {
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    object-fit: cover;
    object-position: top;
    width: 100%;
}

.main__img {
    height: 100vh;
    display: none;

    @media (min-width: 768px) {
        display: block;
    }
}

.main__img-mob {
    max-height: 972px;
    height: max-content;
    object-position: center;

    @media (min-width: 550px) {
        max-height: 1020px;
    }

    @media (min-width: 768px) {
        display: none;
    }
}

.preview {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: column;

    @media (min-width: 1200px) {
        gap: 68px;
        align-items: flex-start;
        flex-direction: row;
    }
}

.wheel-modal {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 99999999999;
    display: none;
}

.wheel-modal__content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    width: 100%;
    max-width: 358px;
    padding: 20px;
    flex-direction: column;
    border-radius: 16px;
    background: #20222E;
    box-shadow: 0 16px 64px 0 rgba(0, 0, 0, 0.32);
    margin: 0 auto 24px;

    @media (min-width: 768px) {
        margin: 0 0 auto 0;
        max-width: 400px;
    }
}

.wheel-modal__overlay {
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.72);
}

.wheel-modal__content--title {
    color: #F9FFF9;
    text-align: center;
    font-size: 32px;
    font-weight: 600;
    line-height: 40px;
    letter-spacing: -1.28px;
}

.wheel-modal__content--title > .wheel-modal__content--title__subtitle {
    color: #78CFFF;
}

.wheel-modal__content--bonus {
    margin-bottom: 20px;
}

.wheel-modal__content--bonus__item {
    border-radius: 16px;
    border: 6px solid #EB96FB;
    background: #5EB3E2;
    box-shadow: 0 12px 0 0 #000 inset, 0 6px 0 0 #000;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 16px 16px;
    margin: 20px 0;
}


.wheel-modal__content--bonus__item--text {
    color: #000;
    font-size: 24px;
    font-weight: 600;
    line-height: 28px;
    letter-spacing: -0.96px;
    max-width: 156px;
    width: 100%;
}

.wheel-modal__content--bonus__text {
    color: rgba(255, 255, 255, 0.60);
    text-align: center;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
}

.form {
    display: flex;
    flex-direction: column;
}

.form > label {
    color: #FFF;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    margin-bottom: 8px;
}

.form > input,
.form__password-field {
    display: flex;
    height: 40px;
    padding: 10px 12px;
    align-items: center;
    gap: 8px;
    align-self: stretch;
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.08);
    background: #2E3141;
    color: #FFF;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    outline: none;
    margin-bottom: 16px;
    cursor: pointer;
}

.form__password-field > input {
    outline: none;
    width: 100%;
    background: transparent;
    border: none;
    color: #FFF;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
}

.form > input::placeholder,
.form__password-field > input::placeholder {
    color: #9F9CBE;
}

.form__checkbox {
    display: block;
    margin-top: 20px;
}

.form__checkbox input {
    padding: 0;
    height: initial;
    width: initial;
    margin-bottom: 0;
    display: none;
    cursor: pointer;
}

.form__checkbox label {
    position: relative;
    cursor: pointer;
    color: #FFF;
    font-size: 14px;
    line-height: 20px;
}

.form__checkbox label > a {
    color: #09B0FD;
}

.form__checkbox label:before {
    content:'';
    -webkit-appearance: none;
    background-color: #2A2D3C;
    border: 2px solid #454859;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05), inset 0px -15px 10px -12px rgba(0, 0, 0, 0.05);
    padding: 10px;
    display: inline-block;
    position: relative;
    vertical-align: middle;
    cursor: pointer;
    margin-right: 5px;
    border-radius: 6px;
}

.form__checkbox input:checked + label:before {
    border-color: #CF359C;
    background-color: #CF359C;
    background-image: url("/uploads/checkbox-icon.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 12px;
}

.form__button {
    margin-top: 20px;
    border-radius: 12px;
    border: 2px solid #D69FFF;
    background: linear-gradient(180deg, #932EFF -21.88%, #CF359C 100%);
    display: flex;
    height: 48px;
    padding: 12px 16px;
    justify-content: center;
    align-items: center;
    color: #FFF;
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    cursor: pointer;
}

.form__button:disabled {
    opacity: .2;
    pointer-events: none;
}

.form__password-field {
    position: relative;
    margin-bottom: 0;
}

.form__password-field .form__toggle-btn {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    border: none;
    background: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.form__password-field .form__toggle-btn .form__icon-hide {
    display: none;
}

.form__password-field.show .form__toggle-btn .form__icon-show {
    display: none;
}
.form__password-field.show .form__toggle-btn .form__icon-hide {
    display: inline;
}

.form__error {
    display: none;
    font-size: 12px;
    color: #e5004d;
    margin: 5px 0;
}

.is-invalid {
    border: 1px solid #e5004d !important;
    margin-bottom: 0 !important;
}

.benefits {
    padding: 0;
    display: none;
    grid-template-columns: repeat(1, 1fr);
    gap: 8px;
    width: 100%;
    max-width: 360px;

    @media (min-width: 550px) {
        max-width: 480px;
    }

    @media (min-width: 1200px) {
        max-width: 360px;
    }
}

.benefits-mobile {
    display: grid;

    @media (min-width: 1200px) {
        display: none;
    }
}

.benefits-desktop {
    @media (min-width: 1200px) {
        display: grid;
    }
}

.benefit {
    border-radius: 16px;
    background: #20222E;
    display: flex;
    padding: 12px;
    align-items: center;
    gap: 12px;
    align-self: stretch;
}

.benefit__title {
    color: #FFF;
    font-size: 16px;
    font-weight: 600;
    line-height: 20px;
}

.benefit__text {
    color: #9996B8;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
}

/* wheel */
.wheel-container {
    position: relative;
    width: fit-content;

    @media (min-width: 1200px) {
        margin-top: 52px;
    }
}

.wheel {
    width: 100%;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;

    /*@media (min-width: 768px) {*/
    /*    width: 913px;*/
    /*    height: 913px;*/
    /*}*/
}

.wheel-mobile {
    display: block;

    @media (min-width: 1200px) {
        display: none;
    }
}

.wheel-desktop {
    display: none;

    @media (min-width: 1200px) {
        display: block;
    }
}

.wheel-rotor {
    width: 335px;
    height: 335px;
    transform: rotate(0deg);
    transition: transform 5s cubic-bezier(.08,.1,.15,1);

    @media (min-width: 380px) {
        width: 386px;
        height: 386px;
    }

    @media (min-width: 550px) {
        width: 450px;
        height: 450px;
    }

    @media (min-width: 1200px) {
        width: 747px;
        height: 747px;
    }
}

.picker {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    width: 65px;
    height: 80px;
    top: -8px;

    @media (min-width: 380px) {
        width: 80px;
        height: 95px;
    }

    @media (min-width: 550px) {
        width: 87px;
        height: 119px;
        top: -11px;
    }

    @media (min-width: 1200px) {
        top: -43px;
        width: unset;
        height: unset;
    }
}

.picker-move {
    transform: rotate(-20deg);
}

.wheel-btn {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    border-radius: 926.261px;
    border: 2.11px solid #FFF;
    background: linear-gradient(180deg, #FFF12E -21.88%, #C5940E 100%);
    width:  58px;
    height:  58px;
    cursor: pointer;
    color: #000;
    font-size: 12px;
    font-weight: 600;
    line-height: 16px;
    letter-spacing: -0.24px;
    text-transform: uppercase;

    @media (min-width: 380px) {
        width: 67px;
        height: 67px;
    }

    @media (min-width: 550px) {
        width: 77px;
        height: 77px;
    }

    @media (min-width: 1200px) {
        width: 144px;
        height: 144px;
        font-size: 24px;
        line-height: 32px;
        letter-spacing: -0.48px;
        border-radius: 2000px;
        border: 4.557px solid #FFF;
    }
}

.spin-btn--idle {
    animation: spinButtonIdle 1.4s ease-in-out infinite;
}

.labels{
    --n:8;
    --r: 105px;
    position:absolute;
    inset:0;
    list-style:none;
    margin:0;padding:0;
    pointer-events:none;

    @media (min-width: 380px) {
        --r: 115px;
    }

    @media (min-width: 550px) {
        --r: 130px;
    }

    @media (min-width: 1200px) {
        --r:240px;
    }
}
.labels li{
    position:absolute;
    left: 50%;
    top: 50%;
    transform-origin: 0 0;
    width: 47px;
    text-align: center;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    line-height: 14px;
    letter-spacing: -0.48px;
    text-shadow: 0 2px 4px rgba(0,0,0,.35);

    @media (min-width: 1200px) {
        width: 102px;
        text-align: center;
        font-size: 24px;
        line-height: 28px;
        letter-spacing: -0.96px;
    }
}

.label__dark {
    color: #000;
}

.labels{
    --offset: -125deg;
    --tilt: 13deg;
}

.labels li{ --a: calc(360deg / var(--n) * (var(--i) + .5)); }

.labels--tangent li{
    transform:
        rotate(calc(var(--a) + var(--offset)))
        translateY(calc(-1 * var(--r)))
        rotate(var(--tilt));
}

@keyframes spinButtonIdle {
    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 0 0 0 0 rgba(255, 241, 46, 0.0);
    }

    50% {
        transform: translate(-50%, -50%) scale(1.07);
        box-shadow: 0 0 20px 8px rgba(255, 241, 46, 0.5);
    }
}