x = Math.min(iterations, colors.length - 1);
                    const color = colors[colors.length - 1 - colorIndex];

                    const char = uniqueChars[charIndex % uniqueChars.length];
                    ctx.fillStyle = color;
                    ctx.font = '8px monospace';
                    ctx.fillText(char, x, y + 8);   // Adjust y for proper alignment

                    charIndex++;
                }
            }
        }

        function resetAnimation() {
            xOffset = -1.