:root {
  --image-bg: url("../images/@1x/bg.jpg");
  --image-loading_bg: url("../images/@1x/loading_bg.png");
  --image-loading_top : url("../images/@1x/loading_top.png");
  --image-bg_light: url("../images/@1x/bg_light.png");
  --image-bg_light_01: url("../images/@1x/bg_light_01.png");
  --image-logo_bg: url("../images/@1x/logo_bg.png");
  --image-light_01: url("../images/@1x/light_01.png");
  --image-light_02: url("../images/@1x/light_02.png");
  --image-logo_ee88: url("../images/@1x/logo_ee88.png");
  --image-logo_hay88: url("../images/@1x/logo_hay88.png");
  --image-logo_luck8: url("../images/@1x/logo_luck8.png");
  --image-logo_s666: url("../images/@1x/logo_s666.png");
  --image-logo_mini: url("../images/@1x/logo_mini.png");
  --image-lagan: url("../images/@1x/lagan.png");
  --image-cm_01: url("../images/@1x/cm_01.png");
  --image-tz_03: url("../images/@1x/tz_03.png");
  --image-tz_02: url("../images/@1x/tz_02.png");
  --image-sd_02: url("../images/@1x/sd_02.png");
  --image-sd_01: url("../images/@1x/sd_01.png");
  --image-tz_01: url("../images/@1x/tz_01.png");
  --image-poker: url("../images/@1x/poker.png");
  --css-guide-android-min-height: 300px;
  --css-guide-margin-top: 35px;
  --css-widget-items-height: 300px;
  --css-widget-items-top: 0;
  --css-main-scale: scale(1);
  --css-progress-margin-top: 0;
}

@media screen and (min-width: 1000px) {
  :root {
    --image-bg: url("../images/@2x/bg.jpg");
    --image-loading_bg: url("../images/@1.5x/loading_bg.png");
    --image-loading_top : url("../images/@1.5x/loading_top.png");
    --image-bg_light: url("../images/@1.5x/bg_light.png");
    --image-bg_light_01: url("../images/@1.5x/bg_light_01.png");
    --image-logo_bg: url("../images/@1.5x/logo_bg.png");
    --image-light_01: url("../images/@1.5x/light_01.png");
    --image-light_02: url("../images/@1.5x/light_02.png");
    --image-logo_ee88: url("../images/@1.5x/logo_ee88.png");
    --image-logo_hay88: url("../images/@1.5x/logo_hay88.png");
    --image-logo_luck8: url("../images/@1.5x/logo_luck8.png");
    --image-logo_s666: url("../images/@1.5x/logo_s666.png");
    --image-logo_mini: url("../images/@1.5x/logo_mini.png");
    --image-lagan: url("../images/@1.5x/lagan.png");
    --image-cm_01: url("../images/@1.5x/cm_01.png");
    --image-tz_03: url("../images/@1.5x/tz_03.png");
    --image-tz_02: url("../images/@1.5x/tz_02.png");
    --image-sd_02: url("../images/@1.5x/sd_02.png");
    --image-sd_01: url("../images/@1.5x/sd_01.png");
    --image-tz_01: url("../images/@1.5x/tz_01.png");
    --image-poker: url("../images/@1.5x/poker.png");
  }
}


