/* RugPullRadar design tokens: Sigma Maze Labs palette.
   Values taken from sigmamazelabs.com's stylesheet.
   One change: light --danger is #C81E30 (Sigma uses #E0263A) so small red text passes 4.5:1. */

/* Fonts are served from this site (no requests to Google or other third parties; GDPR). All SIL Open Font License. */
@font-face { font-family: "Inter"; font-weight: 400; font-style: normal; font-display: swap; src: url("/static/fonts/Inter-400.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-style: normal; font-display: swap; src: url("/static/fonts/Inter-500.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-style: normal; font-display: swap; src: url("/static/fonts/Inter-600.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 400; font-style: normal; font-display: swap; src: url("/static/fonts/JetBrainsMono-400.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 500; font-style: normal; font-display: swap; src: url("/static/fonts/JetBrainsMono-500.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-weight: 500; font-style: normal; font-display: swap; src: url("/static/fonts/SpaceGrotesk-500.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-weight: 600; font-style: normal; font-display: swap; src: url("/static/fonts/SpaceGrotesk-600.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-weight: 700; font-style: normal; font-display: swap; src: url("/static/fonts/SpaceGrotesk-700.woff2") format("woff2"); }

:root {
  color-scheme: light;
  --bg: #F5F5F0;
  --surface: #FFFFFF;
  --surface-2: #EFEFE9;
  --text: #0D0F14;
  --text-2: #4A4F5C;
  --muted: #6B707C;
  --accent: #1A5FD0;
  --accent-ink: #FFFFFF;
  --accent-soft: rgba(26, 95, 208, 0.08);
  /* Chain colours are each brand's own (2.4.0), the same in both themes. Some are too light for a light page
     (Robin Neon, BNB yellow, Hyperliquid mint) or too dark for a dark one (Base blue), so every chain dot, bar
     and line is drawn with a thin --chain-edge outline in the theme's text colour instead of altering the colour. */
  --violet: #9945FF;          /* Solana: Solana purple */
  --rh: #CCFF00;              /* Robinhood Chain: Robin Neon (Robinhood Chain brand guidelines) */
  --ely: #97FCE4;             /* Elysium: Hyperliquid mint (the chain is built on HyperEVM; Montra's gold would clash with BNB) */
  --eth: #627EEA;             /* Ethereum: Ethereum blue-violet */
  --base: #0000FF;            /* Base: Base Blue (docs.base.org) */
  --bsc: #F0B90B;             /* BNB Chain: BNB yellow */
  --chain-edge: rgba(13, 15, 20, 0.55);
  --live: #11804F;
  --live-soft: rgba(17, 128, 79, 0.18);
  --danger: #C81E30;          /* use sparingly: price-drop line, "confirmed" */
  --grid: rgba(13, 15, 20, 0.07);
  --grid-strong: rgba(13, 15, 20, 0.14);
  --grid-line: rgba(13, 15, 20, 0.035);
  --glow-1: rgba(123, 63, 228, 0.07);
  --glow-2: rgba(26, 95, 208, 0.06);
  --shade: rgba(245, 245, 240, 0.94);
  --shadow: 0 1px 2px rgba(13, 15, 20, 0.04), 0 10px 30px rgba(13, 15, 20, 0.06);

  --display: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --radius: 0;         /* cards, table: square corners everywhere since 0.29.5 */
  --radius-sm: 0;      /* buttons, inputs, notices */
  --radius-pill: 0;    /* chips, bars, badges: square too */
  --ease: cubic-bezier(.2, .8, .2, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #05060A; --surface: #0D0F16; --surface-2: #141722;
    --text: #F4F5F7; --text-2: #A7ACBA; --muted: #7A808F;
    --accent: #3D8BFF; --accent-ink: #05060A; --accent-soft: rgba(61, 139, 255, 0.10);
    --violet: #9945FF; --rh: #CCFF00; --ely: #97FCE4; --eth: #627EEA; --base: #0000FF; --bsc: #F0B90B; --chain-edge: rgba(244, 245, 247, 0.55); --live: #3DDC97; --live-soft: rgba(61, 220, 151, 0.2);
    --danger: #FF4D5E;
    --grid: rgba(244, 245, 247, 0.07); --grid-strong: rgba(244, 245, 247, 0.14); --grid-line: rgba(244, 245, 247, 0.035);
    --glow-1: rgba(157, 92, 255, 0.14); --glow-2: rgba(61, 139, 255, 0.10);
    --shade: rgba(5, 6, 10, 0.88);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 30px rgba(0, 0, 0, 0.35);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #05060A; --surface: #0D0F16; --surface-2: #141722;
  --text: #F4F5F7; --text-2: #A7ACBA; --muted: #7A808F;
  --accent: #3D8BFF; --accent-ink: #05060A; --accent-soft: rgba(61, 139, 255, 0.10);
  --violet: #9945FF; --rh: #CCFF00; --ely: #97FCE4; --eth: #627EEA; --base: #0000FF; --bsc: #F0B90B; --chain-edge: rgba(244, 245, 247, 0.55); --live: #3DDC97; --live-soft: rgba(61, 220, 151, 0.2);
  --danger: #FF4D5E;
  --grid: rgba(244, 245, 247, 0.07); --grid-strong: rgba(244, 245, 247, 0.14); --grid-line: rgba(244, 245, 247, 0.035);
  --glow-1: rgba(157, 92, 255, 0.14); --glow-2: rgba(61, 139, 255, 0.10);
  --shade: rgba(5, 6, 10, 0.88);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 30px rgba(0, 0, 0, 0.35);
}

/* Page ground: grid + two soft glows, as on sigmamazelabs.com */
body {
  margin: 0;
  background-color: var(--bg);
  background-image:
    radial-gradient(1100px 600px at 85% -10%, var(--glow-1), transparent 60%),
    radial-gradient(900px 520px at -10% 105%, var(--glow-2), transparent 60%),
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: auto, auto, 48px 48px, 48px 48px;
  color: var(--text);
  font: 400 15px/1.5 var(--body);
}
