/* Polished 2D bubble pack — overrides + extensions to bubble.css */

/* 2-button group-by row */
.seg.seg-2 { grid-template-columns: repeat(2, 1fr) !important; }

/* Canvas */
.canvas-wrap {
  background: radial-gradient(ellipse at center, #0e1626 0%, #07090f 100%);
  border: 1px solid var(--border);
  border-radius: 10px;
  position: relative;
  min-height: 740px;
  overflow: hidden;
}
#bubbles {
  display: block;
  width: 100%;
  height: 100%;
}

/* Bubbles */
g.bubble { transition: opacity 0.25s; }
g.bubble.dimmed { opacity: 0.2; }
g.bubble.focal { filter: drop-shadow(0 0 14px rgba(245,158,11,0.55)); }

g.bubble:hover circle.bubble-circle {
  filter: brightness(1.1);
}
g.bubble:hover circle.bubble-ring {
  stroke: #fff !important;
  stroke-width: 2.5 !important;
}

/* The little label inside each bubble (name / net worth) */
text.bubble-label {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  fill: #fff;
  paint-order: stroke;
  stroke: rgba(0,0,0,0.55);
  stroke-width: 3px;
  stroke-linejoin: round;
  pointer-events: none;
  user-select: none;
  letter-spacing: 0.1px;
}
text.bubble-label.nw {
  fill: rgba(255,255,255,0.85);
  font-weight: 500;
}

/* Group rings */
text.group-label {
  font-family: ui-monospace, monospace;
  font-size: 11px;
  fill: var(--text-muted);
  letter-spacing: 0.6px;
  text-transform: uppercase;
  paint-order: stroke;
  stroke: rgba(7,9,15,0.85);
  stroke-width: 4px;
  stroke-linejoin: round;
  pointer-events: none;
  user-select: none;
}

/* Wealth-gap card (lead visual) */
.wealthgap-card {
  position: absolute;
  top: 18px; left: 18px;
  width: 280px;
  padding: 16px 18px;
  background: rgba(7, 9, 15, 0.82);
  border: 1px solid var(--border-strong);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  backdrop-filter: blur(10px);
  z-index: 20;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  pointer-events: none;
}
.wealthgap-card .wg-row {
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
}
.wealthgap-card .wg-big {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.5px;
}
.wealthgap-card .wg-tiny {
  font-size: 18px;
  font-weight: 600;
}
.wealthgap-card .wg-amber { color: var(--accent); }
.wealthgap-card .wg-green { color: #22c55e; }
.wealthgap-card .wg-tag {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.3px;
}
.wealthgap-card .wg-vs {
  font-size: 11px;
  color: var(--text-muted);
  margin: 4px 0;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}
.wealthgap-card .wg-mult {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin: 8px 0 6px;
  letter-spacing: 0.3px;
}
.wealthgap-card .wg-foot {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.45;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
  font-family: -apple-system, sans-serif;
}

/* Rushkoff tagline at bottom */
.rushkoff-tagline {
  position: absolute;
  bottom: 14px; left: 18px; right: 18px;
  font-size: 12px;
  font-style: italic;
  color: var(--text-dim);
  font-family: Georgia, serif;
  pointer-events: none;
  text-align: left;
  max-width: 720px;
  line-height: 1.5;
}
.rushkoff-tagline em {
  display: block;
  font-style: normal;
  color: var(--text-muted);
  font-size: 11px;
  margin-top: 2px;
  font-family: ui-monospace, monospace;
}

/* Embedded bunker map — same styles as bubble3d.css */
.bunker-panel { padding-bottom: 12px; }
.bunker-panel .panel-meta {
  font-family: ui-monospace, monospace;
  font-size: 10.5px;
  color: var(--text-muted);
  letter-spacing: 0.4px;
}
#embedded-map {
  display: block;
  width: 100%;
  height: auto;
  background: linear-gradient(135deg, #0a1020 0%, #07090f 100%);
  border-radius: 6px;
  border: 1px solid var(--border);
  margin-bottom: 8px;
}
#embedded-map g[transform] { transition: opacity 0.2s; }
.map-legend {
  display: flex; flex-wrap: wrap;
  gap: 12px 16px;
  font-family: ui-monospace, monospace;
  font-size: 10.5px;
  color: var(--text-muted);
  margin-top: 6px;
}
.map-legend .dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  margin-right: 4px;
  vertical-align: middle;
}

