

/*H5游戏共用类*/
#wrap {
  position: relative;
  width: 100%;
  height: 16.01333333rem;
}
/*奖品展示*/
.awards {
  overflow: hidden;
  position: absolute;
  left: 50%;
}
.awards .swiper-slide {
  margin: 0.06666667rem 0.26666667rem;
  padding: 0.2rem;
  width: 1.4rem;
  height: 1.4rem;
  background-image: url("../image/drag_box.png");
}
.awards .swiper-slide img {
  width: inherit;
  height: inherit;
}
/*规则弹窗*/
#mask-rule,
#mask {
  display: none;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 10;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
}
#mask-rule .box-rule {
  position: relative;
  margin: 20% auto;
  padding-top: 0.53333333rem;
  width: 90%;
  height: 70%;
  border-radius: 0.26666667rem;
}
#mask-rule .box-rule .star {
  position: absolute;
  left: 50%;
  top: -1.33333333rem;
  margin-left: -1.73333333rem;
  width: 3.45333333rem;
  height: 1.16rem;
}
#mask-rule .box-rule h2 {
  width: 100%;
  text-align: center;
  line-height: 0.45333333rem;
  font-size: 0.45333333rem;
  font-weight: normal;
  color: #fff;
}
#mask-rule .box-rule h2::before,
#mask-rule .box-rule h2::after {
  display: inline-block;
  content: "";
  width: 0.24rem;
  height: 0.24rem;
  background-color: #fff;
  border-radius: 50%;
}
#mask-rule .box-rule h2::before {
  margin-right: 0.32rem;
}
#mask-rule .box-rule h2::after {
  margin-left: 0.32rem;
}
#mask-rule #close-rule {
  position: absolute;
  right: 0.45333333rem;
  top: 0.50666667rem;
  width: 0.53333333rem;
  height: 0.53333333rem;
  background-image: url("../image/close.png");
}
/*内容盒子*/
#mask-rule .con {
  overflow: auto;
  position: relative;
  margin: 0.53333333rem auto;
  padding-right: 0.2rem;
  width: 7.73333333rem;
  height: 82%;
  line-height: 0.64rem;
  font-size: 0.34666667rem;
  color: #fff;
}
#mask-rule .con .text {
  position: absolute;
  top: 0;
  left: 0;
  width: inherit;
  height: auto;
}
/*中奖提示*/
#mask {
  display: none;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 10;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
}
#mask .blin {
  width: 100%;
  height: 100%;
 background: url("../image/gold.png") no-repeat center;
  -o-animation: circle 10s linear infinite;
  -ms-animation: circle 10s linear infinite;
  -moz-animation: circle 10s linear infinite;
  -webkit-animation: circle 10s linear infinite;
  animation: circle 10s linear infinite;
}
@media (max-width:768px){
#mask .blin {
  width: 100%;
  height: 100%;background: url("../image/gold.png") no-repeat center; background-size:100% auto;
  -o-animation: circle 10s linear infinite;
  -ms-animation: circle 10s linear infinite;
  -moz-animation: circle 10s linear infinite;
  -webkit-animation: circle 10s linear infinite;
  animation: circle 10s linear infinite;
}
}
@keyframes circle {
  0% {
    -o-transform: rotate(0deg);
    -ms-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -o-transform: rotate(360deg);
    -ms-transform: rotate(360deg);
    -moz-transform: rotate(360deg);
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
#mask .caidai {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  background-image: url("../image/dianzhui.png");
  -o-transform: scale(1.2);
  -ms-transform: scale(1.2);
  -moz-transform: scale(1.2);
  -webkit-transform: scale(1.2);
  transform: scale(1.2);
}
@media (max-width:768px){
	#mask .caidai {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  background-image: url("../image/dianzhui.png");
  background-size:100% auto;
  -o-transform: scale(1.2);
  -ms-transform: scale(1.2);
  -moz-transform: scale(1.2);
  -webkit-transform: scale(1.2);
  transform: scale(1.2);
}
}
#mask .winning {
  position:absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  width:480px;
  height:480px; margin:-340px 0 0 -280px;

  -o-transform: scale(0.1);
  -ms-transform: scale(0.1);
  -moz-transform: scale(0.1);
  -webkit-transform: scale(0.1);
  transform: scale(0.1);
}

