#dialogue[data-kind="chat"] {
  background-image: url("opening-dialogue.png");
  background-position: center;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  display: grid;
  grid-template-rows: 40px minmax(min-content, 1fr) auto auto;
}

#dialogue[data-kind="chat"] .dialogue-ornament {
  display: none;
}

#dialogue[data-kind="chat"] #speaker {
  background-image: none;
  position: absolute;
  top: 27.7%;
  left: 13%;
  width: 15.5%;
  min-width: 0;
  margin: 0;
  padding: 0;
  font-size: clamp(14px, 2.5vw, 17px);
  text-align: center;
  white-space: nowrap;
  transform: translate(-50%, -50%);
}

#dialogue[data-kind="chat"] #line {
  grid-row: 2;
  align-self: center;
  min-width: 0;
  min-height: 0;
  text-align: center;
  transform: translateY(-8px);
}

#dialogue[data-kind="chat"] #inlineImage {
  grid-row: 3;
  justify-self: center;
}

#dialogue[data-kind="chat"] #choices:empty {
  display: none;
}

#dialogue[data-kind="chat"] #next {
  grid-row: 4;
  justify-self: end;
  transform: translateY(-8px);
}
