/* AI ukazovák (ruka s prstom) – PNG verzia */
.ai-pointer{
  position: fixed; left: 48%; top: 62%;
  width: 189px; height: 263px;
  transform: translate(calc(-50% + var(--tx,0px)), calc(-50% + var(--ty,0px)))
             rotate(-10deg) scale(var(--s,.35)); /* zmenši podľa potreby */
  transform-origin: 60% 18%;
  z-index: 1000; pointer-events: none;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.35));
  background: url('../img/sprites/hand-click.png') no-repeat;
  background-size: 945px 1315px;
  background-position: var(--fx,0px) var(--fy,0px);
}





/* Vnútorná vlna (prvá, menšia) */
.ai-pointer::after{
  content: "";
  position: absolute;
  left: 40%; top: 10%;
  width: 6px; height: 6px;
  border-radius: 50%;
  transform: translate(-50%,-50%) scale(0.3);
  opacity: 0;
  box-shadow:
    0 0 0 2px rgba(255,255,255,.95),
    0 0 14px 2px rgba(255,255,255,.55);
}

/* Vonkajšia vlna (druhý prstenec) */
.ai-pointer::before{
  content: "";
  position: absolute;
  left: 40%; top: 10%;
  width: 8px; height: 8px;
  border-radius: 50%;
  transform: translate(-50%,-50%) scale(0.25);
  opacity: 0;
  box-shadow:
    0 0 0 3px rgba(255,255,255,.9),
    0 0 18px 4px rgba(255,255,255,.45);
}

/* Animácie prstencov */
@keyframes ai-wave-ring{
  0%{
    transform: translate(-50%,-50%) scale(0.35);
    opacity: 1;
    box-shadow:
      0 0 0 2px rgba(255,255,255,.95),
      0 0 14px 2px rgba(255,255,255,.55);
  }
  60%{
    transform: translate(-50%,-50%) scale(1.6);
    opacity: .55;
    box-shadow:
      0 0 0 2px rgba(255,255,255,.7),
      0 0 20px 6px rgba(255,255,255,.35);
  }
  100%{
    transform: translate(-50%,-50%) scale(2.2);
    opacity: 0;
    box-shadow:
      0 0 0 2px rgba(255,255,255,0),
      0 0 26px 10px rgba(255,255,255,0);
  }
}

@keyframes ai-wave-ring-outer{
  0%{
    transform: translate(-50%,-50%) scale(0.3);
    opacity: .9;
    box-shadow:
      0 0 0 3px rgba(255,255,255,.9),
      0 0 18px 4px rgba(255,255,255,.45);
  }
  60%{
    transform: translate(-50%,-50%) scale(1.8);
    opacity: .45;
    box-shadow:
      0 0 0 3px rgba(255,255,255,.6),
      0 0 26px 8px rgba(255,255,255,.30);
  }
  100%{
    transform: translate(-50%,-50%) scale(2.6);
    opacity: 0;
    box-shadow:
      0 0 0 3px rgba(255,255,255,0),
      0 0 34px 12px rgba(255,255,255,0);
  }
}

/* Spúšť vĺn pri kliknutí */
.ai-pointer.--press::after{
  animation:
    ai-wave-ring .46s ease-out 0s forwards,
    ai-wave-ring .66s ease-out .08s forwards;
}

.ai-pointer.--press::before{
  animation:
    ai-wave-ring-outer .62s ease-out .02s forwards;
}
