/* ==========================================================================
   IBG Studios — design tokens v1.0 (5 Dec 2026)
   Play, crafted with care.
   Source: IBG Studios Visual Brand Kit. Drop into any web page, store-art
   template or WebView. Unity / Flutter / Compose: copy the hex values.
   ========================================================================== */

/* Fonts (free, Google Fonts, SIL Open Font License).
   Baloo 2 = display; Baloo Da 2 = the same design for Bengali.
   Inter = UI; Noto Sans Bengali / Devanagari = UI fallbacks for scripts. */
@import url("https://fonts.googleapis.com/css2?family=Baloo+2:wght@600;700;800&family=Baloo+Da+2:wght@700;800&family=Inter:wght@400;500;600;700&family=Noto+Sans+Bengali:wght@400;600&family=Noto+Sans+Devanagari:wght@400;600&display=swap");

:root {
  /* ---- Colour: dark studio grounds ---------------------------------- */
  --ibg-bg-night:        #0F0E1F; /* rgb(15, 14, 31)   page + splash  */
  --ibg-bg-ink:          #17152E; /* rgb(23, 21, 46)   bands, menus   */
  --ibg-surface-raised:  #211D45; /* rgb(33, 29, 69)   cards, sheets  */
  --ibg-seal-indigo:     #26215C; /* rgb(38, 33, 92)   emblem seal    */
  --ibg-line:            #3A3470; /* rgb(58, 52, 112)  hairlines only */

  /* ---- Colour: text ------------------------------------------------- */
  --ibg-text-chalk:      #FFF7ED; /* rgb(255, 247, 237) 13.6:1+ */
  --ibg-text-muted:      #B8B2D9; /* rgb(184, 178, 217) 7.2:1+  */
  --ibg-on-accent:       #0F0E1F; /* text on any accent fill    */

  /* ---- Colour: gaming accents (all pass 4.5:1 on every dark ground) - */
  --ibg-accent-jalebi:   #FF9F1C; /* rgb(255, 159, 28)  studio accent, primary CTA */
  --ibg-accent-turmeric: #FFD23F; /* rgb(255, 210, 63)  stars, coins, rewards      */
  --ibg-accent-kite:     #FF4F8B; /* rgb(255, 79, 139)  playful highlight          */
  --ibg-accent-monsoon:  #19C6B4; /* rgb(25, 198, 180)  calm secondary, info       */
  --ibg-accent-indigo:   #8B7FFF; /* rgb(139, 127, 255) links, focus, tabs         */
  --ibg-state-success:   #5BD16A; /* rgb(91, 209, 106)  level complete             */
  --ibg-state-error:     #FF5A4E; /* rgb(255, 90, 78)   errors only, never a loss  */

  /* ---- Semantic aliases --------------------------------------------- */
  --ibg-bg:              var(--ibg-bg-night);
  --ibg-surface:         var(--ibg-surface-raised);
  --ibg-text:            var(--ibg-text-chalk);
  --ibg-primary:         var(--ibg-accent-jalebi);
  --ibg-focus:           var(--ibg-accent-indigo);

  /* ---- Type families ------------------------------------------------ */
  --ibg-font-display: "Baloo 2", "Baloo Da 2", system-ui, sans-serif;
  --ibg-font-ui:      "Inter", "Noto Sans Bengali", "Noto Sans Devanagari", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* ---- Type scale (mobile-first, px; size / line-height / weight) ---- */
  --ibg-text-display-xl: 800 48px/52px var(--ibg-font-display); /* game titles, splash */
  --ibg-text-display-l:  800 36px/40px var(--ibg-font-display); /* store art headlines */
  --ibg-text-display-m:  700 28px/32px var(--ibg-font-display); /* "Level complete"    */
  --ibg-text-title:      700 22px/28px var(--ibg-font-display); /* dialog titles       */
  --ibg-text-button:     700 17px/20px var(--ibg-font-ui);
  --ibg-text-body:       400 16px/24px var(--ibg-font-ui);
  --ibg-text-label:      600 14px/20px var(--ibg-font-ui);
  --ibg-text-caption:    500 12px/16px var(--ibg-font-ui);
  --ibg-tracking-display: -0.01em;
  --ibg-tracking-caps:     0.06em;   /* short ALL-CAPS labels only */

  /* ---- Spacing (4px base) ------------------------------------------- */
  --ibg-space-1: 4px;
  --ibg-space-2: 8px;
  --ibg-space-3: 12px;
  --ibg-space-4: 16px;   /* phone side margin */
  --ibg-space-5: 24px;
  --ibg-space-6: 32px;
  --ibg-space-7: 48px;
  --ibg-space-8: 64px;

  /* ---- Radius ------------------------------------------------------- */
  --ibg-radius-sm:   8px;
  --ibg-radius-md:   12px;
  --ibg-radius-lg:   20px;
  --ibg-radius-seal: 22%;   /* emblem + app icon corner = 22% of side */
  --ibg-radius-pill: 999px;

  /* ---- Elevation ---------------------------------------------------- */
  --ibg-shadow-raised: 0 8px 24px rgba(5, 4, 15, 0.45);
  --ibg-glow-accent:   0 0 0 3px rgba(255, 159, 28, 0.35);

  /* ---- Touch + layout ----------------------------------------------- */
  --ibg-tap-min:      48px;  /* smallest tap target */
  --ibg-button-h:     52px;
  --ibg-content-max:  480px; /* portrait, one thumb */

  /* ---- Motion (calm, never bouncy) ---------------------------------- */
  --ibg-ease-out:     cubic-bezier(0.22, 1, 0.36, 1);
  --ibg-ease-settle:  cubic-bezier(0.34, 1.26, 0.64, 1); /* soft overshoot, the "click" */
  --ibg-ease-in:      cubic-bezier(0.55, 0, 1, 0.45);
  --ibg-dur-fast:     120ms;
  --ibg-dur-base:     240ms;
  --ibg-dur-slow:     400ms;
  --ibg-splash-full:  2400ms; /* first launch + after updates */
  --ibg-splash-short: 1000ms; /* every other launch */
}

/* ---- Optional helpers --------------------------------------------- */
.ibg-display-xl { font: var(--ibg-text-display-xl); letter-spacing: var(--ibg-tracking-display); }
.ibg-display-l  { font: var(--ibg-text-display-l);  letter-spacing: var(--ibg-tracking-display); }
.ibg-display-m  { font: var(--ibg-text-display-m); }
.ibg-title      { font: var(--ibg-text-title); }
.ibg-body       { font: var(--ibg-text-body); }
.ibg-label      { font: var(--ibg-text-label); }
.ibg-caption    { font: var(--ibg-text-caption); color: var(--ibg-text-muted); }

.ibg-btn {
  font: var(--ibg-text-button);
  min-height: var(--ibg-button-h);
  padding: 0 var(--ibg-space-5);
  border: 0;
  border-radius: var(--ibg-radius-md);
  background: var(--ibg-surface-raised);
  color: var(--ibg-text-chalk);
  transition: transform var(--ibg-dur-fast) var(--ibg-ease-out);
}
.ibg-btn--primary { background: var(--ibg-accent-jalebi); color: var(--ibg-on-accent); }
.ibg-btn:active   { transform: scale(0.97); }
.ibg-btn:focus-visible { outline: 3px solid var(--ibg-focus); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  :root { --ibg-dur-fast: 0ms; --ibg-dur-base: 0ms; --ibg-dur-slow: 0ms; --ibg-splash-full: 1000ms; }
}
