@charset "UTF-8";

html {
  font-size: 15.625vw;
}

@media screen and (min-width: 320px) {
    html {
      font-size: 14px;
    }
}
 
@media screen and (min-width: 360px) {
    html {
      font-size: 16px;
    }
}
 
@media screen and (min-width: 400px) {
    html {
      font-size: 18px;
    }
}
 
@media screen and (min-width: 440px) {
    html {
      font-size: 20px;
    }
}
 
@media screen and (min-width: 480px) {
    html {
      font-size: 22px;
    }
}
 
@media screen and (min-width: 640px) {
    html {
      font-size: 28px;
    }
}

* {
  margin:  0;
  padding: 0;
}

body {
  position:  relative;
}

canvas {
  width:  100%;
}

html, body {
  width:  100%;
  height: 100%;
  overflow: hidden;
}

#root {
  width: 100%;
  height: 100%;
  display: block;
  z-index: -1;
  top: 0;
}

#start-count-down {
  background: transparent;
  padding-top: 7rem;
  position: absolute;
  left: 0;
  top:  0;
  right:  0;
  bottom: 0;
  z-index: 101;
}

#start-title {
  color: #FF774C;
  text-align: center;
  font-weight: 900;
  font-size: 1.75rem;
  letter-spacing: 0.1rem;
}

#start-sub-title {
  color: #FF774C;
  letter-spacing: 0.3125rem;
  text-align: center;
  font-weight: 100;
  font-size: 1.125rem;
}

#img-placeholder {
   width: 100%;
   height: 17.3rem;
   position: relative;
   z-index: 101;
}

.img-down {
  height: 8.75rem;
  width: 6rem;
  margin: 0 auto;
  background-size: cover;
  left: 50%;
  top: 50%;
  position: absolute;
  z-index: 102;
  background-position: center center;
  transform: translate(-50%,-50%);
  opacity: 1 !important;
}

#start-footer-title {
  color: #FF774C;
  text-align: center;
  font-weight: 100;
  font-size: 1.5rem;
}

#start-footer-sub-title {
  font-family: PingFangTC-Light;
  font-size: 1rem;
  color: #FF774C;
  letter-spacing: 0.1rem;
  font-weight: 100;
  text-align: center;
}

#spot-image {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  /*width: 1.5rem;*/
}

#spot-image > img {
  width: 1.2rem;
  display: block;
  height: 1.2rem;
}

/* timer */
#timer-container {
  margin-left: 1.25rem;
  margin-top: 1.25rem;
  position: absolute;
  left: 0;
  top:  0;
  z-index: 101;
}

#timer-label {
  color: #FF774C;
  font-family: PingFang-SC-Regular;
  font-size: 1rem;
}

#timer-value,
#chance-value {
  font-family: PingFang-SC-Medium;
  font-size: 1.125rem;
  color: #FF4E00;
  text-align: right;
  text-shadow: 0 2px 0 rgba(0,0,0,0.50);
}

#chance-container {
  margin-right: 1.25rem;
  margin-top: 1.25rem;
  position: absolute;
  right: 0;
  top:  0;
  z-index: 101;
}

/* end */
.result-container {
  position: absolute;
  left: 0;
  top:  0;
  right:  0;
  margin-top: 13%;
  z-index: 101;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#end-title {
  font-family: PingFangTC-Light;
  font-size: 1.125rem;
  color: #FF774C;
  letter-spacing: 0.3125rem;
  text-align: center;
  line-height: 1.875rem;
  padding-left: 0.3125rem;
}

#result-coupon {
  width: 72vw;
  background-image: url(../img/bg_coupon.png);
  background-size: cover;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  height: 74.5vw;
}

#result-coupon #price-label {
  margin-top: 1.25rem;
}

#result-coupon #currency {
  font-family: PingFang-SC-Medium;
  font-size: 2.5rem;
  color: #D74819;
  letter-spacing: -0.125rem;
  text-align: center;
}

#result-coupon #price {
  font-family: PingFang-SC-Medium;
  font-size: 4.5rem;
  color: #D74819;
  letter-spacing: -0.25rem;
  text-align: center;
}

