* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: radial-gradient(circle at 50% 30%, #14161f 0%, #07080c 60%, #000 100%);
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif;
  color: #cfd6e6;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

#stage-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

#game {
  display: block;
  width: min(100vw, calc(100vh * 1024 / 576));
  height: min(100vh, calc(100vw * 576 / 1024));
  background: #05060a;
  border-radius: 4px;
  box-shadow:
    0 0 0 1px rgba(120, 150, 220, 0.35),
    0 0 60px rgba(70, 110, 220, 0.18),
    0 30px 70px rgba(0, 0, 0, 0.85);
  touch-action: none;
}

/* ---------- 启动遮罩 ---------- */
#boot {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: #06070b;
  z-index: 10;
  transition: opacity 0.45s ease;
}

#boot.hide {
  opacity: 0;
  pointer-events: none;
}

.boot-title {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: 10px;
  color: #f2d489;
  text-shadow: 0 0 22px rgba(242, 212, 137, 0.45);
}

.boot-sub {
  font-size: 13px;
  letter-spacing: 8px;
  color: #5d6b8a;
}

.boot-tip {
  margin-top: 8px;
  font-size: 12px;
  letter-spacing: 3px;
  color: #47516b;
  animation: blink 1.2s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 1; }
}
