/* ===== 基础重置 ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  user-select: none;
  -webkit-user-select: none;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #05060a;
  color: #e6f1ff;
  font-family: 'Orbitron', 'Rajdhani', 'Segoe UI', sans-serif;
  font-weight: 500;
  cursor: default;
}

#game-container {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

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

.hidden {
  display: none !important;
}

/* ===== 字体加载（科幻风格） ===== */
@import url('https://miaoda.feishu.cn/fonts/css2?family=Orbitron:wght@500;600;700;900&family=Rajdhani:wght@400;500;600;700&display=swap');

/* ===== 节日标识 ===== */
.festival-badge {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: linear-gradient(135deg, rgba(255, 80, 80, 0.25), rgba(255, 180, 50, 0.2));
  border: 1px solid rgba(255, 180, 50, 0.5);
  border-radius: 20px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 13px;
  letter-spacing: 2px;
  color: #ffcc66;
  text-shadow: 0 0 6px rgba(255, 180, 50, 0.6);
  box-shadow: 0 0 15px rgba(255, 150, 50, 0.2);
  pointer-events: none;
  animation: festivalGlow 2.5s ease-in-out infinite;
}

.festival-badge .festival-icon {
  font-size: 14px;
}

@keyframes festivalGlow {
  0%, 100% { box-shadow: 0 0 15px rgba(255, 150, 50, 0.2); }
  50% { box-shadow: 0 0 25px rgba(255, 180, 80, 0.5); }
}

/* ===== HUD 基础样式 ===== */
#hud {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 10;
}

.hud-panel {
  position: absolute;
  padding: 12px 18px;
  background: linear-gradient(135deg, rgba(0, 20, 40, 0.55), rgba(0, 10, 25, 0.35));
  border: 1px solid rgba(0, 200, 255, 0.35);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  clip-path: polygon(
    0 0,
    calc(100% - 14px) 0,
    100% 14px,
    100% 100%,
    14px 100%,
    0 calc(100% - 14px)
  );
  box-shadow: 0 0 20px rgba(0, 180, 255, 0.15), inset 0 0 15px rgba(0, 150, 255, 0.08);
}

.hud-label {
  font-family: 'Orbitron', sans-serif;
  font-size: 10px;
  letter-spacing: 3px;
  color: rgba(0, 220, 255, 0.75);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.hud-value {
  font-family: 'Orbitron', sans-serif;
  font-size: 12px;
  color: #9dd8ff;
  letter-spacing: 1px;
}

/* ===== 准星 ===== */
#crosshair {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 28px;
  height: 28px;
  pointer-events: none;
  z-index: 20;
}

.ch-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 2px;
  height: 2px;
  background: #00eaff;
  border-radius: 50%;
  box-shadow: 0 0 4px #00eaff, 0 0 8px rgba(0, 234, 255, 0.5);
}

.ch-line {
  position: absolute;
  background: #00eaff;
  box-shadow: 0 0 4px #00eaff;
}

.ch-top, .ch-bottom {
  width: 1px;
  height: 6px;
  left: 50%;
  transform: translateX(-50%);
}
.ch-top { top: 0; }
.ch-bottom { bottom: 0; }

.ch-left, .ch-right {
  width: 6px;
  height: 1px;
  top: 50%;
  transform: translateY(-50%);
}
.ch-left { left: 0; }
.ch-right { right: 0; }

#crosshair.hit .ch-line,
#crosshair.hit .ch-dot {
  background: #ff3b3b;
  box-shadow: 0 0 6px #ff3b3b;
  transition: background 0.08s, box-shadow 0.08s;
}

/* ===== 左下 HP 条 ===== */
.hud-bottom-left {
  bottom: 28px;
  left: 28px;
  min-width: 220px;
}

.hp-bar-outer {
  width: 100%;
  height: 8px;
  background: rgba(0, 40, 60, 0.6);
  border: 1px solid rgba(0, 180, 255, 0.4);
  margin-bottom: 6px;
  position: relative;
  overflow: hidden;
}

.hp-bar-inner {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #00ffaa, #00eaff);
  box-shadow: 0 0 8px rgba(0, 234, 255, 0.6);
  transition: width 0.25s ease, background 0.3s;
}

