@charset "UTF-8";
/* 

转盘

*/
#wheel {
  margin: 0 auto;
}

#wheel .main {
  width: 300px;
  height: 300px;
  display: block;
  margin: 12% auto 0;
  position: relative;
}

#wheel .wheelPanel {
  width: 100%;
  height: 100%;
  aspect-ratio: 1/1;
  transition: transform 4s cubic-bezier(0.33, 1, 0.68, 1);
  will-change: transform;
  /* 初始不旋转 */
  transform: rotate(0deg) translateZ(0);
}

#wheel .wheelPanel img {
  width: 100%;
  height: 100%;
}

#wheel .wheelPanel .dartAim {
  width: 60px;
  height: 60px;
  position: absolute;
  display: none;
  top: 20px;
  left: 75px;
}

#wheel .dart {
  width: 100px;
  height: 100px;
  position: absolute;
  left: 50%;
  bottom: -150px;
  transform: translateX(-50%);
}

#wheel .fly {
  animation: fly 4s ease-in-out backwards;
}

@keyframes fly {
  0% {
    display: block;
    bottom: -150px;
    transform: translateX(-50%) scale(1.5);
  }
  25% {
    bottom: 0px;
    transform: translateX(-50%) scale(1.5);
  }
  100% {
    bottom: -3%;
    transform: translateX(-50%) scale(0.6);
  }
}

#wheelMask {
  position: fixed;
  width: 100vw;
  height: 100vh;
  top: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 99999;
  display: none;
  /* 默认隐藏 */
}

.wheelModal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 960px;
  height: 450px;
  background: url(../images/wheel_bg.png) no-repeat center center/cover;
  z-index: 99999;
  overflow: hidden;
  display: none;
}

.wheelModal .close {
  position: absolute;
  top: 20px;
  right: 20px;
  cursor: pointer;
}

.wheelModal .wheelText {
  height: 32px;
  position: absolute;
  top: 50px;
  left: 50%;
  transform: translateX(-50%);
}

.wheelModal .prize {
  display: none;
}

.wheelModal .prize .prizeImg {
  display: block;
  margin: 10% auto 0;
  height: 260px;
}

.wheelModal .prize a {
  width: fit-content;
  display: block;
  margin: 20px auto 0;
  cursor: pointer;
}

.wheelModal .prize a img {
  width: 40px;
  height: 40px;
}

@media all and (min-width: 0px) and (max-width: 768px) {
  #wheel .main {
    width: 80%;
    height: 80%;
    margin: 30% auto 0;
  }
  #wheel .dart {
    bottom: -180px;
  }
  .wheelModal {
    width: 90%;
    aspect-ratio: 1/1.2;
    height: auto;
    background: url(../images/wheel_bg_sp.png) no-repeat center center/cover;
  }
  .wheelModal .wheelText {
    height: 28px;
  }
  .wheelModal .prize {
    height: 100%;
  }
  .wheelModal .prize a {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 10%;
  }
  .wheelModal .prize .prizeImg {
    width: 90%;
    height: auto;
    position: absolute;
    top: 22%;
    left: 50%;
    transform: translateX(-50%);
  }
  .wheelModal .prize .prizeContent {
    position: relative;
    height: 100%;
  }
  .wheelModal .close {
    width: 28px;
    height: 28px;
    top: 10px;
    right: 10px;
  }
}
