.standings-page-heading {
  margin-bottom: 0.75rem;
}

.what-if-page-shell {
  width: 100%;
  margin-inline: auto;
}

.what-if-locked-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.5rem;
  width: 100%;
  max-width: 42rem;
  padding: clamp(1.25rem, 4vw, 2rem);
  border: 1px solid rgb(11 31 51 / 10%);
  border-radius: 1.25rem;
  box-shadow: 0 0.75rem 2.5rem rgb(11 31 51 / 5%);
}

.what-if-locked-card h2 {
  margin: 0;
  color: var(--navy);
  font-size: 1rem;
  line-height: 1.35;
}

.what-if-opening-date,
.what-if-opening-clock {
  display: block;
  color: var(--navy);
  line-height: 1.5;
}

.what-if-opening-date {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-weight: 750;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.what-if-opening-clock {
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 1rem;
}

.what-if-playground-note {
  max-width: 54rem;
  margin: 0.4rem 0 0;
  padding: 0.45rem 0.65rem;
  color: var(--navy);
  font-size: 0.72rem;
  font-weight: 650;
  background: var(--gold-soft);
  border-left: 0.2rem solid var(--gold);
  border-radius: 0.25rem;
}

.what-if-form {
  display: grid;
  gap: 0.85rem;
}

.what-if-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 0.2rem solid var(--navy);
  border-radius: 0.75rem;
  box-shadow: 0 0.5rem 1.5rem rgb(11 31 51 / 6%);
}

.what-if-panel > .what-if-panel-header {
  display: flex;
  min-height: 4.375rem;
  margin: 0;
  padding: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem 0.75rem;
  background: var(--background);
  border-bottom: 1px solid var(--border);
  border-radius: 0.55rem 0.55rem 0 0;
}

