/* ── RESET & BASE ──────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #03030c;
  --mono: 'IBM Plex Mono', monospace;
  --sans: 'IBM Plex Sans', sans-serif;
  --white: #f0f0e8;
  --dim: rgba(240, 240, 232, 0.912);
  --faint: rgba(240, 240, 232, 0.806);
  --nav-nh: rgba(240, 240, 232, 0.554);
  --planet-color: #f0f0e8;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  color: var(--white);
  cursor: none;
}

/* ── CUSTOM CURSOR ─────────────────────────────────────────── */
body::after,
body::before {
  content: '';
  position: fixed;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 9999;
  top: var(--cy, 50%);
  left: var(--cx, 50%);
}
body::after {
  width: 3px;
  height: 3px;
  background: var(--white);
}
body::before {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(240, 240, 232, 0.6);
  transition:
    width 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    height 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    border-color 0.2s;
}
body.hovering::before {
  width: 48px;
  height: 48px;
  border-color: var(--planet-color);
  border-style: dashed;
}
body.hovering::after {
  opacity: 0.15;
}
body.clicking::before {
  width: 20px;
  height: 20px;
}

/* ── THREE CANVAS ──────────────────────────────────────────── */
#three-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
}

/* ── NAVBAR ────────────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 48px;
  opacity: 0;
  transition: opacity 0.6s ease;
}
#navbar.visible {
  opacity: 1;
}
.nav-title {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.35em;
  color: var(--white);
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  gap: 40px;
}
.nav-links a {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.25em;
  color: var(--nav-nh);
  text-decoration: none;
  transition: color 0.15s;
  cursor: none;
  text-transform: uppercase;
}
.nav-links a:hover {
  color: var(--white);
}

/* ── INTRO ─────────────────────────────────────────────────── */
#intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
#skip-btn {
  position: fixed;
  top: 24px;
  right: 48px;
  z-index: 200;
  background: none;
  border: 1px solid var(--faint);
  padding: 8px 18px;
  font-family: var(--mono);
  font-size: 15px;
  letter-spacing: 0.22em;
  color: var(--dim);
  cursor: none;
  pointer-events: all;
  transition:
    color 0.2s,
    border-color 0.2s;
  text-transform: uppercase;
}
#skip-btn:hover {
  color: var(--white);
  border-color: var(--dim);
}

#intro-text-container {
  text-align: center;
}
.intro-line {
  font-family: var(--mono);
  font-size: clamp(14px, 1.8vw, 22px);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white);
  line-height: 2.2;
  min-height: 1.4em;
  opacity: 0;
  transition: opacity 0.5s;
}
.intro-line.visible {
  opacity: 1;
}

.bracket {
  color: var(--faint);
}
.hidden {
  display: none !important;
}
.mono-small {
  font-family: var(--mono);
  font-size: 15px;
  letter-spacing: 0.2em;
  color: var(--dim);
  text-transform: uppercase;
}

/* ── AXIS LEGEND — CLEAN REDESIGN ──────────────────────────── */
#axis-legend {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 99;
  transition: opacity 0.5s ease;
}

.axis-x-wrap {
  position: absolute;
  bottom: 80px;
  left: 8%;
  right: 8%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.axis-line-x {
  height: 1px;
  width: 100%;
  background: linear-gradient(to right, rgba(80, 130, 220, 0.7) 0%, rgba(230, 70, 40, 0.8) 100%);
}
.axis-labels-x {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: rgba(240, 240, 232, 0.5);
  text-transform: uppercase;
}
.axis-labels-x .axis-title {
  color: rgba(240, 240, 232, 0.8);
  letter-spacing: 0.25em;
}

/* ── BOTTOM NAV (RADAR) ─────────────────────────────────────── */
#radar-dots {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  align-items: stretch;
  transition: opacity 0.4s ease;
  background: rgba(3, 3, 12, 0.96);
  border-top: 1px solid rgba(240, 240, 232, 0.12);
}
#radar-indicator {
  position: absolute;
  top: 0;
  left: 0;
  height: 2px;
  width: 60px;
  opacity: 0;
  transition:
    left 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    width 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.25s;
  pointer-events: none;
  z-index: 2;
}
.radar-item {
  background: none;
  border: none;
  border-right: 1px solid rgba(240, 240, 232, 0.07);
  padding: 14px 18px 12px;
  cursor: none;
  transition: background 0.15s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.radar-item:last-of-type {
  border-right: none;
}
.radar-item:hover {
  background: rgba(240, 240, 232, 0.04);
}

.radar-item:focus {
  outline: none;
}

.radar-name {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.16em;
  color: rgba(240, 240, 232, 0.72);
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 0.15s;
}
.radar-temp {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: rgba(240, 240, 232, 0.4);
  white-space: nowrap;
  transition: color 0.15s;
}
.radar-item.active .radar-name {
  color: var(--planet-color);
}
.radar-item.active .radar-temp {
  color: rgba(240, 240, 232, 0.6);
}

#hud-container {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  width: 520px;
  min-width: 400px;
  height: 100vh;
  max-height: 100vh;
  padding: 48px 56px 100px;
  overflow-y: auto;
  overflow-x: hidden;
  background: rgba(3, 3, 12, 0.97);
  border-right: 1px solid rgba(240, 240, 232, 0.1);
  scrollbar-width: thin;
  scrollbar-color: rgba(240, 240, 232, 0.07) transparent;
}

