.overlay {
  width: 720px;
  height: 480px;
  max-width: 95vw;
  max-height: 95vh;
  margin: auto;
  border: none;
  background-color: #fdbf5b;
  background: url("../img/misc/info_bg.png") no-repeat center/contain;
}

.overlay:focus {
  outline: none;
}

dialog::backdrop {
  background-color: black;
  opacity: 0.75;
}

.overlay-inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 0 auto;
  max-width: 400px;
  height: 100%;
  border-radius: 12px;
  padding-inline: 36px;
  padding-block: 8px;
  overflow: hidden;
  font-weight: 500;
}

.story-info-wrapper,
.imprint-info-wrapper {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 16px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #fdbf5b #251606;
}

.imprint-info-wrapper {
  margin-block: 4rem;
}

.imprint-info-wrapper p {
  margin-block: 0.5rem;
}

.imprint-info-wrapper strong {
  font-size: 18px;
  font-weight: 700;
}

.controls-info-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-inline: 24px;
}

.overlay-title {
  text-align: center;
  font-size: 28px;
  font-weight: 500;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
  padding-top: 8px;
}

.close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background-color: #c9772a;
  border: none;
  font-size: 1.5rem;
  width: 32px;
  height: 32px;
  font-weight: bold;
  border-radius: 50%;
}

.close-btn:hover {
  background-color: #bf6800;
}

.control-info-text {
  padding-inline: 4px;
}

.key {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: #333;
  color: #fff;
  font-weight: bold;
  font-family: sans-serif;
  border-radius: 6px;
  box-shadow: inset 0 -3px #111;
  text-align: center;
  line-height: 1;
  flex: 0 0 auto;
}

.key.space {
  width: 80px;
}

.key.arrow {
  font-size: 20px;
}

.control-info-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #333;
  color: #fff;
}
