/* LevelUp · tokens de diseño (design.md 2.1–2.6). Ningún componente usa colores fijos. */
@font-face { font-family: "Inter"; font-weight: 400; font-style: normal; font-display: swap; src: url("/lib/fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-style: normal; font-display: swap; src: url("/lib/fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-style: normal; font-display: swap; src: url("/lib/fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 700; font-style: normal; font-display: swap; src: url("/lib/fonts/inter-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-weight: 500; font-style: normal; font-display: swap; src: url("/lib/fonts/space-grotesk-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-weight: 700; font-style: normal; font-display: swap; src: url("/lib/fonts/space-grotesk-latin-700-normal.woff2") format("woff2"); }

:root, [data-theme="light"] {
  color-scheme: light;
  --bg: #F5F6F8;
  --card: #FFFFFF;
  --card-border: #E3E6EC;
  --card-shadow: 0 1px 2px rgba(20,22,28,.06);
  --surface: #FFFFFF;          /* barra inferior y hojas */
  --surface-border: #E3E6EC;
  --border-strong: #CBD0D9;
  --text: #14161C;
  --text-body: #3D4250;
  --text-muted: #6B7280;
  --accent: #C6F432;
  --accent-ink: #14161C;
  --accent-text: #4A7A00;
  --accent-soft: #EEF8D0;
  --done-bg: #F3FBDD;
  --done-border: #B9DC5A;
  --streak: #FFB547;
  --streak-text: #A35F00;
  --streak-bg: #FFF4DE;
  --streak-border: #F5D399;
  --error: #D93A3A;
  --error-bg: #FDECEC;
  --track: #E3E6EC;
  --chip-bg: #F5F6F8;
  --scrim: rgba(20,22,28,.4);
  --day-perfect: #C6F432;
  --day-partial: #E2F2B0;
  --day-missed: #D5D9E0;
  --day-free: #EEF0F3;
  --day-future: #E3E6EC;
  --day-ring: #14161C;
  --locked-opacity: .45;

  --c1: #3B6FE0; --c1-bg: #E6EDFF;
  --c2: #5E8C00; --c2-bg: #EEF8D0;
  --c3: #E0622E; --c3-bg: #FFEDE5;
  --c4: #14A394; --c4-bg: #DDF6F3;
  --c5: #8B5CF6; --c5-bg: #F0E9FF;
  --c6: #C97C00; --c6-bg: #FFF3DC;
  --c7: #E0457F; --c7-bg: #FFE6F0;
  --c8: #1C9CC4; --c8-bg: #E0F5FC;
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0F1117;
  --card: #1A1D27;
  --card-border: #2A2E3B;
  --card-shadow: none;
  --surface: #13151D;
  --surface-border: #2A2E3B;
  --border-strong: #3A3F4E;
  --text: #F2F3F7;
  --text-body: #C9CDD6;
  --text-muted: #9AA0B0;
  --accent: #C6F432;
  --accent-ink: #14161C;
  --accent-text: #C6F432;
  --accent-soft: #283014;
  --done-bg: #171B14;
  --done-border: #4A5A1E;
  --streak: #FFB547;
  --streak-text: #FFB547;
  --streak-bg: #2A2012;
  --streak-border: #5A4220;
  --error: #FF6B6B;
  --error-bg: #2E1618;
  --track: #2A2E3B;
  --chip-bg: #232734;
  --scrim: rgba(0,0,0,.55);
  --day-perfect: #C6F432;
  --day-partial: #6B7A2A;
  --day-missed: #3A3F4E;
  --day-free: #1A1D27;
  --day-future: #2A2E3B;
  --day-ring: #F2F3F7;
  --locked-opacity: .35;

  --c1: #7AA2FF; --c1-bg: #1C2440;
  --c2: #C6F432; --c2-bg: #283014;
  --c3: #FF8A5B; --c3-bg: #3A2218;
  --c4: #4FD1C5; --c4-bg: #163330;
  --c5: #C79BFF; --c5-bg: #2A1E3A;
  --c6: #FFB547; --c6-bg: #2A2012;
  --c7: #FF7AB6; --c7-bg: #3A1A2B;
  --c8: #9FE7FF; --c8-bg: #132B33;
}

:root {
  --font-ui: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --r-card: 16px;
  --r-icon: 12px;
  --r-input: 14px;
  --r-pill: 999px;
  --pad: 20px;
  --gap: 12px;
  --maxw: 480px;
  --nav-h: 64px;
  --ease-pop: cubic-bezier(.34,1.56,.64,1);
}
