html,
body,
#GameDiv,
#Cocos3dGameContainer,
#GameCanvas {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
}

html,
body {
  position: fixed;
  inset: 0;
  background: #091216;
  overscroll-behavior: none;
}

#GameDiv {
  position: absolute;
  inset: 0;
}

#GameCanvas {
  display: block;
  outline: none;
  touch-action: none;
}

#energy-loading {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  background-color: #071115;
  background-image:
    linear-gradient(rgba(80, 211, 174, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(80, 211, 174, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  color: #eef5f1;
  opacity: 1;
  transition: opacity 320ms ease;
}

#energy-loading::after {
  position: absolute;
  right: 5vw;
  bottom: 5vh;
  width: 20vw;
  height: 1px;
  background: #d3aa2b;
  content: "";
}

#energy-loading img {
  width: clamp(92px, 9vw, 142px);
  height: clamp(92px, 9vw, 142px);
  object-fit: contain;
}

#energy-loading h1 {
  margin: 22px 0 0;
  font: 600 clamp(22px, 2.1vw, 34px)/1.25 system-ui, -apple-system, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

#energy-loading p {
  margin: 13px 0 0;
  color: #8da6a0;
  font: 400 14px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

.loading-dots::after {
  display: inline-block;
  width: 1.5em;
  content: "";
  animation: loading-dots 1.2s steps(4, end) infinite;
}

.game-ready #energy-loading {
  pointer-events: none;
  opacity: 0;
}

@keyframes loading-dots {
  0% { content: ""; }
  25% { content: "."; }
  50% { content: ".."; }
  75%, 100% { content: "..."; }
}
