:root {
  --background: 210 45% 97%;
  --foreground: 222 47% 11%;
  --primary: 216 82% 44%;
  --secondary: 349 78% 46%;
  --muted: 210 26% 89%;
  --destructive: 0 72% 50%;
  --border: 214 28% 84%;
  --card: 0 0% 100%;
  --shadow-sm: 0 8px 24px hsla(220, 50%, 10%, 0.08);
  --shadow-md: 0 16px 40px hsla(220, 50%, 10%, 0.12);
  --shadow-lg: 0 28px 72px hsla(220, 55%, 8%, 0.18);
  --transition-fast: 120ms ease;
  --transition-smooth: 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
  --radius-sm: 0.55rem;
  --radius-md: 0.9rem;
  --radius-lg: 1.3rem;
}

.dark {
  --background: 223 39% 9%;
  --foreground: 210 40% 96%;
  --primary: 195 88% 55%;
  --secondary: 342 82% 58%;
  --muted: 223 20% 18%;
  --destructive: 0 78% 60%;
  --border: 223 18% 24%;
  --card: 222 31% 12%;
  --shadow-sm: 0 10px 24px hsla(0, 0%, 0%, 0.28);
  --shadow-md: 0 18px 40px hsla(0, 0%, 0%, 0.32);
  --shadow-lg: 0 32px 72px hsla(0, 0%, 0%, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background:
    radial-gradient(circle at top, hsla(216, 82%, 44%, 0.08), transparent 34%),
    linear-gradient(180deg, hsl(var(--background)) 0%, hsl(var(--background)) 100%);
  color: hsl(var(--foreground));
}

button,
input,
select {
  font: inherit;
}

canvas {
  display: block;
}

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

::-webkit-scrollbar-thumb {
  background: hsl(var(--primary) / 0.35);
  border-radius: 999px;
}

::-webkit-scrollbar-track {
  background: hsl(var(--muted) / 0.35);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}