/* Magic City | Harlem design tokens: the single source of colour, type, radius, spacing and motion.
   One dark theme, the same in the game, the launcher, the site and the forum. */

@font-face {
  font-family: "Onest";
  src: url("fonts/onest-cyrillic.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Onest";
  src: url("fonts/onest-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Tektur";
  src: url("fonts/tektur-cyrillic.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Tektur";
  src: url("fonts/tektur-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --mc-font-body: "Onest", "Segoe UI", ui-sans-serif, sans-serif;
  --mc-font-display: "Tektur", "Onest", "Segoe UI", ui-sans-serif, sans-serif;

  --mc-text-xs: 0.8125rem;
  --mc-text-sm: 0.9375rem;
  --mc-text-md: 1.0625rem;
  --mc-text-lg: 1.375rem;
  --mc-text-xl: 2rem;
  --mc-text-display: clamp(2.25rem, 1.5rem + 3vw, 4rem);
  --mc-leading-body: 1.55;
  --mc-leading-tight: 1.08;

  --mc-space-1: 4px;
  --mc-space-2: 8px;
  --mc-space-3: 12px;
  --mc-space-4: 16px;
  --mc-space-5: 24px;
  --mc-space-6: 32px;
  --mc-space-7: 48px;
  --mc-space-8: 72px;
  --mc-space-9: 112px;

  --mc-radius-sm: 6px;
  --mc-radius-md: 10px;
  --mc-radius-lg: 14px;
  --mc-radius-pill: 999px;
  --mc-line-width: 1px;
  --mc-container: 1120px;
  --mc-measure: 62ch;

  --mc-ease: cubic-bezier(0.2, 0, 0, 1);
  --mc-duration-fast: 150ms;
  --mc-duration: 200ms;
  /* A control that cannot be used now: the whole control at this opacity and the not-allowed cursor
     (the game's .45 too); its colours stay, so the state never rests on a text colour alone. */
  --mc-disabled-opacity: 0.45;
}

/* Smoked glass and blue: near-black cool surfaces, glass panels with a 1px top highlight and a soft
   shadow, one saturated blue accent. --mc-accent fills (the main button: --mc-accent-fill with a light
   top edge; its label keeps 4.5:1 at rest, hover and press, so the fill is deeper than the --mc-accent of
   marks, which a label on it would not pass), --mc-accent-text is its bright shade for links, marks and
   icons. No teal, no pure white, no neon or glow. All three text colours keep >= 4.5:1 on every surface. */
:root {
  color-scheme: dark;
  --mc-bg: #0C0F14;
  --mc-surface: #141922;
  --mc-raised: #1C2330;
  --mc-glass: rgba(10, 13, 18, 0.78);
  --mc-glass-blur: blur(18px) saturate(1.2);
  --mc-glass-edge: linear-gradient(to bottom, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0));
  --mc-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  --mc-page: radial-gradient(1200px 600px at 15% -10%, rgba(47, 123, 230, 0.12), transparent 70%), #0C0F14;
  --mc-line: rgba(255, 255, 255, 0.08);
  --mc-line-strong: rgba(255, 255, 255, 0.16);
  --mc-text: #DCE2EA;
  --mc-text-muted: #98A2B0;
  --mc-text-faint: #949DAB;
  --mc-accent: #2F7BE6;
  --mc-accent-fill: linear-gradient(to bottom, #2668CC, #2363C4);
  --mc-accent-edge: inset 0 1px 0 rgba(255, 255, 255, 0.18);
  --mc-accent-hover: #2A6DD5;
  --mc-accent-active: #2566C4;
  --mc-on-accent: #F2F6FB;
  --mc-accent-soft: rgba(47, 123, 230, 0.18);
  --mc-accent-text: #5AA2FF;
  --mc-focus: #5AA2FF;
  --mc-danger: #E0705F;
  --mc-warning: #E0A15A;
  --mc-success: #4FB07A;
  --mc-logo: #5AA2FF;
}

/* A panel: the 1px highlight on its top edge fading down the sides, and the soft shadow. The consumer
   gives the background: --mc-glass with --mc-glass-blur over a picture or the page, --mc-surface over
   a plain colour, and positions it (the edge is an absolute layer over it). */
.mc-panel {
  border-radius: var(--mc-radius-lg);
  box-shadow: var(--mc-shadow);
}
.mc-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: var(--mc-glass-edge);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --mc-duration-fast: 0ms;
    --mc-duration: 0ms;
  }
}