.what-if-panel > .what-if-games-card,
.what-if-panel > .what-if-standings-card {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.what-if-panel > .what-if-standings-card {
  border-radius: 0 0 0.7rem 0.7rem;
}

.what-if-panel > .what-if-outcomes-footer {
  margin: 0;
  padding: 0.75rem;
  border: 0;
  border-top: 1px solid var(--border);
  border-radius: 0 0 0.7rem 0.7rem;
}

.what-if-view-control {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.what-if-view-option {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  cursor: pointer;
}

.what-if-view-option input,
.what-if-winner-option input {
  width: 1rem;
  min-height: 1rem;
  margin: 0;
  flex: 0 0 auto;
  accent-color: var(--navy);
}

.what-if-view-option input:checked + .poolwide-picks-sort-button {
  color: #ffffff;
  background: var(--navy);
  border-color: var(--gold);
}

.what-if-view-option input:focus-visible + .poolwide-picks-sort-button {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px var(--navy);
}

.what-if-preset-button {
  display: inline-flex;
  min-height: 2rem;
  padding: 0.35rem 0.65rem;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  font-size: 0.7rem;
  font-weight: 750;
  line-height: 1.1;
  background: var(--surface);
  border: 1px solid var(--navy);
  border-radius: 0.45rem;
  box-shadow: 0 2px 0 rgb(11 31 51 / 25%);
  cursor: pointer;
}

.what-if-preset-button:hover {
  background: var(--background);
}

.what-if-preset-button:active {
  background: #e8edf2;
  box-shadow: inset 0 2px 3px rgb(0 0 0 / 25%);
  transform: translateY(1px);
}

@media (prefers-reduced-motion: reduce) {
  .what-if-preset-button:active {
    transform: none;
  }
}

.what-if-tiebreak-field {
  display: flex;
  margin-left: auto;
  align-items: center;
  gap: 0.45rem;
}

.what-if-tiebreak-field label {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.what-if-tiebreak-field input {
  width: 4.2rem;
  min-height: 2rem;
  padding: 0.3rem 0.45rem;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  appearance: textfield;
}

.what-if-tiebreak-field input::-webkit-inner-spin-button,
.what-if-tiebreak-field input::-webkit-outer-spin-button {
  margin: 0;
  appearance: none;
}

.what-if-layout {
  display: grid;
  min-width: 0;
  align-items: start;
  grid-template-columns: minmax(30rem, 0.82fr) minmax(38rem, 1.18fr);
  gap: 1rem;
}

.what-if-column {
  min-width: 0;
}

.what-if-section-heading {
  display: flex;
  min-height: 3.05rem;
  margin-bottom: 0.45rem;
  align-items: end;
  justify-content: space-between;
  gap: 0.75rem;
}

.what-if-section-heading .eyebrow {
  margin-bottom: 0;
}

.what-if-section-heading h2 {
  margin: 0;
  color: var(--navy);
  font-size: 1rem;
}

.what-if-section-heading > p {
  margin: 0 0 0.05rem;
  color: var(--muted);
  font-size: 0.72rem;
  text-align: right;
}

.what-if-preset-help {
  flex-basis: 100%;
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.5;
}

.what-if-live-status {
  margin: 0 0 0.45rem;
  color: var(--danger-dark);
  font-size: 0.72rem;
}

.what-if-outcome-controls {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.what-if-games-card {
  border-top: 0.3rem solid var(--navy);
  box-shadow: 0 1rem 3rem rgb(11 31 51 / 8%);
}

.what-if-games-table {
  min-width: 30rem;
  table-layout: fixed;
}

.what-if-game-matchup-column {
  width: 18%;
}

.what-if-game-winner-column {
  width: 38%;
}

.what-if-game-score-column {
  width: 25%;
}

.what-if-game-status-column {
  width: 19%;
}

.what-if-games-table th,
.what-if-games-table td {
  height: 2.7rem;
  padding: 0.38rem 0.48rem;
  vertical-align: middle;
}

.what-if-games-table th:not(:first-child),
.what-if-games-table td:not(:first-child) {
  text-align: center;
}

.what-if-games-table tbody tr:nth-child(even) {
  background: #fafbfc;
}

.what-if-games-table tbody tr:hover {
  background: var(--gold-soft);
}

.what-if-games-table tbody tr:last-child > * {
  border-bottom: 0;
}

.what-if-games-table tbody th {
  color: var(--navy);
  font-size: 0.72rem;
  letter-spacing: 0;
  text-transform: none;
  background: transparent;
}

.what-if-matchup,
.what-if-game-score,
.what-if-game-status {
  white-space: nowrap;
}

.what-if-winner-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.25rem;
}

.what-if-winner-option {
  display: flex;
  min-width: 0;
  min-height: 1.72rem;
  padding: 0.18rem 0.3rem;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  color: var(--navy);
  font-size: 0.66rem;
  line-height: 1;
  background: #ffffff;
  border: 1px solid #aeb8c3;
  border-radius: 0.35rem;
  cursor: pointer;
}

.what-if-winner-option:hover {
  background: var(--gold-soft);
  border-color: var(--gold);
}

.what-if-winner-option.is-actual-final-winner {
  color: #0f6b3d;
  border-color: rgb(22 131 74 / 58%);
}

.what-if-winner-option span {
  display: inline-flex;
  min-width: 0;
  align-items: baseline;
  justify-content: center;
  gap: 0.18rem;
  font-variant-numeric: tabular-nums;
}

.what-if-winner-option strong {
  font-weight: 800;
}

.what-if-actual-label {
  padding-left: 0.18rem;
  color: inherit;
  font-size: 0.48rem;
  font-weight: 850;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  border-left: 1px solid currentcolor;
}

.what-if-outcomes-footer {
  display: flex;
  min-height: 2.75rem;
  margin-top: 0.45rem;
  padding: 0.45rem 0.6rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.55rem;
}

.what-if-outcome-key {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem 0.75rem;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 750;
  text-transform: uppercase;
}

.what-if-outcome-key span {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.what-if-outcome-swatch {
  display: inline-block;
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 0.18rem;
}

.what-if-outcome-swatch.is-actual {
  background: var(--green);
  border: 1px solid var(--green);
}

.what-if-outcome-swatch.is-scenario {
  background: var(--navy);
  border: 1px solid var(--gold);
}

.what-if-game-score {
  color: var(--navy);
  font-size: 0.67rem;
  font-variant-numeric: tabular-nums;
}

.what-if-game-status {
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  text-transform: uppercase;
}

.what-if-game-status.is-live {
  color: #075985;
}

.what-if-standings-table {
  min-width: 34rem;
}

.what-if-standings-table .standings-rank-column {
  width: 11%;
}

.what-if-standings-table .standings-username-column {
  width: 39%;
}

.what-if-standings-table .standings-points-column,
.what-if-standings-table .standings-record-column {
  width: 17%;
}

.what-if-standings-table .standings-diff-column {
  width: 16%;
}

.what-if-standings-card th,
.what-if-standings-card td {
  padding: 0.7rem 0.85rem;
}

@supports selector(.what-if-winner-option:has(input:checked)) {
  .what-if-view-option input,
  .what-if-winner-option input {
    position: absolute;
    opacity: 0;
  }

  .what-if-winner-option:has(input:checked) {
    color: #ffffff;
    background: var(--navy);
    border-color: var(--gold);
    box-shadow: inset 0 0 0 1px var(--gold);
  }

  .what-if-winner-option.is-actual-final-winner:has(input:checked) {
    color: #ffffff;
    background: var(--green);
    border-color: #0f6b3d;
    box-shadow: inset 0 0 0 1px rgb(255 255 255 / 48%);
  }

  .what-if-winner-option:has(input:focus-visible) {
    outline: 3px solid var(--gold);
    outline-offset: 1px;
    box-shadow: 0 0 0 4px var(--navy);
  }
}

@media (max-width: 80rem) {
  .what-if-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 46rem) {
  .what-if-toolbar,
  .what-if-view-control,
  .what-if-tiebreak-field,
  .what-if-outcome-controls {
    align-items: flex-start;
  }

  .what-if-view-control,
  .what-if-tiebreak-field {
    width: 100%;
    flex-direction: column;
  }

  .what-if-live-button,
  .what-if-tiebreak-field {
    margin-left: 0;
    margin-right: 0;
  }

  .what-if-outcome-controls {
    width: 100%;
    justify-content: space-between;
  }

  .what-if-outcomes-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .what-if-tiebreak-field input {
    width: 5rem;
  }

  .what-if-panel > .what-if-section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.15rem;
  }

  .what-if-section-heading > p {
    text-align: left;
  }

}


.what-if-panel > .what-if-toolbar {
  position: sticky;
  top: 0;
  z-index: 6;
}

.what-if-toolbar .entry-table-jump {
  margin-left: auto;
}

@media (max-width: 46rem) {
  .what-if-panel > .what-if-toolbar {
    flex-direction: row;
    align-items: center;
    gap: 0.35rem 0.5rem;
  }

  .what-if-toolbar > h2 {
    flex-basis: 100%;
  }

  .what-if-toolbar .what-if-view-control {
    width: auto;
    flex-direction: row;
  }

  .what-if-toolbar .poolwide-picks-sort-button {
    padding-inline: 0.4rem;
  }

  .what-if-toolbar .entry-table-jump {
    padding-inline: 0.5rem;
    font-size: 0.75rem;
  }
}