.hp-bar-inner.low {
  background: linear-gradient(90deg, #ff4444, #ff8800);
  box-shadow: 0 0 8px rgba(255, 60, 60, 0.7);
}

/* ===== 右下 弹药 ===== */
.hud-bottom-right {
  bottom: 28px;
  right: 28px;
  text-align: right;
  min-width: 180px;
}

.ammo-main {
  font-family: 'Orbitron', sans-serif;
  font-size: 36px;
  font-weight: 700;
  line-height: 1;
  color: #00eaff;
  text-shadow: 0 0 10px rgba(0, 234, 255, 0.6);
  letter-spacing: 2px;
  margin-bottom: 4px;
}

.ammo-main .ammo-sep {
  color: rgba(0, 180, 255, 0.4);
  margin: 0 4px;
  font-size: 24px;
}

.ammo-label {
  margin-bottom: 0;
  margin-top: 2px;
}

.reload-indicator {
  position: absolute;
  top: -28px;
  right: 18px;
  font-family: 'Orbitron', sans-serif;
  font-size: 12px;
  color: #ffcc00;
  letter-spacing: 3px;
  text-shadow: 0 0 6px rgba(255, 200, 0, 0.6);
  animation: reloadPulse 0.8s ease-in-out infinite;
}

@keyframes reloadPulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

@keyframes ammoFlash {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.ammo-main .reload-flash {
  animation: ammoFlash 0.4s ease-in-out infinite;
  color: #ffcc00 !important;
  text-shadow: 0 0 12px rgba(255, 200, 0, 0.8) !important;
}

/* ===== 顶部 得分 ===== */
.hud-top-center {
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  min-width: 200px;
}

.score-value {
  font-family: 'Orbitron', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 0 12px rgba(0, 234, 255, 0.8);
  letter-spacing: 3px;
}

/* ===== 右上 波次+击杀 ===== */
.hud-top-right {
  top: 24px;
  right: 28px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.wave-block, .kills-block {
  text-align: right;
}

.wave-value, .kills-value {
  font-family: 'Orbitron', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #ffcc00;
  text-shadow: 0 0 8px rgba(255, 200, 0, 0.6);
  letter-spacing: 2px;
}

.kills-value {
  color: #ff5577;
  text-shadow: 0 0 8px rgba(255, 80, 120, 0.6);
}

/* ===== 左上 战区名 + 倍率 ===== */
.hud-top-left {
  top: 24px;
  left: 28px;
  min-width: 180px;
}

.zone-name-hud {
  font-family: 'Orbitron', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 2px;
  text-shadow: 0 0 8px rgba(0, 234, 255, 0.5);
}

.score-multiplier {
  margin-top: 4px;
  font-family: 'Orbitron', sans-serif;
  font-size: 12px;
  color: #ffcc00;
  letter-spacing: 1px;
  text-shadow: 0 0 6px rgba(255, 200, 0, 0.6);
}

/* ===== 受伤红屏 ===== */
.damage-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(255, 30, 30, 0.5) 100%);
  opacity: 0;
  transition: opacity 0.15s;
  z-index: 5;
}

.damage-overlay.flash {
  opacity: 1;
}

/* ===== 覆盖层界面（通用） ===== */
.overlay-screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at center, rgba(5, 10, 20, 0.85) 0%, rgba(0, 0, 10, 0.95) 100%);
  z-index: 100;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  overflow-y: auto;
  padding: 20px;
}

.menu-content {
  text-align: center;
  padding: 48px 56px;
  background: linear-gradient(135deg, rgba(0, 30, 60, 0.4), rgba(0, 10, 30, 0.6));
  border: 1px solid rgba(0, 200, 255, 0.4);
  clip-path: polygon(
    0 0,
    calc(100% - 24px) 0,
    100% 24px,
    100% 100%,
    24px 100%,
    0 calc(100% - 24px)
  );
  box-shadow: 0 0 40px rgba(0, 180, 255, 0.2), inset 0 0 40px rgba(0, 100, 200, 0.1);
  max-width: 520px;
  width: 90%;
}

.menu-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 36px;
  font-weight: 700;
  letter-spacing: 4px;
  color: #00eaff;
  text-shadow: 0 0 12px rgba(0, 234, 255, 0.6);
  margin-bottom: 28px;
}

.gameover-title {
  color: #ff3355;
  text-shadow: 0 0 12px rgba(255, 50, 80, 0.6);
}

.gameover-zone {
  font-family: 'Rajdhani', sans-serif;
  font-size: 14px;
  letter-spacing: 3px;
  color: rgba(150, 200, 230, 0.6);
  margin-bottom: 8px;
}

.stats-block {
  margin: 24px 0 28px;
  padding: 18px 24px;
  background: rgba(0, 20, 40, 0.5);
  border: 1px solid rgba(0, 180, 255, 0.2);
}