@media screen and (min-width: 1334px) {
  :root {
    --image-bg: url("../images/@2x/bg.jpg");
    --image-loading_bg: url("../images/@2x/loading_bg.png");
    --image-loading_top : url("../images/@2x/loading_top.png");
    --image-bg_light: url("../images/@2x/bg_light.png");
    --image-bg_light_01: url("../images/@2x/bg_light_01.png");
    --image-logo_bg: url("../images/@2x/logo_bg.png");
    --image-light_01: url("../images/@2x/light_01.png");
    --image-light_02: url("../images/@2x/light_02.png");
    --image-logo_ee88: url("../images/@2x/logo_ee88.png");
    --image-logo_hay88: url("../images/@2x/logo_hay88.png");
    --image-logo_luck8: url("../images/@2x/logo_luck8.png");
    --image-logo_s666: url("../images/@2x/logo_s666.png");
    --image-logo_mini: url("../images/@2x/logo_mini.png");
    --image-lagan: url("../images/@2x/lagan.png");
    --image-cm_01: url("../images/@2x/cm_01.png");
    --image-tz_03: url("../images/@2x/tz_03.png");
    --image-tz_02: url("../images/@2x/tz_02.png");
    --image-sd_02: url("../images/@2x/sd_02.png");
    --image-sd_01: url("../images/@2x/sd_01.png");
    --image-tz_01: url("../images/@2x/tz_01.png");
    --image-poker: url("../images/@2x/poker.png");
  }
}
@media screen and (orientation: portrait) and  (max-width: 375px) {  
  :root {
    --css-guide-android-min-height: 300px;
    --css-guide-margin-top: 35px;
    --css-widget-items-height: 300px;
    --css-main-scale: scale(1);
  }
}
@media screen and (min-height: 376px) and (min-width: 668px) {
  :root {
    --css-guide-android-min-height: 320px;
    --css-guide-margin-top: calc(100vh / 2 - 375px / 2 + 30px);
    --css-widget-items-top: calc(100vh / 2 - 375px / 2 - 15px);
  }
}

@media screen and (min-height: 562px) and (min-width: 1125px) {
  :root {
    --css-main-scale: scale(1.5);
    --css-progress-margin-top: 100px;
    --css-guide-margin-top: calc(100vh / 2 - 375px / 2);
    --css-widget-items-top: calc(100vh / 2 - 375px / 2 - 40px);
  }
}

@media screen and (max-height: 374px) {
  :root {
    --css-guide-android-min-height: 240px;
    --css-guide-margin-top: 24px;
    --css-main-scale: scale(0.8);
    --css-progress-margin-top: -15px;
  }
}
@media screen and (orientation: portrait) and (max-width: 360px) {  
  :root {
    --css-guide-android-min-height: 240px;
    --css-guide-margin-top: 24px;
    --css-main-scale: scale(0.8);
    --css-progress-margin-top: -15px;
  }
}
@media screen and (max-height: 332px) {
  :root {
    --css-guide-android-min-height: 240px;
    --css-guide-margin-top: 0px;
    --css-main-scale: scale(0.8);
    --css-progress-margin-top: -15px;
    --css-widget-items-top: -25px;
  }
}
@media screen and (orientation: portrait) and (max-width: 332px) {  
  :root {
    --css-guide-android-min-height: 240px;
    --css-guide-margin-top: 0px;
    --css-main-scale: scale(0.8);
    --css-progress-margin-top: -15px;
    --css-widget-items-top: -25px;
  }
}
@media screen and (max-height: 300px) {
  :root {
    --css-guide-android-min-height: 240px;
    --css-guide-margin-top: -15px;
    --css-main-scale: scale(0.5);
    --css-progress-margin-top: -70px;
    --css-widget-items-top: -35px;
  }
}
@media screen and (orientation: portrait) and (max-width: 300px) {  
  :root {
    --css-guide-android-min-height: 240px;
    --css-guide-margin-top: -15px;
    --css-main-scale: scale(0.5);
    --css-progress-margin-top: -70px;
    --css-widget-items-top: -35px;
  }
}

ul,
li {
  list-style: none;
  margin: 0;
  padding: 0;
}
html {
  height: 100%;
  -ms-touch-action: none;
}

body,
canvas,
div {
  display: block;
  outline: none;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);

  user-select: none;
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  -khtml-user-select: none;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

/* Remove spin of input type number */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  /* display: none; <- Crashes Chrome on hover */
  -webkit-appearance: none;
  margin: 0; /* <-- Apparently some margin are still there even though it's hidden */
}

body {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  margin: 0;

  cursor: default;
  color: #888;
  background-color: #000;

  text-align: center;
  font-family: Helvetica, Verdana, Arial, sans-serif;

  display: flex;
  flex-direction: column;
  
  overflow-x: hidden; /* 隐藏水平滚动条 */
  overflow-y: hidden; /* 隐藏垂直滚动条 */
}

.content {
  display: -webkit-flex;
  display: flex;

  -webkit-justify-content: center;
  justify-content: center;

  -webkit-align-items: center;
  align-items: center;

  -webkit-flex-direction: column;
  flex-direction: column;

  -webkit-flex: auto;
  flex: auto;
}

