/* Ball trails the system cursor; default mouse pointer stays visible. */

.pw-cursor-layer {
  position: fixed;
  inset: 0;
  z-index: 100000;
  pointer-events: none;
  overflow: hidden;
}

@media (hover: none), (pointer: coarse) {
  .pw-cursor-layer {
    display: none;
  }
}

.pw-cursor-ball {
  position: absolute;
  top: 0;
  left: 0;
  width: 18px;
  height: 18px;
  margin-left: -9px;
  margin-top: -9px;
  border-radius: 50%;
  background: rgba(8, 6, 4, 0.85);
  pointer-events: none;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
  opacity: 0;
  will-change: transform, width, height, margin, opacity;
  transition:
    width 180ms cubic-bezier(0.16, 1, 0.3, 1),
    height 180ms cubic-bezier(0.16, 1, 0.3, 1),
    margin 180ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 180ms cubic-bezier(0.16, 1, 0.3, 1),
    opacity 120ms ease;
}

.pw-cursor-layer.is-visible .pw-cursor-ball {
  opacity: 1;
}

.pw-cursor-ball.is-pointer {
  width: 8px;
  height: 8px;
  margin-left: -4px;
  margin-top: -4px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.pw-cursor-ball.is-grab {
  width: 28px;
  height: 28px;
  margin-left: -14px;
  margin-top: -14px;
  background: rgba(8, 6, 4, 0.75);
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.1);
}
