:root {
  color-scheme: dark;
  font:
    16px/1.6 system-ui,
    sans-serif;
  color: #d8e3ec;
  background: #03060b;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
#observatory {
  position: relative;
  width: 100%;
  height: 100dvh;
  isolation: isolate;
}
#space {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: grab;
  outline: none;
}
#space:active {
  cursor: grabbing;
}
[hidden] {
  display: none !important;
}
#loading {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  background: #03060b;
  transition: opacity 0.9s;
}
#loading.done {
  opacity: 0;
  pointer-events: none;
}
.loading-track {
  height: 1px;
  width: 150px;
  background: #152637;
}
.loading-track i {
  display: block;
  width: 2%;
  height: 1px;
  background: #b0cfdf;
  transition: width 0.3s;
}
#error-panel {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background: #080d15;
  text-align: center;
  padding: 30px;
}
#error-panel h1 {
  font-size: 1.5rem;
  font-weight: 400;
}
#error-panel p {
  max-width: 440px;
  color: #90a7ba;
}
#error-panel button {
  font: inherit;
  padding: 10px 22px;
  border: 1px solid #637d93;
  background: none;
  border-radius: 5px;
  color: inherit;
  cursor: pointer;
}
#error-panel button:focus-visible {
  outline: 2px solid #acd3e8;
  outline-offset: 4px;
}
@media (prefers-reduced-motion: reduce) {
  #loading,
  .loading-track i {
    transition: none;
  }
}

/* The observatory remains a pure universe view, including while streaming. */
#loading {
  visibility: hidden;
}
