.evolution-badge {
  --evolution-color: #e6bb7a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.2em;
  min-width: 1.5rem;
  min-height: 1.5rem;
  box-sizing: border-box;
  padding: 0.125rem 0.3rem;
  border: 1px solid var(--evolution-color);
  border-radius: 0.35rem;
  background: #191919;
  color: var(--evolution-color);
  font: 700 0.75rem/1 system-ui, sans-serif;
  white-space: nowrap;
}

.evolution-badge[data-tone="1"] { --evolution-color: #8ed6ff; }
.evolution-badge[data-tone="2"] { --evolution-color: #83dda7; }
.evolution-badge[data-tone="3"] { --evolution-color: #f7ce72; }
.evolution-badge[data-tone="4"] { --evolution-color: #ff9fa2; }
.evolution-badge[data-tone="5"] { --evolution-color: #d9b2ff; }
.evolution-badge[data-tone="6"] { --evolution-color: #ffb481; }
.evolution-badge[data-tone="7"] { --evolution-color: #9fe2da; }
.evolution-badge[data-tone="8"] { --evolution-color: #f5b0da; }

.evolution-badge:not([data-branched])::before {
  content: "";
  width: .37rem;
  height: .37rem;
  margin-top: .18rem;
  border-top: 1px solid currentColor;
  border-left: 1px solid currentColor;
  transform: rotate(45deg);
}

.evolution-badge[data-branched]::before {
  content: "";
  width: .72rem;
  height: .67rem;
  background:
    linear-gradient(currentColor, currentColor) left center / 48% 1px,
    linear-gradient(135deg, transparent 42%, currentColor 43% 57%, transparent 58%) right top / 55% 55%,
    linear-gradient(45deg, transparent 42%, currentColor 43% 57%, transparent 58%) right bottom / 55% 55%;
  background-repeat: no-repeat;
}
