.survivor-pick-sheet-shell {
  width: min(100%, 76rem);
  min-width: 0;
  margin-inline: auto;
}

.survivor-pick-sheet-heading {
  width: 100%;
  margin-bottom: 1.25rem;
}

.survivor-pick-sheet-heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2rem, 5vw, 3.25rem);
  letter-spacing: -0.035em;
}

.survivor-playground-preview-heading {
  width: min(100%, 76rem);
  margin: 0 auto 1rem;
  padding: 1rem 1.15rem;
  background: var(--gold-soft);
  border: 1px solid #e9c56e;
  border-left: 0.3rem solid var(--gold);
  border-radius: 0.7rem;
}

.survivor-playground-preview-heading p:last-child {
  margin: 0.25rem 0 0;
  color: var(--muted);
}

.survivor-playground-preview {
  padding-top: 0.25rem;
}

.survivor-pick-sheet {
  display: grid;
  width: 100%;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
}

.survivor-winner-announcement {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1.25rem;
  border: 2px solid #F2B134;
  border-radius: 1rem;
  background: #0B1F33;
  color: white;
}

.survivor-winner-announcement[hidden],
.survivor-pool-completed-message[hidden] {
  display: none;
}

.survivor-winner-announcement > div {
  min-width: 0;
}

.survivor-winner-announcement h2 {
  margin: 0 0 0.75rem;
  color: #F2B134;
  font-size: clamp(1.125rem, 3vw, 1.5rem);
}

.survivor-winner-announcement ul {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 1.125rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.survivor-winner-announcement p {
  margin: 0.75rem 0 0;
  color: white;
}

.survivor-winner-trophy {
  width: 1.75rem;
  height: 1.75rem;
  flex: 0 0 auto;
  fill: none;
  stroke: #F2B134;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.survivor-winner-badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border: 1px solid #F2B134;
  border-radius: 0.5rem;
  background: #F2B134;
  color: #0B1F33;
  font-size: 0.75rem;
  font-weight: 800;
}

.poolwide-username-cell .survivor-winner-badge {
  display: block;
  width: fit-content;
  margin-top: 0.25rem;
}

.survivor-entry-pick-card.is-winner {
  border-color: #F2B134;
  border-left: 4px solid #F2B134;
}

.survivor-entry-status-section,
.survivor-entry-status-list {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr);
}

.survivor-entry-status-section {
  gap: 0.75rem;
}

.survivor-entry-status-section[hidden] {
  display: none;
}

.survivor-entry-status-list {
  gap: 1.5rem;
}

.survivor-entry-status-heading {
  margin: 0;
  padding: 0 0.15rem 0.45rem;
  color: var(--navy);
  font-size: 1.05rem;
  line-height: 1.25;
  border-bottom: 2px solid var(--green);
}

.survivor-entry-status-section.is-winner .survivor-entry-status-heading {
  border-bottom-color: #F2B134;
}

.survivor-entry-status-section.is-eliminated .survivor-entry-status-heading {
  border-bottom-color: var(--danger);
}

.survivor-pick-sheet-status-key {
  margin-bottom: 1.25rem;
}

.survivor-entry-pick-card {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  padding: 0;
  border-top: 4px solid var(--green);
  box-shadow: 0 0.85rem 2.25rem rgb(11 31 51 / 9%);
}

.survivor-entry-pick-card.is-eliminated {
  border-top-color: var(--danger);
}

.survivor-entry-pick-heading {
  display: flex;
  padding: 1rem 1.2rem;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  background: linear-gradient(110deg, #f7fbf8 0%, #ffffff 72%);
  border-bottom: 1px solid var(--border);
}

.survivor-entry-disclosure > summary {
  position: relative;
  min-height: 44px;
  padding-right: 3rem;
  cursor: pointer;
  list-style: none;
}

.survivor-entry-disclosure > summary::-webkit-details-marker {
  display: none;
}

.survivor-entry-disclosure > summary::after {
  position: absolute;
  top: 1.4rem;
  right: 1.2rem;
  width: 0.65rem;
  height: 0.65rem;
  border-right: 2px solid var(--navy);
  border-bottom: 2px solid var(--navy);
  transform: rotate(45deg);
  content: "";
}

.survivor-entry-disclosure[open] > summary::after {
  transform: rotate(225deg);
}

.survivor-entry-disclosure > summary:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: -4px;
}

.survivor-entry-disclosure:not([open]) > summary {
  border-bottom: 0;
}

