.cursor-foxfire {
  /* ポインタに追従する装飾アイコンなので、表示枠を固定する。 */
  position: fixed;
  z-index: 190;
  top: 0;
  left: 0;
  inline-size: 3.75rem;
  aspect-ratio: 1;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(-100px, -100px, 0) translate(-50%, -50%);
  transition: opacity .2s ease;
}

.cursor-foxfire::before {
  position: absolute;
  inset: 0;
  content: "";
  background: url("cursor-foxfire.webp") center / contain no-repeat;
  /* 元画像の柔らかな透過光を保ち、輪郭を描き足さない。 */
  opacity: .92;
  mix-blend-mode: screen;
  transform: scale(1);
  transition: transform .25s var(--ease, cubic-bezier(.22, 1, .36, 1));
}

.cursor-foxfire::after {
  position: absolute;
  inset: -20%;
  content: "";
  background: radial-gradient(ellipse at 50% 60%, rgb(143 216 255 / .2), transparent 62%);
  transform: scale(1);
  transition: transform .3s var(--ease, cubic-bezier(.22, 1, .36, 1)), opacity .3s ease;
  opacity: .7;
}

.cursor-foxfire.is-interactive::after { transform: scale(1.7); opacity: 1; }
.cursor-foxfire.is-visible { opacity: 1; will-change: transform; }
.cursor-foxfire.is-interactive::before { transform: scale(1.7); }

@media (pointer: coarse), (prefers-reduced-motion: reduce) {
  .cursor-foxfire { display: none; }
}
