/* ============================================================
   Vanguard Meridian · 全局样式
   ============================================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Helvetica Now Condensed', 'Arial Narrow', 'Helvetica Neue', sans-serif;
  font-weight: 300;
  letter-spacing: 0.5px;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000;
}

#game-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

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

/* ============================================================
   HUD
   ============================================================ */

.hud {
  position: absolute;
  pointer-events: none;
  z-index: 10;
  color: #c5e6ff;
  font-size: 0.8rem;
}

.hud-top-left {
  top: 60px;
  left: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hud-top-right {
  top: 60px;
  right: 240px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-end;
}

.metric {
  background: rgba(6, 22, 44, 0.82);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(60, 180, 255, 0.2);
  border-radius: 12px;
  padding: 6px 12px;
  display: flex;
  gap: 8px;
  align-items: center;
  white-space: nowrap;
}

.metric-label {
  color: #8ab8d8;
  font-size: 0.7rem;
}

.metric-value {
  color: #b0e4ff;
  font-size: 0.85rem;
  font-weight: 400;
}

.metric.mission {
  border-color: rgba(255, 100, 100, 0.5);
  background: rgba(40, 10, 10, 0.85);
  max-width: 320px;
}

.metric.mission .metric-label { color: #ff8888; }
.metric.mission .metric-value {
  color: #ffcccc;
  white-space: normal;
  font-size: 0.7rem;
  line-height: 1.3;
}

.metric.shieldActive {
  border-color: rgba(80, 220, 255, 0.9);
  background: rgba(20, 80, 120, 0.95);
  box-shadow: 0 0 20px rgba(80, 220, 255, 0.6);
}

.metric.wingman {
  border-color: rgba(100, 220, 100, 0.5);
  background: rgba(10, 40, 10, 0.85);
}

.metric.wingman .metric-label { color: #88ff88; }
.metric.wingman .metric-value { color: #ccffcc; }

.fleet-title {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  text-align: center;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 12px;
  color: #b0e4ff;
  text-shadow: 0 0 30px rgba(0, 140, 255, 0.2);
  text-transform: uppercase;
  padding: 8px 0;
  background: rgba(6, 22, 44, 0.6);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(60, 180, 255, 0.1);
  z-index: 11;
  pointer-events: none;
}

/* ============================================================
   提示条 / 射程
   ============================================================ */

#hintBar {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(6, 22, 44, 0.82);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(60, 180, 255, 0.2);
  border-radius: 20px;
  padding: 4px 16px;
  color: #8ab8d8;
  font-size: 0.65rem;
  z-index: 10;
  pointer-events: none;
  white-space: nowrap;
}

#rangeIndicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  color: #8ab8d8;
  padding: 4px 12px;
  background: rgba(6, 22, 44, 0.7);
  border-radius: 12px;
  border: 1px solid rgba(60, 180, 255, 0.2);
  pointer-events: none;
  z-index: 12;
}

#rangeIndicator.outOfRange {
  color: #ff6666;
  border-color: rgba(255, 100, 100, 0.4);
}

/* ============================================================
   日志
   ============================================================ */

#logPanel {
  position: absolute;
  bottom: 60px;
  left: 12px;
  width: 320px;
  max-height: 200px;
  overflow-y: auto;
  background: rgba(6, 22, 44, 0.9);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(60, 180, 255, 0.2);
  border-radius: 14px;
  padding: 8px 12px;
  z-index: 15;
  pointer-events: auto;
  font-size: 0.65rem;
  color: #8ab8d8;
  display: none;
}

#logPanel.visible { display: block; }
#logPanel::-webkit-scrollbar { width: 4px; }
#logPanel::-webkit-scrollbar-track { background: #0a1a2a; }
#logPanel::-webkit-scrollbar-thumb { background: #2a6a8a; border-radius: 4px; }

#logPanel .log-entry {
  padding: 2px 0;
  border-bottom: 1px solid rgba(60, 180, 255, 0.05);
}