.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px dashed rgba(0, 180, 255, 0.15);
  font-family: 'Rajdhani', sans-serif;
}

.stat-row:last-child {
  border-bottom: none;
}

.stat-row.highlight {
  padding-top: 12px;
  margin-top: 6px;
  border-top: 1px solid rgba(255, 200, 0, 0.3);
  border-bottom: none;
}

.stat-label {
  font-size: 14px;
  color: #7fb8d8;
  letter-spacing: 2px;
}

.stat-row.highlight .stat-label {
  color: #ffcc00;
}

.stat-value {
  font-family: 'Orbitron', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #00eaff;
  letter-spacing: 2px;
}

.stat-row.highlight .stat-value {
  color: #ffcc00;
  text-shadow: 0 0 8px rgba(255, 200, 0, 0.5);
}

/* ===== 按钮 ===== */
.neon-btn {
  display: inline-block;
  padding: 14px 40px;
  font-family: 'Orbitron', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 4px;
  color: #00eaff;
  background: linear-gradient(135deg, rgba(0, 100, 180, 0.2), rgba(0, 50, 120, 0.3));
  border: 1px solid #00eaff;
  cursor: pointer;
  text-transform: uppercase;
  transition: all 0.2s ease;
  box-shadow: 0 0 15px rgba(0, 234, 255, 0.3), inset 0 0 15px rgba(0, 234, 255, 0.08);
  position: relative;
  overflow: hidden;
  margin: 6px;
}

.neon-btn:hover {
  background: linear-gradient(135deg, rgba(0, 150, 220, 0.35), rgba(0, 80, 160, 0.45));
  box-shadow: 0 0 25px rgba(0, 234, 255, 0.6), inset 0 0 20px rgba(0, 234, 255, 0.15);
  transform: translateY(-1px);
}

.neon-btn:active {
  transform: translateY(0);
  box-shadow: 0 0 10px rgba(0, 234, 255, 0.4);
}

.neon-btn.secondary {
  color: #9dd8ff;
  border-color: rgba(100, 180, 220, 0.5);
  background: linear-gradient(135deg, rgba(40, 70, 100, 0.2), rgba(20, 40, 70, 0.3));
  box-shadow: 0 0 10px rgba(100, 180, 220, 0.15);
}

.neon-btn.secondary:hover {
  color: #00eaff;
  border-color: #00eaff;
  box-shadow: 0 0 20px rgba(0, 234, 255, 0.4);
}

.neon-btn.icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  font-size: 12px;
  letter-spacing: 2px;
}

.btn-icon {
  font-size: 16px;
}

.close-btn {
  width: 32px;
  height: 32px;
  background: rgba(255, 80, 100, 0.15);
  border: 1px solid rgba(255, 100, 120, 0.4);
  color: #ff6677;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  border-radius: 4px;
}

.close-btn:hover {
  background: rgba(255, 80, 100, 0.3);
  box-shadow: 0 0 10px rgba(255, 80, 100, 0.4);
}

/* ===== 战区选择界面 ===== */
#zone-select-screen {
  justify-content: flex-start;
  padding: 40px 30px;
}

.zs-header {
  width: 100%;
  max-width: 1200px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.zs-logo-block {
  position: relative;
  padding: 10px 0;
}

.zs-logo-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 80px;
  background: radial-gradient(ellipse, rgba(0, 200, 255, 0.3) 0%, transparent 70%);
  filter: blur(20px);
  z-index: 0;
}

.zs-title {
  position: relative;
  font-family: 'Orbitron', sans-serif;
  font-size: 36px;
  font-weight: 900;
  letter-spacing: 6px;
  color: #00eaff;
  text-shadow:
    0 0 10px #00eaff,
    0 0 20px rgba(0, 234, 255, 0.6),
    0 0 40px rgba(0, 180, 255, 0.4);
  z-index: 1;
}

.zs-subtitle {
  position: relative;
  font-family: 'Rajdhani', sans-serif;
  font-size: 12px;
  letter-spacing: 6px;
  color: rgba(150, 220, 255, 0.7);
  margin-top: 4px;
  z-index: 1;
}

.zs-header-actions {
  display: flex;
  gap: 12px;
}

.zs-subheader {
  width: 100%;
  max-width: 1200px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(0, 180, 255, 0.2);
}

.zs-section-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 4px;
  color: #9dd8ff;
}

