:root {
  --background: 158 28% 93%;
  --foreground: 202 41% 12%;
  --primary: 149 71% 55%;
  --secondary: 196 83% 61%;
  --muted: 201 16% 42%;
  --destructive: 0 82% 59%;
  --border: 161 18% 76%;
  --card: 156 25% 98%;
  --shadow-sm: 0 6px 16px hsl(202 42% 10% / 0.08);
  --shadow-md: 0 18px 40px hsl(202 45% 10% / 0.16);
  --shadow-lg: 0 24px 64px hsl(149 78% 30% / 0.24);
  --transition-fast: 120ms ease;
  --transition-smooth: 240ms ease;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
}

.dark {
  --background: 183 42% 7%;
  --foreground: 156 35% 95%;
  --primary: 151 78% 55%;
  --secondary: 199 86% 61%;
  --muted: 174 12% 68%;
  --destructive: 0 86% 61%;
  --border: 175 20% 22%;
  --card: 183 39% 11%;
  --shadow-sm: 0 8px 18px hsl(183 50% 2% / 0.18);
  --shadow-md: 0 22px 48px hsl(183 50% 2% / 0.35);
  --shadow-lg: 0 28px 84px hsl(151 78% 36% / 0.24);
}

* {
  box-sizing: border-box;
}

html, body, #root {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  overscroll-behavior: none;
}

canvas {
  display: block;
}

button, a {
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-smooth), border-color var(--transition-smooth), color var(--transition-smooth), opacity var(--transition-fast);
}

button:hover, a:hover {
  transform: translateY(-1px);
}

button:active, a:active {
  transform: translateY(0);
}

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

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

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

.shadow-soft {
  box-shadow: var(--shadow-sm);
}

.shadow-mid {
  box-shadow: var(--shadow-md);
}

.shadow-glow {
  box-shadow: var(--shadow-lg);
}

.touch-none {
  touch-action: none;
}