body {
  background-image: url(../images/body-bg.png);
  background-size: cover;
  background-repeat: repeat;
  background-position: center center;
  font-family: 'Chela One', system-ui;
  height: 100vh;
  width: 100%;
  overflow: hidden;
}

.main-wrapper {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.logo {
  width: 95%;
  margin: 32px auto 0;
  height: 74px;
  position: relative;
}

.digits-row {
  display: flex;
  gap: 2px;
  justify-content: center;
  flex-wrap: nowrap;
  position: absolute;
  top: 6px;
  left: 0;
  right: 0;
  margin: auto;
  width: 100%;
}
.digit-roller {
  width: 28px;
  height: 38px;
  /* background: #1f1f2b; */
  overflow: hidden;
  position: relative;
}

.roll-list {
  display: flex;
  flex-direction: column;
  animation: rollUp linear infinite;
  will-change: transform;
}

.roll-img-0 {
  background: url(../images/red/0.png) no-repeat center;
}
.roll-img-1 {
  background: url(../images/red/1.png) no-repeat center;
}
.roll-img-2 {
  background: url(../images/red/2.png) no-repeat center;
}
.roll-img-3 {
  background: url(../images/red/3.png) no-repeat center;
}
.roll-img-4 {
  background: url(../images/red/4.png) no-repeat center;
}
.roll-img-5 {
  background: url(../images/red/5.png) no-repeat center;
}
.roll-img-6 {
  background: url(../images/red/6.png) no-repeat center;
}
.roll-img-7 {
  background: url(../images/red/7.png) no-repeat center;
}
.roll-img-8 {
  background: url(../images/red/8.png) no-repeat center;
}
.roll-img-9 {
  background: url(../images/red/9.png) no-repeat center;
}
.roll-img {
  width: 28px;
  height: 38px;
  background-size: contain;
}
.digit-roller:nth-child(1) .roll-list {
  animation-duration: 6.2s;
}
.digit-roller:nth-child(2) .roll-list {
  animation-duration: 5.5s;
}
.digit-roller:nth-child(3) .roll-list {
  animation-duration: 7s;
}
.digit-roller:nth-child(4) .roll-list {
  animation-duration: 5.8s;
}
.digit-roller:nth-child(5) .roll-list {
  animation-duration: 6.8s;
}
/* 如果以后增加更多列，可继续添加，这里预留第6、7列样式 */
.digit-roller:nth-child(6) .roll-list {
  animation-duration: 7.5s;
}
.digit-roller:nth-child(7) .roll-list {
  animation-duration: 5.2s;
}
.digit-roller:nth-child(8) .roll-list {
  animation-duration: 5.4s;
}
.digit-roller:nth-child(9) .roll-list {
  animation-duration: 6.3s;
}

@keyframes rollUp {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-50%);
  }
}

.box-wraper {
  margin-top: 24px;
  padding: 0 32px;
  display: flex;
  justify-content: center;
}
.box-item {
  width: 163px;
  height: 28px;
  margin: 0 16px;
  position: relative;
}

.digits-row-red {
  display: flex;
  gap: 0px;
  justify-content: center;
  flex-wrap: nowrap;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  margin: auto;
  width: 100%;
  margin-top: 10px;
}

.digit-roller-1 {
  width: 20px;
  height: 28px;
  /* background: #1f1f2b; */
  overflow: hidden;
  position: relative;
}

.roll-img-red-0 {
  background: url(../images/p/0.png) no-repeat center;
}
.roll-img-red-1 {
  background: url(../images/p/1.png) no-repeat center;
}
.roll-img-red-2 {
  background: url(../images/p/2.png) no-repeat center;
}
.roll-img-red-3 {
  background: url(../images/p/3.png) no-repeat center;
}
.roll-img-red-4 {
  background: url(../images/p/4.png) no-repeat center;
}
.roll-img-red-5 {
  background: url(../images/p/5.png) no-repeat center;
}
.roll-img-red-6 {
  background: url(../images/p/6.png) no-repeat center;
}
.roll-img-red-7 {
  background: url(../images/p/7.png) no-repeat center;
}
.roll-img-red-8 {
  background: url(../images/p/8.png) no-repeat center;
}
.roll-img-red-9 {
  background: url(../images/p/9.png) no-repeat center;
}

.roll-list-1 {
  display: flex;
  flex-direction: column;
  animation: rollUp linear infinite;
  will-change: transform;
}

.digit-roller-1:nth-child(1) .roll-list-1 {
  animation-duration: 6.2s;
}
.digit-roller-1:nth-child(2) .roll-list-1 {
  animation-duration: 5.5s;
}
.digit-roller-1:nth-child(3) .roll-list-1 {
  animation-duration: 7s;
}
.digit-roller-1:nth-child(4) .roll-list-1 {
  animation-duration: 5.8s;
}
.digit-roller-1:nth-child(5) .roll-list-1 {
  animation-duration: 6.8s;
}
.digit-roller-1:nth-child(6) .roll-list-1 {
  animation-duration: 7.5s;
}
.digit-roller-1:nth-child(7) .roll-list-1 {
  animation-duration: 5.2s;
}

