:root {
    color-scheme: light;
    font-family: Arial, Helvetica, sans-serif;
    --paper: #f5f2e9;
    --surface: #fffefa;
    --surface-muted: #e7edf1;
    --ink: #243247;
    --navy: #304c6a;
    --blue: #476f96;
    --blue-dark: #315472;
    --red: #aa514f;
    --yellow: #d6aa49;
    --yellow-soft: #f3e4ad;
    --muted: #5a6776;
    --line: rgba(48, 76, 106, 0.20);
    --line-strong: rgba(48, 76, 106, 0.38);
    --warning: #7b5a16;
    --danger: #993f43;
    --green: var(--blue);
    --green-dark: var(--blue-dark);
    --radius-control: 0.65rem;
    --radius-panel: 0.85rem;
    background: var(--paper);
    color: var(--ink);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at top right, rgba(71, 111, 150, 0.10), transparent 34rem),
        var(--paper);
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem clamp(1.25rem, 5vw, 5rem);
    border-bottom: 1px solid var(--line);
}

.site-header nav,
.site-header form {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0;
}

.site-header a,
.link-button {
    color: var(--navy);
}

.link-button {
    padding: 0;
    border: 0;
    background: transparent;
    font: inherit;
    text-decoration: underline;
    cursor: pointer;
}

.brand {
    color: inherit;
    font-weight: 750;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    flex-shrink: 0;
    white-space: nowrap;
}

.brand-logo {
    display: block;
    width: 4rem;
    height: 4rem;
    flex-shrink: 0;
    border-radius: 0.65rem;
    object-fit: contain;
}

main {
    width: min(72rem, 100%);
    margin: 0 auto;
    padding: clamp(4rem, 10vw, 8rem) clamp(1.25rem, 5vw, 5rem);
}

.hero {
    max-width: 52rem;
}

