        if (isTouching) {
                    const rect = card.getBoundingClientRect();
                    const x = event.touches[0].clientX - rect.left;
                    const y = event.touches[0].clientY - rect.top;

                    card.style.setProperty('--x', x + 'px');
                    card.style.setProperty('--y', y + 'px');
                }
            });

            card.addEventListener('touchend', (event) => {
                isTouching = false;
                card.classList.remo