:root {
  color-scheme: dark;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: #020408;
  color: #f8fbff;
}

* {
  box-sizing: border-box;
}

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

#universe {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  background: #020408;
}

#hud {
  position: fixed;
  left: clamp(16px, 3vw, 40px);
  bottom: clamp(18px, 5vh, 52px);
  width: min(620px, calc(100vw - 32px));
  padding: 0;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.78);
  pointer-events: none;
  z-index: 2;
}

.system-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  margin-bottom: 10px;
  font-size: 11px;
  letter-spacing: 0;
  color: #89e9ff;
}

#body-name {
  margin: 0 0 8px;
  font-size: clamp(34px, 6vw, 74px);
  line-height: 0.92;
  letter-spacing: 0;
  font-weight: 760;
}

#phenomenon {
  margin: 0 0 14px;
  color: #fff0b8;
  font-size: clamp(15px, 2vw, 20px);
}

#science,
#transmission {
  max-width: 58ch;
  margin: 0 0 12px;
  font-size: clamp(14px, 1.6vw, 17px);
  line-height: 1.45;
}

#transmission {
  color: #c5ffed;
  font-style: italic;
}

#engage {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  min-width: 132px;
  min-height: 44px;
  border: 1px solid rgba(137, 233, 255, 0.6);
  border-radius: 4px;
  background: rgba(2, 10, 18, 0.72);
  color: #f8fbff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  cursor: pointer;
  backdrop-filter: blur(10px);
  z-index: 4;
}

#engage.hidden {
  opacity: 0;
  pointer-events: none;
}

#reticle {
  position: fixed;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 10px;
  border-top: 1px solid rgba(248, 251, 255, 0.72);
  border-left: 1px solid rgba(248, 251, 255, 0.72);
  transform: translate(-50%, -50%) rotate(45deg);
  pointer-events: none;
  z-index: 3;
}

@media (max-width: 640px) {
  #hud {
    bottom: 16px;
  }

  #science,
  #transmission {
    max-width: 100%;
  }
}
