* {
  box-sizing: border-box;
  outline: 0;
}
html {
  scroll-behavior: smooth;
  color-scheme: light;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
p {
  margin: 0;
}
a {
  text-decoration: none;
  color: inherit;
}
a:hover {
  color: inherit;
}
a button {
  cursor: pointer;
}
body {
  background: linear-gradient(113deg, #250850 1.78%, #6625e4 132.34%);
  background-image: url(../img/bg.jpg);
  background-size: cover;
  background-position: center;
  height: 100vh;
  margin: 0;
  font-family: "Poppins";
  overflow: hidden;
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
}

body:has(.main-bonus:hover),
body:has(.main-bonus.hover) {
  background-image: url(../img/bg-anima.jpg);
  transition: transform 0.25s ease, filter 0.25s ease,
    background-image 0.3s linear;
}

.main-bonus {
  position: absolute;
  top: 60%;
  left: 78%;
  scale: 1.26;
  opacity: 0;
  transform: translate(-50%, -50%);
  cursor: pointer;
}
h1 {
  color: #fff;

  text-shadow: 0 1px 8.9px rgba(255, 255, 255, 0.5);

  font-size: 50.894px;
  font-style: normal;
  font-weight: 700;
  line-height: 100%;
  text-transform: uppercase;
}

.bonus-box {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 12px 16px;
  border-radius: 43.674px;

  background: transparent;

  box-shadow: 0 27.334px 32.638px rgba(8, 9, 79, 0.13),
    0 11.42px 13.635px rgba(8, 9, 79, 0.09),
    0 6.105px 7.29px rgba(8, 9, 79, 0.08),
    0 3.423px 4.087px rgba(8, 9, 79, 0.06),
    0 1.818px 2.17px rgba(8, 9, 79, 0.05),
    0 0.756px 0.903px rgba(8, 9, 79, 0.04);
  -webkit-backdrop-filter: blur(4.08px);
  backdrop-filter: blur(4.08px);

  color: #fff;

  font-family: Poppins;
  font-size: 43.674px;
  font-style: normal;
  font-weight: 800;
  line-height: 100%;
  transform: rotate(-2.224deg) translate(5px, -9px);
  cursor: pointer;
}
.bonus-box:hover {
  filter: brightness(1.1);
  transition: 0.5s;
}

.bonus-box::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 43.674px;

  padding: 2px;

  background: linear-gradient(90deg, #ffffff, #0afe87);

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

  pointer-events: none;
}

.btn {
  cursor: pointer;
  position: relative;
  z-index: 2;
  margin-top: 24px;
  margin-bottom: 114px;
}

.btn button {
  color: #070707;
  line-height: 18px;
  font-family: Poppins;
  font-size: 20px;
  font-style: normal;
  font-weight: 800;
  line-height: 18px;
  border-radius: 100px;
  background: #ffdc41;
  cursor: pointer;
  padding: 15px 49px;
  border: none;
}
.btn:hover button {
  background-color: #9cf893f0;
  transition: 0.9s;
}
h4 {
  color: #fff;

  font-family: Poppins;
  font-size: 26.182px;
  font-style: normal;
  font-weight: 500;
  line-height: 100%;
  text-transform: uppercase;
  margin-bottom: 10px;
}
header {
  padding: 44px 37px;
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.nav-bar__logo {
  width: 109px;
}

main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 100px 37px 20px 37px;
}
.main-title {
  display: flex;
  gap: 5px;
  align-items: flex-end;
}
p strong {
  color: #0afe87;

  text-shadow: 0 1px 9.2px rgba(82, 255, 186, 0.5);
  font-family: Poppins;
  font-size: 50px;
  font-style: normal;
  font-weight: 700;
  line-height: 100%;
  text-transform: lowercase;
}
p {
  margin-top: 5px;
  color: #fff;
  font-family: Poppins;
  font-size: 43.364px;
  font-style: normal;
  font-weight: 500;
  line-height: 100%;
  text-transform: lowercase;
  display: flex;
  gap: 10px;
}
#timer {
  display: flex;
  align-items: center;
}

#timer .time_item {
  display: flex;
  gap: 2.5px;
  position: relative;
}

#hours::after,
#minutes::after {
  content: ":";
  display: inline-flex;
  align-items: center;
  margin: 0 6px;
  color: #fff;
  opacity: 0.9;
  font-size: 29.468px;
  font-weight: 500;
  line-height: 100%;
}

#timer .digit {
  display: inline-flex;
  justify-content: center;
  align-items: center;

  color: #fff;
  text-align: center;
  font-size: 29.468px;
  font-style: normal;
  font-weight: 500;
  line-height: 100%;
  text-transform: uppercase;

  border-radius: 3.157px;
  background: rgba(217, 217, 217, 0.42);
  padding: 4px 2.5px;
  box-shadow: 0 1.052px 12.945px 0 rgba(215, 211, 255, 0.5);

  min-width: 22px;
}

#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

#preloader img {
  width: 120px;
  height: auto;
  animation: pulse 1.5s infinite ease-in-out;
}
.bonus-box {
  font-size: 28px;
  font-style: normal;
  font-weight: 700;
  line-height: 14.652px;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.1);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 0.8;
  }
}

