:root {
  --background: 222 40% 97%;
  --foreground: 230 24% 16%;
  --primary: 251 93% 67%;
  --secondary: 220 32% 92%;
  --muted: 225 20% 88%;
  --destructive: 7 74% 59%;
  --border: 224 23% 84%;
  --card: 0 0% 100%;
  --accent-soft: 220 90% 96%;
  --shadow-sm: 0 8px 20px rgba(24, 28, 55, 0.08);
  --shadow-md: 0 16px 40px rgba(24, 28, 55, 0.12);
  --shadow-lg: 0 24px 60px rgba(24, 28, 55, 0.16);
  --transition-fast: 160ms ease;
  --transition-smooth: 280ms cubic-bezier(0.22, 1, 0.36, 1);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
}

.dark {
  --background: 230 27% 10%;
  --foreground: 220 25% 95%;
  --primary: 257 92% 72%;
  --secondary: 228 20% 18%;
  --muted: 228 18% 22%;
  --destructive: 6 82% 64%;
  --border: 228 16% 24%;
  --card: 228 22% 14%;
  --accent-soft: 228 26% 16%;
  --shadow-sm: 0 8px 18px rgba(0, 0, 0, 0.28);
  --shadow-md: 0 18px 40px rgba(0, 0, 0, 0.34);
  --shadow-lg: 0 28px 68px rgba(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: hsl(var(--background));
  color: hsl(var(--foreground));
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

canvas {
  display: block;
}

::selection {
  background: hsl(var(--primary) / 0.22);
  color: hsl(var(--foreground));
}