#hud-container-fade {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 520px;
  height: 80px;
  background: linear-gradient(to bottom, transparent, rgba(3, 3, 12, 0.97));
  pointer-events: none;
  z-index: 15;
}

#hud-name {
  font-family: var(--sans);
  font-size: clamp(30px, 3.2vw, 44px);
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--white);
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 24px;
}

#hud-tagline {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 15px;
  letter-spacing: 0.02em;
  color: rgba(240, 240, 232, 0.72);
  line-height: 1.65;
  border-left: 2px solid var(--planet-color);
  padding-left: 14px;
  margin-bottom: 36px;
}

.hud-row {
  display: flex;
  flex-direction: column;
  padding: 26px 0;
  border-bottom: 1px solid rgba(240, 240, 232, 0.07);
  gap: 10px;
}

.hud-visual-block {
  padding: 24px 0;
  border-bottom: 1px solid rgba(240, 240, 232, 0.07);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

#hud-type {
  font-family: var(--mono);
  font-size: 15px;
  letter-spacing: 0.32em;
  color: var(--planet-color);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  margin-top: 6px;
}
#hud-type::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--planet-color);
  box-shadow: 0 0 6px var(--planet-color);
  flex-shrink: 0;
}

#hud-name {
  font-family: var(--sans);
  font-size: clamp(30px, 3.2vw, 44px);
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--white);
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 18px;
}

#hud-tagline {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 15px;
  letter-spacing: 0.02em;
  color: rgba(240, 240, 232, 0.72);
  line-height: 1.65;
  border-left: 2px solid var(--planet-color);
  padding-left: 14px;
  margin-bottom: 28px;
}

#hud-data {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.hud-row {
  display: flex;
  flex-direction: column;
  padding: 20px 0;
  border-bottom: 1px solid rgba(240, 240, 232, 0.07);
  gap: 8px;
}
.hud-row:last-child {
  border-bottom: none;
}

.hud-data-main {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.hud-label {
  font-family: var(--mono);
  font-size: 15px;
  letter-spacing: 0.22em;
  color: rgba(240, 240, 232, 0.72);
  text-transform: uppercase;
  flex-shrink: 0;
}
.hud-values {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-shrink: 0;
}
.hud-value {
  font-family: var(--mono);
  font-size: 15px;
  color: var(--white);
  letter-spacing: 0.04em;
}
.hud-value-alt {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 300;
  color: rgba(240, 240, 232, 0.72);
  letter-spacing: 0.04em;
}

.hud-human {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 15px;
  color: rgba(240, 240, 232, 0.75);
  line-height: 1.5;
  border-left: 2px solid var(--planet-color);
  padding-left: 12px;
  margin-top: 4px;
}

/* NASA link */
#hud-nasa-link {
  font-family: var(--mono);
  font-size: 15px;
  letter-spacing: 0.22em;
  color: var(--white);
  text-decoration: none;
  align-self: flex-start;
  margin-top: 28px;
  padding: 11px 20px;
  border: 1px solid rgba(240, 240, 232, 0.78);
  display: flex;
  align-items: center;
  gap: 10px;
  transition:
    background 0.2s,
    border-color 0.2s;
  pointer-events: all;
  cursor: none;
  text-transform: uppercase;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
}
#hud-nasa-link .link-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
#hud-nasa-link .link-row::after {
  content: '↗';
  font-size: 13px;
  color: var(--planet-color);
  transition: transform 0.2s;
}
#hud-nasa-link:hover {
  background: rgba(240, 240, 232, 0.05);
  border-color: var(--planet-color);
}
#hud-nasa-link:hover .link-row::after {
  transform: translate(2px, -2px);
}
.nasa-sub {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  color: rgba(240, 240, 232, 0.78);
}