.zs-hint {
  font-family: 'Rajdhani', sans-serif;
  font-size: 13px;
  color: rgba(150, 200, 230, 0.5);
  letter-spacing: 2px;
}

.zone-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  width: 100%;
  max-width: 1200px;
  margin-bottom: 24px;
}

.zone-card {
  position: relative;
  background: linear-gradient(160deg, rgba(0, 30, 60, 0.5), rgba(0, 15, 35, 0.7));
  border: 1px solid rgba(0, 180, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
  overflow: hidden;
  clip-path: polygon(
    0 0,
    calc(100% - 18px) 0,
    100% 18px,
    100% 100%,
    18px 100%,
    0 calc(100% - 18px)
  );
}

.zone-card:hover {
  border-color: #00eaff;
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 180, 255, 0.3), 0 0 20px rgba(0, 234, 255, 0.2);
}

.zone-card:hover .zc-image {
  transform: scale(1.08);
}

.zc-image {
  width: 100%;
  height: 140px;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
  position: relative;
}

.zc-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(0, 15, 35, 0.8) 100%);
}

.zc-content {
  padding: 14px 16px;
}

.zc-name {
  font-family: 'Orbitron', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 2px;
  margin-bottom: 8px;
  text-shadow: 0 0 8px rgba(0, 234, 255, 0.4);
}

.zc-difficulty {
  display: flex;
  gap: 3px;
  margin-bottom: 10px;
}

.zc-star {
  font-size: 14px;
  color: #ffcc00;
  text-shadow: 0 0 4px rgba(255, 200, 0, 0.6);
}

.zc-star.inactive {
  color: rgba(100, 120, 140, 0.4);
  text-shadow: none;
}

.zc-info {
  font-family: 'Rajdhani', sans-serif;
  font-size: 12px;
  color: #7fb8d8;
  line-height: 1.6;
  letter-spacing: 1px;
  margin-bottom: 10px;
  min-height: 40px;
}

.zc-info span {
  color: #9dd8ff;
  font-weight: 600;
}

.zc-level {
  font-family: 'Orbitron', sans-serif;
  font-size: 10px;
  letter-spacing: 2px;
  color: rgba(150, 200, 230, 0.5);
  padding-top: 8px;
  border-top: 1px solid rgba(0, 180, 255, 0.15);
}

.zc-level strong {
  color: #00eaff;
  font-weight: 700;
}

.zone-card.selected {
  border-color: #ffcc00;
  box-shadow: 0 0 30px rgba(255, 200, 0, 0.5), 0 0 15px rgba(255, 200, 0, 0.3), inset 0 0 20px rgba(255, 200, 0, 0.1);
  transform: translateY(-4px);
}

.zone-card.selected::before {
  content: '\2713  已选择';
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 3px 10px;
  background: rgba(255, 200, 0, 0.9);
  color: #0a0a0a;
  font-family: 'Orbitron', sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  z-index: 3;
}

.zone-card:active {
  transform: translateY(-1px) scale(0.98);
  transition: transform 0.05s;
}

.zc-corner-tag {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 3px 8px;
  background: rgba(0, 20, 40, 0.8);
  border: 1px solid rgba(0, 200, 255, 0.4);
  font-family: 'Orbitron', sans-serif;
  font-size: 9px;
  letter-spacing: 1px;
  color: #00eaff;
  z-index: 2;
}

.zs-footer {
  width: 100%;
  max-width: 1200px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding-top: 20px;
  gap: 20px;
}

.zs-footer-left {
  display: flex;
  justify-content: flex-start;
}

.zs-footer-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.zs-footer-right {
  display: flex;
  justify-content: flex-end;
}

.selected-zone-name {
  font-family: 'Orbitron', sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 3px;
  color: #9dd8ff;
  min-height: 24px;
}

.selected-zone-name.has-selection {
  color: #ffcc00;
  text-shadow: 0 0 8px rgba(255, 200, 0, 0.5);
}

.neon-btn.large {
  padding: 18px 60px;
  font-size: 16px;
  letter-spacing: 6px;
}

.neon-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
  filter: grayscale(0.5);
}

.selected-zone-info {
  font-family: 'Rajdhani', sans-serif;
  font-size: 12px;
  color: #7fb8d8;
  letter-spacing: 1px;
  text-align: right;
  max-width: 220px;
  line-height: 1.6;
  padding: 10px 16px;
  background: rgba(0, 20, 40, 0.4);
  border: 1px solid rgba(0, 150, 220, 0.2);
  min-height: 56px;
  min-width: 200px;
}

