@font-face {
  font-family: "Jersey 15";
  src: url('../fonts/Jersey15-Regular.ttf');
  font-weight: 400;
  font-style: normal;
	font-display: swap;
}
.wheel-pseudo {
  height: 900px;
}
.wheel__box {

}
.wheel__fone {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.80);
  visibility: hidden;
  opacity: 0;
  z-index: 99;
}
.wheel {
  position: absolute;
  top: 206px;
  right: 100px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  z-index: 30;
  user-select: none;
}
.wheel__body {
  width: 100%;
  height: 100%;
  background: linear-gradient(225deg, #EBFB00 16%, #C4B407 22.46%, #C9F215 35.39%, #E1FF00 53.35%, #8CB406 70.59%, #FF0 87.83%);
  border-radius: 50%;
  position: relative;
  overflow: hidden;
}
.wheel__body:hover {
  cursor: pointer;
}
.wheel__body::before {
  content: "";
  display: block;
  width: calc(100% - 10px);
  height: calc(100% - 10px);
  position: absolute;
  top: 5px;
  left: 5px;
  background: linear-gradient(225deg, #000604 16%, #303030 44.73%, #000604 87.83%);
  border-radius: 50%;
  z-index: 1;
}
.wheel__arrow {
  position: absolute;
  top: 0;
  left: calc(50% - 15px);
  z-index: 5;
}
.wheel__roulette {
  position: absolute;
  z-index: 2;
  width: 85%;
  height: 85%;
  left: 7.5%;
  top: 7.5%;
  border-radius: 50%;
  overflow: hidden;
}
.wheel__circle {
  position: absolute;
  z-index: 1;
  width: 87%;
  height: 87%;
  left: 6.5%;
  top: 6.5%;
  border-radius: 50%;
  background: linear-gradient(135deg, #EF0 16.82%, #E9D600 22.71%, #FF0 34.48%, #CAD80C 50.84%, #FFD900 66.55%, #FFF600 82.25%);
}

.wheel__roulette--fone {
  position: absolute;
  top: 0%;
  left: 0%;
  width: 100%;
  height: 100%;
  z-index: 1;

}
.wheel__roulette__section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding-top: 40px;
  width: 42%;
  height: 100%;
  position: absolute;
  z-index: 3;
  top: 0;
  left: 29%;
  font-size: 190%;
}
.wheel__roulette__section img {
  width: 33.9%;
  height: auto;
}
.wheel__roulette__section--p {
  color: inherit;
  font-family: "Jersey 15";
  font-size: inherit;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  font-size: 80%;
}
.wheel__roulette__section--p.win {
  opacity: 0;
  visibility: hidden;
  text-align: center;
  white-space: nowrap;
  position: absolute;
  bottom: 140px;
  color: #fff;
}
.wheel__roulette__section--p.win span {
  color: #627EEA;
}
.wheel__roulette__section--p.win b {
  color: #E3FF10;
}
.wheel__roulette .wheel__roulette__section:nth-child(1){
  transform: rotate(0);
  color: #0A6F19;
}
.wheel__roulette .wheel__roulette__section:nth-child(2){
  transform: rotate(45deg);
  gap: 0;
  color: #F3BA2F;
}
.wheel__roulette .wheel__roulette__section:nth-child(3){
  transform: rotate(90deg);
  color: #0A6F19;
}
.wheel__roulette .wheel__roulette__section:nth-child(4){
  transform: rotate(135deg);
  color: #084A0A;
}
.wheel__roulette__section-5 {
  transform: rotate(180deg);
  gap: 10px;
  color: #627EEA;
  z-index: 5;
}
.wheel__roulette__section-5--fone {
  position: absolute;
  transform: rotate(180deg);
  width: 0;
  height: auto;
  top: -5px;
  left: 50%;
  z-index: 1;
}
.wheel__roulette__section-5--fone svg {
  width: 100%;
  height: auto;
}
.wheel__roulette__section-5--fone.active {
  width: 400%;
  height: 400%;
  top: 0;
  left: -200%;
}
.wheel__roulette__section-5 img,
.wheel__roulette__section-5 p {
  position: relative;
  z-index: 2;
}
.wheel__roulette .wheel__roulette__section:nth-child(6){
  transform: rotate(225deg);
  color: #084A0A;
  font-size: 170%;
}
.wheel__roulette .wheel__roulette__section:nth-child(7){
  transform: rotate(270deg);
  color: #F7931A;
  font-size: 250%;
  gap: 5px;
}
.wheel__roulette .wheel__roulette__section:nth-child(8){
  transform: rotate(315deg);
  color: #084A0A;
}

.wheel__center {
  position: absolute;
  top: 40%;
  left: 40%;
  z-index: 5;
  width: 20%;
  height: 20%;
}
.wheel-btn {
  margin: 0;
  padding: 0;
  position: absolute;
  border-radius: 102px;
  background: #E3FF10;
  text-align: center;
  line-height: 50px;
  color: #005308;
  font-family: "Jersey 15";
  font-size: 48px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
}
.wheel-btn::before {
  content: "";
  display: block;
  position: absolute;
  top: -11px;
  left: -12px;
  width: calc(100% + 24px);
  height: calc(100% + 22px);
  border-radius: 102px;
  border: 8px solid #E3FF10;
}
.wheel-btn-open {
  bottom: -3px;
  left: calc(50% - 121px);
  width: 242px;
  height: 50px;
}
.wheel-btn-send,
.wheel-btn-connect {
  bottom: 0;
  left: calc(50% - 200px);
  width: 400px;
  height: 60px;
  line-height: 60px;
  font-size: 70px;
  transform: scale(0);
  opacity: 0;
  visibility: hidden;
}
.wheel-btn-connect {
  bottom: -80px;
  transform: scale(1);
  width: 400px;
  left: calc(50% - 200px);
  opacity: 1;
  visibility: visible;
  display: none;
}
.wheel__box:not(.active) .wheel-btn-connect {
  bottom: -50px;
}
.wheel--close {
  display: none;
  width: 59px;
  height: 59px;
  position: absolute;
  top: -20px;
  right: -76px;
  opacity: 0;
  visibility: hidden;
  user-select: none;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  width: 2.5vw;
  max-width: 50px;
}
.wheel--close svg {
  display: block;
  width: 50%;
  height: auto;
}
.wheel--text {
  display: none;
  position: absolute;
  bottom: -70px;
  left: 0;
  color: #FFF;
  font-family: "Jersey 15";
  font-size: 5vw;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  visibility: hidden;
  opacity: 0;
  white-space: nowrap;
  user-select: none;
  font-size: 34px;
  width: 100%;
  text-align: center;
  display: flex;
  justify-content: center;
}
.wheel--text:hover {
  cursor: pointer;
}
.wheel--text-phase-3 {
  position: absolute;
  left: calc(-50vw + 50%);
  top: calc(100% - 90px);
  width: 100vw;
  display: none;
}
.wheel--text-phase-3 p,
.wheel--text-phase-5 p {
  margin: 0 auto 10px auto;
  max-width: 100%;
  width: 1290px;
  color: #FFF;
  font-family: "Jersey 15";
  font-size: 25px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  visibility: hidden;
  opacity: 0;
}
.wheel--text-phase-3 p span,
.wheel--text-phase-5 p span {
  color: #f00;
}
.wheel__blur-fone {
  position: absolute;
  z-index: 101;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(28px);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-direction: column;
  visibility: hidden;
  opacity: 0;
}
.wheel--loading {
  transform: scale(0);
  position: absolute;
  top: calc(45vh - 121px);

}
.wheel--img-phase-5 {
  margin-top: 30px;
  transform: scale(0);
  visibility: hidden;
  max-height: 50vh;
  max-width: 50vw;
  width: auto;
  object-fit: cover;
}
.wheel--text-phase-5 {
  margin: 0 auto;
  max-width: 100%;
  width: 50vw;
}
.wheel-btn-retry {
  position: static;
  width: 300px;
  font-size: 56px;
  margin-top: 40px;
  opacity: 0;
  visibility: hidden;
  transform: scale(0) translateY(-300px);
  height: 50px;
}
/* == timings == */
.wheel__fone {
  transition: 1s;
}
.wheel {
  transition: 1s;
}
.wheel__roulette__section--p.win {
  transition: 0.5s;
  transition-delay: 1s;
}
.wheel__roulette__section-5--fone {
  z-index: 1;
  transition: 2s;
}
.wheel__roulette__section-5--fone svg {
  transition: 2s;
}
.wheel__roulette__section-5 img,
.wheel__roulette__section-5 p {
  z-index: 2;
  transition: 2s;
}
.wheel__box.phase-2 .wheel__roulette {
  transition: 7s;
  transition-timing-function: ease-out;
}
.wheel-btn {
  transition: 0.4s;
  animation-name: bouncing;
  animation-duration: 3s;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}
.wheel-btn-send,
.wheel-btn-connect {
  transition: 1s;
  transition-delay: 1s;
}
.wheel--close {
  transition: 0.5s;
}
.wheel--text {
  transition: 0.5s;
  animation-name: bouncing;
  animation-duration: 3s;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}
.wheel--text-phase-3 p,
.wheel--text-phase-5 p {
  transition: 1s;
}
.wheel--text-phase-3 p:nth-child(1){
  transition-delay: 1s;
}
.wheel--text-phase-3 p:nth-child(2){
  transition-delay: 1.5s;
}
.wheel--text-phase-3 p:nth-child(3){
  transition-delay: 2s;
}
.wheel__blur-fone {
  transition: 1s;
}
.wheel--loading {
  transition: 1s;
  transition-delay: 1s;
}
.wheel--loading svg {
  animation-name: loading;
  animation-duration: 3s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}
.wheel--img-phase-5 {
  transition: 1s;
  transition-delay: 2s;
}
.wheel--text-phase-5 p:nth-child(1) {
  transition-delay: 3s;
}
.wheel--text-phase-5 p:nth-child(2) {
  transition-delay: 3.5s;
}
.wheel-btn-retry {
  animation-name: none;
  transition: 1s;
  transition-delay: 4s;
}
/* == animations == */
@keyframes bouncing {
  0% {
    transform: translateY(-10px);
  }
  50% {
    transform: translateY(10px);
  }
  100% {
    transform: translateY(-10px);
  }
}
@keyframes loading {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
.wheel__box.active .wheel__fone {
  opacity: 1;
  visibility: visible;
}
.wheel__box.active .wheel {
  z-index: 100;
  transform: scale(1);
  left: auto;
}
.wheel__box.active .wheel-btn-open,
.wheel__box.phase-2 .wheel-btn-open {
  visibility: hidden;
  opacity: 0;
}
.wheel__box.phase-1 .wheel--close,
.wheel__box.phase-1 .wheel--text  {
  display: block;
  visibility: visible;
  opacity: 1;
}
.wheel__box.phase-1 .wheel--text {
  display: flex;
}
.wheel__box.phase-2 .wheel--text {
  visibility: hidden;
  opacity: 0;
}
.wheel__box.phase-2 .wheel__roulette {
  transform: rotate(2700deg);
}
.wheel__box.phase-3 .wheel__roulette__section-5--fone {
  width: 400%;
  left: -150%;
}
.wheel__box.phase-3 .wheel__roulette__section-5 img {
  transform: scale(1.2) translateY(10px);
}
.wheel__box.phase-3 .wheel__roulette__section-5 p {
  transform: scale(1.4) translateY(20px);
}
.wheel__box.phase-3 .wheel__roulette__section--p.win {
  transform: scale(1.4) translateY(40px);
  opacity: 1;
  visibility: visible;
  font-size: 85%;
  line-height: 85%;
}
.wheel__box.phase-3 .wheel-btn-send {
  bottom: -70px;
  transform: scale(1);
  opacity: 1;
  visibility: visible;
} 
.wheel__box.phase-2 .wheel--text-phase-3 {
  display: block;
}
.wheel__box.phase-3 .wheel--text-phase-3 p {
  transform: translateY(200px);
  opacity: 1;
  visibility: visible;
}
.wheel__box.phase-4 .wheel__blur-fone {
  opacity: 1;
  visibility: visible;
}
.wheel__box.phase-4 .wheel--loading {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}
.wheel__box.phase-5 .wheel--loading {
  opacity: 0;
  visibility: hidden;
  transform: scale(0);
}
.wheel__box.phase-5 .wheel--img-phase-5 {
  visibility: visible;
  transform: scale(1);
}
.wheel__box.phase-5 .wheel--text-phase-5 p {
  transform: translateY(30px);
  opacity: 1;
  visibility: visible;
}
.wheel__box.phase-5 .wheel-btn-retry  {
  transform: scale(1) translateY(0);
  opacity: 1;
  visibility: visible;
  animation-name: bouncing;
}
.wheel__box.phase-6 .wheel__blur-fone {
  opacity: 0;
  visibility: hidden;
}
.wheel__box.phase-6 .wheel__blur-fone * {
  display: none!important;
}
.wheel__box:not(.active) .wheel--text-phase-3 {
  visibility: hidden;
  opacity: 0;
  display: none;
}

@media(max-width: 10000px){
  .wheel {
    right: 25vw;
  }
}
@media(max-width: 2300px){
  .wheel {
    right: 20vw;
  }
}
@media(max-width: 2100px){
  .wheel {
    right: 15vw;
  }
}
@media(max-width: 1800px){
  .wheel-pseudo {
    height: 700px;
  }
  .wheel {
    top: 120px;
    right: 10vw;
  }
}
@media(max-width: 1600px){
  .wheel {
    right: 10vw;
  }
}
@media(max-width: 1500px){
  .wheel {
    right: 50px;
  }
}
@media(max-width: 1300px){
  .wheel {
    top: 80px;
    right: -60px;
    transform: scale(0.7);
  }
  .wheel-pseudo {
    height: 500px;
  }
  .wheel--text-phase-5 {
    width: 90vw;
  }
  .wheel--text-phase-3 {
    padding: 0 40px;
  }
}
@media(max-width: 950px){
  .wheel {
    top: 0;
    right: -140px;
    transform: scale(0.5);
  }
  .wheel-pseudo {
    height: 300px;
  }
}
@media(max-width: 768px){
  .wheel-pseudo {
    height: 350px;
  }
  .wheel {
    top: 0;
    right: auto;
    transform: scale(0.6);
    left: -50px;
  }
}
@media(max-width: 500px){
  .wheel {
    top: -60px;
    left: -90px;
    transform: scale(0.5);
  }
  .wheel-pseudo {
    height: 270px;
  }
  .wheel__arrow {
    top: -40px;
  }
  .wheel__roulette__section {
    padding-top: 20px;
  }
  .wheel__roulette__section--p {
    font-size: 60%;
  }
  .wheel__roulette__section-5 {
    gap: 5px
  }
  .wheel--text {
    max-width: 100%;
    white-space: normal;
    font-size: 30px;
    bottom: auto;
    top: calc(100% + 10px);
  }
  .wheel__box.phase-3 .wheel__roulette__section--p.win {
    font-size: 18px;
    bottom: 120px;
  }
  .wheel-btn-send, .wheel-btn-connect {
    bottom: -50px;
    left: calc(50% - 100px);
    width: 200px;
    height: 30px;
    line-height: 30px;
    font-size: 30px;
  }
  .wheel-btn::before {
    top: -6px;
    left: -6px;
    width: calc(100% + 12px);
    height: calc(100% + 12px);
    border-radius: 102px;
    border: 3px solid #E3FF10;
  }
  .wheel__box.phase-3 .wheel-btn-send {
    bottom: -50px;
  }
  .wheel--text-phase-3 {
    padding: 0;
    position: absolute;
    left: 0;
    top: calc(100% - 120px);
    width: 100%;
  }
  .wheel--text-phase-3 p, .wheel--text-phase-5 p {
    margin: 0 auto 20px auto;
    font-size: 20px;
  }
  .wheel--loading {
    top: calc(50vh - 60px);
    left: calc(50vw - 60px);
    width: 120px;
    height: 120px;
  }
  .wheel--loading svg {
    width: 100%;
    height: 100%;
  }
  .wheel-btn-retry {
    width: 200px;
    font-size: 30px;
    margin-top: 40px;
    height: 30px;
  }
  .wheel--close {
    top: -30px;
    right: 0;
    width: 30px;
    max-width: 50px;
  }
  .wheel__blur-fone {
    position: fixed;
    width: 100%;
    height: 100vh;
    align-items: center;
    justify-content: center;
  }
  .wheel--img-phase-5 {
    margin-top: 0;
  }
}