html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: #000;
}

body,
canvas,
div {
  box-sizing: border-box;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
  touch-action: none;
}

#GameDiv {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  border: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

#Cocos3dGameContainer,
#GameCanvas {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
}

#GameCanvas {
  background: transparent;
  /* Source keeps wide landscape play inside its centered 1.78:1 frame. */
  clip-path: inset(0 max(0px, calc((100vw - 178dvh) / 2)) 0 max(0px, calc((100vw - 178dvh) / 2)));
}

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