/* TCG-442 concept. Tokens: the :root block below is copied verbatim from tcgtrack-web app/styles/tokens.css (TCG-435dd).
   In the real build a small export step generates this file from tokens.css so the two can't drift. */
:root {
  color-scheme: dark;

  /* Surfaces and borders (ComposerColors) */
  --tcg-bg: #09090b;
  --tcg-bg-2: #0d0d10;
  --tcg-surface: #111114;
  --tcg-surface-solid: #1b1b20;
  --tcg-surface-2: #17171b;
  --tcg-surface-hero: #111114;
  --tcg-border: rgba(255, 255, 255, 0.09);
  --tcg-border-hard: rgba(255, 255, 255, 0.18);
  --tcg-white: #ffffff;
  --tcg-black: #000000;

  /* Zinc text scale: z3 = zinc-300 … z9 = zinc-900 */
  --tcg-z3: #d4d4d8;
  --tcg-z4: #a1a1aa;
  /* Informational small text shares the accessible subtle text role; borders stay separate. */
  --tcg-z5: var(--tcg-fg-subtle);
  --tcg-z6: #52525b;
  --tcg-z7: #3f3f46;
  --tcg-z8: #27272a;
  --tcg-z9: #18181b;

  /* Text roles */
  --tcg-fg: #f4f4f5;
  --tcg-fg-muted: #b0b0b8;
  --tcg-fg-subtle: #98989f;
  --tcg-fg-on-light: var(--tcg-bg);

  /* Filled input shell (ComposerFieldFill) */
  --tcg-field-bg: #111114;
  --tcg-field-border: #60606b;

  /* Sheet chrome (ComposerSheet) */
  --tcg-sheet: #151519;
  --tcg-scrim: rgba(0, 0, 0, 0.64);
  --tcg-close-bg: #1b1b20;

  /* Deals look: period pills (DealsHistoryList), skeletons, chrome */
  --tcg-pill-active: #ebebec;
  --tcg-pill: transparent;
  --tcg-pill-border: transparent;
  --tcg-skeleton: #202025;
  --tcg-chrome: #09090b;

  /* Brand mark, the Holo Dog-Ear (TCG-WEB-12; RN components/brand/HoloDogEarMark.tsx and
     assets/brand/*.svg, TCG-425a/425b). The dark-UI variant. A light theme redefines these with
     the light master SVG's values: foil #1d4ed8 #6d28d9 #be185d #b45309 #0e7490, halo transparent,
     arrow #ffffff, arrow tip #0b1020, "TCG" #0b1020, "Track" #2563eb. */
  --tcg-brand-foil-1: #60a5fa;
  --tcg-brand-foil-2: #a78bfa;
  --tcg-brand-foil-3: #f0abfc;
  --tcg-brand-foil-4: #fde68a;
  --tcg-brand-foil-5: #67e8f9;
  --tcg-brand-hairline: #ffffff;
  --tcg-brand-halo: #0b1020;
  --tcg-brand-arrow: #ffffff;
  --tcg-brand-arrow-tip: #ffffff;
  --tcg-brand-tcg: #ffffff;
  --tcg-brand-track: #60a5fa;

  /* Tones (ComposerTones) */
  --tcg-blue: #3b82f6;
  --tcg-blue-bright: #60a5fa;
  --tcg-blue-light: #93c5fd;
  --tcg-blue-tint: rgba(59, 130, 246, 0.08);
  --tcg-blue-border: rgba(59, 130, 246, 0.2);
  --tcg-blue-glow: rgba(59, 130, 246, 0.4);
  --tcg-blue-wash: rgba(59, 130, 246, 0.12);

  --tcg-emerald: #10b981;
  --tcg-emerald-bright: #34d399;
  --tcg-emerald-light: #6ee7b7;
  --tcg-emerald-tint: rgba(16, 185, 129, 0.08);
  --tcg-emerald-border: rgba(16, 185, 129, 0.2);
  --tcg-emerald-glow: rgba(16, 185, 129, 0.4);
  --tcg-emerald-wash: rgba(16, 185, 129, 0.12);

  --tcg-orange: #f97316;
  --tcg-orange-bright: #fb923c;
  --tcg-orange-light: #fdba74;
  --tcg-orange-tint: rgba(249, 115, 22, 0.08);
  --tcg-orange-border: rgba(249, 115, 22, 0.2);
  --tcg-orange-glow: rgba(249, 115, 22, 0.4);
  --tcg-orange-wash: rgba(249, 115, 22, 0.12);

  --tcg-amber: #f59e0b;
  --tcg-amber-bright: #fbbf24;
  --tcg-amber-light: #fde68a;
  --tcg-amber-tint: rgba(245, 158, 11, 0.08);
  --tcg-amber-border: rgba(245, 158, 11, 0.2);
  --tcg-amber-glow: rgba(245, 158, 11, 0.4);
  --tcg-amber-wash: rgba(245, 158, 11, 0.12);

  --tcg-red: #ef4444;
  --tcg-red-bright: #f87171;
  --tcg-red-light: #fca5a5;
  --tcg-red-tint: rgba(239, 68, 68, 0.08);
  --tcg-red-border: rgba(239, 68, 68, 0.2);
  --tcg-red-glow: rgba(239, 68, 68, 0.4);
  --tcg-red-wash: rgba(239, 68, 68, 0.12);

  --tcg-purple: #a855f7;
  --tcg-purple-bright: #c084fc;
  --tcg-purple-light: #d8b4fe;
  --tcg-purple-tint: rgba(168, 85, 247, 0.08);
  --tcg-purple-border: rgba(168, 85, 247, 0.2);
  --tcg-purple-glow: rgba(168, 85, 247, 0.4);
  --tcg-purple-wash: rgba(168, 85, 247, 0.12);

  /* Condition palette (grid conventions): NM emerald, LP lime, MP yellow, HP orange, DMG red */
  --tcg-cond-nm: var(--tcg-emerald-bright);
  --tcg-cond-nm-tint: var(--tcg-emerald-tint);
  --tcg-cond-nm-border: var(--tcg-emerald-border);
  --tcg-cond-lp: #a3e635;
  --tcg-cond-lp-tint: rgba(132, 204, 22, 0.08);
  --tcg-cond-lp-border: rgba(132, 204, 22, 0.2);
  --tcg-cond-mp: #facc15;
  --tcg-cond-mp-tint: rgba(234, 179, 8, 0.08);
  --tcg-cond-mp-border: rgba(234, 179, 8, 0.2);
  --tcg-cond-hp: var(--tcg-orange-bright);
  --tcg-cond-hp-tint: var(--tcg-orange-tint);
  --tcg-cond-hp-border: var(--tcg-orange-border);
  --tcg-cond-dmg: var(--tcg-red-bright);
  --tcg-cond-dmg-tint: var(--tcg-red-tint);
  --tcg-cond-dmg-border: var(--tcg-red-border);

  /* Default action (separate from semantic purchase blue) */
  --tcg-action: #2563eb;
  --tcg-action-hover: #1d4ed8;
  --tcg-on-action: #ffffff;

  /* Art stage, overlays */
  --tcg-art-stage: var(--tcg-bg-2);
  /* Sealed product photos sit on a light grey tile (RN SealedImageTile, zinc-200; TCG-433a), so
     TCGplayer's white photo backgrounds read as the tile instead of a white box on the dark UI. */
  --tcg-sealed-tile: #e4e4e7;
  --tcg-radius-art: 6px;
  /* Circular corners: 4.5% of width on a 5:7 card; trim 1% of each scan edge. */
  --tcg-card-scan-radius: 4.5% / 3.2142857%;
  --tcg-card-scan-scale: 1.02;
  --tcg-shadow-overlay: 0 16px 48px rgba(0, 0, 0, 0.4);

  /* Typography (self-hosted via @fontsource, OFL-1.1) */
  --tcg-font-text: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --tcg-font-display: "Manrope", "Geist", ui-sans-serif, system-ui, sans-serif;

  /* Motion */
  --tcg-ease: cubic-bezier(0.2, 0, 0, 1);

  /* Charts (portfolio and price history) */
  --tcg-chart-market: #e4e7ee;
  --tcg-chart-cost: #e5b85c;
  --tcg-chart-equity: #34d399;
  --tcg-chart-guide: rgba(255, 255, 255, 0.08);
  --tcg-chart-cursor: rgba(255, 255, 255, 0.32);

  /* Design v2 concept surfaces (gallery depth, ledger highlight, art stages) */
  --tcg-art-shadow: 0 10px 16px rgba(0, 0, 0, 0.44);
  --tcg-gallery-shadow: 0 12px 28px rgba(0, 0, 0, 0.38);
  --tcg-gallery-shadow-hover: 0 18px 36px rgba(0, 0, 0, 0.52);
  --tcg-ledger-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.035);
  --tcg-stage-graphite: #202226;
  --tcg-stage-slate: #1a232d;
  --tcg-stage-warm: #28231f;

  /* Keyboard focus */
  --tcg-focus: #93c5fd;

  /* Radii (ComposerRadii r3/r2/r1/rm) */
  --tcg-radius-r3: 16px;
  --tcg-radius-r2: 12px;
  --tcg-radius-r1: 8px;
  --tcg-radius-rm: 4px;
  --tcg-radius-card: var(--tcg-radius-r2);

  /* Shell geometry */
  --tcg-sidebar-width: 232px;
  --tcg-header-height: 64px;
  --tcg-content-max: 1328px;
  /* Top-level pages (Cards, Deals, Events, Trades, Reports, Settings) share this width (TCG-WEB-30, y11-1). */
  --tcg-page-max: 1120px;
  --tcg-bottom-bar-height: 60px;
}
