/* 趣味地图 · 极光指挥台（深空 HUD + 地图帮橙点缀） */
.fm-aurora-page {
  --fm-orange: #fa8c16;
  --fm-orange-dim: rgba(250, 140, 22, 0.22);
  --fm-neon: #3dffb5;
  --fm-neon-dim: rgba(61, 255, 181, 0.22);
  --fm-panel: rgba(6, 12, 22, 0.82);
  --fm-line: rgba(61, 255, 181, 0.28);
  --fm-ink: #e8fff6;
  --fm-muted: rgba(232, 255, 246, 0.55);
  margin: 0;
  background: #02040a;
  color: var(--fm-ink);
  min-height: 100vh;
  font-family: "SF Mono", "Menlo", "Consolas", "PingFang SC", "Microsoft YaHei", monospace;
}
.fm-aurora-page .dtb-nav { position: relative; z-index: 50; }

.fm-aurora-stage {
  position: relative;
  height: calc(100vh - 56px);
  min-height: 560px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(20, 60, 90, 0.35), transparent 55%),
    radial-gradient(ellipse at 50% 100%, rgba(250, 140, 22, 0.06), transparent 40%),
    #02040a;
}
.fm-aurora-stage canvas#fmAuroraCanvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: grab;
  position: relative;
  z-index: 1;
}
.fm-aurora-stage canvas#fmAuroraCanvas.is-dragging { cursor: grabbing; }

