/* === DISTANCE COUNTER (replaces the old minimap) === */

.distance-counter {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 25;
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  font-family: 'Consolas', 'JetBrains Mono', 'Menlo', 'Monaco', 'Courier New', monospace;
  background: rgba(10, 6, 4, 0.78);
  border: 1px solid rgba(255, 140, 60, 0.28);
  border-radius: 8px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.4),
    0 4px 14px rgba(0, 0, 0, 0.5),
    inset 0 0 12px rgba(255, 120, 40, 0.06);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.distance-counter .dc-label {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 2px;
  color: rgba(255, 200, 140, 0.55);
  text-transform: uppercase;
}

.distance-counter .dc-value {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #ffe0a8;
  text-shadow: 0 0 8px rgba(255, 140, 60, 0.5), 0 1px 2px rgba(0, 0, 0, 0.8);
  font-variant-numeric: tabular-nums;
  min-width: 48px;
  text-align: right;
}

/* Far-from-base warning tint (past 100 M) */
.distance-counter.far {
  border-color: rgba(255, 100, 60, 0.6);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.4),
    0 4px 14px rgba(0, 0, 0, 0.5),
    0 0 18px rgba(255, 100, 60, 0.25),
    inset 0 0 14px rgba(255, 80, 40, 0.12);
}
.distance-counter.far .dc-value {
  color: #ffb090;
  animation: dcFarPulse 1.8s ease-in-out infinite;
}
@keyframes dcFarPulse {
  0%, 100% { text-shadow: 0 0 8px rgba(255, 100, 60, 0.5),  0 1px 2px rgba(0, 0, 0, 0.8); }
  50%      { text-shadow: 0 0 18px rgba(255, 120, 60, 0.95), 0 1px 2px rgba(0, 0, 0, 0.8); }
}

/* ============================================================ */
/*  BASE HOLOGRAM (left edge of the screen when base offscreen)  */
/* ============================================================ */
.base-holo {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 30;
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px 12px 10px;
  color: #9bf0ff;
  font-family: 'Consolas', 'JetBrains Mono', 'Menlo', 'Monaco', 'Courier New', monospace;
  background: linear-gradient(135deg,
    rgba(10, 30, 50, 0.55) 0%,
    rgba(5, 20, 40, 0.45) 100%);
  border: 1px solid rgba(100, 230, 255, 0.35);
  border-radius: 8px;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.5),
    0 0 18px rgba(80, 200, 255, 0.25),
    inset 0 0 18px rgba(80, 200, 255, 0.08);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  overflow: hidden;
  opacity: 0;
  transform: translate(-30px, -50%);
  transition: opacity 0.4s ease, transform 0.4s ease;
  animation: holoFloat 3.5s ease-in-out infinite;
}
.base-holo:not(.hidden) {
  opacity: 1;
  transform: translate(0, -50%);
}
.base-holo.hidden {
  pointer-events: none;
}
@keyframes holoFloat {
  0%, 100% { filter: drop-shadow(0 0 8px rgba(100, 230, 255, 0.35)); }
  50%      { filter: drop-shadow(0 0 14px rgba(100, 230, 255, 0.6));  }
}

.base-holo .holo-arrow {
  display: flex;
  align-items: center;
  color: #9bf0ff;
  animation: holoArrowBob 1.4s ease-in-out infinite;
}
@keyframes holoArrowBob {
  0%, 100% { transform: translateX(0);    opacity: 0.7; }
  50%      { transform: translateX(-4px); opacity: 1;   }
}

.base-holo .holo-base {
  color: #9bf0ff;
  filter: drop-shadow(0 0 4px rgba(100, 230, 255, 0.5));
  animation: holoFlicker 4s ease-in-out infinite;
}
@keyframes holoFlicker {
  0%, 96%, 100% { opacity: 1;    }
  97%           { opacity: 0.55; }
  98%           { opacity: 1;    }
  99%           { opacity: 0.7;  }
}

.base-holo .holo-distance {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #d0f8ff;
  text-shadow: 0 0 8px rgba(100, 230, 255, 0.8), 0 1px 2px rgba(0, 0, 0, 0.8);
  font-variant-numeric: tabular-nums;
  min-width: 44px;
  text-align: right;
  padding-left: 4px;
  border-left: 1px solid rgba(100, 230, 255, 0.3);
}

/* Scanline sweep over the whole holo */
.base-holo .holo-scanline {
  position: absolute;
  left: 0;
  top: -4px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(200, 250, 255, 0.7) 50%,
    transparent 100%);
  opacity: 0.6;
  animation: holoScan 2.6s linear infinite;
}
@keyframes holoScan {
  0%   { top: -4px;    opacity: 0; }
  10%  {               opacity: 0.8; }
  50%  { top: 50%;                   }
  90%  {               opacity: 0.8; }
  100% { top: 100%;    opacity: 0; }
}