.eyebrow {
    color: var(--green);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

h1 {
    margin: 0.3rem 0 1rem;
    font-size: clamp(3rem, 9vw, 6rem);
    line-height: 0.95;
    letter-spacing: -0.055em;
}

.lede {
    max-width: 42rem;
    color: var(--muted);
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    line-height: 1.6;
}

.status-card {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
    gap: 1px;
    margin-top: 3rem;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 1rem;
    background: var(--line);
}

.status-card div {
    padding: 1.25rem;
    background: var(--surface);
}

.status-card dt {
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.status-card dd {
    margin: 0.4rem 0 0;
    font-weight: 700;
}

.account-card {
    width: min(34rem, 100%);
    padding: clamp(1.5rem, 5vw, 2.5rem);
    border: 1px solid var(--line);
    border-radius: 1rem;
    background: var(--surface);
}

.account-card h1 {
    font-size: clamp(2rem, 7vw, 3.5rem);
}

.field {
    display: grid;
    gap: 0.45rem;
    margin: 1.1rem 0;
}

.field input {
    width: 100%;
    padding: 0.8rem 0.9rem;
    border: 1px solid var(--line-strong);
    border-radius: 0.5rem;
    background: var(--paper);
    color: inherit;
    font: inherit;
}

.button {
    display: inline-block;
    padding: 0.8rem 1rem;
    border: 0;
    border-radius: 0.5rem;
    background: var(--green);
    color: var(--paper);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.validation-summary-errors,
.field-validation-error {
    color: var(--danger);
}

.notice {
    padding: 1rem;
    border-left: 0.25rem solid var(--green);
    background: rgba(71, 111, 150, 0.08);
    overflow-wrap: anywhere;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.site-header nav a {
    color: var(--navy);
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration-color: var(--green);
    text-underline-offset: 0.3rem;
}

.waitlist-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(19rem, 0.75fr);
    gap: clamp(2rem, 7vw, 6rem);
    align-items: center;
    min-height: 34rem;
}

.waitlist-hero::before {
    position: absolute;
    z-index: -1;
    inset: -3rem -5vw;
    border: 1px solid rgba(71, 111, 150, 0.10);
    border-radius: 50%;
    background:
        linear-gradient(90deg, transparent 49.8%, rgba(98, 217, 170, 0.12) 50%, transparent 50.2%),
        linear-gradient(rgba(8, 18, 15, 0.15), rgba(8, 18, 15, 0.95));
    content: "";
    transform: rotate(-4deg);
}

.waitlist-copy h1 {
    max-width: 11ch;
}

.waitlist-signals {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    padding: 0;
    margin: 2rem 0 0;
    list-style: none;
}

.waitlist-signals li {
    padding: 0.55rem 0.8rem;
    border: 1px solid rgba(71, 111, 150, 0.32);
    border-radius: 999px;
    color: var(--navy);
    background: rgba(255, 254, 250, 0.92);
    font-size: 0.85rem;
    font-weight: 700;
}

.waitlist-card {
    padding: clamp(1.5rem, 4vw, 2.25rem);
    border: 1px solid var(--line-strong);
    border-top: 0.3rem solid var(--green);
    border-radius: 0.8rem;
    background: rgba(255, 254, 250, 0.98);
    box-shadow: 0 2rem 5rem rgba(0, 0, 0, 0.25);
}

.waitlist-card h2,
.dynasty-pillars h2 {
    margin: 0.35rem 0 0.75rem;
    font-size: clamp(2rem, 5vw, 3.4rem);
    line-height: 1;
    letter-spacing: -0.045em;
}

.field {
    display: grid;
    gap: 0.45rem;
    margin: 1.25rem 0;
}

.field label {
    color: var(--navy);
    font-size: 0.85rem;
    font-weight: 750;
}

.field input {
    width: 100%;
    min-height: 3.2rem;
    padding: 0.75rem 0.9rem;
    border: 1px solid var(--line-strong);
    border-radius: 0.45rem;
    outline: none;
    background: var(--paper);
    color: var(--ink);
    font: inherit;
}

.field input:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 0.2rem rgba(71, 111, 150, 0.12);
}

.consent {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.7rem;
    align-items: start;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.45;
}

.consent input {
    width: 1.05rem;
    height: 1.05rem;
    margin-top: 0.15rem;
    accent-color: var(--green);
}

.waitlist-button {
    width: 100%;
    margin-top: 1.25rem;
}

.button {
    min-height: 3.2rem;
    padding: 0.8rem 1rem;
    border: 0;
    border-radius: 0.45rem;
    background: var(--green);
    color: var(--paper);
    font: inherit;
    font-weight: 850;
    cursor: pointer;
}

.button:hover {
    background: var(--green-dark);
}

.button:focus-visible,
.site-header a:focus-visible {
    outline: 0.2rem solid var(--ink);
    outline-offset: 0.2rem;
}

.privacy-note {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 0.76rem;
    line-height: 1.5;
}

.honeypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.validation-summary-errors,
.field-validation-error {
    color: var(--danger);
}

.waitlist-success {
    padding: 2rem 0;
}

.waitlist-success p:last-child {
    color: var(--muted);
    line-height: 1.6;
}

.dynasty-pillars {
    display: grid;
    grid-template-columns: 1.25fr repeat(3, 1fr);
    gap: 1px;
    margin-top: clamp(5rem, 12vw, 9rem);
    border: 1px solid var(--line);
    border-radius: 0.8rem;
    overflow: hidden;
    background: var(--line);
}

.dynasty-pillars > div,
.dynasty-pillars article {
    padding: clamp(1.25rem, 3vw, 2rem);
    background: var(--surface);
}

.dynasty-pillars h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.dynasty-pillars article span {
    color: var(--green);
    font-size: 0.75rem;
    font-weight: 850;
    letter-spacing: 0.12em;
}

.dynasty-pillars h3 {
    margin: 1.4rem 0 0.6rem;
    font-size: 1.05rem;
}

.dynasty-pillars article p {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.waitlist-footer {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 4rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.8rem;
}

.waitlist-footer span:first-child {
    color: var(--navy);
    font-weight: 800;
}

@media (max-width: 850px) {
    .waitlist-hero {
        grid-template-columns: 1fr;
    }

    .dynasty-pillars {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .site-header {
        align-items: flex-start;
    }

    .waitlist-footer {
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
    }
}


.account-card.league-settings-card {
    width: min(58rem, 100%);
}

fieldset {
    padding: 1.25rem;
    margin: 1.5rem 0;
    border: 1px solid var(--line);
    border-radius: 0.6rem;
}

legend {
    padding: 0 0.5rem;
    color: var(--green);
    font-weight: 800;
}

.field select {
    width: 100%;
    min-height: 3.2rem;
    padding: 0.75rem 0.9rem;
    border: 1px solid var(--line-strong);
    border-radius: 0.45rem;
    background: var(--paper);
    color: var(--ink);
    font: inherit;
}

.field small {
    color: var(--muted);
    line-height: 1.5;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
    gap: 0 1rem;
}

.settings-history {
    margin-top: 4rem;
}

.status-card a,
.account-card a {
    color: var(--navy);
}


.player-filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
    gap: 0 1rem;
    align-items: end;
    margin: 2rem 0;
}

.player-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 0.6rem;
}

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

.player-table th,
.player-table td {
    padding: 0.9rem;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.player-table th {
    color: var(--green);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.player-table small {
    display: block;
    margin-top: 0.25rem;
    color: var(--muted);
}

.notice-warning {
    border-left-color: var(--warning);
    background: rgba(247, 198, 107, 0.1);
}

.matchup-hero h1 {
    font-size: clamp(2.75rem, 8vw, 5rem);
}

.matchup-navigation {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0 1rem;
}

.matchup-navigation a:last-child {
    justify-self: end;
}

.freshness {
    color: var(--muted);
}

.matchup-score {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: clamp(1rem, 4vw, 3rem);
    margin: 2rem 0 3rem;
    padding: clamp(1.25rem, 4vw, 2rem);
    border: 1px solid var(--line);
    border-radius: 1rem;
    background: var(--surface);
}

.matchup-score div {
    display: grid;
    gap: 0.35rem;
}

.matchup-score div:last-child {
    text-align: right;
}

.matchup-score span {
    color: var(--muted);
}

.matchup-score strong {
    font-size: clamp(2rem, 7vw, 4rem);
}

.matchup-versus {
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.matchup-days {
    display: grid;
    gap: 2rem;
}

.matchup-day {
    padding-top: 1rem;
    border-top: 1px solid var(--line);
}

.matchup-day h2 {
    margin-bottom: 1rem;
}

.matchup-day-teams {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.matchup-team-day {
    min-width: 0;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 0.75rem;
    background: var(--surface);
}

.matchup-team-day > header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
}

.matchup-team-day h3 {
    margin: 0 0 1rem;
}

.matchup-player-table {
    width: 100%;
}

.game-status {
    display: inline-block;
    padding: 0.25rem 0.45rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
}

.game-status-scheduled {
    background: rgba(138, 90, 22, 0.10);
    color: var(--warning);
}

.game-status-completed {
    background: rgba(71, 111, 150, 0.12);
    color: var(--green-dark);
}

.points {
    text-align: right;
    font-variant-numeric: tabular-nums;
    font-weight: 800;
}

.empty-day {
    color: var(--muted);
}

@media (max-width: 48rem) {
    .matchup-day-teams {
        grid-template-columns: 1fr;
    }

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

    .matchup-navigation strong {
        grid-column: 1 / -1;
        grid-row: 1;
        text-align: center;
    }
}

.draft-order {
    display: grid;
    gap: 0.75rem;
    padding-left: 2rem;
}

.draft-order li,
.section-heading,
.inline-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.draft-order li {
    padding: 0.85rem 1rem;
    border: 1px solid var(--line);
    border-radius: 0.75rem;
    background: var(--surface);
}

.draft-order span {
    display: block;
    color: var(--muted);
}

.inline-actions form,
.section-heading form {
    margin: 0;
}


.draft-room-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(16rem, 0.75fr);
    gap: 1rem;
}

.draft-clock-card h2 {
    font-variant-numeric: tabular-nums;
    font-size: clamp(2.5rem, 8vw, 5rem);
    margin: 0;
}

.draft-rosters,
.draft-results {
    display: grid;
    gap: 0.65rem;
    padding-left: 1.25rem;
}

.draft-rosters li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

@media (max-width: 48rem) {
    .draft-room-grid {
        grid-template-columns: 1fr;
    }
}


.transaction-form {
  display: grid;
  gap: 0.5rem;
  min-width: 13rem;
}

.transaction-form label {
  display: grid;
  gap: 0.2rem;
  font-size: 0.8rem;
  font-weight: 700;
}

.transaction-form select {
  width: 100%;
}

.button-danger {
  border-color: var(--danger);
  background: var(--danger);
}


.trade-builder {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin: 2rem 0 3rem;
}

.trade-builder fieldset,
.trade-offer {
    border: 1px solid var(--line);
    border-radius: 1rem;
    background: var(--surface);
}

.trade-builder fieldset {
    padding: 1.25rem;
}

.trade-builder > .button {
    grid-column: 1 / -1;
    justify-self: start;
}

.asset-option {
    display: block;
    padding: 0.35rem 0;
}

.trade-offer {
    width: 100%;
    margin: 1rem 0;
}

.trade-offer form {
    display: inline-block;
    margin-right: 0.5rem;
}

.trade-sides {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

@media (max-width: 44rem) {
    .trade-builder,
    .trade-sides {
        grid-template-columns: 1fr;
    }
}


/* Editorial Rink visual system */
body {
    background:
        linear-gradient(90deg, transparent 0, transparent calc(100% - 1px), rgba(23, 38, 59, 0.035) calc(100% - 1px)),
        var(--paper);
    background-size: 5rem 100%;
    color: var(--ink);
}

a {
    color: var(--green);
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.2em;
}

h1,
h2,
h3,
.brand {
    font-family: Georgia, "Times New Roman", serif;
}

h1 {
    max-width: 13ch;
    font-size: clamp(3rem, 7vw, 5.25rem);
    line-height: 0.98;
    letter-spacing: -0.04em;
}

h2 {
    color: var(--navy);
    letter-spacing: -0.025em;
}

.site-header {
    position: relative;
    padding-block: 1rem;
    border-top: 0.35rem solid var(--green);
    border-bottom: 1px solid var(--line-strong);
    background: rgba(245, 242, 233, 0.96);
}

.site-header::after {
    position: absolute;
    right: clamp(1.25rem, 5vw, 5rem);
    bottom: -1px;
    width: clamp(3rem, 8vw, 7rem);
    height: 0.2rem;
    background: var(--red);
    content: "";
}

.brand {
    color: var(--navy);
    font-size: 1.35rem;
    letter-spacing: -0.025em;
}

.site-header nav a,
.link-button {
    color: var(--navy);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.055em;
    text-transform: uppercase;
}

main {
    width: min(76rem, 100%);
}

.eyebrow {
    color: var(--red);
    font-size: 0.72rem;
    letter-spacing: 0.16em;
}

.lede {
    color: var(--muted);
    line-height: 1.65;
}

.waitlist-hero {
    min-height: 32rem;
    padding-block: clamp(2rem, 6vw, 5rem);
    border-top: 0.3rem solid var(--navy);
    border-bottom: 1px solid var(--line-strong);
}

.waitlist-hero::before {
    inset: 0;
    border: 0;
    border-radius: 0;
    background:
        linear-gradient(90deg, transparent 0 72%, rgba(164, 72, 63, 0.06) 72% 72.2%, transparent 72.2%),
        linear-gradient(0deg, transparent 0 78%, rgba(32, 55, 82, 0.06) 78% 78.2%, transparent 78.2%);
    transform: none;
}

.waitlist-copy {
    padding-right: clamp(0rem, 3vw, 2.5rem);
}

.waitlist-copy h1 {
    max-width: 10ch;
}

.waitlist-signals {
    gap: 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.waitlist-signals li {
    padding: 0.7rem 1rem 0.7rem 0.75rem;
    border: 0;
    border-left: 0.2rem solid var(--red);
    border-radius: 0;
    background: transparent;
    color: var(--navy);
    letter-spacing: 0.02em;
}

.waitlist-card,
.account-card,
.card,
.trade-offer,
.draft-order li,
.draft-clock-card,
.matchup-team-day {
    border: 1px solid var(--line-strong);
    border-radius: 0.15rem;
    background: var(--surface);
    box-shadow: 0.4rem 0.4rem 0 var(--surface-muted);
}

.waitlist-card {
    border-top: 0.4rem solid var(--green);
}

.waitlist-card h2,
.dynasty-pillars h2 {
    font-family: Georgia, "Times New Roman", serif;
}

.field input,
.field select,
textarea {
    border-radius: 0.1rem;
    background: var(--surface);
    color: var(--ink);
}

.field input:focus,
.field select:focus,
textarea:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 0.18rem rgba(71, 111, 150, 0.14);
}

.button {
    border: 1px solid var(--green-dark);
    border-radius: 0.1rem;
    background: var(--green);
    color: var(--surface);
    letter-spacing: 0.035em;
}

.button:hover {
    background: var(--green-dark);
}

.button-danger {
    border-color: var(--danger);
    background: var(--danger);
    color: var(--surface);
}

.notice {
    border-left-color: var(--green);
    background: rgba(71, 111, 150, 0.08);
    color: var(--navy);
}

.dynasty-pillars {
    border: 1px solid var(--line-strong);
    border-top: 0.35rem solid var(--navy);
    border-radius: 0;
    background: var(--line);
}

.dynasty-pillars > div {
    background: var(--surface-muted);
}

.dynasty-pillars article {
    background: var(--surface);
}

.dynasty-pillars article span {
    color: var(--red);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1rem;
}

.waitlist-footer {
    border-top-color: var(--line-strong);
}

.status-card {
    border-color: var(--line-strong);
    border-radius: 0.15rem;
    background: var(--line);
}

.status-card div {
    background: var(--surface);
}

.status-card dt,
.player-table th {
    color: var(--navy);
}

fieldset,
.player-table-wrap,
.trade-builder fieldset,
.matchup-score {
    border-color: var(--line-strong);
    border-radius: 0.15rem;
    background: var(--surface);
}

legend {
    color: var(--red);
}

.player-table thead {
    border-bottom: 0.2rem solid var(--navy);
    background: var(--surface-muted);
}

.player-table tbody tr:nth-child(even) {
    background: rgba(32, 55, 82, 0.035);
}

.player-table tr:last-child td {
    border-bottom: 0;
}

.matchup-score {
    border-top: 0.35rem solid var(--red);
    box-shadow: 0.35rem 0.35rem 0 var(--surface-muted);
}

.matchup-score strong {
    color: var(--navy);
    font-family: Georgia, "Times New Roman", serif;
}

.game-status {
    border-radius: 0.1rem;
}

.draft-order li,
.trade-offer,
.matchup-team-day {
    box-shadow: none;
}

.section-heading {
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--line-strong);
}

@media (max-width: 48rem) {
    body {
        background-size: 3rem 100%;
    }

    .waitlist-hero {
        padding-top: 2rem;
    }

    .waitlist-copy {
        padding-right: 0;
    }

    .waitlist-card,
    .account-card,
    .card {
        box-shadow: 0.25rem 0.25rem 0 var(--surface-muted);
    }
}


.edition-line {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    max-width: 42rem;
    padding-block: 0.55rem;
    margin: 0 0 1.5rem;
    border-top: 1px solid var(--line-strong);
    border-bottom: 1px solid var(--line-strong);
    color: var(--navy);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.edition-line span:last-child {
    color: var(--red);
}


/* Softer arena refinement */
body {
    background:
        linear-gradient(90deg, transparent 0, transparent calc(100% - 1px), rgba(71, 111, 150, 0.045) calc(100% - 1px)),
        var(--paper);
    background-size: 5rem 100%;
}

.site-header {
    border-top-color: var(--blue);
    background: rgba(245, 242, 233, 0.96);
}

.waitlist-card,
.account-card,
.card,
.trade-offer,
.draft-order li,
.draft-clock-card,
.matchup-team-day,
.status-card,
fieldset,
.player-table-wrap,
.trade-builder fieldset,
.matchup-score {
    border-radius: var(--radius-panel);
}

.waitlist-card,
.account-card,
.card,
.draft-clock-card,
.matchup-score {
    box-shadow: 0 0.65rem 1.6rem rgba(48, 76, 106, 0.10);
}

.waitlist-card {
    border-top-color: var(--yellow);
}

.field input,
.field select,
textarea,
.button {
    border-radius: var(--radius-control);
}

.field input:focus,
.field select:focus,
textarea:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 0.2rem rgba(71, 111, 150, 0.18);
}

.button {
    border-color: var(--blue-dark);
    background: var(--blue);
}

.button:hover {
    background: var(--blue-dark);
}

.button:focus-visible,
.site-header a:focus-visible {
    outline-color: var(--navy);
    box-shadow: 0 0 0 0.28rem var(--yellow-soft);
}

.waitlist-signals li {
    border-radius: 0.4rem;
}

.dynasty-pillars {
    border-radius: var(--radius-panel);
    overflow: hidden;
}

.game-status {
    border-radius: 0.4rem;
}

.notice-warning {
    background: rgba(214, 170, 73, 0.14);
}

@media (max-width: 48rem) {
    .waitlist-card,
    .account-card,
    .card {
        box-shadow: 0 0.45rem 1.15rem rgba(48, 76, 106, 0.09);
    }
}


/* Unified team management */
.team-section-nav {
    position: sticky;
    z-index: 10;
    top: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    padding: 0.8rem;
    margin: 1.5rem 0 3rem;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-panel);
    background: rgba(245, 242, 233, 0.96);
    box-shadow: 0 0.45rem 1.2rem rgba(48, 76, 106, 0.08);
    backdrop-filter: blur(0.6rem);
}

.team-section-nav a {
    padding: 0.65rem 0.9rem;
    border-radius: var(--radius-control);
    color: var(--navy);
    font-size: 0.82rem;
    font-weight: 800;
    text-decoration: none;
}

.team-section-nav a:hover {
    background: var(--surface-muted);
}

.team-management-section {
    scroll-margin-top: 5.5rem;
    margin-bottom: 4.5rem;
}

.team-management-section .section-heading h2 {
    margin: 0;
}

.team-management-section .section-heading .eyebrow {
    margin-bottom: 0.35rem;
}

.team-section-summary {
    margin: 0;
    color: var(--muted);
    font-weight: 800;
}

.team-section-note {
    color: var(--muted);
}

.roster-capacity {
    margin-block: 1.5rem 1rem;
}

.team-save-bar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1.25rem;
    padding: 1rem 0;
}

.team-save-bar p {
    margin: 0;
    color: var(--muted);
}

.player-status {
    display: inline-block;
    padding: 0.3rem 0.55rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 800;
}

.player-status-editable {
    background: rgba(71, 111, 150, 0.12);
    color: var(--blue-dark);
}

.player-status-locked {
    background: rgba(164, 72, 63, 0.12);
    color: var(--danger);
}

.button-secondary {
    border-color: var(--line-strong);
    background: var(--surface);
    color: var(--navy);
}

.button-secondary:hover {
    background: var(--surface-muted);
    color: var(--navy);
}

@media (max-width: 48rem) {
    .team-section-nav {
        position: static;
    }

    .team-save-bar {
        align-items: stretch;
        flex-direction: column;
    }

    .team-save-bar .button,
    .team-management-section .section-heading .button {
        width: 100%;
    }
}


.danger-zone {
    padding: clamp(1.25rem, 3vw, 2rem);
    border: 1px solid rgba(164, 72, 63, 0.45);
    border-top: 0.35rem solid var(--danger);
    border-radius: var(--radius-panel);
    background: rgba(164, 72, 63, 0.055);
}

.danger-zone h2 {
    color: var(--danger);
}

.danger-zone form {
    max-width: 34rem;
    margin-top: 1.5rem;
}

.danger-zone .button-danger {
    margin-top: 0.75rem;
}


/* Roster-driven lineup */
.roster-lineup-rule {
    max-width: 48rem;
    padding: 1rem 1.15rem;
    margin: 1.25rem 0;
    border-left: 0.3rem solid var(--blue);
    border-radius: 0 var(--radius-control) var(--radius-control) 0;
    background: rgba(71, 111, 150, 0.08);
    color: var(--navy);
    line-height: 1.55;
}

.roster-lineup-table {
    min-width: 58rem;
}

.roster-group-heading th {
    padding: 0.8rem 0.9rem;
    border-top: 0.22rem solid var(--navy);
    border-bottom: 1px solid var(--line-strong);
    background: var(--surface-muted);
    color: var(--navy);
    text-transform: none;
    letter-spacing: 0;
}

.roster-group-heading th {
    display: table-cell;
    width: 100%;
}

.roster-group-heading th > span {
    display: flex;
    align-items: baseline;
    gap: 0.65rem;
    width: 100%;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.08rem;
}

.roster-group-heading strong {
    min-width: 1.8rem;
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
    background: var(--navy);
    color: var(--surface);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.75rem;
    text-align: center;
}

.roster-group-heading small {
    display: block;
    margin: 0.3rem 0 0;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 600;
}

.roster-inactive-group:not(.roster-group-heading) {
    background: rgba(214, 170, 73, 0.075) !important;
}

.roster-empty-row td {
    color: var(--muted);
    font-style: italic;
}

.roster-actions-cell {
    min-width: 20rem;
}

.roster-quick-action {
    display: flex;
    align-items: end;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin: 0;
}

.roster-position-field {
    display: grid;
    gap: 0.25rem;
    min-width: 5.5rem;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 800;
}

.roster-position-field select,
.roster-more-actions select {
    min-height: 2.65rem;
}

.roster-quick-action .button {
    min-height: 2.65rem;
    padding: 0.55rem 0.75rem;
}

.roster-more-actions {
    margin-top: 0.65rem;
}

.roster-more-actions summary {
    width: fit-content;
    color: var(--navy);
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.roster-more-actions > div {
    display: grid;
    gap: 0.75rem;
    max-width: 18rem;
    padding: 0.85rem;
    margin-top: 0.55rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-control);
    background: var(--surface);
}

.roster-more-actions form {
    margin: 0;
}

.player-status-active {
    background: rgba(71, 111, 150, 0.14);
    color: var(--blue-dark);
}

.player-status-inactive {
    background: rgba(214, 170, 73, 0.18);
    color: var(--warning);
}

@media (max-width: 48rem) {
    .roster-actions-cell {
        min-width: 17rem;
    }

    .roster-quick-action {
        align-items: stretch;
        flex-direction: column;
    }

    .roster-quick-action .button {
        width: 100%;
    }
}


/* Slot-first roster board */
.roster-board {
    margin-top: 2rem;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-panel);
    overflow: hidden;
    background: var(--surface);
}

.roster-board-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 1rem;
    border-top: 0.25rem solid var(--navy);
    border-bottom: 1px solid var(--line-strong);
    background: var(--surface-muted);
}

