/* Metric badge: a signal/timeline meter + label, on the electric royal-blue
   gradient sampled from the crypto dataset banner. Shared by the coverage tier
   badge (detail pages) and the pack-size badge (consolidated store panels). */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 15px 7px 12px;
  border-radius: 11px;
  background: linear-gradient(135deg, #2b46f5 0%, #1626c9 100%);
  color: #fff;
  font: 640 13.5px var(--font-sans, system-ui);
  letter-spacing: 0.01em;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    0 6px 20px -7px rgba(28, 46, 210, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
/* top glass sheen */
.badge::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 52%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0));
  pointer-events: none;
}
/* faint diagonal light streak */
.badge::after {
  content: "";
  position: absolute;
  top: -40%;
  left: -20%;
  width: 40%;
  height: 180%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.14), transparent);
  transform: rotate(18deg);
  pointer-events: none;
}

/* timeline icon: a bounded range with the covered window filled */
.icon {
  width: 27px;
  height: 14px;
  flex: none;
  position: relative;
  overflow: visible;
}
.track {
  stroke: rgba(255, 255, 255, 0.3);
  stroke-width: 2;
  stroke-linecap: round;
}
.tick {
  stroke: rgba(255, 255, 255, 0.42);
  stroke-width: 1.5;
  stroke-linecap: round;
}
.fill {
  stroke: #fff;
  stroke-width: 2.5;
  stroke-linecap: round;
}
.dot {
  fill: #fff;
  filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.7));
}

.label {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  line-height: 1;
}
.kicker {
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
  margin-bottom: 3px;
}
.value {
  font-size: 13.5px;
  font-weight: 660;
  /* A column of these can be prices (the TWAP panel spends the badge on price
     rather than coverage), and proportional figures make $1.50 and $2.50 sit
     at different widths. */
  font-variant-numeric: tabular-nums;
}

@media (prefers-reduced-motion: reduce) {
  .badge::after {
    display: none;
  }
}

/* ── Coverage + Date-Range combo: blue badge that extends into a white panel ── */
.combo {
  display: inline-flex;
  align-items: stretch;
  border-radius: 11px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface-1, #fff);
  box-shadow: 0 6px 20px -8px rgba(28, 46, 210, 0.32);
}
.comboBlue {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 12px;
  background: linear-gradient(135deg, #2b46f5 0%, #1626c9 100%);
  color: #fff;
  position: relative;
}
.comboBlue::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 52%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0));
  pointer-events: none;
}
.comboWhite {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 6px 15px 6px 14px;
  background: var(--surface-1, #fff);
}
.extKicker {
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-4, #64748b);
  line-height: 1;
}
.extValue {
  font-family: var(--font-mono, monospace);
  font-size: 12.5px;
  font-weight: 640;
  color: var(--ink-1, #0a0a0c);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  white-space: nowrap;
}

/* date range: the same kicker + value format, no container — plain text beside
   the blue badge. */
.dateChip {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}
/* composition lists (leagues/tours/games) can run long — let the value wrap
   inside its grid column instead of overflowing the row. */
.dateChipWrap .extValue {
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.3;
}