/* Close button */
#hud-close-btn {
  position: absolute;
  top: 24px;
  right: 24px;
  background: none;
  border: 1px solid rgba(240, 240, 232, 0.2);
  color: rgba(240, 240, 232, 0.72);
  font-family: var(--mono);
  font-size: 15px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: none;
  z-index: 10;
  pointer-events: all;
  transition:
    border-color 0.15s,
    color 0.15s;
}
#hud-close-btn:hover {
  border-color: var(--white);
  color: var(--white);
}

#exit-hint {
  position: absolute;
  bottom: 24px;
  right: 28px;
  pointer-events: none;
}
#exit-hint .mono-small {
  color: rgba(240, 240, 232, 0.78);
}

/* ── HUD VISUAL BLOCKS ─────────────────────────────────────── */
.hud-visual-block {
  padding: 36px 0;
  border-bottom: 1px solid rgba(240, 240, 232, 0.07);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.hud-visual-block:last-child {
  border-bottom: none;
}
.hud-visual-label {
  font-family: var(--mono);
  font-size: 15px;
  letter-spacing: 0.22em;
  color: rgba(240, 240, 232, 0.72);
  text-transform: uppercase;
}
.temp-track {
  position: relative;
  height: 2px;
  margin-top: 48px;
  margin-bottom: 32px;
  background: linear-gradient(to right, #3060b0 0%, #4090d0 20%, #50b090 40%, #d09030 60%, #d04020 80%, #f0a030 100%);
}
.temp-earth-line {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.temp-earth-line::before {
  content: '';
  width: 1px;
  height: 12px;
  background: rgba(240, 240, 232, 0.65);
  position: absolute;
  top: 0;
}
.temp-earth-label {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  color: rgba(240, 240, 232, 0.5);
  white-space: nowrap;
  margin-top: 24px;
}
.temp-planet-needle {
  position: absolute;
  top: -10px;
  width: 2px;
  height: 22px;
  background: var(--white);
  transform: translateX(-50%);
  box-shadow: 0 0 5px rgba(240, 240, 232, 0.75);
}
.temp-planet-label {
  position: absolute;
  bottom: 28px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--white);
  white-space: nowrap;
  background: var(--bg);
  padding: 3px 8px;
  border: 1px solid rgba(240, 240, 232, 0.4);
}
.temp-ends {
  display: flex;
  justify-content: space-between;
  margin-top: 24px;
}
.temp-ends .hud-label {
  letter-spacing: 0.1em;
}

.size-circles {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 4px 0;
}
.size-label-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
}
.size-sublabel {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  color: rgba(240, 240, 232, 0.62);
  text-transform: uppercase;
  white-space: nowrap;
}
.size-circle {
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
}
.earth-circle {
  border: 1px solid rgba(240, 240, 232, 0.6);
  background: transparent;
}
.earth-circle::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(240, 240, 232, 0.2);
}
.earth-circle::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(240, 240, 232, 0.2);
}
.planet-circle {
  background: transparent;
  border: 1.5px solid var(--planet-color);
}
.size-details {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-left: 4px;
}
.size-value {
  font-family: var(--mono);
  font-size: 20px;
  color: var(--planet-color);
  letter-spacing: 0.02em;
  line-height: 1;
}
.size-sub {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 15px;
  color: rgba(240, 240, 232, 0.62);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ── EFFECTS MINI-PREVIEW ────────────────────────────────────── */
#effects-panel {
  position: absolute;
  bottom: 64px;
  right: 28px;
  width: 130px;
  height: 88px;
  z-index: 20;
  border: 1px solid rgba(240, 240, 232, 0.12);
  overflow: hidden;
  background: rgba(3, 3, 12, 0.8);
}
#effects-preview-canvas {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
#effects-panel-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 4px 7px;
  background: rgba(3, 3, 12, 0.88);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  color: rgba(240, 240, 232, 0.72);
  text-transform: uppercase;
  border-top: 1px solid rgba(240, 240, 232, 0.08);
}

