:root {
  --bg-primary: #0a0a0a;
  --bg-card: #131316;
  --bg-card-hover: #1a1a20;
  --crimson: #8B0000;
  --crimson-light: #B22222;
  --gold: #C9A84C;
  --gold-dim: #8a7233;
  --text-primary: #e8e4dc;
  --text-secondary: #8a8680;
  --charity-bg: #1a1812;
  --charity-border: #3d3520;
  --restaurant-bg: #1a1214;
  --restaurant-border: #3d2028;
  --crime-bg: #12101a;
  --crime-border: #28203d;
  --green: #2d6a3f;
  --yellow: #8a7a20;
  --red: #8B0000;
}

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

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Crimson Pro', serif;
  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% 0%, rgba(139,0,0,0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 100%, rgba(201,168,76,0.05) 0%, transparent 60%),
    linear-gradient(180deg, #0a0a0a 0%, #0d0a0a 50%, #0a0a0d 100%);
  pointer-events: none;
  z-index: 0;
}

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

.font-cinzel { font-family: 'Cinzel', serif; }
.font-mono { font-family: 'JetBrains Mono', monospace; }
.font-crimson { font-family: 'Crimson Pro', serif; }

.card-glow:hover {
  box-shadow: 0 0 20px rgba(139,0,0,0.15), 0 0 40px rgba(139,0,0,0.05);
}

.card-charity:hover { box-shadow: 0 0 20px rgba(201,168,76,0.15); }
.card-restaurant:hover { box-shadow: 0 0 20px rgba(178,34,34,0.15); }
.card-crime:hover { box-shadow: 0 0 20px rgba(100,50,150,0.2); }

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

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 5px rgba(139,0,0,0.3); }
  50% { box-shadow: 0 0 20px rgba(139,0,0,0.6), 0 0 40px rgba(139,0,0,0.2); }
}

@keyframes countUp {
  from { opacity: 0.5; }
  to { opacity: 1; }
}

.animate-fade-in { animation: fadeIn 0.4s ease-out forwards; }
.animate-slide-in { animation: slideInRight 0.3s ease-out forwards; }
.animate-pulse-glow { animation: pulse-glow 2s ease-in-out infinite; }

.scrollbar-thin::-webkit-scrollbar { width: 4px; }
.scrollbar-thin::-webkit-scrollbar-track { background: transparent; }
.scrollbar-thin::-webkit-scrollbar-thumb { background: #333; border-radius: 2px; }
.scrollbar-thin::-webkit-scrollbar-thumb:hover { background: #555; }

.progress-bar {
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-badge {
  backdrop-filter: blur(10px);
  background: rgba(20,20,25,0.8);
  border: 1px solid rgba(255,255,255,0.06);
}

.person-chip {
  transition: all 0.15s ease;
  cursor: pointer;
}
.person-chip:hover {
  transform: scale(1.05);
  background: rgba(139,0,0,0.2);
}
.person-chip.selected {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
  background: rgba(201,168,76,0.15);
}

.op-card {
  transition: all 0.2s ease;
  cursor: pointer;
}
.op-card:hover {
  transform: translateY(-2px);
}
.op-card.assign-target {
  outline: 2px dashed var(--gold);
  outline-offset: 2px;
}

.advance-btn {
  position: relative;
  overflow: hidden;
}
.advance-btn::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 0; height: 0;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  transform: translate(-50%,-50%);
  transition: width 0.6s, height 0.6s;
}
.advance-btn:active::after {
  width: 300px; height: 300px;
}

.mobile-tab {
  transition: all 0.2s ease;
}
.mobile-tab.active {
  background: rgba(139,0,0,0.3);
  border-bottom: 2px solid var(--crimson-light);
}

/* Hitman panel */
.hitman-card {
  transition: all 0.2s ease;
}
.hitman-card:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(220,20,60,0.2);
}

@keyframes contractPulse {
  0%, 100% { border-color: rgba(220,20,60,0.15); }
  50% { border-color: rgba(220,20,60,0.4); }
}

.contract-active {
  animation: contractPulse 2s ease-in-out infinite;
}