.survivor-entry-pick-card.is-eliminated .survivor-entry-pick-heading {
  background: linear-gradient(110deg, var(--danger-soft) 0%, #ffffff 72%);
}

.survivor-entry-identity {
  min-width: 0;
}

.survivor-entry-pick-heading h2 {
  margin: 0.05rem 0 0;
  color: var(--navy);
  font-size: clamp(1.25rem, 2.5vw, 1.55rem);
  overflow-wrap: anywhere;
}

.survivor-entry-pick-heading .pick-sheet-save-status {
  margin-top: 0.35rem;
}

.status-badge.eliminated {
  color: #ffffff;
  background: var(--danger);
  border-color: var(--danger-dark);
}

.survivor-entry-state {
  display: inline-flex;
  max-width: 19rem;
  min-height: 1.8rem;
  align-items: center;
  gap: 0.4rem;
  text-align: center;
}

.survivor-entry-state[hidden] { display: none; }

.survivor-entry-state.eliminated {
  color: var(--danger-dark);
  background: #fff5f5;
  border: 1px solid #f3aaaa;
}

.survivor-entry-state::before {
  width: 0.45rem;
  height: 0.45rem;
  flex: 0 0 auto;
  background: currentcolor;
  border-radius: 50%;
  content: "";
}

.survivor-entry-pick-body {
  padding: 1rem 1.2rem 1.2rem;
}

.survivor-entry-pick-layout {
  min-width: 0;
}

.survivor-pick-history {
  grid-area: history;
  display: flex;
  min-width: 0;
  margin: 0;
  flex-direction: column;
}

.survivor-pick-history-content {
  min-width: 0;
  padding: 0.8rem;
  flex: 1;
  background: #f8fafb;
  border: 1px solid var(--border);
  border-radius: 0.65rem;
}

.survivor-entry-column-heading {
  margin: 0 0 0.45rem;
  color: var(--navy);
  font-size: 0.9rem;
  line-height: 1.35;
}

.survivor-pick-history-content > .muted {
  margin: 0;
}

.survivor-history-list {
  /* Edit these values to tune each Past Teams Used row gap independently. */
  --survivor-history-week-to-logo-gap: 2.5rem;
  --survivor-history-logo-to-team-gap: 0.0rem;
  --survivor-history-matchup-column-width: 4.95rem;
  --survivor-history-team-to-opponent-gap: 0.35rem;
  --survivor-history-matchup-to-score-gap: 1.5rem;
  --survivor-history-selected-score-to-separator-gap: 0.08rem;
  --survivor-history-separator-to-opponent-score-gap: 0.08rem;
  --survivor-history-score-to-result-gap: 0.2rem;

  display: grid;
  margin: 0;
  padding: 0;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.35rem;
  list-style: none;
}

.survivor-history-list li {
  display: grid;
  min-width: 0;
  padding: 0.55rem;
  grid-template-columns:
    max-content
    var(--survivor-history-week-to-logo-gap)
    1.75rem
    var(--survivor-history-logo-to-team-gap)
    max-content
    var(--survivor-history-matchup-to-score-gap)
    max-content
    minmax(var(--survivor-history-score-to-result-gap), 1fr)
    max-content;
  align-items: center;
  gap: 0;
  background: #ffffff;
  border: 1px solid #d9e0e7;
  border-radius: 0.45rem;
}

.survivor-history-week-row > :nth-child(1) {
  grid-column: 1;
}

.survivor-history-week-row > :nth-child(2) {
  grid-column: 3;
}

.survivor-history-week-row > :nth-child(3) {
  grid-column: 5;
}

.survivor-history-divider.is-before-score {
  grid-column: 6;
}

.survivor-history-scoreline {
  grid-column: 7;
}

.survivor-history-divider.is-before-result {
  grid-column: 8;
}

.survivor-history-result {
  grid-column: 9;
}

.survivor-history-week-label {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
  white-space: nowrap;
}

.survivor-history-team-logo {
  width: 1.75rem;
  height: 1.75rem;
  flex-basis: 1.75rem;
}

.survivor-history-team-logo-placeholder {
  width: 1.75rem;
  height: 1.75rem;
}

.survivor-history-matchup-summary {
  display: flex;
  min-width: 0;
  width: var(--survivor-history-matchup-column-width);
  align-items: baseline;
  justify-content: flex-end;
  gap: var(--survivor-history-team-to-opponent-gap);
}

.survivor-history-team,
.survivor-history-opponent {
  min-width: 0;
  overflow: hidden;
  font-size: 0.78rem;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.survivor-history-team {
  color: var(--navy);
}

.survivor-history-opponent {
  color: var(--muted);
  font-weight: 650;
}

.survivor-history-opponent-context {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 650;
  white-space: nowrap;
}

.survivor-history-matchup-preposition {
  color: inherit;
  font: inherit;
}

.survivor-history-scoreline {
  display: grid;
  grid-template-columns:
    2ch
    var(--survivor-history-selected-score-to-separator-gap)
    max-content
    var(--survivor-history-separator-to-opponent-score-gap)
    2ch;
  align-items: baseline;
  color: var(--navy);
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.survivor-history-divider {
  width: 1px;
  height: 1rem;
  align-self: center;
  justify-self: center;
  background: #d9e0e7;
}

.survivor-history-scoreline > :nth-child(1) {
  grid-column: 1;
}

.survivor-history-scoreline > :nth-child(2) {
  grid-column: 3;
}

.survivor-history-scoreline > :nth-child(3) {
  grid-column: 5;
}

.survivor-history-score {
  color: inherit;
}

.survivor-history-score.is-selected {
  text-align: right;
}

.survivor-history-score.is-opponent {
  text-align: left;
}

.survivor-history-score-separator {
  color: var(--muted);
  font-weight: 700;
}

.survivor-history-meta,
.survivor-current-pick-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.survivor-history-meta > span,
.survivor-current-pick-meta > span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.survivor-history-matchup,
.survivor-current-pick-matchup {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.6rem;
}

.survivor-current-pick-team-logo {
  width: 2.4rem;
  height: 2.4rem;
  flex: 0 0 2.4rem;
  object-fit: contain;
}

.survivor-history-matchup-copy,
.survivor-current-pick-matchup-copy {
  display: grid;
  min-width: 0;
  flex: 1;
  gap: 0.12rem;
}

.survivor-history-team-row,
.survivor-history-opponent-row,
.survivor-current-pick-team-row,
.survivor-current-pick-opponent-row {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 0.5rem;
}

.survivor-history-team-row strong,
.survivor-current-pick-team-row strong {
  min-width: 0;
  color: var(--navy);
  overflow-wrap: anywhere;
}

.survivor-history-team-row b,
.survivor-history-opponent-row b,
.survivor-current-pick-team-row b,
.survivor-current-pick-opponent-row b {
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}

.survivor-history-opponent-row,
.survivor-current-pick-opponent-row {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 650;
}

.survivor-history-result {
  justify-self: end;
  font-size: 0.76rem;
  font-style: normal;
  font-weight: 700;
  text-align: right;
}

.survivor-history-result.is-won,
.survivor-history-result.is-live-winning {
  color: var(--green-dark);
}

.survivor-history-result.is-lost,
.survivor-history-result.is-live-losing {
  color: var(--danger-dark);
}

.survivor-entry-pick-form {
  display: grid;
  min-width: 0;
  margin: 0;
  grid-template-areas:
    "current history"
    "actions actions";
  grid-template-columns: minmax(0, 2.1fr) minmax(20rem, 22rem);
  align-items: start;
  gap: 1rem;
}

.survivor-current-week-columns {
  display: grid;
  min-width: 0;
  grid-area: current;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: stretch;
  gap: 1rem;
}

.survivor-team-selection,
.survivor-selected-team-status {
  display: flex;
  min-width: 0;
  margin: 0;
  flex-direction: column;
}

.survivor-team-selection-fieldset {
  min-width: 0;
  margin: 0;
  padding: 0.9rem;
  flex: 1;
  background: #f2f7f4;
  border: 1px solid #b7cfc1;
  border-radius: 0.75rem;
}

.survivor-team-selection-instruction {
  margin: 0 0 0.5rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.survivor-selection-label {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem 0.5rem;
}

.survivor-selection-label label { margin: 0; }

.survivor-team-select-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.75rem;
}

.survivor-team-select-field {
  min-width: 0;
  margin: 0;
}

.survivor-team-select-field label {
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 800;
}

.survivor-team-select-control {
  position: relative;
  min-width: 0;
}

.survivor-team-select-logo {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 0.65rem;
  width: 2rem;
  height: 2rem;
  pointer-events: none;
  object-fit: contain;
  transform: translateY(-50%);
}

.survivor-team-select-logo[hidden] {
  display: none;
}

.survivor-team-select {
  width: 100%;
  min-height: 3.15rem;
  padding: 0.65rem 2.4rem 0.65rem 0.75rem;
  color: var(--navy);
  font-size: 0.95rem;
  font-weight: 700;
  background-color: #ffffff;
  border: 2px solid var(--navy);
  border-radius: 0.55rem;
}

.survivor-team-select-control.has-team-logo .survivor-team-select {
  padding-left: 3.2rem;
}

.survivor-team-select-field.is-selected .survivor-team-select {
  border-color: var(--navy);
  box-shadow: none;
}

.survivor-team-select:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.survivor-team-select:disabled {
  color: #475467;
  background-color: #e9eef3;
  border-color: var(--navy);
  opacity: 1;
}

.survivor-selected-game-list {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
}

.survivor-selected-game-list > .muted {
  margin: 0;
  padding: 0.85rem 1rem;
  flex: 1;
  background: #f8fafb;
  border: 1px dashed #b9c3cc;
  border-radius: 0.6rem;
}

.survivor-selected-game-list > .survivor-selected-game:not([hidden]) ~ .survivor-selected-game:not([hidden]) {
  margin-top: 0.55rem;
}

.survivor-selected-game[hidden],
.survivor-no-current-selection[hidden] {
  display: none;
}

.survivor-current-pick-list {
  display: grid;
  height: 100%;
  gap: 0.35rem;
}

.survivor-matchup-card.survivor-selected-game {
  overflow: visible;
  flex: 1;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.survivor-selected-game .survivor-current-pick-week {
  min-height: 0;
  padding: 0.55rem;
  gap: 0.5rem;
  border-width: 1px;
  border-color: #d9e0e7;
  box-shadow: none;
}

.survivor-selected-game .survivor-current-pick-week:not(.is-selected) {
  display: none;
}

.survivor-selected-game .survivor-current-pick-week.is-selected {
  height: 100%;
  border-color: #d9e0e7;
  box-shadow: none;
}

.survivor-current-pick-team-row,
.survivor-current-pick-opponent-row {
  font-size: 0.86rem;
}

.survivor-current-pick-team-row b,
.survivor-current-pick-opponent-row b {
  font-size: 1rem;
}

.survivor-current-pick-team-row strong,
.survivor-current-pick-team-row b {
  font-weight: 700;
}

.survivor-current-pick-opponent-row,
.survivor-current-pick-opponent-row b {
  font-weight: 400;
}

.survivor-current-pick-meta .game-status {
  width: auto;
  min-height: 0;
  margin-left: 0;
  padding: 0;
  color: var(--muted);
  font-size: 0.76rem;
  font-style: normal;
  line-height: inherit;
  background: transparent;
  border: 0;
  border-radius: 0;
  transform: none;
}

.survivor-current-pick-meta .game-status.live {
  color: #1e4e79;
}

.survivor-current-pick-week.is-won .survivor-current-pick-meta > span,
.survivor-current-pick-week.is-won .survivor-current-pick-status,
.survivor-current-pick-week.is-won .survivor-current-pick-team-row strong,
.survivor-current-pick-week.is-won .survivor-current-pick-team-row b,
.survivor-current-pick-week.is-won .survivor-current-pick-opponent-row,
.survivor-current-pick-week.is-won .survivor-current-pick-opponent-row b {
  color: var(--green-dark);
}

.survivor-current-pick-week.is-lost .survivor-current-pick-meta > span,
.survivor-current-pick-week.is-lost .survivor-current-pick-status,
.survivor-current-pick-week.is-lost .survivor-current-pick-team-row strong,
.survivor-current-pick-week.is-lost .survivor-current-pick-team-row b,
.survivor-current-pick-week.is-lost .survivor-current-pick-opponent-row,
.survivor-current-pick-week.is-lost .survivor-current-pick-opponent-row b {
  color: var(--danger-dark);
}

.survivor-team-select-field.is-selected.is-live-winning .survivor-team-select,
.survivor-selected-game .survivor-current-pick-week.is-selected.is-live-winning {
  color: var(--navy);
  font-weight: 400;
  background: #effaf3;
  border-color: #8fd2ab;
  border-style: dotted;
  box-shadow: none;
}

.survivor-team-select-field.is-selected.is-live-losing .survivor-team-select,
.survivor-selected-game .survivor-current-pick-week.is-selected.is-live-losing {
  color: var(--navy);
  font-weight: 400;
  background: #fff5f5;
  border-color: #f3aaaa;
  border-style: dotted;
  box-shadow: none;
}

.survivor-team-select-field.is-selected.is-won .survivor-team-select,
.survivor-selected-game .survivor-current-pick-week.is-selected.is-won {
  color: var(--green-dark);
  font-weight: 700;
  background-color: #dff3e7;
  background-image: linear-gradient(180deg, #f4fbf7 0%, #dff3e7 48%, #c7e8d4 100%);
  border-width: 1px;
  border-color: var(--green);
  border-style: solid;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 90%),
    inset 0 -1px 0 rgb(16 104 58 / 38%),
    0 1px 2px rgb(11 31 51 / 24%);
}

.survivor-team-select-field.is-selected.is-lost .survivor-team-select,
.survivor-selected-game .survivor-current-pick-week.is-selected.is-lost {
  color: var(--danger-dark);
  font-weight: 700;
  background-color: #fee2e2;
  background-image: linear-gradient(180deg, #fff7f7 0%, #fee2e2 48%, #facaca 100%);
  border-width: 1px;
  border-color: var(--danger);
  border-style: solid;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 90%),
    inset 0 -1px 0 rgb(185 28 28 / 38%),
    0 1px 2px rgb(11 31 51 / 24%);
}

.survivor-matchup-fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.survivor-matchup-fieldset > legend {
  width: 100%;
  margin-bottom: 0.65rem;
  color: var(--navy);
  font-weight: 800;
}

.survivor-matchup-fieldset > legend span {
  margin-left: 0.35rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.survivor-matchup-list {
  display: grid;
  gap: 0.65rem;
}

.survivor-matchup-card {
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #b9c3cc;
  border-radius: 0.7rem;
  box-shadow: 0 0.2rem 0.7rem rgb(11 31 51 / 5%);
}

.survivor-matchup-card.is-live {
  border-color: #8cb7dd;
}

.survivor-matchup-card.is-final {
  border-color: #98a2b3;
}

.survivor-matchup-meta {
  display: flex;
  min-height: 2rem;
  padding: 0.3rem 0.6rem;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem 0.7rem;
  color: var(--muted);
  font-size: 0.73rem;
  font-weight: 700;
  background: #f8fafb;
  border-bottom: 1px solid var(--border);
}

.survivor-matchup-meta .game-status {
  margin-left: auto;
}

.survivor-matchup-teams {
  display: grid;
  padding: 0.55rem;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: stretch;
  gap: 0.5rem;
}

.survivor-matchup-at {
  align-self: center;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.survivor-team-option {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 4.2rem;
  padding: 0.5rem;
  align-content: center;
  gap: 0.45rem;
  background: #ffffff;
  border: 2px solid #98a2b3;
  border-radius: 0.55rem;
  transition: background-color 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}

.survivor-team-option.is-selected {
  border-color: var(--gold);
  box-shadow: inset 0 0 0 1px var(--gold);
}

.survivor-team-option.is-used {
  color: #667085;
  background: #eef2f6;
  border-color: #c7d0d9;
}

.survivor-team-option.is-live-winning {
  color: var(--navy);
  font-weight: 400;
  background: #effaf3;
  border-color: #8fd2ab;
  border-style: dotted;
}

.survivor-team-option.is-live-losing {
  color: var(--navy);
  font-weight: 400;
  background: #fff5f5;
  border-color: #f3aaaa;
  border-style: dotted;
}

.survivor-team-option.is-won {
  color: var(--green-dark);
  font-weight: 700;
  background-color: #dff3e7;
  background-image: linear-gradient(180deg, #f4fbf7 0%, #dff3e7 48%, #c7e8d4 100%);
  border-color: var(--green);
  border-style: solid;
}

.survivor-team-option.is-lost {
  color: var(--danger-dark);
  font-weight: 700;
  background-color: #fee2e2;
  background-image: linear-gradient(180deg, #fff7f7 0%, #fee2e2 48%, #facaca 100%);
  border-color: var(--danger);
  border-style: solid;
}

.survivor-team-identity {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.4rem;
}

.survivor-team-location {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.survivor-team-name {
  min-width: 0;
  flex: 1;
  color: var(--navy);
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}

.survivor-team-score {
  flex: 0 0 auto;
  color: var(--navy);
  font-size: 1.3rem;
  font-variant-numeric: tabular-nums;
}

.survivor-team-option.is-won .survivor-team-location,
.survivor-team-option.is-won .survivor-team-name,
.survivor-team-option.is-won .survivor-team-score {
  color: var(--green-dark);
}

.survivor-team-option.is-lost .survivor-team-location,
.survivor-team-option.is-lost .survivor-team-name,
.survivor-team-option.is-lost .survivor-team-score {
  color: var(--danger-dark);
}

.survivor-team-option:is(.is-live-winning, .is-live-losing) .survivor-current-pick-meta > span,
.survivor-team-option:is(.is-live-winning, .is-live-losing) .survivor-current-pick-status,
.survivor-team-option:is(.is-live-winning, .is-live-losing) .survivor-current-pick-opponent-row,
.survivor-team-option:is(.is-live-winning, .is-live-losing) .survivor-current-pick-opponent-row b {
  color: var(--navy);
  font-weight: 400;
}

.survivor-team-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.survivor-pick-position {
  position: relative;
  display: inline-flex;
  min-height: 1.9rem;
  padding: 0.25rem 0.55rem;
  align-items: center;
  gap: 0.3rem;
  color: var(--navy);
  font-size: 0.76rem;
  font-weight: 800;
  background: #f5f7f9;
  border: 1px solid #98a2b3;
  border-radius: 999px;
  cursor: pointer;
}

.survivor-pick-position.is-selected {
  color: #ffffff;
  background: var(--navy);
  border-color: var(--gold);
}

.survivor-pick-position:has(input:disabled) {
  cursor: default;
  opacity: 0.68;
}

@supports selector(.survivor-pick-position:has(input:checked)) {
  .survivor-pick-position input {
    position: absolute;
    opacity: 0;
  }

  .survivor-pick-position:has(input:checked) {
    color: #ffffff;
    background: var(--navy);
    border-color: var(--gold);
  }

  .survivor-pick-position:has(input:focus-visible) {
    outline: 3px solid var(--gold);
    outline-offset: 2px;
    box-shadow: 0 0 0 5px var(--navy);
  }
}

.survivor-team-unavailable {
  display: inline-flex;
  width: max-content;
  min-height: 1.55rem;
  padding: 0.15rem 0.45rem;
  align-items: center;
  font-size: 0.7rem;
  font-weight: 800;
  border-radius: 999px;
}

.survivor-team-unavailable {
  color: #475467;
  background: #e4e9ee;
  border: 1px solid #b9c3cc;
}

.survivor-pick-actions {
  display: flex;
  grid-area: actions;
  margin-top: 0;
  padding-top: 0.9rem;
  justify-content: flex-end;
  border-top: 1px solid var(--border);
}

.survivor-account-pick-form > .survivor-pick-actions {
  margin-top: 1.5rem;
}

.survivor-pick-actions.requires-verification {
  flex-direction: column;
  gap: 1rem;
}

.survivor-pick-actions .button {
  min-width: min(100%, 18rem);
}

.survivor-pick-actions[hidden] {
  display: none;
}

.admin-survivor-entry-list li {
  display: flex;
  padding-right: 0.5rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.admin-survivor-entry-list li > span:first-child {
  margin-right: auto;
}

.admin-survivor-entry-list form {
  margin: 0;
}

.admin-survivor-entry-list .button {
  min-height: 2rem;
  padding: 0.35rem 0.6rem;
  font-size: 0.74rem;
}

.admin-survivor-week-selector {
  align-self: flex-start;
}

@media (max-width: 64rem) {
  .survivor-entry-pick-form {
    grid-template-areas:
      "current"
      "history"
      "actions";
    grid-template-columns: minmax(0, 1fr);
  }

  .survivor-current-week-columns {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 48rem) {
  .survivor-entry-pick-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .survivor-entry-state {
    align-self: flex-start;
  }

  .survivor-matchup-teams {
    grid-template-columns: 1fr;
  }

  .survivor-matchup-at {
    justify-self: center;
  }

  .survivor-team-select-grid {
    grid-template-columns: minmax(0, 1fr);
  }

}

.survivor-history-week-compact,
.survivor-history-result-compact {
  display: none;
}

@media (max-width: 40rem) {
  .survivor-pick-history-content {
    padding: 0.4rem;
  }

  .survivor-history-list {
    --survivor-history-week-to-logo-gap: minmax(0.35rem, 1fr);
    --survivor-history-logo-to-team-gap: 0.25rem;
    --survivor-history-matchup-column-width: max-content;
    --survivor-history-matchup-to-score-gap: minmax(0.3rem, 1fr);
    --survivor-history-score-to-result-gap: 0.3rem;
    --survivor-history-selected-score-to-separator-gap: 0.15rem;
    --survivor-history-separator-to-opponent-score-gap: 0.15rem;
  }

  .survivor-history-list li {
    padding-left: 0.35rem;
    padding-right: 0;
    grid-template-columns:
      max-content
      var(--survivor-history-week-to-logo-gap)
      1.5rem
      var(--survivor-history-logo-to-team-gap)
      max-content
      var(--survivor-history-matchup-to-score-gap)
      max-content
      1px
      minmax(max-content, 1fr);
  }

  .survivor-history-week-full,
  .survivor-history-result-full {
    display: none;
  }

  .survivor-history-week-compact,
  .survivor-history-result-compact,
  .survivor-history-week-pick {
    display: block;
  }

  .survivor-history-divider.is-before-score,
  .survivor-history-divider.is-before-result {
    justify-self: end;
  }

  .survivor-history-scoreline {
    padding-inline: var(--survivor-history-score-to-result-gap);
  }

  .survivor-history-result {
    justify-self: stretch;
    text-align: center;
  }

  .survivor-history-result-compact {
    min-width: 1.4rem;
  }

  .survivor-history-team-logo,
  .survivor-history-team-logo-placeholder {
    width: 1.5rem;
    height: 1.5rem;
  }

  .survivor-history-team,
  .survivor-history-opponent-context {
    flex-shrink: 0;
  }
}

@media (max-width: 22rem) {
  .survivor-pick-history-content {
    padding: 0.25rem;
  }

  .survivor-history-list li {
    padding-left: 0.25rem;
  }

  .survivor-history-scoreline {
    font-size: 0.72rem;
  }

  .survivor-history-week-label,
  .survivor-history-team,
  .survivor-history-opponent,
  .survivor-history-opponent-context {
    font-size: 0.7rem;
  }
}

@media (max-width: 34rem) {
  .survivor-entry-pick-card {
    padding: 0;
  }

  .survivor-entry-pick-heading,
  .survivor-entry-pick-body {
    padding-inline: 0.8rem;
  }

  .survivor-playground-preview-heading {
    padding: 0.85rem;
  }

  .survivor-matchup-meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .survivor-matchup-meta .game-status {
    margin-left: 0;
  }

  .survivor-pick-actions .button {
    width: 100%;
  }

  .admin-survivor-entry-list li {
    align-items: flex-start;
    flex-direction: column;
  }

  .playground-scenario-panel,
  .playground-scenario-form,
  .playground-scenario-grid,
  .playground-scenario-game {
    min-width: 0;
    max-width: 100%;
  }

  .playground-score-fields {
    grid-template-columns: minmax(0, 1fr);
  }

  .playground-scenario-game legend {
    max-width: 100%;
    overflow-wrap: anywhere;
  }
}

@media (prefers-reduced-motion: reduce) {
  .team-pick-option,
  .survivor-team-option {
    transition: none;
  }

}


/* Native options use nicknames; the closed control retains the full label. */
.survivor-team-select-field .survivor-team-select-control.has-selection-display .survivor-team-select {
  color: transparent;
}

.survivor-team-select-control.has-selection-display .survivor-team-select option {
  color: var(--navy);
}

.survivor-team-select-control.has-selection-display .survivor-team-select option:disabled {
  color: #667085;
}

.survivor-team-select-display {
  position: absolute;
  inset: 0 2.4rem 0 0.75rem;
  display: flex;
  align-items: center;
  pointer-events: none;
  color: var(--navy);
  font-size: 0.95rem;
  font-weight: 700;
  overflow: hidden;
  white-space: nowrap;
}

.survivor-team-select-display[hidden] { display: none; }
.has-team-logo .survivor-team-select-display { left: 3.2rem; }
.survivor-team-select:disabled + .survivor-team-select-display { color: #475467; }

.survivor-team-select-field:is(.is-won, .is-lost) .survivor-team-select-display {
  color: var(--green-dark);
}

.survivor-team-select-field.is-lost .survivor-team-select-display {
  color: var(--danger-dark);
}

.survivor-team-select-field:is(.is-live-winning, .is-live-losing) .survivor-team-select-display {
  font-weight: 400;
}
