:root {
    color-scheme: light;
    --ink: #18232d;
    --muted: #68737d;
    --paper: #eef1f4;
    --card: #ffffff;
    --line: #d8dde2;
    --navy: #17232d;
    --blue: #b3ddf3;
    --red: #c92327;
    --gold: #e0b23d;
    font-family: "DM Sans", system-ui, sans-serif;
    background: var(--paper);
    color: var(--ink);
}

html { overflow-x: clip; }

* { box-sizing: border-box; }

img { max-width: 100%; }

body {
    margin: 0;
    background: var(--paper);
}

a { color: inherit; }

.site-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 68px;
    margin: 0 auto;
    padding: 0.75rem max(1.5rem, calc((100vw - 1160px) / 2 + 1.5rem));
    border-bottom: 5px solid var(--blue);
    background: var(--navy);
    color: white;
}

.site-header nav { display: flex; align-items: center; gap: 0.75rem; }
.primary-nav { justify-content: center; }
.account-nav { justify-content: flex-end; }

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    text-decoration: none;
}

.brand__mark {
    display: block;
    width: 3rem;
    height: 3rem;
    border: 1px solid rgb(255 255 255 / 28%);
    border-radius: 0.25rem;
    background: white;
    object-fit: contain;
}

.nav-link, .text-button {
    border: 0;
    background: none;
    color: white;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.nav-link { text-decoration: none; }
.nav-link:hover, .nav-link:focus-visible { color: var(--blue); }
.button { display: inline-block; padding: 0.65rem 0.9rem; border: 0; border-radius: 0.3rem; background: var(--red); color: white; font: inherit; font-weight: 800; text-decoration: none; cursor: pointer; }
.button:hover, .button:focus-visible { background: #a91d21; }
.button--secondary { border: 1px solid var(--line); background: var(--card); color: var(--ink); }
.button--secondary:hover, .button--secondary:focus-visible { background: #f8fbfd; }
.sign-in-page { padding-top: 2.75rem; }
.sign-in-actions { display: grid; width: min(100%, 22rem); gap: 0.9rem; margin-top: 1.5rem; text-align: center; }
.discord-sign-in { display: inline-flex; align-items: center; justify-content: center; gap: 0.65rem; padding: 0.8rem 1rem; border-radius: 0.45rem; background: #5865f2; color: white; font-weight: 800; text-decoration: none; box-shadow: 0 4px 10px rgb(88 101 242 / 24%); }
.discord-sign-in svg { width: 1.35rem; height: 1.35rem; }
.discord-sign-in:hover, .discord-sign-in:focus-visible { background: #4752c4; }
.sign-in-guest { width: fit-content; margin: 0 auto; color: var(--muted); font-weight: 700; text-underline-offset: 0.2em; }
.sign-in-guest:hover, .sign-in-guest:focus-visible { color: var(--navy); }

.inline-form { display: inline; }
.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; }
.player-assignment { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.player-assignment select { max-width: 12rem; }
.player-assignment .button { white-space: nowrap; }
.signed-in { color: var(--blue); font-size: 0.9rem; }

.site-main {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 1.5rem 4rem;
}

.hero {
    padding: 2.75rem 0 2.25rem;
}

.hero--compact { padding-bottom: 2rem; }
.league-hero { display: flex; justify-content: space-between; align-items: center; gap: 2rem; }
.league-logo { width: min(11rem, 28vw); height: min(11rem, 28vw); object-fit: contain; }

.hero__eyebrow, .eyebrow {
    display: none;
}

.dashboard-card__label {
    margin: 0 0 0.7rem;
    color: var(--red);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
}

h1, h2, h3, p { margin-top: 0; }


h1 {
    margin-bottom: 0.9rem;
    font-size: clamp(2.2rem, 4vw, 3.6rem);
    font-weight: 800;
    line-height: 0.98;
    letter-spacing: -0.05em;
}

.heading-link { text-decoration: none; }
.heading-link:hover, .heading-link:focus-visible { text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 0.18em; }

.hero__lede {
    margin: 0;
    color: var(--muted);
    font-size: clamp(1rem, 1.7vw, 1.2rem);
    line-height: 1.55;
}
.home-news { display:flex; justify-content:space-between; align-items:center; gap:1.5rem; margin-top:2rem; padding:1.1rem 1.25rem; border-left:5px solid var(--gold); background:var(--card); box-shadow:0 6px 18px rgb(24 35 45 / 7%); }.home-news h2 { margin-bottom:.3rem; font-size:1.25rem; }.home-news p:last-child { margin:0; color:var(--muted); }.home-pitch { max-width:880px; padding:4.5rem 0 4rem; }.home-pitch h1 { max-width:850px; }.home-pitch__actions { display:flex; flex-wrap:wrap; gap:.75rem; margin-top:1.5rem; }.home-section { padding:3.5rem 0; }.home-section > h2 { max-width:720px; margin-bottom:1.5rem; font-size:clamp(1.9rem,4vw,3rem); letter-spacing:-.04em; }.pitch-grid,.benefit-list { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1rem; }.pitch-card { padding:1.3rem; border-top:4px solid var(--red); background:var(--card); box-shadow:0 6px 18px rgb(24 35 45 / 7%); }.pitch-card > span { color:var(--red); font-size:.75rem; font-weight:800; }.pitch-card h3 { margin:.7rem 0 .5rem; }.pitch-card p,.proof-card p { margin:0; color:var(--muted); line-height:1.5; }.home-section--dark { margin-left:-1.5rem; margin-right:-1.5rem; padding-left:1.5rem; padding-right:1.5rem; background:var(--navy); color:white; }.home-section--dark .hero__eyebrow { color:var(--gold); }.benefit-list p { color:#d7e2e8; line-height:1.55; }.benefit-list strong { display:block; margin-bottom:.35rem; color:white; }.proof-card { display:flex; align-items:center; gap:1.5rem; padding:1.5rem; border-top:4px solid var(--gold); background:var(--card); box-shadow:0 6px 18px rgb(24 35 45 / 7%); }.proof-card img { width:5rem; height:5rem; object-fit:contain; }.proof-card h3 { margin-bottom:.4rem; font-size:1.5rem; }
.home-intro { max-width: 55rem; padding: 4.5rem 0 3rem; }
.home-intro .button { margin-top: 1.5rem; }
.news-section { padding: 0 0 3rem; }
.news-section + .home-section { padding-top: 0; }
.news-section__heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.news-section__heading h2 { margin-bottom: 0; font-size: clamp(1.9rem, 4vw, 3rem); letter-spacing: -0.04em; }
.news-section__heading > p { margin: 0; color: var(--muted); font-size: 0.9rem; font-weight: 700; }
.news-carousel__viewport { overflow: hidden; border-radius: 0.65rem; }
.news-carousel__track.is-enhanced { display: flex; transition: transform 320ms ease; }
.news-card { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(17rem, 0.85fr); width: 100%; overflow: hidden; border-radius: 0.65rem; background: var(--card); box-shadow: 0 8px 24px rgb(24 35 45 / 10%); }
.news-carousel__track.is-enhanced .news-card { flex: 0 0 100%; border-radius: 0; }
.news-card img { display: block; width: 100%; height: 22rem; object-fit: cover; }
.news-card__blurb { align-self: center; min-width: 0; padding: 1.75rem; }
.news-carousel__controls { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 1rem; }
.news-carousel__controls .button { white-space: nowrap; }
.news-carousel__controls p { min-width: 5.5rem; margin: 0; color: var(--muted); font-size: 0.85rem; font-weight: 700; text-align: center; }
.champion-feature__meta { margin-bottom: 0.65rem; color: var(--red); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.08em; }
.news-card h3 { margin-bottom: 0.8rem; font-size: clamp(1.5rem, 2.5vw, 2.15rem); letter-spacing: -0.04em; }
.news-card p:not(.champion-feature__meta) { margin-bottom: 0; color: var(--muted); line-height: 1.6; }
.community-story > p:last-child { max-width: 44rem; margin-bottom: 0; color: #d7e2e8; font-size: 1.1rem; line-height: 1.65; }
.home-empty { color: var(--muted); }

.season {
    border-top: 4px solid var(--red);
    padding-top: 1.5rem;
}

.season__heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 1rem;
    margin-bottom: 2rem;
}

.season__heading h2 { margin: 0.5rem 0 0; font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; letter-spacing: -0.04em; }
.season__heading > p { color: var(--muted); }

.status {
    display: inline-flex;
    padding: 0.4rem 0.7rem;
    border-radius: 999px;
    background: var(--blue);
    color: var(--navy);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.season-facts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin: 0 0 2.5rem;
    border: 1px solid var(--line);
    border-radius: 1rem;
    background: var(--card);
    overflow: hidden;
}

.season-facts div { padding: 1.2rem; border-right: 1px solid var(--line); }
.season-facts div:last-child { border-right: 0; }
.season-facts dt { color: var(--muted); font-size: 0.78rem; font-weight: 600; }
.season-facts dd { margin: 0.35rem 0 0; font-weight: 700; }

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 3.5rem;
}

.dashboard-card {
    min-height: 240px;
    padding: 1.5rem;
    border: 1px solid var(--line);
    border-radius: 0.6rem;
    background: var(--card);
    box-shadow: 0 6px 18px rgb(24 35 45 / 7%);
}

.dashboard-card:not(.dashboard-card--feature) { border-top: 4px solid var(--red); }
.dashboard-card--feature { border-color: var(--navy); background: var(--navy); color: white; }
.dashboard-card--feature .dashboard-card__label { color: var(--blue); }
.dashboard-card h3 { margin-bottom: 0.65rem; font-size: 1.45rem; }
.dashboard-card p:not(.dashboard-card__label) { color: var(--muted); line-height: 1.5; }
.dashboard-card--feature p:not(.dashboard-card__label) { color: #d7e2e8; }

.coming-soon {
    display: inline-block;
    margin-top: 1.25rem;
    color: inherit;
    font-size: 0.78rem;
    font-weight: 700;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding-top: 1.5rem;
    color: var(--muted);
    font-size: 0.85rem;
}

.breadcrumbs a { color: var(--ink); font-weight: 700; text-decoration: none; }

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

.directory-card {
    padding: 1.5rem;
    border: 1px solid var(--line);
    border-top: 4px solid var(--red);
    border-radius: 0.6rem;
    background: var(--card);
    box-shadow: 0 6px 18px rgb(24 35 45 / 7%);
}

.directory-card__heading { display: flex; align-items: start; justify-content: space-between; gap: 1rem; }
.directory-card h2 { margin-bottom: 0.35rem; font-size: 1.6rem; }
.directory-card h2 a { text-decoration: none; }
.directory-card h2 a:hover, .directory-card h2 a:focus-visible { color: var(--red); text-decoration: underline; text-underline-offset: 0.18em; }
.directory-card p:not(.directory-card__count) { color: var(--muted); line-height: 1.55; }
.directory-card__location { margin: 0 0 0.85rem; color: var(--ink) !important; font-size: 0.9rem; font-weight: 700; }
.directory-card__image { flex: 0 0 auto; width: 4.5rem; height: 4.5rem; object-fit: contain; }
.directory-card__count { margin-bottom: 0.6rem; color: var(--red); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; }
.card-link { display: inline-block; margin-top: 0.5rem; color: var(--red); font-weight: 800; text-decoration: none; }
.admin-list { border-top: 1px solid var(--line); }
.admin-list__row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.9rem 0; border-bottom: 1px solid var(--line); }
.admin-list__row h2 { margin: 0; font-size: 1.1rem; }
.admin-list__row p { margin: 0.2rem 0 0; color: var(--muted); font-size: 0.9rem; }
.master-library-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 0.6rem; background: var(--card); }
.master-library-table { width: 100%; min-width: 74rem; border-collapse: collapse; }
.master-library-table th, .master-library-table td { padding: 0.65rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.master-library-table th { background: #f8fbfd; font-size: 0.78rem; letter-spacing: 0.04em; }
.master-library-table input, .master-library-table select { width: 100%; min-width: 7rem; }
.master-library-table td:nth-child(2) input { min-width: 12rem; }
.master-library-table td:nth-child(6) input, .master-library-table td:nth-child(7) input { min-width: 14rem; }
.master-library-table__cover { width: 3.5rem; }
.master-library-table__timestamp { min-width: 9rem; color: var(--muted); font-size: 0.85rem; }
.master-library-table__cover img, .master-library-table__cover span { display: grid; width: 2.75rem; height: 3.5rem; place-items: center; border: 1px solid var(--line); border-radius: 0.2rem; background: #f1f4f6; object-fit: cover; }
.master-library-pagination { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 1rem; }
.master-library-form__actions { display: flex; justify-content: flex-end; margin-top: 1rem; }
#id_games > div { padding: 0.35rem 0; }
#id_games label { display: inline-flex; align-items: center; gap: 0.45rem; }
#id_games input[type="checkbox"] { width: 1rem; height: 1rem; margin: 0; }
.game-directory-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); gap: 1rem; padding-bottom: 3rem; }
.game-library-section { margin: 0 0 3rem; }
.game-library-section h2 { margin: 0 0 1rem; font-size: 1.8rem; }
.game-library-section__empty, .game-library-section__intro { color: var(--muted); }
.game-directory-filters { display: grid; grid-template-columns: minmax(12rem, 2fr) repeat(2, minmax(9rem, 1fr)) minmax(9rem, max-content) auto; align-items: end; gap: 1rem; margin: 0 0 1.5rem; padding: 1rem; border: 1px solid var(--line); border-radius: 0.6rem; background: var(--card); }
.game-directory-filters p { margin: 0; }
.game-directory-filters label { display: block; margin-bottom: 0.35rem; font-size: 0.85rem; font-weight: 700; }
.game-directory-filters input, .game-directory-filters select { width: 100%; }
.game-directory-filters__actions { display: flex; align-items: center; gap: 0.75rem; white-space: nowrap; }
.game-directory-results { margin: 0 0 1rem; color: var(--muted); font-weight: 700; }
.game-directory-card { display: grid; align-content: start; gap: 0.25rem; color: var(--navy); font-weight: 800; text-decoration: none; }
.game-directory-card small { display: block; margin-top: 0.2rem; color: var(--muted); font-size: 0.78rem; font-weight: 700; }
.game-directory-card:hover span, .game-directory-card:focus-visible span { color: var(--red); text-decoration: underline; text-underline-offset: 0.18em; }
.game-directory-card__cover-wrap { position: relative; display: grid; aspect-ratio: 3 / 4; overflow: hidden; place-items: center; border: 1px solid var(--line); border-radius: 0.45rem; background: #f1f4f6; box-shadow: 0 6px 18px rgb(24 35 45 / 7%); }
.game-directory-card__cover { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.game-directory-card__review-badge { position: absolute; right: 0.5rem; bottom: 0.5rem; padding: 0.3rem 0.45rem; border-radius: 0.25rem; background: var(--gold); color: var(--navy); font-size: 0.68rem; font-weight: 800; letter-spacing: 0.04em; }
.game-directory-card__cover.game-cover--placeholder { display: grid; aspect-ratio: 3 / 4; place-items: center; color: var(--muted); font-size: 2rem; }
.game-directory-card__cover.game-cover--placeholder[hidden] { display: none; }
.game-detail { display: grid; grid-template-columns: minmax(12rem, 18rem) minmax(0, 1fr); align-items: start; gap: 2rem; padding: 1.5rem 0 3rem; }
.game-detail__cover { overflow: hidden; border: 1px solid var(--line); border-radius: 0.6rem; background: #f1f4f6; box-shadow: 0 8px 22px rgb(24 35 45 / 10%); }
.game-detail__cover img, .game-detail__placeholder { display: block; width: 100%; height: auto; }
.game-detail__placeholder { display: grid; aspect-ratio: 3 / 4; place-items: center; color: var(--muted); font-size: 3rem; font-weight: 800; }
.game-detail h1 { margin-top: 0; }
.game-procedures { margin: 0 0 1.5rem; padding: 1.5rem; border-top: 4px solid var(--red); background: var(--card); box-shadow: 0 6px 18px rgb(24 35 45 / 7%); }
.game-procedures h2 { margin: 0 0 0.75rem; }
.game-procedures p { line-height: 1.6; }
.game-procedures p:last-child { margin-bottom: 0; }
.game-history { padding: 1.5rem; border-top: 4px solid var(--red); background: var(--card); box-shadow: 0 6px 18px rgb(24 35 45 / 7%); }
.game-history h2 { margin: 0.4rem 0; }
.game-history p:last-child { margin-bottom: 0; color: var(--muted); }

.listing-section { padding: 0 0 3rem; }
.listing-section > h2 { margin-bottom: 1rem; font-size: 1.8rem; }
.standings-panel { margin: 0 0 3.5rem; border-top: 5px solid var(--red); background: var(--card); box-shadow: 0 6px 18px rgb(24 35 45 / 7%); }
.standings-panel__heading { display: flex; justify-content: space-between; align-items: end; gap: 1rem; padding: 1rem 1rem 0.7rem; }
.standings-panel__heading h2 { margin: 0; font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.04em; }
.standings-panel__heading > p { margin: 0; color: var(--muted); }
.standings-table-wrap { overflow-x: auto; }
.standings-table { width: 100%; border-collapse: collapse; text-align: left; }
.standings-table th, .standings-table td { padding: 1rem 1.5rem; border-top: 1px solid var(--line); }
.standings-table thead { background: var(--navy); color: white; }
.standings-table thead th { border-top: 0; font-size: 0.76rem; letter-spacing: 0.08em; }
.standings-table tbody tr:nth-child(even) { background: #f8fbfd; }
.standings-table tbody tr { transition: transform 650ms cubic-bezier(.2,.8,.2,1); }
.standing-movement { display: inline-block; margin-left: 0.35rem; font-size: 0.68rem; font-weight: 700; }
.standing-movement--up { color: #16803a; }
.standing-movement--down { color: var(--red); }
.standings-table tbody td:first-child { width: 5rem; color: var(--red); font-weight: 800; }
.standings-table tbody th { font-size: 1.05rem; }
.admin-accounts-table { min-width: 75rem; }
.admin-account-filters { display: flex; flex-wrap: wrap; align-items: end; gap: 0.75rem; margin: 0 0 1rem; padding: 0.85rem; background: var(--card); box-shadow: 0 4px 14px rgb(24 35 45 / 6%); }
.admin-account-filters label { display: grid; gap: 0.25rem; color: var(--muted); font-size: 0.78rem; font-weight: 700; }
.admin-account-filters input, .admin-account-filters select { min-height: 2.25rem; padding: 0.35rem; border: 1px solid var(--line); border-radius: 0.25rem; background: white; font: inherit; color: var(--ink); }
.admin-account-filters button { min-height: 2.25rem; padding: 0.35rem 0.7rem; border: 0; border-radius: 0.25rem; background: var(--navy); color: white; font: inherit; font-weight: 700; cursor: pointer; }
.admin-access-form { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; margin-top: 0.45rem; }
.admin-access-form select { max-width: 12rem; padding: 0.35rem; border: 1px solid var(--line); border-radius: 0.25rem; background: white; font: inherit; }
.admin-access-form button:not(.text-button) { padding: 0.35rem 0.55rem; border: 0; border-radius: 0.25rem; background: var(--navy); color: white; font: inherit; font-weight: 700; cursor: pointer; }
.standings-panel .standings-table th, .standings-panel .standings-table td { padding: 0.55rem 0.8rem; }
.standings-panel .standings-table thead th { font-size: 0.65rem; }
.standings-panel .standings-table tbody th { font-size: 0.9rem; }
.schedule-section { margin-top: 3.5rem; }
.schedule-section__heading, .gameday-card__heading { display: flex; justify-content: space-between; align-items: end; gap: 1rem; }
.schedule-section__heading { margin-bottom: 1rem; }
.schedule-section__heading h2 { margin: 0; font-size: 2rem; letter-spacing: -0.04em; }
.schedule-section__heading > p, .gameday-card__heading > p { margin: 0; color: var(--muted); }
.gameday-list { display: grid; gap: 0.85rem; }
.schedule-section__add-gameday { margin-top: 1rem; text-align: center; }
.gameday-card { padding: 0.9rem; border: 1px solid var(--line); border-radius: 0.65rem; background: var(--card); box-shadow: 0 4px 14px rgb(24 35 45 / 6%); }
.gameday-card__heading { margin-bottom: 0.65rem; }
.gameday-card__heading h3 { margin: 0.45rem 0 0; font-size: 1.2rem; }
.gameday-card__date { margin: 0.2rem 0 0; color: var(--muted); font-size: 0.9rem; }
.gameday-card__actions { display: flex; align-items: center; gap: 0.75rem; }
.gameday-theme { min-width: 9rem; padding: 0.5rem 0.7rem; border-left: 3px solid var(--blue); background: #f8fbfd; text-align: right; }
.gameday-theme span { color: var(--muted); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; }
.gameday-theme strong { color: var(--navy); }
.match-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.5rem; }
.match-card { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 0.45rem; background: white; }
.match-card__summary { display: flex; align-items: center; min-height: 2.1rem; gap: 0.5rem; padding: 0 3.5rem 0 0.5rem; cursor: pointer; list-style: none; }
.match-card__summary::-webkit-details-marker { display: none; }
.match-card__summary::after { content: ""; width: 0.42rem; height: 0.42rem; margin-left: auto; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg) translateY(-0.15rem); }
.match-card[open] .match-card__summary::after { transform: rotate(225deg) translate(-0.05rem, -0.05rem); }
.match-card__identity { display: flex; min-width: 0; flex: 1 1 auto; flex-wrap: wrap; align-items: center; }
.game-cover { display: block; width: 2.1rem; height: 2.1rem; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 0.2rem; background: #f1f4f6; object-fit: contain; }
.game-cover--placeholder { display: grid; place-items: center; color: var(--muted); font-weight: 700; }
.match-card__number, .match-card__game { font-size: 0.9rem; line-height: 1.15; }
.match-card__number { margin-right: 0.25rem; color: var(--red); font-weight: 700; white-space: nowrap; }
.match-card__game { display: -webkit-box; min-width: 0; flex: 1 1 4rem; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; color: var(--navy); font-weight: 600; }
.match-card__meta { flex-basis: 100%; overflow: hidden; color: var(--muted); font-size: 0.68rem; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.match-card__admin { position: absolute; z-index: 1; top: 0.45rem; right: 1.45rem; color: var(--red); font-size: 0.7rem; font-weight: 700; text-decoration: none; }
.match-card__admin:hover, .match-card__admin:focus-visible { text-decoration: underline; text-underline-offset: 0.15em; }
.match-card__body { border-top: 1px solid var(--line); }
.match-results { width: 100%; border-collapse: collapse; table-layout: fixed; }
.match-results th, .match-results td { padding: 0.28rem 0.5rem; border-top: 1px solid var(--line); text-align: left; font-size: 0.78rem; }
.match-results thead th { padding: 0.35rem 0.3rem; color: var(--muted); font-size: 0.58rem; font-weight: 700; letter-spacing: 0.03em; white-space: nowrap; }
.match-results th:first-child, .match-results td:first-child { width: 2rem; }
.match-results th:nth-child(3), .match-results td:nth-child(3) { width: 2.8rem; }
.match-results th:nth-child(4), .match-results td:nth-child(4) { width: 2.2rem; }
.match-results td:first-child { width: 3rem; color: var(--red); font-weight: 700; }
.match-results td:last-child { color: var(--muted); text-align: right; }
.match-results th[scope="row"] { font-weight: 600; }
.match-teams { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.match-teams li { padding: 0.3rem 0.5rem; border-bottom: 1px solid var(--line); font-size: 0.8rem; }
.match-teams li:last-child { border-bottom: 0; }
.results-tbd { margin: 0; padding: 0.45rem 0.5rem; color: var(--muted); font-size: 0.75rem; font-weight: 600; }
.results-form { max-width: 52rem; }
.results-form__instructions { color: var(--muted); line-height: 1.5; }
.results-form__instructions { margin: 0; padding-left: 1.25rem; }
.results-form__correction-note { margin: 0; padding: 0.55rem 0.75rem; border-left: 3px solid var(--red); background: color-mix(in srgb, var(--red) 7%, var(--card)); color: var(--text); line-height: 1.5; }
.results-form .standings-table { margin: 1.5rem 0; }
.results-form .standings-table th, .results-form .standings-table td { padding: 0.42rem 0.75rem; }
.results-form .standings-table tbody.results-form__participant tr:first-child th { padding-top: 0.7rem; border-top: 3px solid var(--red); background: var(--card); color: var(--red); font-size: 0.9rem; }
.results-form__team-name { display: inline-flex; align-items: center; gap: 0.3rem; }
.results-form input:not([type="checkbox"]) { width: 8rem; padding: 0.45rem; border: 1px solid var(--line); border-radius: 0.25rem; font: inherit; }
.results-form input[type="checkbox"] { margin: 0; }
.results-form__absent { margin-left: 1.25rem; font-weight: 700; }
.errorlist { margin: 0.4rem 0 0; padding-left: 1.2rem; color: var(--red); font-weight: 700; }
.season-list { overflow: hidden; border: 1px solid var(--line); border-radius: 0.75rem; background: var(--card); }
.season-row { display: flex; align-items: center; justify-content: space-between; gap: 0.85rem; padding: 0.75rem 0.9rem; border-bottom: 1px solid var(--line); text-decoration: none; }
.season-row:last-child { border-bottom: 0; }
.season-row:hover, .season-row:focus-visible { background: #f8fbfd; }
.season-row strong { display: block; margin-top: 0.25rem; font-size: 1.05rem; }
.season-row__meta { color: var(--muted); text-align: right; }
.season-row__meta > span:first-child, .season-row__theme { display: block; }
.season-row__theme { margin-top: 0.15rem; color: var(--navy); font-weight: 700; }

.captains-table-wrap, .judges-table-wrap { overflow-x: auto; }
.captains-table, .judges-table { width: auto; max-width: 100%; margin: 0 auto; border-collapse: collapse; background: var(--card); box-shadow: 0 4px 14px rgb(24 35 45 / 6%); }
.captains-table th, .captains-table td, .judges-table th, .judges-table td { padding: 0.7rem 0.85rem; border: 1px solid var(--line); text-align: left; vertical-align: middle; }
.captains-table thead, .judges-table thead { background: var(--navy); color: white; }
.captains-table thead th, .judges-table thead th { font-size: 0.7rem; letter-spacing: 0.08em; }
.captains-table__team { display: flex; align-items: center; gap: 0.5rem; white-space: nowrap; }
.captains-table__mark { width: 1.5rem; height: 1.5rem; margin: 0; font-size: 0.72rem; }
.captains-table__form { display: flex; align-items: center; gap: 0.5rem; white-space: nowrap; }
.captains-table__form label { color: var(--muted); }
.captains-table__form .button { margin-left: auto; padding: 0.5rem 0.7rem; }
.judges-table td:last-child { text-align: right; }
.judges-table__action, .judges-table__add-form { display: flex; align-items: center; gap: 0.5rem; }
.judges-table__action { justify-content: flex-end; }
.judges-table__add-form { justify-content: center; }
.judges-table__add-form label { color: var(--muted); }
.judges-table tfoot td { background: #f8fbfd; }

.roster-list { border-top: 4px solid var(--red); background: var(--card); }
.roster-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.roster-row:hover strong, .roster-row:focus-visible strong { text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 0.18em; }
.roster-avatar, .player-avatar { display: inline-grid; place-items: center; border-radius: 50%; background: var(--blue); color: var(--navy); font-weight: 800; }
.roster-avatar { width: 2.4rem; height: 2.4rem; }
.player-hero { display: flex; align-items: center; gap: 1.25rem; }
.team-hero { display: flex; align-items: center; gap: 1.25rem; }
.team-mark { display: inline-grid; width: 3rem; height: 3rem; place-items: center; flex: 0 0 auto; border-radius: 50%; background: var(--team-color); color: var(--ink); font-weight: 800; }
.team-mark--image { object-fit: cover; }
.team-mark--small { width: 1rem; height: 1rem; margin-left: 0.2rem; font-size: 0.62rem; vertical-align: middle; }
.team-name, .player-with-team { display: inline-flex; align-items: center; gap: 0.35rem; white-space: nowrap; }
.player-with-team { width: 100%; max-width: 100%; min-width: 0; overflow: hidden; }
.player-with-team a { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.match-teams .player-with-team { display: flex; }
.match-results .player-with-team { display: flex; }
.player-with-team .team-mark--small, .team-name .team-mark--small { margin-left: 0; }
.player-avatar { width: 4.5rem; height: 4.5rem; font-size: 1.8rem; }
.player-hero h1 { margin-bottom: 0; }
.player-hero .button { margin-top: 1rem; }
.profile-form { max-width: 34rem; padding: 1.5rem; border-top: 4px solid var(--red); background: var(--card); box-shadow: 0 6px 18px rgb(24 35 45 / 7%); }
.profile-form label { display: block; margin-bottom: 0.45rem; font-weight: 800; }
.profile-form input, .profile-form textarea { width: 100%; padding: 0.65rem; border: 1px solid var(--line); border-radius: 0.25rem; font: inherit; resize: vertical; }
.profile-form__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.form-hint { display: block; margin-top: 0.4rem; color: var(--muted); font-size: 0.85rem; }
.account-details { max-width: 34rem; margin-top: 1rem; color: var(--muted); }
.account-details summary { cursor: pointer; font-weight: 700; }
.account-details p { margin: 0.75rem 0 0; }
.player-id { color: var(--muted); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 0.78rem; font-weight: 400; white-space: nowrap; }
.player-id--full { display: block; width: fit-content; max-width: 100%; margin-top: 0.35rem; padding: 0.25rem 0.4rem; overflow-x: auto; background: var(--paper); user-select: all; }
.player-about { max-width: 44rem; }
.player-about p { color: var(--muted); line-height: 1.6; }

.empty-state { padding: 20vh 0; text-align: center; }
.site-footer { padding: 2rem 1.5rem; border-top: 5px solid var(--blue); color: var(--muted); text-align: center; font-size: 0.85rem; }

@media (max-width: 760px) {
    .site-header { grid-template-columns: auto 1fr; align-items: center; }
    .primary-nav { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; }
    .account-nav { grid-column: 2; grid-row: 1; }
    .brand > span:last-child, .signed-in { display: none; }
    .brand__mark { width: 2.5rem; height: 2.5rem; }
    .hero { padding: 2.25rem 0 2rem; }
    .league-hero { align-items: flex-start; }
    .league-logo { width: 5rem; height: 5rem; }
    .season__heading { display: block; }
    .season__heading > p { margin-top: 0.75rem; }
    .season-facts { grid-template-columns: 1fr 1fr; }
    .season-facts div:nth-child(2) { border-right: 0; }
    .season-facts div:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
    .dashboard-grid { grid-template-columns: 1fr; }
    .dashboard-card { min-height: auto; }
    .directory-grid { grid-template-columns: 1fr; }
    .game-directory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .game-directory-filters { grid-template-columns: 1fr; }
    .game-detail { grid-template-columns: minmax(7.5rem, 10rem) minmax(0, 1fr); gap: 1.25rem; }
    .standings-panel__heading { display: block; }
    .standings-panel__heading > p { margin-top: 0.75rem; }
    .standings-table th, .standings-table td { padding: 0.9rem 1rem; }
    .schedule-section__heading, .gameday-card__heading { display: block; }
    .schedule-section__heading > p, .gameday-card__heading > p { margin-top: 0.75rem; }
    .gameday-theme { margin-top: 1rem; text-align: left; }
    .gameday-card__actions { align-items: start; flex-direction: column; }
    .match-grid { grid-template-columns: 1fr; gap: 0.4rem; }
    .gameday-card { padding: 0.75rem; }
    .match-card__summary { min-height: 2.1rem; }
    .match-card__admin { right: 1.4rem; }
    .home-news,.proof-card { align-items:flex-start; flex-direction:column; }.pitch-grid,.benefit-list { grid-template-columns:1fr; }.home-pitch,.home-intro { padding:3rem 0; }.news-section__heading { align-items:flex-start; flex-direction:column; }.news-card { grid-template-columns:1fr; }.news-card img { height:auto; aspect-ratio:16 / 10; }.news-card__blurb { padding:1.5rem; }.news-carousel__controls { gap:0.5rem; }.news-carousel__controls .button { padding:0.55rem 0.65rem; font-size:0.85rem; }
    .season-row { display: block; }
    .season-row__meta { display: block; margin-top: 0.4rem; text-align: left; }
    .captains-table, .judges-table { margin: 0; }
    .captains-table th, .captains-table td, .judges-table th, .judges-table td { padding: 0.65rem; }
    .captains-table__form { flex-wrap: wrap; }
    .judges-table__add-form { flex-wrap: wrap; justify-content: flex-start; }
    .player-hero { align-items: flex-start; }
}
