/* Fine-pointer motion is decorative: no altered hit targets or event interception. */
.pm-cursor {
  position: fixed; inset: 0; z-index: 1000; pointer-events: none !important;
  opacity: 0; transition: opacity .18s ease; contain: strict;
}
.pm-cursor-visible { opacity: 1; }
.pm-cursor:not(.pm-cursor-visible) { transition: none; }
/* The active class and custom cursor are switched together by pointer-motion.js.
   Apply this to every painted element, including nested controls and pseudo-elements,
   so their cursor declarations cannot bring back the system pointer. */
html.pm-pointer-active,
html.pm-pointer-active *,
html.pm-pointer-active::before, html.pm-pointer-active::after,
html.pm-pointer-active *::before, html.pm-pointer-active *::after {
  cursor: none !important;
}
.pm-cursor-halo, .pm-cursor-dot {
  position: absolute; left: 0; top: 0; pointer-events: none;
  will-change: transform;
}
.pm-cursor-halo {
  width: 28px; height: 28px; margin: -14px 0 0 -14px;
  border: 1px solid rgba(222, 238, 255, .44); border-radius: 50%;
  background: rgba(200, 225, 255, .025);
  box-shadow: 0 0 20px rgba(176, 213, 255, .04);
  display: grid; place-items: center;
  transition: width .45s cubic-bezier(.16,1,.3,1), height .45s cubic-bezier(.16,1,.3,1),
    margin .45s cubic-bezier(.16,1,.3,1), border-color .3s, background .3s, opacity .2s;
}
.pm-cursor-dot {
  width: 4px; height: 4px; margin: -2px 0 0 -2px; border-radius: 50%;
  background: #eff7ff; box-shadow: 0 0 9px rgba(215,237,255,.32);
  transition: opacity .2s;
}
.pm-cursor-label {
  display: block; opacity: 0; font: 9px/1 var(--mono, monospace);
  letter-spacing: .12em; color: #f2f7ff; text-transform: uppercase;
  transition: opacity .25s; white-space: nowrap;
}
.pm-cursor-control .pm-cursor-halo {
  width: 42px; height: 42px; margin: -21px 0 0 -21px;
  background: rgba(217,234,255,.07); border-color: rgba(230,244,255,.6);
}
.pm-cursor-card .pm-cursor-halo {
  width: 72px; height: 72px; margin: -36px 0 0 -36px;
  border-color: rgba(238,246,255,.65); background: rgba(12,20,30,.28);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.pm-cursor-card .pm-cursor-label { opacity: 1; }
.pm-cursor-card .pm-cursor-dot, .pm-cursor-field .pm-cursor-dot { opacity: 0; }
.pm-cursor-field .pm-cursor-halo { opacity: 0; }
.pm-cursor-pressed .pm-cursor-halo { background: rgba(224,240,255,.18); border-color: #fff; }

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .pm-magnetic { position: relative; }
  .pm-magnetic::after {
    content: ''; position: absolute; inset: -1px; pointer-events: none;
    border-radius: inherit; opacity: 0;
    background: radial-gradient(75px circle at var(--pm-light-x, 50%) var(--pm-light-y, 50%), rgba(213,235,255,.18), transparent 75%);
    transition: opacity .4s ease;
  }
  .pm-magnetic-active::after { opacity: 1; }
}
@media (prefers-reduced-motion: reduce), (hover: none), (pointer: coarse) {
  .pm-cursor { display: none !important; }
  .pm-magnetic { translate: none !important; }
}
