@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;
  background-image: url(/uploads/bg.png);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  position: relative;
  color: #ffffff;
  padding-bottom: 40px;

  height: 100%;
  min-height: 100vh;
}

.header {
  padding: 12px 16px;
  position: relative;
  z-index: 999;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 95%;
  max-width: 1920px;
  margin: 0 auto;
}

.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 {
  width: 95%;
  max-width: 1630px;
  margin: 0 auto;
}

.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;
}

/* scratch */

.scratch {
  width: fit-content;

  @media (max-width: 828px) {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;

    background: #0909094a;
    backdrop-filter: blur(13px);
    -webkit-backdrop-filter: blur(13px);

    @media (max-width: 828px) {
      padding: clamp(20px, 1.7vw, 37px) clamp(24px, 1.7vw, 37px);

      border-radius: clamp(48px, 3.8vw, 74px);
      margin-top: 45%;
    }
    @media (max-width: 344px) {
      margin-top: 50%;
    }
  }
}

.scratch::after {
  content: '';
  position: absolute;
  inset: 0;
  padding: 5px;
  border-radius: inherit;

  background: linear-gradient(
    to bottom left,
    #ffffff 0%,
    #ffffff00 30%,
    #d9aee300 55%,
    #8d0ba9 100%
  );

  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;

  pointer-events: none;
  display: none;

  @media (max-width: 828px) {
    display: block;
  }
}

.scratch__container {
  width: fit-content;
  padding: clamp(12px, 1.7vw, 37px) clamp(24px, 1.7vw, 37px);

  position: relative;

  border-radius: clamp(48px, 3.8vw, 74px);

  background: #0909094a;
  backdrop-filter: blur(13px);
  -webkit-backdrop-filter: blur(13px);
  z-index: 0;
  cursor:
    url('/uploads/coin-cursor-4.png') 20 20,
    auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);

  row-gap: clamp(20px, 2vw, 40px);

  column-gap: clamp(20px, 3vw, 70px);

  @media (max-width: 828px) {
    background: none;
    backdrop-filter: none;
    padding: 0;
  }

  @media (max-width: 525px) {
    grid-template-columns: repeat(3, 1fr);
  }
}

.scratch__container::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 5px;
  border-radius: inherit;

  background: linear-gradient(
    to bottom left,
    #ffffff 0%,
    #ffffff00 30%,
    #d9aee300 55%,
    #8d0ba9 100%
  );

  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;

  pointer-events: none;

  @media (max-width: 828px) {
    display: none;
  }
}

.scratch__title-h1 {
  font-size: clamp(22px, 3vw, 50px);
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
  margin: 0;
  margin-bottom: clamp(7px, 1vw, 15px);

  text-align: center;
}

.scratch__title-h2 {
  font-size: clamp(26px, 4vw, 60px);

  font-style: normal;
  text-align: center;
  font-weight: 900;
  margin: 0;

  text-transform: uppercase;
}

.scratch__text-content {
  margin-bottom: clamp(24px, 2vw, 30px);
}

@media (max-width: 525px) {
  .scratch__coin:nth-child(1) {
    order: 1;
  }
  .scratch__coin:nth-child(2) {
    order: 3;
  }
  .scratch__coin:nth-child(3) {
    order: 11;
  }
  .scratch__coin:nth-child(4) {
    order: 2;
  }
  .scratch__coin:nth-child(5) {
    order: 4;
  }
  .scratch__coin:nth-child(6) {
    order: 5;
  }
  .scratch__coin:nth-child(7) {
    order: 6;
  }
  .scratch__coin:nth-child(8) {
    order: 7;
  }
  .scratch__coin:nth-child(9) {
    order: 10;
  } /* transparent */
  .scratch__coin:nth-child(10) {
    order: 8;
  }
  .scratch__coin:nth-child(11) {
    order: 9;
  }
  .scratch__coin:nth-child(12) {
    order: 11;
  } /* transparent */
}

.coin {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.coin__logo-box,
.coin__blue,
.coin__pink,
.coin--transperent {
  width: clamp(90px, 8vw, 170px);
  height: clamp(90px, 8vw, 170px);
  overflow: hidden;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;

  @media (max-width: 344px) {
    width: 80px;
    height: 80px;
  }
}

.coin__logo-box,
.coin--transperent {
  background: #ffffff;
  z-index: 2;
}

.coin__pink {
  z-index: 1;
  background: #d12297;
  white-space: pre-line;
  font-size: clamp(12px, 1vw, 20px);
  box-shadow: 0 0 0 #00000000;
  transition: box-shadow 0.3s ease;
  overflow: visible;
}

.coin__pink::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;

  animation: winPulse 1.4s ease-in-out infinite;

  opacity: 0;

  box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.6);
}