/* Refuge list / info panel additions */
.refuge-block { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); }
.refuge-block-title {
  font-family: ui-monospace, monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--accent);
  margin: 0 0 8px;
}
.refuge-list { list-style: none; margin: 0; padding: 0; }
.refuge-row {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.refuge-row:last-child { border-bottom: none; }
.r-head {
  display: flex; justify-content: space-between; gap: 8px;
  align-items: baseline; margin-bottom: 2px;
}
.r-name { font-weight: 600; font-size: 12.5px; color: var(--text); }
.r-tag {
  font-family: ui-monospace, monospace;
  font-size: 9.5px;
  border: 1px solid;
  padding: 1px 5px;
  border-radius: 2px;
  flex-shrink: 0;
}
.r-loc { font-size: 11.5px; color: var(--text-dim); }
.r-rumored {
  font-family: ui-monospace, monospace;
  font-size: 9px;
  color: var(--accent);
  background: rgba(245,158,11,0.12);
  padding: 1px 4px;
  border-radius: 2px;
  margin-left: 4px;
}
.r-status { font-size: 11px; color: var(--text-muted); margin-top: 2px; font-style: italic; }
.r-link {
  display: inline-block;
  margin-top: 4px;
  font-family: ui-monospace, monospace;
  font-size: 11px;
  color: var(--accent);
}

/* Scenarios panel */
.scenario-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 4px;
}
.scenario-row {
  display: grid;
  grid-template-columns: 14px 1fr auto;
  gap: 9px;
  align-items: center;
  padding: 8px 9px;
  border-radius: 5px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 120ms;
}
.scenario-row:hover {
  background: var(--bg-elev-2);
  border-color: var(--border-strong);
}
.scenario-row.active {
  background: rgba(245,158,11,0.08);
  border-color: var(--accent);
}
.scenario-swatch {
  width: 12px; height: 12px;
  border-radius: 3px;
  box-shadow: 0 0 8px currentColor;
  flex-shrink: 0;
}
.scenario-label {
  font-size: 12px;
  color: var(--text);
  font-family: ui-monospace, monospace;
  line-height: 1.3;
}
.scenario-tags {
  display: flex; gap: 4px; align-items: center;
}
.scenario-tag {
  font-family: ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.3px;
  padding: 1px 4px;
  border-radius: 3px;
  border: 1px solid;
  font-weight: 700;
}
.scenario-tag.bunker-yes { color: var(--accent); border-color: var(--accent); }
.scenario-tag.bunker-partial { color: #fbbf24; border-color: rgba(251,191,36,0.5); }
.scenario-tag.bunker-no { color: #ef4444; border-color: rgba(239,68,68,0.5); }
.scenario-count {
  font-family: ui-monospace, monospace;
  font-size: 10px;
  color: var(--text-muted);
}

/* Sources block — match bubble3d.css */
.sources-section {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 40px 24px;
}
.sources-inner { max-width: 1400px; margin: 0 auto; }
.sources-section h2 {
  margin: 0 0 8px;
  font-family: ui-monospace, monospace;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent);
}
.sources-intro {
  color: var(--text-dim);
  font-size: 13px;
  margin: 0 0 24px;
  max-width: 720px;
}
.sources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.src-group {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px 18px;
}
.src-group h3 {
  margin: 0 0 10px;
  font-family: ui-monospace, monospace;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
}
.src-group ul { margin: 0; padding: 0; list-style: none; }
.src-group li {
  padding: 5px 0;
  font-size: 12.5px;
  line-height: 1.4;
  border-bottom: 1px dotted var(--border);
}
.src-group li:last-child { border-bottom: none; }
.src-group li a {
  color: var(--link);
  word-break: break-word;
}
.src-group li a:hover { color: var(--accent); }
.src-note {
  margin-top: 10px;
  font-size: 11.5px;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.45;
}

/* Footer / manifesto-strip — fall through to bubble.css */
