:root {
    color-scheme: light;
    --background: #f3f6f8;
    --surface: #ffffff;
    --surface-soft: #eaf0f3;
    --ink: #0b1f2a;
    --muted: #5b6b74;
    --accent: #007f89;
    --accent-bright: #00a6a6;
    --accent-strong: #006e76;
    --navy: #071923;
    --ice: #d8f3f2;
    --line: #d8e0e4;
    --success: #16724b;
    --success-soft: #e3f4eb;
    --warning: #9a5a08;
    --warning-soft: #fff1d5;
    --goal-stat: #8a5200;
    --goal-stat-soft: #fff0c2;
    --assist-stat: #225ea8;
    --assist-stat-soft: #e2efff;
    --danger: #ad2b37;
    --danger-soft: #fde8ea;
    --neutral: #66757d;
    --neutral-soft: #edf1f3;
    --ink-strong: #071923;
    --surface-hover: #f6fafb;
    --surface-selected: rgb(234 240 243 / 88%);
    --surface-selected-hover: #e1e8ec;
    --player-season-highlight: rgb(216 243 242 / 42%);
    --player-season-row-hover: #c9e8e7;
    --player-season-row-line: var(--line);
    --winner-surface: rgb(234 240 243 / 65%);
    --champion-surface: #fff0b8;
    --surface-translucent: rgb(255 255 255 / 75%);
    --empty-surface: rgb(255 255 255 / 55%);
    --prose-ink: #3f4f58;
    --strong-line: #aebdc4;
    --bracket-line: #34434a;
    --interactive-ring: rgb(0 127 137 / 14%);
    --shadow: 0 1.4rem 3.5rem rgb(7 25 35 / 8%);
    --radius: 1rem;
    --collection-card-width: 14rem;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

:root[data-theme="dark"] {
    color-scheme: dark;
    --background: #071217;
    --surface: #0e2028;
    --surface-soft: #162d36;
    --ink: #e8f2f4;
    --muted: #a4b5bc;
    --accent: #45c4c7;
    --accent-bright: #5bdadd;
    --accent-strong: #6be3e5;
    --ice: #17383f;
    --line: #29414a;
    --success: #65d39d;
    --success-soft: #153a2d;
    --warning: #f1bc68;
    --warning-soft: #3b2c16;
    --goal-stat: #ffd166;
    --goal-stat-soft: #493814;
    --assist-stat: #8fc5ff;
    --assist-stat-soft: #18334f;
    --danger: #f0808a;
    --danger-soft: #402126;
    --neutral: #a7b7bd;
    --neutral-soft: #253840;
    --ink-strong: #f4fbfc;
    --surface-hover: #17313a;
    --surface-selected: rgb(35 66 76 / 88%);
    --surface-selected-hover: #2a4b56;
    --player-season-highlight: var(--surface-selected);
    --player-season-row-hover: #315d68;
    --player-season-row-line: #7898a2;
    --winner-surface: rgb(35 66 76 / 70%);
    --champion-surface: #4a3a12;
    --surface-translucent: rgb(14 32 40 / 82%);
    --empty-surface: rgb(14 32 40 / 62%);
    --prose-ink: #c1d0d5;
    --strong-line: #46616b;
    --bracket-line: #60757d;
    --interactive-ring: rgb(69 196 199 / 22%);
    --shadow: 0 1.4rem 3.5rem rgb(0 0 0 / 28%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(circle at 85% 3%, rgb(0 166 166 / 9%), transparent 24rem),
        var(--background);
    color: var(--ink);
    line-height: 1.55;
}

a { color: var(--accent); }
a:hover { color: var(--ink-strong); }
button, select { font: inherit; }
img { max-width: 100%; }

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: fixed;
    z-index: 100;
    top: 0;
    left: 1rem;
    padding: 0.7rem 1rem;
    background: var(--surface);
    color: var(--ink-strong);
    transform: translateY(-110%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
    border-bottom: 1px solid rgb(255 255 255 / 10%);
    padding: 0 clamp(1.25rem, 4vw, 4rem);
    background: var(--navy);
    color: white;
}

.site-nav {
    display: grid;
    width: min(92rem, 100%);
    min-height: 4.6rem;
    grid-template-columns: minmax(max-content, 1fr) minmax(18rem, 34rem) minmax(max-content, 1fr);
    margin: 0 auto;
    align-items: center;
    gap: 2rem;
}

.site-brand {
    justify-self: start;
    color: white;
    font-size: 1.25rem;
    font-weight: 850;
    letter-spacing: -0.035em;
    text-decoration: none;
    white-space: nowrap;
}

.site-brand::before {
    display: inline-block;
    width: 0.68rem;
    height: 0.68rem;
    margin-right: 0.55rem;
    border: 2px solid var(--accent-bright);
    border-radius: 50%;
    box-shadow: inset 0 0 0 2px var(--navy);
    background: var(--ice);
    content: "";
}

.site-links { display: flex; align-items: center; justify-self: end; gap: clamp(0.8rem, 2vw, 1.6rem); white-space: nowrap; }
.site-links > a, .link-button { color: #d8e4e8; text-decoration: none; }
.site-links > a { position: relative; }
.site-links > a:hover, .link-button:hover { color: white; }
.site-links a[aria-current="page"] { color: white; }
.site-links a[aria-current="page"]::after {
    position: absolute;
    right: 0;
    bottom: -0.45rem;
    left: 0;
    height: 2px;
    background: var(--accent-bright);
    content: "";
}

.account-menu { position: relative; }
.account-menu summary { display: flex; align-items: center; gap: 0.45rem; color: #d8e4e8; cursor: pointer; list-style: none; }
.account-menu summary::-webkit-details-marker { display: none; }
.account-menu summary:focus-visible { border-radius: 0.4rem; outline: 3px solid rgb(91 218 221 / 35%); outline-offset: 3px; }
.account-menu__avatar { display: grid; width: 2rem; height: 2rem; place-items: center; border: 1px solid rgb(255 255 255 / 28%); border-radius: 50%; background: rgb(255 255 255 / 8%); color: white; font-size: 0.75rem; font-weight: 850; }
.account-menu__name { overflow: hidden; max-width: 9rem; text-overflow: ellipsis; }
.account-menu__panel { position: absolute; z-index: 20; top: calc(100% + 0.8rem); right: 0; display: flex; width: min(18rem, calc(100vw - 1.5rem)); flex-direction: column; border: 1px solid var(--line); border-radius: 0.75rem; padding: 1rem; background: var(--surface); color: var(--ink); box-shadow: var(--shadow); white-space: normal; }
.account-menu__panel small, .account-menu__panel span { overflow-wrap: anywhere; color: var(--muted); }
.account-menu__panel strong { overflow-wrap: anywhere; }
.account-progress { display: flex; flex-direction: column; margin-top: 0.8rem; border-top: 1px solid var(--line); padding-top: 0.8rem; }
.account-progress progress { width: 100%; height: 0.4rem; margin: 0.45rem 0 0.65rem; border: 0; border-radius: 999px; accent-color: var(--accent); }
.account-progress progress::-webkit-progress-bar { border-radius: 999px; background: var(--surface-soft); }
.account-progress progress::-webkit-progress-value { border-radius: 999px; background: var(--accent); }
.account-progress strong + a { margin-top: 0.5rem; }
.account-progress a { color: var(--accent); font-size: 0.82rem; font-weight: 800; text-decoration: none; }
.account-menu__panel form { margin-top: 0.8rem; border-top: 1px solid var(--line); padding-top: 0.8rem; }
.account-menu__panel button { width: 100%; border: 0; border-radius: 0.45rem; padding: 0.6rem 0.75rem; background: var(--surface-soft); color: var(--ink); cursor: pointer; font-weight: 750; text-align: left; }
.account-menu__panel button:hover { background: var(--danger-soft); color: var(--danger); }
.account-menu__settings { margin-top: 0.8rem; border-top: 1px solid var(--line); padding-top: 0.8rem; color: var(--accent); font-size: 0.82rem; font-weight: 800; text-decoration: none; }

.mobile-nav { display: none; }

.account-page { width: min(58rem, calc(100% - 2rem)); margin: 0 auto; padding: clamp(2rem, 4vw, 3.5rem) 0 clamp(3rem, 6vw, 5rem); }
.account-page--narrow { width: min(42rem, calc(100% - 2rem)); }
.account-page__heading { max-width: 42rem; }
.account-page__heading h1 { margin: 0; font-size: clamp(2.1rem, 4vw, 3.4rem); letter-spacing: -0.045em; }
.account-page__heading > p:last-child { margin: 0.65rem 0 0; color: var(--muted); font-size: clamp(0.95rem, 1.4vw, 1.05rem); }
.account-page > .fantasy-messages { margin: 1.25rem 0 0; }
.account-page__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.85rem; margin-top: 1.5rem; }
.account-panel { border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.1rem, 2.25vw, 1.5rem); background: var(--surface); }
.account-panel h1, .account-panel h2 { margin-top: 0; }
.account-panel h1 { font-size: clamp(1.75rem, 3vw, 2.4rem); letter-spacing: -0.035em; }
.account-panel h2 { margin-bottom: 0.85rem; font-size: 1.2rem; }
.account-panel--danger { border-color: var(--danger); background: var(--danger-soft); }
.account-panel--danger-summary { display: grid; grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 1rem 2rem; }
.account-panel--danger-summary h2 { margin-bottom: 0.25rem; }
.account-panel--danger-summary p { margin: 0; }
.account-panel__note { color: var(--muted); font-size: 0.82rem; }
.account-details { display: grid; gap: 0.8rem; margin: 0; }
.account-details div { display: grid; gap: 0.15rem; }
.account-details dt { color: var(--muted); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; }
.account-details dd { margin: 0; overflow-wrap: anywhere; font-weight: 750; }
.account-form { display: grid; gap: 0.85rem; }
.account-form label { display: grid; gap: 0.35rem; font-size: 0.9rem; font-weight: 750; }
.account-form input, .account-form select, .account-form textarea { width: 100%; box-sizing: border-box; border: 1px solid var(--strong-line); border-radius: 0.5rem; padding: 0.65rem 0.7rem; background: var(--surface); color: var(--ink); font: inherit; }
.account-form textarea { resize: vertical; }
.account-form small { color: var(--muted); font-weight: 500; }
.account-form__actions { display: flex; flex-wrap: wrap; gap: 0.65rem; }
.login-page {
    display: grid;
    width: min(27rem, calc(100% - 2rem));
    min-height: clamp(26rem, 62vh, 36rem);
    margin: 0 auto;
    padding: clamp(3rem, 9vh, 6rem) 0;
    align-items: start;
}
.login-panel {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: clamp(1.5rem, 5vw, 2rem);
    background: var(--surface);
    box-shadow: var(--shadow);
}
.login-panel .kicker { margin: 0 0 0.45rem; }
.login-panel h1 {
    margin: 0;
    font-size: clamp(2rem, 7vw, 2.75rem);
    line-height: 1.05;
    letter-spacing: -0.045em;
}
.login-panel__form { margin: 1.5rem 0 0; }
.login-panel__form .button { width: 100%; min-height: 3rem; }
.feedback-page .account-panel { margin-top: 1.5rem; }
.feedback-confirmation { margin-top: 1.5rem; border: 1px solid var(--success); border-radius: 0.75rem; padding: 1rem; background: var(--success-soft); color: var(--success); }
.feedback-confirmation p { margin: 0.25rem 0 0; }
.button--danger { border-color: var(--danger); background: var(--danger); color: white; }
.button--danger:hover { background: var(--danger-soft); color: var(--danger); }

.theme-toggle {
    display: grid;
    width: 2.25rem;
    height: 2.25rem;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid rgb(216 228 232 / 24%);
    border-radius: 50%;
    padding: 0;
    background: rgb(255 255 255 / 8%);
    color: #d8e4e8;
    cursor: pointer;
}
.theme-toggle:hover { border-color: var(--accent-bright); background: rgb(255 255 255 / 14%); color: white; }
.theme-toggle:focus-visible { outline: 3px solid var(--accent-bright); outline-offset: 2px; }
.theme-toggle svg { width: 1.05rem; height: 1.05rem; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.theme-toggle__sun { display: none; }
:root[data-theme="dark"] .theme-toggle__moon { display: none; }
:root[data-theme="dark"] .theme-toggle__sun { display: block; }

.inline-form { margin: 0; }
.link-button { border: 0; padding: 0; background: transparent; cursor: pointer; }
.language-picker { margin: 0; }
.language-picker select {
    max-width: 7rem;
    border: 1px solid rgb(216 228 232 / 24%);
    border-radius: 0.45rem;
    padding: 0.35rem 1.6rem 0.35rem 0.5rem;
    background: var(--navy);
    color: #d8e4e8;
    font: inherit;
    cursor: pointer;
}
.language-picker select:focus-visible { outline: 3px solid var(--accent-bright); outline-offset: 2px; }

.site-search {
    position: relative;
    z-index: 20;
    width: 100%;
    justify-self: center;
}
.site-search__field { position: relative; }
.site-search input {
    width: 100%;
    min-height: 2.55rem;
    border: 1px solid rgb(216 228 232 / 24%);
    border-radius: 0.65rem;
    padding: 0.55rem 2.5rem 0.55rem 0.85rem;
    outline: 0;
    background: rgb(255 255 255 / 8%);
    color: white;
}
.site-search input::placeholder { color: #9fb2ba; opacity: 1; }
.site-search input:focus {
    border-color: var(--accent-bright);
    box-shadow: 0 0 0 3px rgb(0 166 166 / 18%);
    background: rgb(255 255 255 / 12%);
}
.site-search__icon {
    position: absolute;
    top: 50%;
    right: 0.9rem;
    width: 0.78rem;
    height: 0.78rem;
    border: 2px solid #9fb2ba;
    border-radius: 50%;
    pointer-events: none;
    transform: translateY(-58%);
}
.site-search__icon::after {
    position: absolute;
    right: -0.34rem;
    bottom: -0.2rem;
    width: 0.42rem;
    height: 2px;
    background: #9fb2ba;
    content: "";
    transform: rotate(45deg);
    transform-origin: left center;
}
.site-search__popup {
    position: absolute;
    top: calc(100% + 0.45rem);
    right: 0;
    left: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 0.75rem;
    background: var(--surface);
    color: var(--ink);
    box-shadow: 0 1.2rem 2.8rem rgb(7 25 35 / 22%);
}
.site-search__popup[hidden] { display: none; }
.site-search__popup ul {
    max-height: min(28rem, 70vh);
    margin: 0;
    padding: 0.35rem;
    overflow-y: auto;
    list-style: none;
}
.site-search__popup li { border-radius: 0.5rem; }
.site-search__popup li[aria-selected="true"] { background: var(--surface-soft); }
.site-search__popup a {
    display: grid;
    min-width: 0;
    grid-template-columns: 1.75rem minmax(0, 1fr);
    align-items: center;
    gap: 0.65rem;
    padding: 0.58rem 0.65rem;
    color: var(--ink);
    text-decoration: none;
}
.site-search__popup a:hover { color: var(--ink); }
.site-search__popup img {
    width: 1.75rem;
    height: 1.75rem;
    object-fit: contain;
}
.site-search__result-mark {
    display: grid;
    width: 1.65rem;
    height: 1.65rem;
    place-items: center;
    border-radius: 50%;
    background: var(--surface-soft);
    color: var(--accent);
    font-size: 0.62rem;
    font-weight: 900;
}
.site-search__popup a > span:last-child { display: flex; min-width: 0; flex-direction: column; }
.site-search__popup strong, .site-search__popup small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.site-search__popup strong { font-size: 0.86rem; }
.site-search__popup small { color: var(--muted); font-size: 0.68rem; }
.site-search__empty { margin: 0; padding: 1rem; color: var(--muted); font-size: 0.82rem; }

main {
    width: min(92rem, calc(100% - clamp(2rem, 7vw, 7rem)));
    min-height: 65vh;
    margin: 0 auto;
}

.eyebrow, .kicker {
    margin: 0 0 0.65rem;
    color: var(--accent);
    font-size: 0.74rem;
    font-weight: 850;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.08; }
h1 { margin-bottom: 0; font-size: clamp(2.65rem, 7vw, 6rem); letter-spacing: -0.06em; }
h2 { margin-bottom: 0; font-size: clamp(1.7rem, 3vw, 2.7rem); letter-spacing: -0.04em; }
h3 { letter-spacing: -0.025em; }

.lede {
    max-width: 48rem;
    margin: 1.15rem 0 0;
    color: var(--muted);
    font-size: clamp(1.05rem, 2vw, 1.32rem);
}

.dashboard-hero {
    padding: clamp(3.8rem, 8vw, 7.5rem) 0 clamp(2.5rem, 5vw, 4rem);
}

.dashboard-hero h1 { max-width: 12ch; }
.dashboard-hero--compact { padding: clamp(2rem, 4vw, 3.5rem) 0 clamp(1.5rem, 3vw, 2.25rem); }
.dashboard-hero--compact h1 {
    max-width: none;
    font-size: clamp(2.25rem, 4vw, 3.75rem);
    letter-spacing: -0.045em;
}
.dashboard-hero--compact .lede {
    margin-top: 0.65rem;
    font-size: clamp(0.98rem, 1.4vw, 1.12rem);
}

.season-switcher {
    min-width: 14rem;
    border: 1px solid var(--line);
    border-radius: 0.8rem;
    padding: 0.85rem;
    background: var(--surface-translucent);
    box-shadow: 0 0.7rem 2rem rgb(7 25 35 / 5%);
}

.season-switcher label {
    display: block;
    margin-bottom: 0.4rem;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.season-switcher__controls { display: block; }
.season-switcher select, .season-switcher button {
    width: 100%;
    min-height: 2.65rem;
    border: 1px solid var(--line);
    border-radius: 0.5rem;
    padding: 0.5rem 0.7rem;
    background: var(--surface);
    color: var(--ink);
}
.season-switcher button { border-color: var(--navy); background: var(--navy); color: white; cursor: pointer; font-weight: 750; }
.season-switcher button:hover { background: var(--accent); border-color: var(--accent); }
.season-switcher noscript button { margin-top: 0.45rem; }

.season-facts, .record-strip, .profile-facts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--navy);
    color: white;
    box-shadow: var(--shadow);
}

.season-facts {
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--ink);
    box-shadow: 0 0.7rem 2rem rgb(7 25 35 / 4%);
}

.season-facts > div, .record-strip > div, .profile-facts > div {
    padding: clamp(1.2rem, 2.5vw, 2rem);
    border-right: 1px solid rgb(255 255 255 / 12%);
}
.season-facts > div {
    padding: clamp(0.8rem, 1.5vw, 1.1rem);
    border-right-color: var(--line);
}
.season-facts > div:last-child, .record-strip > div:last-child { border-right: 0; }
.season-facts span, .record-strip span, .profile-facts span {
    display: block;
    margin-bottom: 0.35rem;
    color: #9db1b9;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.season-facts strong, .record-strip strong, .profile-facts strong { font-size: clamp(1.15rem, 2vw, 1.55rem); }
.season-facts span { color: var(--muted); }
.season-facts strong { font-size: clamp(1rem, 1.5vw, 1.2rem); }
.season-facts { grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(12rem, 1.25fr); }
.season-facts > div:nth-of-type(4) { border-right: 0; }
.season-switcher--facts {
    min-width: 0;
    border: 0;
    border-left: 1px solid var(--line);
    border-radius: 0;
    padding: clamp(0.8rem, 1.5vw, 1.1rem);
    background: var(--surface-soft);
}

.dashboard-section, .detail-section { padding: clamp(3rem, 6vw, 5.5rem) 0 0; }
.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 1.5rem;
}
.dashboard-section > .section-heading h2 { font-size: clamp(1.5rem, 2.2vw, 2.1rem); letter-spacing: -0.035em; }
.section-heading--compact { margin: 0 0 0.9rem; }
.section-heading--compact h3 { margin: 0; font-size: 1.1rem; }
.section-note { max-width: 34rem; margin: 0; color: var(--muted); font-size: 0.88rem; text-align: right; }
.text-link { font-weight: 750; text-decoration: none; }

.playoff-bracket {
    display: grid;
    grid-template-columns:
        minmax(7.5rem, 1fr) clamp(0.8rem, 1.8vw, 2rem)
        minmax(7.5rem, 1fr) clamp(0.8rem, 1.8vw, 2rem)
        minmax(7.5rem, 1fr) clamp(0.8rem, 1.8vw, 2rem)
        minmax(8rem, 1.05fr)
        clamp(0.8rem, 1.8vw, 2rem) minmax(7.5rem, 1fr)
        clamp(0.8rem, 1.8vw, 2rem) minmax(7.5rem, 1fr)
        clamp(0.8rem, 1.8vw, 2rem) minmax(7.5rem, 1fr);
    grid-template-rows: auto repeat(7, 4.8rem);
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.15rem;
    background:
        linear-gradient(90deg, rgb(0 127 137 / 4%), transparent 38%, transparent 62%, rgb(0 127 137 / 4%)),
        var(--surface);
    box-shadow: 0 0.7rem 2rem rgb(7 25 35 / 4%);
}

.bracket-heading {
    align-self: end;
    margin: 0 0 0.6rem;
    color: var(--muted);
    font-size: 0.7rem;
    letter-spacing: 0.07em;
    text-align: center;
    text-transform: uppercase;
}
.bracket-heading--west-r1 { grid-column: 1; grid-row: 1; }
.bracket-heading--west-r2 { grid-column: 3; grid-row: 1; }
.bracket-heading--west-final { grid-column: 5; grid-row: 1; }
.bracket-heading--cup-final { grid-column: 7; grid-row: 1; color: var(--accent); }
.bracket-heading--east-final { grid-column: 9; grid-row: 1; }
.bracket-heading--east-r2 { grid-column: 11; grid-row: 1; }
.bracket-heading--east-r1 { grid-column: 13; grid-row: 1; }

.bracket-series {
    position: relative;
    z-index: 1;
    align-self: center;
    overflow: hidden;
    border: 1px solid var(--strong-line);
    border-radius: 0.55rem;
    background: var(--surface);
    box-shadow: 0 0.3rem 0.8rem rgb(7 25 35 / 7%);
    transition: border-color 150ms ease, box-shadow 150ms ease;
}
.bracket-series:has(> .bracket-series__link:hover),
.bracket-series:has(> .bracket-series__link:focus-visible) {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--interactive-ring), 0 0.45rem 1rem rgb(7 25 35 / 10%);
}
.bracket-series > div {
    display: grid;
    min-width: 0;
    min-height: 2.25rem;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.5rem;
}
.bracket-series > div + div { border-top: 1px solid var(--line); }
.bracket-series__team-link {
    position: relative;
    z-index: 2;
    display: flex;
    min-width: 0;
    align-items: baseline;
    gap: 0.38rem;
    overflow: hidden;
    color: var(--ink);
    text-decoration: none;
    transition: transform 150ms ease;
}
.bracket-series__team-link img {
    width: 1.35rem;
    height: 1.35rem;
    flex: 0 0 1.35rem;
    object-fit: contain;
    transition: filter 150ms ease, transform 150ms ease;
}
.bracket-series__team-link span { flex: 0 0 auto; font-size: 1rem; font-weight: 780; }
.bracket-series__team-link small {
    overflow: hidden;
    color: var(--muted);
    font-size: 0.7rem;
    text-overflow: ellipsis;
    transition: color 150ms ease;
    white-space: nowrap;
}
.bracket-series strong {
    font-size: 1.05rem;
    font-variant-numeric: tabular-nums;
    transition: color 150ms ease, transform 150ms ease;
}
.bracket-series__team--winner { background: var(--surface-soft); }
.bracket-series__team--winner .bracket-series__team-link span, .bracket-series__team--winner strong { color: var(--ink-strong); font-weight: 900; }
.bracket-series__team-link:is(:hover, :focus-visible) span { color: var(--accent); }
.bracket-series__team-link:is(:hover, :focus-visible) small { color: var(--ink-strong); }
.bracket-series__team-link:is(:hover, :focus-visible) { transform: translateY(-1px); }
.bracket-series__team-link:is(:hover, :focus-visible) img {
    filter: drop-shadow(0 0.18rem 0.18rem rgb(7 25 35 / 18%));
    transform: scale(1.07);
}
.bracket-series--cup-final .bracket-series__team--winner { background: var(--champion-surface); }
.bracket-series__link {
    position: absolute;
    z-index: 1;
    inset: 0;
}
.bracket-series__link:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.bracket-series:has(> .bracket-series__link:is(:hover, :focus-visible)) > div > strong {
    color: var(--accent);
    transform: translateY(-1px);
}
.bracket-series__placeholder {
    overflow: hidden;
    color: var(--muted);
    font-size: 0.72rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bracket-series--west-r1 { grid-column: 1; }
.bracket-series--west-r2 { grid-column: 3; }
.bracket-series--west-final { grid-column: 5; grid-row: 5; }
.bracket-series--cup-final { grid-column: 7; grid-row: 5; }
.bracket-series--east-final { grid-column: 9; grid-row: 5; }
.bracket-series--east-r2 { grid-column: 11; }
.bracket-series--east-r1 { grid-column: 13; }
.bracket-series--west-r1.series-position--1,
.bracket-series--east-r1.series-position--1 { grid-row: 2; }
.bracket-series--west-r1.series-position--2,
.bracket-series--east-r1.series-position--2 { grid-row: 4; }
.bracket-series--west-r1.series-position--3,
.bracket-series--east-r1.series-position--3 { grid-row: 6; }
.bracket-series--west-r1.series-position--4,
.bracket-series--east-r1.series-position--4 { grid-row: 8; }
.bracket-series--west-r2.series-position--1,
.bracket-series--east-r2.series-position--1 { grid-row: 3; }
.bracket-series--west-r2.series-position--2,
.bracket-series--east-r2.series-position--2 { grid-row: 7; }

.bracket-connector { z-index: 0; min-width: 0; }
.bracket-connector--west-r1-a,
.bracket-connector--west-r1-b,
.bracket-connector--west-r2 {
    background:
        linear-gradient(var(--bracket-line), var(--bracket-line)) 0 0 / 50% 1px no-repeat,
        linear-gradient(var(--bracket-line), var(--bracket-line)) 0 100% / 50% 1px no-repeat,
        linear-gradient(var(--bracket-line), var(--bracket-line)) 50% 0 / 1px 100% no-repeat,
        linear-gradient(var(--bracket-line), var(--bracket-line)) 100% 50% / 50% 1px no-repeat;
}
.bracket-connector--east-r1-a,
.bracket-connector--east-r1-b,
.bracket-connector--east-r2 {
    background:
        linear-gradient(var(--bracket-line), var(--bracket-line)) 100% 0 / 50% 1px no-repeat,
        linear-gradient(var(--bracket-line), var(--bracket-line)) 100% 100% / 50% 1px no-repeat,
        linear-gradient(var(--bracket-line), var(--bracket-line)) 50% 0 / 1px 100% no-repeat,
        linear-gradient(var(--bracket-line), var(--bracket-line)) 0 50% / 50% 1px no-repeat;
}
.bracket-connector--west-r1-a { grid-column: 2; grid-row: 2 / 5; margin-block: 2.4rem; }
.bracket-connector--west-r1-b { grid-column: 2; grid-row: 6 / 9; margin-block: 2.4rem; }
.bracket-connector--west-r2 { grid-column: 4; grid-row: 3 / 8; margin-block: 2.4rem; }
.bracket-connector--east-r1-a { grid-column: 12; grid-row: 2 / 5; margin-block: 2.4rem; }
.bracket-connector--east-r1-b { grid-column: 12; grid-row: 6 / 9; margin-block: 2.4rem; }
.bracket-connector--east-r2 { grid-column: 10; grid-row: 3 / 8; margin-block: 2.4rem; }
.bracket-connector--west-final,
.bracket-connector--east-final {
    align-self: center;
    height: 1px;
    background: var(--bracket-line);
}
.bracket-connector--west-final { grid-column: 6; grid-row: 5; }
.bracket-connector--east-final { grid-column: 8; grid-row: 5; }

.standings-legend {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.45rem;
    margin: -0.5rem 0 1rem;
    color: var(--muted);
    font-size: 0.75rem;
}
.standings-legend__swatch {
    width: 0.85rem;
    height: 0.85rem;
    border: 1px solid var(--line);
    border-radius: 0.2rem;
    background: var(--surface-soft);
}
.standings-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
.standings-group { min-width: 0; }
.standings-group .section-heading { margin-bottom: 0.7rem; }
.standings-group .section-heading .kicker { margin-bottom: 0.15rem; }
.table-scroll {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: 0 0.7rem 2rem rgb(7 25 35 / 4%);
}
.table-scroll:focus-visible { outline: 3px solid var(--accent-bright); outline-offset: 2px; }

.data-table { width: 100%; border-collapse: collapse; white-space: nowrap; }
.data-table th, .data-table td { border-bottom: 1px solid var(--line); padding: 0.78rem 0.8rem; text-align: right; }
.data-table thead th {
    background: var(--surface-soft);
    color: var(--muted);
    font-size: 0.68rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.data-table tbody tr:last-child > * { border-bottom: 0; }
.data-table tbody tr:hover { background: var(--surface-hover); }
.standings-table tbody .standings-row--playoff > * { background: var(--surface-selected); }
.standings-table tbody .standings-row--playoff:hover > * { background: var(--surface-selected-hover); }
.standings-row--playoff .rank {
    border-left: 3px solid var(--accent);
    color: var(--accent);
    font-weight: 800;
}
.data-table th:nth-child(2), .data-table td:nth-child(2), .stats-table th:first-child, .stats-table td:first-child { text-align: left; }
.data-table a { color: var(--ink); font-weight: 720; text-decoration: none; }
.data-table a:hover { color: var(--accent); }
.cap-matrix { min-width: 52rem; table-layout: fixed; }
.cap-matrix .cap-column-player { width: 15rem; }
.cap-matrix .cap-column-position { width: 6rem; }
.cap-matrix .cap-column-age { width: 4.5rem; }
.cap-matrix .cap-column-draft { width: 4.5rem; }
.cap-matrix .cap-column-season { width: 7.5rem; }
.cap-matrix th:first-child { text-align: left; }
.cap-matrix th:nth-child(4), .cap-matrix td:nth-child(4) { text-align: left; }
.cap-position { color: var(--muted); font-size: 0.76rem; font-weight: 650; }
.cap-matrix .cap-draft { text-align: center; }
.cap-expiry { color: var(--accent); font-size: 0.72rem; font-weight: 850; letter-spacing: 0.04em; }
.cap-expiry--ufa { color: var(--danger); }
.cap-table-section + .cap-table-section { margin-top: 1.5rem; }
.cap-table-section > h3 { margin: 0 0 0.55rem; }
.cap-matrix .cap-position-group__heading th { background: var(--surface-soft); color: var(--muted); font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; }
.cap-matrix .cap-position-group__heading th:first-child { border-left: 0.22rem solid var(--accent); color: var(--ink-strong); font-weight: 850; }
.cap-matrix .cap-position-group + .cap-position-group .cap-position-group__heading th { border-top: 1px solid var(--strong-line); }
.cap-matrix .cap-position-group__heading:hover { background: transparent; }
.cap-matrix--core .cap-position-group--forwards tr:not(.cap-position-group__heading):not(:last-child):nth-child(3n + 1) > *,
.cap-matrix--core .cap-position-group--defence tr:not(.cap-position-group__heading):not(:last-child):nth-child(2n + 1) > * { border-bottom-color: var(--strong-line); }
.rank { width: 2.5rem; color: #91a0a7; font-variant-numeric: tabular-nums; }
.table-emphasis { color: var(--ink-strong); font-weight: 850; }
.team-cell a,
.team-cell__identity { display: inline-flex; align-items: center; gap: 0.65rem; }
.team-cell img { width: 1.75rem; height: 1.75rem; object-fit: contain; }
.team-name-short { display: none; }

@media (min-width: 1280px) {
    .standings-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 1rem;
    }
    .standings-grid .standings-column--record,
    .standings-grid .standings-column--secondary,
    .standings-grid .standings-column--tertiary { display: none; }
    .standings-grid .team-name-full { display: none; }
    .standings-grid .team-name-short { display: inline; }
}

.leaders-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 1.25rem; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.2rem, 2.5vw, 2rem); background: var(--surface); box-shadow: 0 0.7rem 2rem rgb(7 25 35 / 4%); }
.leader-list { margin: 0; padding: 0; list-style: none; }
.leader-list li { display: grid; grid-template-columns: 2rem 1fr auto; align-items: center; gap: 0.8rem; border-top: 1px solid var(--line); padding: 0.85rem 0; }
.leader-rank { color: #93a1a8; font-size: 0.78rem; font-variant-numeric: tabular-nums; }
.leader-list a { display: flex; min-width: 0; flex-direction: column; color: var(--ink); text-decoration: none; }
.leader-list a:hover strong { color: var(--accent); }
.leader-list a span { overflow: hidden; color: var(--muted); font-size: 0.76rem; text-overflow: ellipsis; white-space: nowrap; }
.leader-list .leader-detail { display: flex; align-items: center; gap: 0.28rem; }
.leader-list .leader-team-logos { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 0.18rem; overflow: visible; }
.leader-team-logos img { width: 1.75rem; height: 1.75rem; object-fit: contain; }
.leader-team-logos b { color: var(--muted); font-size: 0.62rem; font-weight: 850; }
.leader-value { display: flex; align-items: baseline; gap: 0.25rem; font-size: 1.3rem; font-weight: 850; }
.leader-value small { color: var(--muted); font-size: 0.64rem; }
.empty-row { display: block !important; color: var(--muted); }

.game-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
}
.game-card {
    position: relative;
    display: grid;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 0.75rem;
    background: var(--surface);
    color: var(--ink);
    text-decoration: none;
    box-shadow: 0 0.45rem 1.2rem rgb(7 25 35 / 4%);
    transition: border-color 150ms ease, box-shadow 150ms ease;
}
.game-card:has(> .game-card__link:hover),
.game-card:has(> .game-card__link:focus-visible) {
    border-color: var(--accent);
    color: var(--ink);
    box-shadow: 0 0 0 1px var(--interactive-ring), 0 0.55rem 1.35rem rgb(7 25 35 / 8%);
}
.game-card__meta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0.75rem;
    background: var(--surface-soft);
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 760;
    text-transform: uppercase;
}
.game-card__meta > :last-child { justify-self: end; text-align: right; }
.game-card__status { justify-self: center; white-space: nowrap; }
.game-card__team {
    display: grid;
    min-width: 0;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 0.75rem;
}
.game-card__team + .game-card__team { border-top: 1px solid var(--line); }
.game-card__team-link {
    position: relative;
    z-index: 2;
    display: grid;
    min-width: 0;
    grid-template-columns: 1.75rem auto minmax(0, 1fr);
    align-items: center;
    gap: 0.55rem;
    color: var(--ink);
    text-decoration: none;
    transition: transform 150ms ease;
}
.game-card__team img {
    width: 1.75rem;
    height: 1.75rem;
    object-fit: contain;
    transition: filter 150ms ease, transform 150ms ease;
}
.game-card__team strong { font-size: 1rem; }
.game-card__team small {
    overflow: hidden;
    color: var(--muted);
    font-size: 0.76rem;
    text-overflow: ellipsis;
    transition: color 150ms ease;
    white-space: nowrap;
}
.game-card__team b {
    font-size: 1.2rem;
    font-variant-numeric: tabular-nums;
    transition: color 150ms ease, transform 150ms ease;
}
.game-card__team--winner { background: var(--winner-surface); }
.game-card__team--winner strong, .game-card__team--winner b { font-weight: 900; }
.game-card__team-link:is(:hover, :focus-visible) strong { color: var(--accent); }
.game-card__team-link:is(:hover, :focus-visible) small { color: var(--ink-strong); }
.game-card__team-link:is(:hover, :focus-visible) { transform: translateY(-1px); }
.game-card__team-link:is(:hover, :focus-visible) img {
    filter: drop-shadow(0 0.18rem 0.18rem rgb(7 25 35 / 18%));
    transform: scale(1.07);
}
.game-card__link {
    position: absolute;
    z-index: 1;
    inset: 0;
}
.game-card__link:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.game-card:has(> .game-card__link:is(:hover, :focus-visible)) .game-card__team > b {
    color: var(--accent);
    transform: translateY(-1px);
}
.game-insight-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.8rem;
}
.game-insight-grid a {
    display: flex;
    min-width: 0;
    flex-direction: column;
    border: 1px solid var(--line);
    border-radius: 0.75rem;
    padding: 1rem;
    background: var(--surface);
    color: var(--ink);
    text-decoration: none;
}
.game-insight-grid a:hover { border-color: var(--accent); }
.game-insight-grid span { color: var(--muted); font-size: 0.68rem; font-weight: 800; text-transform: uppercase; }
.game-insight-grid strong { margin-top: 0.35rem; font-size: 1.25rem; }
.game-insight-grid small { overflow: hidden; margin-top: 0.2rem; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }

