@font-face {
  font-family: "Rubik";
  src: url("fonts/Rubik-VariableFont_wght.ttf") format("truetype");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Rubik";
  src: url("fonts/Rubik-Italic-VariableFont_wght.ttf") format("truetype");
  font-weight: 300 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --bg-base: #06070b;
  --bg-1: #0b0d14;
  --bg-2: #12141d;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-strong: rgba(255, 255, 255, 0.08);
  --surface-hover: rgba(255, 255, 255, 0.09);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.18);
  --text: #f4f5f9;
  --text-dim: rgba(244, 245, 249, 0.64);
  --text-faint: rgba(244, 245, 249, 0.4);
  --accent: #7c6cff;
  --accent-2: #22d3ee;
  --accent-grad: linear-gradient(135deg, #7c6cff 0%, #22d3ee 100%);
  --danger: #fb4570;
  --danger-grad: linear-gradient(135deg, #fb4570 0%, #ff8a3d 100%);
  --success: #22c55e;
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 24px 70px rgba(0, 0, 0, 0.55);
  --blur: blur(20px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font-sans: "Rubik", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  margin: 0;
  padding: 0;
  border: 0;
  box-sizing: border-box;
}

html {
  color-scheme: dark;
}

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: radial-gradient(
      circle at 12% 18%,
      rgba(124, 108, 255, 0.18),
      transparent 42%
    ),
    radial-gradient(
      circle at 88% 82%,
      rgba(34, 211, 238, 0.14),
      transparent 45%
    ),
    var(--bg-base);
  height: 100vh;
  width: 100vw;
  overflow: hidden;
}

::selection {
  background: var(--accent);
  color: #fff;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.14);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.24);
}

.indicator {
  z-index: 50;
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: inherit;
  width: 100%;
  height: 100%;
  background: rgba(6, 7, 11, 0.55);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  left: 0;
  right: 0;
  bottom: 0;
  top: 0;
  margin: auto;
}

.indicator p {
  width: 34px;
  aspect-ratio: 1;
  --_g: no-repeat radial-gradient(
    farthest-side,
    var(--accent-2) 94%,
    transparent
  );
  background: var(--_g) 0 0, var(--_g) 100% 0, var(--_g) 100% 100%,
    var(--_g) 0 100%;
  background-size: 40% 40%;
  animation: indicator 0.6s infinite;
}

.Showerror {
  position: fixed;
  top: -20vh;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  font-size: clamp(13px, 2.6vw, 16px);
  font-weight: 600;
  color: #fff;
  border-radius: var(--radius-md);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 56px;
  padding: 0 20px;
  background: var(--danger-grad);
  overflow: hidden;
  z-index: 9999;
  box-shadow: var(--shadow-lg);
  white-space: nowrap;
}

.Showerror.active {
  animation: dropIn 0.6s var(--ease) forwards;
}

.shake {
  animation: shake-animation 0.5s;
}
