/*
 * Tokens de design da Mini App (spec 006, contracts/ui-screens.md). ÚNICO lugar com valores brutos de cor,
 * raio, espaço, tipografia e movimento: os demais arquivos só usam var(--…).
 * Tema escuro fixo, derivado da marca (azul-marinho + ciano/azul/violeta neon).
 */
:root {
  color-scheme: dark;

  /* Cores */
  --bg: #06101f;
  --surface: #0b1a33;
  --surface-2: #102447;
  --surface-3: #16305c;
  --border: #1d3a6b;
  --border-soft: #14284a;
  --text: #eef4ff;
  --text-2: #9db4d6;
  --text-3: #7f97bd;
  --accent: #22d3ee;
  --accent-strong: #67e8f9;
  --blue: #3b82f6;
  --violet: #8b5cf6;
  --positive: #34d399;
  --positive-bg: #0c2a24;
  --warning: #fbbf24;
  --warning-bg: #2e2508;
  --danger: #f87171;
  --danger-bg: #31141a;
  --on-accent: #04101c;
  --scrim: rgba(3, 8, 18, 0.72);

  /* Gradiente da marca (ciano → azul → violeta) */
  --grad: linear-gradient(135deg, #22d3ee 0%, #3b82f6 55%, #8b5cf6 100%);
  --grad-ring: conic-gradient(from 0deg, #22d3ee, #3b82f6, #8b5cf6, #22d3ee);
  --grad-ring-hover: conic-gradient(from 0deg, #67e8f9, #60a5fa, #a78bfa, #67e8f9);
  --grad-surface: linear-gradient(160deg, #0f2347 0%, #0b1a33 100%);
  --grad-cta-inner: linear-gradient(180deg, #0f2a55 0%, #0a1d3d 100%);
  --grad-cta-inner-active: linear-gradient(180deg, #0a2147 0%, #071632 100%);

  /* Forma */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-pill: 999px;
  --shadow-card: 0 6px 20px rgba(2, 6, 16, 0.45);
  --shadow-pop: 0 12px 32px rgba(2, 6, 16, 0.6);
  --ring-width: 2px;

  /* Espaço (escala 4/8/12/16/24/32) */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --gutter: 16px;
  --tap: 44px;

  /* Tipografia: pilha do sistema; corpo ≥ 14 px */
  --font: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --fs-body: 15px;
  --fs-small: 14px;
  --fs-title: 20px;
  --fs-heading: 24px;
  --fs-price: 26px;
  --lh-body: 1.45;
  --lh-tight: 1.2;

  /* Movimento */
  --ring-duration: 7s;
  --t-fast: 150ms;

  /* Áreas seguras (preenchidas por telegram.ts; fallback para env()) */
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --app-height: 100dvh;
}
