/* only hide the native cursor on devices that actually have one — a
   touchscreen has no pointer to hide, and the custom dot/ring would just
   sit frozen at the last tap position, which reads as a stray glitch */
.has-custom-cursor * {
  cursor: none !important;
}
.has-custom-cursor input,
.has-custom-cursor textarea {
  cursor: text !important;
}

.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  pointer-events: none;
  z-index: 9999;
  will-change: transform;
}

.custom-cursor-ring {
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  margin: 0;
  border-radius: 50%;
  border: 1.3px solid #f2ead2;
  opacity: 0;
  transition: width 0.18s ease, height 0.18s ease, margin 0.18s ease, opacity 0.18s ease, background 0.18s ease;
}

.custom-cursor-dot {
  position: absolute;
  left: 0;
  top: 0;
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  background: #f2ead2;
  opacity: 0.85;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.custom-cursor-hover .custom-cursor-ring {
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  opacity: 0.3;
  background: rgba(242, 234, 210, 0.08);
}

.custom-cursor-hover .custom-cursor-dot {
  opacity: 0;
}
