/*
 * Wild Deal: design tokens
 * A late-night card table on a CRT. Deep navy felt with red and blue ink smoke curling
 * through it, faint scanlines over everything, and a centered "table" column with black
 * rails on either side. Headlines are chunky pixel letters in cream with a red and blue
 * ink offset, labels are tiny mint pixel caps split by suit pips, and panels have stepped
 * pixel corners. The product shows up on tilted cream playing cards, and numbers come as
 * blue-times-red score blocks.
 *
 * Fonts (all free on Google Fonts):
 *   <link href="https://fonts.googleapis.com/css2?family=Pixelify+Sans:wght@400..700&family=Silkscreen:wght@400;700&family=Chivo:wght@400;500;700&display=swap" rel="stylesheet">
 */
:root {
  /* Surfaces: a dark table, never flat black inside the column */
  --wd-void: #09090f;          /* the rails outside the table column */
  --wd-night: #151633;         /* the table: page background inside the column */
  --wd-night-2: #1f2149;       /* raised panels, inputs, nav plate */
  --wd-night-3: #2a2d5e;       /* hover, rows inside panels */
  --wd-maroon: #3d1328;        /* the warm smoke at the bottom of the table */
  --wd-line: rgba(247, 241, 230, .16); /* hairlines on the table */
  --wd-shade: rgba(9, 9, 15, .35);     /* dark bands across the table */
  --wd-shade-deep: rgba(9, 9, 15, .55);/* the footer */

  /* Text */
  --wd-ink: #f7f1e6;           /* cream headlines and body */
  --wd-soft: #b8b5d8;          /* leads and secondary text */
  --wd-faint: #7d7aa8;         /* meta, placeholders */
  --wd-card-ink: #1b1830;      /* text printed on a playing card */

  /* Accents: red deals, blue counts, mint labels, gold winks */
  --wd-red: #e3423b;           /* the main button, hearts and diamonds, "mult" blocks */
  --wd-red-deep: #a8242b;      /* the pressed edge of red buttons */
  --wd-blue: #2f7cf0;          /* secondary buttons, "chips" blocks, links */
  --wd-blue-deep: #1b4fa8;     /* the pressed edge of blue buttons */
  --wd-mint: #5ce3a7;          /* pixel labels, nav links, checks */
  --wd-gold: #f2b43a;          /* one wink per view: a jackpot tag, a star */
  --wd-card: #f3e8d2;          /* playing card faces */
  --wd-card-edge: #d9c9a6;     /* the inner frame on a card */

  /* Atmosphere */
  --wd-smoke:
    radial-gradient(60% 45% at 12% 18%, rgba(227, 66, 59, .32), rgba(227, 66, 59, 0) 70%),
    radial-gradient(55% 50% at 92% 30%, rgba(47, 124, 240, .30), rgba(47, 124, 240, 0) 70%),
    radial-gradient(70% 45% at 50% 105%, rgba(61, 19, 40, .95), rgba(61, 19, 40, 0) 75%),
    linear-gradient(180deg, #181a3b 0%, var(--wd-night) 55%, #1a1230 100%);
  --wd-scanlines: repeating-linear-gradient(180deg, rgba(0, 0, 0, .18) 0 1px, rgba(0, 0, 0, 0) 1px 3px);
  --wd-felt: radial-gradient(circle at 50% 40%, #1f6b52 0%, #154a3a 60%, #0f3329 100%);

  /* Type */
  --wd-display: "Pixelify Sans", "Courier New", monospace;
  --wd-pixel: "Silkscreen", "Courier New", monospace;
  --wd-sans: "Chivo", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wd-text-hero: clamp(48px, 8vw, 104px);
  --wd-text-h2: clamp(34px, 4.6vw, 58px);
  --wd-text-h3: 24px;
  --wd-text-lead: 19px;
  --wd-text-body: 16px;
  --wd-text-small: 14px;
  --wd-text-micro: 12px;

  --wd-weight-head: 700;
  --wd-tracking-pixel: .06em;
  --wd-ink-offset: 3px 3px 0 var(--wd-red), -3px -2px 0 var(--wd-blue);       /* headline ink */
  --wd-ink-offset-sm: 2px 2px 0 var(--wd-red), -2px -1px 0 var(--wd-blue);

  /* Shape: stepped pixel corners on panels, soft round corners only on cards */
  --wd-step: 6px;
  --wd-pixel-corners: polygon(
    0 calc(var(--wd-step) * 2), var(--wd-step) calc(var(--wd-step) * 2), var(--wd-step) var(--wd-step), calc(var(--wd-step) * 2) var(--wd-step), calc(var(--wd-step) * 2) 0,
    calc(100% - var(--wd-step) * 2) 0, calc(100% - var(--wd-step) * 2) var(--wd-step), calc(100% - var(--wd-step)) var(--wd-step), calc(100% - var(--wd-step)) calc(var(--wd-step) * 2), 100% calc(var(--wd-step) * 2),
    100% calc(100% - var(--wd-step) * 2), calc(100% - var(--wd-step)) calc(100% - var(--wd-step) * 2), calc(100% - var(--wd-step)) calc(100% - var(--wd-step)), calc(100% - var(--wd-step) * 2) calc(100% - var(--wd-step)), calc(100% - var(--wd-step) * 2) 100%,
    calc(var(--wd-step) * 2) 100%, calc(var(--wd-step) * 2) calc(100% - var(--wd-step)), var(--wd-step) calc(100% - var(--wd-step)), var(--wd-step) calc(100% - var(--wd-step) * 2), 0 calc(100% - var(--wd-step) * 2)
  );
  --wd-pixel-corners-sm: polygon(
    0 4px, 4px 4px, 4px 0, calc(100% - 4px) 0, calc(100% - 4px) 4px, 100% 4px,
    100% calc(100% - 4px), calc(100% - 4px) calc(100% - 4px), calc(100% - 4px) 100%,
    4px 100%, 4px calc(100% - 4px), 0 calc(100% - 4px)
  );
  --wd-radius-card: 12px;      /* playing cards only */
  --wd-press: inset 0 -5px 0 rgba(0, 0, 0, .32);              /* chunky pressed edge on buttons and panels */
  --wd-press-sm: inset 0 -3px 0 rgba(0, 0, 0, .3);
  --wd-card-shadow: 8px 10px 0 rgba(5, 5, 12, .55);           /* hard offset under a playing card */
  --wd-card-frame: inset 0 0 0 6px var(--wd-card), inset 0 0 0 8px var(--wd-card-edge);
  --wd-focus: 0 0 0 3px var(--wd-mint);

  /* Space */
  --wd-space-1: 4px;
  --wd-space-2: 8px;
  --wd-space-3: 12px;
  --wd-space-4: 16px;
  --wd-space-5: 24px;
  --wd-space-6: 32px;
  --wd-space-7: 48px;
  --wd-space-8: 64px;
  --wd-section: clamp(64px, 9vw, 120px);
  --wd-table-width: 1240px;    /* the centered table column */
  --wd-container: 1120px;
  --wd-narrow: 720px;
  --wd-gutter: clamp(18px, 4vw, 40px);

  /* Motion: a quick snap, then a little wobble */
  --wd-ease: cubic-bezier(.34, 1.56, .64, 1);
  --wd-speed: .18s;
}
