:root {
  --background: 230 28% 8%;
  --foreground: 210 35% 96%;
  --primary: 158 92% 43%;
  --primary-foreground: 230 28% 8%;
  --secondary: 240 24% 18%;
  --secondary-foreground: 210 35% 96%;
  --muted: 236 16% 27%;
  --muted-foreground: 218 16% 72%;
  --destructive: 348 91% 58%;
  --destructive-foreground: 0 0% 100%;
  --border: 236 20% 25%;
  --card: 232 25% 12%;
  --shadow-sm: 0 6px 18px hsl(0 0% 0% / 0.18);
  --shadow-md: 0 14px 36px hsl(0 0% 0% / 0.28);
  --shadow-lg: 0 24px 70px hsl(0 0% 0% / 0.38);
  --transition-fast: 140ms ease;
  --transition-smooth: 260ms cubic-bezier(.2,.8,.2,1);
  --radius-sm: 0.75rem;
  --radius-md: 1.1rem;
  --radius-lg: 1.6rem;
}

.dark {
  --background: 230 28% 8%;
  --foreground: 210 35% 96%;
  --primary: 158 92% 43%;
  --secondary: 240 24% 18%;
  --muted: 236 16% 27%;
  --destructive: 348 91% 58%;
  --border: 236 20% 25%;
  --card: 232 25% 12%;
}

* { box-sizing: border-box; }
html { background: hsl(var(--background)); }
body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 10% 0%, hsl(var(--primary) / 0.18), transparent 34rem),
    radial-gradient(circle at 90% 10%, hsl(280 90% 55% / 0.16), transparent 32rem),
    hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
input { font-size: max(16px, 1rem); }
canvas { display: block; }
::selection { background: hsl(var(--primary) / 0.35); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; scroll-behavior: auto !important; }
}