/* League picker (D-523): board-only, loaded next to league-picker.js. Tokens come from app.css. */
/* the script filters with the hidden attribute; display rules below would otherwise override it */
.lp [hidden] {
  display: none;
}
.lp__chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  list-style: none;
  margin: 0 0 var(--space-2);
  padding: 0;
}
.lp__chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: var(--tap);
  padding: 0 var(--space-3);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--muted);
  color: var(--fg);
  font: inherit;
  cursor: pointer;
}
.lp__chip::after {
  content: "×";
  font-size: 1.25em;
  line-height: 1;
  color: var(--fg-muted);
}
.lp__chip:hover {
  background: var(--muted-hover);
}
.lp__chip:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 2px;
}
.lp__list {
  list-style: none;
  margin: var(--space-1) 0 0;
  padding: var(--space-1) 0;
  max-height: min(50vh, 20rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--border);
  border-radius: var(--radius-2);
  background: var(--card);
}
.lp__option {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-height: var(--tap);
  padding: 0 var(--space-3);
  cursor: pointer;
}
.lp__option::before {
  content: "";
  flex: none;
  width: 1.25em;
  text-align: center;
  color: var(--primary);
  font-weight: 700;
}
.lp__option[aria-selected="true"]::before {
  content: "✓";
}
.lp__option:hover,
.lp__option--active {
  background: var(--muted);
}
.lp__option--active {
  outline: 2px solid var(--ring);
  outline-offset: -2px;
}
@media (forced-colors: active) {
  .lp__option--active {
    outline-color: Highlight;
  }
}
.lp__head {
  display: none;
}
/* phones: the open picker covers the screen, the list takes what the keyboard leaves */
@media (max-width: 640px) {
  .lp--full {
    position: fixed;
    inset: 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-4) var(--space-4);
    background: var(--bg);
    overscroll-behavior: contain;
  }
  .lp--full .lp__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .lp__title {
    margin: 0;
    font-weight: 700;
    font-size: var(--font-size-3);
  }
  .lp--full .lp__chips {
    max-height: 30%;
    overflow-y: auto;
    margin: 0;
  }
  .lp--full .lp__list {
    flex: 1;
    max-height: none;
    margin: 0;
  }
}
