html,
body,
#GameDiv,
#Cocos3dGameContainer,
#GameCanvas {
  touch-action: none;
  -ms-touch-action: none;
  overscroll-behavior: none;
}

html,
body {
  width: 100vw;
  height: 100%;
  min-width: 1px;
  min-height: 100vh;
}

body,
canvas,
div {
  display: block;
  outline: none;
  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);
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

body {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 0;
  border: 0;
  margin: 0;
  overflow: hidden;
  cursor: default;
  color: #f8e5ad;
  background-color: #050806;
  text-align: center;
  font-family: Helvetica, Verdana, Arial, sans-serif;
  display: flex;
  flex-direction: column;
}

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

#GameDiv,
#Cocos3dGameContainer,
#GameCanvas {
  width: 100%;
  height: 100%;
  min-width: 1px;
  min-height: 1px;
}

#GameDiv {
  position: fixed;
  inset: 0;
  flex: 1 1 auto;
  overflow: hidden;
  background: #050806;
}

body:not(.jianghu-canvas-ready) #GameDiv {
  visibility: hidden;
}

@supports (height: 100svh) {
  html,
  body,
  #GameDiv,
  #Cocos3dGameContainer,
  #GameCanvas {
    min-height: 100svh;
  }
}

@supports (height: 100dvh) {
  html,
  body,
  #GameDiv,
  #Cocos3dGameContainer,
  #GameCanvas {
    height: 100dvh;
    min-height: 100dvh;
  }
}

#splash.jh-boot-splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: block;
  overflow: hidden;
  background: #050806;
  opacity: 1;
  transition: opacity 1000ms ease-in-out;
}

#splash.jh-boot-splash.is-hiding,
#splash.jh-boot-splash.jianghu-ready {
  opacity: 0;
  pointer-events: none;
}

.jh-company-splash-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  animation: jianghu-company-splash-fade-in 1000ms ease-in-out both;
}

@keyframes jianghu-company-splash-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (min-aspect-ratio: 3/4) {
  .jh-company-splash-image {
    object-fit: contain;
  }
}

: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);
}
