html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  overscroll-behavior: none;
  background: #18201e;
}

body {
  color: #f3e7cf;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}

#WltamerViewport {
  position: fixed;
  inset: 0;
  height: var(--game-viewport-height, 100vh);
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at 50% 40%, #344038, #18201e 72%);
}

/* The engine owns the framebuffer; the shell owns the CSS frame dimensions. */
#GameDiv {
  flex: none;
  width: var(--game-frame-width, 100vw) !important;
  height: var(--game-frame-height, 100vh) !important;
  margin: 0 !important;
  transform: none !important;
  overflow: hidden;
  background: #101511;
  box-shadow: 0 0 0 1px #ad8a4e40, 0 0 64px #0009;
  touch-action: none;
}

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

#WltamerRotateHint {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  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: #18201ef5;
  box-sizing: border-box;
  touch-action: none;
}

#WltamerRotateHint[hidden] { display: none; }

.rotate-message {
  text-align: center;
  border-top: 1px solid #a88c5870;
  border-bottom: 1px solid #a88c5870;
  padding: 24px 32px;
}

.rotate-message h1 {
  margin: 0 0 12px;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 2px;
}

.rotate-message p {
  margin: 0;
  color: #c7b99f;
  font-size: 16px;
  line-height: 1.6;
}
