/* ============================================================
   SPACE NAVIGATION PAGE (index.html)
   ============================================================ */

.space-page {
  overflow: hidden;
  background: #06060a;
}

/* ── Full-screen canvas ── */
#space-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  display: block;
}

/* ── Galaxy labels container ── */
#galaxy-labels {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none; /* individual labels re-enable it */
}

/* ── Individual galaxy label ── */
.galaxy-label {
  position: absolute;
  top: 0; left: 0;       /* offset applied via transform in JS */
  pointer-events: auto;
  cursor: pointer;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  padding: 0.5rem 0.4rem 0.4rem;
}

.galaxy-label__title {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(230, 238, 255, 0.78);
  transition: color 0.35s, letter-spacing 0.35s;
  white-space: nowrap;
}

.galaxy-label__sub {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: rgba(180, 196, 225, 0.38);
  transition: color 0.35s;
  white-space: nowrap;
}

.galaxy-label.is-hover .galaxy-label__title {
  color: rgba(255, 255, 255, 1);
  letter-spacing: 0.28em;
}

.galaxy-label.is-hover .galaxy-label__sub {
  color: rgba(200, 218, 248, 0.70);
}

/* ── Name / logo (top-left) ── */
.space-logo {
  position: fixed;
  top: 2rem;
  left: 2.5rem;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  pointer-events: none;
}

.space-logo__name {
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(240, 244, 255, 0.85);
}

.space-logo__role {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(180, 196, 225, 0.35);
}

/* ── Bottom UI bar ── */
.space-ui-bottom {
  position: fixed;
  bottom: 1.8rem;
  left: 0; right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  pointer-events: none;
}

.space-ui-left {
  pointer-events: auto;
  display: flex;
  gap: 1.8rem;
}

/* Sound / mode toggle buttons */
.ui-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 1);
  font-family: var(--font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.25s, transform 0.2s ease;
  padding: 0;
  transform-origin: left center;
}

.ui-btn:hover { transform: scale(1.2); }

.sound-muted-line { display: none; }
.ui-btn.is-muted .sound-waves     { display: none; }
.ui-btn.is-muted .sound-muted-line { display: block; }

.ui-btn__icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Hint text (right side) */
.space-hint {
  font-family: var(--font-mono);
  font-size: 0.50rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(160, 180, 215, 0.22);
}

/* Credit (bottom-right) */
.space-credit-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.4rem;
}
.space-credit {
  font-family: var(--font-mono);
  font-size: 0.50rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(160, 180, 215, 0.28);
  pointer-events: none;
}
.space-credit__legal {
  display: flex;
  gap: 1rem;
  pointer-events: auto;
}
.space-credit__legal a {
  font-family: var(--font-mono);
  font-size: 0.45rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(160, 180, 215, 0.28);
  transition: color 0.2s;
}
.space-credit__legal a:hover { color: var(--accent); }

/* ── Mobile layout ── */
@media (max-width: 700px) {
  .space-logo {
    top: 1.4rem;
    left: 1.2rem;
  }
  .space-logo__name {
    font-size: 1.0rem;
  }
  .space-logo__role {
    font-size: 0.60rem;
    letter-spacing: 0.12em;
  }
  .space-ui-bottom {
    padding: 0 1.2rem;
    bottom: 1.2rem;
  }
  .galaxy-label {
    width: 140px;
    align-items: center;
    text-align: center;
  }
  .galaxy-label__title {
    white-space: normal;
    font-size: 0.60rem;
    letter-spacing: 0.10em;
    line-height: 1.35;
    text-align: center;
  }
  .galaxy-label__sub {
    display: none;
  }
}
