.stack {
  display: grid;
  gap: 0.4rem;
}

.bar {
  height: 1.4rem;
  padding-inline: 0.4rem;
  color: white;
  background: slateblue;
  font: 0.75rem system-ui, sans-serif;
}

.five {
  width: 5rem;
}

.hypo {
  width: hypot(3rem, 4rem);
}