(function(){
    var o = document.getElementById('welcome-overlay');
    var b = document.getElementById('welcome-agree');
    if (!o || !b) return;
    setTimeout(function(){ o.classList.add('visible'); }, 300);
    b.addEventListener('click', function(){
        o.classList.remove('visible');
        setTimeout(function(){ o.remove(); }, 500);
        document.cookie = '_wl=1;path=/;max-age=31536000;SameSite=Lax;Secure';
    });
})();
