/* Gond Filter (DS-091) — selectors prefixed .gd-, collision-safe */
.gd {
  --gd-text: #EAF0FA;
  --gd-muted: #94A0B6;
  --gd-shell: rgba(15, 20, 31, .78);
  --gd-shell-border: rgba(148, 163, 184, .18);
  --gd-chip: #202939;
  --gd-chip-border: #3B465A;
  --gd-chip-text: #D9E2F0;
  --gd-resin: #F2A93B;
  --gd-resin-2: #FFD37A;
  --gd-resin-ink: #241503;
  --gd-pill: #111826;
  --gd-pill-border: #475166;
  box-sizing: border-box;
  width: min(760px, 100%);
  color: var(--gd-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.gd *, .gd *::before, .gd *::after { box-sizing: inherit; }
.gd-svg { position: absolute; width: 0; height: 0; overflow: hidden; }

.gd-shell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 9px 10px;
  border: 1px solid var(--gd-shell-border);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,0) 42%),
    var(--gd-shell);
  box-shadow: 0 18px 44px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.06);
  overflow: visible;
}

.gd-cluster {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  min-width: 126px;
  overflow: visible;
}

.gd-pill {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  min-height: 40px;
  padding: 8px 15px 8px 16px;
  border: 1px solid var(--gd-pill-border);
  border-radius: 999px;
  background: linear-gradient(180deg, #182133, var(--gd-pill));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 7px 18px rgba(0,0,0,.28);
  white-space: nowrap;
}

.gd-count {
  color: var(--gd-resin-2);
  font-size: 17px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.01em;
}

.gd-word {
  color: var(--gd-muted);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.gd-active {
  display: flex;
  align-items: center;
  margin-left: -7px;
}

.gd-pool {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.gd-chip {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  margin: 0;
  padding: 9px 15px;
  border: 1px solid var(--gd-chip-border);
  border-radius: 999px;
  appearance: none;
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,0)), var(--gd-chip);
  color: var(--gd-chip-text);
  font: inherit;
  font-size: 13px;
  font-weight: 720;
  letter-spacing: .01em;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.045);
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
  touch-action: manipulation;
}

.gd-chip:hover {
  border-color: #56637C;
  background-color: #263247;
}

.gd-chip:active { transform: translateY(1px); }

.gd-chip:focus-visible {
  outline: 2px solid var(--gd-resin-2);
  outline-offset: 3px;
}

.gd-chip.gd-on {
  z-index: 3;
  margin-left: -4px;
  border-color: rgba(255, 220, 150, .45);
  background:
    radial-gradient(circle at 28% 18%, rgba(255,255,255,.34), transparent 28%),
    linear-gradient(180deg, var(--gd-resin-2), var(--gd-resin));
  color: var(--gd-resin-ink);
  box-shadow: 0 8px 20px rgba(242,169,59,.18), inset 0 -1px 0 rgba(90,48,0,.18);
}

.gd-chip.gd-on + .gd-chip.gd-on { margin-left: -8px; }

.gd-pill.gd-bump { animation: gd-bump 230ms cubic-bezier(.2,.8,.2,1); }

@keyframes gd-bump {
  0% { transform: scale(1); }
  45% { transform: scale(1.045, .94); }
  100% { transform: scale(1); }
}

.gd-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 560px) {
  .gd-shell { align-items: flex-start; border-radius: 28px; flex-direction: column; }
  .gd-cluster { min-width: 0; }
  .gd-pool { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .gd-chip, .gd-pill.gd-bump { animation: none; transition: none; }
}
