html {
  filter: unset;
  -webkit-tap-highlight-color: transparent;
  height: 100%;
}

:root {
  --safetop: env(safe-area-inset-top);
  --safebottom: env(safe-area-inset-bottom);
}

video {
  outline-style: none;
}

body {
  /*用于 获取 屏幕的可视宽高*/
  width: 100% !important;
  height: 100%;
  min-height: calc(100% + constant(safe-area-inset-top));
  min-height: -webkit-calc(100% + constant(safe-area-inset-top));
  min-height: calc(100% + env(safe-area-inset-top));
  min-height: -webkit-calc(100% + env(safe-area-inset-top));
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  overflow: hidden;
  background: #000;
  /* padding-top: constant(safe-area-inset-top); */
  /* iOS 11.0 */
  /* padding-top: env(safe-area-inset-top); */
  /* iOS 11.2 */
  /* padding-bottom: constant(safe-area-inset-bottom);
    padding-bottom: env(safe-area-inset-bottom);
    padding-left: constant(safe-area-inset-left);
    padding-left: env(safe-area-inset-left);
    padding-right: constant(safe-area-inset-right);
    padding-right: env(safe-area-inset-right); */
}

#cgameLayer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}

#container-out {
  position: fixed;
  bottom: 0;
  bottom: constant(safe-area-inset-bottom);
  bottom: env(safe-area-inset-bottom);
  top: 0;
  top: constant(safe-area-inset-top);
  top: env(safe-area-inset-top);
  left: 0;
  left: constant(safe-area-inset-left);
  left: env(safe-area-inset-left);
  right: 0;
  right: constant(safe-area-inset-right);
  right: env(safe-area-inset-right);
}

/* 悬浮球 */
#ballBox {
  position: fixed;
  z-index: 33333333;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

#ballBox .ball {
  width: 0.6rem;
  height: 0.6rem;
  position: absolute;
  left: 0.1rem;
  top: 0.5rem;
  transition: all .1s;
}

#ballBox .ball img {
  display: inline-block;
  width: 100%;
}


/* 浏览器打开  弹出层 */

#browser {
  display: none;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  position: absolute;
  top: 0;
  right: 0;
  z-index: 3333333;
}

#browser p {
  position: absolute;
  bottom: 0.5rem;
  /* z-index: 3333; */
  padding: 0 0.5rem;
}

#browser p img {
  display: inline-block;
  width: 100%;
}


/* 添加到主屏幕  弹出层 */

#desktop {
  display: none;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0);
  position: absolute;
  top: 0;
  right: 0;
  z-index: 3333333;
}

#desktop p {
  position: absolute;
  bottom: 0.5rem;
  /* z-index: 3333; */
  padding: 0 0.5rem;
}

#desktop p img {
  display: inline-block;
  width: 100%;
}


/* 退出游戏 */


/* #loading {
    width: 100%;
    height:100%;
    line-height: 3rem;
    background: #000;
    color: aliceblue;
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    z-index: 3333333;
}

#loading p {
    display: block;
    font-size: 0.78rem;
    text-align: center;
} */

#loading {
  display: flex;
  display: none;
  width: 100%;
  /* height: 100%; */
  height: calc(100% + env(safe-area-inset-top));
  position: absolute;
  left: 0;
  /* z-index: 222222; */
  top: 0;
  background: #000;
  align-items: center;
  justify-content: center;
}

#loading p {
  width: 65%;
}

#loading img {
  display: inline-block;
  width: 100%;
}


/* ~~~~~~~~~~~~~~~~~~~~~~~~以下loading2是2023年07月31日新写的  要求跟客户端一样 获取接口每个游戏对应的loading图~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */

#loading2 {
  display: none;
  width: 100vh;
  height: 100vw;
  
  transform: translate(100vw, 0) rotate(90deg);
  transform-origin: 0 0;
  position: absolute;
  left: 0;
  z-index: 3;
  top: 0;
  background: #000;
}

#loading2 p {
  height: 100%;
}

#loading2 img {
  display: inline-block;
  /* height: 100%; */
  width: 100%;
}

