* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-deep: #0a0a12;
  --bg-mid: #12121f;
  --bg-card: #1a1a2e;
  --bg-glass: rgba(26, 26, 46, 0.7);
  --gold: #f0c040;
  --gold-dim: #a88520;
  --purple: #7c3aed;
  --purple-light: #a78bfa;
  --indigo: #4338ca;
  --green: #10b981;
  --red: #ef4444;
  --blue: #3b82f6;
  --cyan: #06b6d4;
  --text: #e2e8f0;
  --text-dim: #94a3b8;
  --border: rgba(255,255,255,0.08);
}

body {
  background: var(--bg-deep);
  color: var(--text);
  font-family: 'Fira Code', monospace;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: 
    radial-gradient(ellipse at 20% 20%, rgba(124, 58, 237, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(240, 192, 64, 0.05) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(67, 56, 202, 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

#root {
  position: relative;
  z-index: 1;
}

.font-cinzel {
  font-family: 'Cinzel Decorative', serif;
}

.glow-gold {
  text-shadow: 0 0 20px rgba(240, 192, 64, 0.5), 0 0 40px rgba(240, 192, 64, 0.2);
}

.glow-purple {
  box-shadow: 0 0 15px rgba(124, 58, 237, 0.3), 0 0 30px rgba(124, 58, 237, 0.1);
}

.card-glow-1 {
  box-shadow: 0 2px 12px rgba(124, 58, 237, 0.15), inset 0 1px 0 rgba(255,255,255,0.05);
}
.card-glow-2 {
  box-shadow: 0 2px 16px rgba(240, 192, 64, 0.2), inset 0 1px 0 rgba(255,255,255,0.05);
}
.card-glow-3 {
  box-shadow: 0 2px 20px rgba(240, 192, 64, 0.35), inset 0 1px 0 rgba(255,255,255,0.08);
}

.glass {
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
}

.xp-bar-bg {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(240, 192, 64, 0.2);
}

.xp-bar-fill {
  background: linear-gradient(90deg, var(--gold-dim), var(--gold), #ffe066);
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.column-scroll::-webkit-scrollbar {
  width: 4px;
}
.column-scroll::-webkit-scrollbar-track {
  background: transparent;
}
.column-scroll::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
}

.drag-over {
  background: rgba(124, 58, 237, 0.15) !important;
  border-color: var(--purple) !important;
}

.card-enter {
  animation: cardEnter 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes cardEnter {
  from { opacity: 0; transform: translateY(-12px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes confettiPop {
  0% { transform: translateY(0) rotate(0deg); opacity: 1; }
  100% { transform: translateY(-200px) rotate(720deg); opacity: 0; }
}

.confetti-particle {
  position: fixed;
  width: 8px;
  height: 8px;
  animation: confettiPop 1.5s ease-out forwards;
  pointer-events: none;
  z-index: 9999;
}

@keyframes levelUp {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); text-shadow: 0 0 40px rgba(240, 192, 64, 0.8); }
  100% { transform: scale(1); }
}

.level-up-anim {
  animation: levelUp 0.6s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeIn 0.3s ease-out;
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.shimmer-text {
  background: linear-gradient(90deg, var(--gold-dim), var(--gold), #ffe066, var(--gold), var(--gold-dim));
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 3s linear infinite;
}

.modal-backdrop {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.skeleton-bounce {
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.fab-pulse {
  animation: fabPulse 2s infinite;
}

@keyframes fabPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(240, 192, 64, 0.4); }
  50% { box-shadow: 0 0 0 12px rgba(240, 192, 64, 0); }
}

@media (max-width: 768px) {
  .kanban-board {
    flex-direction: column !important;
  }
  .kanban-column {
    min-width: 100% !important;
    max-height: 400px;
  }
}

input, textarea, select {
  font-family: 'Fira Code', monospace;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--gold) !important;
  box-shadow: 0 0 0 2px rgba(240, 192, 64, 0.2);
}