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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #0a0a1a;
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
}

#game-wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at center, #1a1a3a 0%, #0a0a1a 70%);
}

#game-container {
  position: relative;
  width: 100%;
  max-width: 600px;
  height: 100%;
  max-height: 720px;
  margin: 0 auto;
}

#gameCanvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: crosshair;
  touch-action: none;
}

/* 加载动画 */
.loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: rgba(255, 215, 0, 0.6);
  font-size: 1.2rem;
  text-align: center;
}

.loading::after {
  content: '';
  display: block;
  width: 30px;
  height: 30px;
  margin: 20px auto 0;
  border: 2px solid rgba(255, 215, 0, 0.2);
  border-top-color: #FFD700;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