.roll-img-b-0 {
  background: url(../images/b/0.png) no-repeat center;
}
.roll-img-b-1 {
  background: url(../images/b/1.png) no-repeat center;
}
.roll-img-b-2 {
  background: url(../images/b/2.png) no-repeat center;
}
.roll-img-b-3 {
  background: url(../images/b/3.png) no-repeat center;
}
.roll-img-b-4 {
  background: url(../images/b/4.png) no-repeat center;
}
.roll-img-b-5 {
  background: url(../images/b/5.png) no-repeat center;
}
.roll-img-b-6 {
  background: url(../images/b/6.png) no-repeat center;
}
.roll-img-b-7 {
  background: url(../images/b/7.png) no-repeat center;
}
.roll-img-b-8 {
  background: url(../images/b/8.png) no-repeat center;
}
.roll-img-b-9 {
  background: url(../images/b/9.png) no-repeat center;
}
.roll-img-c-0 {
  background: url(../images/c/0.png) no-repeat center;
}
.roll-img-c-1 {
  background: url(../images/c/1.png) no-repeat center;
}
.roll-img-c-2 {
  background: url(../images/c/2.png) no-repeat center;
}
.roll-img-c-3 {
  background: url(../images/c/3.png) no-repeat center;
}
.roll-img-c-4 {
  background: url(../images/c/4.png) no-repeat center;
}
.roll-img-c-5 {
  background: url(../images/c/5.png) no-repeat center;
}
.roll-img-c-6 {
  background: url(../images/c/6.png) no-repeat center;
}
.roll-img-c-7 {
  background: url(../images/c/7.png) no-repeat center;
}
.roll-img-c-8 {
  background: url(../images/c/8.png) no-repeat center;
}
.roll-img-c-9 {
  background: url(../images/c/9.png) no-repeat center;
}
.roll-img-red {
  width: 20px;
  height: 28px;
  background-size: contain;
}
.box-1 .roll-list-1 {
  animation-delay: -5.7s;
}
.box-2 .roll-list-1 {
  animation-delay: -2.3s;
}
.box-3 .roll-list-1 {
  animation-delay: -9.7s;
}

.text-wrapper {
  text-align: center;
  margin-top: 40px;
}
.niu-img {
  width: 352px;
  height: 280px;
}

.mian-spin {
  padding: 0 20px;
  position: relative;
  text-align: center;
  margin-top: -64px;
}

.my-bg {
  display: block;
  width: 530px;
  max-height: 380px;
  margin: auto;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  margin: auto;
}
.my-bg2 {
  display: block;
  width: 530px;
  max-height: 445px;
  position: absolute;
  top: -65px;
  left: 0;
  right: 0;
  margin: auto;
}

.spinner-wrapper {
  margin: auto;
  width: 530px;
  height: 367px;
  overflow: hidden;
  padding-top: 18px;
}
.spinner {
  position: relative;
  width: 100%;
  display: flex;
  padding: 0 16px;
  gap: 8px;
}
.spinner-col {
  /* position: absolute; */
  width: 95px;
  height: 359px;
  overflow: hidden;
  display: inline-block;
}
.spinner-col .img {
  display: block;
  background-image: url(../images/1.png);
  background-repeat: repeat-y;
  width: 100%;
  height: 14400px;
  background-size: contain;
  transition: margin-top 3s;
}

.spinner-col2 .img {
  background-image: url(../images/2.png);
  transition: margin-top 4s;
}

.spinner-col3 .img {
  background-image: url(../images/3.png);
  /* margin-top: -104px; */
  transition: margin-top 5s;
}

.spinner-col4 .img {
  background-image: url(../images/4.png);
  /* margin-top: -104px; */
  transition: margin-top 5s;
}

.spinner-col5 .img {
  background-image: url(../images/5.png);
  /* margin-top: -104px; */
  transition: margin-top 5s;
}

.btn-spin {
  border: none;
  background: none;
  padding: 0;
  position: absolute;
  left: 0;
  right: 0;
  bottom: -37px;
  animation: zoom-in-zoom-out 1s ease infinite;
  width: 68px;
  height: 68px;
  margin: auto;
}