.coin.is-scratched .coin__pink::after {
  opacity: 1;
}

.coin__blue {
  background: #02a1e2;
  font-size: clamp(12px, 1vw, 20px);
}

.coin__pink,
.coin__blue {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  transition: opacity 0.4s;
  font-weight: 900;
  text-transform: uppercase;
  text-align: center;
}

.coin__logo {
  width: 65%;
}

.coin__animation {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  pointer-events: none;
  opacity: 0;
}

.coin--transperent {
  opacity: 0.13;
}

.coin__animation img {
  width: 110%;
  height: 110%;
  pointer-events: none;
}

.coin.is-scratched .coin__pink,
.coin.is-scratched .coin__blue {
  opacity: 1;
}

.coin.is-scratching .coin__animation {
  opacity: 1;
  animation: scratchV 1.1s ease-in-out forwards;
}

.coin.is-scratching .coin__logo-box {
  animation: opacity 1.3s linear;
}

.coin__logo-box {
  transition:
    opacity 0.4s ease,
    transform 0.4s ease;
}

.coin.is-scratching .coin__logo-box {
  opacity: 0;
}

.coin.is-scratched .coin__logo-box {
  opacity: 0;
  visibility: hidden;
}

@media (hover: hover) {
  .is-scratched .coin__pink:hover {
    box-shadow: 1px 3px 16px 0 #c8ff00d9;
    transition: box-shadow 0.6s ease-in;
  }
}

.girl-bg {
  width: 40%;
  max-width: 600px;
  position: absolute;
  right: 0;
  bottom: 0;
  pointer-events: none;

  @media (max-width: 828px) {
    display: none;
  }
}

.scratch-box {
  position: relative;
}

.scratch-box__img {
  width: 100%;
  max-width: 50%;
  position: absolute;
  right: 50%;
  transform: translate(50%);
  display: none;

  @media (max-width: 828px) {
    top: -50%;
    display: block;
  }
  @media (max-width: 525px) {
    top: -28%;
  }
}

.hero__text-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  gap: clamp(10px, 2vw, 30px);
  margin-bottom: 40px;
}

.hero__title,
.slot-animation {
  font-size: clamp(18px, 3vw, 50px);

  font-style: normal;
  font-weight: 600;
  text-transform: uppercase;

  @media (max-width: 344px) {
    font-size: 16px;
  }
}

.slot-animation-box {
  padding: clamp(10px, 1.5vw, 23px);
  background: #e334bd;
  border-radius: clamp(6px, 1.5vw, 22px);
  box-shadow: 0 4px 25.6px 0 #0088ce91;
}

.slot-animation {
  height: 1.2em;
  overflow: hidden;
}

.slot-animation__inner {
  display: flex;
  flex-direction: column;
  animation: slotRoll 6s cubic-bezier(0.22, 0.61, 0.36, 1) infinite;
}

.slot-animation__title {
  height: 1.2em;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Animation */

@keyframes winPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.6);
  }
  50% {
    box-shadow: 0 0 0 5px rgba(255, 215, 0, 0.9);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.6);
  }
}

@keyframes slotRoll {
  0% {
    transform: translateY(0);
  }

  15% {
    transform: translateY(0);
  }

  33% {
    transform: translateY(-1.2em);
  }

  48% {
    transform: translateY(-1.2em);
  }

  66% {
    transform: translateY(-2.4em);
  }

  81% {
    transform: translateY(-2.4em);
  }

  100% {
    transform: translateY(-3.6em);
  }
}

@keyframes scratchV {
  0% {
    transform: translate(-120%, -120%);
    opacity: 0;
  }

  33% {
    transform: translate(-60%, 40%);
    opacity: 1;
  }

  66% {
    transform: translate(10%, -120%);
    opacity: 1;
  }

  100% {
    transform: translate(-120%, 30%);
    opacity: 0;
  }
}

@keyframes opacity {
  0% {
    opacity: 0.9;
  }
  50% {
    opacity: 0.7;
  }
  100% {
    opacity: 0;
  }
}

.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);
  }
}