#logPanel .log-entry .time {
  color: #4fc3ff;
  margin-right: 6px;
}

/* ============================================================
   事件横幅
   ============================================================ */

#eventBanner {
  position: absolute;
  top: 100px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(42,42,42,0.95), rgba(26,26,26,0.95));
  border: 2px solid #00E5FF;
  border-radius: 0;
  box-shadow: 0 0 20px rgba(0,229,255,0.5), inset 0 0 20px rgba(0,229,255,0.1);
  font-family: 'Courier New', monospace;
  text-transform: uppercase;
  letter-spacing: 3px;
  padding: 12px 30px;
  color: #ffddaa;
  z-index: 35;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s;
  text-align: center;
  max-width: 80vw;
}

#eventBanner.show { opacity: 1; }

#eventBanner .event-title {
  font-size: 1rem;
  color: #00E5FF;
  text-shadow: 0 0 10px #00E5FF;
  margin-bottom: 4px;
}

#eventBanner .event-text {
  font-size: 0.75rem;
  color: #CCCCCC;
}

/* ============================================================
   停靠条
   ============================================================ */

#dockingBar {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(6, 22, 44, 0.95);
  border: 2px solid rgba(0, 255, 136, 0.5);
  border-radius: 20px;
  padding: 20px 40px;
  color: #b0e4ff;
  z-index: 40;
  pointer-events: auto;
  display: none;
  text-align: center;
}

#dockingBar.visible { display: block; }

#dockingBar .dock-title {
  font-size: 1rem;
  letter-spacing: 3px;
  color: #00ff88;
  margin-bottom: 12px;
}

#dockingBar .dock-progress {
  width: 300px;
  height: 6px;
  background: rgba(60, 180, 255, 0.2);
  border-radius: 3px;
  overflow: hidden;
  margin: 0 auto;
}

#dockingBar .dock-progress-fill {
  height: 100%;
  background: #00ff88;
  width: 0%;
  transition: width 0.1s linear;
  box-shadow: 0 0 15px #00ff88;
}

#dockingBar .dock-timer {
  font-size: 0.8rem;
  color: #8ab8d8;
  margin-top: 8px;
  margin-bottom: 12px;
}

#dockingBar .dock-abort {
  background: rgba(255,70,70,0.15);
  border: 1px solid #ff6a6a;
  color: #ffb0b0;
  border-radius: 20px;
  padding: 4px 20px;
  font-size: 0.75rem;
  cursor: pointer;
  font-family: inherit;
}

#dockingBar .dock-abort:hover { background: rgba(255,70,70,0.3); }

/* ============================================================
   导弹覆盖层
   ============================================================ */

#missileOverlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 50;
}

.missile {
  position: absolute;
  width: 60px;
  height: 60px;
  cursor: pointer;
  pointer-events: auto;
  transform: translate(-50%, -50%);
}

.missile::before {
  content: '🚀';
  font-size: 32px;
  filter: drop-shadow(0 0 12px #ff4444);
}

.missile.intercepted {
  animation: missileExplode 0.4s forwards;
}

@keyframes missileExplode {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(3); opacity: 0; }
}

/* ============================================================
   护盾屏
   ============================================================ */

.shieldScreen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 45;
  display: none;
}

.shieldScreen.active {
  display: block;
  animation: shieldFlicker 0.4s infinite alternate;
}

.shieldScreen::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 50%,
    rgba(80, 200, 255, 0.05) 0%,
    rgba(80, 200, 255, 0.15) 60%,
    rgba(80, 200, 255, 0.35) 100%);
}

@keyframes shieldFlicker {
  from { opacity: 0.7; }
  to { opacity: 1; }
}

/* ============================================================
   警告覆盖层
   ============================================================ */

#warningOverlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 15;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
}

#warningOverlay.active {
  opacity: 1;
  animation: warningPulse 0.6s infinite alternate;
}

@keyframes warningPulse {
  from { background: rgba(255, 0, 0, 0.05); }
  to { background: rgba(255, 0, 0, 0.15); }
}