#loading2 span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 96%;
  height: 30%;
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  position: absolute;
  bottom: -1px;
  left: 0;
  z-index: 222222;
  background: linear-gradient(0deg, #000000 0%, rgba(67, 28, 16, 0) 100%);
}


/* 登录 */

#xy_login {
  /* display: none; */
  /* width: 7.5rem; */
  height: calc(100% + env(safe-area-inset-top));
  position: absolute;
  left: 0;
  top: 0;
  z-index: 333333;
  background: #fff;
}

.xy_login_top {
  position: fixed;
  top: 0;
  width: 100%;
  height: env(safe-area-inset-top);
  /* background: -webkit-linear-gradient(top, #ccc, #fff); */
  z-index: 222222;
}

#login_icon {
  width: 100%;
  height: 30%;
  background: #ffe600;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: calc(env(safe-area-inset-top));
}

#login_icon img {
  width: 67%;
}

#login_con {
  width: 100%;
  height: 53%;
  background: #fff;
  position: relative;
}

#login_con .xiaoY_login {
  width: 100%;
  height: 50%;
}

.xiaoY_input {
  width: 90%;
  height: 55%;
  background: #fff;
  position: absolute;
  top: -12%;
  left: 5%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: url(../images/ali/login_bg.png) no-repeat;
  background-size: 100% 100%;
}

.xiaoY_input input {
  width: 80%;
  /* height: 1rem; */
  border: none;
  /* line-height: 1rem; */
  color: #333333;
  font-size: 1.1em;
  padding: 6% 0;
}

.xiaoY_input label {
  width: 80%;
  height: 11%;
  color: #333333;
  font-size: 1.3em;
}

.xiaoY_input label.phoneCodeLabel {
  display: flex;
  justify-content: space-between;
}

.xiaoY_input label.phoneCodeLabel button.getCode {
  border: none;
  background: #fff;
  color: #F05050;
  cursor: pointer;
}

.xiaoY_input input::-webkit-input-placeholder {
  color: #BBBBBB;
}

.xiaoY_input span.border_span {
  width: 80%;
  height: 0.4%;
  background: #E0E0E0;
  margin-bottom: 4.3%;
}

.xiaoY_input .xiaoyCount {
  width: 80%;
  display: flex;
  align-items: center;
  position: relative;
}

.xiaoY_input .xiaoyCount input {
  width: 100%;
}

.xiaoY_input .xiaoyCount span.moreIcon {
  display: inline-block;
  display: none;
  width: 8%;
  height: 8%;
  cursor: pointer;
}

.xiaoY_input .xiaoyCount span img {
  display: block;
  width: 100%;
}

.xiaoY_login .xyAcount_input {
  display: none;
}

.xiaoY_input .xiaoyCount .moreIconList {
  width: 100%;
  position: absolute;
  top: 101%;
  background: #F6F6F6;
  border-radius: 0.1rem;
  display: flex;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  /* max-height: 1rem;
    overflow-y: auto; */
}

.xiaoY_input .xiaoyCount .moreIconList li {
  width: 90%;
  /* height: 0.8rem; */
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px #E0E0E0 solid;
  margin-bottom: 1em;
  flex-shrink: 0;
  padding: 5% 0 5% 1%;
}

.xiaoY_input .xiaoyCount .moreIconList li span:first-child {
  width: 80%;
  /* margin-left: 0.2rem; */
  cursor: pointer;
}

.xiaoY_input .xiaoyCount .moreIconList li span:last-child {
  width: 4%;
  height: 4%;
  margin-right: 4%;
  cursor: pointer;
}

.xiaoY_input .xiaoyCount .moreIconList li img {
  display: block;
  width: 100%;
}

.xiaoY_input .xiaoyPwd {
  display: flex;
  width: 80%;
  align-items: center;
}

.xiaoY_input .xiaoyPwd input {
  width: 100%;
}

.xiaoY_input .xiaoyPwd span {
  width: 0.5rem;
  height: 0.5rem;
  cursor: pointer;
}

.xiaoY_input .xiaoyPwd span img {
  display: block;
  width: 100%;
}

.xiaoY_input .xiaoyPwd span.pasClose_span {
  width: 0.2rem;
  height: 0.2rem;
  margin: 0 0.2rem;
}

