/* Living aura cursor — fine pointer only */

.soft-cursor {
  --soft-cursor-x: -100px;
  --soft-cursor-y: -100px;
  --aura-size: 1.15rem;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10000;
  width: var(--aura-size);
  height: var(--aura-size);
  margin: 0;
  padding: 0;
  border: 0;
  pointer-events: none;
  border-radius: 50%;
  transform: translate3d(
    calc(var(--soft-cursor-x) - 50%),
    calc(var(--soft-cursor-y) - 50%),
    0
  );
  opacity: 0;
  background: radial-gradient(
    circle at 40% 35%,
    rgba(243, 235, 227, 0.55) 0%,
    rgba(232, 168, 144, 0.42) 35%,
    rgba(212, 135, 106, 0.22) 65%,
    rgba(212, 135, 106, 0) 100%
  );
  box-shadow: 0 0 18px rgba(212, 135, 106, 0.18);
  transition:
    opacity 0.35s var(--ease, cubic-bezier(0.22, 1, 0.36, 1)),
    width 0.4s var(--ease, cubic-bezier(0.22, 1, 0.36, 1)),
    height 0.4s var(--ease, cubic-bezier(0.22, 1, 0.36, 1)),
    box-shadow 0.4s var(--ease, cubic-bezier(0.22, 1, 0.36, 1));
  will-change: transform, opacity, width, height;
  animation: soft-cursor-breathe 3.6s var(--ease, cubic-bezier(0.22, 1, 0.36, 1))
    infinite;
}

.soft-cursor.is-visible {
  opacity: 1;
}

.soft-cursor.is-hidden {
  opacity: 0;
  animation: none;
}

.soft-cursor.is-hover {
  --aura-size: 2.1rem;
  box-shadow: 0 0 28px rgba(212, 135, 106, 0.28);
  animation-duration: 2.4s;
}

.soft-cursor.is-press {
  --aura-size: 0.85rem;
  box-shadow: 0 0 12px rgba(212, 135, 106, 0.2);
  animation: none;
}

@keyframes soft-cursor-breathe {
  0%,
  100% {
    transform: translate3d(
        calc(var(--soft-cursor-x) - 50%),
        calc(var(--soft-cursor-y) - 50%),
        0
      )
      scale(1);
  }

  50% {
    transform: translate3d(
        calc(var(--soft-cursor-x) - 50%),
        calc(var(--soft-cursor-y) - 50%),
        0
      )
      scale(1.06);
  }
}

html.has-soft-cursor,
html.has-soft-cursor body,
html.has-soft-cursor a,
html.has-soft-cursor button,
html.has-soft-cursor [role="button"],
html.has-soft-cursor label[for],
html.has-soft-cursor summary {
  cursor: none;
}

html.has-soft-cursor input,
html.has-soft-cursor textarea,
html.has-soft-cursor select,
html.has-soft-cursor [contenteditable="true"] {
  cursor: text;
}

@media (pointer: coarse), (prefers-reduced-motion: reduce) {
  .soft-cursor {
    display: none !important;
  }

  html.has-soft-cursor,
  html.has-soft-cursor body,
  html.has-soft-cursor a,
  html.has-soft-cursor button,
  html.has-soft-cursor [role="button"],
  html.has-soft-cursor label[for],
  html.has-soft-cursor summary,
  html.has-soft-cursor input,
  html.has-soft-cursor textarea,
  html.has-soft-cursor select,
  html.has-soft-cursor [contenteditable="true"] {
    cursor: auto;
  }
}
