@media (any-hover: hover) and (any-pointer: fine) {
  html.cf-custom-pointer, html.cf-custom-pointer *,
  html.cf-custom-pointer *::before, html.cf-custom-pointer *::after {
    cursor: none !important;
  }
}
.cf-cursor {
  position: fixed;
  z-index: 2000;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  pointer-events: none;
  color: #fff;
  mix-blend-mode: difference;
  visibility: hidden;
}
.cf-cursor.visible { visibility: visible; }
.cf-cursor .trail {
  position: absolute;
  inset: -26px auto auto -26px;
  width: 52px;
  height: 52px;
  will-change: transform;
}
/* A neutral hairline also contrasts with mid-gray, which inverts into itself. */
.cf-cursor .circle, .cf-cursor .middle-dot { filter: drop-shadow(0 1px 0 #808080); }
.cf-cursor .circle {
  position: absolute;
  inset: 0;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  transition: transform .32s cubic-bezier(.2,.7,.25,1), opacity .25s;
}
.cf-cursor .middle-dot, .cf-cursor .circle::before, .cf-cursor .circle::after {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}
.cf-cursor .middle-dot { top: -2px; left: -2px; }
.cf-cursor .circle::before, .cf-cursor .circle::after {
  content: "";
  top: calc(50% - 2px);
  opacity: 0;
  transition: opacity .25s, transform .32s;
}
.cf-cursor .circle::before { left: 8px; }
.cf-cursor .circle::after { right: 8px; }
.cf-cursor[data-config="clickable"] .circle { transform: scale(1.12); opacity: .8; }
.cf-cursor:is([data-config="draggable"], [data-config="dragging"], [data-config="clickable"]) .circle::before,
.cf-cursor:is([data-config="draggable"], [data-config="dragging"], [data-config="clickable"]) .circle::after { opacity: 1; }
.cf-cursor.down .circle { transform: scale(.9); }
.cf-cursor[data-config="dragging"] .circle::before { transform: translateX(-8px); }
.cf-cursor[data-config="dragging"] .circle::after { transform: translateX(8px); }
@media (prefers-reduced-motion: reduce) {
  .cf-cursor * { transition: none !important; }
}
@media print { .cf-cursor { display: none; } }
