@font-face {
  font-family: "Cinzel";
  src: url("../fonts/cinzel-latin-wght-normal.woff2") format("woff2-variations"),
       url("../fonts/cinzel-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: dark;

  --night-950: #070b17;
  --night-900: #0b1020;
  --night-850: #0f1630;
  --night-800: #141c3a;
  --night-700: #1c2650;
  --night-600: #27336a;
  --night-500: #3a4a8a;

  --parchment-50: #fbf4de;
  --parchment-100: #f3e8c6;
  --parchment-200: #e7d6a4;
  --parchment-300: #d3bc84;
  --ink: #2a2113;
  --ink-soft: #5b4a2c;

  --gold-200: #f7e6b0;
  --gold-300: #f2d98c;
  --gold-400: #e3bd5a;
  --gold-500: #c9a043;
  --gold-600: #9d7a2c;
  --gold-700: #6f531a;

  --ember-300: #f0907a;
  --ember-400: #e5654a;
  --ember-500: #c8432d;
  --ember-600: #9b2f20;

  --elven-300: #9fdcbd;
  --elven-400: #74c69d;
  --elven-500: #4a9b78;
  --elven-600: #2f6f55;

  --steel-400: #7f95c9;
  --violet-400: #a58bff;
  --violet-600: #5f47b3;
  --crimson-500: #a31d3a;

  --text: #efe9d6;
  --text-muted: #aeb7d6;
  --text-faint: #7c88b0;

  --surface-1: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.07);
  --line: rgba(227, 189, 90, 0.22);
  --line-strong: rgba(227, 189, 90, 0.5);

  --font-display: "Cinzel", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --text-xs: 0.72rem;
  --text-sm: 0.84rem;
  --text-md: 0.95rem;
  --text-lg: 1.15rem;
  --text-xl: 1.5rem;
  --text-2xl: 2rem;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --page-pad: 0.9rem;

  --radius-sm: 0.5rem;
  --radius-md: 0.8rem;
  --radius-lg: 1.25rem;
  --radius-card: 0.85rem;

  --shadow-card: 0 6px 16px rgba(0, 0, 0, 0.45), 0 1px 0 rgba(255, 255, 255, 0.35) inset;
  --shadow-lift: 0 14px 34px rgba(0, 0, 0, 0.55);
  --glow-gold: 0 0 0 2px var(--gold-400), 0 8px 22px rgba(227, 189, 90, 0.38);

  --card-w: 9.5rem;
  --card-h: 16rem;
  --card-h-compact: 7.2rem;
  --card-action-room: 3.5rem;
  --touch: 44px;

  --safe-top: calc(env(safe-area-inset-top, 0px) + var(--tg-content-safe-area-inset-top, 0px));
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);

  --z-hud: 10;
  --z-banner: 40;
  --z-sheet: 100;
  --z-toast: 200;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}
