const AGE_KEY = "j621.age-verified"; export function isAgeVerified(): boolean { try { return window.localStorage.getItem(AGE_KEY) === "1"; } catch { return false; } } export function markAgeVerified(): void { try { window.localStorage.setItem(AGE_KEY, "1"); } catch { // Private mode with storage disabled: the gate simply shows again. } }