/* Coinz Market sweeps-casino theme
   Derived from coinz.us live brand: deep navy base, magenta logo accent,
   yellow/green coin denominations, red CTAs */

:root {
  /* Colors — base */
  --color-bg: #061236;
  --color-bg-deep: #030a22;
  --color-surface: #0e1c4a;
  --color-surface-2: #142664;
  --color-surface-3: #1b3185;
  --color-border: #2a3f7a;
  --color-border-soft: rgba(255, 255, 255, 0.08);

  /* Text */
  --color-text: #ffffff;
  --color-text-muted: #8a9bcb;
  --color-text-dim: #5a6a9a;

  /* Brand */
  --color-magenta: #ff2bd6;
  --color-magenta-glow: #ff5ce0;
  --color-cyan: #2bd6ff;
  --color-purple: #a070ff;

  /* Coin denominations */
  --color-gc: #ffd633;       /* gold coin yellow */
  --color-gc-glow: #ffe88f;
  --color-sc: #3aff8a;        /* sweep coin green */
  --color-sc-glow: #7fffba;

  /* Status / market signals */
  --color-up: #3aff8a;
  --color-up-bg: rgba(58, 255, 138, 0.12);
  --color-down: #ff5577;
  --color-down-bg: rgba(255, 85, 119, 0.12);
  --color-flat: #8a9bcb;
  --color-hot: #ff7a1a;
  --color-hot-glow: #ffaa55;
  --color-danger: #ff3355;

  /* CTAs (legacy magenta — used in Variants A & B) */
  --color-cta: #ff2b5e;
  --color-cta-hover: #ff547a;
  --color-cta-glow: rgba(255, 43, 94, 0.4);

  /* Purchase CTA (Variant C — Chris's hard requirement: blue) */
  --color-purchase: #1e88ff;
  --color-purchase-hover: #46a0ff;
  --color-purchase-glow: rgba(30, 136, 255, 0.45);

  /* Typography */
  --font-display: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Menlo, monospace;
  --text-xs: 0.6875rem;
  --text-sm: 0.8125rem;
  --text-base: 0.9375rem;
  --text-md: 1.0625rem;
  --text-lg: 1.25rem;
  --text-xl: 1.5rem;
  --text-2xl: 2rem;
  --text-3xl: 2.5rem;

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;

  /* Shapes */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Shadows / glows */
  --shadow-card: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-hero: 0 10px 30px rgba(255, 43, 214, 0.25);
  --glow-cta: 0 0 18px var(--color-cta-glow);
  --glow-hot: 0 0 24px rgba(255, 122, 26, 0.5);
  --glow-up: 0 0 16px rgba(58, 255, 138, 0.5);
}

/* Reset */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background:
    radial-gradient(ellipse at top, var(--color-surface) 0%, var(--color-bg) 40%, var(--color-bg-deep) 100%);
  color: var(--color-text);
  font-family: var(--font-display);
  font-size: var(--text-base);
  min-height: 100vh;
  overflow-x: hidden;
}

/* When the prototype-tools toolbar is on the page, give it its own
   column on the right so it never overlaps page content. */
body:has(#prototype-tools) { padding-right: 140px; }
@media (max-width: 900px) {
  body:has(#prototype-tools) { padding-right: 0; }
}

button { font-family: inherit; cursor: pointer; }

/* ───────────────────────────────────────────────────────────────────────
   PROTOTYPE TOOLS — dev/review chrome (Viewport switcher, Overview tab)
   Vertical strip anchored to the right edge, centered. Always visible
   so reviewers don't miss it. Drop this markup into any prototype:
     <div id="prototype-tools" data-controller="viewport">
       <span class="label">Viewport</span>
       <button data-action="click->viewport#set" data-viewport-width-param="full" class="active">Desktop</button>
       …
       <span class="divider"></span>
       <button data-action="click->docs#show">Overview</button>
     </div>
   ─────────────────────────────────────────────────────────────────────── */
#prototype-tools {
  position: fixed; top: 50%; right: 14px; z-index: 9999;
  transform: translateY(-50%);
  font-family: system-ui; font-size: 13px;
  background: rgba(0, 0, 0, 0.82); color: white;
  padding: 14px 12px; border-radius: 14px;
  display: flex; flex-direction: column; gap: 8px;
  align-items: stretch;
  backdrop-filter: blur(8px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
#prototype-tools .label {
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase; letter-spacing: 0.10em;
  font-size: 10px; text-align: center;
  margin-bottom: 2px;
}
#prototype-tools button {
  background: rgba(255, 255, 255, 0.08); color: white;
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 9px 16px; border-radius: 8px; font-size: 13px;
  font-family: inherit;
  min-width: 96px; text-align: center;
  transition: all 0.15s ease;
}
#prototype-tools button:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.32);
}
#prototype-tools button.active {
  background: rgba(58, 255, 138, 0.20);
  border-color: rgba(58, 255, 138, 0.60);
  color: #3aff8a;
}
#prototype-tools .divider {
  height: 1px; width: 100%;
  background: rgba(255, 255, 255, 0.15);
  margin: 4px 0;
}
