* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  width: 100%;
  height: 100%;
  background: #05070f;
  color: #cfe3ff;
  font-family: "PingFang SC", "Microsoft YaHei", -apple-system, system-ui, sans-serif;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}

.wrap {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 6px;
}

/* 舞台：按视口等比缩放画布 */
.stage {
  position: relative;
  flex: 0 1 auto;
  height: calc(100vh - 92px);
  aspect-ratio: 480 / 720;
  max-width: min(96vw, 560px);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(90, 160, 255, .25), 0 18px 50px rgba(0, 0, 0, .7);
  background: #05070f;
}

#game {
  display: block;
  width: 100%;
  height: 100%;
  image-rendering: auto;
  touch-action: none;
}

.hint {
  font-size: 12px;
  line-height: 1.6;
  color: #6b7f9e;
  text-align: center;
  padding: 0 10px;
}

.hint b { color: #9ec5ff; font-weight: 600; }

@media (max-width: 520px) {
  .hint { font-size: 11px; }
  .stage { height: calc(100vh - 84px); }
}
