Last Updated: October 17, 2026
This Cookie Policy explains how Hanafuda Legends uses cookies and similar storage on our website. Read it alongside our Privacy Policy.
We use a self-hosted, region-aware consent banner (not a third-party CMP). Google Analytics loads on every visit with Google Consent Mode. In the EEA, the UK, and Switzerland, analytics and ad storage stay off until you choose Accept or change Settings; Google may receive a cookieless ping so it can model traffic. Elsewhere, analytics storage is on by default and a short notice lets you turn it off in Settings. We do not run ads, so ad storage stays off unless you allow it. Your choice is stored in localStorage as hf_consent ({ analytics, ads, ts, region, source }). You can reopen Settings anytime via Cookie settings.
The table below lists cookies and browser storage keys found in our codebase. Google Analytics cookies are set when analytics storage is granted.
| Name | Purpose | Duration | Category |
|---|---|---|---|
hf_consent (localStorage) |
Stores your analytics/ads choice, the country it was made in, and whether it came from the banner or Settings | Until cleared | Necessary |
hf_cc (cookie) |
Visitor country code from edge middleware (routing / regional hints) | 1 hour | Necessary |
hf_token / hanafuda_token (localStorage) |
Signed-in session token | Until logout / cleared | Necessary |
hf_user / hanafuda_user (localStorage) |
Cached account profile for UI | Until logout / cleared | Necessary |
hf_username (localStorage) |
Display name cache | Until cleared | Necessary |
hf_guest_id (localStorage) |
Anonymous visitor id so a private-room session can be linked if you later create an account | Until cleared | Necessary |
hanafuda_language (localStorage) |
UI language preference | Until cleared | Functional |
hf_theme, hf_deck, hf_card_back, hf_captured_bg (localStorage) |
Appearance preferences (table, deck, card back, capture pile) | Until cleared | Functional |
hf_game_speed, hf_bg_music_track, audio / overlay volume keys, hf_computer_difficulty, highlight toggles (localStorage) |
Gameplay and audio preferences | Until cleared | Functional |
hf_coin_launch_seen (localStorage) |
Whether you dismissed the Hana Coins launch notice | Until cleared | Functional |
hf_tutorial_completed, prompt “don’t show again” keys (localStorage) |
Tutorial / onboarding state | Until cleared | Functional |
| Match / lobby keys in sessionStorage (e.g. pending invite codes, active match boot data) | Temporary multiplayer session state for the current tab | Tab session | Necessary |
Socket.IO transport (io / Engine.IO) |
Realtime multiplayer connection (may set a short-lived cookie depending on transport) | Session / short-lived | Necessary |
_ga, _ga_* (cookies) |
Google Analytics 4 — distinguish users / sessions. Set only if analytics consent is granted | Up to 2 years | Analytics |
Google AdSense cookies (e.g. IDE, related Google ads cookies) |
Site verification / advertising measurement. Script loads only if ads consent is granted. No ad units are rendered in-app today beyond the verification script | Up to 13 months (Google-controlled) | Advertising |
| Google Sign-In cookies | OAuth when you choose “Sign in with Google” | Google-controlled | Necessary (auth) |
Use Cookie settings to accept all, reject non-essential, or change analytics/ads toggles. Changes take effect immediately.
You can also clear cookies and site data in your browser. Disabling all storage may prevent login and preference persistence.
Our Capacitor apps do not show the web cookie banner. Analytics can be toggled in Settings → Privacy. Mobile apps do not load AdSense.
If you have questions about our use of cookies, please contact us:
Email: [email protected]
Website: https://hanafudalegends.com/