@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap');

* {
  box-sizing: border-box;
  margin: 0;
}

body {
  margin: 0;
  background-color: #001135;
  padding: 0;
  background-image: url('/uploads/background.png');
  font-family: 'Inter', sans-serif;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  width: 100%;
  height: 100%;
  min-height: 100vh;
  position: relative;

  @media (max-width: 520px) {
    background-image: url('/uploads/background-mob.png');
    background-size: cover;
    background-position: top;
    height: auto;
    overflow: auto;
  }
}

.yellow-crystal {
  position: absolute;
  bottom: 0;
  display: none;
  max-width: 100px;

  @media (min-width: 1024px) {
    position: fixed;
    display: block;
  }

  @media (min-width: 1100px) {
    max-width: 100%;
  }
}
.red-crystal {
  position: absolute;
  top: 0;
  right: 0;
  display: none;
  max-width: 100px;

  @media (min-width: 1024px) {
    position: fixed;

    display: block;
  }

  @media (min-width: 1100px) {
    max-width: 100%;
  }
}
.green-crystal {
  position: absolute;
  bottom: 0;
  right: 0;
  display: none;
  max-width: 100px;

  @media (min-width: 1024px) {
    position: fixed;

    display: block;
  }

  @media (min-width: 1100px) {
    max-width: 100%;
  }
}
.blue-crystal {
  position: absolute;
  top: 0;
  display: none;
  max-width: 100px;

  @media (min-width: 1024px) {
    position: fixed;

    left: 35%;
    display: block;
  }

  @media (min-width: 1100px) {
    max-width: 100%;
  }
}

.blue-crystal-mob {
  position: absolute;
  width: 20%;
  left: 10%;
  top: 40px;
  @media (min-width: 1024px) {
    display: none;
  }
}