.contentWrap {
  width: 100%;
  height: 100%;
  overflow: hidden;

  display: flex;

  align-items: center;
  justify-content: center;

  flex-direction: column;
}

#GameDiv {
  width: 100%;
  height: 100%;
  visibility: hidden;
  overflow: hidden;
}

.wrapper {
  position: relative;

  border: 1px solid #444;
  background: #222;
}

#Cocos2dGameContainer {
  position: absolute;
  margin: 0;
  overflow: hidden;
  left: 0px;
  top: 0px;

  display: -webkit-box;
  -webkit-box-orient: horizontal;
  -webkit-box-align: center;
  -webkit-box-pack: center;
}

canvas {
  background-color: rgba(0, 0, 0, 0);
}

a:link,
a:visited {
  color: #666;
}

a:active,
a:hover {
  color: #666;
}

p.header {
  font-size: small;
}

p.footer {
  font-size: x-small;
}

.progress-bar {
  /* position: absolute;
  left: 0%;
  bottom: 0; */
  position: relative;
  overflow: hidden;
  background: var(--image-loading_bg) no-repeat center / 100% 100%;
  width: 450px;
  height: 12px;
  margin: 0 auto;
  margin-top: var(--css-progress-margin-top);
}

.progress-bar .inner-bar {
  position: absolute;
  left: 0%;
  height: 12px;
  width: 0%;
  background: var(--image-loading_top) no-repeat center / 100% 100%;
  display: none;
  /* transition: width 0.5s linear; */
}
/* 
.progress-bar .cur-progress-icon {
  width: 114px;
  height: 85px;
  background: url("../images/light.png") no-repeat;
  position: absolute;
  top: -244%;
  right: -38px;
  z-index: 2;
} */
.cur-progress-state {
  width: 100px;
  height: 100px;
  position: absolute;
  bottom: 0;
  left: 200px;
  z-index: -1;
  /* background-color: #000; */
}
.cur-progress-text {
  /* padding-top: 15px; */
  padding-top: 7px;
  text-align: center;
  color: #bcbedc;
  text-shadow: 1px 1px 1px #050411, -1px -1px 1px #050411;
}

.PreloaderContent {
  height: 100%;
  width: 100%;
  background: var(--image-bg) no-repeat center / 100% 100%; ;
  position: fixed;
  top: 0;
  left: 0;
}

progress {
  background: #444;
  border: none;
  border-radius: 3em;
  box-shadow: inset 0px 1px 1px rgba(0, 0, 0, 0.5),
    0px 1px 0px rgba(255, 255, 255, 0.2);
  display: block;
  padding: 0.2em;
  margin: 2em auto;
  height: 2em;
  width: 50vw;
}
progress::-moz-progress-bar {
  background: #55c2e1;
  border-radius: 3em;
  box-shadow: inset 0 -2px 4px rgba(0, 0, 0, 0.4),
    0 2px 5px 0px rgba(0, 0, 0, 0.3);
}
progress::-webkit-progress-bar {
  background: transparent;
}
progress::-webkit-progress-value {
  background: #55c2e1;
  border-radius: 3em;
  box-shadow: inset 0 -2px 4px rgba(0, 0, 0, 0.4),
    0 2px 5px 0px rgba(0, 0, 0, 0.3);
}

#Cocos3dGameContainer {
  display: none;
}
#Cocos3dGameContainer[init="0"] {
  display: none !important;
}

.hide {
  display: none;
}

#GameCanvas {
  display: none;
}

.fullscreen-guide-ios {
  /* position: absolute; */
  position: fixed;
  top: 0;
  left: 0;

  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: none;
  z-index: 10;
  padding: 10.49475vw 0 0 0;
  box-sizing: border-box;
}
.fullscreen-guide-ios .guide-img-ios {
  width: 570px;
  height: 226px;
  background: url("../images/img_popup5.png") no-repeat center center / 100% 100%;
  position: relative;
  margin: 0 auto;
}
.fullscreen-guide-ios .btn-close-guide-ios {
  width: 190px;
  height: 40px;
  background: url("../images/img_btn5.png") no-repeat center / 100% 100%;
  position: absolute;
  top: 157px;
  left: 265px;
}

