/* =====================================================================
   NASA Renewal · Design Tokens
   Source of truth: styles/tokens.css
   Loaded by every app screen so token edits propagate everywhere.
   No-stroke rule: border tokens kept for legacy refs only.
   ===================================================================== */

:root {
  /* ---------- Background ---------- */
  --bg-primary: #08090c;
  --bg-section: #0e1016;
  --bg-frame: #000;
  --bg-ui: #1a1d23;
  --bg-ui-active: #252830;

  /* ---------- Surface scale (면+여백 위계) ---------- */
  --surface-1: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.07);
  --surface-3: rgba(255, 255, 255, 0.16);
  /* Legacy aliases — kept so existing card rules still resolve */
  --bg-card: var(--surface-1);
  --bg-card-strong: var(--surface-2);

  /* ---------- Border (legacy; no-stroke rule still applies) ---------- */
  --border: rgba(255, 255, 255, 0.10);
  --border-strong: rgba(255, 255, 255, 0.18);

  /* ---------- Text ---------- */
  --text-primary: #ffffff;
  --text-95: rgba(255, 255, 255, 0.95);
  --text-85: rgba(255, 255, 255, 0.85);
  --text-muted: rgba(255, 255, 255, 0.65);
  --text-subtle: rgba(255, 255, 255, 0.56);
  --text-faint: rgba(255, 255, 255, 0.40);
  --text-28: rgba(255, 255, 255, 0.28);

  /* ---------- Accent / status ---------- */
  --accent: #D92906;
  --accent-rgb: 217, 41, 6;
  --live: #D92906;
  --success: #4ADE80;
  --warning: #FBBF24;

  /* ---------- Radius (5단 + semantic aliases) ---------- */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --radius-chip: var(--radius-xs);
  --radius-card: var(--radius-md);
  --radius-panel: 16px;

  /* ---------- Type scale ---------- */
  --fs-10: 10px; --fs-11: 11px; --fs-12: 12px; --fs-13: 13px;
  --fs-14: 14px; --fs-16: 16px; --fs-18: 18px; --fs-20: 20px;
  --fs-22: 22px; --fs-24: 24px; --fs-28: 28px; --fs-32: 32px;
  --fs-40: 40px; --fs-64: 64px;

  /* ---------- Spacing ---------- */
  --space-screen-x: 20px;
  --space-section: 64px;

  /* ---------- State ---------- */
  --focus-ring: rgba(255, 255, 255, 0.88);
  --state-hover: rgba(255, 255, 255, 0.08);
  --state-pressed: rgba(255, 255, 255, 0.12);
  --scrim: rgba(0, 0, 0, 0.60);

  /* ---------- Motion ---------- */
  --motion-fast: 0.15s ease;
  --motion-press: 0.12s ease;
}
