:root {
  --background: #0b0e14;
  --card: #131823;
  --border: #252f42;
  --foreground: #eef2f8;
  --muted-foreground: #94a3b8;
  --placeholder: #64748b;
  --primary: #3b82f6;
  --primary-foreground: #ffffff;
  --link: #60a5fa;
  --success: #22c55e;
  --warning: #f59e0b;
  --error: #ef4444;
  --chart-2: #a855f7;
  --d2pt-bg: rgba(168, 85, 247, 0.14);
  --d2pt-border: rgba(168, 85, 247, 0.45);
  --d2pt-label: #c084fc;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --background: #f4f6fa;
  --card: #ffffff;
  --border: #d6dde8;
  --foreground: #0f172a;
  --muted-foreground: #475569;
  --placeholder: #94a3b8;
  --primary: #2563eb;
  --primary-foreground: #ffffff;
  --link: #1d4ed8;
  --success: #16a34a;
  --warning: #d97706;
  --error: #dc2626;
  --chart-2: #7c3aed;
  --d2pt-bg: rgba(124, 58, 237, 0.09);
  --d2pt-border: rgba(124, 58, 237, 0.38);
  --d2pt-label: #7c3aed;
  color-scheme: light;
}
.d2pt-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  vertical-align: middle;
  background-color: var(--d2pt-bg);
  border: 1px solid var(--d2pt-border);
}
.d2pt-lbl { color: var(--d2pt-label); }
.fp-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  vertical-align: middle;
}
.d2pt-tooltip {
  position: fixed;
  z-index: 80;
  pointer-events: none;
  background-color: var(--card);
  color: var(--foreground);
  border: 1px solid var(--d2pt-border);
  border-radius: 0.5rem;
  padding: 0.45rem 0.6rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.45);
  max-width: 260px;
  font-size: 11px;
  line-height: 1.35;
}
html, body {
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--background); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--muted-foreground); }

.tab-btn[data-active="true"] { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }
.pill-btn[data-active="true"], .scope-btn[data-active="true"] { background-color: var(--primary); color: var(--primary-foreground); border-color: var(--primary); font-weight: 600; }
.ban-portrait { filter: grayscale(88%) brightness(0.68); }
.ban-slash::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top right, transparent calc(50% - 1.5px), var(--error) 50%, transparent calc(50% + 1.5px));
  opacity: 0.82; pointer-events: none;
}
.staged-ring { outline: 2px solid var(--warning); outline-offset: 1px; z-index: 2; }
.combo-broken-preview { opacity: 0.48; filter: grayscale(65%); border-color: var(--error) !important; }
.combo-complete-preview { border-color: var(--success) !important; box-shadow: 0 0 0 1px var(--success); }
.combo-unlock-preview { border-color: var(--primary) !important; box-shadow: 0 0 0 1px var(--primary); }
.combo-danger-preview { border-color: var(--warning) !important; box-shadow: 0 0 0 1px var(--warning); }
.hero-btn:disabled { opacity: 0.22; filter: grayscale(100%); cursor: not-allowed; }
.pool-chip:disabled { opacity: 0.34; cursor: not-allowed; }
.row-flash { box-shadow: 0 0 0 2px var(--primary); }
