/* Live Stats Dashboard */
.live-stats-dashboard {
  padding: 16px;
  max-width: 900px;
  margin: 0 auto;
}

.ls-narrative-card {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.ls-narrative-text {
  font-size: 1.3rem;
  font-weight: 600;
  color: #e0e0e0;
  line-height: 1.4;
}

.ls-loading, .ls-empty, .ls-fallback {
  text-align: center;
  color: #888;
  padding: 24px;
}

.ls-fallback .ls-hint {
  font-size: 0.85rem;
  margin-top: 8px;
  color: #666;
}

.ls-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.ls-agent-card {
  background: #1e1e2e;
  border-radius: 10px;
  padding: 16px;
  border: 1px solid #333;
  transition: transform 0.2s, box-shadow 0.2s;
}

.ls-agent-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.ls-agent-card.ls-leader {
  border-color: #ffd700;
  background: linear-gradient(135deg, #1e1e2e 0%, #2d2a1e 100%);
}

.ls-agent-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.ls-rank { font-size: 1.2rem; }
.ls-name { font-weight: 600; color: #e0e0e0; flex: 1; }

.ls-tier {
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: 500;
}

.ls-tier-newcomer { background: #555; color: #ccc; }
.ls-tier-settler { background: #2d5a2d; color: #8fbc8f; }
.ls-tier-tycoon { background: #5a4a2d; color: #daa520; }
.ls-tier-mogul { background: #5a2d5a; color: #da70d6; }

.ls-score {
  font-size: 2rem;
  font-weight: 700;
  color: #ffd700;
  margin: 4px 0;
}

.ls-details {
  display: flex;
  gap: 12px;
  font-size: 0.85rem;
  color: #999;
}

/* Momentum */
.ls-section-title {
  font-size: 1.1rem;
  color: #e0e0e0;
  margin-bottom: 12px;
}

.ls-momentum-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.ls-momentum-card {
  background: #1e1e2e;
  border-radius: 8px;
  padding: 12px;
  border-left: 4px solid #555;
}

.ls-trend-surging { border-left-color: #4caf50; }
.ls-trend-steady { border-left-color: #2196f3; }
.ls-trend-slowing { border-left-color: #ff9800; }
.ls-trend-stalled { border-left-color: #f44336; }

.ls-momentum-agent { font-weight: 600; color: #e0e0e0; }
.ls-momentum-trend { font-size: 0.85rem; margin: 4px 0; }
.ls-momentum-deltas {
  display: flex;
  gap: 10px;
  font-size: 0.8rem;
  color: #999;
}

.ls-projected {
  font-size: 0.8rem;
  color: #ffd700;
  margin-top: 4px;
}

/* Footer */
.ls-footer {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #666;
  padding-top: 8px;
  border-top: 1px solid #333;
}

/* Light mode */
[data-theme="light"] .ls-narrative-card {
  background: linear-gradient(135deg, #f0f0ff 0%, #e8eaf6 100%);
  border-color: #ddd;
}
[data-theme="light"] .ls-narrative-text { color: #333; }
[data-theme="light"] .ls-agent-card { background: #fff; border-color: #ddd; }
[data-theme="light"] .ls-agent-card.ls-leader { background: linear-gradient(135deg, #fff 0%, #fff8e1 100%); }
[data-theme="light"] .ls-name { color: #333; }
[data-theme="light"] .ls-score { color: #b8860b; }
[data-theme="light"] .ls-details { color: #666; }
[data-theme="light"] .ls-section-title { color: #333; }
[data-theme="light"] .ls-momentum-card { background: #fff; }
[data-theme="light"] .ls-momentum-agent { color: #333; }
[data-theme="light"] .ls-momentum-deltas { color: #666; }
[data-theme="light"] .ls-footer { color: #999; border-top-color: #ddd; }

/* Mobile */
@media (max-width: 768px) {
  .ls-grid { grid-template-columns: 1fr; }
  .ls-momentum-grid { grid-template-columns: 1fr; }
  .ls-narrative-text { font-size: 1.1rem; }
  .ls-score { font-size: 1.6rem; }
  .ls-details { flex-wrap: wrap; }
}