.roster-board-heading h3,
.roster-board-heading p {
    margin: 0;
}

.roster-board-heading p {
    margin-top: 0.2rem;
    color: var(--muted);
    font-size: 0.82rem;
}

.roster-board-heading > strong {
    min-width: 2.25rem;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    background: var(--navy);
    color: var(--surface);
    font-size: 0.78rem;
    text-align: center;
}

.roster-board-reserve .roster-board-heading {
    border-top-color: var(--yellow);
}

.roster-board-secondary .roster-board-heading {
    border-top-color: var(--blue);
}

.roster-slot + .roster-slot {
    border-top: 1px solid var(--line);
}

.roster-slot summary {
    display: grid;
    grid-template-columns: 4.5rem minmax(12rem, 1fr) auto 4.5rem;
    align-items: center;
    gap: 1rem;
    min-height: 4rem;
    padding: 0.7rem 1rem;
    cursor: pointer;
    list-style: none;
}

.roster-slot summary::-webkit-details-marker {
    display: none;
}

.roster-slot summary:hover {
    background: rgba(71, 111, 150, 0.055);
}

.roster-slot summary:focus-visible {
    outline: 0.2rem solid var(--navy);
    outline-offset: -0.2rem;
    box-shadow: inset 0 0 0 0.35rem var(--yellow-soft);
}

