/* Sonar cursor — PC デフォルト ON（?cursor=off でそのページだけ無効） */
html.moco-cursor-sonar-on,
html.moco-cursor-sonar-on * {
  cursor: none !important;
}

.moco-cursor-sonar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10000;
  pointer-events: none;
  will-change: transform;
}

.moco-cursor-sonar__dot {
  position: absolute;
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent-fill-glow);
}

.moco-cursor-sonar__ring {
  position: absolute;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  border: 1px solid var(--accent-stroke);
  opacity: 0;
  animation: moco-cursor-sonar-pulse 2.4s var(--ease, cubic-bezier(0.4, 0, 0.2, 1)) infinite;
}

.moco-cursor-sonar__ring:nth-child(2) {
  animation-delay: 0.8s;
}

.moco-cursor-sonar__ring:nth-child(3) {
  animation-delay: 1.6s;
}

.moco-cursor-sonar.is-hover .moco-cursor-sonar__dot {
  transform: scale(1.35);
  background: var(--accent-hover);
}

.moco-cursor-sonar.is-hover .moco-cursor-sonar__ring {
  border-color: var(--accent-hover);
  animation-duration: 1.6s;
}

.moco-cursor-sonar__click {
  position: absolute;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  opacity: 0.65;
  animation: moco-cursor-sonar-click 0.65s var(--ease, cubic-bezier(0.4, 0, 0.2, 1)) forwards;
}

@keyframes moco-cursor-sonar-pulse {
  0% {
    transform: scale(1);
    opacity: 0.55;
  }
  100% {
    transform: scale(4.2);
    opacity: 0;
  }
}

@keyframes moco-cursor-sonar-click {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }
  100% {
    transform: scale(5);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html.moco-cursor-sonar-on,
  html.moco-cursor-sonar-on * {
    cursor: auto !important;
  }

  .moco-cursor-sonar {
    display: none !important;
  }
}