#result-coupon #des {
  font-family: PingFang-SC-Regular;
  font-size: 0.875rem;
  color: #815621;
  letter-spacing: 0.1875rem;
  background-size: cover;
  background-image: url(../img/ic_coupon_des.png);
  height: 1.91rem;
  padding-left: 0.1875rem;
  width: 12.5rem;
  line-height: 1.91rem;
  text-align: center;
}

#result-coupon #merchant {
  font-family: PingFang-SC-Regular;
  font-size: 1.68rem;
  color: #7D511B;
  margin-top: 2.9rem;
  letter-spacing: 0.156rem;
  text-align: center;
  line-height: 2.8rem;
}

#result-coupon #date {
  font-family: PingFang-SC-Regular;
  font-size: 0.75rem;
  color: #815621;
  letter-spacing: 0.16rem;
  text-align: center;
}

/* loading */
.result-text-title {
  font-family: PingFangTC-Light;
  font-size: 1.75rem;
  color: #FF774C;
  letter-spacing: 0.25rem;
  text-align: center;
  text-shadow: 0.156rem 0.315rem 0 rgba(220,167,119,0.05);
  min-width: 315px;
}

.result-text-des {
  font-family: PingFangTC-Light;
  font-size: 1.125rem;
  color: #FF774C;
  text-align: center;
  font-weight: 300;
  line-height: 2.5rem;
}

.des-letter {
  letter-spacing: 1.4rem;
  padding-left: 1.4rem;
}

#result-loading {
  text-align: center;
  position: absolute;
  left: 50%; 
  top: calc(50% - 1.25rem);
  margin: auto;
  transform: translate(-50%, -50%);
  z-index: 101;
}

#result-login {
  text-align: center;
  position: absolute;
  left: 50%; 
  top: calc(50% - 1.25rem);
  margin: auto;
  transform: translate(-50%, -50%);
  z-index: 101;
}

/* 没有资格 */
#result-not-eligibile {
  width: 100%;
  text-align: center;
  position: absolute;
  left: 50%;
  top: calc(50% - 2.5rem);
  margin: auto;
  transform: translate(-50%, -50%);
  z-index: 101;
}


/*未中奖*/
#result-no-prize {
  width: 100%;
  height: 100%;
  background: url("../img/bg_no_prize.png") no-repeat top left;
  -webkit-background-size: cover;
  background-size: cover;
  overflow: hidden;
}

#no-prize-title {
  width: 100%;
  height: 3.75rem;
  font-family: PingFangTC-Light;
  font-size: 1.125rem;
  color: #FF774C;
  letter-spacing: 0.3125rem;
  text-align: center;
  line-height: 1.875rem;
  margin-top: 2.69rem;
}

#no-prize-image {
  width: 18.56rem;
  height: 19.44rem;
  background: url("../img/ic_beauty_man.png") no-repeat top left;
  -webkit-background-size: cover;
  background-size: cover;
  margin: 1.5rem auto 1.59rem;
}

#no-prize-buttons {
  width: 18.56rem;
  margin: 0 auto;
  position: absolute;
  left: 50%;
  bottom: 3.125rem;
  z-index: 101;
  transform: translateX(-50%);
}

#no-prize-one-more,
#no-prize-result-button {
  background: #FFC11B;
  border-radius: 1.25rem;
  width: 8.44rem;
  height: 2.5rem;
  line-height: 2.5rem;
  font-family: PingFangTC-Regular;
  font-size: 1rem;
  color: #413823;
  letter-spacing: .12rem;
  text-align: center;
  display: inline-block;
}

#no-prize-result-button {
  background: none;
  border: 0.0625rem solid #FFC11B;
  box-sizing: border-box;
  margin-left: 1rem;
  color: #FFC11B;

}

/* 邀请好友 */
#promo-tips {
  background: #333;
  height: 2.3rem;
  /*width: 7.3rem;*/
  text-align: center;
  border-radius: 0.25rem;
  position: absolute;
  right: 0.3rem;
  top: 0rem;
  z-index: 101;
  line-height: 2.3rem;
  margin-top: 1rem;
  font-family: PingFang-SC-Medium;
  font-size: 0.875rem;
  color: #FFFFFF;
  font-weight: 100;
  padding: 0 .3rem;
}

