.fantasy-page .fx-hero {
  padding-top: 12px;
  padding-bottom: 6px;
}

.fantasy-page .fx-hero h1 {
  max-width: 16ch;
  margin: 10px 0 0;
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 750;
  letter-spacing: -1.8px;
  line-height: 1.05;
}

.fantasy-page .fx-hero h1 span {
  color: var(--muted);
  font-weight: 650;
}

.fx-lead {
  max-width: 62ch;
  margin-top: 16px;
  font-size: 17px;
  line-height: 1.5;
}

.fx-scorecard {
  margin-top: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 8px 8px 14px;
}

.fx-score {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: end;
  padding: 16px 16px 12px;
}

.fx-score__who {
  display: block;
  color: var(--green);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fx-score__pts {
  display: block;
  margin-top: 4px;
  font-size: clamp(42px, 6vw, 64px);
  font-weight: 750;
  letter-spacing: -2.2px;
  line-height: 0.95;
  font-variant-numeric: tabular-nums;
}

.fx-score__team {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  font-weight: 650;
}

.fx-score__mid {
  align-self: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--green);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fx-score__side--right {
  text-align: right;
}

.fx-outlook {
  display: grid;
  gap: 8px;
  margin: 4px 8px 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.fx-outlook__row {
  display: grid;
  grid-template-columns: 92px 1fr auto;
  gap: 12px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
}

.fx-outlook__row strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 750;
}

.fx-outlook__row.is-plan strong {
  color: var(--green);
}

.fx-track {
  display: block;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #f0dfd4;
}

.fx-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #9aab9e;
}

.fx-outlook__row.is-plan .fx-track span {
  background: var(--green);
}

.fx-picker {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px 16px;
  align-items: end;
  margin-top: 8px;
}

.fx-picker form {
  margin: 0;
  min-width: 0;
}