.roster-slot[open] > summary {
    background: rgba(71, 111, 150, 0.09);
}

.roster-slot-inactive > summary {
    background: rgba(214, 170, 73, 0.075);
}

.roster-slot-empty > summary {
    background:
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 0.45rem,
            rgba(71, 111, 150, 0.035) 0.45rem,
            rgba(71, 111, 150, 0.035) 0.9rem
        );
}

.roster-slot-label {
    color: var(--red);
    font-weight: 900;
    letter-spacing: 0.06em;
}

.roster-slot-label small {
    color: var(--muted);
    font-size: 0.72rem;
}

.roster-slot-player {
    display: grid;
    gap: 0.15rem;
}

.roster-slot-player small {
    color: var(--muted);
}

.roster-slot-open {
    color: var(--navy);
    font-size: 0.78rem;
    font-weight: 800;
    text-align: right;
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.roster-slot-picker {
    display: grid;
    gap: 1rem;
    padding: 1rem;
    border-top: 1px solid var(--line-strong);
    background: var(--paper);
}

.roster-slot-picker h4,
.roster-slot-picker p {
    margin: 0;
}

.roster-slot-picker p {
    color: var(--muted);
}

.roster-candidate-list {
    display: grid;
    gap: 0.5rem;
}

.roster-candidate-list form {
    margin: 0;
}

.roster-candidate {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    min-height: 3.25rem;
    padding: 0.65rem 0.8rem;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-control);
    background: var(--surface);
    color: var(--ink);
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.roster-candidate:hover:not(:disabled) {
    border-color: var(--blue);
    background: rgba(71, 111, 150, 0.08);
}

.roster-candidate:focus-visible {
    outline: 0.2rem solid var(--navy);
    outline-offset: 0.15rem;
}

.roster-candidate:disabled {
    cursor: not-allowed;
    opacity: 0.65;
}

.roster-candidate > span:first-child {
    display: grid;
    gap: 0.15rem;
}

.roster-candidate small {
    color: var(--muted);
}

.roster-candidate > span:last-child {
    color: var(--blue-dark);
    font-size: 0.78rem;
    font-weight: 850;
}

.roster-player-actions {
    padding-top: 1rem;
    border-top: 1px solid var(--line);
}

.roster-player-actions form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin: 0.65rem 0 0;
}

