/* cursor.css — bespoke glowing cursor with trailing ring */
.cursor {
  position: fixed;
  top: 0; left: 0;
  z-index: var(--z-cursor);
  pointer-events: none;
  mix-blend-mode: screen;
  will-change: transform;
}
@media (pointer: coarse) { .cursor { display: none; } }

.cursor__dot {
  position: fixed;
  top: 0; left: 0;
  width: 12px; height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: var(--purple);
  box-shadow: 0 0 12px var(--purple), 0 0 24px rgba(123, 47, 255, 0.6);
  will-change: transform;
  transition: width 0.25s, height 0.25s, background 0.25s;
}

.cursor__ring {
  position: fixed;
  top: 0; left: 0;
  width: 40px; height: 40px;
  margin: -20px 0 0 -20px;
  border-radius: 50%;
  border: 1.5px solid rgba(123, 47, 255, 0.7);
  will-change: transform;
  transition: width 0.3s var(--ease-out-expo), height 0.3s var(--ease-out-expo),
              border-color 0.3s, background 0.3s, opacity 0.3s;
}

/* Context states (set on .cursor by cursor.js) */
.cursor.is-link .cursor__ring   { width: 64px; height: 64px; margin: -32px 0 0 -32px; border-color: var(--cyan); }
.cursor.is-link .cursor__dot    { background: var(--cyan); box-shadow: 0 0 14px var(--cyan); }
.cursor.is-card .cursor__ring   { width: 90px; height: 90px; margin: -45px 0 0 -45px; border-color: var(--magenta); background: rgba(255, 45, 120, 0.06); }
.cursor.is-card .cursor__dot    { width: 6px; height: 6px; margin: -3px 0 0 -3px; }
.cursor.is-warp .cursor__ring   { width: 8px; height: 8px; margin: -4px 0 0 -4px; opacity: 0.2; }
.cursor.is-warp .cursor__dot    { background: var(--cyan); box-shadow: 0 0 30px var(--cyan); }
.cursor.is-hidden               { opacity: 0; }

/* Comet trail dots (spawned on idle) */
.comet-dot {
  position: fixed;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  pointer-events: none;
  z-index: var(--z-cursor);
  mix-blend-mode: screen;
  box-shadow: 0 0 10px var(--cyan);
}
