.evolution-dialog {
  box-sizing: border-box;
  width: min(850px, calc(100% - 24px));
  max-width: 100%;
  max-height: calc(100dvh - 24px);
  padding: 16px;
  overflow: auto;
  color: var(--v2-text, #f0f0f0);
  background: var(--v2-card, #181818);
  border: 1px solid var(--v2-border, #383838);
  border-radius: 12px;
}

.evolution-dialog::backdrop {
  background: rgba(0, 0, 0, 0.7);
}

.evolution-dialog-header {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.evolution-dialog-header h2 {
  margin: 0;
  font-size: 1.125rem;
}

.evolution-dialog-close {
  flex-shrink: 0;
  padding: 7px 12px;
  color: inherit;
  background: #242424;
  border: 1px solid #454545;
  border-radius: 6px;
  cursor: pointer;
}

.evolution-dialog-path {
  display: flex;
  overflow-x: auto;
  gap: 6px;
  margin: 0;
  padding: 6px 4px 10px;
  list-style: none;
}

.evolution-dialog-path + .evolution-dialog-path {
  margin-top: 8px;
  border-top: 1px solid #373737;
}

.evolution-dialog-step {
  display: flex;
  flex: 0 0 auto;
  gap: 6px;
  align-items: center;
}

.evolution-dialog-arrow {
  position: relative;
  flex: 0 0 16px;
  height: 12px;
  color: #bbb;
}

.evolution-dialog-arrow::before,
.evolution-dialog-arrow::after {
  position: absolute;
  content: "";
}

.evolution-dialog-arrow::before {
  top: 5px;
  inset-inline: 0 2px;
  border-top: 2px solid currentColor;
}

.evolution-dialog-arrow::after {
  top: 2px;
  right: 2px;
  width: 6px;
  height: 6px;
  border: solid currentColor;
  border-width: 2px 2px 0 0;
  transform: rotate(45deg);
}

.evolution-dialog-card {
  display: flex;
  flex-direction: column;
  align-self: stretch;
  gap: 5px;
  width: clamp(104px, 26vw, 134px);
  min-width: 0;
  padding: 6px;
  color: inherit;
  background: #212121;
  border: 1px solid #444;
  border-radius: 8px;
  text-decoration: none;
}

.evolution-dialog-card[aria-current="step"],
a.evolution-dialog-card:hover {
  border-color: #f6c85f;
}

.evolution-dialog-art {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: #131313;
  border-radius: 5px;
}

.evolution-dialog-art > :first-child {
  width: 100%;
  height: 100%;
}

.evolution-dialog-art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.evolution-dialog-placeholder {
  position: relative;
  color: #3d3d3d;
}

.evolution-dialog-placeholder::before,
.evolution-dialog-placeholder::after {
  position: absolute;
  left: 50%;
  background: currentColor;
  content: "";
  transform: translateX(-50%);
}

.evolution-dialog-placeholder::before {
  top: 21%;
  width: 28%;
  aspect-ratio: 1;
  border-radius: 50%;
}

.evolution-dialog-placeholder::after {
  bottom: 21%;
  width: 54%;
  height: 30%;
  border-radius: 45% 45% 15% 15%;
}

.evolution-dialog-number {
  position: absolute;
  top: 4px;
  right: 4px;
}

.evolution-dialog-name,
.evolution-dialog-embedded {
  overflow-wrap: anywhere;
}

.evolution-dialog-name {
  font-size: 0.8125rem;
}

.evolution-dialog-embedded {
  color: #bbb;
}