.spin-modal-backdrop {
  position: fixed;
  top: 0px;
  left: 0px;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.84);
  opacity: 0;
  z-index: 1071;
  display: none;
}
.spin-modal {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translate(-50%, 0%);
  width: calc(100% - 40px);
  max-width: 760px;
  color: #fff;
  z-index: 1072;
  transition: all 1s;
  animation: glowing2 1500ms infinite;
  padding: 15px 30px;
  border: 8px solid #f6d641;
  border-radius: 20px;
  /* overflow: hidden; */
  background: rgba(1, 0, 41, 0.8);
  box-shadow: rgba(174, 20, 87, 0.8) 0px 0 49px 30px;
}
.jackpot-img {
  text-align: center;
  margin: -80px 0 20px 0;
  animation: zoom-in-zoom-out 1s ease infinite;
}
.jackpot-list ul {
  padding: 0;
  margin: 0;
}
.jackpot-list ul li {
  display: flex;
  align-items: start;
  gap: 16px;
  margin: 0 0 12px 0;
}
.jackpot-list ul li:last-child {
  margin: 0;
}
.jackpot-list ul li p {
  font-size: 30px;
  line-height: 36px;
  font-family: 'Oswald';
  font-weight: 600;
  margin: 0;
}
.jackpot-list ul li p span {
  color: #ece90f;
}
.spin-modal.open {
  top: 50%;
  transform: translate(-50%, -50%);
}
.jackpot-btn {
  text-align: center;
  margin: 20px 0 -68px 0;
}
.jackpot-btn a {
  font-size: 55px;
  line-height: 65px;
  font-family: 'Oswald';
  font-weight: 600;
  text-transform: uppercase;
  border-radius: 10px;
  display: inline-block;
  text-decoration: none;
  color: #3cecaa;
  background: linear-gradient(to bottom, #ff1650 0%, #fec646 100%);
  padding: 10px 40px 15px;
  border: 4px solid #eebc46;
  animation: zoom-in-zoom-out 1s ease infinite;
  text-shadow: 2px 0 #2f0969, -2px 0 #2f0969, 0 2px #2f0969, 0 -2px #2f0969, 1px 1px #2f0969, -1px -1px #2f0969,
    1px -1px #2f0969, -1px 1px #2f0969;
}

.spinner-col1.spinned-1 .img {
  margin-top: -12642px;
}
.spinner-col2.spinned-1 .img {
  margin-top: -12463px;
}
.spinner-col3.spinned-1 .img {
  margin-top: -12549px;
}
.spinner-col4.spinned-1 .img {
  margin-top: -12716px;
}
.spinner-col5.spinned-1 .img {
  margin-top: -12424px;
}
@media (max-width: 9999px) {
  .logo {
    width: 384px;
  }
}
@media (max-width: 1400px) {
  .logo {
    width: 384px;
  }
}

@media (max-width: 991px) {
}

@media (max-width: 642px) {
  .digit-roller-1 {
    height: 24px;
  }
  .roll-img-red {
    height: 24px;
  }
}

@media (max-width: 767px) {
  .jackpot-btn a {
    font-size: 45px;
  }
  .jackpot-list ul li p {
    font-size: 26px;
    line-height: 36px;
  }
  .jackpot-img img {
    width: 280px;
  }
}

@media (max-width: 575px) {
  .box-item {
    margin: 0px;
  }
  .mian-spin {
    padding: 0;
    position: relative;
    top: -20px;
  }
  .my-bg,
  .my-bg2 {
    width: 325px;
  }
  .my-bg2 {
    width: 325px;
    top: -48px;
  }
  .text-wrapper {
    margin-top: 0;
  }

  .spinner-wrapper {
    width: 325px;
    height: 248px;
    padding-top: 20px;
  }
  .spinner-col {
    width: 65px;
    height: 198px;
  }

  .btn-spin {
    width: 55px;
    height: 55px;
    bottom: -24px;
  }

  .jackpot-btn a {
    font-size: 35px;
    padding: 0px 30px 5px;
  }
  .jackpot-img img {
    width: 250px;
  }

  .spinner-col1.spinned-1 .img {
    margin-top: -12456px;
  }
  .spinner-col2.spinned-1 .img {
    margin-top: -12509px;
  }
  .spinner-col3.spinned-1 .img {
    margin-top: -12549px;
  }
  .spinner-col4.spinned-1 .img {
    margin-top: -12701px;
  }
  .spinner-col5.spinned-1 .img {
    margin-top: -12446px;
  }
}

@keyframes zoom-in-zoom-out {
  0% {
    scale: 100%;
  }
  50% {
    scale: 90%;
  }
  100% {
    scale: 100%;
  }
}

@media (max-width: 530px) {
  .box-item {
    margin: 0px;
  }
}

@media (max-width: 480px) {
  .box-item {
    margin: 0px;
  }

  .spin-modal {
    top: -230%;
  }

  .jackpot-list ul li img {
    max-width: 30px;
  }
  .jackpot-list ul li {
    gap: 6px;
  }
  .jackpot-list ul li p {
    font-size: 18px;
    line-height: 25px;
  }
  /* .spin-modal{
    padding: 15px 10px;
} */
  .jackpot-btn a {
    font-size: 25px;
    padding: 5px 20px 5px;
    line-height: 48px;
  }
  .jackpot-btn {
    margin: 20px 0 -48px 0;
  }
}
@media (max-width: 452px) {
  .digit-roller-1 {
    width: 18px;
    height: 20px;
  }
  .roll-img-red {
    width: 16px;
    height: 20px;
  }
  .digits-row-red {
    margin-top: 4px;
  }
}

@media (max-width: 399px) {
  .logo {
    width: 95%;
  }
  .logo-bg {
    height: 70px;
  }
  .digits-row {
    justify-content: space-around;
    padding: 0 10%;
  }
  .digit-roller {
    width: 18px;
    height: 28px;
    /* background: #1f1f2b; */
    overflow: hidden;
    position: relative;
  }
  .roll-img {
    width: 16px;
    height: 38px;
    background-size: contain;
  }
}
