---
/**
 * CometTrail — pointer-following particle trail rendered as a fixed canvas
 * overlay. Pure vanilla canvas2d, additive blending so the trail glows.
 * Skipped on touch devices and under prefers-reduced-motion.
 */
---
<canvas id="comet-trail" aria-hidden="true"></canvas>

<style is:global>
  #comet-trail {
    position: fixed; inset: 0;
    pointer-events: none;
    z-index: 100;
    width: 100%; height: 100%;
  }
  @media (prefers-reduced-motion: reduce), (pointer: coarse) {
    #comet-trail { display: none; }
  }
</style>

