.stage {
  position: relative;
  height: 5.5rem;
}

.box {
  position: absolute;
  width: 9rem;
  padding: 0.5rem;
  color: white;
}

.a {
  z-index: 2;
  top: 0;
  left: 0;
  background-color: teal;
}

.b {
  z-index: 1;
  top: 1.5rem;
  left: 3rem;
  background-color: tomato;
}