@supports selector(:has(*)) {
  html:has(body.create-league-page) {
    min-height: 100%;
    height: auto;
  }
}

body.create-league-page {
  min-height: 100vh;
  height: auto;
  overflow-x: hidden;
  overflow-y: auto;
  background: var(--site-background);
  background-color: var(--paper);
}

body.create-league-page::before,
body.create-league-page::after {
  z-index: 0;
}

.create-league-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  height: auto;
  display: block;
  overflow: visible;
}

.create-league-main {
  --create-accent: #f25802;
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1760px;
  display: block;
  grid-template-rows: none;
  gap: 0;
  margin: clamp(18px, 2vw, 28px) auto 0;
  padding: 0 0 max(26px, env(safe-area-inset-bottom));
  background: transparent;
}

.create-league-breadcrumb {
  color: #57515b;
  font-size: 0.92rem;
  font-weight: 500;
}

.create-league-breadcrumb ol {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.create-league-breadcrumb a {
  border-radius: 4px;
  transition: color 160ms ease;
}

.create-league-breadcrumb a:hover,
.create-league-breadcrumb a:focus-visible {
  color: var(--orange-dark);
}

.create-league-heading {
  margin-top: 12px;
}

.create-league-heading h1 {
  margin: 0;
  color: #201f2a;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(2.3rem, 3vw, 3.45rem);
  font-style: normal;
  font-weight: 900;
  letter-spacing: -0.052em;
  line-height: 1;
  text-transform: none;
  transform: none;
}

.create-league-heading p {
  margin: 10px 0 0;
  color: #5f5962;
  font-size: clamp(0.92rem, 1vw, 1.08rem);
  font-weight: 500;
  line-height: 1.45;
}

.create-league-steps {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.create-league-steps li {
  min-width: 0;
  display: grid;
  grid-template-columns: auto auto minmax(24px, 1fr);
  align-items: center;
  gap: 10px;
  color: #44404b;
  font-size: 0.96rem;
  font-weight: 500;
}

.create-league-steps li:nth-child(2) {
  grid-template-columns: auto auto;
  justify-content: center;
}

.create-league-steps li:last-child {
  grid-template-columns: minmax(24px, 1fr) auto auto;
  justify-content: stretch;
}

.create-league-steps li:first-child::after,
.create-league-steps li:last-child::before {
  height: 1px;
  background: rgb(57 50 59 / 0.24);
  content: "";
}

.create-league-steps li:first-child::after {
  margin-left: 10px;
}

.create-league-steps li:last-child::before {
  margin-right: 10px;
}

.create-league-steps li > span {
  font-variant-numeric: tabular-nums;
}

.create-league-steps li > strong {
  font-weight: 500;
  white-space: nowrap;
}

.create-league-steps li.is-current {
  color: #b9430d;
}

.create-league-steps li.is-current > strong {
  font-weight: 800;
}

.create-league-steps li:first-child.is-current::after,
.create-league-steps:has(li:nth-child(2).is-current) li:last-child::before {
  height: 2px;
  background: var(--create-accent);
}

.create-league-form {
  margin-top: 24px;
}

.create-league-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(430px, 0.92fr);
  align-items: start;
  gap: clamp(54px, 6vw, 104px);
}

.create-league-fields {
  min-width: 0;
}

.create-form-section {
  min-width: 0;
  margin: 0;
  padding: 0 0 20px;
  border: 0;
  border-bottom: 1px solid rgb(54 46 38 / 0.14);
}

.create-form-section + .create-form-section {
  padding-top: 16px;
}

.create-form-section:last-child {
  border-bottom: 0;
}

.create-form-section h2 {
  position: relative;
  width: max-content;
  max-width: 100%;
  margin: 0 0 14px;
  padding-bottom: 8px;
  color: #24212a;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.create-form-section h2::after {
  position: absolute;
  right: auto;
  bottom: 0;
  left: 0;
  width: 72px;
  height: 2px;
  background: var(--create-accent);
  content: "";
}

.create-form-field {
  min-width: 0;
  display: grid;
  gap: 7px;
  margin-top: 12px;
  color: #25212a;
  font-size: 0.81rem;
  font-weight: 700;
}

.create-form-field > span:first-child {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.create-field-hint {
  color: #716a73;
  font-size: 0.69rem;
  font-weight: 500;
}

.create-form-field > input,
.create-form-field textarea,
.create-member-search input {
  width: 100%;
  border: 1px solid rgb(55 48 58 / 0.22);
  border-radius: 6px;
  color: #24212a;
  background: rgb(255 255 255 / 0.9);
  box-shadow: 0 5px 16px rgb(91 46 20 / 0.025);
  font: inherit;
  font-size: 0.96rem;
  font-weight: 500;
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.create-form-field > input {
  min-height: 44px;
  padding: 0 14px;
}

.create-form-field textarea {
  min-height: 78px;
  display: block;
  resize: vertical;
  padding: 12px 14px 25px;
  line-height: 1.45;
}

.create-form-field > input:hover,
.create-form-field textarea:hover,
.create-member-search input:hover {
  border-color: rgb(204 77 18 / 0.42);
}

.create-form-field > input:focus,
.create-form-field textarea:focus,
.create-member-search input:focus {
  border-color: var(--create-accent);
  outline: 0;
  background: #fff;
  box-shadow: 0 0 0 3px rgb(242 88 2 / 0.12);
}

.create-form-field > input[aria-invalid="true"] {
  border-color: #b42318;
  box-shadow: 0 0 0 3px rgb(180 35 24 / 0.1);
}

.create-form-field > input:focus-visible,
.create-form-field textarea:focus-visible,
.create-member-search input:focus-visible {
  outline: 3px solid #cc4d12;
  outline-offset: 2px;
}

.create-textarea-wrap {
  position: relative;
  display: block;
}

.create-textarea-wrap output {
  position: absolute;
  right: 11px;
  bottom: 8px;
  color: #746d75;
  font-size: 0.7rem;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}

.create-choice-group,
.create-radio-list {
  min-width: 0;
  margin: 13px 0 0;
  padding: 0;
  border: 0;
}

.create-choice-group legend {
  margin-bottom: 8px;
  color: #25212a;
  font-size: 0.81rem;
  font-weight: 700;
}

.create-choice-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.create-emblem-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(70px, 1fr));
  gap: clamp(10px, 1.8vw, 28px);
}

.create-emblem-grid label {
  min-height: 62px;
  display: grid;
  place-items: center;
  border: 1px solid rgb(56 49 59 / 0.2);
  border-radius: 6px;
  color: #24212a;
  background: rgb(255 255 255 / 0.68);
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}

.create-emblem-grid label:hover {
  border-color: rgb(204 77 18 / 0.48);
  background: rgb(255 248 242 / 0.9);
}

.create-emblem-grid svg {
  width: 38px;
  height: 42px;
  stroke-width: 1.65;
}

.create-emblem-grid svg[viewBox="0 0 24 24"] {
  width: 35px;
  height: 35px;
}

.create-emblem-grid .create-choice-input:checked + label {
  border: 2px solid var(--create-accent);
  color: var(--create-accent);
  background: rgb(255 244 235 / 0.82);
}

.create-emblem-grid .create-choice-input:focus-visible + label,
.create-color-grid .create-choice-input:focus-visible + label {
  outline: 3px solid #cc4d12;
  outline-offset: 3px;
}

.create-color-choices {
  margin-top: 13px;
}

.create-color-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(22px, 3vw, 42px);
  min-height: 52px;
}

