.league-page {
  max-width: 1120px;
}
.league-page h1 {
  font-size: clamp(24px, 4vw, 38px);
  line-height: 1.5;
}
.league-panel {
  border-top: 1px solid var(--line, #c7d8e4);
  padding: 24px 0;
}
.league-panel h2 {
  font-size: 21px;
  line-height: 1.5;
}
.league-page .league-separate,
.league-notice {
  padding: 16px;
  border-left: 3px solid #e71932;
  background: #e719320b;
  line-height: 1.7;
}
.league-page code {
  display: block;
  overflow-wrap: anywhere;
  white-space: normal;
  font-size: 13px;
}
.league-page button,
.league-page select,
.league-page input {
  max-width: 100%;
  min-height: 44px;
}
.league-page .button {
  margin: 8px 8px 8px 0;
  font-size: 14px;
  line-height: 1.5;
  white-space: normal;
}
.league-page select,
.league-page input {
  background: transparent;
  color: inherit;
  border: 1px solid #b8cddd;
  border-radius: 8px;
  padding: 10px;
  margin: 8px;
}
.league-team {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0;
}
.league-mon {
  min-width: 0;
  border: 1px solid #c7d8e4;
  border-radius: 12px;
  padding: 14px;
}
.league-mon h3 {
  font: 700 18px/1.5 inherit;
  margin: 0;
}
.league-mon p,
.league-mon li {
  font-size: 14px;
  line-height: 1.6;
}
.league-mon img {
  image-rendering: pixelated;
}
.league-mon ul {
  padding-left: 20px;
}
.league-fighters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.league-fighter {
  border: 1px solid #c7d8e4;
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  min-width: 0;
}
.league-fighter img {
  image-rendering: pixelated;
  max-width: 100%;
}
.league-fighter meter {
  display: block;
  width: 100%;
  height: 22px;
}
.league-moves,
.league-switches {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 15px 0;
}
.league-moves button,
.league-switches button {
  min-width: 0;
  overflow-wrap: anywhere;
  padding: 12px;
  border: 1px solid #b8cddd;
  border-radius: 10px;
  background: transparent;
  color: inherit;
  text-align: left;
  font: inherit;
}
.league-moves button:disabled,
.league-switches button:disabled {
  opacity: 0.45;
}
.league-page fieldset {
  min-width: 0;
  border: 0;
  padding: 0;
}
.league-page button:focus-visible,
.league-page a:focus-visible {
  outline: 3px solid #df1630;
  outline-offset: 3px;
}
.league-log {
  max-height: 360px;
  overflow: auto;
  padding-left: 24px;
  line-height: 1.8;
  font-size: 14px;
}
.league-table-wrap {
  overflow: auto;
}
.league-page table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.league-page td,
.league-page th {
  padding: 12px 6px;
  border-bottom: 1px solid #c7d8e4;
  text-align: left;
  overflow-wrap: anywhere;
}
.league-page textarea {
  width: 100%;
  min-height: 130px;
}
.league-page [hidden] {
  display: none !important;
}
.league-panel details {
  margin: 12px 0;
}
.league-panel summary {
  cursor: pointer;
  min-height: 44px;
  line-height: 1.6;
}
.league-page p {
  overflow-wrap: anywhere;
}
.league-page .masthead {
  gap: 12px;
}
.league-page .title {
  font-size: clamp(22px, 5vw, 38px);
}
@media (max-width: 620px) {
  .league-team {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .league-mon {
    padding: 10px;
  }
  .league-fighters {
    gap: 8px;
  }
  .league-fighter {
    padding: 10px;
  }
  .league-page .masthead {
    flex-wrap: wrap;
  }
  .league-page {
    padding-left: 16px;
    padding-right: 16px;
  }
  .league-page .button {
    font-size: 12px;
  }
  .league-switches {
    grid-template-columns: 1fr;
  }
  .league-page h2 {
    font-size: 18px;
  }
  .league-page .header-actions {
    margin-left: auto;
  }
  .league-page td,
  .league-page th {
    padding: 10px 3px;
    font-size: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .league-page * {
    scroll-behavior: auto !important;
  }
}

#league-board-frame {
  display: block;
  width: 100%;
  border: 0;
  min-height: 200px;
}
.league-board-page {
  margin: 0;
  padding: 0 4px;
  max-width: none;
}
.league-board-page .league-panel {
  border: 0;
  padding-top: 0;
}

.league-board-title {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;}
