@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  overflow: hidden;
  background-color: #000;
  font-family: Arial, sans-serif;
  cursor: default;
}

#canvas-container {
  width: 100vw;
  height: 100vh;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

#day-counter {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 10px 15px;
  border-radius: 8px;
  z-index: 100;
  font-size: 18px;
  font-weight: bold;
}

#info-panel {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 16px 20px 14px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-left: 6px solid rgba(255, 255, 255, 0.3);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  line-height: 1.5;
  color: #c8d6e5;
  background: radial-gradient(
    ellipse at 30% 20%,
    rgba(15, 25, 60, 0.95) 0%,
    rgba(5, 8, 20, 0.97) 60%,
    rgba(2, 3, 10, 0.98) 100%
  );
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

#info-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 4px;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(255, 255, 255, 0.008) 2px,
    rgba(255, 255, 255, 0.008) 4px
  );
  pointer-events: none;
}

#info-panel::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 5px;
  opacity: 0.15;
  filter: blur(12px);
  pointer-events: none;
  z-index: -1;
}

.planet-info {
  cursor: pointer;
  padding: 8px 12px;
  margin: 4px 0;
  border-radius: 4px;
  display: block;
  transition: background 0.2s, color 0.2s;
  text-transform: uppercase;
}

.planet-info:hover {
  background: rgba(255, 255, 255, 0.1);
}

.planet-info span {
  color: #FFDD00;
}

.planet-info.active-planet {
  background: rgba(255, 221, 0, 0.15);
  color: #FFDD00;
  font-weight: bold;
}

/* ============================================================
   Tooltip — Celestial Telemetry Card
   ============================================================ */

#planet-tooltip {
  position: absolute;
  display: none;
  z-index: 200;
  pointer-events: none;
  width: 280px;
  top: 50%;
  padding: 16px 20px 14px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-left: 6px solid rgba(255, 255, 255, 0.3);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  line-height: 1.5;
  color: #c8d6e5;
  background: radial-gradient(
    ellipse at 30% 20%,
    rgba(15, 25, 60, 0.95) 0%,
    rgba(5, 8, 20, 0.97) 60%,
    rgba(2, 3, 10, 0.98) 100%
  );
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

#planet-tooltip::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 4px;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(255, 255, 255, 0.008) 2px,
    rgba(255, 255, 255, 0.008) 4px
  );
  pointer-events: none;
}

#planet-tooltip::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 5px;
  opacity: 0.15;
  filter: blur(12px);
  pointer-events: none;
  z-index: -1;
}

#planet-tooltip.tooltip-visible {
  display: block;
}

.tooltip-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}

.tooltip-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 6px currentColor;
  flex-shrink: 0;
}

.tooltip-name {
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
}

.tooltip-divider {
  height: 1px;
  margin: 8px 0 10px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.03) 100%);
}

.tooltip-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.telemetry-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  line-height: 1.4;
}

.telemetry-label {
  color: rgba(100, 200, 255, 0.5);
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  flex-shrink: 0;
  margin-right: 12px;
}

.telemetry-value {
  color: #e8e8e8;
  font-size: 11px;
  font-weight: 500;
  text-align: right;
}