#promo-tips:after {
  content: " ";
  height: 0;
  width: 0;
  position: absolute;
  border-left: 0.375rem solid transparent;
  border-right: 0.375rem solid transparent;
  border-bottom: 0.375rem solid #333;
  margin-left: 0.3rem;
  top: -0.375rem;
  right: 0.875rem;
}

/* 周年庆按钮 */

#result-button {
  border-radius: 2.5rem;
  background: url("../img/ic_result_buttom_bg.png") no-repeat 0 0;
  -webkit-background-size: 14.375rem 2.5rem;
  background-size: 14.375rem 2.5rem;
  font-size: 1rem;
  color: #FFC11B;
  width: 14.375rem;
  height: 2.5rem;
  line-height: 2.5rem;
  text-align: center;
  margin-top: 3.725rem;
  position: absolute;
  left: 50%;
  bottom: 3.125rem;
  z-index: 101;
  transform: translateX(-50%);
}

#result-button:after {
    content: " ";
    height: 0.5rem;
    width: 0.5rem;
    border-width: 0.05rem 0.05rem 0 0;
    border-color: #FFC11B;
    border-style: solid;
    transform:rotate(45deg);
    position: absolute;
    margin-top: 1rem;
    right: 2.5rem;
}

/* 登录 */
#login {
  width: calc(100% - 2.7rem);
  position: absolute;
  left: 50%;
  top: 0;
  z-index: 101;
  transform: translateX(-50%);
  margin: 4.125rem 0;
}

#input-container {
  margin-top: 2.5rem;
  background: #fff;
}

#login #divider {
  width: calc(100% - 2rem);
  height: 0.0625rem;
  background: #eaeaea;
  margin: 0 1rem;
}

#login .row {
  display: flex;
  flex-direction: row;
  line-height: 2.815rem;
  height: 2.815rem;
}

#login .label {
  min-width: 6.7rem;
  font-family: PingFang-SC-Medium;
  font-size: 0.75rem;
  line-height: 2.815rem;
  text-align: left;
  color: #333333;
  padding-left: 1rem;
}

#input-container > div:nth-child(1) > span::after {
  content: " ";
  height: 0;
  width: 0;
  position: absolute;
  margin-top: 1.22rem;
  border-left: 0.22rem solid transparent;
  border-right: 0.22rem solid transparent;
  border-top: 0.22rem solid #333;
  margin-left: 0.3rem;
}

#login input {
  font-family: PingFang-SC-Medium;
  font-size: 0.75rem;
  color: #333333;
  flex: 1;
  caret-color: #FF774C;
  border:none;
  outline: medium;
  position: relative;
}

#login input::placeholder {
  color: #ccc;
}

#login #btn-sms-send {
  height: 1.75rem;
  width: 5.5rem;
  background: #333;
  position: absolute;
  right: 1rem;
  margin-top: 0.5rem;
  color: #fff;
  font-size: 0.75rem;
  text-align: center;
  line-height: 1.75rem;
  font-weight: 100;
}

#login #btn-sms-send.disable {
  background: #ccc;
}

#login #des {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  text-align: center;
  line-height: 0.875rem;
  height: 0.875rem;
}

#login #rule #check {
  width: 0.875rem;
  height: 0.875rem;
  margin-right: 0.35rem;
}

#login #rule {
  display: flex;
  height: 0.875rem;
}

#des .text {
  font-family: PingFang-SC-Regular;
  font-size: 0.75rem;
  color: #FF774C;
  font-weight: 100;
}

#confirm {
  background: #FFC11B;
  font-family: PingFang-SC-Regular;
  font-size: 0.94rem;
  color: #413823;
  text-align: center;
  line-height: 2.8125rem;
  height: 2.8125rem;
  margin-top: 0.875rem;
  margin-bottom: 0.875rem;
  font-weight: 100;
}

/* picker */
.picker {
  z-index: 202 !important;
}

.picker .picker-panel .picker-choose .confirm {
  color: #333 !important;
}

.hide {
  display: none !important;
}