/*
 * Grandpashabet Bazaar — per-game DOM theme.
 *
 * Linked from index.html after src/style.css (not imported from JS), so it can be swapped in a
 * deployed build without rebuilding. The canvas (Pixi) cannot read CSS: canvas colours and text
 * styles live in public/data/game.json and public/data/config.json.
 */

/*
 * Turkish-capable Lilita. The shared style.css declares "lilita_regular"/"lilita_mono" from the
 * stock Lilita One files, which lack ğ Ğ ş Ş İ. Later @font-face rules win, so these point the
 * same families at the "Lilita Bazaar TR" builds (Lilita One + composed Turkish glyphs, renamed
 * per its OFL Reserved Font Name).
 */
@font-face {
  font-family: "lilita_regular";
  src: url("fonts/LilitaBazaarTR-Regular.woff2") format("woff2");
}

@font-face {
  font-family: "lilita_mono";
  src: url("fonts/LilitaBazaarTR-Regular-mono.woff2") format("woff2");
}

/* Declared here, not only in the Pixi font bundle: the splash renders before that bundle loads. */
@font-face {
  font-family: "bazaar_script";
  src: url("fonts/BazaarScriptTR-Regular.woff2") format("woff2");
}

:root {
  /* Brand palette */
  /* Brand olive (logo background #283102, hue ~74deg). */
  --bazaar-emerald-900: #0e1201;
  --bazaar-emerald-700: #283102;
  --bazaar-emerald-500: #46560c;
  --bazaar-gold-500: #c9a24a;
  --bazaar-gold-300: #f2d27a;
  --bazaar-nazar-blue: #1e5bb8;

  /* FreePlays widget corner (read by the shared FreePlaysWidget). */
  --freeplays-widget-position: top-left;
}

/*
 * Only <html> gets the fallback colour. <body> must stay transparent: #background sits at
 * z-index -1, so a painted body covers it and desktop shows a flat colour instead of the
 * blurred bazaar outside the game canvas.
 */
html {
  background-color: var(--bazaar-emerald-900);
}

body {
  background-color: transparent;
}

/* Desktop side backdrop: blurred bazaar (same file name as before, new art). */
#background {
  background-color: var(--bazaar-emerald-900);
  background-image: url("assets/base_game/bg-blur.webp");
}
