/* Boutiqaat Daily Challenge — brand tokens for the in-app games.
   Colours from the Boutiqaat Decks design system. Fonts are SIL OFL, bundled in ./fonts. */

@font-face { font-family: "BQ Naskh"; font-weight: 700; font-display: swap;
  src: url("./fonts/noto-naskh-arabic-arabic-700-normal.woff2") format("woff2"); }
@font-face { font-family: "BQ Plex"; font-weight: 400; font-display: swap;
  src: url("./fonts/ibm-plex-sans-arabic-arabic-400-normal.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "BQ Plex"; font-weight: 700; font-display: swap;
  src: url("./fonts/ibm-plex-sans-arabic-arabic-700-normal.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "BQ Plex"; font-weight: 400; font-display: swap;
  src: url("./fonts/ibm-plex-sans-arabic-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: "BQ Plex"; font-weight: 700; font-display: swap;
  src: url("./fonts/ibm-plex-sans-arabic-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: "BQ Caladea"; font-weight: 700; font-display: swap;
  src: url("./fonts/caladea-latin-700-normal.woff2") format("woff2"); }

:root {
  /* Colour */
  --bq-ink: #111111;          /* text, card back, primary button */
  --bq-on-ink: #ffffff;
  --bq-surface: #ffffff;      /* sheet / card face */
  --bq-cream: #f7f4ee;        /* soft blocks */
  --bq-panel: #f3ead3;        /* reward card */
  --bq-gold: #b08d3a;         /* star, timer bar, match outline. Never text under 24px */
  --bq-gold-deep: #8a6a1f;    /* gold TEXT under 24px */
  --bq-gold-light: #d8cba0;   /* decoration only, never text */
  --bq-text-muted: #5a5a5a;
  --bq-text-label: #6b6558;
  --bq-border: #e3dccb;
  --bq-border-strong: #d8d2c2;
  --bq-track: #eeeeee;        /* empty progress / timer track */
  --bq-alert: #9e3b41;        /* last 10 seconds of the timer only */
  --bq-scrim: rgba(17, 17, 17, 0.55);

  /* Type */
  --bq-font-display-ar: "BQ Naskh", "Noto Naskh Arabic", serif;
  --bq-font-display-en: "BQ Caladea", Cambria, Georgia, serif;
  --bq-font-body: "BQ Plex", "Segoe UI", system-ui, sans-serif;
  --bq-size-title: 28px;
  --bq-size-body: 14px;       /* minimum for body copy */
  --bq-size-label: 12px;      /* minimum for anything */
  --bq-size-button: 15px;

  /* Space and shape */
  --bq-space-xs: 8px;
  --bq-space-sm: 12px;
  --bq-space-md: 20px;
  --bq-space-lg: 28px;
  --bq-radius: 0;             /* square corners on cards, tiles, buttons */
  --bq-radius-round: 9999px;  /* star disc and icon discs only */
  --bq-hairline: 1px solid var(--bq-border);
  --bq-tap: 44px;             /* minimum tap target */
  --bq-button-h: 52px;

  /* Motion */
  --bq-flip: 300ms;
  --bq-mismatch-hold: 700ms;
  --bq-celebrate: 1200ms;     /* keep under 1.5s */
}

@media (prefers-reduced-motion: reduce) {
  :root { --bq-flip: 0ms; --bq-celebrate: 0ms; }
}

/* Base helpers */
.bq-sheet { background: var(--bq-surface); color: var(--bq-ink); font-family: var(--bq-font-body);
  font-size: var(--bq-size-body); padding: 16px var(--bq-space-md) calc(var(--bq-space-lg) + env(safe-area-inset-bottom)); }
[dir="rtl"] .bq-title { font-family: var(--bq-font-display-ar); }
[dir="ltr"] .bq-title { font-family: var(--bq-font-display-en); }
.bq-title { font-size: var(--bq-size-title); line-height: 1.3; font-weight: 700; margin: 0; }
.bq-kicker { font-size: var(--bq-size-label); font-weight: 700; letter-spacing: 0.08em; color: var(--bq-gold-deep); }
.bq-btn { height: var(--bq-button-h); width: 100%; border: 0; border-radius: var(--bq-radius);
  background: var(--bq-ink); color: var(--bq-on-ink); font: 700 var(--bq-size-button) var(--bq-font-body); }
.bq-btn-text { min-height: var(--bq-tap); background: none; border: 0; color: var(--bq-text-muted);
  font: 400 var(--bq-size-body) var(--bq-font-body); }
.bq-close { width: var(--bq-tap); height: var(--bq-tap); position: absolute; top: 8px; inset-inline-end: 8px; }
.bq-card { aspect-ratio: 3 / 4; border-radius: var(--bq-radius); }
.bq-card--back { background: var(--bq-ink); }
.bq-card--face { background: var(--bq-surface); border: 1px solid var(--bq-border-strong); }
.bq-card--matched { border: 2px solid var(--bq-gold); background: #f7f3ea; }
.bq-timer { height: 4px; background: var(--bq-track); }
.bq-timer > i { display: block; height: 100%; background: var(--bq-gold); }
.bq-timer.is-low > i { background: var(--bq-alert); }
.bq-reward { background: var(--bq-panel); border: 1px solid var(--bq-border-strong); padding: 18px; }
