/* obs/orrery.css — the day panel's orbital visualization (Observatory).
 *
 * The data-driven geometry (ring boxes, conic-gradient arcs, masks, dot
 * translates) is emitted INLINE by orrery_helpers.go, exactly like the mockup;
 * this file only carries the static chrome: the 320×178 stage, the center sun
 * + readout, the pulse animation for the "now" dot, and the <900px collapse
 * (the day-panel header grid drops to one column; the orrery centers).
 */

.orrery {
  position: relative;
  width: 320px;
  height: 178px;
  justify-self: end;
  flex: none;
}

/* ---- center sun + readout ---------------------------------------------- */

.orrery-center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  text-align: center;
}

.orrery-center__sun {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff7e2;
  box-shadow: 0 0 11px rgba(255, 214, 140, 0.9), 0 0 32px rgba(255, 180, 90, 0.4);
}

.orrery-center__total {
  font-family: var(--font-mono, 'Azeret Mono', monospace);
  font-size: 13px;
  line-height: 1.2;
}
.orrery-center__total--ahead {
  color: #5ee6c8;
  text-shadow: 0 0 10px rgba(94, 230, 200, 0.4);
}
.orrery-center__total--behind {
  color: #ff8d7e;
  text-shadow: 0 0 10px rgba(255, 141, 126, 0.4);
}

.orrery-center__caption {
  font-family: var(--font-mono, 'Azeret Mono', monospace);
  font-size: 8px;
  color: #6c7689;
  white-space: nowrap;
}

/* ---- the pulsing "now" dot ---------------------------------------------- */

@keyframes orreryGlowpulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.orrery-dot--pulse {
  animation: orreryGlowpulse 4s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .orrery-dot--pulse { animation: none; }
}

/* ---- responsive --------------------------------------------------------- */

@media (max-width: 900px) {
  .orrery {
    justify-self: center;
  }
}
