@import url(https://fonts.googleapis.com/css?family=Play:regular,700);
* {
  padding: 0;
  margin: 0;
  border: 0;
}

*,
*:before,
*:after {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

:focus,
:active {
  outline: none;
}

a:focus,
a:active {
  outline: none;
}

nav,
footer,
header,
aside {
  display: block;
}

html,
body {
  height: 100%;
  width: 100%;
  font-size: 100%;
  line-height: 1;
  font-size: 10px;
  -ms-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

input,
button,
textarea {
  font-family: inherit;
}

input::-ms-clear {
  display: none;
}

button {
  cursor: pointer;
}

button::-moz-focus-inner {
  padding: 0;
  border: 0;
}

a,
a:visited {
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

ul li {
  list-style: none;
}

img {
  vertical-align: top;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: inherit;
}

/*--------------------*/
html {
  font-size: 62.5%;
  scroll-behavior: smooth;
  overflow: hidden;
}

body {
  font-family: "Play";
  background-color: #000;
  color: #fff;
  font-size: 10px;
  overflow: hidden;
  font-weight: 700;
}

.container {
  max-width: 1737px;
  margin: 0 auto;
  padding: 0 1rem;
}

.lock {
  overflow: hidden;
}

/* blocks */
.game {
  background: url(../img/bc-game.png) center no-repeat;
  background-size: cover;
}
.game__list {
  position: fixed;
  bottom: 10px;
  left: 10px;
}
.game__list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.8rem;
}
.game__list img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}
.game__wrap {
  max-width: 1100px;
  width: 100%;
  height: 100vh;
  margin: 0 auto;
  position: relative;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-direction: column;
}
.game__top {
  position: absolute;
  left: 1rem;
  top: 10rem;
  line-height: 4rem;
  text-transform: uppercase;
}
.game__top p {
  font-size: 2.5rem;
}
.game__name,
.game__top h2 {
  font-size: 3.2rem;
  background: linear-gradient(268.7deg, #78ffde -12.06%, #64b5ff 175.47%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}

.game__box {
  /* подключаем сетку */
  display: grid;
  /* ставим всё по центру */
  place-items: center;
  /* если что-то не помещается на своё место — скрываем то, что не поместилось */
  position: relative;
  max-width: 800px;
  width: 100%;
  transform: rotate(90deg);
  margin-bottom: -4%;
}
.game__girl {
  position: fixed;
  right: 90px;
  bottom: 310px;
  z-index: 9;
  width: 50vw;
  transform: rotate(270deg);
}
.game__logo {
  margin-bottom: 5vh;
}

/* общий блок для всех элементов */
.deal-wheel {
  /* задаём переменные блока */
  /* размеры колеса */
  --size: clamp(320px, 85vmin, 800px);
  /* настройки яркости и заливки фона секторов */
  --lg-hs: 0 3%;
  --lg-stop: 50%;
  --lg: linear-gradient(hsl(var(--lg-hs) 0%) 0 var(--lg-stop), hsl(var(--lg-hs) 20%) var(--lg-stop) 100%);
  /* добавляем позиционирование относительно других элементов */
  position: relative;
  /* подключаем сетку */
  display: grid;
  /*grid-gap: calc(var(--size) / 20);*/
  /* выравниваем содержимое блока по центру */
  align-items: center;
  /* задаём имена областей внутри сетки */
  grid-template-areas: "spinner" "trigger";
  /* устанавливаем размер шрифта */
  font-size: calc(var(--size) / 21);
  position: relative;
  /*height: 660px;*/
}

/* всё, что относится ко внутренним элементам главного блока, будет находиться в области сетки с названием spinner */
.deal-wheel > * {
  grid-area: spinner;
}

/* сам блок и кнопка будут находиться в области сетки с названием trigger и будут выровнены по центру */
/* сектор колеса */
.spinner {
  /* добавляем относительное позиционирование */
  position: relative;
  /* подключаем сетку */
  display: grid;
  /* выравниваем всё по центру */
  align-items: center;
  /* добавляем элемент в сетку */
  grid-template-areas: "spinner";
  /* устанавливаем размеры */
  width: var(--size);
  height: var(--size);
  /* поворачиваем элемент  */
  transform: rotate(calc(var(--rotate, 25) * 1deg));
  /* рисуем круглую обводку, а всё, что не поместится, — будет скрыто за кругом */
  border-radius: 50%;
  background: url(../img/circle.svg) center no-repeat;
  background-size: 87%;
  filter: drop-shadow(0px 0px 44px rgba(255, 255, 255, 0.8));
}
.spinner__gi {
  background: url(../img/middle.svg) center no-repeat;
  filter: drop-shadow(0px 0px 25px rgba(0, 0, 0, 0.8));
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 9;
  transform: rotate(270deg);
}
.spinner__circle {
  background-size: cover;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translateY(-50%) translateX(-50%);
  width: 118%;
  height: 118%;
}

/* всё, что внутри этого блока, будет находиться в области сетки с названием spinner */
.spinner * {
  grid-area: spinner;
}

/* текст на секторах */
.prize {
  /* включаем «гибкую» вёрстку */
  display: flex;
  align-items: center;
  /* задаём отступы от краёв блока */
  padding: 0 calc(var(--size) / 6) 0 calc(var(--size) / 20);
  /* устанавливаем размеры */
  width: 50%;
  height: 50%;
  /* устанавливаем координаты, относительно которых будем вращать текст */
  transform-origin: center right;
  /* поворачиваем текст */
  transform: rotate(var(--rotate));
  /* запрещаем пользователю выделять мышкой текст на секторах */
  user-select: none;
  color: transparent;
}

/* язычок */
.ticker {
  /* добавляем относительное позиционирование */
  position: relative;
  /* устанавливаем размеры */
  left: -32%;
  top: 23%;
  width: calc(var(--size) / 2.3);
  height: calc(var(--size) / 2.2);
  /* фон язычка */
  background: url(../img/strelka.svg) center no-repeat;
  /*background-size: contain;*/
  /* делаем так, чтобы язычок был выше колеса */
  z-index: 1;
  /* форма язычка */
  /* устанавливаем точку, относительно которой будет вращаться язычок при движении колеса */
  transform-origin: top center;
  transform: rotate(270deg);
}

/* если кнопка нажата и неактивна */
.btn-spin:disabled {
  /* меняем внешний вид курсора */
  cursor: progress;
  /* делаем кнопку полупрозрачной */
  opacity: 0.25;
}

/* анимация вращения */
.is-spinning .spinner {
  transition: transform 8s cubic-bezier(0.2, -0.01, 0, 1);
}

@media screen and (max-width: 768px) {
  .game {
    padding-bottom: 5rem;
    row-gap: 8rem;
  }
  .game__tries {
    flex-direction: column;
  }
  .game__tries p {
    font-size: 1rem;
    line-height: 1rem;
  }
  .game__group span {
    font-size: 2.1rem;
  }
  .game__group img {
    width: 54px;
  }
  .game__triangle-1,
  .game__triangle-2 {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    flex-direction: column;
    align-items: center;
  }
  .game__triangle-1 p,
  .game__triangle-2 p {
    padding: 0 1rem;
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
  }
  .game__triangle-1 p span,
  .game__triangle-2 p span {
    font-size: 1.6rem;
  }
  .game__triangle-1 {
    top: -70px;
  }
  .game__triangle-1 img {
    transform: rotate(30deg);
  }
  .game__triangle-2 {
    right: 0;
    top: 93%;
  }
  .game__triangle-2 img {
    transform: rotate(90deg);
  }

  .spinner__gi {
    background-size: 50%;
  }
}
.modal {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100vw;
  height: 100vh;
  /*background-color: rgba(0, 0, 0, 0.8);*/
  color: #000;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 99999;
  overflow: hidden;
  transition: all 0.5s ease-in-out;
  visibility: hidden;
}
.modal.show {
  visibility: visible;
}

.modal__content {
  max-width: 560px;
  text-transform: uppercase;
  font-weight: 700;
  width: 100%;
  padding: 3rem 2rem;
  text-align: center;
  background-color: #000000;
  border: 1px solid #51fe00;
  box-shadow:
    0px 0px 10px #51fe00,
    0px 0px 20px #51fe00;
  transition: all 0.5s ease-in-out;
  position: relative;
  transform: translateY(-10%);
  opacity: 0;
}
.modal-one {
  cursor: pointer;
}
.modal.show .modal__content {
  opacity: 1;
  transform: translateY(0);
}
.modal__close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  transition: all 0.3s ease-in-out;
}
.modal__close:hover {
  transform: rotate(90deg);
}
.modal__click {
  position: absolute;
  top: 60px;
  right: 10px;
  width: 60px;
}
.modal__title {
  font-size: 5rem;

  /*line-height: 15rem;*/
  color: #51fe00;
}

.modal__text {
  font-size: 4rem;
  line-height: 4rem;
  color: #fff;
}

@media screen and (max-width: 768px) {
  .modal__content {
    background-size: 100% 110%;
  }

  .modal__text,
  .modal__title {
    font-size: 2rem;
    line-height: 2rem;
  }

  .modal__info {
    font-size: 1.4rem;
    max-width: 250px;
    line-height: 2rem;
  }

  .modal__btn {
    font-size: 2rem;
    /*max-width: 150px;*/
  }
}
@media screen and (max-width: 499px) {
  .modal__content {
    background-size: 150% 110%;
    background-position-x: 55%;
  }
}
.conf {
  position: fixed;
  top: 0;
  z-index: -9;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  transition: all 0.7s ease-in-out;
  opacity: 0;
  cursor: pointer;

  /*opacity: 1;
  z-index: 999;*/
}
.conf.show {
  opacity: 1;
  z-index: 999;
}
.confetti {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 9999;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.confetti-piece {
  position: absolute;
  width: 200px;
  height: 206px;
  background: url(../img/c-3.svg) center no-repeat;
  background-size: contain;
  top: 0;
  opacity: 0.2;
}
.confetti-piece:nth-child(1) {
  left: 7%;
  transform: rotate(-83deg) translateY(10px);
  animation: makeItRain 3s infinite ease-out;
  animation-delay: 1000ms;
  animation-duration: 3s;
  background: url(../img/c-1.svg) center no-repeat;
  background-size: contain;
  width: 400px;
}
.confetti-piece:nth-child(2) {
  left: 14%;
  transform: rotate(34deg);

  animation: makeItRain 3000ms infinite ease-out;
  animation-delay: 1111ms;
  animation-duration: 1056ms;
  background: url(../img/c-2.svg) center no-repeat;
  background-size: contain;
  transform: translateY(400px);
}
.confetti-piece:nth-child(3) {
  left: 21%;
  transform: rotate(-23deg);

  animation: makeItRain 3000ms infinite ease-out;
  animation-delay: 1401ms;
  animation-duration: 3060ms;
  background: url(../img/c-3.svg) center no-repeat;
  background-size: contain;
  transform: translateY(590px);
}
.confetti-piece:nth-child(4) {
  left: 28%;
  transform: rotate(14deg);

  animation: makeItRain 3000ms infinite ease-out;
  animation-delay: 1310ms;
  animation-duration: 1173ms;
  background: url(../img/c-4.svg) center no-repeat;
  background-size: contain;
  transform: translateY(600px);
}
.confetti-piece:nth-child(5) {
  left: 35%;
  transform: rotate(194deg) translateY(-300px);

  animation: makeItRain 3000ms infinite ease-out;
  animation-delay: 1390ms;
  animation-duration: 3989ms;
  background: url(../img/c-5.svg) center no-repeat;
  background-size: contain;
}
.confetti-piece:nth-child(6) {
  left: 42%;
  transform: rotate(10deg);

  animation: makeItRain 3000ms infinite ease-out;
  animation-delay: 151ms;
  animation-duration: 5273ms;
  background: url(../img/c-6.svg) center no-repeat;
  background-size: contain;
  transform: translateY(100px);
}
.confetti-piece:nth-child(7) {
  left: 49%;
  transform: rotate(-48deg);

  animation: makeItRain 3000ms infinite ease-out;
  animation-delay: 1132ms;
  animation-duration: 3179ms;
  background: url(../img/c-7.svg) center no-repeat;
  background-size: contain;
  transform: translateY(700px);
}
.confetti-piece:nth-child(8) {
  left: 56%;
  transform: rotate(74deg);

  animation: makeItRain 3000ms infinite ease-out;
  animation-delay: 1259ms;
  animation-duration: 1065ms;
  background: url(../img/c-8.svg) center no-repeat;
  background-size: contain;
  transform: translateY(200px);
}
.confetti-piece:nth-child(9) {
  left: 63%;
  transform: rotate(37deg);

  animation: makeItRain 3000ms infinite ease-out;
  animation-delay: 1137ms;
  animation-duration: 3812ms;
  background: url(../img/c-9.svg) center no-repeat;
  background-size: contain;
  transform: translateY(300px);
}
.confetti-piece:nth-child(10) {
  left: 70%;
  transform: rotate(-80deg);

  animation: makeItRain 3000ms infinite ease-out;
  animation-delay: 1356ms;
  animation-duration: 1032ms;
  background: url(../img/c-10.svg) center no-repeat;
  background-size: contain;
  transform: translateY(380px);
}
.confetti-piece:nth-child(11) {
  left: 77%;
  transform: rotate(-28deg);

  animation: makeItRain 3000ms infinite ease-out;

  animation-delay: 1200ms;
  animation-duration: 3010ms;
  background: url(../img/c-1.svg) center no-repeat;
  background-size: contain;
  transform: translateY(700px);
  width: 300px;
}
.confetti-piece:nth-child(12) {
  left: 84%;
  transform: rotate(69deg);

  animation: makeItRain 3000ms infinite ease-out;

  animation-delay: 1200ms;
  animation-duration: 1905ms;
  background: url(../img/c-2.svg) center no-repeat;
  background-size: contain;
  transform: translateY(560px);
}
.confetti-piece:nth-child(13) {
  left: 86%;
  transform: rotate(48deg);

  animation: makeItRain 3000ms infinite ease-out;
  animation-delay: 1230ms;
  animation-duration: 3062ms;
  background: url(../img/c-1.svg) center no-repeat;
  background-size: contain;
  transform: translateY(290px);
}
.confetti-piece:nth-child(14) {
  left: 44%;
  transform: rotate(48deg);

  animation: makeItRain 3000ms infinite ease-out;
  animation-delay: 1333ms;
  animation-duration: 1900ms;
  background: url(../img/c-3.svg) center no-repeat;
  background-size: contain;
  transform: translateY(380px);
}
.confetti-piece:nth-child(15) {
  left: 33%;
  transform: rotate(48deg) translateY(650px);

  animation: makeItRain 3000ms infinite ease-out;
  animation-delay: 2400ms;
  animation-duration: 3162ms;
  background: url(../img/c-4.svg) center no-repeat;
  background-size: contain;
  width: 340px;
}
.confetti-piece:nth-child(16) {
  left: 66%;
  transform: rotate(48deg);

  animation: makeItRain 3000ms infinite ease-out;
  animation-delay: 1340ms;
  animation-duration: 1930ms;
  background: url(../img/c-8.svg) center no-repeat;
  background-size: contain;
  transform: translateY(550px);
}
.confetti-piece:nth-child(17) {
  left: 60%;
  transform: rotate(48deg);

  animation: makeItRain 3000ms infinite ease-out;
  animation-delay: 2290ms;
  animation-duration: 3600ms;
  background: url(../img/c-9.svg) center no-repeat;
  background-size: contain;
}
.confetti-piece:nth-child(18) {
  left: 49%;
  transform: rotate(48deg);

  animation: makeItRain 3000ms infinite ease-out;
  animation-delay: 1600ms;

  animation-duration: 1300ms;
  background: url(../img/c-10.svg) center no-repeat;
  background-size: contain;
  transform: translateY(200px);
}
.confetti-piece:nth-child(19) {
  left: 0;
  transform: rotate(48deg);

  animation: makeItRain 4000ms infinite ease-out;
  animation-delay: 3600ms;

  animation-duration: 5300ms;
  background: url(../img/c-6.svg) center no-repeat;
  background-size: contain;
  transform: translateY(80px);
}
.confetti-piece:nth-child(20) {
  left: 50%;
  transform: rotate(48deg);

  animation: makeItRain 3000ms infinite ease-out;
  animation-delay: 1200ms;

  animation-duration: 1300ms;
  background: url(../img/c-3.svg) center no-repeat;
  background-size: contain;
  transform: translateY(600px);
}
.confetti-piece:nth-child(21) {
  left: 0;
  transform: rotate(53deg);

  animation: makeItRain 3000ms infinite ease-out;
  animation-delay: 500ms;
  animation-duration: 3300ms;
  background: url(../img/c-1.svg) center no-repeat;
  background-size: contain;
  transform: translateY(650px);
  width: 300px;
}
.confetti-piece:nth-child(22) {
  left: 5%;
  transform: rotate(98deg);

  animation: makeItRain 3000ms infinite ease-out;
  animation-delay: 2100ms;
  animation-duration: 4100ms;
  background: url(../img/c-3.svg) center no-repeat;
  background-size: contain;
  transform: translateY(250px);
}
.confetti-piece:nth-child(23) {
  left: 80%;
  transform: rotate(100deg);

  animation: makeItRain 3000ms infinite ease-out;
  animation-delay: 1200ms;
  animation-duration: 3300ms;
  background: url(../img/c-8.svg) center no-repeat;
  background-size: contain;
  margin-top: (100px);
}
.confetti-piece:nth-child(24) {
  left: 20%;
  top: 10%;
  transform: rotate(266deg) translateY(110px);

  animation: makeItRain 3000ms infinite ease-out;
  animation-delay: 600ms;
  animation-duration: 8300ms;
  background: url(../img/c-6.svg) center no-repeat;
  background-size: contain;
}
.confetti-piece:nth-child(25) {
  left: 54%;
  transform: rotate(48deg);

  animation: makeItRain 3000ms infinite ease-out;
  animation-delay: 1000ms;
  animation-duration: 1300ms;
  background: url(../img/c-3.svg) center no-repeat;
  background-size: contain;
  transform: translateY(500px);
}
.confetti-piece:nth-child(26) {
  left: 35%;
  transform: rotate(53deg);

  animation: makeItRain 3000ms infinite ease-out;
  animation-delay: 2600ms;
  animation-duration: 5300ms;
  background: url(../img/c-2.svg) center no-repeat;
  background-size: contain;
  transform: translateY(450px);
  width: 300px;
}
.confetti-piece:nth-child(27) {
  left: 67%;
  transform: rotate(98deg);

  animation: makeItRain 3000ms infinite ease-out;
  animation-delay: 3600ms;
  animation-duration: 9300ms;
  background: url(../img/c-3.svg) center no-repeat;
  background-size: contain;
  transform: translateY(250px);
}
.confetti-piece:nth-child(28) {
  left: 80%;
  transform: rotate(100deg);
  animation: makeItRain 3s infinite ease-out;
  animation-delay: 1600ms;
  animation-duration: 1300ms;
  background: url(../img/c-8.svg) center no-repeat;
  background-size: contain;
  margin-top: (100px);
}
/*.confetti-piece:nth-child(odd) {
  background: url(../img/c-1.svg) center no-repeat;
  background-size: contain;
}*/
.confetti-piece:nth-child(even) {
  z-index: 1;
}
.confetti-piece:nth-child(4n) {
  /*width: 5px;
  height: 12px;*/
  animation-duration: 1000ms;
}
.confetti-piece:nth-child(3n) {
  /*width: 3px;
  height: 10px;*/
  animation-duration: 5500ms;

  animation-delay: 200ms;
}
.confetti-piece:nth-child(4n-7) {
  background: url(../img/c-1.svg) center no-repeat;
  background-size: contain;
}

@keyframes makeItRain {
  /*from {
    opacity: 0.5;
  }
  20% {
    opacity: 1;
  }*/
  from {
    transform: translateY(-100px);
    /*opacity: 0;*/
  }
  10% {
    opacity: 0.6;
  }
  to {
    transform: translateY(800px);
    opacity: 1;
  }
}