.create-color-grid label {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  border: 3px solid transparent;
  border-radius: 50%;
  color: #fff;
  background-color: var(--swatch);
  background: linear-gradient(135deg, color-mix(in srgb, var(--swatch), white 18%), var(--swatch));
  box-shadow: 0 5px 12px color-mix(in srgb, var(--swatch), transparent 72%);
  cursor: pointer;
  transition: outline-color 160ms ease, transform 160ms ease;
}

.create-color-grid label span {
  font-size: 1.15rem;
  font-weight: 800;
  opacity: 0;
}

.create-color-grid label:hover {
  transform: translateY(-2px);
}

.create-color-grid .create-choice-input:checked + label {
  border-color: #fff;
  outline: 2px solid var(--swatch);
  outline-offset: 1px;
}

.create-color-grid .create-choice-input:checked + label span {
  opacity: 1;
}

.create-radio-list {
  display: grid;
  gap: 11px;
}

.create-radio-list label {
  width: max-content;
  max-width: 100%;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  cursor: pointer;
}

.create-radio-list input {
  width: 17px;
  height: 17px;
  margin: 2px 0 0;
  accent-color: var(--create-accent);
}

.create-radio-list span {
  display: grid;
  gap: 2px;
}

.create-radio-list strong {
  color: #29252d;
  font-size: 0.84rem;
  font-weight: 700;
}

.create-radio-list small {
  color: #746d75;
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.35;
}

.create-draft-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 4vw, 48px);
  margin-top: 10px;
}

.create-members-section {
  position: relative;
  overflow: visible;
  padding-bottom: 0;
}

.create-members-section h2 {
  margin-bottom: 10px;
}

.create-members-section h2::after {
  content: none;
}

.create-member-autocomplete {
  position: relative;
  z-index: 8;
}

.create-member-search {
  position: relative;
  display: block;
}

.create-member-search svg {
  position: absolute;
  top: 50%;
  left: 12px;
  z-index: 1;
  width: 19px;
  height: 19px;
  color: #3d3941;
  pointer-events: none;
  transform: translateY(-50%);
}

