html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #071a24;
  color: #f4fbff;
  font-family: Arial, "Microsoft YaHei", sans-serif;
}

#GameDiv,
#Cocos3dGameContainer,
#GameCanvas {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
  outline: none;
}

#splash {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background: #071a24;
}

.brand {
  font-size: 26px;
  font-weight: 700;
}

.progress {
  width: min(360px, 72vw);
  height: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
}

.progress span {
  display: block;
  width: 0;
  height: 100%;
  background: #36d1ff;
  transition: width 0.2s ease;
}

#status {
  min-height: 20px;
  font-size: 14px;
  color: rgba(244, 251, 255, 0.82);
}

#errorBox {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 20;
  max-height: 42vh;
  overflow: auto;
  margin: 0;
  padding: 12px;
  white-space: pre-wrap;
  color: #ffecec;
  background: rgba(80, 14, 20, 0.94);
  border: 1px solid rgba(255, 120, 120, 0.45);
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.45;
}
