/* God-Mode & Disaster Toolbar Styles */
.god-bar {
  position: absolute;
  top: 56px;
  left: 12px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 5px 8px;
  border-radius: var(--r-lg, 12px);
  border: 1px solid var(--border, #e5e5e5);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  pointer-events: auto;
  user-select: none;
  animation: god-slide-in 0.25s cubic-bezier(0.2, 0.7, 0.2, 1);
}

@keyframes god-slide-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.god-title {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-2, #727272);
  padding: 0 4px 0 2px;
  border-right: 1px solid var(--border, #e5e5e5);
  margin-right: 2px;
}

.god-btn {
  height: 28px;
  padding: 0 9px;
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--r-sm, 6px);
  border: 1px solid var(--border, #e5e5e5);
  background: var(--surface, #fff);
  color: var(--text, #202123);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.god-btn:hover {
  background: var(--hover, #f0f0f2);
  border-color: var(--border-strong, #d4d4d8);
  transform: translateY(-1px);
}

.god-btn:active {
  transform: translateY(1px);
}

.god-btn.danger {
  color: #b91c1c;
  border-color: #fecaca;
  background: #fff5f5;
}

.god-btn.danger:hover {
  background: #fee2e2;
  border-color: #fca5a5;
}

.god-btn.peace {
  color: #15803d;
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.god-btn.peace:hover {
  background: #dcfce7;
  border-color: #86efac;
}

.god-btn.sfx-btn {
  color: var(--text-2, #727272);
  padding: 0 7px;
}

/* Population Live Chip */
.pop-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 10px;
  border-radius: var(--r, 8px);
  background: var(--surface, #fff);
  border: 1px solid var(--border, #e5e5e5);
  font-size: 12.5px;
  font-weight: 600;
  box-shadow: var(--shadow-sm, 0 1px 2px rgba(0, 0, 0, 0.05));
  cursor: pointer;
  pointer-events: auto;
  transition: border-color 0.15s ease;
}

.pop-chip:hover {
  border-color: var(--border-strong, #d4d4d8);
}

.pop-badge-born {
  color: #16a34a;
  font-size: 11.5px;
}

.pop-badge-fallen {
  color: #dc2626;
  font-size: 11.5px;
}

/* Citizen Bio Inspector Card */
.citizen-bio-card {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border, #e5e5e5);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.citizen-bio-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}

.citizen-bio-label {
  color: var(--text-2, #727272);
}

.citizen-bio-value {
  font-weight: 600;
  color: var(--text, #202123);
}

.citizen-meter {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
}

.citizen-meter-bar {
  flex: 1;
  height: 5px;
  background: #e5e7eb;
  border-radius: 3px;
  overflow: hidden;
}

.citizen-meter-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.3s ease;
}

.meter-health { background: #ef4444; }
.meter-happiness { background: #10b981; }

.citizen-thought {
  margin-top: 4px;
  padding: 6px 10px;
  background: var(--fill, #efeff1);
  border-radius: var(--r-sm, 6px);
  font-size: 11.5px;
  color: #374151;
  font-style: italic;
  line-height: 1.35;
  border-left: 2px solid #8e8e96;
}

/* Demographics Modal */
.demo-dialog {
  border: 1px solid var(--border, #e5e5e5);
  background: var(--surface, #fff);
  border-radius: 14px;
  box-shadow: 0 20px 48px rgba(0,0,0,0.18);
  padding: 20px 24px;
  width: min(380px, 90vw);
  max-width: 90vw;
  color: var(--text, #202123);
}

.demo-dialog::backdrop {
  background: rgba(32, 33, 35, 0.4);
}

.demo-title {
  margin: 0 0 14px;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.demo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.demo-stat-box {
  background: var(--fill, #efeff1);
  padding: 10px 12px;
  border-radius: 8px;
}

.demo-stat-val {
  font-size: 20px;
  font-weight: 700;
}

.demo-stat-lbl {
  font-size: 11.5px;
  color: var(--text-2, #727272);
  margin-top: 2px;
}

@media (max-width: 768px) {
  .god-bar {
    top: 50px;
    left: 8px;
    right: 8px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .god-bar::-webkit-scrollbar { display: none; }
}