@media (max-width:768px){
#mask .winning {
  position:absolute;
  left: 10%;
  top: 50%;
  z-index: 1;
  width:80%;
  height:255px; margin:-160px 0 0 0;

  -o-transform: scale(0.1);
  -ms-transform: scale(0.1);
  -moz-transform: scale(0.1);
  -webkit-transform: scale(0.1);
  transform: scale(0.1);
}
	
}
#mask .reback {
  -o-animation: reback .5s linear forwards;
  -ms-animation: reback .5s linear forwards;
  -moz-animation: reback .5s linear forwards;
  -webkit-animation: reback .5s linear forwards;
  animation: reback .5s linear forwards;
}
@keyframes reback {
  100% {
    -o-transform: scale(1);
    -ms-transform: scale(1);
    -moz-transform: scale(1);
    -webkit-transform: scale(1);
    transform: scale(1);
  }
}
.winning .red-head {
  position: relative;
  bottom:-90px;
  width: 100%;
  height:267px;
  background:url(../image/top.png) no-repeat center top; background-size:auto 270px;
}
.winning .red-body {
  position: relative;
  top: -30px;
  z-index: 2;
  width: 100%;
  height:288px; background:url(../image/bottom.png) no-repeat center bottom; background-size:auto 288px;
}
.winning #card {
  position: absolute;
  left:10%;
  top: 50%;
  z-index: 1;
  width: 80%;
  height:260px;
   background:url(../image/redPack/middle.png) no-repeat center bottom; background-size:auto 260px;
  -o-transition: top .5s;
  -ms-transition: top .5s;
  -moz-transition: top .5s;
  -webkit-transition: top .5s;
  transition: top .5s;
}
#card .win {
  display: block;
  margin:15px auto;
  width: 92%;
  height:240px; line-height:1.7; color:#f00; text-align:center; 
   background:url(../image/prize2.png) no-repeat center;
   background-size:auto 240px;
}
#card .win h2{ padding:20px 0 0 0; font-size:56px; font-weight:bold;}
#card .win h2 p{ font-size:14px; padding:0 30px; color:#aaa;}
#card .win h2 span{ font-size:20px;}
.winning .pull {
  -o-animation: card .5s linear forwards;
  -ms-animation: card .5s linear forwards;
  -moz-animation: card .5s linear forwards;
  -webkit-animation: card .5s linear forwards;
  animation: card .5s linear forwards;
}
@media (max-width:768px){
.winning .red-head {
  position: relative;
  bottom:auto; top:10px;
  width: 100%;
  height:167px;
  background:url(../image/top.png) no-repeat center top; background-size:auto 167px;
}
.winning .red-body {
  position:absolute;
  top:auto;
  bottom:-30px;

  z-index: 2;
  width: 100%;
  height:180px; background:url(../image/bottom.png) no-repeat center bottom; background-size:auto 180px;
}
.winning #card {
  position: absolute;
  left:10%;
  top:55%;
  z-index: 1;
  width: 80%;
  height:140px; overflow:hidden;
  -o-transition: top .5s;
  -ms-transition: top .5s;
  -moz-transition: top .5s;
  -webkit-transition: top .5s;
  transition: top .5s;
}

#card .win {
  display: block;
  margin:15px auto;
  width: 92%;
  height:240px; line-height:1.7; color:#f00; text-align:center; 
   background:url(../image/prize2.png) no-repeat center;
   background-size:auto 240px;
}
#card .win h2{ padding:20px 0 0 0; font-size:28px; font-weight:bold;}
#card .win h2 p{ font-size:0.7rem; padding:0 25px; color:#aaa;}
#card .win h2 span{ font-size:20px;}
.winning .pull {
  -o-animation: card .5s linear forwards;
  -ms-animation: card .5s linear forwards;
  -moz-animation: card .5s linear forwards;
  -webkit-animation: card .5s linear forwards;
  animation: card .5s linear forwards;
}

}

@keyframes card {
  100% {
    margin-top:-120px;
  }
}
.winning .btn {
  position: absolute;

  bottom:4%;
  z-index: 2;
  width:100%;
  height:50px;


  background:url(../image/button.png) no-repeat center;
  background-size:auto 50px;
  -o-animation: shake .5s 2 linear alternate;
  -ms-animation: shake .5s 2 linear alternate;
  -moz-animation: shake .5s 2 linear alternate;
  -webkit-animation: shake .5s 2 linear alternate;
  animation: shake .5s 2 linear alternate;
}
@media (max-width:768px){
.winning .btn {
  position: absolute;

  bottom:4%;
  z-index: 2;
  width:100%;
  height:30px;


  background:url(../image/button.png) no-repeat center;
  background-size:auto 30px;
  -o-animation: shake .5s 2 linear alternate;
  -ms-animation: shake .5s 2 linear alternate;
  -moz-animation: shake .5s 2 linear alternate;
  -webkit-animation: shake .5s 2 linear alternate;
  animation: shake .5s 2 linear alternate;
}
}
@keyframes shake {
  50% {
    -o-transform: rotate(-5deg);
    -ms-transform: rotate(-5deg);
    -moz-transform: rotate(-5deg);
    -webkit-transform: rotate(-5deg);
    transform: rotate(-5deg);
  }
  100% {
    -o-transform: rotate(5deg);
    -ms-transform: rotate(5deg);
    -moz-transform: rotate(5deg);
    -webkit-transform: rotate(5deg);
    transform: rotate(5deg);
  }
}
#close {
  opacity: 0;
  position: absolute;
  right: 0rem;
  top:0;
  z-index: 10;
  width:32px;
  height:32px;
  background-image: url("../image/close.png");
  background-size:32px;
  -o-animation: fadein .5s .5s linear forwards;
  -ms-animation: fadein .5s .5s linear forwards;
  -moz-animation: fadein .5s .5s linear forwards;
  -webkit-animation: fadein .5s .5s linear forwards;
  animation: fadein .5s .5s linear forwards;
}
@keyframes fadein {
  100% {
    opacity: 1;
    -o-transform: rotate(360deg);
    -ms-transform: rotate(360deg);
    -moz-transform: rotate(360deg);
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