.create-member-search input {
  min-height: 44px;
  padding: 0 14px 0 42px;
}

.create-member-autocomplete.is-open .create-member-search input {
  border-bottom-color: rgb(55 48 58 / 0.12);
  border-radius: 6px 6px 0 0;
}

.create-member-popover {
  position: absolute;
  top: calc(100% - 1px);
  right: 0;
  left: 0;
  z-index: 24;
  max-height: min(42dvh, 280px);
  overflow-y: auto;
  border: 1px solid rgb(55 48 58 / 0.2);
  border-top: 0;
  border-radius: 0 0 6px 6px;
  background: #fff;
  box-shadow: 0 14px 28px rgb(77 43 22 / 0.15);
}

.create-member-popover[hidden],
.create-member-results[hidden],
.create-member-feedback[hidden],
.create-selected-members[hidden] {
  display: none !important;
}

.create-member-results {
  margin: 0;
  padding: 0;
  list-style: none;
}

.create-member-results li {
  min-height: 56px;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 8px 12px;
  cursor: pointer;
  outline: none;
}

.create-member-results li + li {
  border-top: 1px solid rgb(55 48 58 / 0.1);
}

.create-member-results li.is-active {
  background: rgb(242 88 2 / 0.08);
}

.create-member-results li[aria-disabled="true"] {
  cursor: default;
}

.create-member-avatar {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgb(242 88 2 / 0.18);
  border-radius: 50%;
  color: #a43b0b;
  background: #fff6ef;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.create-member-option-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.create-member-option-copy strong,
.create-selected-member-copy strong {
  overflow: hidden;
  color: #29252d;
  font-size: 0.82rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.create-member-option-copy small,
.create-selected-member-copy small {
  color: #756e77;
  font-size: 0.7rem;
  font-weight: 500;
}

.create-member-option-state {
  min-width: 48px;
  color: #c8490d;
  font-size: 0.74rem;
  font-weight: 750;
  text-align: right;
}

.create-member-results li[aria-selected="true"] .create-member-option-state {
  color: #24814f;
}

.create-member-results li[aria-disabled="true"]:not([aria-selected="true"]) .create-member-option-state {
  color: #827b83;
}

.create-member-feedback {
  min-height: 32px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px 10px;
  margin: 5px 0 0;
  color: #746d75;
  font-size: 0.74rem;
  font-weight: 500;
  line-height: 1.4;
}

.create-member-feedback a,
.create-member-feedback button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border: 0;
  padding: 0 3px;
  color: #bb430c;
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.create-member-feedback a:hover,
.create-member-feedback a:focus-visible,
.create-member-feedback button:hover,
.create-member-feedback button:focus-visible {
  color: #8f3107;
}

.create-selected-members {
  margin: 10px 0 0;
  padding: 0;
  border-top: 1px solid rgb(55 48 58 / 0.12);
  list-style: none;
}

.create-selected-members li {
  min-height: 50px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 7px 4px;
  border-bottom: 1px solid rgb(55 48 58 / 0.12);
}

.create-selected-members .create-member-avatar {
  width: 34px;
  height: 34px;
}

.create-selected-member-copy {
  min-width: 0;
  display: grid;
  gap: 1px;
}

.create-selected-member-remove {
  min-width: 58px;
  min-height: 44px;
  border: 0;
  padding: 0 4px;
  color: #bb430c;
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 0.74rem;
  font-weight: 750;
}

.create-selected-member-remove:hover,
.create-selected-member-remove:focus-visible {
  color: #8f3107;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.create-member-help {
  margin: 7px 0 0;
  color: #716a73;
  font-size: 0.7rem;
  font-weight: 500;
  line-height: 1.4;
}
.create-live-preview {
  position: sticky;
  top: 24px;
  min-width: 0;
  padding-top: 44px;
}

.create-live-preview > h2 {
  margin: 0 0 13px;
  color: #b9430d;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.league-live-card {
  --card-cut: 54px;
  --league-preview-accent: #f25802;
  min-width: 0;
  padding: 1px 1px 1px 4px;
  background: var(--league-preview-accent);
  clip-path: polygon(0 0, calc(100% - var(--card-cut)) 0, 100% var(--card-cut), 100% 100%, 0 100%);
  filter: drop-shadow(0 16px 24px rgb(92 42 16 / 0.12));
  transition: filter 180ms ease;
}

.league-live-card.is-previewing {
  filter: drop-shadow(0 18px 30px color-mix(in srgb, var(--league-preview-accent), transparent 68%));
}

.league-live-card-inner {
  min-height: 500px;
  padding: clamp(28px, 3.2vw, 40px);
  background-color: rgb(255 255 255 / 0.96);
  background:
    radial-gradient(circle at 85% 15%, color-mix(in srgb, var(--league-preview-accent), transparent 91%), transparent 19rem),
    rgb(255 255 255 / 0.96);
  clip-path: polygon(0 0, calc(100% - calc(var(--card-cut) - 2px)) 0, 100% calc(var(--card-cut) - 2px), 100% 100%, 0 100%);
}

.league-live-heading {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: center;
  gap: 24px;
}

.league-live-emblem-shell {
  position: relative;
  width: 92px;
  height: 106px;
  display: grid;
  place-items: center;
}

.league-live-emblem {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--league-preview-accent);
}

.league-live-emblem > svg {
  width: 82px;
  height: 96px;
  stroke-width: 1.65;
  filter: drop-shadow(0 8px 8px rgb(50 39 32 / 0.1));
}

.league-live-emblem > svg[viewBox="0 0 24 24"] {
  width: 72px;
  height: 72px;
}

.league-live-emblem-edit {
  position: absolute;
  top: 6px;
  right: -5px;
  z-index: 2;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--league-preview-accent), transparent 48%);
  border-radius: 50%;
  padding: 0;
  color: var(--league-preview-accent);
  background: #fffaf7;
  box-shadow: 0 3px 9px rgb(73 39 22 / 0.16);
  cursor: pointer;
  transition: color 140ms ease, background-color 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.league-live-emblem-edit::after {
  position: absolute;
  inset: -8px;
  content: "";
}

