@media (hover: hover) and (pointer: fine) {
  body.custom-cursor-active,
  body.custom-cursor-active * {
    cursor: none !important;
  }
}

.cursor-wrap {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10001;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
}

body.custom-cursor-active .cursor-wrap {
  opacity: 1;
}

body.custom-cursor-hidden .cursor-wrap {
  opacity: 0;
}

.cursor-dot,
.cursor-ring,
.cursor-icon {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  will-change: transform;
}

.cursor-dot {
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 12px rgba(212, 146, 92, 0.6);
  z-index: 10003;
  transform: translate3d(var(--mx, -100px), var(--my, -100px), 0);
  transition:
    width 0.25s var(--ease),
    height 0.25s var(--ease),
    margin 0.25s var(--ease),
    opacity 0.25s,
    transform 0.15s var(--ease);
}

.cursor-ring {
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border-radius: 50%;
  border: 1px solid rgba(212, 146, 92, 0.45);
  z-index: 10002;
  transform: translate3d(var(--rx, -100px), var(--ry, -100px), 0);
  transition:
    width 0.35s var(--ease),
    height 0.35s var(--ease),
    margin 0.35s var(--ease),
    border-color 0.25s,
    background 0.25s,
    opacity 0.25s;
}

.cursor-icon {
  width: 22px;
  height: 22px;
  margin: -2px 0 0 -2px;
  z-index: 10004;
  color: var(--amber2);
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.4));
  transform: translate3d(var(--mx, -100px), var(--my, -100px), 0);
  transition:
    transform 0.15s var(--ease),
    opacity 0.25s,
    width 0.3s var(--ease),
    height 0.3s var(--ease),
    margin 0.3s var(--ease);
}

.cursor-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

body.cursor-hover .cursor-ring {
  width: 56px;
  height: 56px;
  margin: -28px 0 0 -28px;
  border-color: var(--amber);
  background: rgba(212, 146, 92, 0.08);
}

body.cursor-hover .cursor-dot {
  width: 4px;
  height: 4px;
  margin: -2px 0 0 -2px;
  opacity: 0.6;
}

body.cursor-hover .cursor-icon {
  width: 28px;
  height: 28px;
  margin: -4px 0 0 -4px;
  color: var(--amber);
}

body.cursor-hover .cursor-icon .icon-pointer {
  display: none;
}

body.cursor-hover .cursor-icon .icon-hand {
  display: block;
}

body.cursor-click .cursor-ring {
  width: 32px;
  height: 32px;
  margin: -16px 0 0 -16px;
  background: rgba(212, 146, 92, 0.15);
}

body.cursor-click .cursor-dot {
  transform: translate3d(var(--mx), var(--my), 0) scale(0.55);
}

body.cursor-text .cursor-ring {
  width: 4px;
  height: 28px;
  margin: -14px 0 0 -2px;
  border-radius: 2px;
  background: rgba(212, 146, 92, 0.2);
}

body.cursor-text .cursor-icon,
body.cursor-text .cursor-dot {
  opacity: 0;
}

.cursor-icon .icon-hand {
  display: none;
}

.cursor-ripple {
  position: fixed;
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  border: 1px solid var(--amber);
  pointer-events: none;
  z-index: 10001;
  animation: cursorRipple 0.6s var(--ease) forwards;
}

@keyframes cursorRipple {
  to {
    width: 48px;
    height: 48px;
    margin: -24px 0 0 -24px;
    opacity: 0;
  }
}
