:root {
  --background: 285 38% 7%;
  --foreground: 315 30% 94%;
  --primary: 354 88% 58%;
  --primary-foreground: 0 0% 100%;
  --secondary: 268 58% 28%;
  --secondary-foreground: 315 30% 96%;
  --muted: 276 24% 18%;
  --muted-foreground: 303 12% 72%;
  --destructive: 0 84% 60%;
  --border: 288 22% 22%;
  --card: 280 32% 11%;
  --shadow-sm: 0 8px 24px rgba(0,0,0,.22);
  --shadow-md: 0 18px 48px rgba(0,0,0,.32);
  --shadow-lg: 0 28px 80px rgba(180,35,58,.25);
  --transition-fast: 160ms ease;
  --transition-smooth: 320ms cubic-bezier(.2,.8,.2,1);
  --radius-sm: .75rem;
  --radius-md: 1.1rem;
  --radius-lg: 1.6rem;
}
.dark {
  --background: 285 38% 7%;
  --foreground: 315 30% 94%;
  --primary: 354 88% 58%;
  --secondary: 268 58% 28%;
  --muted: 276 24% 18%;
  --destructive: 0 84% 60%;
  --border: 288 22% 22%;
  --card: 280 32% 11%;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at 20% 0%, hsl(var(--secondary) / .55), transparent 30%), radial-gradient(circle at 90% 20%, hsl(var(--primary) / .28), transparent 28%), hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
input, select, textarea { font-size: max(16px, 1rem); }
.bg-1 { background: hsl(var(--background)); }
.bg-2 { background: hsl(var(--card)); }
.bg-3 { background: hsl(var(--muted)); }
.bg-4 { background: hsl(var(--secondary)); }
.text-primary { color: hsl(var(--foreground)); }
.text-secondary { color: hsl(var(--muted-foreground)); }
.text-tertiary { color: hsl(var(--muted-foreground) / .78); }
.accent { color: hsl(var(--primary)); }
.glass-card { background: linear-gradient(145deg, hsl(var(--card) / .92), hsl(var(--muted) / .72)); border: 1px solid hsl(var(--border)); box-shadow: var(--shadow-sm); backdrop-filter: blur(18px); }
.anime-glow { box-shadow: 0 0 0 1px hsl(var(--primary) / .25), 0 18px 50px hsl(var(--primary) / .18); }
.splash-logo { animation: pulseLogo 1.6s ease-in-out infinite alternate; }
@keyframes pulseLogo { from { transform: scale(.94) rotate(-4deg); filter: drop-shadow(0 0 10px hsl(var(--primary) / .35)); } to { transform: scale(1.06) rotate(4deg); filter: drop-shadow(0 0 28px hsl(var(--primary) / .8)); } }
.fade-in { animation: fadeIn .42s var(--transition-smooth) both; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.safe-bottom { padding-bottom: calc(5.5rem + env(safe-area-inset-bottom)); }