/* ── TOOLTIP ─────────────────────────────────────────────────── */
#planet-tooltip {
  position: fixed;
  z-index: 55;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
  transform: translate(-50%, -155%);
  background: rgba(3, 3, 12, 0.96);
  border: 1px solid rgba(240, 240, 232, 0.15);
  padding: 10px 14px;
}
#planet-tooltip.visible {
  opacity: 1;
}
.tooltip-name {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.22em;
  text-align: center;
  white-space: nowrap;
  text-transform: uppercase;
  margin-bottom: 5px;
}
.tooltip-phrase {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 15px;
  color: var(--dim);
  text-align: center;
  max-width: 210px;
  line-height: 1.4;
}

/* ── ATMOSPHERE ANIMATIONS ───────────────────────────────────── */
@keyframes iron-rain {
  0% {
    transform: translateY(-10px);
    opacity: 0;
  }
  10% {
    opacity: 0.8;
  }
  90% {
    opacity: 0.6;
  }
  100% {
    transform: translateY(110px) translateX(15px);
    opacity: 0;
  }
}
@keyframes glass-wind-mini {
  from {
    transform: translateX(0) skewX(-20deg);
  }
  to {
    transform: translateX(180px) skewX(-20deg);
  }
}

/* ── OVERLAYS (About / Sources) ─────────────────────────────── */
#about-overlay,
#sources-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(3, 3, 12, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.overlay-inner {
  position: relative;
  width: min(620px, 90vw);
  max-height: 82vh;
  overflow-y: auto;
  background: #07071a;
  border: 1px solid rgba(240, 240, 232, 0.14);
  padding: 52px;
  scrollbar-width: thin;
  scrollbar-color: rgba(240, 240, 232, 0.08) transparent;
}
.overlay-inner::-webkit-scrollbar {
  width: 3px;
}
.overlay-inner::-webkit-scrollbar-thumb {
  background: rgba(240, 240, 232, 0.1);
}
.overlay-close {
  position: absolute;
  top: 22px;
  right: 22px;
  background: none;
  border: 1px solid rgba(240, 240, 232, 0.2);
  color: rgba(240, 240, 232, 0.75);
  font-family: var(--mono);
  font-size: 15px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: none;
  pointer-events: all;
  transition:
    border-color 0.15s,
    color 0.15s;
}
.overlay-close:hover {
  border-color: var(--white);
  color: var(--white);
}
.overlay-label {
  font-family: var(--mono);
  font-size: 15px;
  letter-spacing: 0.3em;
  color: var(--dim);
  margin-bottom: 14px;
  text-transform: uppercase;
}
.overlay-title {
  font-family: var(--sans);
  font-weight: 800;
  font-size: clamp(26px, 3vw, 38px);
  letter-spacing: 0.03em;
  color: var(--white);
  text-transform: uppercase;
  margin-bottom: 28px;
  line-height: 1.1;
}
.overlay-body {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.8;
  color: rgba(240, 240, 232, 0.72);
  margin-bottom: 16px;
}
.overlay-body strong {
  color: var(--white);
  font-weight: 400;
}
.overlay-stat {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(240, 240, 232, 0.1);
}
.overlay-stat-number {
  font-family: var(--mono);
  font-size: 44px;
  font-weight: 300;
  color: var(--white);
  letter-spacing: -0.02em;
}
.overlay-stat-label {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 13px;
  color: var(--dim);
  line-height: 1.4;
}
.source-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}
.source-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 16px 18px;
  border: 1px solid rgba(240, 240, 232, 0.08);
  background: rgba(240, 240, 232, 0.015);
}
.source-name {
  font-family: var(--mono);
  font-size: 15px;
  letter-spacing: 0.2em;
  color: var(--white);
  text-transform: uppercase;
}
.source-desc {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 13px;
  color: rgba(240, 240, 232, 0.78);
  line-height: 1.5;
}
.source-apa {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 13px;
  color: rgba(240, 240, 232, 0.78);
  line-height: 1.6;
}
.source-apa em {
  font-style: italic;
}
.source-link {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  color: rgba(240, 240, 232, 0.65);
  text-decoration: none;
  transition: color 0.15s;
  margin-top: 3px;
  cursor: none;
}
.source-link:hover {
  color: var(--white);
}
.overlay-note {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 15px;
  color: rgba(240, 240, 232, 0.65);
  line-height: 1.65;
  border-top: 1px solid rgba(240, 240, 232, 0.08);
  padding-top: 16px;
  margin-top: 4px;
}