.best-score-display {
  display: flex;
  gap: 16px;
  align-items: baseline;
  padding: 12px 24px;
  background: rgba(0, 20, 40, 0.4);
  border: 1px solid rgba(255, 200, 0, 0.25);
  clip-path: polygon(
    0 0,
    calc(100% - 12px) 0,
    100% 12px,
    100% 100%,
    12px 100%,
    0 calc(100% - 12px)
  );
}

.bs-label {
  font-family: 'Orbitron', sans-serif;
  font-size: 11px;
  letter-spacing: 3px;
  color: rgba(255, 200, 100, 0.7);
}

.bs-value {
  font-family: 'Orbitron', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #ffcc00;
  text-shadow: 0 0 10px rgba(255, 200, 0, 0.6);
  letter-spacing: 2px;
}

/* ===== 任务面板 ===== */
.missions-panel {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 560px;
  max-width: 90vw;
  max-height: 80vh;
  background: linear-gradient(160deg, rgba(0, 25, 50, 0.95), rgba(0, 10, 25, 0.98));
  border: 1px solid rgba(0, 200, 255, 0.4);
  z-index: 200;
  display: flex;
  flex-direction: column;
  clip-path: polygon(
    0 0,
    calc(100% - 20px) 0,
    100% 20px,
    100% 100%,
    20px 100%,
    0 calc(100% - 20px)
  );
  box-shadow: 0 0 50px rgba(0, 180, 255, 0.3), inset 0 0 30px rgba(0, 100, 200, 0.1);
  animation: panelIn 0.3s ease-out;
}

@keyframes panelIn {
  from {
    opacity: 0;
    transform: translate(-50%, -48%) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

.missions-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  border-bottom: 1px solid rgba(0, 180, 255, 0.25);
}

.missions-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 4px;
  color: #00eaff;
  text-shadow: 0 0 10px rgba(0, 234, 255, 0.5);
}

.missions-date {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 24px;
  background: rgba(0, 40, 80, 0.3);
  border-bottom: 1px solid rgba(0, 180, 255, 0.15);
  font-family: 'Rajdhani', sans-serif;
  font-size: 12px;
  color: #7fb8d8;
  letter-spacing: 1px;
}

.missions-reset-hint {
  color: rgba(150, 200, 230, 0.5);
  font-size: 11px;
}

.missions-list {
  flex: 1;
  overflow-y: auto;
  padding: 12px 24px;
}

.mission-item {
  padding: 14px;
  margin-bottom: 10px;
  background: rgba(0, 30, 60, 0.4);
  border: 1px solid rgba(0, 150, 220, 0.25);
  transition: all 0.2s;
}

.mission-item.completed {
  border-color: rgba(0, 255, 150, 0.4);
  background: rgba(0, 50, 40, 0.3);
}

.mission-item.claimed {
  opacity: 0.5;
  border-color: rgba(100, 120, 140, 0.2);
}

.mission-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.mission-desc {
  font-family: 'Rajdhani', sans-serif;
  font-size: 14px;
  color: #c0e0f5;
  letter-spacing: 0.5px;
  flex: 1;
  padding-right: 12px;
}

.mission-reward {
  font-family: 'Orbitron', sans-serif;
  font-size: 10px;
  letter-spacing: 1px;
  color: #ffcc00;
  white-space: nowrap;
  padding: 3px 8px;
  background: rgba(255, 200, 0, 0.12);
  border: 1px solid rgba(255, 200, 0, 0.3);
}

.mission-progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(0, 30, 60, 0.8);
  border: 1px solid rgba(0, 100, 160, 0.3);
  margin-bottom: 8px;
  overflow: hidden;
}

.mission-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #00aaff, #00eaff);
  box-shadow: 0 0 6px rgba(0, 234, 255, 0.6);
  transition: width 0.3s ease;
}

