/**
 * Apple Design System Tokens
 * Conforming to WWDC fluid interface principles and macOS/iOS HIG
 */

:root {
  /* Color Palette - Apple Luxury Dark Studio & Velvet Felt */
  --bg-primary: #0a0c10;
  --bg-secondary: #12151c;
  --bg-tertiary: #1b202c;
  --bg-elevated: rgba(28, 33, 46, 0.72);
  
  /* Glass Materials */
  --glass-bg: rgba(24, 28, 40, 0.65);
  --glass-bg-subtle: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-border-specular: rgba(255, 255, 255, 0.22);
  --glass-shadow: 0 16px 40px -8px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.08);
  --glass-shadow-lg: 0 24px 60px -12px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.12);

  /* Accents */
  --apple-blue: #0a84ff;
  --apple-blue-glow: rgba(10, 132, 255, 0.35);
  --apple-green: #30d158;
  --apple-green-glow: rgba(48, 209, 88, 0.35);
  --apple-red: #ff453a;
  --apple-orange: #ff9f0a;
  --apple-purple: #bf5af2;
  --apple-gold: #ffd60a;
  --apple-gold-glow: rgba(255, 214, 10, 0.35);

  /* Table Felts */
  --felt-green: radial-gradient(circle at 50% 45%, #184832 0%, #0d281b 70%, #081a11 100%);
  --felt-velvet: radial-gradient(circle at 50% 45%, #2a1538 0%, #170b20 70%, #0c0512 100%);
  --felt-midnight: radial-gradient(circle at 50% 45%, #152238 0%, #0d1624 70%, #060a12 100%);

  /* Chess Boards */
  --chess-light: #e8ecf2;
  --chess-dark: #4a5568;
  --chess-walnut-light: #ece0d1;
  --chess-walnut-dark: #967259;
  --chess-highlight: rgba(255, 214, 10, 0.45);
  --chess-last-move: rgba(48, 209, 88, 0.35);

  /* Typography */
  --font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  --font-mono: "SF Mono", "JetBrains Mono", Consolas, monospace;

  /* Spring Physics Timings & Easings */
  --spring-ease: cubic-bezier(0.25, 1, 0.5, 1);
  --spring-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-fast: 120ms var(--spring-ease);
  --transition-normal: 240ms var(--spring-ease);
  --transition-spring: 380ms var(--spring-bounce);

  /* Elevation Radii */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 9999px;
}

/* Reduced Motion Override */
@media (prefers-reduced-motion: reduce) {
  :root {
    --transition-fast: 0.01ms !important;
    --transition-normal: 0.01ms !important;
    --transition-spring: 0.01ms !important;
  }
}