.league-live-emblem-edit svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.league-live-emblem-edit:hover {
  border-color: var(--league-preview-accent);
  color: #fff;
  background: var(--league-preview-accent);
  box-shadow: 0 5px 12px rgb(73 39 22 / 0.2);
}

.league-live-emblem-edit:focus-visible {
  outline: 3px solid #cc4d12;
  outline-offset: 3px;
}

.league-live-copy {
  min-width: 0;
  display: grid;
  gap: 11px;
}

.league-live-copy > strong {
  overflow: hidden;
  color: #24212a;
  font-size: clamp(1.3rem, 1.8vw, 1.72rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.08;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.league-live-copy > span {
  max-width: 420px;
  color: #504a55;
  font-size: 0.94rem;
  font-weight: 500;
  line-height: 1.4;
}

.league-live-access {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 16px 0 0 120px;
  color: #47414c;
  font-size: 0.82rem;
  font-weight: 500;
}

.league-live-access svg {
  width: 18px;
  height: 18px;
}

.league-live-access i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #4b454f;
}

.league-live-details {
  display: grid;
  gap: 18px;
  margin: 27px 0 0;
  padding: 24px 0;
  border-top: 1px solid rgb(55 48 58 / 0.16);
  border-bottom: 1px solid rgb(55 48 58 / 0.16);
}

.league-live-details > div {
  display: grid;
  grid-template-columns: minmax(140px, 0.72fr) minmax(0, 1fr);
  align-items: center;
  gap: 18px;
}

.league-live-details dt {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #29252e;
  font-size: 0.84rem;
  font-weight: 700;
}

.league-live-details dt svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.league-live-details dd {
  margin: 0;
  color: #514b56;
  font-size: 0.86rem;
  font-weight: 500;
}

.league-live-members {
  --live-member-avatar-size: 58px;
  --live-member-remove-size: 24px;
  --live-member-remove-center-y: 6px;
  display: grid;
  grid-template-columns: repeat(5, 60px);
  column-gap: 24px;
  row-gap: 18px;
  justify-content: start;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.league-live-members li {
  min-width: 0;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 6px;
  color: #2f2a33;
  text-align: center;
}

.league-live-members li > span,
.league-live-members li > img {
  width: var(--live-member-avatar-size);
  height: var(--live-member-avatar-size);
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f1efed;
  object-fit: contain;
  font-size: 0.92rem;
  line-height: 1;
}

.league-live-members li > img {
  padding: 5px;
}

.league-live-members .is-owner > span {
  color: #322c29;
  background: #ffd7bd;
  font-weight: 700;
}

.league-live-members .is-open > span {
  border: 1px dashed #a9b2c0;
  color: #374151;
  background: transparent;
  font-size: 1.75rem;
  font-weight: 300;
  line-height: 1;
}

.league-live-members .is-account {
  position: relative;
}

.league-live-member-remove {
  position: absolute;
  top: calc(var(--live-member-remove-center-y) - (var(--live-member-remove-size) / 2));
  left: calc(50% + (var(--live-member-avatar-size) / 2) - (var(--live-member-remove-size) / 2));
  z-index: 2;
  width: var(--live-member-remove-size);
  height: var(--live-member-remove-size);
  display: grid;
  place-items: center;
  border: 1px solid #d94332;
  border-radius: 50%;
  padding: 0 0 2px;
  color: #c83224;
  background: #fff;
  box-shadow: 0 4px 10px rgb(107 30 20 / 0.2);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.82);
  transition: opacity 140ms ease, transform 140ms ease, color 140ms ease, background-color 140ms ease;
  font: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1;
}

.league-live-members .is-account:hover .league-live-member-remove,
.league-live-members .is-account:focus-within .league-live-member-remove,
.league-live-member-remove:focus-visible {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.league-live-member-remove:hover,
.league-live-member-remove:focus-visible {
  border-color: #c83224;
  color: #fff;
  background: #c83224;
  outline: none;
}

.league-live-member-remove:focus-visible {
  box-shadow: 0 0 0 3px rgb(255 255 255 / 0.95), 0 0 0 5px rgb(200 50 36 / 0.42);
}

@media (hover: none), (pointer: coarse) {
  .league-live-member-remove {
    --live-member-remove-size: 32px;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .league-live-member-remove::after {
    position: absolute;
    inset: -6px;
    content: "";
  }
}

.league-live-members strong {
  max-width: 100%;
  overflow: hidden;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.league-live-members small {
  color: #77707a;
  font-size: 0.7rem;
  font-weight: 500;
  line-height: 1.15;
}

.league-live-members .is-owner small {
  color: #a63b0e;
}

.league-live-members .is-open strong {
  color: #746d75;
  font-weight: 500;
}

.league-live-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
  border: 0;
  padding: 0;
  color: #b9430d;
  background: transparent;
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 700;
}

.league-live-link svg {
  width: 21px;
  height: 21px;
}

.create-league-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "cancel continue"
    ". step";
  align-items: center;
  gap: 7px 28px;
  margin-top: 30px;
  padding-top: 14px;
  border-top: 1px solid rgb(55 48 58 / 0.15);
}

.create-league-actions > a {
  grid-area: cancel;
  justify-self: end;
  margin-right: 8px;
  border-radius: 4px;
  color: #2f2a33;
  font-size: 0.9rem;
  font-weight: 600;
}

.create-league-actions > button {
  grid-area: continue;
  min-width: 225px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border: 0;
  border-radius: 6px;
  padding: 0 20px;
  color: #fff;
  background: linear-gradient(135deg, #cc4d12, #a93a0a);
  box-shadow: 0 12px 24px rgb(174 65 13 / 0.15);
  cursor: pointer;
  font-size: 0.93rem;
  font-weight: 800;
}

.create-league-actions > button svg {
  width: 21px;
  height: 21px;
}

.create-league-actions > span {
  grid-area: step;
  justify-self: end;
  color: #756e77;
  font-size: 0.8rem;
  font-weight: 500;
}

.create-league-breadcrumb a:focus-visible,
.create-emblem-grid label:focus-visible,
.create-radio-list input:focus-visible,
.create-member-results button:focus-visible,
.league-live-link:focus-visible,
.create-league-actions > a:focus-visible,
.create-league-actions > button:focus-visible {
  outline: 3px solid #cc4d12;
  outline-offset: 3px;
}

.create-member-results button:hover,
.league-live-link:hover,
.create-league-actions > a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.create-league-actions > button:hover {
  background: #a93a0a;
}

.create-league-actions > button.is-confirmed {
  background: #287a4d;
}

.create-form-status {
  margin: 10px 0 0;
  color: #635c65;
  font-size: 0.79rem;
  font-weight: 600;
  line-height: 1.4;
  text-align: right;
}

.create-form-status:empty {
  display: none;
}

.emblem-composite {
  --emblem-secondary: #0b2239;
  position: relative;
  isolation: isolate;
  width: 100%;
  height: 100%;
  display: block;
  aspect-ratio: 1;
}

.emblem-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: 50% 50%;
  pointer-events: none;
  user-select: none;
}

.emblem-layer.is-shield {
  z-index: 1;
}

.emblem-layer.is-ball,
.emblem-layer.is-dropshot {
  z-index: 2;
}

.emblem-layer.is-electricity {
  z-index: 3;
  filter:
    drop-shadow(0 0 2px color-mix(in srgb, var(--emblem-secondary) 72%, transparent))
    drop-shadow(0 0 7px color-mix(in srgb, var(--emblem-secondary) 38%, transparent));
}

.emblem-layer[hidden] {
  display: none;
}

.emblem-shield-fallback,
.emblem-shield-tint {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: 50% 50%;
  pointer-events: none;
}

.emblem-shield-fallback[hidden],
.emblem-shield-tint[hidden] {
  display: none;
}

.league-live-emblem .emblem-composite {
  width: 106px;
  height: 106px;
  flex: 0 0 auto;
}

.emblem-customizer {
  --emblem-primary: #f25802;
  width: min(484px, calc(100vw - 32px));
  height: min(830px, calc(100dvh - 32px));
  max-width: none;
  max-height: none;
  margin: auto;
  border: 0;
  border-top: 5px solid #f25802;
  border-radius: 10px;
  padding: 0;
  overflow: hidden;
  color: #1c2330;
  background: #fff;
  box-shadow: 0 18px 48px rgb(25 28 34 / 0.24);
  font: inherit;
}

.emblem-customizer[open] {
  animation: emblem-customizer-enter 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.emblem-customizer::backdrop {
  background: rgb(22 28 38 / 0.36);
  backdrop-filter: blur(1.5px);
  animation: emblem-customizer-backdrop 160ms ease-out;
}

.emblem-customizer-panel {
  height: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
}

.emblem-customizer-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  align-items: start;
  gap: 16px;
  padding: 22px 20px 14px 32px;
}

.emblem-customizer-header h2 {
  margin: 0;
  color: #172033;
  font-size: 1.75rem;
  font-weight: 850;
  letter-spacing: -0.035em;
  line-height: 1.2;
}

.emblem-customizer-header h2:focus {
  outline: none;
}

.emblem-customizer-header p {
  margin: 7px 0 0;
  color: #4d5565;
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.45;
}

.emblem-customizer button {
  font: inherit;
}

.emblem-customizer-close {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 6px;
  padding: 0;
  color: #172033;
  background: transparent;
  cursor: pointer;
}

.emblem-customizer-close:hover {
  color: #b9430d;
  background: #fff4eb;
}

.emblem-customizer-close svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.emblem-customizer-body {
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0 32px;
  scrollbar-width: thin;
}

.emblem-customizer-preview-stage {
  min-height: 250px;
  display: grid;
  place-items: center;
  overflow: visible;
  padding: 0;
}

.emblem-customizer-preview {
  width: 250px;
  height: 250px;
  display: grid;
  place-items: center;
  will-change: transform, opacity;
}

.emblem-customizer-preview .emblem-composite {
  width: 250px;
  height: 250px;
}

.emblem-customizer-section {
  min-width: 0;
  margin: 0;
  border: 0;
  border-top: 1px solid rgb(48 57 72 / 0.18);
  padding: 13px 0;
}

.emblem-customizer-section legend,
.emblem-customizer-colors h3 {
  margin: 0 0 8px;
  padding: 0;
  color: #1f2734;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.025em;
  line-height: 1.25;
  text-transform: uppercase;
}

.emblem-customizer-carousel {
  min-height: 60px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 14px;
}

.emblem-customizer-carousel > button {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid #f25802;
  border-radius: 5px;
  padding: 0;
  color: #172033;
  background: #fff;
  cursor: pointer;
  transition: color 140ms ease, background-color 140ms ease, box-shadow 140ms ease;
}

.emblem-customizer-carousel > button:hover {
  color: #fff;
  background: #f25802;
  box-shadow: 0 5px 12px rgb(145 58 15 / 0.14);
}

.emblem-customizer button:disabled,
.emblem-customizer-carousel > button[aria-disabled="true"] {
  opacity: 0.56;
  cursor: wait;
}

.emblem-customizer-carousel svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.emblem-option-stage {
  position: relative;
  min-width: 0;
  height: 72px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.emblem-option-art {
  width: 100%;
  height: 72px;
  display: grid;
  place-items: center;
  will-change: transform, opacity;
}

.emblem-option-art.is-center .emblem-composite {
  width: 98px;
  height: 98px;
}

.emblem-option-art.is-shield .emblem-composite {
  width: 82px;
  height: 82px;
}

.emblem-customizer-colors {
  border-top: 1px solid rgb(48 57 72 / 0.18);
  padding: 14px 0 15px;
}

.emblem-color-row {
  min-width: 0;
  min-height: 56px;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  margin: 0;
  border: 1px solid rgb(54 64 79 / 0.2);
  border-radius: 6px;
  padding: 7px 10px;
  background: #fff;
}

.emblem-color-row + .emblem-color-row {
  margin-top: 8px;
}

fieldset.emblem-color-row {
  min-inline-size: 0;
}

.emblem-color-swatch {
  width: 40px;
  height: 40px;
  display: block;
  border: 1px solid rgb(35 43 56 / 0.1);
  border-radius: 50%;
  background: var(--emblem-primary);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.18);
}

.emblem-color-row.is-secondary > .emblem-color-swatch {
  background: var(--emblem-secondary, #0b2239);
}

.emblem-color-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.emblem-color-copy strong {
  color: #1d2431;
  font-size: 0.86rem;
  font-weight: 650;
}

.emblem-color-copy small {
  color: #697180;
  font-size: 0.74rem;
  font-weight: 500;
}

.emblem-color-lock {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: #263246;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.emblem-color-palette {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 11px;
}

.emblem-color-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.emblem-color-palette label {
  position: relative;
  width: 26px;
  height: 26px;
  display: block;
  flex: 0 0 auto;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--swatch);
  box-shadow: 0 0 0 1px rgb(40 48 61 / 0.12);
  cursor: pointer;
}

.emblem-color-input:checked + label {
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px #f25802;
}

.emblem-customizer-close:focus-visible,
.emblem-customizer-carousel > button:focus-visible,
.emblem-customizer-footer button:focus-visible,
.emblem-color-input:focus-visible + label {
  outline: 3px solid #cc4d12;
  outline-offset: 3px;
}

.emblem-customizer-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  border-top: 1px solid rgb(48 57 72 / 0.18);
  padding: 16px 32px 20px;
  background: rgb(255 255 255 / 0.98);
}

.emblem-customizer-footer button {
  min-height: 44px;
  border-radius: 5px;
  padding: 0 18px;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 700;
}

.emblem-customizer-footer [data-emblem-dialog-cancel] {
  min-width: 92px;
  border: 0;
  color: #201f24;
  background: transparent;
}

.emblem-customizer-footer [data-emblem-dialog-cancel]:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.emblem-customizer-footer [data-emblem-dialog-save] {
  min-width: 158px;
  border: 1px solid #f25802;
  color: #fff;
  background: linear-gradient(135deg, #ff5d0a, #ef4d00);
  box-shadow: 0 10px 20px rgb(194 68 8 / 0.16);
}

.emblem-customizer-footer [data-emblem-dialog-save]:hover {
  background: #d94700;
}

@keyframes emblem-customizer-enter {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes emblem-customizer-backdrop {
  from {
    background: rgb(22 28 38 / 0);
    backdrop-filter: blur(0);
  }

  to {
    background: rgb(22 28 38 / 0.36);
    backdrop-filter: blur(1.5px);
  }
}

@media (max-width: 1240px) {
  .create-league-layout {
    grid-template-columns: minmax(0, 1fr) minmax(400px, 0.78fr);
    gap: 46px;
  }

  .create-emblem-grid {
    gap: 10px;
  }

  .league-live-card-inner {
    padding: 30px;
  }
}

@media (max-width: 1200px) {
  .create-league-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }

  .create-live-preview {
    position: static;
    max-width: 720px;
    padding-top: 0;
  }

  .league-live-card-inner {
    min-height: 0;
  }

  .create-league-actions {
    margin-top: 24px;
  }
}

@media (max-width: 760px) {
  .create-league-steps {
    grid-template-columns: minmax(200px, 1fr) auto minmax(200px, 1fr);
    gap: 10px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    padding-bottom: 6px;
    scrollbar-width: thin;
  }

  .create-league-steps li {
    min-width: 0;
  }

  .create-draft-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .create-emblem-grid {
    grid-template-columns: repeat(5, minmax(62px, 1fr));
    overflow-x: auto;
    padding: 3px 3px 7px;
  }

  .create-color-grid {
    gap: 20px;
  }

  .league-live-heading {
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 18px;
  }

  .league-live-emblem-shell {
    width: 78px;
    height: 90px;
  }

  .league-live-emblem > svg {
    width: 70px;
    height: 82px;
  }

  .league-live-emblem-edit {
    top: 3px;
  }

  .league-live-access {
    margin-left: 100px;
  }

  .league-live-members {
    grid-template-columns: repeat(5, 60px);
    column-gap: 18px;
  }

  .league-live-member-remove::after {
    inset: -4px;
  }
}

@media (max-width: 620px) {
  .create-league-main {
    margin-top: 18px;
  }

  .create-league-heading h1 {
    font-size: clamp(2.15rem, 11vw, 2.8rem);
  }

  .create-league-heading p {
    font-size: 0.9rem;
  }

  .create-league-steps {
    margin-top: 24px;
  }

  .create-league-form {
    margin-top: 19px;
  }

  .create-form-section {
    padding-bottom: 18px;
  }

  .create-emblem-grid {
    grid-template-columns: repeat(5, 68px);
  }

  .create-color-grid label {
    width: 41px;
    height: 41px;
  }

  .create-member-option-copy small {
    display: none;
  }

  .create-member-results li {
    min-height: 54px;
    padding-inline: 10px;
  }

  .create-selected-member-remove {
    min-width: 52px;
  }

  .league-live-card {
    --card-cut: 38px;
  }

  .league-live-card-inner {
    padding: 24px 20px;
  }

  .league-live-heading {
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 14px;
  }

  .league-live-emblem-shell {
    width: 68px;
    height: 80px;
  }

  .league-live-emblem > svg {
    width: 62px;
    height: 72px;
  }

  .league-live-emblem-edit {
    top: 2px;
    width: 26px;
    height: 26px;
  }

  .league-live-emblem-edit::after {
    inset: -9px;
  }

  .league-live-emblem-edit svg {
    width: 12px;
    height: 12px;
  }

  .league-live-copy > strong {
    font-size: 1.2rem;
  }

  .league-live-copy > span {
    font-size: 0.82rem;
  }

  .league-live-access {
    margin: 14px 0 0;
  }

  .league-live-details > div {
    grid-template-columns: minmax(126px, 0.72fr) minmax(0, 1fr);
    gap: 10px;
  }

  .league-live-members {
    grid-template-columns: repeat(3, minmax(76px, 88px));
    gap: 18px 12px;
  }

  .create-league-actions {
    grid-template-columns: 1fr;
    grid-template-areas:
      "cancel"
      "continue"
      "step";
    gap: 13px;
  }

  .create-league-actions > button {
    width: 100%;
    min-width: 0;
  }

  .create-league-actions > a,
  .create-league-actions > span {
    justify-self: center;
    margin: 0;
  }

  .create-form-status {
    text-align: center;
  }
}

@media (max-width: 430px) {
  .create-league-breadcrumb {
    font-size: 0.82rem;
  }

  .create-emblem-grid {
    grid-template-columns: repeat(5, 64px);
  }

  .league-live-details > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 5px;
  }

  .league-live-members {
    grid-template-columns: repeat(3, minmax(72px, 1fr));
    column-gap: 8px;
  }
}

@media (max-width: 760px) {
  .league-live-emblem .emblem-composite {
    width: 90px;
    height: 90px;
  }
}

@media (max-width: 620px) {
  .league-live-emblem .emblem-composite {
    width: 80px;
    height: 80px;
  }
}

@media (max-width: 520px) {
  .emblem-customizer {
    width: calc(100vw - 24px);
    height: calc(100dvh - 24px);
  }

  .emblem-customizer-header {
    padding: 18px 12px 11px 20px;
  }

  .emblem-customizer-header h2 {
    font-size: 1.48rem;
  }

  .emblem-customizer-header p {
    font-size: 0.82rem;
  }

  .emblem-customizer-body {
    padding: 0 20px;
  }

  .emblem-customizer-preview-stage {
    min-height: 186px;
    padding-bottom: 3px;
  }

  .emblem-customizer-preview,
  .emblem-customizer-preview .emblem-composite {
    width: 205px;
    height: 205px;
  }

  .emblem-customizer-section {
    padding: 12px 0;
  }

  .emblem-customizer-carousel {
    min-height: 58px;
    gap: 10px;
  }

  .emblem-option-stage,
  .emblem-option-art {
    height: 64px;
  }

  .emblem-option-art.is-center .emblem-composite {
    width: 82px;
    height: 82px;
  }

  .emblem-option-art.is-shield .emblem-composite {
    width: 72px;
    height: 72px;
  }

  .emblem-customizer-colors {
    padding: 13px 0 15px;
  }

  .emblem-color-row.is-secondary {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .emblem-color-palette {
    grid-column: 1 / -1;
    justify-content: center;
    padding: 5px 2px 2px;
  }

  .emblem-customizer-footer {
    display: grid;
    grid-template-columns: minmax(96px, 1fr) minmax(150px, 1.35fr);
    gap: 10px;
    padding: 13px 20px 16px;
  }

  .emblem-customizer-footer button {
    width: 100%;
    min-width: 0;
    padding: 0 12px;
  }
}

@media (max-width: 360px) {
  .emblem-customizer {
    width: calc(100vw - 16px);
    height: calc(100dvh - 16px);
  }

  .emblem-customizer-header {
    padding-right: 8px;
    padding-left: 16px;
  }

  .emblem-customizer-body {
    padding: 0 16px;
  }

  .emblem-color-palette {
    gap: 9px;
  }

  .emblem-color-palette label {
    width: 24px;
    height: 24px;
  }

  .emblem-customizer-footer {
    padding-right: 16px;
    padding-left: 16px;
  }
}

@media (max-height: 820px) and (min-width: 521px) {
  .emblem-customizer {
    height: calc(100dvh - 24px);
  }

  .emblem-customizer-header {
    padding-top: 17px;
    padding-bottom: 10px;
  }

  .emblem-customizer-preview-stage {
    min-height: 190px;
    padding-bottom: 2px;
  }

  .emblem-customizer-preview,
  .emblem-customizer-preview .emblem-composite {
    width: 215px;
    height: 215px;
  }

  .emblem-customizer-section {
    padding: 11px 0;
  }

  .emblem-customizer-colors {
    padding: 12px 0;
  }

  .emblem-customizer-footer {
    padding-top: 12px;
    padding-bottom: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .create-league-breadcrumb a,
  .create-form-field > input,
  .create-form-field textarea,
  .create-member-search input,
  .create-emblem-grid label,
  .create-color-grid label {
    transition: none;
  }

  .create-color-grid label:hover {
    transform: none;
  }

  .league-live-card,
  .league-live-emblem-edit,
  .league-live-member-remove,
  .emblem-customizer-carousel > button {
    transition: none;
  }

  .emblem-customizer[open],
  .emblem-customizer::backdrop {
    animation: none;
  }
}
