:root {
  color-scheme: dark;
  --panel: rgba(8, 16, 28, 0.7);
  --panel-border: rgba(255, 255, 255, 0.18);
  --text: #f6f8ff;
  --muted: #aebbd0;
  --accent: #f7c948;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #03070f;
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

button {
  font: inherit;
}

#app,
#canvas-host {
  position: fixed;
  inset: 0;
}

canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.hud {
  position: fixed;
  top: 18px;
  left: 18px;
  z-index: 5;
  width: min(340px, calc(100vw - 36px));
  padding: 16px 18px;
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  background: var(--panel);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
  pointer-events: none;
}

.hud h1,
.hud p {
  margin: 0;
}

.hud h1 {
  margin-top: 4px;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: 0;
}

.hud p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.hud .eyebrow {
  margin-top: 0;
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

#ar-button {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 6;
  min-width: 112px;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(247, 201, 72, 0.92);
  color: #15110a;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 14px 34px rgba(247, 201, 72, 0.22);
}

#ar-button:disabled {
  cursor: not-allowed;
  background: rgba(159, 169, 186, 0.5);
  color: rgba(255, 255, 255, 0.78);
  box-shadow: none;
}

#labels {
  position: fixed;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

.planet-label {
  position: absolute;
  transform: translate(-50%, -50%);
  padding: 3px 7px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(3, 7, 15, 0.62);
  color: rgba(255, 255, 255, 0.9);
  font-size: 11px;
  line-height: 1.2;
  white-space: nowrap;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

@media (max-width: 720px) {
  .hud {
    top: 12px;
    left: 12px;
    width: calc(100vw - 24px);
    padding: 13px 14px;
  }

  .hud h1 {
    font-size: 20px;
  }

  #ar-button {
    right: 12px;
    bottom: 12px;
  }
}