.warning-text {
  text-align: center;
  color: #ff4444;
  text-shadow: 0 0 30px #ff0000;
  font-weight: 700;
  letter-spacing: 4px;
}

.warning-text .line1 { font-size: 2rem; display: block; }
.warning-text .line2 { font-size: 1.4rem; display: block; margin-top: 8px; opacity: 0.9; }

/* ============================================================
   消息提示
   ============================================================ */

#messageToast {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(6, 22, 44, 0.95);
  border: 1px solid rgba(60, 180, 255, 0.3);
  border-radius: 20px;
  padding: 8px 20px;
  color: #c5e6ff;
  font-size: 0.8rem;
  z-index: 25;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
  white-space: nowrap;
  max-width: 90vw;
  overflow: hidden;
  text-overflow: ellipsis;
}

#messageToast.show { opacity: 1; }
#messageToast.danger {
  border-color: #ff4444;
  color: #ffaaaa;
  background: rgba(50, 5, 5, 0.95);
}

/* ============================================================
   目标面板
   ============================================================ */

#targetPanel {
  position: absolute;
  top: 60px;
  left: 12px;
  width: 420px;
  max-height: calc(100vh - 120px);
  background: rgba(6, 22, 44, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(60, 180, 255, 0.3);
  border-radius: 20px;
  padding: 14px;
  z-index: 30;
  pointer-events: auto;
  display: none;
  flex-direction: column;
}

#targetPanel.visible { display: flex; }

#targetPanel .panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(60, 180, 255, 0.15);
}

#targetPanel .panel-header h3 {
  font-size: 0.9rem;
  color: #b0e4ff;
  letter-spacing: 2px;
}

#targetPanel .panel-header button {
  background: none;
  border: none;
  color: #8ab8d8;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0 6px;
}

.search-input {
  background: rgba(0,60,120,0.2);
  border: 1px solid #1a4a6a;
  border-radius: 20px;
  padding: 6px 12px;
  color: #c5e6ff;
  font-size: 0.75rem;
  outline: none;
  font-family: inherit;
  margin-bottom: 10px;
}

