/*
 * BrickLoot brand tokens. design/brand-tokens.md is the single source of truth —
 * change values there first, then mirror them here, in the iOS asset catalog,
 * and in Android ui/theme/Color.kt in the same commit.
 *
 * Usage rules R1–R7/Y3/W8 (see the table) apply: brand red/yellow are identity
 * colors only; interaction uses --bl-primary; --bl-brand-yellow never carries
 * text and never sits on light surfaces.
 */
:root {
  color-scheme: light dark;

  --bl-brand-red: #F20101;
  --bl-brand-yellow: #FBD303;
  --bl-primary: #C4130D;
  --bl-on-primary: #FFFFFF;
  --bl-primary-container: #FFDAD6;
  --bl-on-primary-container: #410002;
  --bl-highlight: #FFF3C4;
  --bl-background: #FAFAFA;
  --bl-surface: #FFFFFF;
  --bl-surface-alt: #F4F4F4;
  --bl-text-primary: #1A1A1A;
  --bl-text-secondary: #5C5C5C;
  --bl-outline: #757575;
  --bl-success: #157A38;
  --bl-error: #B3261E;
  --bl-warning: #6E5000;
  --bl-price-up: #157A38;
  --bl-price-down: #B3261E;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bl-primary: #FF6B62;
    --bl-on-primary: #1A1A1A;
    --bl-primary-container: #93000A;
    --bl-on-primary-container: #FFDAD6;
    /* --bl-highlight is not redefined: no dark value in the token table —
       dark-mode deal badges are outlined chips (spec 3.C). */
    --bl-background: #1A1A1A;
    --bl-surface: #242424;
    --bl-surface-alt: #2E2E2E;
    --bl-text-primary: #EDEDED;
    --bl-text-secondary: #B3B3B3;
    --bl-outline: #8A8A8A;
    --bl-success: #6FD388;
    --bl-error: #FFB4AB;
    --bl-warning: #E8C547;
    --bl-price-up: #6FD388;
    --bl-price-down: #FFB4AB;
  }
}
