@font-face {
  font-family: 'Excluded';
  src: url('fonts/excluded.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

html, body {
  height: 100%;
  margin: 0;
  background: radial-gradient(1200px at 50% 20%, #0a1730 0%, #0a1022 60%, #090d1a 100%);
  font-family: 'Excluded' ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  color: #ffffff;
}

/* Background canvases (behind Cytoscape) */
#starfield,
#meteors {
  position: fixed;
  inset: 0;               /* top:0; right:0; bottom:0; left:0 */
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;   /* don't block clicks */
}

#cy {
  height: 100%;
  width: 100%;
  position: relative;
  z-index: 1;
}

/* --- Galaxy legend --- */
.legend {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(10,16,34,0.86);
  border: 1px solid #2e4e7d;
  backdrop-filter: blur(6px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  z-index: 10000;
  min-width: 210px;
    font-family: 'Excluded', ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

.legend__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  letter-spacing: .2px;
  font-size: 13px;
  margin: 0 0 8px 0;
  color: #e9f5ff;
}

.legend__orbit {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #66a9ff;
  box-shadow: 0 0 10px rgba(102,169,255,.6), inset 0 0 6px rgba(102,169,255,.35);
}

.legend__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 0;
  font-size: 12px;
  border-top: 1px dashed rgba(255,255,255,0.08);
}

.legend__row:first-of-type {
  border-top: 0;
}

.legend__label {
  opacity: .92;
}

.legend__swatch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-variant-numeric: tabular-nums;
}

.legend__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  box-shadow: 0 0 10px currentColor;
}

/* State colors (match roadmap.js) */
.c-exploring {
  color: #27ae60;
}

.c-in-dev {
  color: #ff6b5a;
}

.c-completed {
  color: #2cb5f0;
}

.c-abandoned {
  color: #9aa6b2;
}

/* Match dot fill to state colors */
.legend__swatch.c-completed .legend__dot {
  background: #2cb5f0;
}

.legend__swatch.c-in-dev .legend__dot {
  background: #ff6b5a;
}

.legend__swatch.c-exploring .legend__dot {
  background: #27ae60;
}

.legend__swatch.c-abandoned .legend__dot {
  background: #9aa6b2;
}

/* optional: slim scrollbars in dev tools */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-thumb {
  background: #2a3d5e;
  border-radius: 8px;
}

/* Header container */
.sd-header {
  position: sticky;           /* stays at top when scrolling; use fixed if you want */
  top: 0;
  z-index: 1000;
  background-color: #0b1f3b;  /* matches your dark blue vibe */
  padding: 8px 24px;
}

/* Inner layout */
.sd-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo image */
.sd-header-logo {
  height: 40px;         /* tweak as needed */
  display: block;
}

/* Go back button */
.sd-header-back-btn {
  padding: 8px 18px;
  border-radius: 999px;
  border: 2px solid #ffffff;
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.95rem;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.1s ease;
}

.sd-header-back-btn:hover {
  background-color: #ffffff;
  color: #0B192D;
  transform: translateY(-1px);
}

/* Optional: shrink on mobile */
@media (max-width: 600px) {
  .sd-header {
    padding: 6px 14px;
  }

  .sd-header-logo {
    height: 44px;
  }

  .sd-header-back-btn {
    padding: 6px 14px;
    font-size: 0.85rem;
  }
}