/* Inter variable, self-hosted: the plugin's CSP allows fonts only from the menu origin. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(../fonts/inter-cyrillic-ext.woff2) format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(../fonts/inter-cyrillic.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(../fonts/inter-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(../fonts/inter-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: var(--fs); height: 100%; }
body {
  margin: 0;
  height: 100vh;
  overflow: hidden;
  color: var(--text);
  font: 400 0.875rem/1.45 var(--font);
  background: var(--bg-0);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "cv05", "cv08";
}
h1, h2, h3, h4, p, dl, dd, figure { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
svg { display: block; }
code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 0.8em; }
small { font-size: 0.75rem; }
[hidden] { display: none !important; }

.num, .money { font-variant-numeric: tabular-nums; }
.muted { color: var(--text-3); }
.mint { color: var(--mint); }
.ruby { color: var(--ruby); }
.gold { color: var(--gold); }
.sky { color: var(--sky); }
.amber { color: var(--amber); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

:focus { outline: none; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: var(--r-sm); }

::selection { background: rgba(143, 163, 255, 0.35); }
* { scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.16) transparent; }
*::-webkit-scrollbar { width: 0.5rem; height: 0.5rem; }
*::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.14); border-radius: 999px; }
*::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.24); }
*::-webkit-scrollbar-track { background: transparent; }

/* icons */
.ic { width: 1.125rem; height: 1.125rem; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ic-sm { width: 0.9375rem; height: 0.9375rem; }
.ic-lg { width: 1.5rem; height: 1.5rem; }
.ic-xl { width: 2.25rem; height: 2.25rem; stroke-width: 1.3; }

/* the world behind the glass: a generated scene when present, a painted dusk otherwise */
.scene {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    url(../img/bg.webp) center / cover no-repeat,
    radial-gradient(70% 60% at 14% 88%, rgba(246, 152, 68, 0.8), transparent 66%),
    radial-gradient(55% 50% at 86% 8%, rgba(86, 156, 236, 0.7), transparent 66%),
    radial-gradient(45% 40% at 62% 72%, rgba(96, 150, 84, 0.55), transparent 66%),
    radial-gradient(40% 35% at 40% 18%, rgba(236, 206, 150, 0.3), transparent 60%),
    radial-gradient(30% 30% at 75% 45%, rgba(120, 170, 220, 0.3), transparent 60%),
    linear-gradient(180deg, #2a3b55 0%, #1a2436 45%, #0f141c 100%);
}
.scene::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 8, 12, 0.25), transparent 30%, transparent 70%, rgba(6, 8, 12, 0.45)),
    radial-gradient(120% 90% at 50% 50%, transparent 60%, rgba(6, 8, 12, 0.5));
}

@keyframes rise {
  from { opacity: 0; transform: translateY(0.5rem); }
  to { opacity: 1; transform: none; }
}
@keyframes fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes shimmer {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}
