:root {
  color-scheme: dark;

  --chrome-h: 44px;

  /* Premium dark — refined monochrome */
  --bg-deep: #000000;
  --bg-base: #050505;
  --bg-surface: #0a0a0a;
  --bg-elevated: #101010;
  --bg-card: #0c0c0c;
  --bg-hover: rgba(255, 255, 255, 0.04);
  --bg-inset: #070707;

  --glass: rgba(12, 12, 12, 0.88);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-strong: rgba(255, 255, 255, 0.14);
  --glass-highlight: rgba(255, 255, 255, 0.2);
  --glass-shine: rgba(255, 255, 255, 0.035);

  --text: #f5f5f5;
  --text-muted: #a3a3a3;
  --text-dim: #5c5c5c;

  --accent: #ffffff;
  --accent-bright: #fafafa;
  --accent-soft: rgba(255, 255, 255, 0.06);
  --accent-glow: rgba(255, 255, 255, 0.1);
  --accent-btn: linear-gradient(180deg, #ffffff 0%, #e8e8e8 100%);
  --accent-btn-hover: linear-gradient(180deg, #ffffff 0%, #f2f2f2 100%);
  --accent-btn-text: #0a0a0a;

  --success: #4ade80;
  --success-bg: rgba(74, 222, 128, 0.08);
  --warn: #fbbf24;
  --warn-bg: rgba(251, 191, 36, 0.08);
  --danger: #f87171;
  --danger-bg: rgba(248, 113, 113, 0.08);

  --input-bg: #0c0c0c;
  --input-focus-ring: rgba(255, 255, 255, 0.12);

  --radius-xs: 0.4rem;
  --radius-sm: 0.55rem;
  --radius: 0.85rem;
  --radius-lg: 1.1rem;
  --radius-xl: 1.35rem;

  --blur: blur(28px);
  --shadow-sm: 0 1px 0 rgba(255, 255, 255, 0.04), 0 10px 28px rgba(0, 0, 0, 0.4);
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.05), 0 28px 56px rgba(0, 0, 0, 0.55);
  --shadow-lg: 0 36px 72px rgba(0, 0, 0, 0.65);
  --shadow-glow: 0 0 0 1px rgba(255, 255, 255, 0.06);

  --font: "Manrope", "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, sans-serif;
  --display: "Outfit", "Manrope", system-ui, sans-serif;
  --mono: 'Cascadia Code', 'Consolas', ui-monospace, monospace;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 0.12s;
  --duration: 0.22s;
  --duration-slow: 0.4s;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg-deep);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  user-select: none;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at 22% 30%, rgba(255, 255, 255, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 78% 24%, rgba(255, 255, 255, 0.035) 0%, transparent 36%),
    radial-gradient(circle at 58% 72%, rgba(255, 255, 255, 0.03) 0%, transparent 38%),
    linear-gradient(165deg, #121212 0%, #0a0a0a 45%, #0e0e0e 100%);
}

/* No square grid overlay */
body::after {
  content: none;
  display: none;
}

.app-shell {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.hidden {
  display: none !important;
}

.no-drag {
  -webkit-app-region: no-drag;
}

button,
input,
textarea,
select,
a {
  -webkit-app-region: no-drag;
  user-select: auto;
}

button,
input,
textarea {
  font: inherit;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes pulseGlow {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.35); }
  50% { opacity: 0.85; box-shadow: 0 0 0 6px rgba(74, 222, 128, 0); }
}

@keyframes countPop {
  0% { transform: scale(1); }
  40% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

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