.fm-hud { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.fm-hud > * { pointer-events: none; }
.fm-hud a, .fm-hud button, .fm-hud input, .fm-hud .fm-panel, .fm-hud .fm-chip-link, .fm-hud .fm-badge {
  pointer-events: auto;
}

.fm-corner {
  position: absolute; width: 48px; height: 48px;
  border-color: rgba(61, 255, 181, 0.45); border-style: solid; z-index: 6;
}
.fm-corner--tl { top: 10px; left: 10px; border-width: 2px 0 0 2px; }
.fm-corner--tr { top: 10px; right: 10px; border-width: 2px 2px 0 0; }
.fm-corner--bl { bottom: 10px; left: 10px; border-width: 0 0 2px 2px; }
.fm-corner--br { bottom: 10px; right: 10px; border-width: 0 2px 2px 0; }

.fm-topbar {
  position: absolute; top: 14px; left: 64px; right: 64px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; gap: 12px;
  z-index: 8;
}
.fm-topbar__left { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.fm-topbar__right { display: flex; justify-content: flex-end; }
.fm-topbar__center { text-align: center; }
.fm-title-en {
  margin: 0; font-size: 11px; letter-spacing: 0.28em; color: var(--fm-neon);
  text-shadow: 0 0 12px rgba(61, 255, 181, 0.55);
}
.fm-title-zh { margin: 4px 0 0; font-size: 16px; font-weight: 700; letter-spacing: 0.12em; color: #fff; }

.fm-chip-link, .fm-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px; border-radius: 999px; font-size: 11px; font-weight: 600;
  text-decoration: none; border: 1px solid var(--fm-line); background: var(--fm-panel); color: var(--fm-ink);
}
.fm-chip-link:hover { border-color: var(--fm-orange); color: #ffd591; }
.fm-badge { border-color: rgba(250, 140, 22, 0.5); color: #ffd591; background: var(--fm-orange-dim); }
.fm-badge i { color: var(--fm-orange); }

.fm-clock { text-align: right; line-height: 1.2; }
.fm-clock span { display: block; font-size: 18px; color: var(--fm-neon); letter-spacing: 0.06em; }
.fm-clock small { color: var(--fm-muted); font-size: 11px; }

.fm-panel {
  position: absolute; width: min(300px, calc(100vw - 28px));
  padding: 12px 14px 14px; border-radius: 4px;
  background: var(--fm-panel); border: 1px solid var(--fm-line);
  box-shadow: 0 0 24px rgba(61, 255, 181, 0.08), inset 0 0 24px rgba(61, 255, 181, 0.03);
  backdrop-filter: blur(14px);
}
.fm-panel--telemetry { top: 88px; left: 22px; }
.fm-panel--kp { top: 88px; right: 22px; }
.fm-panel__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.fm-panel__tag { font-size: 11px; letter-spacing: 0.16em; color: var(--fm-neon); }
.fm-panel__sub { font-size: 10px; color: var(--fm-muted); }
.fm-panel__note { margin: 10px 0 0; font-size: 10px; line-height: 1.5; color: rgba(232,255,246,0.4); }

.fm-kv { margin: 0; display: grid; gap: 8px; }
.fm-kv > div { display: flex; justify-content: space-between; gap: 10px; align-items: baseline;
  padding: 6px 8px; border: 1px solid rgba(255,255,255,0.06); background: rgba(255,255,255,0.03); }
.fm-kv dt { font-size: 10px; color: var(--fm-muted); }
.fm-kv dd { margin: 0; font-size: 12px; color: var(--fm-ink); }
.fm-kv strong { font-size: 16px; font-variant-numeric: tabular-nums; color: #fff; }
.fm-kv .fm-neg { color: #ff6b8a; }

.fm-storm { margin-top: 12px; }
.fm-storm__label { font-size: 10px; color: var(--fm-muted); margin-bottom: 4px; }
.fm-storm__row { display: flex; justify-content: space-between; align-items: baseline; }
.fm-storm__level { font-size: 12px; letter-spacing: 0.14em; color: var(--fm-orange); text-shadow: 0 0 8px rgba(250,140,22,.5); }
.fm-storm__row strong { font-size: 22px; color: #fff; }
.fm-storm__bar { margin-top: 6px; height: 4px; background: rgba(255,255,255,0.08); border-radius: 2px; overflow: hidden; }
.fm-storm__bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--fm-neon), var(--fm-orange)); }

.fm-kp-gauge { position: relative; height: 78px; margin: 4px 0 8px; }
.fm-kp-gauge__svg { width: 100%; height: 70px; }
.fm-kp-gauge__track { stroke: rgba(255,255,255,0.12); stroke-width: 8; }
.fm-kp-gauge__arc { stroke: var(--fm-neon); stroke-width: 8; stroke-linecap: round;
  filter: drop-shadow(0 0 6px rgba(61,255,181,.7)); transition: stroke-dashoffset .2s; }
.fm-kp-gauge__value { position: absolute; left: 0; right: 0; bottom: 0; text-align: center; }
.fm-kp-gauge__value strong { font-size: 28px; color: #fff; }
.fm-kp-gauge__value small { margin-left: 4px; color: var(--fm-muted); }

.fm-slider { display: grid; gap: 6px; font-size: 11px; color: var(--fm-muted); margin-top: 4px; }
.fm-slider input[type=range] { width: 100%; accent-color: var(--fm-orange); }

.fm-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.fm-btn {
  appearance: none; border: 1px solid var(--fm-line); background: rgba(61,255,181,0.06);
  color: var(--fm-ink); border-radius: 2px; padding: 7px 10px; font-size: 10px;
  letter-spacing: 0.08em; font-weight: 700; cursor: pointer; font-family: inherit;
}
.fm-btn:hover { border-color: var(--fm-neon); color: var(--fm-neon); box-shadow: 0 0 12px rgba(61,255,181,0.2); }
.fm-btn--primary {
  background: rgba(250, 140, 22, 0.18); border-color: rgba(250,140,22,0.55); color: #ffd591;
}
.fm-btn--primary:hover { background: rgba(250,140,22,0.3); color: #fff; border-color: var(--fm-orange); }

.fm-bottom {
  position: absolute; left: 22px; right: 22px; bottom: 16px;
  display: grid; gap: 6px; justify-items: center; text-align: center; z-index: 8;
}
.fm-coords {
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: center;
  padding: 6px 12px; border: 1px solid rgba(61,255,181,0.2); background: rgba(0,0,0,0.35);
  font-size: 11px; color: var(--fm-muted); letter-spacing: 0.04em;
}
.fm-coords strong { color: var(--fm-neon); font-variant-numeric: tabular-nums; }
.fm-orbit { color: rgba(250,140,22,0.85); }
.fm-hint { margin: 0; font-size: 11px; color: rgba(232,255,246,0.4); }
.fm-credit { margin: 0; font-size: 10px; color: rgba(232,255,246,0.28); max-width: 720px; }

.fm-webgl-note {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  max-width: 360px; padding: 12px 14px; background: rgba(0,0,0,0.7);
  border: 1px solid rgba(250,140,22,0.45); color: #ffd591; font-size: 12px; text-align: center;
  pointer-events: none; z-index: 9;
}

@media (max-width: 900px) {
  .fm-topbar { left: 16px; right: 16px; grid-template-columns: 1fr; justify-items: center; }
  .fm-topbar__left, .fm-topbar__right { justify-content: center; }
  .fm-panel--telemetry { top: auto; bottom: 110px; left: 12px; right: auto; width: min(280px, calc(50vw - 18px)); }
  .fm-panel--kp { top: auto; bottom: 110px; right: 12px; left: auto; width: min(280px, calc(50vw - 18px)); }
  .fm-corner { display: none; }
}
@media (max-width: 640px) {
  .fm-panel--telemetry, .fm-panel--kp {
    position: relative; top: auto; bottom: auto; left: auto; right: auto;
    width: auto; margin: 8px 12px;
  }
  .fm-hud { display: flex; flex-direction: column; pointer-events: none; }
  .fm-aurora-stage { height: auto; min-height: 100vh; display: flex; flex-direction: column; }
  .fm-aurora-stage canvas#fmAuroraCanvas { height: 48vh; min-height: 280px; flex: none; }
  .fm-bottom { position: relative; left: auto; right: auto; bottom: auto; margin: 8px 12px 20px; }
}
