/* =====================================================================
   SEGUNDO VOLANTE — Design tokens (v1, mockup)
   ทุกค่าที่เป็นสี/ตัวอักษร/ระยะ/มุม/เงา ต้องมาจากไฟล์นี้เท่านั้น
   components.css และหน้าเกมห้ามใส่ค่า hex/px ลอย ๆ ยกเว้นขนาดเฉพาะของ layout
   ===================================================================== */

@font-face {
  font-family: "SV Display";
  src: url("../../assets/fonts/Oswald.woff2") format("woff2");
  font-weight: 200 700;
  font-display: swap;
}

:root {
  /* ---------- Brand palette (primitive) ---------- */
  --navy-950: #071a2a;
  --navy-900: #0b2335;
  --navy-800: #102b40;
  --navy-700: #17394f;
  --navy-600: #24506b;
  --slate-500: #4c6577;
  --slate-400: #8399a8;
  --slate-300: #b9c8d2;
  --slate-200: #d9e4ea;
  --slate-100: #ebf1f4;
  --slate-50:  #f4f8fa;
  --white:     #ffffff;

  --cyan-600: #006f83;
  --cyan-500: #14b8cb;
  --cyan-400: #22c9db;
  --cyan-100: #dcf5f8;

  --green-600: #0b7650;
  --green-100: #ddf3e8;
  --amber-600: #86580d;
  --amber-100: #fbefd8;
  --red-600:   #ae3044;
  --red-100:   #fbe3e6;
  --violet-600:#7a4fb0;
  --violet-100:#efe6fa;
  --gold-500:  #d6a640;

  /* ---------- Semantic: surfaces ---------- */
  --bg-app:        var(--slate-50);
  --bg-rail:       linear-gradient(175deg, var(--navy-800), var(--navy-950));
  --bg-topbar:     var(--white);
  --bg-card:       var(--white);
  --bg-card-soft:  var(--slate-50);
  --bg-inset:      var(--slate-100);
  --bg-hero:       var(--navy-900);
  --bg-ticker:     var(--navy-900);
  --bg-overlay:    rgba(7, 26, 42, .55);

  /* ---------- Semantic: text ---------- */
  --text-strong:   var(--navy-800);
  --text:          #2a4558;
  --text-muted:    var(--slate-500);
  --text-faint:    var(--slate-500);
  --text-inverse:  var(--white);
  --text-inverse-muted: #9fb6c5;

  /* ---------- Semantic: lines ---------- */
  --line:          var(--slate-200);
  --line-strong:   var(--slate-300);
  --line-inverse:  rgba(255,255,255,.12);

  /* ---------- Semantic: status (สีต้องมี label/ไอคอนคู่เสมอ) ---------- */
  --accent:        var(--cyan-500);   /* selection / primary action */
  --accent-strong: var(--cyan-600);
  --accent-soft:   var(--cyan-100);
  --positive:      var(--green-600);
  --positive-soft: var(--green-100);
  --caution:       var(--amber-600);
  --caution-soft:  var(--amber-100);
  --negative:      var(--red-600);
  --negative-soft: var(--red-100);
  --special:       var(--violet-600);
  --special-soft:  var(--violet-100);
  --honour:        var(--gold-500);

  /* ---------- Typography ---------- */
  --font-display: "SV Display", "Oswald", Impact, "Arial Narrow", sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-serif: Georgia, "Iowan Old Style", "Times New Roman", serif;   /* งานข่าว/รายงานแมตช์เท่านั้น */

  /* ---------- Editorial (ข่าว · รายงาน) ---------- */
  --press-ink: #006879;          /* kicker, drop cap, คำเน้นในพาดหัว */
  --press-text: #183b51;         /* เนื้อข่าว */
  --press-fan: var(--accent-strong);
  --press-pundit: var(--caution);
  --press-journalist: #006e87;

  --fs-2xs: 10px;   /* eyebrow, micro label */
  --fs-xs:  11px;   /* stat label, table head */
  --fs-sm:  12px;   /* secondary text */
  --fs-md:  13px;   /* body default */
  --fs-lg:  15px;   /* emphasised body */
  --fs-xl:  18px;   /* card title display */
  --fs-2xl: 24px;   /* stat value */
  --fs-3xl: 34px;   /* hero number */
  --fs-4xl: 44px;   /* page title */

  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;

  --tracking-eyebrow: .22em;
  --tracking-label: .08em;

  /* ---------- Spacing (4px grid) ---------- */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-8: 32px;

  /* ---------- Radius / shadow / motion ---------- */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 10px;
  --radius-pill: 999px;
  --shadow-card: 0 1px 2px rgba(16,43,64,.05);
  --shadow-pop: 0 18px 50px rgba(7,26,42,.28);
  --focus-ring: 0 0 0 3px rgba(20,184,203,.45);
  --ease: cubic-bezier(.2,.7,.2,1);
  --dur: 160ms;

  /* ---------- Layout ---------- */
  --rail-w: 228px;
  --topbar-h: 64px;
  --ticker-h: 30px;
  --page-pad-x: 28px;
  --gap: 14px;
}