.roster-board-empty,
.roster-picker-empty {
    padding: 1rem;
    margin: 0;
    color: var(--muted);
}

@media (max-width: 42rem) {
    .roster-board-heading {
        align-items: flex-start;
    }

    .roster-slot summary {
        grid-template-columns: 3.25rem minmax(0, 1fr) auto;
        gap: 0.65rem;
    }

    .roster-slot summary .player-status {
        grid-column: 2;
        justify-self: start;
    }

    .roster-slot-open {
        grid-column: 3;
        grid-row: 1 / span 2;
    }

    .roster-player-actions form {
        align-items: stretch;
        flex-direction: column;
    }

    .roster-player-actions .button {
        width: 100%;
    }
}


/* Two-click roster slot picker */
.roster-slot-row {
    display: grid;
    grid-template-columns: 4.5rem minmax(12rem, 1fr) auto;
    gap: 1rem;
    align-items: center;
    min-height: 5.25rem;
    padding: 0.9rem 1rem;
    border-bottom: 1px solid var(--line);
    background: var(--surface);
}

.roster-slot-row:last-of-type {
    border-bottom: 0;
}

.roster-slot-player {
    display: grid;
    gap: 0.2rem;
    min-width: 0;
}

.roster-slot-player strong,
.roster-slot-player span {
    overflow-wrap: anywhere;
}

.roster-slot-player span,
.roster-slot-lock {
    color: var(--muted);
    font-size: 0.84rem;
}

.roster-position-button {
    display: inline-grid;
    place-items: center;
    justify-self: start;
    width: 3.2rem;
    min-width: 3.2rem;
    height: 3.2rem;
    padding: 0;
    border: 0.16rem solid var(--blue);
    border-radius: 50%;
    background: var(--surface);
    color: var(--blue-dark);
    font: inherit;
    font-weight: 850;
    cursor: pointer;
}

.roster-position-button:hover,
.roster-position-button:focus-visible {
    background: var(--blue);
    color: var(--surface);
}

