* {
  margin: 0;
  padding: 0;
}

:root {
  --app-width: 100vw;
  --app-height: 100dvh;
}

html,
body {
  width: 100%;
  height: var(--app-height, 100dvh);
  min-height: var(--app-height, 100dvh);
  overflow: hidden;
  overscroll-behavior: none;
  background: #000;
}

body {
  position: fixed;
  inset: 0;
  touch-action: none;
}

#GameOrientation {
  position: fixed;
  padding: 0;
  border: 0;
  touch-action: none;
  user-select: none;
  /* fix bug: hide cocos scrollbar */
  overflow: hidden;
  box-shadow: 0px 10px 20px #040714a6;
  opacity: 0;
  transition: opacity 0.5s;
}

#GameBackground {
  position: fixed;
  height: var(--app-height, 100dvh);
  width: var(--app-width, 100vw);
  background-image: none;
  background-repeat: round;
  background-size: cover;
  opacity: 0;
  filter: brightness(1);
  transition: opacity 0.5s, background-image 1s, filter 0.5s;
}

canvas {
  /* fix bug: hide canvas before load */
  width: 0;
  height: 0;
  /* fix bug: hide browser selected outline */
  outline: none;
}

iframe {
  touch-action: none !important;
  -ms-touch-action: none !important;
  -webkit-touch-callout: none !important;
  -moz-user-select: none !important;
  user-select: none !important;
  -webkit-user-select: none !important;
  -ms-user-select: none !important;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0) !important;
}
