:root {
  --background: 260 38% 7%;
  --foreground: 270 26% 96%;
  --primary: 272 92% 64%;
  --primary-foreground: 0 0% 100%;
  --secondary: 292 74% 50%;
  --secondary-foreground: 0 0% 100%;
  --muted: 262 24% 18%;
  --muted-foreground: 266 18% 72%;
  --destructive: 350 86% 58%;
  --destructive-foreground: 0 0% 100%;
  --border: 266 28% 25%;
  --card: 262 34% 12%;
  --shadow-sm: 0 6px 18px rgba(82, 31, 140, 0.22);
  --shadow-md: 0 18px 45px rgba(91, 33, 182, 0.30);
  --shadow-lg: 0 28px 90px rgba(168, 85, 247, 0.28);
  --transition-fast: 160ms ease;
  --transition-smooth: 320ms cubic-bezier(.2,.8,.2,1);
  --radius-sm: 0.65rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
}

.dark {
  --background: 260 38% 7%;
  --foreground: 270 26% 96%;
  --primary: 272 92% 64%;
  --primary-foreground: 0 0% 100%;
  --secondary: 292 74% 50%;
  --secondary-foreground: 0 0% 100%;
  --muted: 262 24% 18%;
  --muted-foreground: 266 18% 72%;
  --destructive: 350 86% 58%;
  --border: 266 28% 25%;
  --card: 262 34% 12%;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: -20%;
  pointer-events: none;
  z-index: -2;
  background:
    radial-gradient(circle at 20% 10%, rgba(168, 85, 247, 0.34), transparent 28%),
    radial-gradient(circle at 80% 0%, rgba(217, 70, 239, 0.25), transparent 26%),
    radial-gradient(circle at 55% 80%, rgba(99, 102, 241, 0.18), transparent 32%),
    hsl(var(--background));
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: .22;
  background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at top, black, transparent 70%);
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
::selection { background: hsl(var(--primary)); color: white; }
.glass {
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.035));
  border: 1px solid hsl(var(--border));
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(18px);
}
.card-hover { transition: transform var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth); }
.card-hover:hover { transform: translateY(-6px); border-color: hsl(var(--primary)); box-shadow: var(--shadow-lg); }
.gradient-text { background: linear-gradient(90deg, hsl(var(--foreground)), hsl(var(--primary)), hsl(var(--secondary))); -webkit-background-clip: text; background-clip: text; color: transparent; }
.focus-ring:focus-visible { outline: 3px solid hsl(var(--primary) / .45); outline-offset: 3px; }
.orb { animation: floaty 7s ease-in-out infinite; }
@keyframes floaty { 0%,100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-18px) rotate(3deg); } }
.pulse-glow { animation: glow 2.8s ease-in-out infinite; }
@keyframes glow { 0%,100% { box-shadow: 0 0 0 rgba(168,85,247,0); } 50% { box-shadow: 0 0 46px rgba(168,85,247,.46); } }
.play-tile { user-select: none; }
