*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #020306;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
}

#stars {
  display: block;
  width: 100%;
  height: 100%;
  position: fixed;
  inset: 0;
  z-index: 0;
}

.voyager {
  position: fixed;
  z-index: 2;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: min(92vw, 380px);
  padding: 12px 14px;
  border: 1px solid rgba(61, 255, 122, 0.22);
  border-radius: 6px;
  background: rgba(2, 6, 10, 0.55);
  box-shadow:
    0 0 28px rgba(61, 255, 122, 0.08),
    inset 0 0 40px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
}

.voyager-schematic {
  flex: 0 0 72px;
  width: 72px;
  color: #3dff7a;
  opacity: 0.92;
}

.voyager-schematic svg {
  display: block;
  width: 72px;
  height: auto;
}

.voyager-schematic svg g {
  animation: schematic-breathe 5s ease-in-out infinite;
}

@keyframes schematic-breathe {
  0%, 100% { opacity: 0.82; }
  50% { opacity: 1; }
}

.voyager-data {
  flex: 1;
  min-width: 0;
}

.voyager-title {
  margin: 0 0 8px;
  font-family: "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.35;
  color: #a8ffcb;
  text-transform: none;
}

.voyager-table {
  flex: 1;
  border-collapse: collapse;
  font-family: "SF Mono", "IBM Plex Mono", "Menlo", monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: #7dffb0;
}

.voyager-table td {
  padding: 4px 0;
  line-height: 1.35;
  white-space: nowrap;
}

.voyager-table td:first-child {
  width: 1.6em;
  color: #3dff7a;
  opacity: 0.85;
}

.voyager-table td:nth-child(2) {
  text-align: right;
  padding-right: 10px;
  color: #b8ffd4;
}

.voyager-table td:nth-child(3),
.voyager-table td:nth-child(4) {
  opacity: 0.75;
  font-size: 10px;
}

.voyager.loading {
  opacity: 0.55;
}

.voyager-next {
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px solid rgba(61, 255, 122, 0.14);
}

.next-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
  font-family: "SF Mono", "IBM Plex Mono", "Menlo", monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
}

.next-tag {
  color: #3dff7a;
  font-weight: 600;
}

.next-caption {
  color: #6ecf96;
  opacity: 0.9;
  text-align: right;
}

.next-bar {
  height: 3px;
  border-radius: 2px;
  background: rgba(61, 255, 122, 0.12);
  overflow: hidden;
}

.next-bar span {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(61, 255, 122, 0.35), #3dff7a);
  box-shadow: 0 0 10px rgba(61, 255, 122, 0.45);
  transition: width 0.4s ease;
}

.voyager.v1-milestone .next-bar span {
  animation: bar-pulse 2.8s ease-in-out infinite;
}

@keyframes bar-pulse {
  0%, 100% { opacity: 0.75; }
  50% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .voyager-schematic svg g,
  .voyager.v1-milestone .next-bar span {
    animation: none;
  }
}

@media (max-width: 380px) {
  .voyager {
    flex-direction: column;
    gap: 10px;
    padding: 12px;
  }

  .voyager-schematic {
    flex-basis: auto;
  }
}