.fullscreen-guide-android-wp {
  /* min-height: 322px; */
  min-height: var(--css-guide-android-min-height);
  /* margin-top: 35px; */
  margin-top: var(--css-guide-margin-top);
}
.fullscreen-guide-android {
  width: 186px;
  height: 44px;
  background: url("../images/btn_enter@x3.png") no-repeat center / 100% 100%;
  display: none;
  margin: 0 auto;
}

.fullscreen-guide-android-wp .main-widgets {
   /* width: 600px;
  height: 600px; */
  width: 300px;
  height: 300px;
  position: relative;
  margin: 0 auto;

  /* margin-top: 35px; */
  transform: var(--css-main-scale);
}
.fullscreen-guide-android-wp .bg-light {
  /* width: 600px;
  height: 600px; */
  width: 300px;
  height: 300px;
  background: var(--image-bg_light) no-repeat center / 100% 100%;
  animation: rotateAni 5s linear infinite;
  position: relative;
  z-index: 0;
}
@keyframes rotateAni {
  from {
    transform: rotate(0);
  }
  to {
    transform: rotate(360deg);
  }
}
.blue-light {
 /* width: 491px;
  height: 500px; */
  width: 245px;
  height: 250px;
  background: var(--image-bg_light_01) no-repeat center / 100% 100%;
  position: absolute;
  top: -18%;
  left: 10%;
  z-index: 1;
}
.fullscreen-guide-android-wp .main-logo {
  /* width: 500px;
  height: 415px; */
  width: 250px;
  height: 217px;
  background: var(--image-logo_bg) no-repeat center / 100% 100%;
  position: absolute;
  top: 10%;
  left: 10%;
  z-index: 2;
}
.fullscreen-guide-android-wp  .neon-light {
  /* width: 500px;
  height: 332px; */
  width: 250px;
  height: 166px;
  background: var(--image-light_01) no-repeat center / 100% 100%;
  position: absolute;
  top: 23%;
  left: 10%;
  z-index: 4;
  animation: neonLightAni 0.75s linear infinite;
}
@keyframes neonLightAni {
  from {
    background: var(--image-light_01) no-repeat center / 100% 100%;
  }
  to {
    background: var(--image-light_02) no-repeat center / 100% 100%;
  }
}