.roster-position-button:focus-visible {
    outline: 0.2rem solid var(--yellow);
    outline-offset: 0.2rem;
}

.roster-position-button-inactive {
    border-color: var(--line-strong);
    color: var(--navy);
}

.roster-position-button small {
    display: block;
    font-size: 0.65rem;
    line-height: 1;
}

.roster-swap-dialog {
    width: min(36rem, calc(100% - 2rem));
    max-height: min(46rem, calc(100dvh - 2rem));
    padding: 0;
    overflow-y: auto;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-panel);
    background: var(--surface);
    color: var(--ink);
    box-shadow: 0 1.5rem 4rem rgba(36, 50, 71, 0.24);
}

.roster-swap-dialog::backdrop {
    background: rgba(36, 50, 71, 0.56);
}

.roster-dialog-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.15rem 1.25rem;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
}

.roster-swap-dialog > .roster-candidate-list,
.roster-swap-dialog > .roster-player-actions,
.roster-swap-dialog > .roster-picker-empty,
.roster-swap-dialog > .notice,
.roster-swap-dialog > p {
    margin: 1.25rem;
}

.roster-swap-dialog > .roster-player-actions {
    padding-top: 1.25rem;
}

.roster-dialog-header h3 {
    margin: 0;
}

.roster-dialog-header p {
    margin: 0.35rem 0 0;
    color: var(--muted);
}

.roster-dialog-close {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    background: var(--surface);
    color: var(--navy);
    font: inherit;
    font-size: 1.35rem;
    cursor: pointer;
}

.roster-dialog-close:hover,
.roster-dialog-close:focus-visible {
    border-color: var(--blue);
    background: var(--surface-muted);
}

.roster-dialog-body {
    max-height: calc(100dvh - 10rem);
    padding: 1.25rem;
    overflow-y: auto;
}

.roster-dialog-section + .roster-dialog-section {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--line);
}

.roster-dialog-section h4 {
    margin: 0 0 0.75rem;
    color: var(--navy);
}

.roster-candidate {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
}

.roster-candidate + .roster-candidate {
    margin-top: 0.55rem;
}

.roster-candidate-unavailable {
    opacity: 0.62;
}

.roster-candidate form {
    margin: 0;
}

@media (max-width: 36rem) {
    .roster-slot-row {
        grid-template-columns: 3.6rem minmax(0, 1fr);
    }

    .roster-slot-lock {
        grid-column: 2;
    }

    .roster-position-button {
        width: 3rem;
        min-width: 3rem;
        height: 3rem;
    }

    .roster-candidate {
        grid-template-columns: 1fr;
    }

    .roster-candidate .button {
        width: 100%;
    }
}

@media (forced-colors: active) {
    .roster-position-button,
    .roster-dialog-close,
    .roster-swap-dialog {
        border-color: CanvasText;
    }
}


/* Unified active, reserve, and injured-reserve roster table */
.roster-board-unified {
    overflow: hidden;
}

.roster-table-wrap {
    overflow-x: auto;
}

.roster-table {
    width: 100%;
    min-width: 42rem;
    border-collapse: collapse;
}

.roster-table thead {
    background: var(--surface-muted);
}

.roster-table th,
.roster-table td {
    padding: 0.8rem 1rem;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: middle;
}

.roster-table thead th {
    color: var(--navy);
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.roster-table th:first-child,
.roster-table td:first-child {
    width: 5rem;
}

.roster-table th:last-child,
.roster-table td:last-child {
    width: 10rem;
}

.roster-table td > small {
    display: block;
    margin-top: 0.2rem;
    color: var(--muted);
}

.roster-table-group th {
    padding-block: 0.7rem;
    border-bottom-color: var(--line-strong);
}

.roster-table-group-content,
.roster-table-group-content > span:first-child {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
}

.roster-table-group-content {
    width: 100%;
}

.roster-table-group-content > span:first-child {
    justify-content: flex-start;
}

.roster-table-group strong {
    color: var(--navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.05rem;
}

.roster-table-group small {
    color: var(--muted);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.74rem;
    font-weight: 700;
}

.roster-table-group-content > span:last-child:not(:first-child) {
    min-width: 2rem;
    padding: 0.15rem 0.45rem;
    border: 1px solid currentColor;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 850;
    text-align: center;
}

.roster-table-group-active th {
    background: rgba(71, 111, 150, 0.16);
    color: var(--blue-dark);
}

.roster-table-group-reserve th {
    background: rgba(214, 170, 73, 0.24);
    color: var(--warning);
}

.roster-table-group-injured th {
    background: rgba(170, 81, 79, 0.18);
    color: var(--danger);
}

.roster-table-row-active {
    background: rgba(71, 111, 150, 0.035);
}

.roster-table-row-reserve {
    background: rgba(214, 170, 73, 0.09);
}

.roster-table-row-injured {
    background: rgba(170, 81, 79, 0.07);
}

.roster-table-row-active > td:first-child {
    box-shadow: inset 0.25rem 0 var(--blue);
}

.roster-table-row-reserve > td:first-child {
    box-shadow: inset 0.25rem 0 var(--yellow);
}

.roster-table-row-injured > td:first-child {
    box-shadow: inset 0.25rem 0 var(--red);
}

.roster-table-row:hover {
    filter: brightness(0.985);
}

.roster-table-row-empty td,
.roster-table-empty td {
    color: var(--muted);
}

.roster-position-button-injured {
    border-color: var(--red);
    color: var(--danger);
}

.player-status-injured {
    background: rgba(170, 81, 79, 0.14);
    color: var(--danger);
}

@media (max-width: 42rem) {
    .roster-table-group-content > span:first-child {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.1rem;
    }
}

@media (forced-colors: active) {
    .roster-table-group th,
    .roster-table-row td {
        border-color: CanvasText;
        background: Canvas;
        color: CanvasText;
    }

    .roster-table-row > td:first-child {
        box-shadow: inset 0.25rem 0 CanvasText;
    }
}


/* Roster player context columns */
.roster-table-player-context {
    min-width: 48rem;
}

.roster-table-player-context th:nth-child(2),
.roster-table-player-context td:nth-child(2) {
    min-width: 12rem;
}

.roster-table-player-context th:nth-child(3),
.roster-table-player-context td:nth-child(3),
.roster-table-player-context th:nth-child(4),
.roster-table-player-context td:nth-child(4) {
    white-space: nowrap;
}

.roster-table .roster-stat {
    font-variant-numeric: tabular-nums;
    text-align: right;
    white-space: nowrap;
}

.roster-table-player-context td:nth-child(4) {
    color: var(--navy);
    font-weight: 750;
}


.page-return-link {
    margin: -1.75rem 0 2rem;
}

.page-return-link a {
    color: var(--navy);
    font-size: 0.82rem;
    font-weight: 800;
}

@media (max-width: 48rem) {
    .page-return-link {
        margin-top: -2.5rem;
    }
}

/* Sticky desktop navigation shell */
.site-navigation-shell {
    position: relative;
    z-index: 100;
    background: var(--paper);
}

@media (min-width: 48.01rem) {
    html {
        scroll-padding-top: 7.5rem;
    }

    .site-navigation-shell {
        position: sticky;
        top: 0;
        box-shadow: 0 0.35rem 1rem rgba(48, 76, 106, 0.09);
    }

    .site-header,
    .site-header nav {
        flex-wrap: nowrap;
    }
}


/* Compact player-pool filters and claim actions */
.player-pool-filters {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    padding: 1.25rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-panel);
    background: var(--surface);
}

.player-pool-filters .field {
    min-width: 0;
    margin: 0;
}

.player-pool-search {
    grid-column: span 2;
}

.player-pool-filter-actions {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
}

.player-pool-filter-actions > a {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
}

.player-pool-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1.5rem;
    margin-block: 1rem;
}