.xiaoY_input .xiaoyPwd span img.xiaoyPwd_s {
  display: none;
}

.xiaoY_input .xiaoyPwd .pasClose {
  display: inline-block;
  width: 0.2rem;
  height: 0.2rem;
  vertical-align: top;
}

.login_but {
  width: 100%;
  margin-bottom: 10%;
}

.login_but .xiaoY_btnP {
  width: 87%;
  /* height: 0.9rem; */
  padding: 3.5% 0;
  background: #FFE600;
  border-radius: 0.4em;
  margin: 0 auto 5%;
  color: #333333;
  text-align: center;
  font-size: 1.3em;
  /* line-height: 0.9rem; */
  font-family: PingFangSC-Regular, PingFang SC;
  font-weight: 500;
  cursor: pointer;
}

.login_but .xiaoY_btnP:active {
  background: #cbb808;
  -webkit-tap-highlight-color: transparent;
}

.login_but .agreement {
  display: flex;
  justify-content: center;
  color: #BBBBBB;
}

.login_but .agreement input[type='checkbox'] {
  margin-right: 0.1rem;
  cursor: pointer;
  position: relative;
  width: 0.3rem;
  /* height: 0.3rem; */
}

.login_but .agreement a {
  color: #3793EE;
}

input[type=checkbox]::after {
  position: absolute;
  top: 0;
  width: 0.3rem;
  height: 0.3rem;
  display: inline-block;
  visibility: visible;
  padding-left: 0px;
  text-align: center;
  content: ' ';
  border-radius: 0.06rem
}


/* 
input[type=checkbox]:checked::after {
    content: "√";
    color: #fff;
    font-size: 0.24rem;
    font-weight: bold;
   background-color: black;
} */

.other_login .other_btnP {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.other_login .other_btnP {
  color: #BBBBBB;
  font-size: 1.1em;
}

.other_login .other_btnP span {
  width: 23%;
  /* height: 0.01rem; */
  background: #DDDDDD;
  margin: 0.1rem;
  padding: 0.1% 0;
}

.other_login .other_type {
  /* height: 1.2rem; */
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 5% 0;
}

.other_login .other_type span {
  width: 9%;
  height: 9%;
}

.other_login .other_type span img {
  display: block;
  width: 100%;
}

.other_login .other_type .phoneIcon {
  display: none;
}


/* 支付 */

#popupBg {
  width: 100%;
  height: 100%;
  /* transform-origin: 0px 0px; */
  position: absolute;
  left: 0;
  top: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: center;
  display: none;
}

#loadingMask {
  width: 5rem;
  height: 5rem;
  position: absolute;
  left: 0;
  top: 0;
  background: rgba(238, 238, 238, 0.33);
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: center;
  display: none;
}

#payMoney {
  display: none;
  width: 5rem;
  height: 5rem;
  background: #3A3C59;
  border-radius: 0.16rem;
  position: relative;
}

#payMoney .Money {
  display: flex;
  flex-direction: column;
}

#payMoney .money_header {
  height: 1rem;
}

#payMoney .money_header span {
  display: inline-block;
}

#payMoney .money_header span:first-child {
  width: 0.35rem;
  height: 0.35rem;
  margin: 0.3rem 0 0 0.3rem;
  cursor: pointer;
}

#payMoney .money_header span:first-child img {
  display: block;
  width: 100%;
}

#payMoney .money_header span:last-child {
  width: 70%;
  height: 0.8rem;
  line-height: 0.8rem;
  text-align: center;
  color: #fff;
  font-family: PingFangSC-Medium, PingFang SC;
  font-weight: 500;
  font-size: 0.3rem;
}

#payMoney .money_text {
  width: 100%;
  /* height: 1rem; */
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

#payMoney .money_text>span:first-child {
  font-size: 0.5rem;
  font-family: DINPro-Medium, DINPro;
  font-weight: 500;
  color: #fff;
  width: 2rem;
  text-align: center;
}

