/* 飞机大战 */
:root {
  --bg: #0a0e27;
  --bg-game: #0d1335;
  --accent: #00d4ff;
  --accent-glow: rgba(0, 212, 255, 0.5);
  --danger: #ff4757;
  --success: #2ed573;
  --text: #e4e4e7;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  font-family: 'Noto Sans SC', 'Orbitron', system-ui, sans-serif;
  color: var(--text);
  padding: 1rem;
}

.game-container {
  background: linear-gradient(180deg, #151a3a 0%, #0d1335 100%);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 0 40px rgba(0, 212, 255, 0.2);
  border: 1px solid rgba(0, 212, 255, 0.3);
}

.game-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.game-header h1 {
  font-size: 1.3rem;
  font-family: 'Orbitron', sans-serif;
}

.stats {
  display: flex;
  gap: 1.5rem;
}

.stat {
  font-size: 0.95rem;
  color: var(--accent);
}

.game-area {
  position: relative;
  width: 400px;
  height: 500px;
  background: linear-gradient(180deg, #0a0e27 0%, #1a1f4a 100%);
  border-radius: 8px;
  overflow: hidden;
}

.player {
  position: absolute;
  width: 50px;
  height: 50px;
  left: 175px;
  bottom: 30px;
  background: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
  clip-path: polygon(50% 0%, 100% 100%, 50% 85%, 0% 100%);
  box-shadow: 0 0 20px var(--accent-glow);
  z-index: 10;
  transition: left 0.05s;
}

.player::before {
  content: '';
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border: 6px solid transparent;
  border-left-color: #ff6b35;
  border-right: 0;
}

.bullets {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.bullet {
  position: absolute;
  width: 4px;
  height: 16px;
  background: linear-gradient(180deg, #00ff88, #00d4ff);
  border-radius: 2px;
  box-shadow: 0 0 8px var(--accent-glow);
}

.enemies {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.enemy {
  position: absolute;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #ff4757 0%, #c0392b 100%);
  clip-path: polygon(50% 100%, 100% 0%, 50% 15%, 0% 0%);
  box-shadow: 0 0 10px rgba(255, 71, 87, 0.5);
}

.enemy-bullets {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.enemy-bullet {
  position: absolute;
  width: 4px;
  height: 12px;
  background: #ff4757;
  border-radius: 2px;
}

.overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 14, 39, 0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 20;
}

.overlay.hidden {
  display: none;
}

.overlay h2 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: var(--accent);
  font-family: 'Orbitron', sans-serif;
}

.overlay p {
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: #888;
}

.btn {
  padding: 0.6rem 1.5rem;
  font-size: 1rem;
  font-family: inherit;
  background: linear-gradient(135deg, var(--accent), #0099cc);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s;
}

.btn:hover {
  box-shadow: 0 0 20px var(--accent-glow);
  transform: scale(1.05);
}

.game-footer {
  margin-top: 0.5rem;
  text-align: center;
  font-size: 0.8rem;
  color: #666;
}
