@import "tailwindcss";

:root {
  --background: #0a0a0b;
  --foreground: #e4e4e7;
  --muted: #71717a;
  --accent: #d4a22f;
  --accent-soft: rgba(212, 162, 47, 0.14);
  --card-bg: rgba(24, 24, 27, 0.55);
  --card-border: rgba(255, 255, 255, 0.08);
  --hud-line: rgba(255, 255, 255, 0.1);
}

@theme inline {
  --color-background: var(--background);
  --color-foreground: var(--foreground);
  --color-muted: var(--muted);
  --color-accent: var(--accent);
  --color-accent-soft: var(--accent-soft);
  --font-sans: var(--font-geist-sans);
  --font-mono: var(--font-geist-mono);
}

html,
body {
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-geist-sans), system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  text-rendering: optimizeLegibility;
}

.card-surface {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  box-shadow:
    0 1px 0 0 rgba(255, 255, 255, 0.04) inset,
    0 20px 40px -20px rgba(0, 0, 0, 0.6);
}

.scroll-animation {
  height: 400vh;
}

@media (max-width: 1024px) {
  .scroll-animation {
    height: 350vh;
  }
}

@media (max-width: 768px) {
  .scroll-animation {
    height: 300vh;
  }
}

.hud-tick {
  background-image: linear-gradient(
    90deg,
    transparent 0 calc(100% - 1px),
    var(--hud-line) calc(100% - 1px) 100%
  );
  background-size: 16px 100%;
}

.grain::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
