html {
  -ms-touch-action: none;
  touch-action: none;
  overscroll-behavior: none;
  background: #111f32;
}

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

body {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  margin: 0;
  overflow: hidden;
  overscroll-behavior: none;
  color: #eef5fd;
  background: #111f32;
  text-align: center;
  font-family: system-ui, -apple-system, "Segoe UI", "Microsoft YaHei", sans-serif;
}

canvas {
  background-color: transparent;
  touch-action: none;
}

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

#LandscapePrompt {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding:
    max(24px, env(safe-area-inset-top))
    max(24px, env(safe-area-inset-right))
    max(24px, env(safe-area-inset-bottom))
    max(24px, env(safe-area-inset-left));
  background: #111f32;
}

.landscape-prompt-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  line-height: 1.4;
}

.landscape-prompt-card strong {
  font-size: 24px;
}

.landscape-prompt-card span {
  color: #97acc4;
}

.landscape-prompt-icon {
  color: #53cfc2;
  font-size: 54px;
  line-height: 1;
}

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

@media (orientation: portrait) {
  #GameDiv {
    visibility: hidden;
    pointer-events: none;
  }

  #LandscapePrompt {
    display: flex;
  }
}