.search-input:focus { border-color: #4fc3ff; }

.target-list {
  overflow-y: auto;
  flex: 1;
}

.target-list::-webkit-scrollbar { width: 4px; }
.target-list::-webkit-scrollbar-track { background: #0a1a2a; }
.target-list::-webkit-scrollbar-thumb { background: #2a6a8a; border-radius: 4px; }

.target-item {
  padding: 8px 10px;
  margin-bottom: 4px;
  background: rgba(0,60,120,0.15);
  border: 1px solid #1a4a6a;
  border-radius: 10px;
  font-size: 0.7rem;
  cursor: pointer;
  transition: 0.15s;
}

.target-item:hover {
  background: rgba(0,120,200,0.25);
  border-color: #4fc3ff;
}

.target-item.fuel { border-color: #00ff88; background: rgba(0,255,136,0.08); }
.target-item.base { border-color: #ffaa44; background: rgba(255,170,68,0.1); }
.target-item.rebel { border-color: #ff3333; background: rgba(255,50,50,0.1); }
.target-item.rebel-large { border-color: #ff0066; background: rgba(255,0,102,0.15); border-width: 2px; }
.target-item.blackhole { border-color: #ff44aa; background: rgba(255,68,170,0.1); }
.target-item.neutron { border-color: #aaddff; background: rgba(170,221,255,0.1); }

.target-item .t-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.target-item .t-name { color: #b0e4ff; font-weight: 400; }
.target-item .t-dist { color: #ffd93d; font-size: 0.65rem; }
.target-item .t-info { color: #6a9ab0; font-size: 0.6rem; margin-top: 2px; }

.target-item .t-detail {
  display: none;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(60, 180, 255, 0.15);
  font-size: 0.65rem;
  color: #8ab8d8;
}

.target-item.expanded .t-detail { display: block; }

.target-item .t-detail-row {
  display: flex;
  justify-content: space-between;
  padding: 2px 0;
}

.target-item .t-detail-row .label { color: #6a9ab0; }
.target-item .t-detail-row .value { color: #b0e4ff; }

/* ============================================================
   任务面板
   ============================================================ */

#missionPanel {
  position: absolute;
  bottom: 60px;
  right: 240px;
  width: 340px;
  max-height: 300px;
  overflow-y: auto;
  background: rgba(6, 22, 44, 0.92);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 100, 100, 0.3);
  border-radius: 16px;
  padding: 12px 14px;
  z-index: 18;
  pointer-events: auto;
  display: none;
  font-size: 0.7rem;
  color: #c5e6ff;
}

#missionPanel.visible { display: block; }
#missionPanel::-webkit-scrollbar { width: 4px; }
#missionPanel::-webkit-scrollbar-track { background: #0a1a2a; }
#missionPanel::-webkit-scrollbar-thumb { background: #aa3333; border-radius: 4px; }

.mission-item {
  padding: 8px 10px;
  margin-bottom: 5px;
  background: rgba(60, 10, 10, 0.4);
  border: 1px solid #553333;
  border-radius: 10px;
  transition: 0.15s;
}

.mission-item:hover {
  background: rgba(100, 20, 20, 0.5);
  border-color: #ff5555;
}

.mission-item.active {
  border-color: #ff3333;
  background: rgba(120, 15, 15, 0.6);
  box-shadow: 0 0 10px rgba(255,50,50,0.5);
}

.mission-item.completed {
  opacity: 0.5;
  border-color: #333;
  background: rgba(20,20,20,0.4);
}

.mission-item .m-title {
  color: #ffaaaa;
  font-weight: 500;
  margin-bottom: 3px;
}

.mission-item .m-desc {
  color: #8ab8d8;
  font-size: 0.62rem;
}

.mission-item .m-reward {
  color: #ffcc55;
  font-size: 0.6rem;
  margin-top: 3px;
}

.mission-item.completed .m-title {
  color: #777;
  text-decoration: line-through;
}

/* ============================================================
   帮助面板
   ============================================================ */

#helpPanel {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.85);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

#helpPanel.visible { display: flex; }

.help-box {
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  background: rgba(6, 22, 44, 0.98);
  border: 2px solid rgba(60, 180, 255, 0.4);
  border-radius: 24px;
  padding: 28px;
  overflow-y: auto;
}

.help-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(60, 180, 255, 0.2);
}

.help-header h2 {
  font-size: 1.4rem;
  color: #b0e4ff;
  letter-spacing: 3px;
}

.help-close {
  background: none;
  border: none;
  color: #8ab8d8;
  font-size: 1.6rem;
  cursor: pointer;
  padding: 0 8px;
}

.help-section { margin-bottom: 20px; }

.help-section h3 {
  font-size: 0.9rem;
  color: #4fc3ff;
  letter-spacing: 2px;
  margin-bottom: 10px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(79, 195, 255, 0.2);
}

.help-section p, .help-section li {
  font-size: 0.8rem;
  color: #8ab8d8;
  line-height: 1.8;
  margin-bottom: 6px;
}

.help-section ul { padding-left: 20px; }

.help-section .key {
  background: rgba(0, 150, 255, 0.2);
  border: 1px solid #4fc3ff;
  color: #b0e4ff;
  padding: 1px 8px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-family: monospace;
}

#helpToggle {
  position: absolute;
  top: 60px;
  right: 240px;
  width: 44px;
  height: 44px;
  background: rgba(6, 22, 44, 0.92);
  border: 1px solid rgba(60, 180, 255, 0.3);
  border-radius: 12px;
  color: #b0e4ff;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 22;
  pointer-events: auto;
  font-weight: 700;
}

#helpToggle:hover {
  background: rgba(0,120,200,0.3);
  border-color: #4fc3ff;
}

/* ============================================================
   教程
   ============================================================ */

#tutorialOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.85);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

#tutorialOverlay.active {
  opacity: 1;
  pointer-events: auto;
}

.tutorial-box {
  max-width: 520px;
  width: 90%;
  background: rgba(6, 22, 44, 0.98);
  border: 2px solid rgba(60, 180, 255, 0.4);
  border-radius: 24px;
  padding: 32px;
  text-align: center;
}

.tutorial-step {
  font-size: 0.7rem;
  color: #6a9ab0;
  letter-spacing: 4px;
  margin-bottom: 12px;
}

.tutorial-title {
  font-size: 1.4rem;
  color: #b0e4ff;
  font-weight: 700;
  letter-spacing: 3px;
  margin-bottom: 16px;
}

.tutorial-text {
  font-size: 0.85rem;
  color: #8ab8d8;
  line-height: 1.7;
  margin-bottom: 24px;
}

.tutorial-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.tutorial-btn {
  background: rgba(0,150,255,0.15);
  border: 1px solid #4fc3ff;
  color: #b0dcff;
  border-radius: 24px;
  padding: 8px 24px;
  font-size: 0.8rem;
  cursor: pointer;
  font-family: inherit;
}

.tutorial-btn:hover { background: rgba(0,180,255,0.3); }
.tutorial-btn.primary { background: #0070c0; border-color: #4fc3ff; color: #fff; }

/* ============================================================
   停靠确认
   ============================================================ */

#dockConfirmOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.75);
  z-index: 150;
  display: none;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
}

#dockConfirmOverlay.visible { display: flex; }

.dock-confirm-box {
  max-width: 440px;
  width: 90%;
  background: rgba(6, 22, 44, 0.98);
  border: 2px solid rgba(60, 180, 255, 0.5);
  border-radius: 20px;
  padding: 24px;
  text-align: center;
  box-shadow: 0 0 40px rgba(60, 180, 255, 0.3);
}

.dock-confirm-title {
  font-size: 1.1rem;
  color: #b0e4ff;
  letter-spacing: 2px;
  margin-bottom: 12px;
  font-weight: 600;
}

.dock-confirm-text {
  font-size: 0.85rem;
  color: #8ab8d8;
  line-height: 1.7;
  margin-bottom: 18px;
}

.dock-confirm-timer {
  font-size: 2rem;
  color: #4fc3ff;
  font-weight: 700;
  margin-bottom: 18px;
  text-shadow: 0 0 20px #4fc3ff;
}

.dock-confirm-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.dock-confirm-btn {
  border-radius: 20px;
  padding: 8px 28px;
  font-size: 0.85rem;
  cursor: pointer;
  font-family: inherit;
  font-weight: 500;
}

.dock-confirm-btn.yes {
  background: rgba(0,180,100,0.2);
  border: 1px solid #00ff88;
  color: #aaffcc;
}

.dock-confirm-btn.yes:hover { background: rgba(0,200,120,0.4); }

.dock-confirm-btn.no {
  background: rgba(255,70,70,0.15);
  border: 1px solid #ff6a6a;
  color: #ffb0b0;
}

.dock-confirm-btn.no:hover { background: rgba(255,70,70,0.3); }

/* ============================================================
   任务失败
   ============================================================ */

#missionFailedOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.9);
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  pointer-events: auto;
}

#missionFailedOverlay.visible {
  display: flex;
  animation: failedFadeIn 1s ease-out;
}

@keyframes failedFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.failed-title {
  font-size: 3rem;
  color: #ff3333;
  letter-spacing: 12px;
  font-weight: 700;
  text-shadow: 0 0 40px #ff0000, 0 0 80px #ff0000;
  margin-bottom: 20px;
}

.failed-subtitle {
  font-size: 1.2rem;
  color: #ff8888;
  letter-spacing: 6px;
  margin-bottom: 40px;
}

.failed-restart {
  background: rgba(255,70,70,0.2);
  border: 2px solid #ff4444;
  color: #ffcccc;
  border-radius: 30px;
  padding: 12px 40px;
  font-size: 1rem;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: 2px;
}

.failed-restart:hover { background: rgba(255,70,70,0.4); }

/* ============================================================
   ★ 暂停菜单
   ============================================================ */

#pauseOverlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9000;
}

#pauseOverlay.show {
  display: flex;
}

.pause-box {
  background: linear-gradient(180deg, rgba(10, 18, 28, 0.96), rgba(4, 8, 14, 0.96));
  border: 1px solid rgba(0, 229, 255, 0.45);
  border-radius: 6px;
  padding: 36px 48px;
  text-align: center;
  box-shadow: 0 0 40px rgba(0, 229, 255, 0.25), inset 0 0 30px rgba(0, 229, 255, 0.06);
  min-width: 320px;
}

.pause-title {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 0.3em;
  color: #00e5ff;
  text-shadow: 0 0 12px rgba(0, 229, 255, 0.7);
  margin-bottom: 6px;
}

.pause-subtitle {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: rgba(160, 200, 220, 0.7);
  margin-bottom: 28px;
}

.pause-btn {
  display: block;
  width: 100%;
  padding: 12px 20px;
  margin-bottom: 12px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  background: rgba(0, 229, 255, 0.08);
  color: #b0e4ff;
  border: 1px solid rgba(0, 229, 255, 0.4);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}

.pause-btn:hover {
  background: rgba(0, 229, 255, 0.2);
  color: #ffffff;
  box-shadow: 0 0 14px rgba(0, 229, 255, 0.4);
}

.pause-btn.primary {
  border-color: rgba(0, 229, 255, 0.7);
}

.pause-btn.danger {
  border-color: rgba(255, 70, 70, 0.5);
  color: #ffaaaa;
  background: rgba(255, 70, 70, 0.06);
}

.pause-btn.danger:hover {
  background: rgba(255, 70, 70, 0.18);
  color: #ffffff;
  box-shadow: 0 0 14px rgba(255, 70, 70, 0.4);
}

.pause-hint {
  margin-top: 16px;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: rgba(140, 170, 190, 0.5);
}

/* ============================================================
   加载屏幕
   ============================================================ */

#loadingScreen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  transition: opacity 0.5s;
}

#loadingScreen.hidden {
  opacity: 0;
  pointer-events: none;
}

.loading-title {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 16px;
  color: #b0e4ff;
  text-shadow: 0 0 40px rgba(0, 140, 255, 0.3);
  margin-bottom: 20px;
}

.loading-bar {
  width: 200px;
  height: 2px;
  background: rgba(60, 180, 255, 0.2);
  border-radius: 2px;
  overflow: hidden;
}

.loading-bar-fill {
  height: 100%;
  background: #4fc3ff;
  width: 0%;
  transition: width 0.3s;
  box-shadow: 0 0 10px #4fc3ff;
}

.loading-text {
  margin-top: 12px;
  color: #6a9ab0;
  font-size: 0.7rem;
  letter-spacing: 2px;
}

/* ============================================================
   响应式
   ============================================================ */

@media (max-width: 768px) {
  .fleet-title { font-size: 1rem; letter-spacing: 6px; padding: 6px 0; }
  #targetPanel { top: 50px; left: 8px; width: calc(100vw - 16px); max-width: 420px; max-height: calc(100vh - 80px); }
  #missionPanel { width: calc(100vw - 24px); left: 12px; right: 12px; bottom: 50px; max-height: 180px; }
  #helpToggle { top: 50px; right: 240px; width: 40px; height: 40px; }
  .hud-top-right { top: 50px; right: 240px; }
  #logPanel { width: calc(100vw - 24px); left: 12px; bottom: 50px; max-height: 120px; }

  /* ★ 暂停菜单移动端适配 */
  .pause-box { padding: 28px 24px; min-width: 0; width: 86%; max-width: 360px; }
  .pause-title { font-size: 1.5rem; letter-spacing: 0.2em; }
  .pause-subtitle { font-size: 0.65rem; }
  .pause-btn { font-size: 0.8rem; padding: 10px 16px; }
}