/* ════════════════════════════════════════════════════════
   public/css/flags.css
   Feature-flag visibility layer. Load in <head> BEFORE any
   flagged element renders so the browser never paints
   non-functional UI on first frame (FOUC-proof).

   Hide-by-default; public/js/flags.js adds .flag-on to
   elements whose flag is enabled per /api/flags.
   ════════════════════════════════════════════════════════ */

[data-feature] {
  display: none !important;
}

[data-feature].flag-on {
  display: revert !important;
}

/* THE INVERSE (#4263): [data-feature-unless="FEATURE_X"] is the copy that is
   true while a flag is OFF. It is drawn by default, so a page with the flag
   off renders exactly as it did, and public/js/flags.js puts .flag-on on it
   once the flag answers ON, which hides it. Pair it with a
   [data-feature="FEATURE_X"] sibling carrying the words for the flag on. */
[data-feature-unless].flag-on {
  display: none !important;
}

/* THE CHAIN LANE (#3645): the wallet, $9LV, the mint and every link to them.
   public/js/flags.js sets data-chain-lane="on" on <html> for the website and
   the Seeker app, from the user agent before any answer lands, and "off" for
   the Google Play and Steam apps (or when FEATURE_CHAIN_LANE is off). Until it
   says "on", nothing marked .chain-lane is drawn, so a store app never paints
   one even for a frame. Once it does, this rule stops matching and the
   element keeps its own display (no `revert`, unlike [data-feature]). */
html:not([data-chain-lane="on"]) .chain-lane {
  display: none !important;
}

/* THE WORLD'S OWN DOMAIN (#5183): public/js/flags.js sets data-door="world"
   on <html> on the world's host (the `nln_door=world` cookie its server
   sets), and a page that must not flash may set it in its head the same way.
   .not-on-world is what the crypto game and the Pit own (the Pit lives only
   on 9lv.net, Wray 2026-11-11), hidden there; .on-world-only is the world's
   own wording of the same line, drawn only there. Neither is a flag: the
   host decides, never the player. */
html[data-door="world"] .not-on-world {
  display: none !important;
}
html:not([data-door="world"]) .on-world-only {
  display: none !important;
}