.platform-logo {
  /* width: 375px;
  height: 186px; */
  width: 186px;
  height: 98px;
  position: absolute;
  left: 66px;
  top: 105px;
  z-index: 6;
}
.platform-logo.ee88 {
  background: var(--image-logo_ee88) no-repeat center / 100% 100%;
}
.platform-logo.hay88 {
  background: var(--image-logo_hay88) no-repeat center / 100% 100%;
}
.platform-logo.luck8 {
  background: var(--image-logo_luck8) no-repeat center / 100% 100%;
}
.platform-logo.s666 {
  background: var(--image-logo_s666) no-repeat center / 100% 100%;
}
.platform-logo.mini {
  background: var(--image-logo_mini) no-repeat center / 100% 100%;
}
.joystick {
   /* width: 60px;
  height: 60px; */
  width: 30px;
  height: 30px;
  background: var(--image-lagan) no-repeat center / 100% 100%;
  position: absolute;
  top: 46%;
  left: 90%;
  z-index: 4;
  animation: runJoystickAni 6s 3s linear infinite;
}
@keyframes runJoystickAni {
  /* delay 3.5s */
  58.33% {
    top: 46%;
    left: 90%;
    transform: rotate(0deg);
  }
  /* 150ms up to down */
  60.83% {
    transform: rotate(75deg);
    top: 53%;
    left: 91%;
  }
  /* 1.2s waiting */
  /* 80.83% { */
  /* 1s waiting */
  77.43% {  
    transform: rotate(75deg);
    top: 53%;
    left: 91%;
  }
  /* down to up */
  83.6% {
    top: 46%;
    left: 90%;
    transform: rotate(0deg);
  }
  100% {
    top: 46%;
    left: 90%;
    transform: rotate(0deg);
  }
}
.widget-items {
  position: absolute;
  width: 100%;
  height: var(--css-widget-items-height);
  left: 0; 
  top: var(--css-widget-items-top);
}
.widget-items .widgets-wp {
  width: 400px;
  height: 300px;
  position: relative;
  margin: 0 auto;
  transform: var(--css-main-scale);
}
.widget-chip {
 /* width: 153px;
  height: 116px; */
  width: 76px;
  height: 58px;
  background: var(--image-cm_01) no-repeat center / 100% 100%;
  position: absolute;
  left: -4px;
  top: 234px;
  animation: upDownMoveAni 1.5s linear infinite;
}
.widget-dice {
  /* width: 67px;
  height: 74px; */
  width: 34px;
  height: 37px;
  background: var(--image-tz_03) no-repeat center / 100% 100%;
  position: absolute;
  top: 135px;
  left: 24px;
  animation: anticlockwiseRotateAni 5s linear infinite;
}
@keyframes anticlockwiseRotateAni {
  from {
    transform: rotate(0);
  }
  to {
    transform: rotate(-360deg);
  }
}
.widget-dice-1 {
 /* width: 78px;
  height: 84px; */
  width: 39px;
  height: 42px;
  background: var(--image-tz_02) no-repeat center / 100% 100%;
  position: absolute;
  left: 77px;
  top: 60px;
  animation: rotateAni 5s linear infinite;

}
.widget-chess-pieces {
  width: 120px;
  height: 100px;
  top: -10px;
  left: 224px;
  position: absolute;
  /* background: red; */
  z-index: 10;
}
.widget-chess-pieces .chess-piece-white {
  /* width: 37px;
  height: 45px; */
  width: 18px;
  height: 22px;
  background: var(--image-sd_02) no-repeat center / 100% 100%;
  position: absolute;
  top: 28%;
  left: 20%;
  animation: upDownMoveAni 1.5s linear infinite;
}
.widget-chess-pieces .chess-piece-white-1 {
  /* width: 37px;
  height: 45px; */
  width: 18px;
  height: 22px;
  background: var(--image-sd_02) no-repeat center / 100% 100%;
  position: absolute;
  top: 23%;
  left: 46%;
  animation: upDownMoveAni 1.5s linear infinite;
}
.widget-chess-pieces .chess-piece-red {
  /* width: 40px;
  height: 40px; */
  width: 20px;
  height: 20px;
  background: var(--image-sd_01) no-repeat center / 100% 100%;
  position: absolute;
  top: 53%;
  left: 13%;
  animation: upDownMoveAni1 3s 1s linear infinite;
}
.widget-chess-pieces .chess-piece-red-1 {
  /* width: 40px;
  height: 40px; */
  width: 20px;
  height: 20px;
  background: var(--image-sd_01) no-repeat center / 100% 100%;
  position: absolute;
  top: 41%;
  left: 36%;
  animation: upDownMoveAni 1.5s linear infinite;
}
.widget-dice-2 {
  /* width: 78px;
  height: 78px; */
  width: 39px;
  height: 39px;
  background: var(--image-tz_01) no-repeat center / 100% 100%;
  position: absolute;
  left: 332px;
  top: 111px;
  animation: rotateAni 5s linear infinite;
}
.widget-poker {
  /* width: 215px;
  height: 138px; */
  width: 107px;
  height: 119px;
  background: var(--image-poker) no-repeat center / 100% 100%;
  position: absolute;
  top: 228px;
  left: 313px;
  animation: frontBackAni 1.5s 0.15s linear infinite;
}
@keyframes upDownMoveAni {
  0% {
    transform: translateY(-5px);
  }
  25% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(5px);
  }
  75% {
    transform: translateY(0px);
  }
  100% {
    transform: translateY(-5px);
  }
}
@keyframes upDownMoveAni1 {
  0% {
    transform: translateY(-10px);
  }
  25% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(10px);
  }
  75% {
    transform: translateY(0px);
  }
  100% {
    transform: translateY(-10px);
  }
}
@keyframes frontBackAni {
  0% {
    transform: translate(-5px, -5px);
  }
  25% {
    transform: translate(0px, 0px);
  }
  50% {
    transform: translate(5px, 5px);
  }
  75% {
    transform: translate(0px, 0px);
  }
  100% {
    transform: translate(-5px, -5px);
  }
}