.green-crystal-mob {
  position: absolute;
  right: 0;
  top: 20%;
  z-index: 20;
  max-width: 100px;

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

.header {
  max-width: 1280px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  left: 50%;
  transform: translateX(-50%);
  position: absolute;
  width: 100%;
  top: 0;
  z-index: 99;

  @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 0.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: 10px 10px 50px 10px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  height: 100%;
  overflow: hidden;

  @media (min-width: 1100px) {
    padding: 20px;
  }
}

.zevs {
  position: absolute;
  right: 0;
  z-index: 1;
  top: 60px;
  max-height: 40%;
  pointer-events: none;

  @media (min-width: 390px) {
    right: 25px;
    max-height: 30%;
    top: 60px;
    z-index: 1;
  }

  @media (min-width: 520px) {
    top: 40px;
    max-height: 45%;
    right: 65px;
    z-index: 1;
  }

  @media (min-width: 768px) {
    top: 40px;
    max-height: 55%;
    right: 100px;
    z-index: 1;
  }

  @media (min-width: 1024px) {
    max-height: 85%;
    bottom: 0;
    top: auto;
    right: 35px;
    z-index: 4;
  }

  @media (min-width: 1280px) {
    max-height: 95%;
    bottom: 0;
    right: 35px;
    z-index: 4;
  }
}

.preview-box {
  position: relative;
  fill: linear-gradient(
    180deg,
    rgba(54, 35, 41, 0.01) 0%,
    rgba(206, 9, 255, 0.01) 100%
  );
  filter: drop-shadow(3.604px -2.253px 40.776px rgba(0, 0, 0, 0.34));
  backdrop-filter: blur(34.25px);
  border: 1px solid transparent;
  border-radius: 70px;
  max-width: 473px;
  width: 100%;
  height: 100%;
  margin-top: 90px;
  z-index: 2;

  @media (max-width: 920px) {
    margin-top: 0px;
    z-index: 2;
    border-radius: 40px;
    max-height: fit-content;
  }
}

.preview-wrapper {
  @media (max-width: 520px) {
    max-height: 370px;
    margin-top: 0px;
    z-index: 2;
    border-radius: 40px;
    max-width: 350px;
  }

  @media (max-width: 768px) {
    max-width: auto;
  }
  @media (min-width: 1024px) {
    max-width: 340px;
  }

  @media (min-width: 1100px) {
    max-width: 100%;
  }
}

.preview-box::before {
  mix-blend-mode: normal;
  content: '';
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(125deg, #d0bfff 0%, rgba(208, 191, 255, 0) 100%);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  mix-blend-mode: color-dodge;
  pointer-events: none;
  z-index: -1;

  @media (min-width: 1024px) {
    background: linear-gradient(125deg, #db35bd 0%, #8c54fd 100%);
  }
}

.logo-slot {
  position: absolute;
  top: -35px;
  left: 50%;
  max-width: 85%;
  transform: translateX(-50%);

  @media (max-width: 520px) {
    max-width: 210px;
    top: -25px;
  }
}

.preview__info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 15px;
  max-width: 463px;
  width: 100%;
  padding: 20px;
  margin-top: 0;

  @media (min-width: 1100px) {
    gap: 20px;
    padding: 40px 10px;
  }
}

.preview__title {
  padding-top: 10px;
  color: #f9fff9;
  font-size: 28px;
  font-style: normal;
  font-weight: 700;
  line-height: 117%;
  text-transform: uppercase;

  @media (min-width: 1100px) {
    font-size: 37px;
  }
}

.preview__subtitle {
  color: #fffe45;
  text-align: center;
  font-size: 40px;
  font-style: normal;
  font-weight: 700;
  line-height: 112%;
  text-transform: uppercase;
  text-align: center;

  @media (min-width: 1100px) {
    font-size: 63px;
  }
}

.preview__subtitle-fs {
  color: #fffe45;
  font-size: 30px;
  font-style: normal;
  font-weight: 700;
  line-height: 52%;
  text-transform: uppercase;
  text-align: center;

  @media (min-width: 1100px) {
    font-size: 54px;
  }
}

.preview__text {
  color: #fff;
  text-align: center;
  font-size: 20px;
  font-style: normal;
  font-weight: 500;
  line-height: 112%;
  margin: 10px 0;

  @media (min-width: 1100px) {
    font-size: 16px;
  }
}

.preview-chips {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 473px;
  justify-content: center;
  gap: 10px;
}

.preview-chips > :last-child {
  grid-column: 1 / -1;
  justify-self: center;
}

.preview-button {
  background: linear-gradient(91deg, #db35bd 0.53%, #8c54fd 88.31%);
  box-shadow: 0 0 40px 0 rgba(235, 150, 251, 0.6);
  border-radius: 50px;
  display: inline-block;
  cursor: pointer;
  transition: background-color 0.6s ease;
  padding: 15px 0;
  border: none;
  color: #fff;
  text-align: center;
  font-size: 22px;
  font-style: normal;
  font-weight: 700;
  line-height: 25.094px; /* 114.065% */
  width: 100%;
  max-width: 395px;
}

.preview-button:hover {
  background:
    linear-gradient(0deg, #bf54fd 0%, #bf54fd 100%),
    linear-gradient(91deg, #db35bd 0.53%, #8c54fd 88.31%);
}

.chip {
  fill: linear-gradient(
    180deg,
    rgba(54, 35, 41, 0.01) 0%,
    rgba(206, 9, 255, 0.01) 100%
  );
  filter: drop-shadow(3.604px -2.253px 40.776px rgba(0, 0, 0, 0.34));
  backdrop-filter: blur(34.25px);
  border: 1px solid transparent;
  border-radius: 70px;
  color: #fff;
  text-align: center;
  font-style: normal;
  font-weight: 500;
  font-size: 10px;
  line-height: 112%;
  padding: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 65px;

  @media (min-width: 1100px) {
    font-size: 18px;
    padding: 20px;
  }
}

.chip::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(100deg, #db35bd 0%, #8c54fd 30%);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  mix-blend-mode: color-dodge;
  pointer-events: none;
  z-index: -1;
}

.preview {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  margin-top: 30px;
  display: flex;
  align-items: center;
  flex-direction: column-reverse;
  justify-content: space-between;

  @media (min-width: 990px) {
    justify-content: space-between;
    align-items: flex-start;
    flex-direction: row;
  }
}

.wheel-modal {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  min-height: 100vh;
  z-index: 999;
  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.6);
  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: 0.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: 340px;

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

  @media (min-width: 1100px) {
    max-width: 340px;
  }
}

.benefits-mobile {
  display: grid;

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

.benefits-desktop {
  @media (min-width: 1100px) {
    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;
}

.wheel-border {
  background-image: url('/uploads/wheel-border.png');
  background-position: auto;
  background-size: contain;
  position: absolute;
  top: 50%;
  left: 36%;
  transform: translate(-50%, -50%);
  width: 260px;
  height: 260px;

  @media (min-width: 768px) {
    width: 477px;
    height: 477px;
    left: 29%;
  }

  @media (min-width: 1100px) {
    width: 625px;
    height: 625px;
    left: 44%;
  }
}

.wheel {
  background-image: url('/uploads/wheel-colors.png');
  background-position: center;
  background-size: cover;
  width: 100%;
  height: auto;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 340px;
  height: 340px;

  @media (min-width: 768px) {
    width: 610px;
    height: 600px;
  }

  @media (min-width: 1100px) {
    width: 810px;
    height: 800px;
    left: 50%;
  }
}

.wheel-rotor {
  width: 270px;
  height: 270px;
  margin-right: 100px;
  transform: rotate(0deg);
  transition: transform 5s cubic-bezier(0.08, 0.1, 0.15, 1);

  @media (min-width: 340px) {
    width: 270px;
    height: 270px;
    margin-right: 100px;
  }

  @media (min-width: 768px) {
    width: 450px;
    height: 450px;
    position: relative;
    left: -12%;
  }

  @media (min-width: 1100px) {
    width: 750px;
    height: 650px;
    left: 0;
  }
}

.picker {
  position: absolute;
  left: 36%;
  transform: translateX(-50%);
  z-index: 3;
  width: 30px;
  height: 30px;
  top: 37%;
  z-index: 1;

  @media (min-width: 768px) {
    left: 29%;
    width: 30px;
    height: 30px;
    top: 40%;
  }

  @media (min-width: 1100px) {
    left: 44%;
    width: 60px;
    height: 60px;
    top: 36%;
  }
}

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

.wheel-btn {
  z-index: 2;
  position: absolute;
  top: 50%;
  left: 36%;
  transform: translate(-50%, -50%);
  background-color: inherit;
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;

  @media (min-width: 340px) {
    width: 48px;
    height: 48px;
    left: 36%;
  }

  @media (min-width: 768px) {
    width: 77px;
    height: 77px;
    left: 29%;
  }

  @media (min-width: 1100px) {
    width: 160px;
    height: 160px;
    left: 44%;
  }
}

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

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

  @media (min-width: 340px) {
    --r: 90px;
  }

  @media (min-width: 768px) {
    --r: 140px;
    right: -40%;
  }

  @media (min-width: 1024px) {
    --r: 150px;
  }

  @media (min-width: 1100px) {
    --r: 215px;
    right: 0;
  }
}
.labels li {
  position: absolute;
  left: 50%;
  top: 50%;
  transform-origin: 0 0;
  width: 47px;
  text-align: center;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  line-height: 14px;
  letter-spacing: -0.48px;

  @media (min-width: 768px) {
    font-size: 14px;
    line-height: 18px;
    left: 35%;
    top: 50%;
    letter-spacing: -0.98px;
  }

  @media (min-width: 1100px) {
    left: 49%;
    top: 50%;
    width: 102px;
    text-align: center;
    font-size: 24px;
    line-height: 28px;
    letter-spacing: -0.96px;
  }
}

.labels {
  --offset: -128deg;
  --tilt: 13deg;

  @media (min-width: 1024px) {
    --offset: -121deg;
  }

  @media (min-width: 1100px) {
    --offset: -125deg;
  }
}

.labels li {
  --a: calc(360deg / var(--n) * (var(--i) + 0.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);
  }

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

.preloader {
  position: fixed;
  z-index: 99999;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(
    77% 122% at 50% -17%,
    #302f3b 8%,
    #17161c 32%,
    #0a0a12 70%,
    #05050af0 100%
  );
}

.preloader:before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    77% 122% at 50% -17%,
    #302f3b 8%,
    #17161c 32%,
    #0a0a12 70%,
    #05050af0 100%
  );
}

.preloader svg {
  position: relative;
  z-index: 2;
  width: 200px;
  height: 200px;
  color: var(--icon-default);
  animation: rotate3D 1.5s linear infinite;

  @media (min-width: 1024px) {
    width: 400px;
    height: 400px;
  }
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
  z-index: -1;
  transition: all 0.2s ease-in;
  display: none;
}

@keyframes rotate3D {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}
