/* The bot card (ui/botcard.js): a bot's name, then its settings in a line
   or two, beside its well on the CPUvCPU and replay pages. The flank it
   sits in is narrow: the grid track takes the flank's width, an over-wide
   item wraps inside itself, and a long name is cut short. */

.bot-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.2rem;
  min-width: 0;
  font-size: var(--text-min);
  line-height: 1.35;
}

.bot-card-name {
  overflow: hidden;
  color: var(--text);
  font-size: var(--text-min);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.bot-card-line {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* Lines wrap between items and, when one is wider than the card, inside
   it, between its label and its value. */
.bot-card-item {
  display: inline-block;
  max-width: 100%;
  vertical-align: top;
}