.player-pool-toolbar > p,
.player-pool-toolbar .player-pool-pagination {
    margin: 0;
}

.player-pool-pagination,
.player-page-selector,
.player-page-selector label {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.player-pool-pagination {
    justify-content: flex-end;
    margin-block: 1rem;
}

.player-pool-pagination > a {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    padding-inline: 0.35rem;
}

.player-page-selector {
    margin: 0;
}

.player-page-selector label {
    color: var(--navy);
    font-size: 0.85rem;
    font-weight: 750;
}

.player-page-selector select {
    min-height: 2.75rem;
    padding: 0.65rem 0.8rem;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-control);
    background: var(--surface);
    color: var(--ink);
    font: inherit;
}

.player-page-selector select:focus-visible {
    outline: 3px solid var(--blue);
    outline-offset: 3px;
}

@media (min-width: 70rem) {
    .player-pool-filters {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

@media (max-width: 40rem) {
    .player-pool-filters {
        grid-template-columns: minmax(0, 1fr);
        padding: 1rem;
    }

    .player-pool-search {
        grid-column: auto;
    }

    .player-pool-pagination {
        justify-content: flex-start;
    }
}

.player-filter-toggle {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 3.2rem;
    padding: 0.65rem 0.8rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-control);
    background: var(--surface);
    color: var(--navy);
    font-size: 0.82rem;
    font-weight: 750;
}

.player-filter-toggle input {
    width: 1.2rem;
    height: 1.2rem;
    flex: 0 0 auto;
    accent-color: var(--blue);
}

.player-action-cell {
    width: 1%;
    min-width: 4.5rem;
    vertical-align: top;
}

.player-action-menu {
    position: relative;
    width: fit-content;
}

.player-action-toggle {
    display: inline-grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid var(--blue);
    border-radius: 50%;
    background: var(--surface);
    color: var(--blue-dark);
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1;
    list-style: none;
    cursor: pointer;
}

.player-action-toggle::-webkit-details-marker {
    display: none;
}

.player-action-toggle:hover,
.player-action-menu[open] .player-action-toggle {
    background: var(--blue);
    color: var(--surface);
}

.player-action-toggle:focus-visible {
    outline: 0.2rem solid var(--yellow);
    outline-offset: 0.15rem;
}

.player-action-panel {
    width: 18rem;
    padding: 0.9rem;
    margin-top: 0.55rem;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-panel);
    background: var(--paper);
    box-shadow: 0.35rem 0.35rem 0 var(--surface-muted);
    white-space: normal;
}

.player-action-panel > strong {
    display: block;
    margin-bottom: 0.75rem;
    color: var(--navy);
}

.player-action-panel .transaction-form {
    min-width: 0;
    margin: 0;
}

.player-action-panel .transaction-form label {
    color: var(--muted);
}

.player-action-panel .transaction-form select,
.player-action-panel .transaction-form .button {
    width: 100%;
}

.player-action-unavailable {
    display: inline-block;
    width: 2.75rem;
    color: var(--muted);
    text-align: center;
}

@media (forced-colors: active) {
    .player-filter-toggle,
    .player-action-toggle,
    .player-action-panel {
        border-color: CanvasText;
    }
}


.table-context-note {
    margin: 0.5rem 0 1rem;
    color: var(--muted);
    font-size: 0.88rem;
}

/* Player names open the complete season-by-season record. */
.player-history-name {
    display: inline;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--blue-dark);
    font: inherit;
    font-weight: 800;
    text-align: left;
    text-decoration: underline;
    text-decoration-color: var(--line-strong);
    text-underline-offset: 0.18rem;
    cursor: pointer;
}

.player-history-name:hover {
    background: transparent;
    color: var(--navy);
    text-decoration-color: currentColor;
}

.player-history-dialog {
    box-sizing: border-box;
    width: min(76rem, calc(100vw - 2rem));
    max-width: none;
    max-height: calc(100dvh - 2rem);
    padding: 1.25rem;
    overflow-y: auto;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-panel);
    background: var(--surface);
    color: var(--ink);
    box-shadow: 0 1.5rem 5rem rgb(0 0 0 / 30%);
}

.player-history-dialog::backdrop {
    background: rgb(18 31 47 / 65%);
}

.player-history-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--line);
}

.player-history-header h2 {
    margin: 0.2rem 0;
    color: var(--navy);
}

.player-history-header p {
    margin: 0;
}

.player-history-close {
    flex: 0 0 auto;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    background: var(--surface-muted);
    color: var(--navy);
    font-size: 1.75rem;
    cursor: pointer;
}

.player-history-section h3 {
    margin: 1.25rem 0 0.5rem;
}

.player-history-scroll {
    max-height: 50dvh;
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius-control);
}

.player-history-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.85rem;
    font-variant-numeric: tabular-nums;
}

.player-history-table th,
.player-history-table td {
    padding: 0.7rem 0.75rem;
    border-bottom: 1px solid var(--line);
    text-align: right;
    white-space: nowrap;
}

.player-history-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: var(--navy);
    color: var(--surface);
}

.player-history-table th:first-child {
    position: sticky;
    left: 0;
    z-index: 1;
    min-width: 11rem;
    background: var(--surface);
    text-align: left;
}

.player-history-table thead th:first-child {
    z-index: 3;
    background: var(--navy);
}

.player-history-table tbody tr:nth-child(even),
.player-history-table tbody tr:nth-child(even) th {
    background: var(--paper);
}

