/* pendulum.css — the swinging pendulum for viz/pendulum.js (pure DOM). The bob is a child of the
   rod, so the rod's rotation carries it to the exact end. */

.pd { display: flex; flex-direction: column; gap: 0.85rem; }
.pd-stage {
  position: relative; width: 100%; aspect-ratio: 16 / 11; min-height: 240px; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09); border-radius: 0.8rem;
  background: radial-gradient(120% 90% at 50% 4%, rgba(104, 130, 176, 0.16), transparent 55%), linear-gradient(180deg, #0b1018, #07090f);
}
.pd-mount { position: absolute; left: 50%; top: calc(9% - 5px); width: 46px; height: 7px; border-radius: 3px; transform: translateX(-50%);
  background: linear-gradient(180deg, #64748b, #334155); box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5); }
.pd-mount::after { content: ""; position: absolute; left: 50%; bottom: -3px; width: 7px; height: 7px; border-radius: 50%; background: #94a3b8; transform: translateX(-50%); }

.pd-rod { position: absolute; width: 2px; }
.pd-string { background: linear-gradient(180deg, rgba(226, 232, 240, 0.5), rgba(226, 232, 240, 0.85)); z-index: 3; }
.pd-ghost { background: rgba(148, 163, 184, 0.22); z-index: 1; }
.pd-ghost .pd-bob { background: rgba(148, 163, 184, 0.2); box-shadow: none; }

.pd-bob {
  position: absolute; left: 50%; bottom: -9px; width: 18px; height: 18px; border-radius: 50%; transform: translateX(-50%);
  background: radial-gradient(circle at 34% 30%, #93c5fd, #3b82f6 58%, #1e40af); box-shadow: 0 0 9px rgba(59, 130, 246, 0.6), inset 0 -2px 3px rgba(0, 0, 0, 0.35);
}

.pd-phase { position: absolute; left: 8px; bottom: 6px; font-size: 0.78rem; font-weight: 600; color: #aebdce; background: rgba(6, 10, 18, 0.6); padding: 2px 7px; border-radius: 5px; }

.pd-planets { display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; }
.pd-plabel { font-size: 0.85rem; color: #9fb0c3; font-weight: 600; margin-right: 0.2rem; }
.pd-planet { cursor: pointer; font: inherit; font-size: 0.8rem; font-weight: 600; color: #cbd5e1; padding: 0.28rem 0.7rem; border-radius: 999px;
  background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.14); transition: all 0.12s ease; }
.pd-planet:hover { background: rgba(255, 255, 255, 0.09); }
.pd-planet.pd-on { color: #07121d; background: #8fa8cf; border-color: #8fa8cf; }
