import { useEffect, useRef, useState } from "react";
/**
* Spuncin animated entrance logo (A1 · Comet Trail Classic).
*
* Plays once on mount: two rings "draw themselves" comet-style
* (a leading dot trails a growing arc) rotating in opposite
* directions, then the center dot pops in. Ends in a static state
* matching the official static logo — does not loop.
*
* Usage:
*
* // for dark backgrounds
* // change replayKey to replay
*
* Props:
* size number — width/height in px (default 120)
* onDark boolean — use the light-on-dark palette (default false)
* duration number — animation duration in seconds (default 1.4)
* replayKey any — change this value to force the animation to replay
* className string — passed through to the wrapping