/* ==========================================================================
   Cursor wave field
   A real height-field water simulation painted on a dot lattice, plus a
   soft light that trails the pointer.
   ========================================================================== */

.fx-wave {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.fx-cursor {
  position: absolute;
  left: 0;
  top: 0;
  width: 560px;
  height: 560px;
  margin: -280px 0 0 -280px;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(
    circle,
    var(--accent-glow) 0%,
    rgba(139, 124, 246, .10) 38%,
    transparent 66%
  );
  transition: opacity 600ms var(--ease);
  will-change: transform;
}

.fx-cursor.is-on { opacity: .55; }

:root[data-theme="light"] .fx-cursor.is-on { opacity: .4; }

/* Hint shown once so people know the background reacts */
.wave-hint {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(8px);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-2);
  pointer-events: none;
  opacity: 0;
  animation: waveHint 5.4s var(--ease) 1.1s 1 forwards;
}

.wave-hint .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

@keyframes waveHint {
  0%        { opacity: 0; transform: translate(-50%, 10px); }
  10%, 74%  { opacity: 1; transform: translate(-50%, 0); }
  100%      { opacity: 0; transform: translate(-50%, 10px); }
}

@media (max-width: 700px) {
  .fx-cursor { display: none; }
  .wave-hint { font-size: 12px; bottom: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .fx-wave,
  .fx-cursor,
  .wave-hint { display: none; }
}
