.wrap {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  margin: 0 auto;
  overflow: hidden;
}

.wrap-inner {
  position: absolute;
  overflow: hidden;
  left: 0;
  width: 32rem;
  height: 61.9rem;
  top: 50%;
  transform: translate(0, -50%);
  -webkit-transform: translate(0, -50%);
}

/*消除ios点击阴影*/
html,
body {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  /* ios 滑动 */
  -webkit-overflow-scrolling: touch;
  -webkit-user-select: none;
  /* 防止ios露底 */
  overflow: hidden;
  height: 100%;
}

/*消除ios动画抖动*/
* {
  -webkit-backface-visibility: hidden;
}

.clearfix:after {
  content: ".";
  display: block;
  height: 0;
  clear: both;
  visibility: hidden;
}

.clearfix {
  *zoom: 1;
}

input {
  border: 0;
  outline: none;
}

/* 去除滚动条 */
::-webkit-scrollbar {
  width: 0;
  height: 1px
}

::-webkit-scrollbar-thumb {
  border-radius: 5px;
  -webkit-box-shadow: inset 0 0 5px rgba(0, 0, 0, .2);
  background: rgba(0, 0, 0, .2)
}

input::-webkit-input-placeholder {
  /* placeholder颜色  */
  color: #222222;
}

.page {
  display: none;
  position: absolute;
}

.hd {
  background: rgba(255, 255, 255, 0.9);
}

/* loading-page */

.progress {
  background: #c0a353;
  border-radius: 0.25rem;
}

/* home-page */
.home-page .btn-next:active {
  background: url(../image2/home-btn-next-active.png) top left no-repeat;
  background-size: 100%;
}

.home-page .btn-rule.active {
  background: url(../image2/rule-active.png) left top no-repeat;
  background-size: 100%;
}

.home-page .title {
  transform: scale(0.95);
  transform-origin: 62.29% 81.8%;
  animation: scale 0.5s 0.6s ease-out backwards;
  -webkit-animation: scale 0.5s 0.6s ease-out backwards;
}

.home-page .title-animate {
  animation: float 3s 1.3s linear infinite;
  -webkit-animation: float 3s 1.3s linear infinite;
}

.home-page .tips.animate {
  text-align: center;
  color: #f00;
  font-size: 0.9rem;
  animation: tips 3.8s linear infinite;
  -webkit-animation: tips 3.8s linear infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0rem);
  }

  50% {
    transform: translateY(-1rem);
  }
}

@keyframes scale {
  0% {
    transform: scale(0);
  }

  100% {
    transform: scale(0.95);
  }
}

@keyframes tips {

  0%,
  23%,
  46%,
  100% {
    opacity: 1;
  }

  18%,
  41% {
    opacity: 0;
  }
}

/* rule-page */
.rule-page {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.rule-block {
  overflow: scroll;
}

.btn-back {
  position: fixed;
}

.btn-back:active {
  background: url('../image2/btn-back-active.png') left top no-repeat;
  background-size: 100%;
}

/* question-page */
.question-page .question-img-block {
  transform-origin: 50% 100%;
}

.fadeoutleft {
  animation: fadeOutLeft 0.5s ease-in forwards;
  -webkit-animation: fadeOutLeft 0.5s ease-in forwards;
}

.fadeinleft {
  animation: fadeInLeft 0.5s ease-in forwards;
  -webkit-animation: fadeInLeft 0.5s ease-in forwards;
}

.fadeoutright {
  animation: fadeOutRight 0.5s ease-in forwards;
  -webkit-animation: fadeOutRight 0.5s ease-in forwards;
}

.btn-nextquestion:active {
  background: url(../image2/question-btn-next.png) top left no-repeat;
  background-size: 100%;
}

.question-page .btn-submit:active {
  background: url(../image2/question-btn-submit-active.png) left top no-repeat;
  background-size: 100%;
}

.question-page .point {
  animation: all 5s ease forwards;
  -webkit-animation: all 5s ease forwards;
}


@-webkit-keyframes fadeInLeft {
  0% {
    opacity: 0;
    -webkit-transform: translate3d(-100%, 0, 0);
    transform: translate3d(-100%, 0, 0)
  }

  to {
    opacity: 1;
    -webkit-transform: none;
    transform: none
  }
}

@keyframes fadeInLeft {
  0% {
    opacity: 0;
    -webkit-transform: translate3d(-100%, 0, 0);
    transform: translate3d(-100%, 0, 0)
  }

  to {
    opacity: 1;
    -webkit-transform: none;
    transform: none
  }
}

@-webkit-keyframes fadeInUp {
  0% {
    opacity: 0;
    -webkit-transform: translate3d(0, 100%, 0);
    transform: translate3d(0, 100%, 0)
  }

  to {
    opacity: 1;
    -webkit-transform: none;
    transform: none
  }
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    -webkit-transform: translate3d(0, 100%, 0);
    transform: translate3d(0, 100%, 0)
  }

  to {
    opacity: 1;
    -webkit-transform: none;
    transform: none
  }
}

@-webkit-keyframes fadeOutRight {
  0% {
    opacity: 1
  }

  to {
    opacity: 0;
    -webkit-transform: translate3d(100%, 0, 0);
    transform: translate3d(100%, 0, 0)
  }
}

@keyframes fadeOutRight {
  0% {
    opacity: 1
  }

  to {
    opacity: 0;
    -webkit-transform: translate3d(100%, 0, 0);
    transform: translate3d(100%, 0, 0)
  }
}

@-webkit-keyframes fadeOutLeft {
  0% {
    opacity: 1
  }

  to {
    opacity: 0;
    -webkit-transform: translate3d(-100%, 0, 0);
    transform: translate3d(-100%, 0, 0)
  }
}

@keyframes fadeOutLeft {
  0% {
    opacity: 1
  }

  to {
    opacity: 0;
    -webkit-transform: translate3d(-100%, 0, 0);
    transform: translate3d(-100%, 0, 0)
  }
}

@-webkit-keyframes fadeInRight {
  0% {
    opacity: 0;
    -webkit-transform: translate3d(100%, 0, 0);
    transform: translate3d(100%, 0, 0)
  }

  to {
    opacity: 1;
    -webkit-transform: none;
    transform: none
  }
}

@keyframes fadeInRight {
  0% {
    opacity: 0;
    -webkit-transform: translate3d(100%, 0, 0);
    transform: translate3d(100%, 0, 0)
  }

  to {
    opacity: 1;
    -webkit-transform: none;
    transform: none
  }
}

/* poster-page */
.posterImg {
  z-index: 1;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

canvas {
  opacity: 0;
}

.frame {
  top: 0.5rem;
}

.btn-tryprize:active {
  background: url(../image2/btn-tryprize-active.png) left top no-repeat;
  background-size: 100%;
}

.btn-retry:active {
  background: url(../image2/btn-retry-active.png) left top no-repeat;
  background-size: 100%;
}

/* prize-page */
.prize-page {
  z-index: 1;
}

input[name=name] {
  font-size: 1.4rem;
  padding-left: 5.5rem;
  padding-right: 1rem;
  width: 16.4rem;
  color: #626365;
}

input[name=tel] {
  font-size: 1.4rem;
  padding-left: 5.5rem;
  padding-right: 1rem;
  width: 16.4rem;
  color: #626365;
}

.prize-page .btn-submit:active {
  background: url(../image2/btn-submit-active.png) left top no-repeat;
  background-size: 100%;
}