/* GameNova design tokens (UI/UX doc). One dark theme in v1; a light theme only redefines these. */
:root {
  /* Colours */
  --bg: #0E0B24;
  --surface: #181437;
  --surface-2: #221C4A;
  --border: #2E2760;
  --text: #F4F2FF;
  --text-muted: #A9A3D1;
  --primary: #6D4AFF;
  --primary-hover: #5A37F0;
  --accent: #22D3EE;
  --coin: #FFC83D;
  --success: #22C55E;
  --danger: #F43F5E;
  --warning: #F59E0B;
  --ink: #160F00;             /* dark text on --coin, --accent, badges */
  --overlay: rgba(8, 6, 22, .72);

  /* Type */
  --font-head: "Baloo 2", ui-rounded, "Arial Rounded MT Bold", system-ui, sans-serif;
  --font-body: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  --fs-12: .75rem;
  --fs-14: .875rem;
  --fs-16: 1rem;
  --fs-18: 1.125rem;
  --fs-22: 1.375rem;
  --fs-28: 1.75rem;
  --fs-36: 2.25rem;
  --lh: 1.5;

  /* Spacing */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;

  /* Shape */
  --r-input: 8px;
  --r-card: 12px;
  --r-modal: 16px;
  --r-chip: 999px;
  --glow: 0 0 0 3px rgba(109, 74, 255, .28), 0 6px 22px rgba(109, 74, 255, .45);

  /* Layout. The page is fluid: no max width, the side gutter and the number of grid
     columns grow with the screen instead (breakpoints: base 360 · sm 640 · lg 1024 ·
     xl 1280 · 2xl 1680 · 3xl 2400). Column counts 2 / 3 / 4 / 6 / 8 / 12 all divide 24,
     the page size of /games, so full pages never end in a half row. */
  --header-h: 56px;
  --bottom-nav-h: 64px;
  --gutter: 16px;
  --grid-gap: 12px;
  --grid-cols: 2;
  --rank-cols: 4;             /* "Trending" row on desktop: fewer, wider cells (the rank number takes a third) */
  --tap: 44px;
}

@media (min-width: 640px) {
  :root { --grid-cols: 3; }
}

@media (min-width: 1024px) {
  :root { --header-h: 64px; --gutter: 24px; --grid-gap: 16px; --grid-cols: 4; --rank-cols: 4; --bottom-nav-h: 0px; }
}

@media (min-width: 1280px) {
  :root { --gutter: 32px; --grid-cols: 6; --rank-cols: 5; }
}

@media (min-width: 1680px) {
  :root { --gutter: 48px; --grid-gap: 20px; --grid-cols: 8; --rank-cols: 6; }
}

@media (min-width: 2400px) {
  :root { --gutter: 56px; --grid-gap: 24px; --grid-cols: 12; --rank-cols: 8; }
}
