Step into a realm where intricate craftsmanship meets the very essence of temporal mechanics. The Ancient Clockwork is not merely a device; it is a testament to a lost era's mastery over precision engineering and astronomical observation. Its complex interplay of gears, springs, and counterweights has, for centuries, measured not just the passing hours, but also the celestial dance of the planets and the subtle shifts of the lunar phases.
Legends speak of its creation by enigmatic artisans who understood the universe's underlying rhythms. Each component, meticulously shaped from rare alloys, resonates with a specific harmonic frequency, contributing to the overarching symphony of time. The mechanism is renowned for its uncanny accuracy and its ability to predict rare celestial alignments, a feat that continues to baffle modern horologists.
Input the primary celestial body's current apparent magnitude and its distance from Earth in astronomical units (AU) to receive a rudimentary transit probability.