body {
  cursor: default;
  padding: 0;
  border: 0;
  margin: 0;

  text-align: center;
  background-color: white;
  font-family: Helvetica, Verdana, Arial, sans-serif;
}

body, canvas, div {
  outline: 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 */
}

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

#GameDiv {
    margin: 0 auto;
    position:relative;
    border:5px solid black;
    border-radius: 10px;
    box-shadow: 0 5px 50px #333
}

#Cocos3dGameContainer, #GameCanvas {
  width: 100%;
  height: 100%;
}

:root {
  --safe-top: env(safe-area-inset-top);
  --safe-right: env(safe-area-inset-right);
  --safe-bottom: env(safe-area-inset-bottom);
  --safe-left: env(safe-area-inset-left);
}

/* zhaotong preview layout fix start */

html,
body {
  width: 100%;
  height: 100%;
  min-height: 100%;
  overflow: hidden;
  background: #214b45;
  overscroll-behavior: none;
}

body {
  position: fixed;
  inset: 0;
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  user-select: none;
}

.header,
.footer {
  display: none !important;
}

#GameDiv {
  position: fixed !important;
  left: calc(var(--app-left, 0px) + env(safe-area-inset-left)) !important;
  top: calc(var(--app-top, 0px) + env(safe-area-inset-top)) !important;
  width: calc(var(--app-width, 100vw) - env(safe-area-inset-left) - env(safe-area-inset-right)) !important;
  height: calc(var(--app-height, 100dvh) - env(safe-area-inset-top) - env(safe-area-inset-bottom) - var(--ztmj-bottom-guard, 0px)) !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: #214b45;
  box-sizing: border-box !important;
  overflow: hidden !important;
  touch-action: none !important;
  user-select: none !important;
  -webkit-user-select: none !important;
}

#Cocos3dGameContainer,
#GameCanvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
  touch-action: none !important;
  user-select: none !important;
  -webkit-user-select: none !important;
}

@supports (height: 100dvh) {
  #GameDiv {
    height: calc(var(--ztmj-dvh, 100dvh) - env(safe-area-inset-top) - env(safe-area-inset-bottom) - var(--ztmj-bottom-guard, 0px)) !important;
  }
}

.zhaotong-rotate-hint {
  align-items: center;
  background: #17342f;
  color: #fff7df;
  display: none;
  flex-direction: column;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  inset: 0;
  justify-content: center;
  padding: 28px;
  position: fixed;
  text-align: center;
  z-index: 9999;
}

.zhaotong-rotate-phone {
  border: 5px solid #ffd56a;
  border-radius: 18px;
  height: 86px;
  margin-bottom: 24px;
  position: relative;
  transform: rotate(90deg);
  width: 52px;
}

.zhaotong-rotate-phone::after {
  background: #ffd56a;
  border-radius: 999px;
  bottom: 8px;
  content: "";
  height: 6px;
  left: 50%;
  position: absolute;
  transform: translateX(-50%);
  width: 18px;
}

.zhaotong-rotate-title {
  color: #ffd56a;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 12px;
}

.zhaotong-rotate-text {
  color: #b8e4d8;
  font-size: 17px;
  line-height: 1.55;
  max-width: 300px;
}

@media (orientation: portrait) and (max-width: 768px) {
  .zhaotong-rotate-hint {
    display: flex;
  }
}
/* zhaotong preview layout fix end */