.player-history-table .player-history-fantasy {
    color: var(--blue-dark);
    font-weight: 800;
}

.player-history-empty {
    padding: 1rem 0;
    color: var(--muted);
}

.player-history-table caption {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.player-history-name:focus-visible,
.player-history-close:focus-visible,
.player-history-dialog .player-history-scroll:focus-visible {
    outline: 0.2rem solid var(--navy);
    outline-offset: 0.2rem;
}

.public-guide {
    max-width: 48rem;
    margin-inline: auto;
}

.dynasty-pillars > div .eyebrow {
    color: var(--blue-dark);
}

.public-guide h1 {
    font-size: clamp(2.5rem, 7vw, 4.5rem);
    line-height: 1.05;
}

.public-guide p,
.public-faq p {
    line-height: 1.7;
}

.public-guide section,
.guide-contents,
.public-faq {
    margin-top: 3rem;
    scroll-margin-top: 2rem;
}

.public-faq {
    max-width: 48rem;
}

.public-faq h3 {
    margin-top: 2rem;
}

.guide-contents,
.guide-callout {
    padding: clamp(1rem, 4vw, 2rem);
    border: 1px solid var(--line);
    border-radius: var(--radius-panel);
    background: var(--surface);
}

.guide-contents ol {
    padding-left: 1.5rem;
}

.guide-contents a,
.waitlist-footer a {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
}

.waitlist-footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
}

.public-guide a,
.public-faq a,
.waitlist-footer a {
    color: var(--blue-dark);
}

.public-guide .button {
    color: var(--surface);
}

.guide-scoring-table {
    width: 100%;
    margin-block: 1.5rem;
    border-collapse: collapse;
    line-height: 1.5;
}

.guide-scoring-table caption {
    margin-bottom: 0.75rem;
    text-align: left;
    font-weight: 700;
}

.guide-scoring-table th,
.guide-scoring-table td {
    padding: 0.75rem 0.5rem;
    border-bottom: 1px solid var(--line-strong);
    text-align: right;
    vertical-align: top;
}

.guide-scoring-table th:first-child {
    text-align: left;
}

.guide-scoring-table thead,
.guide-scoring-table tfoot {
    background: var(--surface-muted);
    color: var(--ink);
}

.guide-scoring-table tbody th {
    font-weight: 400;
}

.guide-table-scroll {
    max-width: 100%;
    overflow-x: auto;
}

.guide-table-scroll:focus-visible {
    outline: 0.2rem solid var(--navy);
    outline-offset: 0.2rem;
}

.guide-example-table {
    min-width: 24rem;
}

.guide-table-hint {
    display: none;
}

@media (max-width: 40rem) {
    .guide-table-hint {
        display: block;
    }
}

.public-player-search {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 1rem;
    margin-block: 2rem;
}

.public-player-search .field {
    flex: 1 1 15rem;
    min-width: 0;
    margin: 0;
}

.public-player-list {
    padding: 0;
    list-style: none;
}

.public-player-list li {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem 1rem;
    padding-block: 0.75rem;
    border-bottom: 1px solid var(--line);
}

.public-player-list span {
    color: var(--muted);
    font-size: 0.875rem;
}

.public-player-list a,
.public-player-pagination a {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
}

.public-player-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-block: 1.5rem;
}

.public-player-profile {
    min-width: 0;
}

.public-player-profile h1 {
    font-size: clamp(2.5rem, 7vw, 4.5rem);
    line-height: 1.05;
    overflow-wrap: anywhere;
}

.public-player-profile p {
    line-height: 1.7;
}

.public-history-section {
    margin-block: 3rem;
    min-width: 0;
}

.public-history-scroll {
    max-width: 100%;
    overflow-x: auto;
}

.public-history-scroll:focus-visible {
    outline: 0.2rem solid var(--navy);
    outline-offset: 0.2rem;
}

.public-history-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--surface);
}

.public-history-table caption {
    text-align: left;
    margin-bottom: 0.75rem;
}

.public-history-table th,
.public-history-table td {
    padding: 0.75rem;
    border-bottom: 1px solid var(--line-strong);
    text-align: right;
    white-space: nowrap;
}

.public-history-table th:first-child {
    text-align: left;
}

.public-history-table thead {
    background: var(--surface-muted);
    color: var(--ink);
}

.guide-format-table {
    min-width: 34rem;
}

.guide-format-table th,
.guide-format-table td {
    text-align: left;
}

.matchup-recorded-totals caption {
    text-align: left;
}

.lineup-range-form {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 1rem;
}

.lineup-range-form .table-context-note,
.lineup-replace {
    flex-basis: 100%;
}

.lineup-replace input {
    width: auto;
}

.lineup-preview {
    margin-block: 2rem;
}

.lineup-day {
    margin-block: 1rem;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-panel);
    background: var(--surface);
}

.lineup-day summary {
    cursor: pointer;
    font-weight: 700;
    line-height: 1.7;
    min-height: 2.75rem;
}

.lineup-day summary:focus-visible {
    outline: 0.2rem solid var(--navy);
    outline-offset: 0.2rem;
}

.lineup-plan-table caption {
    text-align: left;
    padding-block: 1rem;
}

.lineup-plan-table .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.lineup-replace label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 2.75rem;
}

.lineup-range-form input:focus-visible,
.lineup-range-form button:focus-visible,
.lineup-plan-table select:focus-visible {
    outline: 0.2rem solid var(--navy);
    outline-offset: 0.2rem;
}

.lineup-plan-table {
    position: relative;
}

/* Public screenshot walkthrough. Image links preserve access to the full-resolution views. */
.product-tour {
    max-width: 76rem;
}

.product-tour > header,
.product-tour > .guide-contents,
.product-tour > .guide-callout {
    max-width: 48rem;
}

.product-tour-step {
    display: grid;
    grid-template-columns: minmax(14rem, 1fr) minmax(0, 2fr);
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: start;
    padding-block: 2rem;
    border-top: 1px solid var(--line);
}

.product-tour-step > div,
.product-tour-step figure {
    min-width: 0;
}

.product-tour-step h2 {
    margin-top: 0;
}

.product-tour-step figure {
    margin: 0;
    padding: 0.75rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-panel);
    background: var(--surface);
}

.product-tour-step img {
    display: block;
    width: 100%;
    height: auto;
}

.product-tour-step figcaption {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    line-height: 1.6;
}

@media (max-width: 52rem) {
    .product-tour-step {
        grid-template-columns: minmax(0, 1fr);
    }
}

.feedback-message {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}
