:root {
  /* Primary palette */
  --color-primary: #7C3AED;
  --color-primary-light: #A78BFA;
  --color-primary-dark: #5B21B6;
  --color-primary-50: #F5F3FF;
  --color-primary-100: #EDE9FE;
  --color-primary-200: #DDD6FE;
  --color-primary-300: #C4B5FD;
  --color-primary-400: #A78BFA;
  --color-primary-500: #7C3AED;
  --color-primary-600: #6D28D9;
  --color-primary-700: #5B21B6;
  --color-primary-800: #4C1D95;

  /* Secondary / accent */
  --color-secondary: #F97316;
  --color-secondary-light: #FB923C;
  --color-secondary-dark: #EA580C;

  /* Success / Error / Warning */
  --color-success: #10B981;
  --color-success-light: #34D399;
  --color-error: #EF4444;
  --color-error-light: #F87171;
  --color-warning: #F59E0B;
  --color-warning-light: #FBBF24;
  --color-info: #3B82F6;

  /* Backgrounds */
  --bg-app: #FAF5FF;
  --bg-card: #FFFFFF;
  --bg-card-hover: #F5F3FF;
  --bg-overlay: rgba(0, 0, 0, 0.5);
  --bg-input: #F9FAFB;

  /* Text */
  --text-primary: #1F2937;
  --text-secondary: #6B7280;
  --text-muted: #9CA3AF;
  --text-white: #FFFFFF;
  --text-accent: #7C3AED;

  /* Borders */
  --border-color: #E5E7EB;
  --border-light: #F3F4F6;
  --border-focus: #7C3AED;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #7C3AED 0%, #EC4899 100%);
  --gradient-secondary: linear-gradient(135deg, #F97316 0%, #FBBF24 100%);
  --gradient-success: linear-gradient(135deg, #10B981 0%, #34D399 100%);
  --gradient-dark: linear-gradient(135deg, #4C1D95 0%, #7C3AED 100%);
  --gradient-game-bg: linear-gradient(180deg, #FAF5FF 0%, #EDE9FE 100%);

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --shadow-purple: 0 4px 14px rgba(124, 58, 237, 0.3);
  --shadow-orange: 0 4px 14px rgba(249, 115, 22, 0.3);
  --shadow-tile: 0 3px 8px rgba(124, 58, 237, 0.15);
  --shadow-tile-active: 0 1px 3px rgba(124, 58, 237, 0.2);

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;

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

  /* Typography */
  --font-heading: 'Nunito', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;

  /* Z-index */
  --z-base: 1;
  --z-dropdown: 10;
  --z-sticky: 20;
  --z-nav: 30;
  --z-modal: 40;
  --z-toast: 50;
  --z-splash: 100;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
  --transition-bounce: 500ms cubic-bezier(0.68, -0.55, 0.265, 1.55);

  /* Layout */
  --nav-height: 64px;
  --top-bar-height: 56px;
  --content-max-width: 600px;
  --sidebar-width: 0px;
  --safe-area-bottom: env(safe-area-inset-bottom, 0px);
}

/* Tablet */
@media (min-width: 640px) {
  :root {
    --content-max-width: 720px;
    --space-md: 20px;
    --space-lg: 28px;
    --space-xl: 40px;
    --text-base: 1.0625rem;
    --text-lg: 1.25rem;
    --text-xl: 1.375rem;
    --text-2xl: 1.75rem;
    --text-3xl: 2.125rem;
    --text-4xl: 2.625rem;
  }
}

/* Desktop */
@media (min-width: 1024px) {
  :root {
    --content-max-width: 860px;
    --sidebar-width: 260px;
    --nav-height: 0px;
    --top-bar-height: 64px;
  }
}

/* Large desktop */
@media (min-width: 1440px) {
  :root {
    --content-max-width: 960px;
    --sidebar-width: 280px;
  }
}