.mission-item.completed .mission-progress-fill {
  background: linear-gradient(90deg, #00dd88, #00ffaa);
  box-shadow: 0 0 6px rgba(0, 255, 150, 0.6);
}

.mission-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mission-progress-text {
  font-family: 'Orbitron', sans-serif;
  font-size: 11px;
  color: #7fb8d8;
  letter-spacing: 1px;
}

.mission-claim-btn {
  padding: 5px 16px;
  font-family: 'Orbitron', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #050a0f;
  background: linear-gradient(135deg, #ffcc00, #ff9900);
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 0 10px rgba(255, 200, 0, 0.4);
}

.mission-claim-btn:hover:not(:disabled) {
  box-shadow: 0 0 15px rgba(255, 200, 0, 0.7);
  transform: translateY(-1px);
}

.mission-claim-btn:disabled {
  background: rgba(80, 100, 120, 0.3);
  color: rgba(150, 180, 200, 0.4);
  cursor: not-allowed;
  box-shadow: none;
}

.mission-claim-btn.claimed-btn {
  background: rgba(0, 100, 80, 0.3);
  color: #00ffaa;
  border: 1px solid rgba(0, 255, 150, 0.3);
  cursor: default;
  box-shadow: none;
}

.missions-footer {
  padding: 14px 24px;
  border-top: 1px solid rgba(0, 180, 255, 0.2);
  background: rgba(0, 20, 40, 0.4);
}

.active-buffs {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 13px;
  color: #7fb8d8;
}

.ab-label {
  letter-spacing: 1px;
}

.ab-value {
  color: #ffcc00;
  font-family: 'Orbitron', sans-serif;
  font-size: 11px;
  letter-spacing: 1px;
}

/* ===== 波次公告 ===== */
.wave-announce {
  position: absolute;
  top: 35%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  pointer-events: none;
  z-index: 30;
  animation: waveIn 2s ease-out forwards;
}

.wave-label {
  font-family: 'Orbitron', sans-serif;
  font-size: 48px;
  font-weight: 900;
  letter-spacing: 8px;
  color: #ffcc00;
  text-shadow: 0 0 20px rgba(255, 200, 0, 0.7);
}

.wave-label span {
  font-size: 56px;
  color: #ffffff;
  text-shadow: 0 0 25px rgba(255, 255, 255, 0.6);
}

.wave-desc {
  font-family: 'Rajdhani', sans-serif;
  font-size: 16px;
  letter-spacing: 6px;
  color: rgba(255, 200, 100, 0.8);
  margin-top: 8px;
}

@keyframes waveIn {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.7); }
  15% { opacity: 1; transform: translate(-50%, -50%) scale(1.05); }
  25% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  80% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.2); }
}

/* ===== 飘字提示 ===== */
.toast-container {
  position: absolute;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}

.toast-msg {
  padding: 10px 24px;
  background: linear-gradient(135deg, rgba(0, 80, 160, 0.8), rgba(0, 40, 100, 0.8));
  border: 1px solid #00eaff;
  font-family: 'Orbitron', sans-serif;
  font-size: 13px;
  letter-spacing: 2px;
  color: #ffffff;
  text-shadow: 0 0 6px rgba(0, 234, 255, 0.6);
  box-shadow: 0 0 15px rgba(0, 234, 255, 0.4);
  animation: toastIn 0.4s ease-out, toastOut 0.5s ease-in 2s forwards;
}

.toast-msg.gold {
  background: linear-gradient(135deg, rgba(180, 120, 0, 0.8), rgba(120, 60, 0, 0.8));
  border-color: #ffcc00;
  color: #fff5cc;
  text-shadow: 0 0 6px rgba(255, 200, 0, 0.6);
  box-shadow: 0 0 15px rgba(255, 200, 0, 0.4);
}

.toast-msg.green {
  background: linear-gradient(135deg, rgba(0, 120, 80, 0.8), rgba(0, 60, 40, 0.8));
  border-color: #00ffaa;
  color: #ccffe8;
  text-shadow: 0 0 6px rgba(0, 255, 150, 0.6);
  box-shadow: 0 0 15px rgba(0, 255, 150, 0.4);
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes toastOut {
  to { opacity: 0; transform: translateY(-15px); }
}

/* ===== 响应式 ===== */
@media (max-width: 960px) {
  .zone-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .zs-title { font-size: 28px; letter-spacing: 4px; }
}

@media (max-width: 600px) {
  .menu-content { padding: 32px 24px; }
  .menu-title { font-size: 26px; letter-spacing: 2px; }
  .zone-cards-grid { grid-template-columns: 1fr; }
  .zs-header { flex-direction: column; gap: 16px; align-items: flex-start; }
  .hud-bottom-left, .hud-bottom-right { bottom: 16px; }
  .hud-top-right { right: 12px; top: 16px; gap: 12px; }
  .hud-top-left { left: 12px; top: 16px; min-width: 140px; }
  .hud-top-center { top: 16px; min-width: 140px; }
  .score-value { font-size: 22px; }
  .wave-value, .kills-value { font-size: 18px; }
}
