/* Their Home — the Spark's 3D world on the companions page.
   The stage keeps a steady shape while the world loads, so the
   page never jumps; the list below it is the world in plain
   words, and stands whether or not the 3D can. */

#spark-home {
  margin-top: 2.2rem;
}

.spark-home-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  max-height: 540px;
  border-radius: 14px;
  overflow: hidden;
  background: radial-gradient(120% 90% at 50% 20%, #1b2748 0%, #0a1128 70%);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.spark-home-stage canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: grab;
}

.spark-home-stage canvas:active {
  cursor: grabbing;
}

.spark-home-stage.is-still {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1rem;
  text-align: center;
}

.spark-home-still-art {
  width: 150px;
  max-width: 40%;
}

.spark-home-still-art svg {
  width: 100%;
  height: auto;
}

.spark-home-still-note {
  margin: 0;
  max-width: 34rem;
  font-size: 0.92rem;
  opacity: 0.85;
}

.spark-home-caption {
  margin: 0.55rem 0 0;
  font-size: 0.95rem;
  opacity: 0.9;
}

.spark-home-readout {
  margin: 0.45rem 0 0;
  padding: 0.65rem 0.8rem;
  border-left: 3px solid rgba(255, 202, 122, 0.75);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0 8px 8px 0;
  min-height: 1.4em;
}

.spark-home-hint {
  margin: 0.45rem 0 0;
  font-size: 0.88rem;
  opacity: 0.75;
}

.spark-home-list {
  list-style: none;
  margin: 0.9rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.spark-home-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.55rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.spark-home-item:hover,
.spark-home-item:focus-visible {
  background: rgba(255, 255, 255, 0.09);
}

.spark-home-item strong {
  display: block;
  font-size: 0.98rem;
}

.spark-home-item span {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.9rem;
  opacity: 0.85;
}
