:root {
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --background: 44 100% 96%;
  --foreground: 252 42% 13%;
  --card: 38 100% 98%;
  --card-foreground: 252 42% 13%;
  --popover: 38 100% 98%;
  --popover-foreground: 252 42% 13%;
  --primary: 264 84% 45%;
  --primary-foreground: 0 0% 100%;
  --secondary: 183 82% 42%;
  --secondary-foreground: 252 42% 13%;
  --muted: 41 58% 88%;
  --muted-foreground: 254 18% 36%;
  --accent: 334 91% 58%;
  --accent-foreground: 0 0% 100%;
  --destructive: 0 72% 48%;
  --destructive-foreground: 0 0% 100%;
  --success: 151 67% 34%;
  --success-foreground: 0 0% 100%;
  --warning: 38 92% 45%;
  --warning-foreground: 252 42% 13%;
  --info: 213 89% 47%;
  --info-foreground: 0 0% 100%;
  --border: 258 22% 78%;
  --input: 258 22% 78%;
  --ring: 334 91% 58%;
  --radius: 0.625rem;
  --shadow-sm: 0 1px 2px hsl(var(--foreground) / 0.05);
  --shadow-md: 0 4px 12px hsl(var(--foreground) / 0.08);
  --shadow-lg: 0 12px 32px hsl(var(--foreground) / 0.12);
  --shadow-elegant: 0 24px 80px hsl(var(--primary) / 0.22);
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

.dark {
  --background: 252 42% 9%;
  --foreground: 42 100% 94%;
  --card: 253 38% 14%;
  --card-foreground: 42 100% 94%;
  --popover: 253 38% 14%;
  --popover-foreground: 42 100% 94%;
  --primary: 270 95% 72%;
  --primary-foreground: 252 42% 9%;
  --secondary: 181 92% 48%;
  --secondary-foreground: 252 42% 9%;
  --muted: 252 26% 22%;
  --muted-foreground: 41 24% 75%;
  --accent: 334 91% 66%;
  --accent-foreground: 252 42% 9%;
  --destructive: 0 78% 62%;
  --destructive-foreground: 252 42% 9%;
  --success: 151 70% 45%;
  --success-foreground: 252 42% 9%;
  --warning: 42 96% 58%;
  --warning-foreground: 252 42% 9%;
  --info: 213 94% 68%;
  --info-foreground: 252 42% 9%;
  --border: 253 22% 31%;
  --input: 253 22% 31%;
  --ring: 334 91% 66%;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: var(--font-sans);
  color-scheme: light;
}

html.dark {
  color-scheme: dark;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at top left, hsl(var(--accent) / 0.18), transparent 32rem),
    radial-gradient(circle at 85% 10%, hsl(var(--secondary) / 0.16), transparent 28rem),
    hsl(var(--background));
}

button, input, textarea, select {
  font: inherit;
}

input, textarea, select {
  font-size: max(16px, 1rem);
}

::selection {
  background: hsl(var(--accent) / 0.24);
}

.retro-grid {
  background-image:
    linear-gradient(hsl(var(--foreground) / 0.06) 1px, transparent 1px),
    linear-gradient(90deg, hsl(var(--foreground) / 0.06) 1px, transparent 1px);
  background-size: 32px 32px;
}

.pixel-panel {
  position: relative;
  overflow: hidden;
}

.pixel-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, hsl(var(--primary) / 0.18), transparent 38%),
    radial-gradient(circle at 80% 18%, hsl(var(--secondary) / 0.36), transparent 18rem),
    radial-gradient(circle at 16% 84%, hsl(var(--accent) / 0.24), transparent 20rem);
  pointer-events: none;
}

.pixel-panel > * {
  position: relative;
}

.arcade-marquee {
  box-shadow: inset 0 -1px 0 hsl(var(--border)), var(--shadow-sm);
}

.tilt-card {
  transition: transform var(--transition), box-shadow var(--transition);
}

.tilt-card:hover {
  transform: translateY(-2px) rotate(-0.5deg);
  box-shadow: var(--shadow-md);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}