@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --bg: #0B0F14;
  --bg-deep: #060A0F;
  --bg-soft: #0F141B;
  --surface-1: #141A22;
  --surface-2: #1E2631;
  --surface-3: #2A3442;

  --accent: #D4FF3A;
  --accent-deep: #9BC624;
  --accent-glow: rgba(212, 255, 58, 0.35);
  --accent-overlay-soft: rgba(212, 255, 58, 0.05);
  --accent-overlay-mid: rgba(212, 255, 58, 0.14);

  --text: #EAEEF3;
  --text-muted: #8A93A0;
  --text-dim: #5A6472;

  --streak: #FFC400;
  --success: #7BED6F;
  --danger: #FF4B91;
  --warn: #FFC400;

  --border: rgba(255, 255, 255, 0.06);
  --border-strong: rgba(255, 255, 255, 0.12);

  --radius-sm: 6px;
  --radius: 10px;
  --radius-md: 12px;
  --radius-lg: 14px;
  --radius-xl: 16px;
  --radius-2xl: 18px;
  --radius-3xl: 22px;
  --radius-pill: 999px;

  --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg); color: var(--text); font-family: var(--font-body); -webkit-font-smoothing: antialiased; }

/* Keyframes */
@keyframes flicker {
  0%, 100% { transform: scale(1) rotate(-1deg); filter: brightness(1); }
  50%       { transform: scale(1.06) rotate(1deg); filter: brightness(1.15); }
}
@keyframes pulsering {
  0%   { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.4); opacity: 0; }
}
@keyframes xpburst {
  0%   { transform: translateY(0) scale(0.7); opacity: 0; }
  40%  { transform: translateY(-14px) scale(1.1); opacity: 1; }
  100% { transform: translateY(-28px) scale(1); opacity: 0; }
}
@keyframes fadein {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideup {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes scalein {
  from { opacity: 0; transform: scale(0.85); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes drawline {
  from { stroke-dashoffset: 300; }
  to   { stroke-dashoffset: 0; }
}
@keyframes confettidot {
  0%   { opacity: 0; transform: scale(0) translateY(0); }
  40%  { opacity: 1; transform: scale(1) translateY(-20px); }
  100% { opacity: 0; transform: scale(0.5) translateY(-50px); }
}
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes levelpop {
  0%   { opacity: 0; transform: scale(0.3); }
  60%  { transform: scale(1.15); opacity: 1; }
  80%  { transform: scale(0.95); }
  100% { transform: scale(1); opacity: 1; }
}

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