#payMoney .money_text span.discountImg {
  display: block;
  display: none;
  padding: 0.05rem 0.1rem;
  background: url(../images/ali/dis.png) no-repeat center;
  background-size: 100% 100%;
  /* width: 1rem; */
  position: absolute;
  left: 3.25rem;
  top: -0.15rem;
  color: #FFFFFFFF;
  font-size: 0.2rem;
  font-weight: 400;
}

#payMoney .money_text span i {
  width: 0.40rem;
  height: 0.35rem;
  font-size: 0.3rem;
  font-family: PingFangSC-Medium, PingFang SC;
  font-weight: 500;
  color: #fff;
}

#payMoney .money_text2 {
  width: 100%;
  height: 0.4rem;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.2rem;
}

#payMoney .money_text2 s {
  /* width: 0.40rem;
    height: 0.35rem; */
  font-size: 0.3rem;
  font-family: DINPro-Medium, DINPro;
  color: #FFFFFF99;
}

#payMoney .select_type {
  width: 100%;
  height: 0.5rem;
  display: flex;
  margin-bottom: 0.3rem;
  position: relative;
}

#payMoney .select_type>span:nth-child(1) {
  display: block;
  width: 0.4rem;
  height: 0.4rem;
  margin-right: 0.2rem;
  margin-left: 0.4rem;
}

#payMoney .select_type>span:nth-child(1) img {
  display: block;
  width: 100%;
  height: 100%;
}

#payMoney .select_type>span:nth-child(2) {
  font-size: 0.28rem;
  font-family: PingFangSC-Regular, PingFang SC;
  font-weight: 400;
  color: #fff;
  line-height: 0.40rem;
}

#payMoney .select_type>span:nth-child(3) {
  width: 0.35rem;
  height: 0.35rem;
  position: absolute;
  right: 0.4rem;
  top: 0;
}

#payMoney .select_type>span:nth-child(3) input {
  /* display: none; */
  width: 100%;
  height: 100%;
  margin-right: 0.3rem;
  opacity: 0;
}

#payMoney .select_type .checkedBg1 {
  background: url(../images/checked.png) no-repeat;
  background-size: 100% 100%;
}

#payMoney .select_type .checkedBg2 {
  background: url(../images/check.png) no-repeat;
  background-size: 100% 100%;
}

.buton {
  width: 70%;
  height: 0.7rem;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.078);
  border: none;
  border-radius: 0.08rem;
  font-size: 0.25rem;
  font-family: PingFangSC-Regular, PingFang SC;
  font-weight: 400;
  text-align: center;
  line-height: 0.7rem;
  color: #FFFFFF;
  cursor: pointer;
  outline: none;
}

.buton:active {
  background: #2c2d48;
}

.pay_result {
  width: 4rem;
  height: 4rem;
  background: #3A3C59;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pay_result .failLogo {
  width: 1rem;
  height: 1rem;
  padding-top: 0.6rem;
}

.pay_result .failLogo>img {
  display: inline-block;
  width: 100%;
}

.pay_result .failText {
  width: 100%;
  font-size: 0.32rem;
  height: 1rem;
  font-family: PingFangSC-Regular, PingFang SC;
  font-weight: 500;
  color: #fff;
  text-align: center;
  line-height: 1rem;
  margin-bottom: 0.3rem;
}

.pay_result .failbut {
  width: 70%;
  height: 0.7rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 0.1rem;
  color: #fff;
  font-size: 0.25rem;
  font-family: PingFangSC-Regular, PingFang SC;
  font-weight: 500;
  line-height: 0.7rem;
  text-align: center;
  cursor: pointer;
}

.paySussess,
.payFail {
  display: none;
}


/* 退出按钮 */

#stop {
  display: none;
  position: absolute;
  right: 0px;
  top: 0px;
  z-index: 9999999;
  color: #BBBBBB;
}

/* flowid */

#flowid {
  display: none;
  position: absolute;
  left: 10px;
  top: 0px;
  z-index: 9999999;
  color: #fff;
  background: #000;
}

/* 横屏的时候 */

@media screen and (orientation:landscape) {
  #payMoney {
    transform: scale(0.6);
  }

  .pay_result {
    transform: scale(0.7);
  }


  /* #xy_login {
        transform: rotate(90deg);
    } */
}

/* 竖屏的时候 */

@media screen and (orientation: portrait) {}