/* YPL design tokens — the single source for colors, type, spacing, radius and motion.
   Every screen reads from here; never hard-code a value in a component. */
@font-face { font-family: "YPL Sans"; src: url("../fonts/thmanyahsans-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "YPL Sans"; src: url("../fonts/thmanyahsans-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "YPL Sans"; src: url("../fonts/thmanyahsans-Black.woff2") format("woff2"); font-weight: 900; font-display: swap; }
/* Al-Masmak (Ministry of Culture): one bold weight, used for headings, scores and numbers. */
@font-face { font-family: "YPL Display"; src: url("../fonts/almasmak.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  /* surfaces, deepest first */
  --bg-0: #08080A;
  --bg-1: #111012;
  --surface-1: #17151A;
  --surface-2: #1F1C21;
  --line: rgba(240, 217, 138, .10);
  --line-strong: rgba(240, 217, 138, .22);

  /* gold */
  --gold-700: #8E7F2E;
  --gold-500: #C4A741;
  --gold-300: #F0D98A;
  --gold-grad: linear-gradient(135deg, #8E7F2E 0%, #C4A741 45%, #F0D98A 100%);
  --gold-btn: linear-gradient(180deg, #E6CC6E 0%, #C4A741 100%);
  --on-gold: #1A1406;

  /* maroon */
  --maroon-900: #3A0709;
  --maroon-700: #5A0E12;
  --maroon-grad: radial-gradient(120% 80% at 100% 0%, #5A0E12 0%, #3A0709 40%, transparent 75%);

  /* text: warm ivory, never pure white */
  --text-1: #F4EFE3;
  --text-2: rgba(244, 239, 227, .66);
  --text-3: rgba(244, 239, 227, .42);

  /* states */
  --live: #FF4D4F;
  --win: #3DD68C;
  --draw: #9A958A;
  --loss: #E5484D;
  --yellow-card: #F5C518;
  --red-card: #E5484D;

  /* type */
  --font: "YPL Sans", Tahoma, system-ui, sans-serif;
  --font-display: "YPL Display", "YPL Sans", Tahoma, sans-serif;
  --fs-score: 56px;
  --fs-stat: 40px;
  --fs-screen: 28px;
  --fs-section: 20px;
  --fs-card: 16px;
  --fs-body: 15px;
  --fs-label: 12px;

  /* spacing (4-based) */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 20px; --s-6: 24px; --s-8: 32px; --s-10: 40px; --s-14: 56px;
  --page-x: 16px;

  /* radius */
  --r-badge: 8px; --r-btn: 12px; --r-card: 16px; --r-hero: 24px; --r-pill: 999px;

  /* depth */
  --edge: inset 0 0 0 1px var(--line);
  --edge-strong: inset 0 0 0 1px var(--line-strong);
  --drop: 0 12px 32px rgba(0, 0, 0, .55);
  --glow: 0 0 24px rgba(196, 167, 65, .25);
  --glass: rgba(8, 8, 10, .72);

  /* motion */
  --dur-1: 120ms; --dur-2: 200ms; --dur-3: 320ms; --dur-4: 600ms;
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --ease-emph: cubic-bezier(.3, 0, 0, 1);
  --stagger: 35ms;

  /* layout */
  --max: 520px;
  --nav-h: 64px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; transition-duration: 1ms !important; }
}
