/* MiniCity design rules: every color, size, space, corner, layer and
   timing the site uses. Pages and components (components.css) use these
   instead of writing their own values; to change the look of the whole
   site, change it here.

   Two tiers:
   - Core (:root, below): used everywhere, including /about.
   - Showcase (--show-*): extra room for the advertising pages (/about, and
     /charity if wanted): big scaling headlines, wider spacing, the green-black
     background, glows. They may add showcase values but never redefine a
     core one.

   Screen widths can't be variables in CSS, so they're named here and used
   as numbers:
     phone   the game's .mobile class (set in main.mjs from the screen, not a width)
     640px   documents go to one column            @media (max-width: 640px)
     820px   /about's two-column parts stack        @media (max-width: 820px)
     900px   the game's narrow desktop layout       @media (max-width: 900px) / (min-width: 901px)
     500px   phones on their side (height)          @media (max-height: 500px)
*/

:root {
  /* ---- color: surfaces ---- */
  --bg: #14201a;                          /* behind everything (the map's ground) */
  --panel: rgba(18, 25, 22, 0.86);        /* floating panels over the map (green-black, like /about) */
  --panel-solid: #151c19;                 /* pop-ups, sheets, toasts */
  --overlay: rgba(8, 12, 10, 0.92);       /* tooltips, small dark chips over the map */
  --fill-1: rgba(255, 255, 255, 0.03);    /* a box inside a panel */
  --fill-2: rgba(255, 255, 255, 0.05);    /* controls at rest, chips */
  --fill-3: rgba(255, 255, 255, 0.07);    /* buttons at rest, text boxes */
  --fill-4: rgba(255, 255, 255, 0.1);     /* empty bars, hover */
  --fill-5: rgba(255, 255, 255, 0.14);    /* pressed / strong hover */
  --line: rgba(255, 255, 255, 0.09);      /* borders and dividers */
  --line-strong: #2a3a33;                 /* solid borders on solid panels */
  --line-bright: rgba(255, 255, 255, 0.35);   /* borders that must show over the map */
  --line-brighter: rgba(255, 255, 255, 0.7);
  --shade: rgba(0, 0, 0, 0.25);           /* inner shading on swatches */
  --shade-2: rgba(0, 0, 0, 0.35);
  --overlay-hover: rgba(40, 56, 48, 0.95);

  /* ---- color: text ---- */
  --text: #eef1f5;
  --text-soft: #cfd6dd;                   /* long-form body text, a step down from --text */
  --muted: #98a2b0;                       /* labels, hints, secondary text */

  /* ---- color: brand and meaning ---- */
  --accent: #8b5cf6;                      /* primary actions, "on" states */
  --accent-2: #a78bfa;                    /* links, accent borders, lighter accent text */
  --accent-hover: #7c4ef0;
  --accent-tint: rgba(139, 92, 246, 0.22);   /* "on" chips and tabs */
  --accent-tint-2: rgba(139, 92, 246, 0.3);  /* selected segment, hover on a tint */
  --accent-wash: rgba(139, 92, 246, 0.1);    /* a faint accent background for callouts */
  --good: #6ee7a0;
  --good-tint: rgba(110, 231, 160, 0.15);
  --warn: #ffc65c;
  --warn-tint: rgba(255, 198, 92, 0.12);
  --warn-tint-2: rgba(255, 198, 92, 0.25);
  --warn-line: rgba(255, 198, 92, 0.55);
  --warn-ink: #241a00;                    /* text on a --warn background */
  --bad: #ff7b7b;
  --bad-tint: rgba(255, 123, 123, 0.15);
  --bad-line: rgba(255, 123, 123, 0.55);
  --bad-soft: #ffb3b3;                    /* text on danger buttons */
  --danger: #e5484d;                      /* solid danger: LIVE, armed delete */
  --gold: #ffd479;                        /* building names, plaques, payday */
  --charity: #ffb3c7;                     /* charity text and badge */
  --charity-strong: #ff8fab;              /* charity rule lines */
  --charity-tint: rgba(255, 143, 171, 0.1);
  --charity-line: rgba(255, 143, 171, 0.45);
  --twitch: #9146ff;
  --twitch-hover: #7c3aed;
  --kick: #53fc18;
  --kick-ink: #0b0e0f;                    /* text on Kick green */
  --support-line: rgba(255, 221, 0, 0.35);   /* "Support the game" */
  --support-tint: rgba(255, 221, 0, 0.08);
  --support-tint-2: rgba(255, 221, 0, 0.16);

  /* ---- color: the map and its things ---- */
  --land: #ffd34d;                        /* map expansion */
  --land-tint: rgba(255, 211, 77, 0.12);
  --grass: #6aab55;
  --grass-soft: #a7d98f;
  --grass-tint: rgba(106, 171, 85, 0.18);
  --grass-tint-2: rgba(106, 171, 85, 0.3);
  --grass-shadow: rgba(20, 32, 26, 0.6);
  --fund-a: #4ade80;  --fund-b: #a3e635;  /* funding bar */
  --demo-a: #ff6b6b;  --demo-b: #ffa36b;  /* demolition bar */
  --live: #ff5c5c;                        /* the live dot */
  --checker-a: #d9e2e8; --checker-b: #9aa4ad;  /* "original paint" swatch */
  --fill-solid: #3a4a42;                  /* a solid gray tile (sign-in mark without a platform) */

  /* ---- type ---- */
  --font: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, monospace;
  --fs-2xs: 10px;   /* count badges */
  --fs-xs: 11px;    /* small caps labels, meta, chips */
  --fs-sm: 12px;    /* secondary text, hints */
  --fs-base: 13px;  /* the game's body text */
  --fs-md: 14px;    /* comfortable reading on small screens, card titles */
  --fs-lg: 15px;    /* document body text, panel titles */
  --fs-xl: 18px;    /* dialog titles, big numbers */
  --fs-2xl: 24px;   /* page titles */
  --fs-touch: 16px; /* text boxes on phones (iOS zooms into anything smaller) */
  --lh-tight: 1.35;
  --lh: 1.45;
  --lh-loose: 1.55;
  --tracking-caps: 0.05em;  /* small uppercase labels */

  /* ---- space (2px steps to 16, then 20 / 24 / 32) ---- */
  --sp-2: 2px; --sp-4: 4px; --sp-6: 6px; --sp-8: 8px; --sp-10: 10px; --sp-12: 12px;
  --sp-14: 14px; --sp-16: 16px; --sp-20: 20px; --sp-24: 24px; --sp-32: 32px;

  /* ---- corners ---- */
  --r-sm: 6px;      /* small controls, tags, text boxes */
  --r-md: 8px;      /* buttons, boxes inside panels */
  --r-lg: 12px;     /* panels, pop-ups, sheets */
  --r-pill: 999px;  /* chips, status pills */
  --radius: var(--r-lg);  /* older name, kept so nothing breaks */

  /* ---- depth ---- */
  --shadow-1: 0 6px 24px rgba(0, 0, 0, 0.35);   /* floating panels */
  --shadow-2: 0 10px 30px rgba(0, 0, 0, 0.45);  /* pop-overs */
  --shadow-3: 0 18px 60px rgba(0, 0, 0, 0.55);  /* dialogs */
  --shadow-up: 0 -8px 30px rgba(0, 0, 0, 0.45); /* sheets rising from the bottom */
  --blur-panel: 8px;
  --scrim: rgba(6, 10, 8, 0.35);                /* behind every pop-up, with --blur-scrim */
  --blur-scrim: 7px;

  /* ---- layers (z-index), lowest first ---- */
  --z-map-ui: 4;    /* things pinned to the map (turn arrows) */
  --z-tooltip: 5;
  --z-hud: 6;
  --z-sheet: 7;     /* phone sheets */
  --z-bar: 8;       /* phone tab bar */
  --z-hint: 9;      /* the placing bar */
  --z-toast: 10;
  --z-pop: 14;      /* pop-overs anchored to the HUD */
  --z-overlay: 15;  /* settings, level-up */
  --z-modal: 20;    /* pop-up dialogs */

  /* ---- motion ---- */
  --t-fast: 0.12s;
  --t-med: 0.2s;
  --t-slow: 0.4s;
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --press: translateY(1px) scale(0.98);      /* a button being pressed */
  --focus-ring: 2px solid var(--accent-2);   /* keyboard focus */

  /* ---- showcase (the advertising pages only) ---- */
  --show-bg: #0f1512;
  --show-panel: #161d1a;
  --show-bar: rgba(15, 21, 18, 0.85);
  --show-bg-0: rgba(15, 21, 18, 0);   /* the hero's fade into the page */
  --show-bg-75: rgba(15, 21, 18, 0.75);
  --show-bg-90: rgba(15, 21, 18, 0.9);
  --show-shot-bg: #111;
  --show-muted: #a3adb9;
  --show-text-hero: #dfe5ea;
  --show-glow-a: #1f2a25;
  --show-glow-b: #121815;
  --show-glow-charity: rgba(255, 143, 171, 0.16);  /* /charity's hero glow */
  --show-glow-accent: rgba(139, 92, 246, 0.16);
  --show-toast: #222b27;
  --show-accent-hover: #9d74ff;
  --show-twitch-hover: #a36bff;
  --show-kick-hover: #7dff4d;
  --show-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, sans-serif;
  --show-fs-body: 17px;
  --show-fs-lead: clamp(18px, 2.2vw, 21px);
  --show-fs-hero: clamp(40px, 7vw, 72px);
  --show-fs-h2: clamp(28px, 4vw, 38px);
  --show-fs-h3: 26px;
  --show-fs-card: 24px;
  --show-fs-faq: 18px;
  --show-fs-btn: 16px;
  --show-r-btn: 10px;
  --show-shadow-hero: 0 2px 24px rgba(0, 0, 0, 0.5);
  --show-shadow-lead: 0 1px 12px rgba(0, 0, 0, 0.6);
  --show-section: 72px;
  --show-r-card: 16px;
  --show-r-shot: 14px;
  --show-shadow-shot: 0 20px 50px rgba(0, 0, 0, 0.45);
}
