.league-lobby-identity-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.league-lobby-roster-emblem {
  display: inline-grid;
  width: 2.15rem;
  height: 2.15rem;
  flex: 0 0 2.15rem;
  place-items: center;
}

.league-lobby-roster-emblem svg,
.league-identity-crest svg,
.live-league-ribbon-emblem svg {
  display: block;
  width: 100%;
  height: 100%;
}

.public-lobby-roster > li:has(.league-lobby-roster-emblem) {
  grid-template-columns: 2.15rem minmax(0, 1fr) auto;
  align-items: center;
}

.league-identity-backdrop {
  position: fixed;
  z-index: 1200;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgb(23 18 13 / 72%);
  backdrop-filter: blur(2px);
}

.league-identity-sheet {
  width: min(31rem, 100%);
  max-height: calc(100dvh - 2rem);
  overflow: auto;
  padding: 1.35rem;
  color: #2e261d;
  border: 3px double #80533c;
  outline: 1px solid #d7bd91;
  background:
    repeating-linear-gradient(0deg, transparent 0 24px, rgb(117 84 51 / 7%) 25px),
    #f8f0dc;
  box-shadow: 0 14px 45px rgb(0 0 0 / 42%);
}

.league-identity-sheet header {
  padding-bottom: 0.8rem;
  border-bottom: 3px double #8b6547;
  text-align: center;
}

.league-identity-sheet h3 {
  margin: 0.18rem 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.7rem, 7vw, 2.35rem);
}

.league-identity-crest {
  display: block;
  width: 7.5rem;
  height: 7.5rem;
  margin: 1rem auto;
  filter: drop-shadow(0 4px 4px rgb(54 37 22 / 20%));
}

.league-identity-name,
.league-identity-name > span,
.league-identity-option > span,
.league-identity-colors label > span {
  display: block;
}

.league-identity-name > span,
.league-identity-option > span,
.league-identity-colors label > span {
  margin-bottom: 0.3rem;
  color: #7b4734;
  font-family: "Courier New", monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.league-identity-name input {
  width: 100%;
}

.league-identity-design {
  margin-top: 1rem;
  border-top: 1px solid #cdbb98;
}

.league-identity-option {
  display: grid;
  grid-template-columns: 5rem minmax(0, 1fr);
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid #d9c7a8;
}

.league-identity-option > div {
  display: grid;
  grid-template-columns: 2.35rem minmax(0, 1fr) 2.35rem;
  align-items: center;
  gap: 0.35rem;
}

.league-identity-option button {
  min-height: 2.2rem;
  color: #70412f;
  border: 1px solid #b99d77;
  background: #fff8e8;
  font-family: Georgia, serif;
  font-size: 1.5rem;
}

.league-identity-option strong {
  overflow: hidden;
  font-family: Georgia, serif;
  font-size: 0.9rem;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.league-identity-colors {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
  margin-top: 1rem;
}

.league-identity-colors input[type="color"] {
  width: 100%;
  height: 2.5rem;
  padding: 0.16rem;
  border: 1px solid #b99d77;
  background: #fff8e8;
}

.league-identity-sheet footer {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 0.65rem;
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 3px double #8b6547;
}

.league-identity-sheet footer button {
  width: 100%;
}

.live-league-ribbon-emblem:has(svg) {
  overflow: visible;
  border: 0;
  background: transparent;
}

@media (max-width: 520px) {
  .league-identity-sheet {
    padding: 1rem;
  }

  .league-identity-colors .live-small-button {
    min-height: 2.45rem;
  }
}
