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

:root {
  --gold: #d4af37;
  --gold-dark: #b8962e;
  --navy: #1a1f3a;
  --navy-light: #2a3354;
  --crimson: #8b0000;
  --crimson-dark: #5c0000;
  --charcoal: #1c1c1e;
  --smoke: #2d2d30;
  --text-light: #e8e8e8;
  --text-muted: #888;
}

body {
  font-family: 'Space Grotesk', sans-serif;
  background: linear-gradient(135deg, var(--charcoal) 0%, #0d0d0f 100%);
  min-height: 100vh;
  color: var(--text-light);
  overflow-x: hidden;
}

.game-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.header-container {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-light) 100%);
  border-bottom: 2px solid var(--gold);
  padding: 1rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.logo-section {
  display: flex;
  flex-direction: column;
}

.logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--gold);
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
  letter-spacing: 2px;
}

.logo-fist {
  font-size: 0.8em;
  opacity: 0.6;
  transition: opacity 0.3s;
}

.logo-text:hover .logo-fist {
  opacity: 1;
}

.tagline {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-style: italic;
}

.header-stats {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.stat-box {
  background: rgba(0,0,0,0.3);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid rgba(255,255,255,0.1);
}

.stat-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.stat-value {
  font-size: 1.2rem;
  font-weight: 700;
}

.stat-value.money {
  color: #4ade80;
}

.cash-display.pulse {
  animation: cashPulse 0.3s ease-out;
}

@keyframes cashPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.suspicion-container {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 120px;
}

.suspicion-bar {
  height: 12px;
  background: rgba(0,0,0,0.5);
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
}

.suspicion-fill {
  height: 100%;
  background: linear-gradient(90deg, #f59e0b 0%, #ef4444 50%, #dc2626 100%);
  transition: width 0.5s ease;
  border-radius: 6px;
}

/* Main Content */
.main-content {
  flex: 1;
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.businesses-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
}

/* Business Cards */
.business-card {
  background: rgba(30, 30, 35, 0.9);
  border-radius: 16px;
  padding: 1.25rem;
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.business-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}

.business-blue::before { background: linear-gradient(90deg, #3b82f6, #60a5fa); }
.business-sepia::before { background: linear-gradient(90deg, #a16207, #ca8a04); }
.business-red::before { background: linear-gradient(90deg, #b91c1c, #f87171); }
.business-orange::before { background: linear-gradient(90deg, #ea580c, #fb923c); }
.business-broadcast::before { background: linear-gradient(90deg, #0284c7, #38bdf8); }
.business-green::before { background: linear-gradient(90deg, #15803d, #4ade80); }

.business-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  border-color: rgba(255,255,255,0.2);
}

.business-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.business-icon {
  font-size: 2.5rem;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.business-info {
  flex: 1;
}

.business-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.25rem;
  letter-spacing: 1px;
}

.business-level {
  font-size: 0.75rem;
  color: var(--gold);
  background: rgba(212, 175, 55, 0.2);
  padding: 0.125rem 0.5rem;
  border-radius: 4px;
}

.business-stats {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.stat-row .revenue {
  color: #4ade80;
  font-weight: 600;
}

.heat-bar {
  width: 60px;
  height: 8px;
  background: rgba(0,0,0,0.3);
  border-radius: 4px;
  overflow: hidden;
}

.heat-fill {
  height: 100%;
  background: linear-gradient(90deg, #f59e0b, #ef4444);
  transition: width 0.3s;
}

.business-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.upgrade-btn {
  flex: 1;
  padding: 0.6rem;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  border: none;
  border-radius: 8px;
  color: #000;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.8rem;
  transition: all 0.2s;
}

.upgrade-btn:hover:not(.disabled) {
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
}

.upgrade-btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.basement-btn {
  padding: 0.6rem 1rem;
  background: linear-gradient(135deg, var(--crimson-dark), var(--crimson));
  border: none;
  border-radius: 8px;
  color: white;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.8rem;
  transition: all 0.2s;
  animation: basementGlow 2s ease-in-out infinite;
}

@keyframes basementGlow {
  0%, 100% { box-shadow: 0 0 5px rgba(139, 0, 0, 0.5); }
  50% { box-shadow: 0 0 15px rgba(139, 0, 0, 0.8); }
}

.laundered-badge {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: rgba(139, 0, 0, 0.8);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.65rem;
  color: white;
}

/* CEO Sidebar */
.ceo-sidebar {
  width: 220px;
  background: rgba(30, 30, 35, 0.9);
  border-radius: 16px;
  padding: 1.25rem;
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  height: fit-content;
  position: sticky;
  top: 100px;
}

.ceo-avatar-section {
  text-align: center;
}

.ceo-avatar {
  font-size: 4rem;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.4));
}

.ceo-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.5rem;
  color: var(--gold);
  letter-spacing: 2px;
}

.ceo-stats {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.net-worth {
  text-align: center;
}

.net-worth .label {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.net-worth .value {
  font-size: 1.1rem;
  font-weight: 700;
  color: #4ade80;
}

.corruption-badge {
  text-align: center;
  padding: 0.5rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.goals-section h4,
.achievements h4 {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.goal-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  padding: 0.25rem 0;
}

.goal-item input[type="checkbox"] {
  accent-color: var(--gold);
}

.achievement {
  font-size: 0.75rem;
  padding: 0.25rem 0;
  color: var(--gold);
}

.pause-btn {
  width: 100%;
  padding: 0.75rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  color: white;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s;
}

.pause-btn:hover {
  background: rgba(255,255,255,0.15);
}

/* Fight Club Panel */
.fight-club-panel {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, #1a0000 0%, #0d0000 100%);
  border-top: 3px solid var(--crimson);
  transform: translateY(100%);
  transition: transform 0.4s ease;
  z-index: 200;
  max-height: 70vh;
  overflow-y: auto;
}

.fight-club-panel.open {
  transform: translateY(0);
}

.fight-club-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background: rgba(139, 0, 0, 0.3);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  position: sticky;
  top: 0;
}

.fight-club-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.8rem;
  color: #ff4444;
  letter-spacing: 3px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.skull {
  animation: skullPulse 1s ease-in-out infinite;
}

@keyframes skullPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.close-btn {
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  line-height: 1;
}

.fight-club-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.fight-club-stats {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.fc-stat {
  background: rgba(0,0,0,0.4);
  padding: 1rem 1.5rem;
  border-radius: 12px;
  border: 1px solid rgba(255,0,0,0.3);
  text-align: center;
}

.fc-label {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.fc-value {
  font-size: 1.3rem;
  font-weight: 700;
  color: #ff6666;
}

.fighters-roster h3 {
  font-family: 'Bebas Neue', sans-serif;
  color: #ff4444;
  margin-bottom: 0.75rem;
  letter-spacing: 1px;
}

.fighters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.fighter-card {
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(255,0,0,0.2);
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  gap: 0.75rem;
  align-items: center;
  transition: all 0.2s;
}

.fighter-card.injured {
  opacity: 0.6;
  border-color: rgba(255,165,0,0.5);
}

.fighter-avatar {
  font-size: 2rem;
}

.fighter-info {
  flex: 1;
}

.fighter-name {
  font-weight: 600;
  font-size: 0.9rem;
  display: block;
  margin-bottom: 0.25rem;
}

.fighter-stats {
  display: flex;
  gap: 0.5rem;
  font-size: 0.65rem;
  color: var(--text-muted);
}

.heal-btn {
  padding: 0.4rem 0.6rem;
  background: #f59e0b;
  border: none;
  border-radius: 6px;
  color: #000;
  font-size: 0.7rem;
  font-weight: 600;
  cursor: pointer;
}

.fight-club-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.schedule-fight-btn {
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #b91c1c, #dc2626);
  border: none;
  border-radius: 12px;
  color: white;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.schedule-fight-btn:hover:not(:disabled) {
  transform: scale(1.02);
  box-shadow: 0 8px 24px rgba(185, 28, 28, 0.5);
}

.schedule-fight-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.launder-section h4 {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.launder-grid {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.launder-btn {
  padding: 0.5rem 1rem;
  background: rgba(139, 0, 0, 0.5);
  border: 1px solid rgba(255,0,0,0.3);
  border-radius: 8px;
  color: white;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
}

.launder-btn:hover:not(:disabled) {
  background: rgba(139, 0, 0, 0.8);
}

.launder-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.fight-club-warning {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-style: italic;
  padding: 0.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

/* News Ticker */
.news-ticker {
  background: rgba(0,0,0,0.8);
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  overflow: hidden;
}

.ticker-label {
  color: #ef4444;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.ticker-content {
  color: var(--text-light);
  font-size: 0.85rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 300;
  padding: 1rem;
}

.event-modal {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  border: 2px solid var(--gold);
  border-radius: 16px;
  padding: 2rem;
  max-width: 450px;
  width: 100%;
  text-align: center;
  animation: modalSlide 0.3s ease;
}

@keyframes modalSlide {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.event-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.event-icon.danger { animation: shake 0.5s ease-in-out infinite; }
.event-icon.critical { animation: shake 0.3s ease-in-out infinite; }

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

.event-text {
  font-size: 1.1rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.event-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

.event-btn {
  padding: 0.75rem 1.25rem;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.9rem;
}

.event-btn.bribe {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: #000;
}

.event-btn.accept {
  background: linear-gradient(135deg, #15803d, #22c55e);
  color: white;
}

.event-btn.payoff {
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  color: white;
}

.event-btn.ignore {
  background: rgba(255,255,255,0.1);
  color: white;
  border: 1px solid rgba(255,255,255,0.2);
}

.event-btn:hover:not(:disabled) {
  transform: scale(1.05);
}

.event-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Tutorial Modal */
.tutorial-modal {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  border: 2px solid var(--gold);
  border-radius: 16px;
  padding: 2rem;
  max-width: 500px;
  width: 100%;
  text-align: center;
  animation: modalSlide 0.3s ease;
}

.tutorial-avatar {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.tutorial-modal h2 {
  font-family: 'Playfair Display', serif;
  color: var(--gold);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.tutorial-modal p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-light);
  margin-bottom: 1.5rem;
  font-style: italic;
}

.tutorial-btn {
  padding: 1rem 2rem;
  background: linear-gradient(135deg, var(--crimson-dark), var(--crimson));
  border: none;
  border-radius: 8px;
  color: white;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.tutorial-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 24px rgba(139, 0, 0, 0.5);
}

/* Game Over Screen */
.game-over-modal {
  background: linear-gradient(135deg, var(--charcoal) 0%, #0d0d0f 100%);
  border: 3px solid;
  border-radius: 20px;
  padding: 2.5rem;
  max-width: 500px;
  width: 100%;
  text-align: center;
  animation: modalSlide 0.4s ease;
}

.game-over-modal.won {
  border-color: var(--gold);
}

.game-over-modal.lost {
  border-color: #ef4444;
}

.game-over-modal h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 3rem;
  margin-bottom: 1rem;
  letter-spacing: 3px;
}

.game-over-modal.won h1 {
  color: var(--gold);
}

.game-over-modal.lost h1 {
  color: #ef4444;
}

.game-over-text {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.final-stats {
  background: rgba(0,0,0,0.4);
  padding: 1rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.restart-btn {
  padding: 1rem 2rem;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  border: none;
  border-radius: 8px;
  color: #000;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.restart-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.5);
}

/* Footer */
.game-footer {
  background: rgba(0,0,0,0.8);
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  border-top: 1px solid rgba(255,255,255,0.1);
}

.game-footer a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.2s;
}

.game-footer a:hover {
  color: var(--gold-dark);
}

.footer-secret {
  font-style: italic;
  opacity: 0.6;
}

/* Responsive */
@media (max-width: 900px) {
  .main-content {
    flex-direction: column;
  }

  .ceo-sidebar {
    width: 100%;
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .ceo-avatar-section {
    flex: 0 0 auto;
  }

  .goals-section,
  .achievements {
    flex: 1;
    min-width: 150px;
  }

  .header-content {
    justify-content: center;
    text-align: center;
  }

  .logo-text {
    font-size: 1.4rem;
  }

  .fight-club-panel {
    max-height: 80vh;
  }

  .game-footer {
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 500px) {
  .businesses-grid {
    grid-template-columns: 1fr;
  }

  .header-stats {
    justify-content: center;
    width: 100%;
  }

  .stat-box {
    flex: 1;
    min-width: 80px;
  }

  .fighters-grid {
    grid-template-columns: 1fr;
  }

  .fight-club-stats {
    flex-direction: column;
  }

  .fc-stat {
    width: 100%;
  }

  .event-actions {
    flex-direction: column;
  }

  .event-btn {
    width: 100%;
  }
}