﻿/* BullXwinkles design tokens.
 *
 * Source of truth: docs/design/design-system/design-tokens.json, the Product Master Developer
 * Package v3.0.0 of 2026-10-08. It consolidates eight screen deliveries into one file and says so
 * itself: "The only active product token source is design-system/design-tokens.json." Its own
 * supersedes list names every local palette it replaces, and docs/supersedes.md names the packages.
 *
 * This is the third palette in a week, which is the argument for the shape below rather than
 * against it: the official values are reproduced verbatim first, and our names are defined in
 * terms of them. The stylesheets only ever use our names, so the next delivery is a change to this
 * file and to the constants in BootstrapBridgeContrastTests, and to nothing else.
 */
:root {
  /* ── v3.0.0, verbatim ────────────────────────────────────────────────────────────────────── */
  --bx-ink-700: #0B2A35;
  --bx-ink-800: #0A2029;
  --bx-ink-900: #07151F;
  --bx-ink-950: #031018;

  --bx-emerald-300: #78F8CA;
  --bx-emerald-400: #4CF5B2;
  --bx-emerald-500: #19E6B0;
  --bx-emerald-600: #0FC895;

  --bx-teal-400: #3CEBD3;
  --bx-teal-500: #00D7B9;
  --bx-teal-600: #00B79F;

  --bx-gold-200: #FFE8A6;
  --bx-gold-300: #F3D58B;
  --bx-gold-400: #E8C36A;
  --bx-gold-500: #D7A62D;

  --bx-purple-500: #7A19BA;
  --bx-purple-700: #3B075E;

  --bx-red-400: #FF6B72;
  --bx-red-500: #ED3D4B;

  --bx-blue-400: #64B9FF;
  --bx-blue-700: #163A68;

  --bx-neutral-100: #E9F5F6;
  --bx-neutral-300: #ABC2C7;
  --bx-neutral-500: #6F8990;

  /* The semantic layer, as the pack defines it. */
  --bx-page: #031018;
  --bx-surface: #07151F;
  --bx-surface-raised: #0A2029;
  --bx-surface-interactive: #0B2A35;
  --bx-text: #FFFFFF;
  --bx-text-muted: #ABC2C7;
  --bx-primary: #19E6B0;
  --bx-primary-hover: #4CF5B2;
  --bx-primary-active: #0FC895;
  --bx-accent: #00D7B9;
  --bx-gold: #E8C36A;
  --bx-success: #19E6B0;
  --bx-warning: #E8C36A;
  --bx-danger: #ED3D4B;
  --bx-info: #64B9FF;
  --bx-border: rgba(25, 230, 176, 0.34);
  --bx-border-strong: rgba(25, 230, 176, 0.64);
  --bx-focus: #4CF5B2;
  --bx-disabled: #6F8990;

  --bx-gradient-primary: linear-gradient(135deg, #4CF5B2 0%, #19E6B0 46%, #00B79F 100%);
  --bx-gradient-primary-dark: linear-gradient(135deg, rgba(25, 230, 176, .28), rgba(0, 183, 159, .12));
  --bx-gradient-gold: linear-gradient(135deg, #FFE8A6 0%, #E8C36A 52%, #D7A62D 100%);
  --bx-gradient-status: linear-gradient(180deg, #7A19BA 0%, #3B075E 100%);
  --bx-gradient-card: linear-gradient(145deg, rgba(10, 32, 41, .96), rgba(3, 16, 24, .94));

  --bx-space-1: 4px;   --bx-space-2: 8px;    --bx-space-3: 12px;  --bx-space-4: 16px;
  --bx-space-5: 20px;  --bx-space-6: 24px;   --bx-space-8: 32px;  --bx-space-10: 40px;
  --bx-space-12: 48px; --bx-space-16: 64px;  --bx-space-20: 80px; --bx-space-24: 96px;

  --bx-radius-xs: 6px;
  --bx-radius-sm: 10px;
  --bx-radius-md: 14px;
  --bx-radius-lg: 20px;
  --bx-radius-xl: 28px;
  --bx-radius-pill: 999px;

  --bx-text-xs: 12px;  --bx-text-sm: 14px;  --bx-text-md: 16px;  --bx-text-lg: 18px;
  --bx-text-xl: 20px;  --bx-text-2xl: 24px; --bx-text-3xl: 32px; --bx-text-4xl: 40px;
  --bx-text-5xl: 56px;

  --bx-shadow-card: 0 14px 40px rgba(0, 0, 0, .34);
  --bx-shadow-glow: 0 0 18px rgba(25, 230, 176, .16);
  --bx-shadow-focus: 0 0 0 3px rgba(76, 245, 178, .38);
  --bx-shadow-gold-glow: 0 0 10px rgba(232, 195, 106, .88), 0 0 28px rgba(232, 195, 106, .42);
  --bx-shadow-play: 0 0 0 2px rgba(255, 232, 166, .92), 0 0 18px rgba(232, 195, 106, .72),
                    0 0 34px rgba(25, 230, 176, .54);

  --bx-motion-fast: 120ms;
  --bx-motion-normal: 200ms;
  --bx-motion-slow: 320ms;
  --bx-ease: cubic-bezier(.2, .8, .2, 1);

  /* ── Our names, in terms of the above ────────────────────────────────────────────────────── */
  --bx-bg-950: var(--bx-page);
  --bx-bg-900: var(--bx-surface);
  --bx-bg-850: var(--bx-surface-raised);
  --bx-panel: var(--bx-surface-raised);
  --bx-panel-solid: var(--bx-surface-raised);

  /* The accent green. The pack's "primary" is emerald-500; the brighter 400 is its hover and its
     focus ring, so 500 is the one that carries meaning at rest. */
  --bx-teal: var(--bx-primary);
  --bx-teal-border: var(--bx-border);
  --bx-teal-ink: var(--bx-page);
  /* The ink on a lit fill. v3 has no named token for it; the page colour is what the pack's own
     components.css puts on the primary gradient. */
  --bx-text-dark: var(--bx-page);

  --bx-gold-bright: var(--bx-gold-300);

  /* The pack has two text colours. --bx-text-2 is kept because a great many rules name it. */
  --bx-text-2: var(--bx-text-muted);

  /* Error text, and not the same token as the fill. --bx-danger (#ED3D4B) is a destructive
     BUTTON's background with light ink on it; as a LABEL it measures 4.29:1 on the raised surface
     and 4.33:1 on the light end of the card gradient, both short of AA. The pack already carries
     the lifted red this needs — red-400 — which reaches 6.07:1 on the same surfaces, so unlike the
     previous palette this split costs nothing invented. */
  --bx-danger-text: var(--bx-red-400);

  /* "No account yet" and its kin: an absence rather than a fact about the player. The pack has no
     equivalent, so this is the one colour here not drawn from it. */
  --bx-text-absent: #C3C2E8;

  --bx-r-control: var(--bx-radius-sm);
  --bx-r-card: var(--bx-radius-md);
  --bx-r-panel: var(--bx-radius-lg);
  --bx-r-pill: var(--bx-radius-pill);

  --bx-shadow-panel: var(--bx-shadow-card);
  --bx-glow-teal: var(--bx-shadow-glow);
  --bx-glow-green: var(--bx-shadow-glow);
  --bx-glow-gold: var(--bx-shadow-gold-glow);
  --bx-gradient-panel: var(--bx-gradient-card);
  --bx-gradient-legend: var(--bx-gradient-status);

  --bx-t-fast: var(--bx-motion-fast);
  --bx-t-base: var(--bx-motion-normal);

  /* Layers, lowest to highest (docs/design/canvas/dialogs/DialogSystem "Layers"). Nothing else on
     the site should invent a z-index: pick the layer it belongs to. */
  --bx-z-sticky: 20;
  --bx-z-overlay: 50;
  --bx-z-dialog: 100;
  --bx-z-toast: 120;
  --bx-z-loader: 130;

  /* Dialogs (BxDialog). The pack has none of these; every value is sampled from the approved
     DialogSystem / TopUpDialogPhone / SupportChatDialog renders. */
  --bx-backdrop: rgba(0, 0, 0, .72);      /* centred dialog: page dimmed and blurred */
  --bx-veil: rgba(0, 0, 0, .4);           /* corner sheet: the page stays readable */
  --bx-divider: rgba(25, 230, 176, .18);  /* header/footer rules inside a dialog */
  --bx-text-soft: #DCE9EB;                /* dialog body copy, between --bx-text and muted */
  --bx-warning-tint: rgba(232, 195, 106, .12);  /* badge fill, over --bx-surface */
  --bx-warning-edge: rgba(232, 195, 106, .55);  /* badge border */
  --bx-handle: rgba(171, 194, 199, .4);   /* phone sheet grab handle */
  --bx-shadow-sheet: 0 -14px 40px rgba(0, 0, 0, .34);

  /* Toasts and the inline confirm (BxToast, BxConfirm), sampled from the DialogSystem "Toasts" and
     AdminDialogs "Inline confirm" renders. Warning reuses --bx-warning-tint/-edge above (the render's
     .10/.50 against .12/.55: not a visible difference). */
  --bx-success-tint: rgba(25, 230, 176, .1);
  --bx-success-edge: rgba(25, 230, 176, .45);   /* also the inline confirm's border */
  --bx-info-tint: rgba(100, 185, 255, .1);
  --bx-info-edge: rgba(100, 185, 255, .45);
  --bx-danger-tint: rgba(237, 61, 75, .12);
  --bx-danger-edge: rgba(237, 61, 75, .55);

  /* Top Up dialog and status page, sampled from the TopUpDialog / TopUpDialogPhone / TopUpStatus
     renders (docs/design/canvas/dialogs). */
  --bx-control-bg: rgba(3, 16, 24, .6);          /* unselected tile, chip */
  --bx-control-edge: rgba(171, 194, 199, .3);    /* their border; also the "$" rule and summary divider */
  --bx-selected-tint: rgba(25, 230, 176, .14);   /* selected method tile */
  --bx-shadow-selected: 0 0 14px rgba(25, 230, 176, .3);
  --bx-chip-on-bg: #C9FBE6;                      /* selected amount chip */
  --bx-chip-on-ink: #03231B;
  --bx-input-active-bg: rgba(6, 40, 36, .7);     /* the amount field */
  --bx-step-edge: rgba(171, 194, 199, .6);       /* step circle not reached yet */
  --bx-step-track: rgba(171, 194, 199, .4);      /* step connector not reached yet */
  --bx-step-glow: 0 0 16px rgba(60, 235, 211, .6);
  --bx-qr-bg: #FFFFFF;                           /* a QR code needs a white quiet zone */

  --bx-container: 1240px;
  --bx-gutter: clamp(16px, 4vw, 32px);
  --bx-header-h: 76px;
  --bx-font: Montserrat, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

@media (max-width: 767px) {
  :root { --bx-header-h: 68px; }
}

@media (prefers-reduced-motion: reduce) {
  :root { --bx-t-fast: 0ms; --bx-t-base: 0ms; }
}