.home-account-summary {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(19rem, 0.75fr);
    overflow: hidden;
    margin: 1.5rem 0 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
}
.home-account-summary__fantasy { min-width: 0; padding: 1.4rem; }
.home-account-summary__fantasy header { display: flex; min-width: 0; align-items: baseline; justify-content: space-between; gap: 1rem; }
.home-account-summary__fantasy .eyebrow { flex: 0 0 auto; margin: 0; }
.home-account-summary__fantasy h1 { max-width: 24rem; padding-bottom: 0.12em; overflow-wrap: anywhere; font-size: clamp(1.35rem, 2.1vw, 2rem); line-height: 1.2; letter-spacing: -0.035em; text-align: right; }
.home-account-summary__metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 1.15rem;
    border-top: 1px solid var(--line);
}
.home-account-summary__metrics > a,
.home-account-summary__setup {
    display: flex;
    min-width: 0;
    flex-direction: column;
    color: var(--ink);
    text-decoration: none;
}
.home-account-summary__metrics > a { padding: 0.9rem 1rem 0 0; }
.home-account-summary__metrics > a + a { border-left: 1px solid var(--line); padding-left: 1rem; }
.home-account-summary__metrics > a:hover strong,
.home-account-summary__setup:hover strong { color: var(--accent); }
.home-account-summary__metrics span,
.home-account-summary__setup > span {
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.home-account-summary__metrics strong,
.home-account-summary__setup > strong {
    overflow-wrap: anywhere;
    margin-top: 0.25rem;
    font-size: clamp(1rem, 1.7vw, 1.3rem);
}
.home-account-summary__metrics > a > small,
.home-account-summary__setup > small { margin-top: 0.1rem; color: var(--muted); font-size: 0.72rem; }
.home-account-summary__metrics strong small { font-size: 0.65em; }
.home-account-summary__setup { margin-top: 1.15rem; border-top: 1px solid var(--line); padding-top: 0.9rem; }
.home-account-summary__collection {
    display: grid;
    min-width: 0;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 1rem;
    border-left: 1px solid var(--line);
    padding: 1.4rem;
    background: var(--ice);
    color: var(--ink);
    text-decoration: none;
}
.home-account-summary__collection:hover { background: var(--surface-soft); color: var(--ink); }
.home-account-summary__collection .eyebrow { margin-bottom: 0.35rem; }
.home-account-summary__collection h2 { font-size: clamp(2rem, 4vw, 3.2rem); font-variant-numeric: tabular-nums; line-height: 0.95; }
.home-account-summary__collection h2 span { color: var(--muted); font-size: 0.45em; font-weight: 700; }
.home-account-summary__collection p:last-child { margin: 0.45rem 0 0; color: var(--muted); font-size: 0.75rem; }
.home-account-summary__progress { display: flex; min-width: 5.5rem; flex-direction: column; align-items: flex-end; }
.home-account-summary__progress strong { color: var(--accent); font-size: 1.2rem; }
.home-account-summary__progress progress { width: 5.5rem; height: 0.35rem; margin: 0.35rem 0 0.55rem; border: 0; border-radius: 999px; accent-color: var(--accent); }
.home-account-summary__progress progress::-webkit-progress-bar { border-radius: 999px; background: var(--surface); }
.home-account-summary__progress progress::-webkit-progress-value { border-radius: 999px; background: var(--accent); }
.home-account-summary__progress span { color: var(--accent); font-size: 0.7rem; font-weight: 850; white-space: nowrap; }
.home-public-summary {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(19rem, 0.75fr);
    margin: 0;
    padding: clamp(1.75rem, 3.5vw, 2.75rem) 0;
    background: linear-gradient(90deg, var(--navy), #123f47 52%, var(--navy));
    box-shadow: 0 0 0 100vmax var(--navy);
    clip-path: inset(0 -100vmax);
    color: #fff;
}
.home-public-summary__fantasy { min-width: 0; padding-right: clamp(1.5rem, 4vw, 3.5rem); }
.home-public-summary__fantasy header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 0.5rem 1.5rem;
}
.home-public-summary__fantasy .eyebrow,
.home-public-summary__collection .eyebrow { margin-bottom: 0.25rem; color: var(--accent-bright); }
.home-public-summary__fantasy-kicker--desktop { grid-column: 1; grid-row: 2; margin: 0; }
.home-public-summary__fantasy-kicker--mobile { display: none; }
.home-public-summary__fantasy h1 { grid-column: 1; grid-row: 1; font-size: clamp(2rem, 3.2vw, 3.1rem); letter-spacing: -0.045em; }
.home-public-summary__learn { grid-column: 2; grid-row: 1; flex: 0 0 auto; color: #c2d6dc; font-size: 0.75rem; font-weight: 800; text-decoration: none; }
.home-public-summary__learn:hover { color: var(--accent-bright); }
.home-public-summary__fantasy-details {
    display: grid;
    grid-template-columns: minmax(17rem, 0.85fr) minmax(15rem, 1fr);
    align-items: end;
    gap: clamp(1.5rem, 4vw, 3.5rem);
    margin-top: 0.75rem;
}
.home-public-summary__card-stats span { color: #9fbbc2; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; }
.home-public-summary__collection { min-width: 0; border-left: 1px solid rgb(255 255 255 / 18%); padding: 0 0 0 clamp(1.5rem, 4vw, 3.5rem); }
.home-public-summary__collection .eyebrow { margin-bottom: 0.65rem; }
.home-public-summary__card-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.home-public-summary__card-stats > div { display: flex; min-width: 0; flex-direction: column; }
.home-public-summary__card-stats > div + div { border-left: 1px solid rgb(255 255 255 / 18%); padding-left: 1rem; }
.home-public-summary__card-stats strong { font-size: clamp(1.65rem, 3vw, 2.45rem); font-variant-numeric: tabular-nums; line-height: 1; }
.home-public-summary__collection > p:not(.eyebrow) { margin: 0.75rem 0 0.3rem; color: #c2d6dc; font-size: 0.75rem; }
.home-public-summary__fantasy-copy > p { margin: 0 0 0.3rem; color: #c2d6dc; font-size: 0.75rem; }
.home-public-summary__collection > a,
.home-public-summary__fantasy-copy > a { color: #fff; font-size: 0.75rem; font-weight: 850; text-decoration: none; }
.home-public-summary__collection > a:hover,
.home-public-summary__fantasy-copy > a:hover { color: var(--accent-bright); }
.fantasy-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(16rem, 0.5fr);
    gap: 3rem;
    align-items: end;
    padding: clamp(3rem, 8vw, 7rem) max(1rem, calc((100% - 76rem) / 2));
    background: linear-gradient(90deg, var(--navy), #0b3a43 52%, var(--navy));
    box-shadow: 0 0 0 100vmax var(--navy);
    clip-path: inset(0 -100vmax);
    color: #fff;
}
.fantasy-hero h1 { max-width: 13ch; margin: 0.25rem 0 1rem; font-size: clamp(2.35rem, 4.5vw, 4.25rem); line-height: 0.98; letter-spacing: -0.05em; }
.fantasy-hero__copy > p:last-of-type { max-width: 42rem; margin: 0; color: #b9d1d7; font-size: 1.1rem; }
.fantasy-hero__copy > p:last-of-type a { color: inherit; font-weight: 800; text-decoration-color: var(--accent-bright); text-underline-offset: 0.16em; }
.fantasy-hero__copy > p:last-of-type a:hover { color: #fff; }
.fantasy-hero__cta { margin-top: 1.5rem; }
.fantasy-hero__status { display: flex; flex-direction: column; border-top: 1px solid rgb(255 255 255 / 25%); padding-top: 1rem; }
.fantasy-hero__status span { color: var(--accent-bright); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.fantasy-hero__status strong { margin: 0.25rem 0; font-size: 1.7rem; }
.fantasy-hero__status small { color: #9eb8c0; }
.fantasy-hero__link { margin-top: 0.8rem; color: white; font-size: 0.8rem; font-weight: 800; text-decoration: none; }
.fantasy-hero__link:hover { color: var(--accent-bright); }
.fantasy-preview { padding: 4rem 0; }
.fantasy-gameday-showcase { border-top: 1px solid var(--line); padding: 4rem 0 0; }
.fantasy-gameday-showcase .section-heading h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.6rem); line-height: 1.06; }
.fantasy-gameday-showcase .section-heading p:not(.kicker) { margin: 0.45rem 0 0; color: var(--muted); }
.fantasy-gameday-showcase__score { display: flex; min-width: 11rem; flex: 0 0 auto; flex-direction: column; border: 1px solid var(--line); border-radius: 0.8rem; padding: 0.75rem 1rem; background: var(--surface-soft); text-align: right; }
.fantasy-gameday-showcase__score > span, .fantasy-gameday-showcase__score > small { color: var(--muted); font-size: 0.68rem; font-weight: 750; }
.fantasy-gameday-showcase__score > strong { color: var(--accent); font-size: 1.55rem; font-variant-numeric: tabular-nums; line-height: 1.1; }
.fantasy-gameday-showcase__score > strong small { font-size: 0.68rem; }
.fantasy-gameday-showcase__note { margin: 1rem 0 0; color: var(--muted); }
.fantasy-gameday-showcase .roster-review { padding-bottom: 4rem; }
.fantasy-loop { max-width: 76rem; margin: 0 auto; border-top: 1px solid var(--line); padding: 4rem 1rem; }
.fantasy-loop > div { display: grid; grid-template-columns: 1fr 2fr; gap: 2rem; align-items: start; }
.fantasy-loop h2 { max-width: 25ch; margin: 0; font-size: clamp(2rem, 4vw, 3.6rem); line-height: 1.06; }
.fantasy-loop ol { display: grid; grid-template-columns: repeat(4, 1fr); margin: 3rem 0 0; padding: 0; list-style: none; counter-reset: fantasy-step; }
.fantasy-loop li { display: flex; flex-direction: column; gap: 0.4rem; border-top: 2px solid var(--accent); padding: 1.2rem 1.2rem 0 0; counter-increment: fantasy-step; }
.fantasy-loop li + li { margin-left: 1rem; }
.fantasy-loop li strong::before { content: "0" counter(fantasy-step) " "; color: var(--accent); }
.fantasy-loop li span { color: var(--muted); font-size: 0.825rem; }

.scoring-hero__total { display: flex; flex-direction: column; border-top: 1px solid rgb(255 255 255 / 25%); padding-top: 1rem; }
.scoring-hero__total strong { font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1; }
.scoring-hero__total span { margin-top: 0.35rem; color: #9eb8c0; }
.scoring-page { max-width: 120rem; margin: 0 auto; padding: clamp(3rem, 6vw, 5rem) 1rem 6rem; }
.scoring-rules { padding-bottom: clamp(3rem, 6vw, 5rem); }
.scoring-rule-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.scoring-rule-grid article { border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.2rem, 3vw, 2rem); background: var(--surface); box-shadow: 0 0.7rem 2rem rgb(7 25 35 / 4%); }
.scoring-rule-grid article > span { color: var(--accent); font-size: 0.7rem; font-weight: 850; letter-spacing: 0.09em; text-transform: uppercase; }
.scoring-rule-grid h3 { margin: 0.4rem 0 1.2rem; }
.scoring-rule-grid dl { margin: 0; }
.scoring-rule-grid dl div { display: flex; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--line); padding: 0.62rem 0; }
.scoring-rule-grid dt { color: var(--muted); }
.scoring-rule-grid dd { margin: 0; color: var(--ink-strong); font-weight: 850; font-variant-numeric: tabular-nums; }
.scoring-note { margin-top: 1rem; border-left: 0.22rem solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0; padding: 1rem 1.2rem; background: var(--surface-soft); }
.scoring-note p { margin: 0.35rem 0 0; color: var(--muted); font-size: 0.88rem; line-height: 1.55; }
.scoring-examples { border-top: 1px solid var(--line); padding-top: clamp(3rem, 6vw, 5rem); }
.scoring-example-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.scoring-example { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; background: var(--surface-soft); }
.scoring-example > .game-card { width: 100%; }
.scoring-example__explanation { margin: 1rem 0 0; border-left: 0.2rem solid var(--accent); padding: 0.75rem 0.9rem; background: var(--ice); color: var(--muted); font-size: 0.8rem; line-height: 1.5; }
.scoring-example__players { display: grid; gap: 0.75rem; margin-top: 1rem; }
.scoring-example-player { overflow: hidden; border: 1px solid var(--line); border-radius: calc(var(--radius) * 0.8); background: var(--surface); }
.scoring-example-player header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.9rem 1rem; }
.scoring-example-player header div { display: flex; min-width: 0; flex-direction: column; }
.scoring-example-player header a { overflow: hidden; color: var(--ink-strong); font-weight: 850; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.scoring-example-player header a:hover { color: var(--accent); }
.scoring-example-player header span { color: var(--muted); font-size: 0.72rem; font-weight: 750; }
.scoring-example-player header > strong { flex: 0 0 auto; border-radius: 999px; padding: 0.35rem 0.55rem; background: var(--ice); color: var(--accent-strong); font-size: 0.85rem; }
.scoring-example-player dl { margin: 0; border-top: 1px solid var(--line); }
.scoring-example-player dl div { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: 0.48rem 1rem; }
.scoring-example-player dl div + div { border-top: 1px solid var(--line); }
.scoring-example-player dt { color: var(--muted); font-size: 0.78rem; }
.scoring-example-player dt small { margin-left: 0.3rem; color: var(--ink); font-size: inherit; font-variant-numeric: tabular-nums; }
.scoring-example-player dd { margin: 0; color: var(--ink-strong); font-size: 0.8rem; font-weight: 850; font-variant-numeric: tabular-nums; }
.scoring-results {
    position: relative;
    left: 50%;
    width: min(120rem, calc(100vw - 2rem));
    border-top: 1px solid var(--line);
    padding-top: clamp(3rem, 6vw, 5rem);
    transform: translateX(-50%);
}
.scoring-controls { margin-bottom: 1rem; }
.scoring-controls > label { display: block; margin-bottom: 0.35rem; font-size: 0.76rem; font-weight: 800; }
.scoring-controls > div { display: flex; align-items: center; gap: 0.75rem; }
.scoring-controls input { width: min(28rem, 100%); min-width: 0; flex: 0 1 28rem; border: 1px solid var(--strong-line); border-radius: 0.65rem; padding: 0.75rem 0.9rem; background: var(--surface); color: var(--ink); font: inherit; }
.scoring-controls input:focus { border-color: var(--accent); outline: 3px solid var(--interactive-ring); }
.scoring-controls .scoring-min-games-filter { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 0.45rem; border: 1px solid var(--strong-line); border-radius: 999px; padding: 0.7rem 0.9rem; background: var(--surface); color: var(--ink); font-size: 0.78rem; font-weight: 800; cursor: pointer; white-space: nowrap; }
.scoring-controls .scoring-min-games-filter:has(input:checked) { border-color: var(--accent); background: var(--ice); color: var(--accent-strong); }
.scoring-controls .scoring-min-games-filter input { width: 1rem; min-width: 1rem; height: 1rem; flex: 0 0 auto; margin: 0; accent-color: var(--accent); }
.scoring-controls > p { min-height: 1em; margin: 0.45rem 0 0; color: var(--muted); font-size: 0.74rem; }
.scoring-table { min-width: 94rem; font-variant-numeric: tabular-nums; }
.scoring-table th:first-child, .scoring-table td:first-child,
.scoring-table th:nth-child(2), .scoring-table td:nth-child(2) { text-align: left; }
.scoring-table .scoring-table__groups th { border-bottom-color: var(--strong-line); background: var(--navy); color: white; text-align: center; }
.scoring-table thead tr:last-child th:nth-child(10), .scoring-table tbody tr > *:nth-child(10),
.scoring-table thead tr:last-child th:nth-child(15), .scoring-table tbody tr > *:nth-child(15) { border-left: 2px solid var(--strong-line); }
.scoring-table thead button { border: 0; padding: 0; background: transparent; color: inherit; font: inherit; font-weight: 850; letter-spacing: inherit; text-transform: inherit; cursor: pointer; }
.scoring-table thead th[aria-sort="ascending"] button::after { content: " ▲"; color: var(--accent); }
.scoring-table thead th[aria-sort="descending"] button::after { content: " ▼"; color: var(--accent); }
.scoring-table thead button:focus-visible { outline: 3px solid var(--interactive-ring); outline-offset: 3px; }
.scoring-table [data-scoring-empty] td { color: var(--muted); text-align: center; }
.scoring-data-note { margin: 0.7rem 0 0; color: var(--muted); font-size: 0.76rem; }
.scoring-pagination { margin-bottom: 0; }
.scoring-pagination[hidden] { display: none; }

@media (max-width: 720px) {
    .scoring-rule-grid { grid-template-columns: 1fr; }
    .scoring-example-grid { grid-template-columns: 1fr; }
    .scoring-controls > div { align-items: stretch; flex-direction: column; }
    .scoring-controls input { width: 100%; }
}

.fantasy-onboarding { display: grid; min-height: 72vh; place-items: center; padding: clamp(3rem, 8vw, 7rem) 1rem; }
.fantasy-onboarding__step { margin-bottom: 1rem; color: var(--accent); font-size: 0.72rem; font-weight: 850; letter-spacing: 0.12em; text-transform: uppercase; }
.fantasy-onboarding__panel { width: min(36rem, 100%); border: 1px solid var(--line); border-radius: 1.2rem; padding: clamp(1.5rem, 5vw, 3.5rem); background: var(--surface); box-shadow: var(--shadow); }
.fantasy-onboarding__panel h1 { margin: 0 0 0.7rem; font-size: clamp(2.4rem, 6vw, 4rem); line-height: 1; letter-spacing: -0.05em; }
.fantasy-onboarding__panel > p:not(.kicker) { color: var(--muted); }
.fantasy-name-form { display: flex; flex-direction: column; gap: 0.65rem; margin-top: 2rem; }
.fantasy-name-form label { font-size: 0.78rem; font-weight: 800; }
.fantasy-name-form input { width: 100%; border: 1px solid var(--strong-line); border-radius: 0.6rem; padding: 0.9rem 1rem; background: var(--background); color: var(--ink); font: inherit; font-size: 1.1rem; }
.fantasy-name-form input:focus { border-color: var(--accent); outline: 3px solid var(--interactive-ring); }
.fantasy-name-form small { color: var(--muted); }
.fantasy-name-form__actions { display: flex; flex-wrap: wrap; gap: 0.65rem; margin-top: 0.8rem; }
.fantasy-name-form__status { min-height: 1.3rem; color: var(--muted); font-size: 0.78rem; }
.button--secondary { border: 1px solid var(--line); background: var(--surface-soft); color: var(--ink); }
.button--secondary:hover { border-color: var(--accent); background: var(--surface); color: var(--accent); }
.form-errors { color: var(--danger); font-size: 0.84rem; }
.form-errors ul { margin: 0; padding-left: 1.2rem; }
.starter-pack-hero { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(18rem, 0.6fr); gap: 3rem; align-items: end; padding: clamp(3rem, 7vw, 6rem) clamp(1rem, 5vw, 4rem); background: linear-gradient(135deg, var(--navy), #0b3a43); color: #fff; }
.starter-pack-hero h1 { overflow-wrap: anywhere; margin: 0; font-size: clamp(2.8rem, 7vw, 6rem); line-height: 0.96; letter-spacing: -0.055em; }
.starter-pack-hero > div > p:last-child { max-width: 44rem; color: #b9d1d7; }
.starter-pack-facts { margin: 0; border-top: 1px solid rgb(255 255 255 / 25%); }
.starter-pack-facts > div { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px solid rgb(255 255 255 / 15%); padding: 0.8rem 0; }
.starter-pack-facts dt { color: #9eb8c0; font-size: 0.75rem; }
.starter-pack-facts dd { margin: 0; font-weight: 800; }
.fantasy-messages, .fantasy-pack-error { max-width: 72rem; margin: 1.5rem auto 0; border-radius: 0.7rem; padding: 1rem 1.2rem; }
.fantasy-messages { padding: 0; }
.fantasy-message { margin: 0; border-radius: 0.7rem; padding: 1rem 1.2rem; background: var(--success-soft); color: var(--success); }
.fantasy-message--error { background: var(--danger-soft); color: var(--danger); }
.fantasy-message + .fantasy-message { margin-top: 0.5rem; }
.roster-status { display: flex; max-width: 72rem; align-items: center; justify-content: space-between; gap: 1.5rem; margin: 1.5rem auto 0; border: 1px solid var(--line); border-radius: 0.8rem; padding: 1rem 1.2rem; background: var(--surface); }
.roster-status > div { display: grid; gap: 0.25rem; }
.roster-status p, .roster-status span { margin: 0; }
.roster-status span { color: var(--muted); font-size: 0.825rem; }
.lineup-lock-countdown { white-space: nowrap; font-variant-numeric: tabular-nums; }
.roster-status > .button, .roster-status > form { flex: 0 0 auto; }
.roster-status--onboarding, .roster-status--pack, .roster-status--next-pack, .roster-status--editable { border-color: var(--accent); }
.roster-status--live, .roster-status--locked, .roster-status--pack-locked { border-color: var(--warning); background: var(--warning-soft); }
.roster-status--live > div > strong, .roster-status--locked > div > strong, .roster-status--pack-locked > div > strong { color: var(--warning); }
.roster-status--complete { border-color: var(--success); background: var(--success-soft); }
.roster-status--complete > div > strong { color: var(--success); }
.fantasy-pack-error p { margin: 0; }
.fantasy-pack-error { background: var(--danger-soft); color: var(--danger); }
.starter-pack-sealed { display: grid; max-width: 64rem; grid-template-columns: minmax(14rem, 0.7fr) minmax(0, 1.3fr); gap: clamp(2rem, 6vw, 5rem); margin: 0 auto; align-items: center; padding: clamp(3rem, 8vw, 7rem) 1rem; }
.starter-pack-sealed__art { display: grid; min-height: 24rem; place-content: center; border: 1px solid rgb(255 255 255 / 25%); border-radius: 1.2rem; background: linear-gradient(145deg, var(--accent-strong), var(--navy)); color: white; text-align: center; box-shadow: var(--shadow); transform: rotate(-2deg); }
.starter-pack-sealed__art span { font-size: 6rem; font-weight: 900; line-height: 1; }
.starter-pack-sealed__art small { letter-spacing: 0.14em; }
.starter-pack-sealed h2 { margin: 0; font-size: clamp(2rem, 5vw, 4rem); line-height: 1.02; }
.starter-pack-sealed p:not(.kicker) { color: var(--muted); }
.starter-pack-open { margin-top: 1rem; font-size: 1.05rem; }
.starter-pack-open:disabled { opacity: 0.5; cursor: not-allowed; }
.starter-results { padding: 4rem 0; }
.starter-card-groups { display: grid; gap: 2.5rem; margin-top: 2rem; }
.starter-card-group__heading { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--line); padding-bottom: 0.65rem; }
.starter-card-group__heading h3 { margin: 0; font-size: 1.2rem; }
.starter-card-group__heading span { color: var(--muted); font-size: 0.8rem; font-weight: 800; }
.starter-results__action { display: flex; justify-content: flex-end; margin-top: 2rem; }
.roster-hero { border-bottom: 1px solid var(--line); padding: 1.5rem 0; }
.roster-hero--with-score { display: flex; align-items: end; justify-content: space-between; gap: 2rem; }
.roster-hero h1 { overflow-wrap: anywhere; margin: 0; font-size: clamp(2.25rem, 5vw, 4.25rem); line-height: 1; letter-spacing: -0.05em; }
.roster-hero__metrics { display: flex; flex: 0 0 auto; gap: 0.65rem; }
.roster-hero__score { display: flex; min-width: 11rem; flex: 0 0 auto; flex-direction: column; border: 1px solid var(--line); border-radius: 0.8rem; padding: 0.75rem 1rem; background: var(--surface-soft); color: var(--ink); text-align: right; text-decoration: none; }
.roster-hero__score[href]:hover { border-color: var(--accent); background: var(--ice); }
.roster-hero__score > span, .roster-hero__score > small { color: var(--muted); font-size: 0.68rem; font-weight: 750; }
.roster-hero__score > strong { color: var(--accent); font-size: 1.55rem; font-variant-numeric: tabular-nums; line-height: 1.1; }
.roster-hero__score > strong small { font-size: 0.68rem; }
.fantasy-results, .fantasy-leaderboard, .fantasy-gameday-comparison { width: min(72rem, 100%); margin: 0 auto; padding: 2rem 0 5rem; }
.fantasy-leaderboard--preview { border-top: 1px solid var(--line); }
.fantasy-results__heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 1rem; }
.fantasy-results__heading h2 { margin: 0; font-size: clamp(1.8rem, 4vw, 3rem); }
.fantasy-results__heading p:not(.kicker) { margin: 0.4rem 0 0; color: var(--muted); }
.fantasy-gameday-nav { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.fantasy-leaderboard-table { overflow-x: auto; border: 1px solid var(--line); border-radius: 0.8rem; background: var(--surface); }
.fantasy-leaderboard-table table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.fantasy-leaderboard-table th, .fantasy-leaderboard-table td { border-bottom: 1px solid var(--line); padding: 0.8rem 1rem; text-align: right; }
.fantasy-leaderboard-table tr:last-child > * { border-bottom: 0; }
.fantasy-leaderboard-table thead th { background: var(--surface-soft); color: var(--muted); font-size: 0.68rem; letter-spacing: 0.04em; text-transform: uppercase; }
.fantasy-leaderboard-table th:nth-child(2), .fantasy-leaderboard-table td:nth-child(2) { text-align: left; }
.fantasy-leaderboard-table tbody th { font-size: 0.92rem; }
.fantasy-leaderboard-table tbody th a { color: var(--ink); text-decoration-color: var(--line); text-underline-offset: 0.2em; }
.fantasy-leaderboard-table tbody th a:hover { color: var(--accent); text-decoration-color: currentColor; }
.fantasy-leaderboard-table tbody th small { margin-left: 0.35rem; border-radius: 999px; padding: 0.15rem 0.4rem; background: var(--accent); color: white; font-size: 0.58rem; text-transform: uppercase; }
.fantasy-leaderboard-table tbody tr.is-current > * { background: var(--ice); }
.fantasy-leaderboard-table tbody td:last-child strong { color: var(--accent); font-size: 1.05rem; }
.fantasy-gameday-score-table th:last-child, .fantasy-gameday-score-table td:last-child { width: 1%; white-space: nowrap; text-align: right; }
.fantasy-gameday-score-table__score-link { color: inherit; text-decoration: none; }
.fantasy-gameday-score-table__score-link:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.fantasy-results-table th:first-child, .fantasy-results-table td:first-child { text-align: left; }
.fantasy-results-table th:nth-child(2), .fantasy-results-table td:nth-child(2), .fantasy-results-table th:last-child, .fantasy-results-table td:last-child { width: 1%; white-space: nowrap; text-align: right; }
.fantasy-results-table tbody th small { display: block; margin: 0.2rem 0 0; background: none; color: var(--muted); font-size: 0.68rem; font-weight: 500; text-transform: none; }
.fantasy-results-table tbody td a { color: var(--ink); text-decoration-color: var(--line); text-underline-offset: 0.2em; }
.fantasy-results-table tbody td:last-child a { text-decoration: none; }
.fantasy-leaderboard-rank { width: 4rem; color: var(--muted); font-weight: 850; }
.fantasy-leaderboard__more { display: inline-block; margin-top: 1rem; font-size: 0.8rem; font-weight: 800; text-decoration: none; }
.roster-cap-panel { margin-top: 2rem; }
.roster-cap-panel h3 { margin: 0; font-size: 1.15rem; }
.roster-cap-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 0.8rem; border: 1px solid var(--line); border-radius: 0.8rem; background: var(--surface-soft); }
.roster-cap-summary > div { display: flex; min-width: 0; flex-direction: column; padding: 1rem; }
.roster-cap-summary > div + div { border-left: 1px solid var(--line); }
.roster-cap-summary span, .roster-cap-summary small { color: var(--muted); font-size: 0.72rem; }
.roster-cap-summary strong { overflow-wrap: anywhere; font-size: 1.15rem; }
.roster-cap-meter { overflow: hidden; width: 100%; height: 0.45rem; margin-top: 0.65rem; border-radius: 999px; background: var(--surface); }
.roster-cap-meter span { display: block; height: 100%; border-radius: inherit; background: var(--accent); transition: width 180ms ease, background-color 180ms ease; }
.roster-cap-meter.is-at-limit span { background: var(--warning); }
.roster-review { width: 100%; padding: 1.5rem 0 4rem; }
.fantasy-day-slate { border-bottom: 1px solid var(--line); padding-bottom: 2rem; }
.roster-points-toolbar { display: flex; align-items: center; gap: 1rem; margin-top: 1.25rem; border: 1px solid var(--line); border-radius: 0.8rem; padding: 0.8rem 1rem; background: var(--surface-soft); }
.roster-points-toolbar > div:first-child { display: flex; min-width: 0; flex: 1 1 auto; flex-direction: column; }
.roster-points-toolbar > div:first-child span, .roster-points-toolbar > small { color: var(--muted); font-size: 0.72rem; }
.roster-points-toolbar > small { flex: 0 0 auto; }
.fantasy-day-slate__heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.fantasy-day-slate__heading h3 { margin: 0; font-size: 1.15rem; }
.fantasy-day-slate__heading > time { color: var(--muted); font-size: 0.76rem; font-weight: 750; }
.fantasy-game-card__result { display: flex; min-width: 0; align-items: center; justify-content: flex-end; gap: 0.65rem; }
.fantasy-game-card__score { min-width: 1.25rem; text-align: right; }
.game-card__status--live { color: var(--danger); font-weight: 850; }
.game-card__status--final { color: var(--assist-stat); font-weight: 850; }
.fantasy-roster-scores { display: flex; justify-content: flex-end; gap: 0.25rem; }
.fantasy-game-card .fantasy-roster-scores b { display: inline-flex; max-width: 7rem; flex-wrap: wrap; justify-content: center; gap: 0.2rem; border-radius: 999px; padding: 0.32rem 0.42rem; background: var(--ice); color: var(--accent); }
.fantasy-game-card .fantasy-roster-scores .fantasy-score-badge--d { background: var(--goal-stat-soft); color: var(--goal-stat); }
.fantasy-game-card .fantasy-roster-scores .fantasy-score-badge--g { background: var(--success-soft); color: var(--success); }
.fantasy-score-dot { width: 0.48rem; height: 0.48rem; border: 1.5px solid currentColor; border-radius: 50%; }
.fantasy-score-dot.is-active { background: currentColor; }
.fantasy-day-slate__empty { grid-column: 1 / -1; margin: 0; color: var(--muted); }
.roster-unit { margin-top: 2rem; }
.roster-unit__heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 0.8rem; }
.roster-unit__heading h3 { margin: 0; }
.roster-view-switcher { display: inline-flex; overflow: hidden; margin: 0; border: 1px solid var(--strong-line); border-radius: 999px; padding: 0; background: var(--surface); }
.roster-view-switcher label { position: relative; padding: 0.42rem 0.75rem; color: var(--muted); font-size: 0.72rem; font-weight: 800; cursor: pointer; }
.roster-view-switcher label + label { border-left: 1px solid var(--strong-line); }
.roster-view-switcher label:has(input:checked) { background: var(--accent); color: white; }
.roster-view-switcher input { position: absolute; opacity: 0; pointer-events: none; }
.roster-view-switcher label:has(input:focus-visible) { z-index: 1; outline: 3px solid var(--interactive-ring); outline-offset: -3px; }
.roster-locked-view-controls { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-top: 2rem; border-top: 1px solid var(--line); padding-top: 2rem; }
.roster-locked-view-controls h3 { margin: 0; font-size: 1.15rem; }
.roster-stats-table { margin-top: 1rem; }
.roster-stats-table__heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.roster-stats-table__heading h3 { margin: 0; font-size: 1.15rem; }
.roster-stats-table__heading p { max-width: 48rem; margin: 0.25rem 0 0; color: var(--muted); font-size: 0.76rem; }
.roster-stats-table__heading > a { flex: 0 0 auto; font-size: 0.74rem; font-weight: 800; }
.roster-stats-group + .roster-stats-group { margin-top: 1.5rem; }
.roster-stats-group h4 { margin: 0 0 0.55rem; font-size: 0.88rem; }
.roster-stats-group__note { margin: -0.25rem 0 0.55rem; color: var(--muted); font-size: 0.72rem; }
.roster-stats-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 0.8rem; background: var(--surface); }
.roster-stats-scroll table { width: 100%; min-width: 62rem; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.roster-stats-scroll th, .roster-stats-scroll td { vertical-align: middle; border-bottom: 1px solid var(--line); padding: 0.6rem 0.7rem; text-align: right; white-space: nowrap; }
.roster-stats-scroll tr:last-child th, .roster-stats-scroll tr:last-child td { border-bottom: 0; }
.roster-stats-scroll th:nth-child(-n + 4), .roster-stats-scroll td:nth-child(-n + 4) { text-align: left; }
.roster-stats-scroll th:nth-child(5), .roster-stats-scroll td:nth-child(5) { text-align: center; }
.roster-stats-scroll tbody th, .roster-stats-scroll tbody td { color: var(--ink); font-size: inherit; }
.roster-stats-scroll tbody td:nth-child(n + 6) { color: var(--ink); font-size: 0.825rem; font-weight: 750; }
.roster-stats-scroll .roster-stat-unavailable { color: var(--neutral); font-weight: 650; opacity: 0.62; }
.roster-stats-scroll tbody td.roster-stat-did-not-play { color: var(--muted); font-weight: 650; }
.roster-stats-scroll .roster-stats-position-heading th { border-top: 1px solid var(--strong-line); border-bottom-color: var(--strong-line); padding-top: 0.48rem; padding-bottom: 0.48rem; background: var(--surface-soft); color: var(--muted); font-size: 0.64rem; font-weight: 850; letter-spacing: 0.04em; text-transform: uppercase; }
.roster-stats-scroll .roster-stats-position-heading th:nth-child(2) { color: var(--accent); font-size: 0.7rem; font-weight: 900; letter-spacing: 0.055em; }
.roster-stats-scroll abbr { text-decoration: none; cursor: help; }
.roster-stats-scroll .roster-slot { display: inline-grid; min-width: 2.15rem; height: 1.35rem; place-items: center; border-radius: 999px; padding-inline: 0.3rem; background: var(--ice); color: var(--accent); font-size: 0.62rem; font-weight: 850; }
.roster-stats-scroll .roster-slot--d { background: var(--goal-stat-soft); color: var(--goal-stat); }
.roster-stats-scroll .roster-slot--g { background: var(--success-soft); color: var(--success); }
.roster-stats-scroll .roster-player-identity { grid-column: auto; gap: 0.42rem; }
.roster-stats-scroll .roster-player-identity a { overflow: hidden; color: var(--ink); font-weight: 750; text-decoration: none; text-overflow: ellipsis; }
.roster-stats-scroll .roster-player-identity .cap-position { color: var(--muted); }
.roster-stats-scroll .roster-cap-hit { color: var(--muted); }
.roster-stats-scroll .roster-matchup { grid-column: auto; grid-row: auto; justify-self: auto; }
.roster-stats-scroll .roster-matchup small { margin-left: 0.25rem; color: var(--neutral); font-size: 0.56rem; font-weight: 900; letter-spacing: 0.05em; }
.roster-stats-scroll .roster-matchup .roster-table-game__live { color: var(--danger); }
.roster-stats-scroll .roster-matchup .roster-table-game__final { color: var(--assist-stat); }
.roster-stats-scroll .roster-fantasy-points { justify-content: center; }
.roster-position-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.roster-position-group { overflow: hidden; min-width: 0; border: 1px solid var(--line); border-radius: 0.8rem; background: var(--surface); }
.roster-position-group__heading { display: flex; justify-content: space-between; padding: 0.7rem 0.8rem; background: var(--surface-soft); }
.roster-position-group__heading span { color: var(--muted); }
.roster-position-group ol { margin: 0; padding: 0; list-style: none; }
.roster-position-group li { display: grid; grid-template-columns: 2.25rem minmax(0, 1fr) auto; gap: 0.15rem 0.5rem; align-items: center; border-top: 1px solid var(--line); padding: 0.55rem 0.8rem; }
.roster-position-group li:last-child { border-bottom: 1px solid var(--line); }
.roster-position-group li[draggable="true"] { cursor: grab; transition: border-color 150ms ease, box-shadow 150ms ease, opacity 150ms ease, transform 150ms ease; }
.roster-position-group li[draggable="true"]:active { cursor: grabbing; }
.roster-position-group li.is-dragging { opacity: 0.42; }
.roster-position-group li.is-drop-target { position: relative; z-index: 1; box-shadow: inset 0 0 0 2px var(--accent); transform: translateY(-1px); }
.roster-unit--active [data-position="F"] li:nth-child(3n):not(:last-child),
.roster-unit--active [data-position="D"] li:nth-child(2n):not(:last-child) { box-shadow: inset 0 -1px var(--strong-line); }
.roster-position-group .roster-slot { display: grid; grid-row: 1 / 3; min-width: 2.15rem; height: 1.35rem; place-items: center; border-radius: 999px; padding-inline: 0.3rem; background: var(--ice); color: var(--accent); font-size: 0.62rem; font-weight: 850; }
.roster-position-group .roster-slot--d { background: var(--goal-stat-soft); color: var(--goal-stat); }
.roster-position-group .roster-slot--g { background: var(--success-soft); color: var(--success); }
.roster-player-identity { display: flex; grid-column: 2 / 4; min-width: 0; align-items: center; gap: 0.42rem; }
.roster-player-link { display: flex; min-width: 0; align-items: center; gap: 0.42rem; color: var(--ink); text-decoration: none; transition: transform 150ms ease; }
.roster-player-identity img { width: 1.5rem; height: 1.5rem; flex: 0 0 auto; object-fit: contain; }
.roster-player-link img { transition: filter 150ms ease, transform 150ms ease; }
.roster-player-link strong { overflow: hidden; font-size: inherit; font-weight: inherit; text-overflow: ellipsis; white-space: nowrap; }
.roster-player-link .cap-position { flex: 0 0 auto; color: var(--muted); transition: color 150ms ease; }
.roster-player-link:is(:hover, :focus-visible) strong { color: var(--accent); }
.roster-player-link:is(:hover, :focus-visible) .cap-position { color: var(--ink-strong); }
.roster-player-link:is(:hover, :focus-visible) { transform: translateY(-1px); }
.roster-player-link:is(:hover, :focus-visible) img { filter: drop-shadow(0 0.18rem 0.18rem rgb(7 25 35 / 18%)); transform: scale(1.07); }
.roster-position-group .roster-player-identity > .roster-fantasy-points { margin-left: auto; }
.roster-fantasy-points { display: inline-flex; flex: 0 0 auto; align-items: baseline; gap: 0.18rem; border-radius: 999px; padding: 0.18rem 0.42rem; background: var(--surface-soft); color: var(--muted); font-size: 0.58rem; font-weight: 800; }
.roster-fantasy-points b { color: var(--accent); font-size: 0.72rem; }
.roster-fantasy-points--upcoming { background: var(--neutral-soft); color: var(--neutral); }
.roster-fantasy-points--upcoming b { color: var(--neutral); }
.roster-fantasy-points--live { background: var(--danger-soft); color: var(--danger); }
.roster-fantasy-points--live b { color: var(--danger); }
.roster-fantasy-points--final { background: var(--assist-stat-soft); color: var(--assist-stat); }
.roster-fantasy-points--final b { color: var(--assist-stat); }
.roster-matchup { display: inline-flex; grid-column: 3; grid-row: 2; align-items: center; justify-self: end; gap: 0.2rem; color: var(--muted); font-size: 0.62rem; }
.roster-matchup img { width: 1.15rem; height: 1.15rem; object-fit: contain; }
.roster-matchup b { color: var(--ink); font-size: 0.62rem; }
.roster-cap-hit { grid-column: 2; grid-row: 2; }
.roster-position-group li a { overflow: hidden; color: var(--ink); font-weight: 750; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.roster-position-group li small { color: var(--muted); }
.roster-player-card__image, .roster-player-card__body { display: none; }
.roster-unit--active.is-formation .roster-position-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.roster-unit--active.is-formation .roster-position-group:first-child { grid-column: 1 / -1; }
.roster-unit--active.is-formation .roster-position-group:has(> ol[data-position="D"]) { grid-column: span 2; }
.roster-unit--active.is-formation .roster-position-group { overflow: hidden; border: 1px solid var(--line); border-radius: 0.8rem; background: var(--surface); }
.roster-unit--active.is-formation .roster-position-group ol { display: grid; gap: 0; }
.roster-unit--active.is-formation .roster-position-group ol[data-position="F"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.roster-unit--active.is-formation .roster-position-group ol[data-position="D"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.roster-unit--active.is-formation .roster-position-group ol[data-position="G"] { grid-template-columns: 1fr; }
.roster-unit--active.is-formation .roster-position-group:has(> ol[data-position="G"]) { align-self: start; }
.roster-unit--active.is-formation .roster-position-group li { border: 0; border-top: 1px solid var(--line); border-radius: 0; background: var(--surface); }
.roster-unit--active.is-formation .roster-position-group ol[data-position="F"] li:not(:nth-child(3n + 1)) { border-left: 1px solid var(--line); }
.roster-unit--active.is-formation .roster-position-group ol[data-position="D"] li:nth-child(even) { border-left: 1px solid var(--line); }
.roster-unit--active.is-formation [data-position="F"] li:nth-child(3n):not(:last-child):not(.is-drop-target),
.roster-unit--active.is-formation [data-position="D"] li:nth-child(2n):not(:last-child):not(.is-drop-target) { box-shadow: none; }
.roster-unit.is-cards .roster-position-grid { grid-template-columns: repeat(3, max-content); align-items: start; column-gap: 2rem; }
.roster-unit.is-cards .roster-position-group { overflow: visible; border: 0; border-radius: 0; background: transparent; }
.roster-unit.is-cards .roster-position-group__heading { margin-bottom: 0.65rem; padding: 0; background: transparent; color: var(--muted); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; }
.roster-unit.is-cards .roster-position-group__heading span { display: none; }
.roster-unit.is-cards .roster-position-group ol { display: grid; gap: 0.5rem; }
.roster-unit.is-cards .roster-position-group ol[data-position="F"] { grid-template-columns: repeat(3, minmax(0, var(--collection-card-width))); }
.roster-unit.is-cards .roster-position-group ol[data-position="D"] { grid-template-columns: repeat(2, minmax(0, var(--collection-card-width))); }
.roster-unit.is-cards .roster-position-group ol[data-position="G"] { grid-template-columns: minmax(0, var(--collection-card-width)); }
.roster-unit.is-cards .roster-position-group li { position: relative; display: block; overflow: hidden; width: var(--collection-card-width); min-width: 0; border: 1px solid color-mix(in srgb, var(--accent) 55%, var(--line)); border-radius: 1rem; padding: 0; background: var(--surface); box-shadow: var(--shadow); }
.roster-unit.is-cards .roster-position-group li:last-child { border-bottom: 1px solid color-mix(in srgb, var(--accent) 55%, var(--line)); }
.roster-unit.is-cards .roster-player-card__image { display: grid; aspect-ratio: 1; place-items: center; overflow: hidden; background: linear-gradient(155deg, var(--ice), var(--surface-soft)); color: var(--accent); font-size: 3rem; font-weight: 900; }
.roster-unit.is-cards .roster-player-card__image img { width: 100%; height: 100%; object-fit: contain; }
.roster-unit.is-cards .roster-player-card__body { display: flex; min-width: 0; flex-direction: column; padding: 0.8rem 0.775rem; }
.roster-unit.is-cards .roster-player-card__name { overflow: hidden; margin-top: 0.35rem; color: var(--ink); line-height: 1.15; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.roster-unit.is-cards .roster-player-card__name:hover { color: var(--accent); }
.roster-unit.is-cards .roster-player-card__name strong { font-size: inherit; }
.roster-unit.is-cards .roster-player-card__details { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 0.4rem; margin-top: 0.2rem; }
.roster-unit.is-cards .roster-player-card__details > small { overflow: hidden; color: var(--muted); font-size: 0.7rem; text-overflow: ellipsis; white-space: nowrap; }
.roster-unit.is-cards .roster-player-card__footer { display: flex; min-height: 1.45rem; align-items: end; justify-content: space-between; gap: 0.5rem; }
.roster-unit.is-cards .roster-player-card__opponent { display: inline-flex; align-items: center; gap: 0.2rem; color: var(--muted); font-size: 0.62rem; }
.roster-unit.is-cards .roster-player-card__opponent img { width: 1.15rem; height: 1.15rem; object-fit: contain; }
.roster-unit.is-cards .roster-player-card__opponent b { color: var(--ink); font-size: 0.62rem; }
.roster-unit.is-cards .roster-player-card__fpr { flex: 0 0 auto; border-radius: 999px; padding: 0.18rem 0.42rem; background: var(--surface-soft); color: var(--muted); font-size: 0.58rem; font-weight: 800; }
.roster-unit.is-cards .roster-player-card__fpr b { color: var(--accent); font-size: 0.72rem; }
.roster-unit.is-cards .roster-position-group > ol > li > .roster-slot { position: absolute; z-index: 1; top: 0.65rem; left: 0.65rem; grid-column: auto; grid-row: auto; background: color-mix(in srgb, var(--surface) 88%, transparent); box-shadow: 0 0.1rem 0.35rem rgb(7 25 35 / 16%); backdrop-filter: blur(0.25rem); }
.roster-unit.is-cards .roster-position-group > ol > li > .roster-player-identity,
.roster-unit.is-cards .roster-position-group > ol > li > .roster-cap-hit,
.roster-unit.is-cards .roster-position-group > ol > li > .roster-matchup { display: none; }
.roster-unit.is-cards [data-position="F"] li:nth-child(3n):not(:last-child),
.roster-unit.is-cards [data-position="D"] li:nth-child(2n):not(:last-child) { box-shadow: var(--shadow); }
.roster-position-group li[draggable="true"].is-swap-unavailable,
.roster-position-group li[draggable="true"].is-swap-unavailable:active { cursor: default; }
.roster-position-group li[draggable="true"]:hover:not(.is-selected):not(.is-swap-unavailable):not(:has(.roster-player-link:hover)) { position: relative; z-index: 1; outline: 2px solid var(--accent); outline-offset: -2px; }
.roster-position-group li[draggable="true"].is-swap-candidate:hover:not(.is-selected):not(.is-swap-unavailable):not(:has(.roster-player-link:hover)) { outline: 2px dashed var(--accent); }
.roster-position-group li[draggable="true"]:focus-visible, .roster-position-group li[draggable="true"].is-selected { position: relative; z-index: 1; outline: 2px solid var(--accent); outline-offset: -2px; background: var(--ice); }
.roster-editor { margin-top: 2rem; border-top: 1px solid var(--line); padding-top: 2rem; }
.roster-editor h3 { margin: 0; font-size: 1.15rem; }
.roster-editor > div:first-child > p:last-child { color: var(--muted); }
.roster-editor__locked { margin: 0.75rem 0 0; border-radius: 0.7rem; padding: 1rem; background: var(--warning-soft); color: var(--warning) !important; }
.roster-draft-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.5rem; border: 1px solid var(--line); border-radius: 0.8rem; padding: 1rem; background: var(--surface-soft); }
.roster-draft-summary { min-width: 0; flex: 1 1 auto; }
.roster-draft-bar p { margin: 0; color: var(--muted); }
.roster-draft-bar form { display: flex; flex: 0 0 auto; flex-wrap: wrap; gap: 0.65rem; }
.roster-draft-bar .button:disabled { cursor: not-allowed; opacity: 0.45; }
.roster-change-list { display: grid; gap: 0.5rem; margin: 0.8rem 0 0; padding: 0; list-style: none; }
.roster-change-list[hidden] { display: none; }
.roster-change-list li { display: grid; grid-template-columns: 2.6rem minmax(0, 1fr) minmax(0, 1fr); gap: 0.7rem; align-items: center; border-top: 1px solid var(--line); padding-top: 0.5rem; font-size: 0.8rem; font-weight: 750; }
.roster-change-list__slot { color: var(--accent); font-size: 0.68rem; font-weight: 900; }
.roster-change-list__out, .roster-change-list__in { display: flex; min-width: 0; align-items: baseline; gap: 0.38rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.roster-change-list small { flex: 0 0 auto; font-size: 0.58rem; font-weight: 900; letter-spacing: 0.07em; text-transform: uppercase; }
.roster-change-list__out small { color: var(--danger); }
.roster-change-list__in small { color: var(--success); }
.roster-review--over-cap .roster-draft-bar { border-color: var(--warning); background: var(--warning-soft); }
.roster-review--over-cap .roster-draft-bar [data-roster-status],
.roster-review--over-cap .roster-draft-bar [data-pack-status],
.roster-cap-summary strong.is-over-limit { color: var(--warning); }
.pack-board { width: 100%; margin: 2rem 0 4rem; }
.pack-reveal { width: 100%; margin: 2rem 0 4rem; }
.pack-reveal > section { margin-top: 2rem; }
.pack-reveal > section h3 { margin-bottom: 0.8rem; }
.pack-reveal__action { display: flex; justify-content: flex-end; margin-top: 2rem; }
.pack-board__summary { position: sticky; z-index: 5; top: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--strong-line); border-radius: 0.8rem; background: var(--surface); box-shadow: var(--shadow); }
.pack-board__summary > div { display: flex; min-width: 0; flex-direction: column; padding: 0.8rem 1rem; }
.pack-board__summary > div + div { border-left: 1px solid var(--line); }
.pack-board__summary small, .pack-board__summary span { color: var(--muted); font-size: 0.68rem; }
.pack-board__summary strong { font-size: 1rem; }
.pack-roster-unit { margin-inline: 0; }
.pack-roster-unit .roster-unit__heading > p { max-width: 34rem; margin: 0; color: var(--muted); font-size: 0.76rem; }
.pack-roster-player { transition: border-color 150ms ease, background-color 150ms ease, opacity 150ms ease; }
.pack-roster-player.is-new { background: var(--surface-hover); }
.pack-roster-player.is-new .pack-roster-player__source { color: var(--accent); }
.pack-roster-player.is-discarded:not(.is-new) { opacity: 0.58; }
.pack-roster-player__source { flex: 0 0 auto; color: var(--muted); font-size: 0.58rem; font-weight: 850; letter-spacing: 0.05em; text-transform: uppercase; }
.pack-board__action { position: sticky; z-index: 5; bottom: 1rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 2rem; border: 1px solid var(--strong-line); border-radius: 0.8rem; padding: 1rem; background: var(--surface); box-shadow: var(--shadow); }
.pack-board__action > div { display: flex; flex-direction: column; }
.pack-board__action span { color: var(--muted); font-size: 0.72rem; }
.pack-board__action .button:disabled { cursor: not-allowed; opacity: 0.45; }
.pack-board__buttons { flex: 0 0 auto; flex-direction: row !important; gap: 0.65rem; }
.simulation-stage-list { display: flex; flex-wrap: wrap; gap: 0.7rem; padding: 1rem; border: 1px solid var(--line); border-radius: 0.8rem; background: var(--surface-soft); }
.simulation-stage-list .button:disabled { cursor: not-allowed; opacity: 0.45; }
.simulation-game-list { overflow: hidden; border: 1px solid var(--line); border-radius: 0.8rem; }
.simulation-game-list > div { display: grid; grid-template-columns: 5rem minmax(0, 1fr) 5rem; gap: 1rem; padding: 0.7rem 1rem; }
.simulation-game-list > div + div { border-top: 1px solid var(--line); }
.simulation-game-list time, .simulation-game-list span { color: var(--muted); font-size: 0.75rem; }
.simulation-game-list span { text-align: right; }
@media (max-width: 760px) {
    .pack-board__summary { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pack-board__summary > div:nth-child(3) { border-left: 0; }
    .pack-board__summary > div:nth-child(n + 3) { border-top: 1px solid var(--line); }
    .pack-board__action { align-items: stretch; flex-direction: column; }
    .pack-board__buttons { align-self: stretch; }
    .pack-board__buttons .button { flex: 1 1 0; }
}

.button { display: inline-flex; justify-content: center; border: 0; border-radius: 0.55rem; padding: 0.75rem 1rem; background: var(--accent-bright); color: var(--navy); cursor: pointer; font-weight: 800; text-decoration: none; }
.button:hover { background: white; color: var(--navy); }

.breadcrumbs { display: flex; gap: 0.55rem; padding-top: 1.4rem; color: var(--muted); font-size: 0.82rem; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent); }

.listing-header { max-width: 58rem; padding: clamp(2rem, 4vw, 3.5rem) 0 clamp(1.5rem, 3vw, 2.25rem); }
.listing-header h1 {
    max-width: none;
    font-size: clamp(2.25rem, 4vw, 3.75rem);
    letter-spacing: -0.045em;
}
.listing-header .lede { margin-top: 0.65rem; font-size: clamp(0.98rem, 1.4vw, 1.12rem); }
.season-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; padding-bottom: 6rem; }
.season-grid > a { display: flex; min-height: 11rem; flex-direction: column; justify-content: space-between; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem; background: var(--surface); color: var(--ink); text-decoration: none; transition: transform 150ms ease, border-color 150ms ease; }
.season-grid > a:hover { border-color: var(--accent); transform: translateY(-3px); }
.season-grid span { color: var(--accent); font-size: 0.7rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.season-grid strong { font-size: 1.8rem; letter-spacing: -0.04em; }
.season-grid small { color: var(--muted); }

.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; padding-bottom: 6rem; }
.team-grid > a { display: flex; min-height: 7rem; align-items: center; gap: 1rem; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; background: var(--surface); color: var(--ink); text-decoration: none; transition: transform 150ms ease, border-color 150ms ease; }
.team-grid > a:hover { border-color: var(--accent); transform: translateY(-3px); }
.team-grid__mark { display: grid; width: 4rem; height: 4rem; flex: 0 0 auto; place-items: center; border-radius: 50%; background: var(--surface-soft); color: var(--accent); font-size: 0.82rem; font-weight: 850; }
.team-grid__mark img { width: 70%; height: 70%; object-fit: contain; }
.team-grid > a > span:last-child { display: flex; min-width: 0; flex-direction: column; }
.team-grid strong { line-height: 1.2; }
.team-grid small { margin-top: 0.35rem; color: var(--muted); }

.game-listing-header { padding-bottom: 1.5rem; }
.data-notice {
    margin-bottom: 1rem;
    border: 1px solid var(--strong-line);
    border-radius: 0.7rem;
    padding: 0.85rem 1rem;
    background: var(--neutral-soft);
    color: var(--muted);
    font-size: 0.85rem;
}
.game-filters {
    display: flex;
    align-items: stretch;
    gap: 0;
    overflow: hidden;
    margin-bottom: 2rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 0;
    background: var(--surface);
}
.game-filters label {
    display: flex;
    min-width: 10rem;
    flex-direction: column;
    justify-content: center;
    gap: 0.3rem;
    border-right: 1px solid var(--line);
    padding: 0.8rem 1rem;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}
.game-filters select {
    width: 100%;
    min-height: 2.65rem;
    border: 1px solid var(--line);
    border-radius: 0.5rem;
    padding: 0 2rem 0 0.65rem;
    background: var(--surface);
    color: var(--ink);
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: normal;
    text-transform: none;
}
.game-filters > a {
    align-self: center;
    margin: 0 1rem;
    border: 1px solid var(--line);
    border-radius: 0.5rem;
    padding: 0.62rem 0.85rem;
    background: var(--surface);
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 750;
    line-height: 1.35;
    text-decoration: none;
    white-space: nowrap;
}
.game-filters > a:hover { border-color: var(--strong-line); background: var(--surface-soft); color: var(--ink); }
.game-filters__season { min-width: 12rem !important; margin-left: auto; border-right: 0 !important; border-left: 1px solid var(--line); background: var(--surface-soft); }
.game-filters--compact { margin-top: 1.25rem; }
.date-navigation {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    margin-bottom: 1.5rem;
    text-align: center;
}
.date-navigation a { font-size: 0.8rem; font-weight: 750; text-decoration: none; }
.date-navigation a:last-child { text-align: right; }
.game-day + .game-day { margin-top: 2.25rem; }
.game-day__heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.8rem;
}
.game-day__heading h2 { font-size: 1.25rem; }
.game-day__heading a { font-size: 0.75rem; font-weight: 750; text-decoration: none; }
.game-day-list { padding-bottom: 1rem; }
.pagination {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    margin: 2rem 0 5rem;
    border-top: 1px solid var(--line);
    padding-top: 1rem;
    font-size: 0.8rem;
}
.pagination a { font-weight: 750; text-decoration: none; }
.pagination > :last-child { text-align: right; }
.pagination button {
    width: fit-content;
    border: 0;
    padding: 0;
    background: transparent;
    color: var(--accent);
    font: inherit;
    font-weight: 750;
    cursor: pointer;
}
.pagination button:last-child { justify-self: end; }
.pagination button:disabled { color: var(--muted); cursor: default; }
.game-hero { padding: clamp(2rem, 4vw, 3.5rem) 0 1rem; }
.game-hero__meta { text-align: center; }
.game-hero__meta h1 { max-width: none; font-size: clamp(2.25rem, 4vw, 3.75rem); letter-spacing: -0.045em; }
.game-hero__meta p:last-child { margin: 0.6rem 0 0; color: var(--muted); }
.game-scoreboard {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: clamp(1rem, 4vw, 3rem);
    max-width: 58rem;
    margin: 2.5rem auto 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: clamp(1.2rem, 4vw, 2.5rem);
    background: var(--surface);
    box-shadow: var(--shadow);
}
.game-scoreboard > a {
    display: grid;
    min-width: 0;
    grid-template-columns: 4.5rem minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.8rem;
    color: var(--ink);
    text-decoration: none;
}
.game-scoreboard > a:last-child { grid-template-columns: auto minmax(0, 1fr) 4.5rem; text-align: right; }
.game-scoreboard > a:last-child img { grid-column: 3; grid-row: 1; }
.game-scoreboard > a:last-child span { grid-column: 2; grid-row: 1; }
.game-scoreboard > a:last-child strong { grid-column: 1; grid-row: 1; }
.game-scoreboard img { width: 4.5rem; height: 4.5rem; object-fit: contain; }
.game-scoreboard a span { font-weight: 800; }
.game-scoreboard a strong { font-size: clamp(2rem, 5vw, 4rem); }
.game-scoreboard > div { display: flex; flex-direction: column; align-items: center; color: var(--muted); font-size: 0.72rem; font-weight: 850; text-transform: uppercase; }
.game-scoreboard > div b { color: var(--ink); }
.team-comparison { overflow: hidden; max-width: 52rem; margin: 0 auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.team-comparison > div { display: grid; grid-template-columns: 1fr minmax(10rem, 1fr) 1fr; padding: 0.7rem 1rem; text-align: center; }
.team-comparison > div + div { border-top: 1px solid var(--line); }
.team-comparison span { color: var(--muted); font-size: 0.74rem; }
.team-comparison strong:first-child { text-align: right; }
.team-comparison strong:last-child { text-align: left; }
.team-comparison__heading { background: var(--surface-soft); text-transform: uppercase; }
.boxscore-team + .boxscore-team { margin-top: 1.5rem; }
.boxscore-team h3 { margin: 0 0 0.6rem; font-size: 1rem; }
.game-player-stats-table thead th { border-bottom-color: var(--strong-line); padding-block: 0.48rem; background: var(--surface-soft); color: var(--muted); font-size: 0.64rem; font-weight: 850; letter-spacing: 0.04em; text-transform: uppercase; }
.game-player-stats-table thead th:first-child { color: var(--accent); font-size: 0.7rem; font-weight: 900; letter-spacing: 0.055em; }
.game-player-stats-table tbody th { background: var(--surface); white-space: nowrap; }
.game-player-stats-table tbody td { color: var(--ink); font-size: 0.825rem; font-weight: 750; }
.game-lineups { display: grid; gap: 2rem; }
.lineup-view-switcher { display: inline-flex; overflow: hidden; border: 1px solid var(--strong-line); border-radius: 999px; background: var(--surface); }
.lineup-view-switcher button { border: 0; padding: 0.48rem 0.85rem; background: transparent; color: var(--muted); font: inherit; font-size: 0.76rem; font-weight: 800; cursor: pointer; }
.lineup-view-switcher button + button { border-left: 1px solid var(--strong-line); }
.lineup-view-switcher button[aria-pressed="true"] { background: var(--accent); color: white; }
.lineup-view-switcher button:focus-visible { position: relative; z-index: 1; outline: 3px solid var(--interactive-ring); outline-offset: -3px; }
.game-lineup-panel[hidden] { display: none; }
.game-lineup-team { min-width: 0; }
.game-lineup-team__heading { display: flex; align-items: center; gap: 0.55rem; margin: 0 0 0.75rem; font-size: 1.05rem; }
.game-lineup-team__heading img { width: 2rem; height: 2rem; object-fit: contain; }
.game-lineup-units { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.game-lineup-unit { overflow: hidden; min-width: 0; border: 1px solid var(--line); border-radius: 0.8rem; background: var(--surface); }
.game-lineup-unit--forward, .game-lineup-unit--forward_rotation { grid-column: 1 / -1; }
.game-lineup-unit--defense, .game-lineup-unit--defense_rotation { grid-column: span 2; }
.game-lineup-unit--goalie { align-self: start; }
.game-lineup-unit h4 { margin: 0; padding: 0.7rem 0.8rem; background: var(--surface-soft); color: var(--ink); font-size: 0.82rem; letter-spacing: normal; text-transform: none; }
.game-lineup-unit__group + .game-lineup-unit__group { border-top: 1px solid var(--strong-line); }
.game-lineup-unit__players { display: grid; }
.game-lineup-unit--forward .game-lineup-unit__players { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.game-lineup-unit--forward_rotation .game-lineup-unit__players { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.game-lineup-unit--defense .game-lineup-unit__players { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.game-lineup-unit--defense_rotation .game-lineup-unit__players { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.game-lineup-unit--goalie .game-lineup-unit__players { grid-template-columns: 1fr; }
.game-lineup-unit--goalie .game-lineup-player + .game-lineup-player { border-top: 1px solid var(--line); border-left: 0; }
.game-lineup-player { position: relative; display: grid; grid-template-columns: 2.25rem minmax(0, 1fr); gap: 0.15rem 0.5rem; min-width: 0; align-items: center; padding: 0.6rem 0.8rem; }
.game-lineup-player + .game-lineup-player { border-left: 1px solid var(--line); }
.game-lineup-player__slot { display: inline-grid; min-width: 2.15rem; height: 1.35rem; place-items: center; border-radius: 999px; padding-inline: 0.3rem; background: var(--ice); color: var(--accent); font-size: 0.62rem; font-weight: 850; text-align: center; }
.game-lineup-player > .game-lineup-player__slot { grid-row: 1 / 3; }
.game-lineup-player__slot--defense, .game-lineup-player__slot--defense_rotation { background: var(--goal-stat-soft); color: var(--goal-stat); }
.game-lineup-player__slot--goalie { background: var(--success-soft); color: var(--success); }
.game-lineup-player__identity { display: flex; min-width: 0; align-items: center; gap: 0.4rem; }
.game-lineup-player__identity .cap-position { flex: 0 0 auto; color: var(--muted); font-size: 0.68rem; }
.game-lineup-player a { overflow: hidden; color: var(--ink); font-size: 0.84rem; font-weight: 750; line-height: 1.15; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.game-lineup-player a:hover { color: var(--accent); }
.game-lineup-player small { color: var(--muted); font-size: 0.68rem; white-space: nowrap; }
.game-lineup-tables { display: grid; gap: 1.5rem; }
.game-lineup-table-team h3 { margin: 0 0 0.65rem; font-size: 1.05rem; }
.lineup-depth-table { min-width: 68rem; }
.lineup-depth-table th, .lineup-depth-table td { text-align: right; }
.lineup-depth-table th:nth-child(1), .lineup-depth-table td:nth-child(1),
.lineup-depth-table th:nth-child(2), .lineup-depth-table td:nth-child(2),
.lineup-depth-table th:nth-child(3), .lineup-depth-table td:nth-child(3) { text-align: left; }
.lineup-depth-table th:nth-child(5), .lineup-depth-table td:nth-child(5),
.lineup-depth-table th:nth-child(6), .lineup-depth-table td:nth-child(6) { text-align: center; }
.lineup-depth-table tbody th[scope="row"] { background: var(--surface); white-space: nowrap; }
.lineup-depth-table .game-lineup-player__slot { font-family: inherit; }
.lineup-depth-table__row--defense .game-lineup-player__slot,
.lineup-depth-table__row--defense_rotation .game-lineup-player__slot { background: var(--goal-stat-soft); color: var(--goal-stat); }
.lineup-depth-table__row--goalie .game-lineup-player__slot { background: var(--success-soft); color: var(--success); }
.lineup-listed-position { display: inline-flex; align-items: center; gap: 0.4rem; }
.lineup-stat-pill { display: inline-flex; width: 1.65rem; height: 1.65rem; align-items: center; justify-content: center; border-radius: 999px; font: inherit; font-weight: 600; vertical-align: middle; }
.lineup-stat-pill--goal { background: var(--goal-stat-soft); color: var(--goal-stat); }
.lineup-stat-pill--assist { background: var(--assist-stat-soft); color: var(--assist-stat); }
.lineup-zero { color: var(--muted); }
.lineup-depth-table .lineup-depth-table__section > th { border-top: 1px solid var(--strong-line); border-bottom-color: var(--strong-line); padding-block: 0.48rem; background: var(--surface-soft); color: var(--muted); font-size: 0.64rem; font-weight: 850; letter-spacing: 0.04em; text-transform: uppercase; }
.lineup-depth-table .lineup-depth-table__section > th:nth-child(2) { color: var(--accent); font-size: 0.7rem; font-weight: 900; letter-spacing: 0.055em; }
.lineup-depth-table .lineup-depth-table__unit-end > * { border-bottom: 2px solid var(--strong-line); }
.lineup-depth-table .lineup-depth-table__section + tr > * { border-top: 0; }
.game-page-end { padding-bottom: 5rem; }
.game-summary-grid {
    display: grid;
    grid-template-columns: repeat(9, minmax(0, 1fr));
    overflow: hidden;
    margin-bottom: 1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}
.game-summary-grid > div { min-width: 0; border-right: 1px solid var(--line); padding: 0.8rem; text-align: center; }
.game-summary-grid > div:last-child { border-right: 0; }
.game-summary-grid span { display: block; color: var(--muted); font-size: 0.61rem; font-weight: 800; text-transform: uppercase; }
.game-summary-grid strong { display: block; margin-top: 0.2rem; font-size: 0.825rem; white-space: nowrap; }
.opponent-cell { display: inline-flex; align-items: center; gap: 0.4rem; }
.opponent-cell img { width: 1.5rem; height: 1.5rem; object-fit: contain; }
.result-badge { display: inline-grid; min-width: 2rem; min-height: 1.5rem; place-items: center; border-radius: 999px; background: var(--neutral-soft); font-size: 0.66rem; font-weight: 900; }
.result-badge--w { background: var(--success-soft); color: var(--success); }
.result-badge--l { background: var(--danger-soft); color: var(--danger); }
.result-badge--otl { background: var(--warning-soft); color: var(--warning); }
.team-game-table a { font-weight: 750; text-decoration: none; }
.player-game-list { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.player-game-row {
    display: grid;
    min-width: 0;
    grid-template-columns: minmax(8rem, 0.8fr) minmax(7rem, 0.7fr) minmax(18rem, 2fr);
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1rem;
    color: var(--ink);
    text-decoration: none;
}
.player-game-row + .player-game-row { border-top: 1px solid var(--line); }
.player-game-row:hover { background: var(--surface-hover); color: var(--ink); }
.player-game-row__date { display: flex; flex-direction: column; }
.player-game-row__date small { color: var(--muted); font-size: 0.66rem; }
.player-game-row__opponent { display: flex; align-items: center; gap: 0.55rem; }
.player-game-row__opponent img { width: 1.8rem; height: 1.8rem; object-fit: contain; }
.player-game-row__stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); text-align: right; }
.player-game-row__stats span { color: var(--muted); font-size: 0.63rem; }
.player-game-row__stats b { display: block; color: var(--ink); font-size: 0.82rem; }

.search-page-header { padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.search-page-results {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
    padding-bottom: 6rem;
}
.search-page-results > section {
    align-self: start;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: clamp(1.2rem, 2.5vw, 2rem);
    background: var(--surface);
    box-shadow: 0 0.7rem 2rem rgb(7 25 35 / 4%);
}
.search-result-list { display: grid; gap: 0.35rem; }
.search-result-list > a {
    display: grid;
    min-width: 0;
    grid-template-columns: 2.5rem minmax(0, 1fr);
    align-items: center;
    gap: 0.8rem;
    border-top: 1px solid var(--line);
    padding: 0.7rem 0;
    color: var(--ink);
    text-decoration: none;
}
.search-result-list > a:hover strong { color: var(--accent); }
.search-result-list > a > span:last-child { display: flex; min-width: 0; flex-direction: column; }
.search-result-list strong, .search-result-list small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.search-result-list small { color: var(--muted); font-size: 0.75rem; }
.search-result-mark {
    display: grid;
    width: 2.35rem;
    height: 2.35rem;
    place-items: center;
    border-radius: 50%;
    background: var(--surface-soft);
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 900;
}
.search-result-mark img { width: 75%; height: 75%; object-fit: contain; }
.search-result-empty { margin: 0; border-top: 1px solid var(--line); padding: 1rem 0 0; color: var(--muted); }

.entity-hero { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: clamp(1.25rem, 3vw, 2rem); padding: clamp(2rem, 4vw, 3.5rem) 0 clamp(1.5rem, 3vw, 2.25rem); }
.entity-hero h1 { max-width: 18ch; font-size: clamp(2.25rem, 4vw, 3.75rem); letter-spacing: -0.045em; }
.entity-hero .lede { margin-top: 0.65rem; font-size: clamp(0.98rem, 1.4vw, 1.12rem); }
.entity-mark, .player-monogram { display: grid; width: clamp(4.75rem, 8vw, 6.5rem); aspect-ratio: 1; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); box-shadow: 0 0.7rem 2rem rgb(7 25 35 / 5%); }
.entity-mark img { width: 68%; height: 68%; object-fit: contain; }
.entity-mark span, .player-monogram { color: var(--accent); font-size: clamp(1.4rem, 3vw, 2.2rem); font-weight: 900; letter-spacing: -0.05em; }
.player-monogram { border: 0; background: var(--ice); }
.player-monogram img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: center top; }

.team-season-summary { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); box-shadow: 0 0.7rem 2rem rgb(7 25 35 / 4%); }
.team-season-summary__header {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.team-season-summary__header--playoffs { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.team-season-summary__header--playoffs .season-switcher--summary {
    grid-column: 1;
    grid-row: 1;
    grid-template-columns: minmax(0, 1fr);
}
.season-switcher--inverse { min-width: 12rem; border-color: var(--line); background: var(--surface-soft); box-shadow: none; }
.season-switcher--inverse label { color: var(--muted); }
.season-switcher--inverse select { border-color: var(--line); background: var(--surface); color: var(--ink); }
.season-switcher--summary {
    display: grid;
    min-width: 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-content: center;
    border: 0;
    border-right: 1px solid var(--line);
    border-radius: 0;
    padding: 0.75rem 0;
    background: var(--surface-soft);
}
.season-switcher--summary label,
.season-switcher--summary .season-switcher__controls {
    grid-column: 1;
    justify-self: center;
}
.season-switcher--summary label { text-align: center; }
.season-switcher--summary select {
    width: auto;
    max-width: 100%;
}
.team-season-ranks {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    background: var(--surface);
}
.team-season-ranks > div {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0.75rem clamp(0.8rem, 2vw, 1.5rem);
    border-right: 1px solid var(--line);
    text-align: center;
}
.team-season-ranks span {
    display: block;
    overflow: hidden;
    margin-bottom: 0.2rem;
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}
.team-season-ranks strong { font-size: 1.1rem; }
.team-season-summary__header--playoffs .team-season-ranks { grid-column: 2 / span 3; grid-row: 1; }
.team-playoff-results {
    display: grid;
    grid-column: 5 / span 2;
    grid-row: 1;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    background: var(--surface);
}
.team-playoff-results > div {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0.75rem 0.5rem;
    border-right: 1px solid var(--line);
    text-align: center;
}
.team-playoff-result--round-1 { grid-column: 1; }
.team-playoff-result--round-2 { grid-column: 2; }
.team-playoff-result--round-3 { grid-column: 3; }
.team-playoff-result--round-4 { grid-column: 4; }
.team-playoff-results > .team-playoff-result--last-partial { border-right: 0; }
.team-playoff-results span { color: var(--muted); font-size: 0.68rem; font-weight: 800; letter-spacing: 0.08em; }
.team-playoff-results strong { display: flex; align-items: center; gap: 0.3rem; font-size: 0.86rem; white-space: nowrap; }
.team-playoff-results abbr { text-decoration: none; }
.team-playoff-results img { width: 1.75rem; height: 1.75rem; flex: 0 0 1.75rem; object-fit: contain; }
.team-playoff-results .result-badge { min-width: 2.55rem; padding-inline: 0.35rem; }
.team-playoff-results a.result-badge { text-decoration: none; }
.team-playoff-results__empty {
    grid-column: 1 / -1;
    align-self: center;
    margin: 0;
    padding: 0.75rem 1rem;
    color: var(--muted);
    font-size: 0.82rem;
    text-align: left;
}
.team-season-summary .record-strip { border-top: 1px solid var(--line); border-radius: 0; background: var(--surface-soft); color: var(--ink); box-shadow: none; }
.team-season-summary .record-strip > div { padding: 0.75rem clamp(0.7rem, 1.5vw, 1rem); border-right-color: var(--line); }
.team-season-summary .record-strip span { color: var(--muted); }
.team-season-summary .record-strip strong { font-size: 1.1rem; }
.team-season-tabs { padding-top: clamp(2rem, 4vw, 3.5rem); }
.team-season-tabs__list {
    display: flex;
    gap: 0.3rem;
    overflow-x: auto;
    overflow-y: hidden;
    border-bottom: 1px solid var(--line);
    scrollbar-width: thin;
}
.team-season-tabs__list a {
    position: relative;
    flex: 0 0 auto;
    padding: 0.8rem 1rem;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 850;
    text-decoration: none;
}
.team-season-tabs__list a::after {
    position: absolute;
    right: 0.75rem;
    bottom: -1px;
    left: 0.75rem;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: transparent;
    content: "";
}
.team-season-tabs__list a:hover { color: var(--ink); }
.team-season-tabs__list a[aria-selected="true"] { color: var(--accent); }
.team-season-tabs__list a[aria-selected="true"]::after { background: var(--accent); }
.team-season-tabs__list a:focus-visible { border-radius: 0.25rem; outline: 2px solid var(--accent); outline-offset: -2px; }
.team-season-tabs--ready .team-season-tabs__panel[hidden] { display: none; }
.team-season-tabs__panel.detail-section,
.team-season-tabs__panel > .detail-section:first-child { padding-top: clamp(2rem, 4vw, 3.5rem); }
.team-season-tabs__panel:focus { outline: none; }
.team-season-tabs__panel:focus-visible { outline: 2px solid var(--accent); outline-offset: 0.4rem; }
.collection-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(18rem, 0.5fr);
    gap: clamp(2rem, 6vw, 5rem);
    align-items: end;
    padding: clamp(3rem, 8vw, 6rem) max(1rem, calc((100% - 76rem) / 2));
    background: linear-gradient(90deg, var(--navy), #123f47 52%, var(--navy));
    box-shadow: 0 0 0 100vmax var(--navy);
    clip-path: inset(0 -100vmax);
    color: #fff;
}
.collection-hero h1 { max-width: 15ch; margin: 0.25rem 0 1rem; font-size: clamp(2.5rem, 5vw, 4.75rem); line-height: 0.98; letter-spacing: -0.05em; }
.collection-hero p { max-width: 44rem; color: #c2d6dc; }
.collection-signin { margin-top: 1.5rem; }
.collection-hero__facts { display: grid; grid-template-columns: repeat(2, 1fr); margin: 0; border: 1px solid rgb(255 255 255 / 18%); border-radius: var(--radius); }
.collection-hero__facts div { display: flex; min-width: 0; flex-direction: column; padding: 1rem; }
.collection-hero__facts div:nth-child(odd) { border-right: 1px solid rgb(255 255 255 / 18%); }
.collection-hero__facts div:nth-child(n+3) { border-top: 1px solid rgb(255 255 255 / 18%); }
.collection-hero__facts dt { color: #9fbbc2; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.collection-hero__facts dd { margin: 0.2rem 0 0; font-size: 1.45rem; font-weight: 900; }
.collection-dashboard, .collection-history, .collection-history-page, .collection-introduction { padding: clamp(3rem, 6vw, 5rem) 0; }
.collection-history, .collection-introduction { border-top: 1px solid var(--line); }
.collection-history__actions, .collection-history-page__actions { display: flex; flex: 0 0 auto; align-items: center; gap: 1rem; }
.collection-history__actions > a, .collection-history-page__actions > a { color: var(--accent); font-size: 0.78rem; font-weight: 850; text-decoration: none; }
.collection-history__actions > a:hover, .collection-history-page__actions > a:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.collection-history-page__header { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 2rem; }
.collection-history-page__header h1 { margin: 0.2rem 0 0; font-size: clamp(2.5rem, 6vw, 5rem); line-height: 1; letter-spacing: -0.05em; }
.collection-history-page__header p:last-child { max-width: 38rem; margin-bottom: 0; color: var(--muted); }
.collection-pack { padding: 2rem 0; border-top: 1px solid var(--line); }
.collection-pack:first-of-type { border-top: 0; }
.collection-pack__heading { display: flex; align-items: end; justify-content: space-between; gap: 1.5rem; }
.collection-pack__heading h3 { margin: 0.2rem 0 0; color: var(--muted); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.015em; }
.collection-pack__facts { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.45rem 0.8rem; color: var(--muted); font-size: 0.72rem; }
.collection-pack__facts strong { color: var(--ink); }
.collection-pack__compact { margin-top: 1.5rem; }
.collection-pack__compact .roster-position-group { overflow: visible; border: 0; background: transparent; }
.collection-pack__compact .roster-position-group ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; }
.collection-pack__compact .roster-position-group li,
.collection-pack__compact .roster-position-group li:first-child { border: 1px solid var(--line); border-radius: 0.8rem; background: var(--surface); }
.collection-history [hidden], .collection-history-page [hidden] { display: none; }
.collection-progress-summary { display: grid; grid-template-columns: auto minmax(10rem, 1fr); gap: 1rem; align-items: center; margin: 1.5rem 0 2rem; }
.collection-progress-summary strong { color: var(--accent); font-size: 2rem; }
.collection-progress-summary progress { width: 100%; accent-color: var(--accent); }
.collection-checklists { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.collection-division-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    align-items: start;
}
.collection-division { min-width: 0; container-type: inline-size; }
.collection-division h3 {
    margin: 0 0 0.55rem;
    padding: 0 0.15rem 0.5rem;
    border-bottom: 2px solid var(--accent);
    font-size: 0.78rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}
.collection-division ul { display: grid; gap: 0.45rem; margin: 0; padding: 0; list-style: none; }
.collection-team-stat {
    display: grid;
    min-height: 4.25rem;
    grid-template-columns: 2.5rem minmax(0, 1fr) auto;
    gap: 0.6rem;
    align-items: center;
    padding: 0.6rem 0.7rem;
    border: 1px solid var(--line);
    border-radius: 0.75rem;
    background: var(--surface-soft);
    color: var(--ink);
    text-decoration: none;
}
.collection-team-stat:hover { border-color: var(--accent); background: var(--ice); }
.collection-team-stat img { width: 2.5rem; height: 2.5rem; object-fit: contain; }
.collection-team-stat__mark {
    display: grid;
    width: 2.5rem;
    height: 2.5rem;
    place-items: center;
    border-radius: 50%;
    background: var(--navy);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 900;
}
.collection-team-stat__copy { display: flex; min-width: 0; flex-direction: column; gap: 0.08rem; }
.collection-team-stat__name { overflow: hidden; color: var(--ink-strong); font-size: 0.77rem; text-overflow: ellipsis; white-space: nowrap; }
.collection-team-stat__name-short { display: none; }
.collection-team-stat__copy small { overflow: hidden; color: var(--muted); font-size: 0.64rem; text-overflow: ellipsis; white-space: nowrap; }
.collection-team-stat__percentage { color: var(--accent-strong); font-size: 0.78rem; }
.collection-division-grid__empty { grid-column: 1 / -1; color: var(--muted); }
@container (max-width: 15rem) {
    .collection-team-stat__name-full { display: none; }
    .collection-team-stat__name-short { display: inline; }
}
.collection-introduction > div { display: grid; grid-template-columns: 1fr 2fr; gap: 2rem; }
.collection-introduction h2 { max-width: 24ch; margin: 0; font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.05; }
.collection-introduction ol { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 2.5rem 0; padding: 0; list-style: none; }
.collection-introduction li { display: flex; flex-direction: column; gap: 0.4rem; border-top: 2px solid var(--accent); padding-top: 1rem; }
.collection-introduction li span, .collection-introduction > p { color: var(--muted); }
.collection-card-grid { display: grid; grid-template-columns: repeat(auto-fill, var(--collection-card-width)); gap: 1rem; justify-content: start; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.collection-card { overflow: hidden; min-width: 0; border: 1px solid var(--line); border-radius: 1rem; background: var(--surface); box-shadow: var(--shadow); }
.collection-card.is-owned { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); }
.collection-card > a { display: block; height: 100%; color: inherit; text-decoration: none; }
.collection-card > a:hover strong { color: var(--accent); }
.collection-card__image { display: grid; position: relative; aspect-ratio: 1; place-items: center; overflow: hidden; background: linear-gradient(155deg, var(--ice), var(--surface-soft)); }
.collection-card__image > img { width: 100%; height: 100%; object-fit: contain; }
.collection-card__fallback { color: var(--accent); font-size: 3rem; font-weight: 900; }
.collection-card.is-unowned .collection-card__image > img { opacity: 0.72; filter: grayscale(1); }
.collection-card__status { position: absolute; right: 0.65rem; bottom: 0.65rem; border-radius: 999px; padding: 0.3rem 0.55rem; background: rgb(7 25 35 / 82%); color: white; font-size: 0.62rem; font-weight: 850; letter-spacing: 0.06em; text-transform: uppercase; }
.collection-card__body { display: flex; min-width: 0; flex-direction: column; padding: 0.8rem 0.775rem; }
.collection-card__context { display: flex; align-items: center; gap: 0.4rem; color: var(--accent); font-size: 0.66rem; font-weight: 850; letter-spacing: 0.06em; text-transform: uppercase; }
.collection-card__context img { width: 1.35rem; height: 1.35rem; object-fit: contain; }
.collection-card__body > strong { overflow: hidden; margin-top: 0.35rem; line-height: 1.15; text-overflow: ellipsis; white-space: nowrap; }
.collection-card__body > strong[data-condensed="true"] { font-size: 0.825rem; }
.collection-card__body > small, .collection-card__acquired, .collection-card__meta { margin-top: 0.2rem; color: var(--muted); font-size: 0.7rem; }
.team-card-roster { margin-top: 1.5rem; }
.team-card-roster > h3 { margin: 0 0 1rem; font-size: 1.35rem; }
.team-card-core__columns { display: grid; grid-template-columns: repeat(3, max-content); align-items: start; column-gap: 2rem; }
.team-card-position { min-width: 0; }
.team-card-position h4, .team-card-rotation-group h4 { margin: 0 0 0.65rem; color: var(--muted); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; }
.team-card-units { display: flex; flex-direction: column; gap: 0.75rem; }
.team-card-unit, .team-card-rotation__list { margin: 0; padding: 0; list-style: none; }
.team-card-unit { display: grid; gap: 0.5rem; }
.team-card-unit--forwards { grid-template-columns: repeat(3, minmax(0, var(--collection-card-width))); }
.team-card-unit--defence { grid-template-columns: repeat(2, minmax(0, var(--collection-card-width))); }
.team-card-unit--goalies { grid-template-columns: minmax(0, var(--collection-card-width)); }
.team-card-roster--rotation { padding-top: 1.5rem; border-top: 1px solid var(--line); }
.team-card-rotation-group + .team-card-rotation-group { margin-top: 1.25rem; }
.team-card-rotation__list { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.team-card-rotation__list .collection-card { width: var(--collection-card-width); flex: 0 0 var(--collection-card-width); }
@media (max-width: 1560px) {
    .team-card-core__columns { grid-template-columns: repeat(3, minmax(0, var(--collection-card-width))); gap: 0.5rem; }
    .team-card-position--forwards { grid-column: span 3; }
    .team-card-position--defence { grid-column: span 2; }
    .team-card-position--goalies { grid-column: span 1; }
    .roster-unit.is-cards .roster-position-grid { grid-template-columns: repeat(3, minmax(0, var(--collection-card-width))); gap: 1.25rem 0.5rem; }
    .roster-unit.is-cards .roster-position-group:first-child { grid-column: span 3; }
    .roster-unit.is-cards .roster-position-group:has(> ol[data-position="D"]) { grid-column: span 2; }
}
@media (max-width: 760px) {
    .team-card-unit--forwards { grid-template-columns: repeat(2, minmax(0, var(--collection-card-width))); }
    .roster-unit.is-cards .roster-position-group ol[data-position="F"] { grid-template-columns: repeat(2, minmax(0, var(--collection-card-width))); }
}
@media (max-width: 620px) {
    .team-card-core__columns { display: block; }
    .team-card-position + .team-card-position { margin-top: 1.25rem; }
}
@media (max-width: 520px) {
    .team-card-unit--forwards,
    .team-card-unit--defence { grid-template-columns: minmax(0, var(--collection-card-width)); }
}
.player-detail-tabs { max-width: none; }

.record-strip { grid-template-columns: repeat(6, 1fr); }
.record-strip > div { text-align: center; }
.profile-facts { grid-template-columns: repeat(4, 1fr); gap: 1px; margin-bottom: 0; border: 1px solid var(--line); background: var(--line); color: var(--ink); box-shadow: none; }
.profile-facts > div { border: 0; background: var(--surface); }
.profile-facts span { color: var(--muted); }
.profile-facts strong { font-size: 1rem; }
.profile-facts a { color: inherit; text-decoration-color: var(--accent); text-underline-offset: 0.18em; }
.profile-facts .country-value { display: flex; align-items: center; gap: 0.45rem; }
.country-flag { width: 1.25rem; height: auto; flex: 0 0 auto; border: 1px solid var(--line); }
.player-name-with-flag { display: inline-flex; align-items: center; gap: 0.45rem; }
.profile-source-note { margin: 0.75rem 0 0; color: var(--muted); font-size: 0.78rem; text-align: right; }
.stats-table th:first-child { position: sticky; left: 0; z-index: 1; background: var(--surface); }
.stats-table thead th:first-child { z-index: 2; background: var(--surface-soft); }
.player-season-table--with-postseason { min-width: 78rem; }
.player-season-table .stat-group-heading { border-left: 2px solid var(--line); text-align: center; }
.player-season-table .stat-group-start, .player-season-table .stat-group-empty { border-left: 2px solid var(--line); }
.stats-table .team-player-context-end { border-right: 2px solid var(--line); }
.player-season-table .stat-group-empty { color: var(--muted); text-align: center; }
.stats-table .skater-position-group__heading th {
    position: static;
    border-block: 1px solid var(--strong-line);
    border-left: 0.22rem solid var(--accent);
    padding-block: 0.62rem;
    background: var(--surface-soft);
    color: var(--ink-strong);
    font-size: 0.82rem;
    font-weight: 850;
    letter-spacing: 0.065em;
    text-transform: uppercase;
}
.stats-table .skater-position-group__heading:hover { background: transparent; }
.player-season-cap-hit { font-variant-numeric: tabular-nums; white-space: nowrap; }
.player-season-event-row td { padding-left: 2rem; color: var(--muted); font-size: 0.88rem; }
.player-season-event-row td > span:first-child { color: var(--accent-strong); font-weight: 700; }
.player-season-event-detail { color: var(--ink); }
.player-season-table tbody th, .player-season-table tbody td { border-bottom-color: var(--player-season-row-line); }
.player-season-table tbody .player-season-row--highlight > * { background: var(--player-season-highlight); }
.player-season-table tbody tr:hover > * { background: var(--player-season-row-hover); }
.player-career-transactions { padding-bottom: clamp(4rem, 8vw, 7rem); }
.player-transaction-table { min-width: 56rem; }
.player-transaction-table th, .player-transaction-table td { text-align: left; }
.player-transaction-table th:first-child, .player-transaction-table td:first-child { width: 12rem; }
.player-transaction-table th:nth-child(2), .player-transaction-table td:nth-child(2) { width: 6rem; }
.player-transaction-table th:nth-child(3), .player-transaction-table td:nth-child(3) { width: 14rem; }
.player-transaction-detail { color: var(--muted); white-space: normal; }
.player-transaction-movement { white-space: nowrap; }
.compact-summary { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 5rem; }
.compact-summary p { max-width: 38rem; margin: 0; color: var(--muted); }

.internal-banner {
    display: flex;
    margin-top: clamp(1.5rem, 4vw, 3rem);
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    overflow: hidden;
    border: 1px solid #d66a55;
    border-radius: var(--radius);
    padding: clamp(1.25rem, 3vw, 2rem);
    background:
        linear-gradient(115deg, rgb(173 43 55 / 96%), rgb(94 21 34 / 98%)),
        var(--danger);
    box-shadow: 0 1.4rem 3.5rem rgb(94 21 34 / 18%);
    color: white;
}

.internal-banner h1 {
    max-width: none;
    font-size: clamp(2.25rem, 4vw, 3.75rem);
    letter-spacing: -0.045em;
}

.internal-banner p:last-child {
    max-width: 48rem;
    margin: 0.65rem 0 0;
    color: #ffe4df;
}

.internal-banner__label {
    margin: 0 0 0.6rem;
    color: #ffd2c8;
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.internal-banner__badge {
    flex: 0 0 auto;
    border: 1px solid rgb(255 255 255 / 42%);
    border-radius: 999px;
    padding: 0.65rem 0.9rem;
    background: rgb(255 255 255 / 12%);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.internal-dashboard-nav {
    display: flex;
    gap: 0.35rem;
    margin-top: 1rem;
    border-bottom: 1px solid var(--line);
}

.internal-dashboard-nav a {
    border-bottom: 3px solid transparent;
    padding: 0.75rem 1rem;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 800;
    text-decoration: none;
}

.internal-dashboard-nav a:hover {
    color: var(--ink);
}

.internal-dashboard-nav a[aria-current="page"] {
    border-bottom-color: var(--accent);
    color: var(--accent-strong);
}

.internal-player-card-picker { padding: clamp(3rem, 6vw, 5rem) 0 1rem; }
.internal-player-card-search { max-width: 42rem; justify-self: start; }
.internal-player-card-search input {
    border-color: var(--strong-line);
    background: var(--surface);
    color: var(--ink);
}
.internal-player-card-search input:focus { background: var(--surface); }
.internal-player-card-search input::placeholder { color: var(--muted); }
.internal-player-search-results { max-width: 42rem; margin-top: 1rem; }
.internal-player-card-preview { padding: clamp(2rem, 5vw, 4rem) 0 6rem; }
.internal-player-card-empty { margin: 2rem 0 6rem; }

.health-summary {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 1rem;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: 0 0.7rem 2rem rgb(7 25 35 / 4%);
}

.health-summary > div {
    padding: 1.25rem clamp(1rem, 2vw, 1.7rem);
    border-right: 1px solid var(--line);
}

.health-summary > div:last-child { border-right: 0; }
.health-summary span {
    display: block;
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.health-summary strong { display: block; margin-top: 0.25rem; font-size: 1.7rem; }

.internal-dashboard-intro {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 2rem;
    padding: clamp(3.5rem, 7vw, 6rem) 0 1.5rem;
}

.internal-dashboard-intro p:last-child {
    max-width: 34rem;
    margin: 0;
    color: var(--muted);
    font-size: 0.86rem;
    text-align: right;
}

.orchestration-history-filter { margin-top: 0.8rem; }
.orchestration-history-filter label { display: inline-flex; align-items: center; gap: 0.55rem; color: var(--muted); font-size: 0.78rem; font-weight: 800; cursor: pointer; }
.orchestration-history-filter input { position: absolute; opacity: 0; pointer-events: none; }
.orchestration-history-filter label > span { position: relative; width: 2.15rem; height: 1.2rem; flex: 0 0 auto; border: 1px solid var(--strong-line); border-radius: 999px; background: var(--surface-soft); transition: background 150ms ease, border-color 150ms ease; }
.orchestration-history-filter label > span::after { position: absolute; top: 0.14rem; left: 0.14rem; width: 0.78rem; height: 0.78rem; border-radius: 50%; background: var(--muted); content: ""; transition: background 150ms ease, transform 150ms ease; }
.orchestration-history-filter input:checked + span { border-color: var(--accent); background: var(--accent); }
.orchestration-history-filter input:checked + span::after { background: white; transform: translateX(0.92rem); }
.orchestration-history-filter input:focus-visible + span { outline: 3px solid var(--interactive-ring); outline-offset: 2px; }
.orchestration-history-filter noscript button { margin-left: 0.5rem; }

.feedback-inbox { display: grid; gap: 0.65rem; padding-bottom: clamp(4rem, 8vw, 7rem); }
.feedback-message { overflow: hidden; border: 1px solid var(--line); border-radius: 0.75rem; background: var(--surface); }
.feedback-message > summary { display: grid; grid-template-columns: minmax(9rem, 0.8fr) minmax(14rem, 2fr) auto; align-items: center; gap: 1rem; padding: 1rem 1.2rem; cursor: pointer; list-style: none; }
.feedback-message > summary::-webkit-details-marker { display: none; }
.feedback-message > summary::before { width: 0.55rem; height: 0.55rem; grid-column: 1; grid-row: 1; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); content: ""; transform: rotate(-45deg); }
.feedback-message[open] > summary::before { transform: rotate(45deg); }
.feedback-message__sender { grid-column: 1; grid-row: 1; margin-left: 1.1rem; overflow: hidden; text-overflow: ellipsis; font-weight: 800; white-space: nowrap; }
.feedback-message__preview { overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
.feedback-message time { color: var(--muted); font-size: 0.76rem; white-space: nowrap; }
.feedback-message__contents { border-top: 1px solid var(--line); padding: 1.2rem; background: var(--surface-soft); }
.feedback-message__contents > p { margin-bottom: 1.25rem; overflow-wrap: anywhere; color: var(--ink); }
.feedback-message__contents dl { display: grid; gap: 0.5rem; margin: 0; }
.feedback-message__contents dl div { display: grid; grid-template-columns: 8rem minmax(0, 1fr); gap: 0.75rem; }
.feedback-message__contents dt { color: var(--muted); font-size: 0.72rem; font-weight: 800; text-transform: uppercase; }
.feedback-message__contents dd { margin: 0; overflow-wrap: anywhere; }

.timeline-table-controls {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin: 1.5rem 0 0.75rem;
}
.timeline-table-controls[hidden] { display: none; }
.timeline-table-controls__filters { display: flex; align-items: end; gap: 1rem; }
.timeline-table-controls label {
    display: grid;
    gap: 0.35rem;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.timeline-table-controls input, .timeline-table-controls select {
    min-width: 13rem;
    border: 1px solid var(--line);
    border-radius: 0.5rem;
    padding: 0.55rem 0.65rem;
    background: var(--surface);
    color: var(--ink);
    font: inherit;
    letter-spacing: normal;
    text-transform: none;
}
.timeline-table-controls select { padding-right: 2rem; }
.timeline-table-controls select[multiple] {
    min-height: 7.5rem;
    padding-right: 0.65rem;
}
.timeline-table-controls__hint {
    max-width: 16rem;
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: normal;
    text-transform: none;
}
.timeline-table-controls p { margin: 0; color: var(--muted); font-size: 0.8rem; }
.timeline-table-scroll {
    position: relative;
    left: 50%;
    width: calc(100vw - 2rem);
    margin-left: calc(-50vw + 1rem);
}
.timeline-table { min-width: 88rem; }
.timeline-table th:first-child, .timeline-table td:first-child { text-align: left; }
.timeline-table th:not(:first-child), .timeline-table td:not(:first-child) { text-align: right; }
.timeline-table th button {
    border: 0;
    padding: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    font-weight: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
    cursor: pointer;
}
.timeline-table th button::after {
    display: inline-block;
    width: 0.9rem;
    margin-left: 0.25rem;
    content: "↕";
    opacity: 0.45;
}
.timeline-table th[aria-sort="ascending"] button::after {
    content: "↑";
    opacity: 1;
}
.timeline-table th[aria-sort="descending"] button::after {
    content: "↓";
    opacity: 1;
}
.timeline-table [data-timeline-empty] td { text-align: left; }
.timeline-pagination { margin-bottom: 5rem; }
.timeline-pagination[hidden] { display: none; }

.health-season-list { padding-bottom: clamp(4rem, 8vw, 7rem); }
.health-season-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: 0 0.7rem 2rem rgb(7 25 35 / 4%);
}
.health-season-card + .health-season-card { margin-top: 1.25rem; }

.health-season-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    border-bottom: 1px solid var(--line);
    padding: 1.35rem clamp(1.2rem, 3vw, 2rem);
    background: var(--surface-soft);
}
.health-season-card__header .kicker { margin-bottom: 0.3rem; }
.health-season-card__header h2 { display: inline; font-size: 1.7rem; }
.health-season-card__id { margin-left: 0.6rem; color: var(--muted); font-size: 0.72rem; }

.status-pill {
    display: inline-flex;
    min-height: 1.8rem;
    align-items: center;
    gap: 0.42rem;
    border-radius: 999px;
    padding: 0.32rem 0.62rem;
    font-size: 0.68rem;
    font-weight: 850;
    letter-spacing: 0.03em;
    white-space: nowrap;
}
.status-pill > span {
    width: 0.42rem;
    height: 0.42rem;
    border-radius: 50%;
    background: currentColor;
}
.status-pill--pass { background: var(--success-soft); color: var(--success); }
.status-pill--warning { background: var(--warning-soft); color: var(--warning); }
.status-pill--fail { background: var(--danger-soft); color: var(--danger); }
.status-pill--neutral { background: var(--neutral-soft); color: var(--neutral); }

.health-check-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--line);
}
.health-check {
    min-width: 0;
    border-top: 3px solid transparent;
    padding: 1.25rem clamp(1rem, 2vw, 1.5rem) 1.4rem;
    background: var(--surface);
}
.health-check--pass { border-top-color: var(--success); }
.health-check--warning { border-top-color: var(--warning); }
.health-check--fail { border-top-color: var(--danger); }
.health-check--neutral { border-top-color: var(--strong-line); }
.health-check__heading {
    display: flex;
    min-height: 2rem;
    align-items: start;
    justify-content: space-between;
    gap: 0.6rem;
}
.health-check h3 { margin: 0; font-size: 0.92rem; }
.health-check > strong { display: block; margin-top: 1.2rem; font-size: 1.55rem; letter-spacing: -0.035em; }
.health-check > p { margin: 0.35rem 0 0; color: var(--muted); font-size: 0.78rem; }

.reconciliation-panel {
    border-top: 1px solid var(--line);
    padding: clamp(1.25rem, 3vw, 2rem);
    background: var(--surface-soft);
}
.reconciliation-panel__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}
.reconciliation-panel__heading .kicker { margin-bottom: 0.25rem; }
.reconciliation-panel__heading h3 { margin: 0; }
.reconciliation-checks {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-top: 1.2rem;
}
.reconciliation-checks > div {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.75rem;
    border: 1px solid var(--line);
    border-radius: 0.7rem;
    padding: 0.8rem;
    background: var(--surface);
}
.reconciliation-checks > div > span:nth-child(2) { display: flex; min-width: 0; flex-direction: column; }
.reconciliation-checks strong { font-size: 0.82rem; }
.reconciliation-checks small { color: var(--muted); font-size: 0.7rem; }
.check-mark { width: 0.7rem; height: 0.7rem; border-radius: 50%; background: var(--neutral); }
.check-mark--pass { background: var(--success); }
.check-mark--warning { background: var(--warning); }
.check-mark--fail { background: var(--danger); }
.status-text { font-size: 0.67rem; font-style: normal; font-weight: 850; white-space: nowrap; }
.status-text--pass { color: var(--success); }
.status-text--warning { color: var(--warning); }
.status-text--fail { color: var(--danger); }
.reconciliation-panel__empty { margin: 1rem 0 0; color: var(--muted); font-size: 0.82rem; }

.empty-state { border: 1px dashed var(--strong-line); border-radius: var(--radius); padding: 2rem; background: var(--empty-surface); color: var(--muted); text-align: center; }
.empty-state p { margin: 0; }
.empty-state--large { margin: 3rem 0 6rem; padding: 5rem 2rem; }

.about-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(20rem, 0.8fr);
    align-items: center;
    gap: clamp(3rem, 8vw, 8rem);
    min-height: min(47rem, calc(100vh - 4.6rem));
    padding: clamp(4rem, 9vw, 8rem) 0;
}
.about-hero__copy h1 { max-width: 11ch; }
.about-hero__copy > p:not(.eyebrow) { max-width: 42rem; margin: 1.15rem 0 0; color: var(--muted); font-size: clamp(1rem, 1.6vw, 1.18rem); }
.about-hero__copy > h1 + p { margin-top: 1.5rem; color: var(--prose-ink); font-size: clamp(1.08rem, 2vw, 1.3rem); }
.about-hero__orbit {
    position: relative;
    width: min(32vw, 25rem);
    aspect-ratio: 1;
    justify-self: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: radial-gradient(circle, var(--ice) 0 31%, transparent 31.5%);
}
.about-hero__orbit::before,
.about-hero__orbit::after {
    position: absolute;
    border: 1px solid var(--line);
    border-radius: 50%;
    content: "";
}
.about-hero__orbit::before { inset: 15%; }
.about-hero__orbit::after { inset: 38%; background: var(--surface); box-shadow: var(--shadow); }
.about-hero__puck {
    position: absolute;
    z-index: 1;
    inset: 42%;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--navy);
    color: var(--accent-bright);
    font-size: clamp(0.62rem, 1vw, 0.85rem);
    font-weight: 900;
    letter-spacing: -0.04em;
}
.about-hero__label {
    position: absolute;
    z-index: 2;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.55rem 0.8rem;
    background: var(--surface);
    box-shadow: 0 0.7rem 1.8rem rgb(7 25 35 / 10%);
    color: var(--ink);
    font-size: clamp(0.68rem, 1vw, 0.82rem);
    font-weight: 850;
}
.about-hero__label--games { top: 6%; left: 17%; }
.about-hero__label--fantasy { top: 43%; right: -7%; }
.about-hero__label--cards { bottom: 4%; left: 19%; }

.about-story { padding-bottom: clamp(4rem, 9vw, 8rem); }
.about-story__opening {
    border-top: 1px solid var(--line);
    padding: clamp(4rem, 8vw, 7rem) 0;
}
.about-story__opening > div { max-width: 55rem; }
.about-story__opening h2 { max-width: 18ch; font-size: clamp(2.3rem, 5vw, 4.5rem); }
.about-story__opening div > p { max-width: 48rem; margin: 1rem 0 0; color: var(--prose-ink); font-size: clamp(1.05rem, 1.7vw, 1.2rem); }
.about-story__opening h2 + p { margin-top: 1.5rem; }
.about-story__chapters {
    display: grid;
    grid-template-columns: minmax(17rem, 0.8fr) minmax(0, 1.2fr);
    column-gap: clamp(3rem, 9vw, 9rem);
    padding: clamp(4rem, 8vw, 7rem) 0;
    background: var(--navy);
    box-shadow: 0 0 0 100vmax var(--navy);
    clip-path: inset(0 -100vmax);
    color: white;
}
.about-story__chapters header { grid-row: 1 / span 2; }
.about-story__chapters header h2 { max-width: 13ch; font-size: clamp(2.2rem, 4vw, 3.8rem); }
.about-story__chapters header > p { max-width: 31rem; margin: 0.75rem 0 0; color: #aac0c8; }
.about-story__number { display: block; margin-bottom: 1.25rem; color: var(--accent-bright); font-size: 0.7rem; font-weight: 850; letter-spacing: 0.1em; }
.about-story__chapter { display: grid; grid-template-columns: 2rem minmax(0, 1fr); gap: 1rem; border-top: 1px solid rgb(255 255 255 / 16%); padding: 1.6rem 0; }
.about-story__chapter:last-child { border-bottom: 1px solid rgb(255 255 255 / 16%); }
.about-story__chapter > span { padding-top: 0.15rem; color: var(--accent-bright); font-size: 0.7rem; font-weight: 850; letter-spacing: 0.1em; }
.about-story__chapter h3 { margin: 0; font-size: 1.25rem; }
.about-story__chapter p { max-width: 38rem; margin: 0.55rem 0 0; color: #aac0c8; }
.about-story__experience {
    display: grid;
    grid-template-columns: minmax(16rem, 0.75fr) minmax(0, 1.25fr);
    align-items: end;
    gap: clamp(3rem, 9vw, 9rem);
    padding: clamp(5rem, 10vw, 9rem) 0;
}
.about-story__experience h2 { max-width: 13ch; font-size: clamp(2.2rem, 4vw, 3.8rem); }
.about-story__experience-copy { max-width: 44rem; }
.about-story__experience-copy p { margin: 0; color: var(--prose-ink); font-size: clamp(1.05rem, 1.7vw, 1.2rem); }
.about-story__experience-copy p + p { margin-top: 1rem; }
.about-story__experience-copy p:last-child { color: var(--ink); font-weight: 800; }
.about-story__independent {
    max-width: 64rem;
    margin-left: auto;
    border-left: 0.3rem solid var(--accent-bright);
    padding: clamp(1.75rem, 4vw, 3rem);
    background: var(--surface);
    box-shadow: var(--shadow);
}
.about-story__independent h2 { max-width: 20ch; font-size: clamp(2rem, 4vw, 3.4rem); }
.about-story__independent > p { max-width: 48rem; margin: 0.65rem 0 0; color: var(--prose-ink); }
.about-story__independent h2 + p { margin-top: 1.15rem; }
.about-story__closing { display: flex; align-items: baseline; justify-content: space-between; gap: 2rem; margin-top: clamp(4rem, 8vw, 7rem); border-top: 1px solid var(--line); padding-top: 1.5rem; }
.about-story__closing p { margin: 0; color: var(--muted); }
.about-story__closing a { color: var(--ink); font-weight: 850; text-decoration: none; }
.about-story__closing a:hover { color: var(--accent); }

.about-products {
    margin-top: clamp(5rem, 10vw, 9rem);
    padding: clamp(4rem, 8vw, 7rem) 0;
    background: var(--navy);
    box-shadow: 0 0 0 100vmax var(--navy);
    clip-path: inset(0 -100vmax);
    color: white;
}
.about-section-heading { display: grid; grid-template-columns: 1.15fr 0.85fr; align-items: end; gap: 3rem; }
.about-section-heading h2 { max-width: 13ch; font-size: clamp(2rem, 3.6vw, 3.25rem); }
.about-section-heading > p { max-width: 34rem; margin: 0; color: #aac0c8; font-size: 1.08rem; }
.about-products__grid { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: clamp(3rem, 6vw, 5rem); border-top: 1px solid rgb(255 255 255 / 16%); }
.about-products__grid article { display: flex; min-width: 0; flex-direction: column; padding: 2rem 2rem 0 0; }
.about-products__grid article + article { border-left: 1px solid rgb(255 255 255 / 16%); padding-left: 2rem; }
.about-products__number { color: var(--accent-bright); font-size: 0.7rem; font-weight: 850; letter-spacing: 0.12em; }
.about-products__label { margin: 2.4rem 0 0.35rem; color: #8faab3; font-size: 0.7rem; font-weight: 850; letter-spacing: 0.12em; text-transform: uppercase; }
.about-products__grid h3 { max-width: 14ch; margin: 0; font-size: clamp(1.5rem, 2.5vw, 2.15rem); }
.about-products__grid h3 + p { margin: 1rem 0 1.5rem; color: #aac0c8; }
.about-products__grid a { margin-top: auto; color: white; font-size: 0.84rem; font-weight: 850; text-decoration: none; }
.about-products__grid a:hover { color: var(--accent-bright); }

.about-loop { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(28rem, 1.1fr); gap: clamp(3rem, 8vw, 8rem); padding: clamp(5rem, 10vw, 9rem) 0; }
.about-loop__statement { align-self: center; }
.about-loop__statement h2 { max-width: 15ch; font-size: clamp(1.95rem, 3.35vw, 3rem); }
.about-loop__statement > p:last-child { max-width: 34rem; margin: 1.25rem 0 0; color: var(--muted); font-size: 1.05rem; }
.about-loop__steps { margin: 0; padding: 0; list-style: none; }
.about-loop__steps li { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 1rem; border-top: 1px solid var(--line); padding: 1.35rem 0; }
.about-loop__steps li:last-child { border-bottom: 1px solid var(--line); }
.about-loop__steps li > span { display: grid; width: 2rem; height: 2rem; place-items: center; border-radius: 50%; background: var(--ice); color: var(--accent); font-size: 0.74rem; font-weight: 900; }
.about-loop__steps strong { display: block; font-size: 1.08rem; }
.about-loop__steps p { margin: 0.2rem 0 0; color: var(--muted); }

.about-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    margin-bottom: clamp(4rem, 8vw, 7rem);
    border-radius: var(--radius);
    padding: clamp(2rem, 5vw, 4rem);
    background: linear-gradient(125deg, #07343c, var(--navy));
    color: white;
    box-shadow: var(--shadow);
}
.about-cta h2 { max-width: 18ch; font-size: clamp(1.7rem, 2.8vw, 2.5rem); }
.about-cta div > p:last-child { max-width: 42rem; margin: 0.9rem 0 0; color: #aac0c8; }
.about-cta > .button,
.about-cta__form { flex: 0 0 auto; }
.about-cta__form { margin: 0; }
.about-cta .button { min-width: 11rem; padding: 0.85rem 1.25rem; }

.content-sheet { width: min(54rem, 100%); margin: clamp(2rem, 4vw, 3.5rem) auto; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 5vw, 3.5rem); background: var(--surface); box-shadow: var(--shadow); }
.page-header { border-bottom: 1px solid var(--line); padding-bottom: 1.75rem; }
.page-header h1 { font-size: clamp(2.25rem, 4vw, 3.75rem); letter-spacing: -0.045em; }
.page-header .lede { margin-top: 0.65rem; font-size: clamp(0.98rem, 1.4vw, 1.12rem); }
.prose { padding-top: 1.5rem; }
.prose h2 { margin: 2rem 0 0.5rem; }
.prose p { color: var(--prose-ink); }
.faq-index { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-bottom: 2.25rem; }
.faq-index a { border: 1px solid var(--line); border-radius: 999px; padding: 0.45rem 0.75rem; color: var(--ink); font-size: 0.8rem; font-weight: 800; text-decoration: none; }
.faq-index a:hover { border-color: var(--accent); color: var(--accent); }
.faq-section { scroll-margin-top: 6rem; }
.faq-section h2 { margin-bottom: 0.8rem; }
.faq-section details { border-top: 1px solid var(--line); }
.faq-section details:last-child { border-bottom: 1px solid var(--line); }
.faq-section summary { position: relative; cursor: pointer; padding: 1rem 2rem 1rem 0; color: var(--ink); font-weight: 850; list-style: none; }
.faq-section summary::-webkit-details-marker { display: none; }
.faq-section summary::after { position: absolute; top: 0.95rem; right: 0.2rem; content: "+"; color: var(--accent); font-size: 1.25rem; line-height: 1; }
.faq-section details[open] summary::after { content: "−"; }
.faq-section details p { margin: 0 0 1rem; }
.faq-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; margin-top: 2.5rem; border-radius: var(--radius-small); padding: 1rem; background: var(--ice); }
.faq-actions p { flex: 1 1 15rem; margin: 0; color: var(--ink); font-weight: 800; }
.error-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.site-footer { display: flex; width: min(92rem, calc(100% - clamp(2rem, 7vw, 7rem))); margin: 0 auto; align-items: center; justify-content: space-between; gap: 2rem; border-top: 1px solid var(--line); padding: 2rem 0; color: var(--muted); font-size: 0.84rem; }
.site-footer p { display: flex; flex-direction: column; margin: 0; }
.site-footer strong { color: var(--ink); }
.site-footer nav { display: flex; gap: 1rem; }
.site-footer a { color: var(--muted); text-decoration: none; }

@media (max-width: 1100px) {
    .site-header { padding-inline: 1rem; }
    .site-nav {
        grid-template-columns: auto minmax(0, 1fr);
        gap: 0.7rem 1rem;
        padding: 0.7rem 0 0.8rem;
    }
    .site-search { grid-column: 1 / -1; grid-row: 2; }
    .site-links { grid-column: 2; grid-row: 1; }
}

@media (max-width: 980px) {
    .site-header { padding-inline: 1rem; }
    .site-nav {
        grid-template-columns: auto minmax(0, 1fr);
        gap: 0.7rem 1rem;
        padding: 0.7rem 0 0.8rem;
    }
    .site-search { grid-column: 1 / -1; grid-row: 2; }
    .site-links { grid-column: 2; grid-row: 1; }
    .roster-position-grid { grid-template-columns: 1fr; }
    .roster-points-toolbar { align-items: flex-start; flex-wrap: wrap; }
    .roster-points-toolbar > div:first-child { flex-basis: 100%; }
    .roster-hero--with-score, .fantasy-results__heading { align-items: stretch; flex-direction: column; }
    .roster-hero__metrics { width: 100%; }
    .roster-hero__score { width: auto; min-width: 0; flex: 1 1 0; text-align: left; }
    .fantasy-day-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .roster-draft-bar { align-items: stretch; flex-direction: column; }
    .season-grid { grid-template-columns: repeat(3, 1fr); }
    .team-grid { grid-template-columns: repeat(2, 1fr); }
    .collection-division-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .collection-pack__compact .roster-position-group ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .leaders-grid { grid-template-columns: 1fr; }
    .optional-column { display: none; }
    .standings-column--secondary { display: none; }
    .game-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .game-insight-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .game-summary-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .game-summary-grid > div { border-bottom: 1px solid var(--line); }
    .game-summary-grid > div:nth-child(3n) { border-right: 0; }
    .game-summary-grid > div:nth-last-child(-n+3) { border-bottom: 0; }
    .player-game-row { grid-template-columns: minmax(7rem, 0.7fr) minmax(6rem, 0.6fr) minmax(15rem, 1.7fr); }
    .about-hero { grid-template-columns: minmax(0, 1.35fr) minmax(17rem, 0.65fr); gap: 3rem; }
    .about-story__chapters { column-gap: 3rem; }
    .about-section-heading { grid-template-columns: 1fr; gap: 1.5rem; }
    .about-loop { gap: 3rem; }
    .playoff-bracket {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: none;
        gap: 0.65rem;
        overflow: visible;
        background: var(--surface);
    }
    .team-season-summary__header--playoffs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .team-season-summary__header--playoffs .season-switcher--summary,
    .team-season-summary__header--playoffs .team-season-ranks { grid-column: span 1; }
    .team-season-summary__header--playoffs .team-playoff-results { grid-column: 1 / -1; grid-row: 2; border-top: 1px solid var(--line); border-right: 0; }
    .bracket-heading, .bracket-series {
        grid-column: auto !important;
        grid-row: auto !important;
    }
    .bracket-heading {
        grid-column: 1 / -1 !important;
        margin: 1rem 0 0;
        text-align: left;
    }
    .bracket-heading--west-r1 { order: 1; }
    .bracket-series--west-r1 { order: 2; }
    .bracket-heading--west-r2 { order: 3; }
    .bracket-series--west-r2 { order: 4; }
    .bracket-heading--west-final { order: 5; }
    .bracket-series--west-final { order: 6; }
    .bracket-heading--cup-final { order: 7; }
    .bracket-series--cup-final { order: 8; grid-column: 1 / -1 !important; }
    .bracket-heading--east-r1 { order: 9; }
    .bracket-series--east-r1 { order: 10; }
    .bracket-heading--east-r2 { order: 11; }
    .bracket-series--east-r2 { order: 12; }
    .bracket-heading--east-final { order: 13; }
    .bracket-series--east-final { order: 14; }
    .bracket-connector { display: none; }
    .health-check-grid { grid-template-columns: repeat(2, 1fr); }
    .reconciliation-checks { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
    body { padding-bottom: calc(4.7rem + env(safe-area-inset-bottom)); }
    html.mobile-menu-open { overflow: hidden; }
    .mobile-nav {
        position: fixed;
        z-index: 50;
        right: 0;
        bottom: 0;
        left: 0;
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        border-top: 1px solid var(--line);
        padding: 0.4rem max(0.45rem, env(safe-area-inset-right)) calc(0.4rem + env(safe-area-inset-bottom)) max(0.45rem, env(safe-area-inset-left));
        background: color-mix(in srgb, var(--surface) 94%, transparent);
        box-shadow: 0 -0.8rem 2.4rem rgb(7 25 35 / 12%);
        backdrop-filter: blur(1rem);
    }
    .mobile-nav > a,
    .mobile-more > summary {
        position: relative;
        z-index: 2;
        display: flex;
        min-height: 3.55rem;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 0.18rem;
        border-radius: 0.75rem;
        color: var(--muted);
        font-size: 0.62rem;
        font-weight: 800;
        line-height: 1;
        text-decoration: none;
        cursor: pointer;
        list-style: none;
    }
    .mobile-more > summary::-webkit-details-marker { display: none; }
    .mobile-nav > a svg,
    .mobile-more > summary svg {
        width: 1.35rem;
        height: 1.35rem;
        fill: none;
        stroke: currentColor;
        stroke-linecap: round;
        stroke-linejoin: round;
        stroke-width: 1.8;
    }
    .mobile-nav > a[aria-current="page"],
    .mobile-more.is-current > summary,
    .mobile-more[open] > summary { background: var(--ice); color: var(--accent-strong); }
    .mobile-nav > a:focus-visible,
    .mobile-more > summary:focus-visible { outline: 3px solid var(--interactive-ring); outline-offset: -2px; }
    .mobile-more__backdrop {
        position: fixed;
        z-index: 1;
        inset: 0;
        border: 0;
        padding: 0;
        background: rgb(7 25 35 / 48%);
        cursor: default;
    }
    .mobile-more__panel {
        position: fixed;
        z-index: 3;
        right: 0.75rem;
        bottom: calc(4.7rem + env(safe-area-inset-bottom));
        left: 0.75rem;
        overflow: auto;
        max-height: min(35rem, calc(100vh - 6rem));
        border: 1px solid var(--line);
        border-radius: 1.15rem;
        padding: 1rem;
        background: var(--surface);
        color: var(--ink);
        box-shadow: 0 1.5rem 4rem rgb(0 0 0 / 32%);
    }
    .mobile-more__heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
    .mobile-more__heading > div { display: flex; flex-direction: column; }
    .mobile-more__heading small { color: var(--muted); font-size: 0.65rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
    .mobile-more__heading strong { font-size: 1.2rem; }
    .mobile-more__heading button {
        display: grid;
        width: 2.35rem;
        height: 2.35rem;
        place-items: center;
        border: 1px solid var(--line);
        border-radius: 50%;
        background: var(--surface-soft);
        color: var(--ink);
        cursor: pointer;
        font-size: 1.3rem;
        line-height: 1;
    }
    .mobile-more__links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.55rem; margin-top: 1rem; }
    .mobile-more__links a {
        display: flex;
        min-height: 3.15rem;
        align-items: center;
        justify-content: space-between;
        gap: 0.5rem;
        border: 1px solid var(--line);
        border-radius: 0.75rem;
        padding: 0.7rem 0.8rem;
        background: var(--surface-soft);
        color: var(--ink);
        font-size: 0.82rem;
        font-weight: 800;
        text-decoration: none;
    }
    .mobile-more__links a[aria-current="page"] { border-color: var(--accent); background: var(--ice); color: var(--accent-strong); }
    .mobile-more__links a span { color: var(--accent); }
    .mobile-more__utilities { display: flex; align-items: end; justify-content: space-between; gap: 0.75rem; margin-top: 1rem; border-top: 1px solid var(--line); padding-top: 1rem; }
    .mobile-more__utilities > a { color: var(--accent); font-size: 0.8rem; font-weight: 800; text-decoration: none; }
    .mobile-more__signin { margin: 0; }
    .mobile-more__signin .button { min-height: 2.65rem; padding: 0.55rem 0.85rem; }
    .mobile-more__language { display: flex; align-items: center; gap: 0.5rem; margin: 0; }
    .mobile-more__language label { color: var(--muted); font-size: 0.7rem; font-weight: 750; }
    .mobile-more__language select { border: 1px solid var(--strong-line); border-radius: 0.5rem; padding: 0.5rem; background: var(--surface); color: var(--ink); }
    .site-links > a,
    .site-links > .inline-form,
    .site-links > .language-picker { display: none; }
    .roster-view-switcher { display: none; }
    .roster-view-switcher:has(input[value="cards"]) { display: inline-flex; }
    .roster-view-switcher:has(input[value="cards"]) label:has(input[value="formation"]) { display: none; }
    .roster-view-switcher:has(input[value="cards"]) label:has(input[value="list"]) { border-left: 0; }
    .account-page__grid { grid-template-columns: 1fr; }
    .account-panel--danger-summary { grid-template-columns: 1fr; }
    .account-panel--danger-summary .button { justify-self: start; }
    .home-account-summary { grid-template-columns: 1fr; }
    .home-account-summary__fantasy header { align-items: flex-start; flex-direction: column; gap: 0.35rem; }
    .home-account-summary__fantasy h1 { max-width: 100%; text-align: left; }
    .home-account-summary__metrics { grid-template-columns: 1fr; }
    .home-account-summary__metrics > a { padding: 0.75rem 0; }
    .home-account-summary__metrics > a + a { border-top: 1px solid var(--line); border-left: 0; padding-left: 0; }
    .home-account-summary__collection { border-top: 1px solid var(--line); border-left: 0; }
    .home-public-summary { grid-template-columns: 1fr; }
    .home-public-summary__fantasy { padding-right: 0; }
    .home-public-summary__fantasy header { display: flex; align-items: flex-start; flex-direction: column; gap: 0.5rem; }
    .home-public-summary__fantasy h1 { grid-column: auto; }
    .home-public-summary__fantasy-kicker--desktop { display: none; }
    .home-public-summary__fantasy-kicker--mobile { display: block; margin: 0; }
    .home-public-summary__fantasy-details { display: block; margin-top: 1.15rem; }
    .home-public-summary__fantasy-copy > p { margin-top: 0.75rem; }
    .home-public-summary__collection { margin-top: 2rem; border-top: 0; border-left: 0; padding: 0; }
    .roster-hero__metrics { flex-direction: column; }
    .roster-hero__score { width: 100%; }
    .fantasy-hero { grid-template-columns: 1fr; gap: 2rem; }
    .fantasy-loop > div { grid-template-columns: 1fr; }
    .fantasy-loop ol { grid-template-columns: 1fr; gap: 1.4rem; }
    .fantasy-loop li + li { margin-left: 0; }
    .starter-pack-hero, .starter-pack-sealed { grid-template-columns: 1fr; }
    .roster-unit--active.is-formation .roster-position-grid { grid-template-columns: 1fr; }
    .roster-unit--active.is-formation .roster-position-group:first-child,
    .roster-unit--active.is-formation .roster-position-group:has(> ol[data-position="D"]) { grid-column: auto; }
    .roster-unit.is-cards .roster-position-grid { display: block; }
    .roster-unit.is-cards .roster-position-group + .roster-position-group { margin-top: 1.25rem; }
    .roster-unit.is-cards .roster-position-group ol[data-position="F"],
    .roster-unit.is-cards .roster-position-group ol[data-position="D"],
    .roster-unit.is-cards .roster-position-group ol[data-position="G"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .roster-unit--active.is-cards .roster-position-group ol[data-position="D"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .roster-unit--active.is-cards .roster-position-group ol[data-position="D"] li:nth-child(odd) { grid-column: 1; }
    .roster-unit--active.is-cards .roster-position-group ol[data-position="D"] li:nth-child(even) { grid-column: 2; }
    .roster-unit.is-cards .roster-position-group li { width: 100%; }
    .roster-cap-summary { grid-template-columns: 1fr; }
    .roster-cap-summary > div + div { border-top: 1px solid var(--line); border-left: 0; }
    .fantasy-day-grid { grid-template-columns: 1fr; }
    .collection-pack__compact .roster-position-group ol { grid-template-columns: minmax(0, 1fr); }
    .roster-status { align-items: stretch; flex-direction: column; }
    .roster-status > .button, .roster-status > form .button { width: 100%; }
    .roster-locked-view-controls, .roster-stats-table__heading { align-items: stretch; flex-direction: column; }
    main { width: min(100% - 1.5rem, 92rem); }
    .site-header { padding: 0 0.75rem; }
    .site-nav {
        min-height: 4rem;
        grid-template-columns: auto minmax(0, 1fr);
        gap: 0.65rem 1rem;
        padding: 0.7rem 0 0.8rem;
    }
    .site-search { grid-column: 1 / -1; grid-row: 2; }
    .site-links { gap: 0.8rem; font-size: 0.84rem; }
    .dashboard-hero { grid-template-columns: 1fr; align-items: start; gap: 2rem; padding-top: 3rem; }
    .dashboard-hero h1 { font-size: clamp(2.8rem, 15vw, 4.5rem); }
    .dashboard-hero--compact { padding-top: 2rem; }
    .dashboard-hero--compact h1 { font-size: clamp(2.25rem, 10vw, 3.25rem); }
    .season-switcher { width: 100%; }
    .season-facts { grid-template-columns: repeat(2, 1fr); }
    .season-facts > div:nth-child(2) { border-right: 0; }
    .season-facts > div:nth-child(4) { border-right: 0; }
    .season-facts > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
    .season-switcher--facts {
        grid-column: 1 / -1;
        border-top: 1px solid var(--line);
        border-left: 0;
    }
    .section-heading { align-items: start; flex-direction: column; gap: 0.7rem; }
    .section-note { text-align: left; }
    .team-name-full { display: none; }
    .team-name-short { display: inline; }
    .standings-column--tertiary { display: none; }
    .data-table th, .data-table td { padding: 0.68rem 0.58rem; }
    .player-season-table {
        -webkit-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }
    .player-season-table tbody th,
    .player-season-table tbody td {
        font-size: 0.84rem;
        line-height: 1.35;
    }
    .player-season-table .player-season-event-row td {
        padding-left: 1rem;
        font-size: 0.78rem;
        line-height: 1.4;
    }
    .game-card-grid, .game-insight-grid { grid-template-columns: 1fr; }
    .game-filters { align-items: stretch; flex-direction: column; }
    .game-filters label { min-width: 0; border-right: 0; border-bottom: 1px solid var(--line); }
    .game-filters > a { align-self: stretch; margin: 0.8rem 1rem; text-align: center; }
    .game-filters__season { min-width: 0 !important; margin-left: 0; border-bottom: 0 !important; border-left: 0; }
    .date-navigation { grid-template-columns: 1fr; gap: 0.5rem; }
    .date-navigation a, .date-navigation a:last-child { text-align: center; }
    .game-scoreboard { gap: 0.5rem; padding: 1rem 0.7rem; }
    .game-scoreboard > a, .game-scoreboard > a:last-child {
        display: flex;
        flex-direction: column;
        gap: 0.35rem;
        text-align: center;
    }
    .game-scoreboard > a:last-child img,
    .game-scoreboard > a:last-child span,
    .game-scoreboard > a:last-child strong { grid-column: auto; grid-row: auto; }
    .game-scoreboard img { width: 3.3rem; height: 3.3rem; }
    .game-scoreboard a span { overflow: hidden; max-width: 8rem; font-size: 0.72rem; text-overflow: ellipsis; white-space: nowrap; }
    .team-comparison > div { grid-template-columns: 1fr minmax(7rem, 1.2fr) 1fr; padding-inline: 0.65rem; }
    .game-lineups { grid-template-columns: 1fr; }
    .game-lineup-units { grid-template-columns: 1fr; }
    .game-lineup-unit--forward, .game-lineup-unit--forward_rotation,
    .game-lineup-unit--defense, .game-lineup-unit--defense_rotation { grid-column: auto; }
    .game-lineup-unit--forward .game-lineup-unit__players,
    .game-lineup-unit--forward_rotation .game-lineup-unit__players { grid-template-columns: 1fr; }
    .game-lineup-unit--forward .game-lineup-player + .game-lineup-player,
    .game-lineup-unit--forward_rotation .game-lineup-player + .game-lineup-player { border-top: 1px solid var(--line); border-left: 0; }
    .player-game-row { grid-template-columns: 1fr auto; gap: 0.65rem; }
    .player-game-row__stats { grid-column: 1 / -1; text-align: left; }
    .about-hero { min-height: 0; grid-template-columns: 1fr; gap: 3.5rem; padding: 3.5rem 0 4.5rem; }
    .about-hero__orbit { width: min(82vw, 21rem); }
    .about-hero__label--fantasy { right: 0; }
    .about-story__chapters { grid-template-columns: 1fr; gap: 2.5rem; }
    .about-story__chapters header { grid-row: auto; }
    .about-story__experience { grid-template-columns: 1fr; align-items: start; gap: 1.5rem; }
    .about-story__independent { margin-left: 0; }
    .about-story__closing { align-items: flex-start; flex-direction: column; gap: 0.75rem; }
    .about-products__grid { grid-template-columns: 1fr; }
    .about-products__grid article { padding: 2rem 0; }
    .about-products__grid article + article { border-top: 1px solid rgb(255 255 255 / 16%); border-left: 0; padding-left: 0; }
    .about-products__label { margin-top: 1.5rem; }
    .about-loop { grid-template-columns: 1fr; gap: 2.5rem; }
    .about-cta { align-items: stretch; flex-direction: column; gap: 2rem; }
    .about-cta .button { width: 100%; }
    .season-grid { grid-template-columns: repeat(2, 1fr); }
    .team-grid { grid-template-columns: 1fr; }
    .collection-division-grid { grid-template-columns: minmax(0, 1fr); }
    .entity-hero { align-items: start; }
    .entity-mark, .player-monogram { width: 5rem; }
    .team-season-summary__header { grid-template-columns: 1fr; }
    .team-season-summary__header--playoffs .season-switcher--summary,
    .team-season-summary__header--playoffs .team-playoff-results,
    .team-season-summary__header--playoffs .team-season-ranks { grid-column: 1; grid-row: auto; }
    .team-season-summary__header--playoffs .season-switcher--summary { order: 1; }
    .team-season-summary__header--playoffs .team-season-ranks { order: 2; }
    .team-season-summary__header--playoffs .team-playoff-results { order: 3; }
    .team-season-ranks > div { padding: 0.7rem; }
    .team-season-ranks span {
        overflow: visible;
        font-size: 0.61rem;
        letter-spacing: 0.04em;
        text-overflow: clip;
        white-space: normal;
    }
    .season-switcher--summary {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }
    .season-switcher--inverse { width: 100%; }
    .record-strip { grid-template-columns: repeat(3, 1fr); }
    .record-strip > div:nth-child(3) { border-right: 0; }
    .record-strip > div:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
    .profile-facts { grid-template-columns: repeat(2, 1fr); }
    .compact-summary { align-items: start; flex-direction: column; }
    .collection-hero { grid-template-columns: 1fr; }
    .collection-checklists { grid-template-columns: 1fr; }
    .collection-history-page__header, .collection-pack__heading { align-items: flex-start; flex-direction: column; }
    .collection-history__actions, .collection-history-page__actions { align-items: flex-start; flex-direction: column; }
    .collection-pack__facts { justify-content: flex-start; }
    .collection-introduction > div { grid-template-columns: 1fr; }
    .collection-introduction ol { grid-template-columns: 1fr; }
    .internal-banner, .internal-dashboard-intro { align-items: flex-start; flex-direction: column; }
    .internal-banner__badge { align-self: flex-start; }
    .health-summary { grid-template-columns: repeat(2, 1fr); }
    .health-summary > div:nth-child(2) { border-right: 0; }
    .health-summary > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
    .internal-dashboard-intro p:last-child { text-align: left; }
    .feedback-message > summary { grid-template-columns: minmax(0, 1fr) auto; gap: 0.3rem 1rem; }
    .feedback-message__sender { grid-column: 1; }
    .feedback-message__preview { grid-column: 1 / -1; grid-row: 2; margin-left: 1.1rem; }
    .feedback-message time { grid-column: 2; grid-row: 1; }
    .feedback-message__contents dl div { grid-template-columns: 1fr; gap: 0.1rem; }
    .timeline-table-controls { align-items: stretch; flex-direction: column; }
    .timeline-table-controls__filters { align-items: stretch; flex-direction: column; }
    .timeline-table-controls input, .timeline-table-controls select { width: 100%; min-width: 0; }
    .timeline-table-scroll { width: calc(100vw - 1rem); margin-left: calc(-50vw + 0.5rem); }
    .health-season-card__header, .reconciliation-panel__heading { align-items: flex-start; flex-direction: column; gap: 0.8rem; }
    .health-check-grid { grid-template-columns: 1fr; }
    .playoff-bracket { grid-template-columns: 1fr; }
    .bracket-series--cup-final { grid-column: auto !important; }
    .search-page-results { grid-template-columns: 1fr; }
    .site-footer { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 520px) {
    .site-nav { grid-template-columns: minmax(0, 1fr) auto; }
    .site-brand { grid-column: 1; grid-row: 1; }
    .site-links {
        grid-column: 2;
        grid-row: 1;
        width: auto;
        justify-content: flex-end;
        justify-self: end;
    }
    .site-search { grid-column: 1 / -1; grid-row: 2; }
    .account-menu__name { display: none; }
}

@media (max-width: 430px) {
    .collection-card-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.5rem;
    }
    .team-card-unit--forwards,
    .team-card-unit--defence,
    .team-card-unit--goalies { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .team-card-rotation__list { gap: 0.5rem; }
    .team-card-rotation__list .collection-card {
        width: calc((100% - 1rem) / 3);
        flex-basis: calc((100% - 1rem) / 3);
    }
    .collection-card { border-radius: 0.7rem; }
    .collection-card__fallback { font-size: 1.8rem; }
    .collection-card__status {
        right: 0.35rem;
        bottom: 0.35rem;
        padding: 0.22rem 0.35rem;
        font-size: 0.5rem;
        letter-spacing: 0.03em;
    }
    .collection-card__body { padding: 0.55rem 0.5rem; }
    .collection-card__context {
        gap: 0.25rem;
        font-size: 0.55rem;
        letter-spacing: 0.03em;
    }
    .collection-card__context img { width: 1rem; height: 1rem; }
    .collection-card__context span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .collection-card__body > strong { margin-top: 0.25rem; font-size: 0.7rem; }
    .collection-card__body > strong[data-condensed="true"] { font-size: 0.625rem; }
    .collection-card__body > small,
    .collection-card__acquired,
    .collection-card__meta { margin-top: 0.15rem; font-size: 0.6rem; }
    .roster-unit.is-cards .roster-position-group li { border-radius: 0.7rem; }
    .roster-unit.is-cards .roster-player-card__image { font-size: 1.8rem; }
    .roster-unit.is-cards .roster-player-card__body { padding: 0.55rem 0.5rem; }
    .roster-unit.is-cards .roster-player-card__name { margin-top: 0.25rem; font-size: 0.7rem; }
    .roster-unit.is-cards .roster-player-card__details > small,
    .roster-unit.is-cards .roster-player-card__footer .collection-card__meta { margin-top: 0.15rem; font-size: 0.6rem; }
    .roster-unit.is-cards .roster-player-card__fpr { padding: 0.14rem 0.3rem; font-size: 0.5rem; }
    .roster-unit.is-cards .roster-player-card__fpr b { font-size: 0.62rem; }
    .roster-unit.is-cards .roster-player-card__opponent,
    .roster-unit.is-cards .roster-player-card__opponent b { font-size: 0.52rem; }
    .roster-unit.is-cards .roster-player-card__opponent img { width: 0.9rem; height: 0.9rem; }
    .roster-unit.is-cards .roster-position-group > ol > li > .roster-slot { top: 0.35rem; left: 0.35rem; min-width: 1.8rem; height: 1.15rem; font-size: 0.52rem; }
    .site-links { gap: 0.65rem; }
    .season-grid { grid-template-columns: 1fr; }
    .season-grid > a { min-height: 9rem; }
    .entity-hero { grid-template-columns: 1fr; }
}

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

/* Internal orchestration execution tree */
.orchestration-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(18rem, 24rem);
    gap: clamp(1rem, 2.5vw, 2rem);
    align-items: start;
}
.orchestration-history { padding-bottom: clamp(4rem, 8vw, 7rem); }
.orchestration-queue {
    position: sticky;
    top: 1rem;
    margin: 0.65rem 0 4rem;
    border: 1px solid var(--line);
    border-radius: 0.8rem;
    padding: 1rem;
    background: var(--surface-soft);
}
.orchestration-queue > header { display: flex; align-items: start; justify-content: space-between; gap: 1rem; }
.orchestration-queue .eyebrow { margin: 0 0 0.15rem; }
.orchestration-queue h2 { margin: 0; font-size: 1.15rem; }
.orchestration-queue__clock { margin: 0.7rem 0 0; color: var(--muted); font-size: 0.72rem; }
.orchestration-queue ol { display: grid; gap: 0.55rem; margin: 1rem 0; padding: 0; list-style: none; }
.orchestration-queue li { border: 1px solid var(--line); border-radius: 0.65rem; padding: 0.75rem; background: var(--surface); }
.orchestration-queue li.is-overdue { border-left: 3px solid var(--danger); }
.orchestration-queue li > div { display: flex; align-items: start; justify-content: space-between; gap: 0.75rem; }
.orchestration-queue li strong, .orchestration-queue li time, .orchestration-queue li small { display: block; }
.orchestration-queue li strong { font-size: 0.82rem; }
.orchestration-queue li p { margin: 0.3rem 0 0; font-size: 0.74rem; font-weight: 750; }
.orchestration-queue li time { margin-top: 0.4rem; color: var(--ink); font-size: 0.72rem; }
.orchestration-queue li small { margin-top: 0.16rem; color: var(--muted); font-size: 0.66rem; }
.orchestration-queue .orchestration-queue__empty { border-style: dashed; color: var(--muted); text-align: center; }
.orchestration-queue__admin { display: inline-block; font-size: 0.75rem; font-weight: 800; }
.orchestration-node {
    margin-top: 0.65rem;
    border: 1px solid var(--line);
    border-radius: 0.75rem;
    background: var(--surface);
}
.orchestration-node > summary {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    cursor: pointer;
    list-style: none;
}
.orchestration-node > summary::-webkit-details-marker { display: none; }
.orchestration-node__marker {
    width: 0.62rem;
    height: 0.62rem;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--strong-line);
}
.orchestration-node--succeeded > summary .orchestration-node__marker { background: var(--success); }
.orchestration-node--failed > summary .orchestration-node__marker { background: var(--danger); }
.orchestration-node--running > summary .orchestration-node__marker { background: var(--warning); }
.orchestration-node__main { min-width: 0; flex: 1; }
.orchestration-node__main strong, .orchestration-node__main small { display: block; }
.orchestration-node__main small { margin-top: 0.18rem; color: var(--muted); }
.orchestration-node__detail { border-top: 1px solid var(--line); padding: 0.8rem 1rem; }
.orchestration-node__detail > p { margin: 0.25rem 0; }
.orchestration-children { margin: 0 0.75rem 0.75rem 1.45rem; border-left: 2px solid var(--line); padding-left: 0.8rem; }
.orchestration-payload { margin-top: 0.5rem; color: var(--muted); }
.orchestration-payload pre { overflow: auto; padding: 0.7rem; border-radius: 0.5rem; background: var(--surface-soft); white-space: pre-wrap; }
.orchestration-players { margin-top: 0.65rem; }
.orchestration-players h4 { margin: 0 0 0.4rem; font-size: 0.9rem; }
.orchestration-players ul { display: grid; gap: 0.45rem; margin: 0; padding: 0; list-style: none; }
.orchestration-players li { padding: 0.5rem 0.65rem; border-radius: 0.5rem; background: var(--surface-soft); }
.orchestration-players li > strong, .orchestration-players li > span, .orchestration-players li > small { display: block; }
.orchestration-players li > span, .orchestration-players li > small { margin-top: 0.1rem; color: var(--muted); }

.orchestration-error { color: var(--danger); }
.orchestration-runs { display: grid; gap: 0.45rem; margin: 0.75rem 0 0; padding: 0; list-style: none; }
.orchestration-runs li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.15rem 0.75rem; }
.orchestration-runs small { grid-column: 1 / -1; color: var(--muted); }

@media (max-width: 980px) {
    .orchestration-workspace { grid-template-columns: 1fr; }
    .orchestration-queue { position: static; grid-row: 1; margin-bottom: 0; }
}