.desc {
  display: block;
}
.mobile {
  display: none;
}

@media screen and (max-width: 735px) {
  body {
    background: linear-gradient(113deg, #250850 1.78%, #6625e4 132.34%);
    transition: background 0.35s ease, background-image 0.35s ease;
  }
  main {
    flex-direction: column;
    padding: 0 12px;
  }

  header {
    padding: 44px 125px;
    padding-bottom: 29px;
  }
  .nav-bar__logo {
    width: 109px;
  }

  .desc {
    display: none;
  }
  .mobile {
    display: block;
  }
  .btn {
    margin: 0 auto;
    width: 100%;
    margin-top: 20px;
    padding: 0 10px;
    order: 5;
    margin-top: 250px;
  }
  .btn button {
    font-size: 20px;
    font-style: normal;
    font-weight: 800;
    line-height: 18px;
    width: 100%;

    padding: 22px 12px;
  }
  .nav-bar {
    justify-content: center;
  }
  .main-bonus {
    display: none;
  }
  h1 {
    font-size: 36px;
    font-style: normal;
    font-weight: 700;
    line-height: 100%;
  }
  p strong {
    font-size: 36px;
    font-style: normal;
    font-weight: 700;
    line-height: 100%;
    text-transform: uppercase;
  }
  p {
    font-size: 36px;
    font-style: normal;
    font-weight: 500;
    line-height: 100%;
    text-transform: lowercase;
  }
  h4 {
    margin-top: 28px;
    font-size: 26.182px;
    font-style: normal;
    font-weight: 500;
    line-height: 100%;
  }
  #hours::after,
  #minutes::after,
  #timer .digit {
    font-size: 29.468px;
    font-style: normal;
    font-weight: 500;
    line-height: 100%;
  }
  .bonus-box::before {
    background: linear-gradient(90deg, #76faff1a, #76faff);
  }

  body.bg-alt {
    background: linear-gradient(113deg, #250850 1.78%, #9425e4f6 132.34%);
    overflow-x: hidden;
  }

  .main-bonus {
    display: none;
  }
  .treasure {
    position: relative;
    display: inline-block;
    position: absolute;
    top: 64%;
    left: 50%;

    transform: translate(-50%, -50%);
    cursor: pointer;
  }

  .treasure .main-bonus-mobile {
    display: block;
    width: 240px;
    height: auto;
    position: relative;
    z-index: 1;
    margin: 0 auto;
  }
  .treasure .coin {
    position: absolute;
    left: 50%;
    top: 58%;
    transform: translate(-50%, -50%);
    opacity: 0;
    pointer-events: none;
    z-index: 2;
    will-change: transform, opacity;
  }

  .treasure .c1 {
    width: 90.837px;
    height: 90.837px;
  }
  .treasure .c2 {
    width: 102.386px;
    height: 102.386px;
  }
  .treasure .c3 {
    width: 154.918px;
    height: 154.918px;
  }
  .treasure .c4 {
    width: 243.906px;
    height: 243.906px;
  }

  .treasure.burst .c1 {
    animation: fly-ul 4s cubic-bezier(0.2, 0.7, 0.1, 1) both;
  }
  .treasure.burst .c2 {
    animation: fly-ur 4s cubic-bezier(0.2, 0.7, 0.1, 1) both;
  }
  .treasure.burst .c3 {
    animation: fly-dl 4s cubic-bezier(0.2, 0.7, 0.1, 1) both;
  }
  .treasure.burst .c4 {
    animation: fly-dr 4s cubic-bezier(0.2, 0.7, 0.1, 1) both;
  }

  @keyframes fly-ul {
    0% {
      opacity: 0;
      transform: translate(-50%, -50%) rotate(160deg);
    }
    50% {
      opacity: 1;
      transform: translate(calc(-50% - 130px), calc(-50% - 90px));
    }
    100% {
      opacity: 1;
      transform: translate(calc(-50% - 130px), calc(-50% - 90px));
    }
  }
  @keyframes fly-ur {
    0% {
      opacity: 0;
      transform: translate(-50%, -50%) rotate(51.403deg);
    }
    50% {
      opacity: 1;
      transform: translate(calc(-50% + 100px), calc(-50% - 155px));
    }
    100% {
      opacity: 1;
      transform: translate(calc(-50% + 100px), calc(-50% - 155px));
    }
  }
  @keyframes fly-dl {
    0% {
      opacity: 0;
      transform: translate(-50%, -50%);
    }
    50% {
      opacity: 1;
      transform: translate(calc(-50% - 100px), calc(-50% + 85px));
    }
    100% {
      opacity: 1;
      transform: translate(calc(-50% - 100px), calc(-50% + 85px));
    }
  }
  @keyframes fly-dr {
    0% {
      opacity: 0;
      transform: translate(-50%, -50%);
    }
    50% {
      opacity: 1;
      transform: translate(calc(-50% + 140px), calc(-50% + 50px));
    }
    100% {
      opacity: 1;
      transform: translate(calc(-50% + 140px), calc(-50% + 50px));
    }
  }
}