/* ── Y AXIS LEGEND ─────────────────────────────────────────── */
.axis-y-label {
  position: absolute;
  left: 44px;
  top: 10%;
  bottom: 18%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}
.axis-y-label::before {
  content: '';
  position: absolute;
  left: -14px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, rgba(240, 240, 232, 0.7) 0%, rgba(240, 240, 232, 0.15) 100%);
}
.axis-y-label::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -18px;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-bottom: 7px solid rgba(240, 240, 232, 0.7);
}

.axis-y-top,
.axis-y-bottom {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  color: rgba(240, 240, 232, 0.8);
  white-space: nowrap;
}
.axis-y-title {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.22em;
  color: rgba(240, 240, 232, 0.75);
  text-transform: uppercase;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
}

/* ── DIVULGATIVE TOOLTIP ────────────────────────────────────── */
#type-tooltip {
  position: fixed;
  z-index: 200;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
  background: rgba(3, 3, 12, 0.98);
  border: 1px solid var(--planet-color);
  padding: 16px 20px;
  width: 280px;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(240, 240, 232, 0.85);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
#type-tooltip.visible {
  opacity: 1;
}

#hud-type {
  cursor: help;
  width: fit-content;
}

/* ── PROBE FEED UI (WEBCAM) ─────────────────────────────────── */
#effects-probe-ui {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
}
.probe-rec {
  position: absolute;
  top: 8px;
  left: 10px;
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.15em;
  color: #ff3333;
}
.rec-dot {
  width: 5px;
  height: 5px;
  background: #ff3333;
  border-radius: 50%;
  animation: probe-blink 1s infinite;
}
.probe-cross {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 14px;
  height: 14px;
}
.probe-cross::before {
  content: '';
  position: absolute;
  top: 50%;
  left: -50%;
  right: -50%;
  height: 1px;
  background: rgba(240, 240, 232, 0.15);
}
.probe-cross::after {
  content: '';
  position: absolute;
  left: 50%;
  top: -50%;
  bottom: -50%;
  width: 1px;
  background: rgba(240, 240, 232, 0.15);
}

@keyframes probe-blink {
  0%,
  49% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}

/* ── DIVULGATIVE GLOSSARY TOOLTIP ───────────────────────────── */
#glossary-tooltip {
  position: fixed;
  z-index: 200;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
  background: rgba(3, 3, 12, 0.98);
  border: 1px solid var(--planet-color, rgba(240, 240, 232, 0.4));
  padding: 16px 20px;
  width: 300px;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(240, 240, 232, 0.85);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}
#glossary-tooltip.visible {
  opacity: 1;
}
#glossary-tooltip strong {
  font-family: var(--mono);
  font-weight: normal;
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--white);
  display: block;
  margin-bottom: 6px;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(240, 240, 232, 0.15);
  padding-bottom: 6px;
}

.glossary-term {
  cursor: help;
  transition:
    color 0.2s,
    text-shadow 0.2s;
  pointer-events: all;
  position: relative;
}
.glossary-term::after {
  content: '[?]';
  font-family: var(--mono);
  font-size: 10px;
  margin-left: 8px;
  letter-spacing: 0;
  font-weight: normal;
  color: rgba(240, 240, 232, 0.3);
  vertical-align: baseline;
  position: relative;
  top: -2px;
  transition: color 0.2s;
}

#hud-name.glossary-term::after {
  top: -12px;
}
.glossary-term:hover {
  color: var(--planet-color);
  text-shadow: 0 0 8px var(--planet-color);
}
.glossary-term:hover::after {
  color: var(--planet-color);
}
#hud-type,
#hud-name {
  width: fit-content;
}

/* ── PROBE FEED UI (WEBCAM) ─────────────────────────────────── */
#effects-probe-ui {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
}
.probe-live {
  position: absolute;
  top: 8px;
  left: 10px;
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.15em;
  color: #5bbfa0;
}
.live-dot {
  width: 5px;
  height: 5px;
  background: #5bbfa0;
  border-radius: 50%;
  animation: probe-blink 1.5s infinite;
}
.probe-cross {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
}
.probe-cross::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(240, 240, 232, 0.25);
}
.probe-cross::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(240, 240, 232, 0.25);
}
@keyframes probe-blink {
  0%,
  49% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}