.fx-field {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.fx-field label {
  color: var(--green);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.fx-field select,
.fx-field input {
  width: 100%;
  height: 44px;
  margin: 0;
  border: 1px solid #c9d2c4;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 0 12px;
  font: inherit;
  font-size: 14px;
  font-weight: 650;
}

.fx-field select:focus-visible,
.fx-field input:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

.fx-lookup {
  display: flex;
  gap: 8px;
  min-width: 0;
}

.fx-lookup input {
  flex: 1;
  min-width: 0;
}

.fx-lookup button {
  flex: none;
  height: 44px;
}

.fx-picker__note {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.fx-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
}

.fx-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 0;
}

.fx-updated {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.fx-updated a {
  color: var(--green);
  font-weight: 650;
}

.fx-json-status {
  flex-basis: 100%;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.fx-json-status:empty {
  display: none;
}

.fx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}

.fx-btn--line {
  background: #fff;
  color: var(--ink);
  border: 1px solid #c9d2c4;
}

.fx-btn--line:hover {
  background: var(--soft);
  text-decoration: none;
}

.fx-menu {
  position: relative;
}

.fx-menu summary {
  list-style: none;
}

.fx-menu summary::-webkit-details-marker {
  display: none;
}

.fx-menu-panel {
  position: absolute;
  z-index: 5;
  top: calc(100% + 8px);
  left: 0;
  min-width: 200px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 8px 20px #263c3214;
}

.fx-menu-panel button,
.fx-menu-panel a {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
}

.fx-menu-panel button:hover,
.fx-menu-panel a:hover {
  background: var(--soft);
  text-decoration: none;
}

.fx-section {
  padding-block: 28px 8px;
}

.fx-section__head h2 {
  font-size: clamp(28px, 3vw, 36px);
}

.fx-kicker {
  max-width: 68ch;
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

.fx-steps {
  list-style: none;
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding: 0;
}

.fx-step {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 14px;
  align-items: start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
}

.fx-step__num {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 14px;
  font-weight: 750;
}

.fx-step__label {
  color: var(--green);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fx-step h3 {
  margin-top: 2px;
  font-size: 18px;
}

.fx-step p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.fx-gain {
  padding-top: 6px;
  color: var(--green);
  font-size: 18px;
  font-weight: 750;
  letter-spacing: -0.4px;
  font-variant-numeric: tabular-nums;
}

.fx-watch {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #f6efe4;
}

.fx-watch h3 {
  font-size: 15px;
}

.fx-watch ul {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}

.fx-watch li {
  display: grid;
  gap: 2px;
  padding-top: 10px;
}

.fx-watch li + li {
  border-top: 1px solid #eadccb;
  margin-top: 10px;
}

.fx-watch strong {
  font-size: 14px;
}

.fx-watch span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.fx-match {
  margin-top: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}

.fx-match__head,
.fx-match__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 58px 52px 58px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.fx-match__head {
  padding: 12px 16px;
  background: var(--soft);
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.fx-match__opphead {
  text-align: right;
}

.fx-match__row {
  padding: 12px 16px;
  border-top: 1px solid var(--line);
}

.fx-match__row.is-change {
  background: #f7faf6;
}

.fx-you,
.fx-opp {
  min-width: 0;
}

.fx-opp {
  text-align: right;
}

.fx-opp .fx-name,
.fx-opp .fx-meta {
  justify-content: flex-end;
}

.fx-who {
  display: none;
  margin-bottom: 3px;
  color: var(--green);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fx-swap {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.fx-swap + .fx-swap {
  margin-top: 8px;
}

.fx-swap .fx-pts--inline {
  display: inline-block;
  flex: none;
  color: var(--muted);
  font-size: 13px;
}

.fx-swap--in .fx-pts--inline {
  display: none;
}

.fx-swap--out .fx-name {
  color: var(--muted);
  font-weight: 550;
}

.fx-cmp {
  text-align: center;
  font-size: 16px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}

.fx-cmp.is-up {
  color: var(--green);
}

.fx-cmp.is-down {
  color: var(--orange);
}

.fx-slot {
  text-align: center;
  color: var(--green);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.04em;
}

.fx-id {
  min-width: 0;
}

.fx-name {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.2px;
}

.fx-meta {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.fx-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 1px 7px;
  background: #f6efe4;
  color: var(--orange);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.fx-pill--good {
  background: #e5f0e6;
  color: var(--green);
}

.fx-pts,
.fx-pts--inline {
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}

.fx-pts--inline {
  display: none;
  margin-left: 8px;
  font-size: 14px;
}

.fx-bench-title {
  margin-top: 22px;
  font-size: 16px;
}

.fx-bench {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.fx-player {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-width: 0;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.fx-player.is-bench {
  background: #fbfaf6;
}

.fx-player.is-in {
  border-color: #b7d0bc;
  background: #f7faf6;
}

.fx-player .fx-pts {
  font-size: 15px;
}

.fx-actual {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.fx-table-wrap {
  margin-top: 14px;
  overflow-x: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.fx-table {
  width: 100%;
  border-collapse: collapse;
}

.fx-table th {
  padding: 12px 14px;
  text-align: left;
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fx-table td {
  padding: 12px 14px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.fx-table th:nth-child(n + 3),
.fx-table td:nth-child(n + 3) {
  text-align: right;
}

.fx-table tr.is-mine td {
  background: #f3f7f1;
}

.fx-table tr.is-opp td {
  background: #fbf8f3;
}

.fx-week {
  display: inline-grid;
  justify-items: end;
  gap: 4px;
  min-width: 92px;
}

.fx-week__bar {
  display: block;
  width: 92px;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--soft);
}

.fx-week__bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
}

.fx-note {
  max-width: 68ch;
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
}

.fx-alert {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #f6efe4;
  font-size: 14px;
}

@media (max-width: 760px) {
  .fantasy-page .fx-hero h1 {
    max-width: none;
  }

  .fx-score {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .fx-score__mid,
  .fx-score__side--right {
    text-align: left;
  }

  .fx-outlook__row {
    grid-template-columns: 78px 1fr;
  }

  .fx-outlook__row strong {
    grid-column: 1 / -1;
  }

  .fx-step {
    grid-template-columns: 32px 1fr;
  }

  .fx-gain {
    grid-column: 2;
    padding-top: 0;
  }

  .fx-match__head {
    display: none;
  }

  .fx-match__row {
    grid-template-columns: 46px minmax(0, 1fr);
    grid-template-areas:
      "slot you"
      "slot opp";
  }

  .fx-cmp {
    display: none;
  }

  .fx-slot {
    grid-area: slot;
    align-self: center;
  }

  .fx-you {
    grid-area: you;
  }

  .fx-opp {
    grid-area: opp;
  }

  .fx-you,
  .fx-opp {
    text-align: left;
  }

  .fx-opp .fx-name,
  .fx-opp .fx-meta {
    justify-content: flex-start;
  }

  .fx-who,
  .fx-pts--inline,
  .fx-swap--in .fx-pts--inline {
    display: inline-block;
  }

  .fx-swap {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 4px 8px;
  }

  .fx-bench {
    grid-template-columns: 1fr;
  }

  .fx-week,
  .fx-week__bar {
    width: 72px;
    min-width: 72px;
  }
}
