/* KingPickz Swarm overlay: brand alignment + live council panel styling.
   Loaded after the app CSS; only overrides what it names. */

:root {
  --kp-gold: #f5b942;
  --kp-panel: #121923;
  --kp-line: #263548;
  --kp-text: #edf3f8;
  --kp-muted: #91a0b2;
  --kp-good: #58d68d;
}

/* ---- Brand ----
   Deterministic: the Vue app re-renders the wordmark constantly (typing
   animation), so JS text swaps race and lose. CSS content always wins. */
.nav-brand {
  font-size: 0 !important;
  color: var(--kp-text) !important;
}
.nav-brand::before {
  content: "KINGPICKZ";
  font-size: 17px;
  font-weight: 800;
  letter-spacing: .05em;
  color: var(--kp-text);
}
.nav-brand::after {
  content: " SWARM";
  font-size: 17px;
  color: var(--kp-gold);
  font-weight: 800;
  letter-spacing: .12em;
}

/* ---- Live council panel ---- */
#kp-council {
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 340px;
  max-height: 62vh;
  overflow: hidden auto;
  background: var(--kp-panel);
  border: 1px solid var(--kp-line);
  border-radius: 10px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, .45);
  font: 13px/1.45 Inter, system-ui, sans-serif;
  color: var(--kp-text);
  z-index: 2200;
}
#kp-council.kp-collapsed { height: auto; overflow: hidden; }
#kp-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--kp-line);
  position: sticky;
  top: 0;
  background: var(--kp-panel);
  cursor: pointer;
  user-select: none;
}
#kp-head .kp-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--kp-good);
  animation: kp-pulse 2s infinite;
}
@keyframes kp-pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
#kp-head strong { font-weight: 750; letter-spacing: .02em; }
#kp-head .kp-sub { color: var(--kp-muted); font-size: 11px; margin-left: auto; }
#kp-body { padding: 8px 12px 12px; }
.kp-row {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 8px;
  align-items: baseline;
  padding: 7px 0;
  border-bottom: 1px solid rgba(38, 53, 72, .55);
}
.kp-row:last-child { border-bottom: 0; }
.kp-sport {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
  color: var(--kp-gold);
  text-transform: uppercase;
}
.kp-pick { color: var(--kp-text); }
.kp-pick .kp-side { font-weight: 700; }
.kp-pick .kp-ou { color: var(--kp-muted); font-size: 12px; }
.kp-conf {
  font: 11px "JetBrains Mono", monospace;
  color: var(--kp-good);
  white-space: nowrap;
}
.kp-err { color: #f4bd64; font-size: 12px; }
.kp-foot {
  padding: 7px 12px 10px;
  color: var(--kp-muted);
  font-size: 11px;
  display: flex;
  gap: 10px;
  align-items: center;
}
.kp-foot a { color: var(--kp-gold); text-decoration: none; }
.kp-foot a:hover { text-decoration: underline; }
#kp-min { margin-left: auto; background: none; border: 0; color: var(--kp-muted); cursor: pointer; font-size: 13px; }
#kp-min:hover { color: var(--kp-text); }

@media (max-width: 720px) {
  #kp-council { left: 12px; right: 12px; width: auto; max-height: 46vh; }
}
