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

:root[data-theme="dark"] {
    color-scheme: dark;
    --ink: #e7edf3;
    --muted: #abb6c2;
    --paper: #10161d;
    --card: #19232d;
    --line: #354452;
    --navy: #0c1218;
    --blue: #78c9ee;
    --red: #f06468;
    --button: #b8202c;
    --positive: #68df91;
    --negative: #f16b70;
    --rank: #f16b70;
    --gold: #f1c85b;
    --surface: #222e39;
}

:root[data-theme="dark"] .master-library-table th,
:root[data-theme="dark"] .gameday-theme,
:root[data-theme="dark"] .season-row:hover,
:root[data-theme="dark"] .season-row:focus-visible,
:root[data-theme="dark"] .judges-table tfoot td,
:root[data-theme="dark"] .standings-table tbody tr:nth-child(even) {
    background: var(--surface);
}

:root[data-theme="dark"] .master-library-table__cover img,
:root[data-theme="dark"] .master-library-table__cover span,
:root[data-theme="dark"] .game-directory-card__cover-wrap,
:root[data-theme="dark"] .game-detail__cover,
:root[data-theme="dark"] .game-cover {
    background: var(--surface);
}

:root[data-theme="dark"] .admin-account-filters input,
:root[data-theme="dark"] .admin-account-filters select,
:root[data-theme="dark"] .admin-access-form select,
:root[data-theme="dark"] .match-card,
:root[data-theme="dark"] input:not([type="checkbox"]):not([type="radio"]),
:root[data-theme="dark"] select,
:root[data-theme="dark"] textarea {
    background: var(--card);
    color: var(--ink);
}

:root[data-theme="dark"] .sign-in-guest:hover,
:root[data-theme="dark"] .sign-in-guest:focus-visible,
:root[data-theme="dark"] .game-directory-card,
:root[data-theme="dark"] .gameday-theme strong,
:root[data-theme="dark"] .match-card__game,
:root[data-theme="dark"] .season-row__theme {
    color: var(--ink);
}

:root[data-theme="dark"] .button:hover,
:root[data-theme="dark"] .button:focus-visible {
    background: color-mix(in srgb, var(--button) 82%, black);
}

html { overflow-x: clip; }

* { box-sizing: border-box; }

img { max-width: 100%; }

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

a { color: inherit; }

.site-header {
    border-bottom: 5px solid var(--blue);
    background: var(--navy);
    color: white;
}

.site-header__bar, .primary-nav { width: min(1160px, calc(100% - 3rem)); margin: 0 auto; }
.site-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; padding: 0.75rem 0; }
.site-header__actions, .site-header__bar .account-nav { display: flex; align-items: center; justify-content: flex-end; gap: 0.75rem; }
.primary-nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.primary-nav .nav-link { display: grid; min-height: 2.75rem; place-items: center; padding: 0.4rem 0.75rem; text-align: center; text-decoration: none; }
.primary-nav-toggle { display: none; border: 1px solid rgb(255 255 255 / 35%); border-radius: 0.3rem; background: transparent; color: white; font: inherit; font-weight: 700; cursor: pointer; }

.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(--button); 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: var(--surface); }
.sign-in-page { padding-top: 2.75rem; }
.sign-in-actions { display: grid; width: min(100%, 22rem); gap: 0.4rem; 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-note { margin: 0; color: var(--muted); font-size: 0.85rem; font-weight: 700; }
.sign-in-guest { width: fit-content; margin: 1rem auto 0; 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; }
.account-profile-link { display: inline-flex; align-items: center; gap: 0.45rem; color: white; font-size: 0.9rem; font-weight: 700; text-decoration: none; }
.account-profile-link:hover, .account-profile-link:focus-visible { color: var(--blue); }
.account-avatar { display: inline-grid; width: 1.7rem; height: 1.7rem; place-items: center; border: 1px solid rgb(255 255 255 / 35%); border-radius: 50%; background: var(--player-color, var(--blue)); color: var(--navy); font-size: 0.75rem; font-weight: 800; }
.account-avatar--image, .player-avatar--image { object-fit: cover; }

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

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

.page-heading {
    padding: 2.25rem 0 1.75rem;
}

.form-page, .simple-page {
    padding: 2.25rem 0 1.75rem;
}

.hero--compact { padding-bottom: 1.5rem; }
.league-hero { display: flex; justify-content: space-between; align-items: center; gap: 2rem; }
.league-hero .status { display: flex; width: fit-content; margin-bottom: 0.75rem; }
.league-hero__location { margin: 0.8rem 0 0.15rem; color: var(--ink); font-weight: 700; }
.league-hero__address { margin: 0 0 0.8rem; color: var(--muted); line-height: 1.55; }
.season-hero__registration { margin: 0; }
.season-hero__registration-actions { display: flex; align-items: center; gap: 0.75rem; margin: 0; }
.season-hero__registration-actions form { margin: 0; }
.season-hero__registration-actions > span { color: var(--red); font-size: 0.9rem; font-weight: 700; }
.door-prize { width: min(28rem, calc(100% - 2rem)); border: 0; border-radius: 0.8rem; background: var(--card); color: var(--ink); box-shadow: 0 1.5rem 4rem rgb(0 0 0 / 35%); }
.door-prize::backdrop { background: rgb(0 0 0 / 55%); }
.door-prize__content { padding: 2rem; text-align: center; }
.door-prize__name { min-height: 3.3rem; margin: 1.25rem 0; color: var(--red); font-size: clamp(1.75rem, 7vw, 2.75rem); font-weight: 800; }
.door-prize__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.75rem; }
.league-logo-link { display: block; flex: 0 0 auto; }
.league-logo { width: min(11rem, 28vw); height: min(11rem, 28vw); object-fit: contain; }
.season-hero .league-logo { width: min(8rem, 28vw); height: min(8rem, 28vw); }

.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, 3.5vw, 3.25rem);
    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__actions { display:flex; flex-wrap:wrap; gap:.75rem; margin-top:1.5rem; }
.info-section { padding: 0 0 3rem; }
.info-section:first-child { padding-top: 3rem; }
.info-section > h2 { margin-bottom: 1rem; font-size: clamp(1.7rem, 3vw, 2.25rem); }
.info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.info-steps { margin: 0; padding: 0; padding-inline-start: 0; list-style: none; counter-reset: info-step; }
.info-steps .info-card { counter-increment: info-step; }
.info-steps .info-card h3::before { content: counter(info-step) ". "; }
.info-card { padding: 1.25rem; border-top: 4px solid var(--gold); background: var(--card); box-shadow: 0 6px 18px rgb(24 35 45 / 7%); }
.info-card h3 { margin-bottom: 0.5rem; }
.info-card p, .faq-list p { margin: 0; color: var(--muted); line-height: 1.55; }
.info-card a { color: var(--red); font-weight: 800; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.faq-list summary { cursor: pointer; font-weight: 800; }
.faq-list p { margin-top: 0.75rem; }
.info-week { display: grid; grid-template-columns: minmax(15rem, 0.7fr) minmax(0, 1.3fr); align-items: center; gap: 2rem; }
.info-week h2 { margin-bottom: 0.75rem; }
.week-layout { margin: 0; }
.week-layout img { display: block; width: 100%; height: auto; }
.week-layout figcaption { margin-top: 0.5rem; color: var(--muted); font-size: 0.85rem; font-weight: 700; text-align: center; }

@media (max-width: 1100px) {
    .info-grid, .info-week { grid-template-columns: 1fr; }
}
.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(14rem, 0.8fr) minmax(0, 1.2fr); 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; align-self: stretch; width: 100%; min-height: 18rem; padding: 1rem; object-fit: contain; }
.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; }
.news-card p.news-card__date { margin: -0.4rem 0 0.8rem; color: var(--muted); font-size: 0.85rem; font-weight: 700; }
.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 {
    padding-top: 0;
}

.season__heading {
    margin-bottom: 1rem;
}

.season__heading h2, .standings-section__heading h2, .schedule-section__heading h2 { margin: 0; font-size: 2rem; 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(auto-fit, minmax(9rem, 1fr));
    margin: 0 0 2rem;
    border: 1px solid var(--line);
    border-radius: 1rem;
    background: var(--card);
    overflow: hidden;
}

.season-facts div { padding: 0.85rem 1rem; 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.2rem 0 0; font-weight: 700; }
.season-facts__points { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 4rem), 1fr)); column-gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.season-facts__prizes { margin: 0; padding: 0; list-style: none; }
.season-hero__information { margin: 1rem 0; padding: 1rem 1.2rem; border-left: 4px solid var(--gold); background: var(--card); box-shadow: 0 6px 18px rgb(24 35 45 / 7%); }
.season-hero__information h2 { margin: 0 0 0.5rem; font-size: 1.1rem; }
.season-hero__information p { margin: 0; }
.season-hero__information p + p { margin-top: 0.75rem; }

.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__address { margin: -0.55rem 0 0.85rem; font-size: 0.9rem; }
.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 th:first-child, .master-library-table td:first-child { position: sticky; left: 0; z-index: 2; background: var(--card); }
.master-library-table th:nth-child(2), .master-library-table td:nth-child(2) { position: sticky; left: 3.5rem; z-index: 2; background: var(--card); box-shadow: 0.6rem 0 0.7rem -0.7rem rgb(24 35 45 / 55%); }
.master-library-table th:first-child, .master-library-table th:nth-child(2) { z-index: 3; background: #f8fbfd; }
.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; }
.standings-pagination { display: flex; width: 100%; align-items: center; justify-content: center; gap: 1rem; margin-top: 1rem; }
.standings-pagination__link { min-width: 6rem; text-align: center; }
.standings-pagination__status { color: var(--muted); font-size: 0.9rem; font-weight: 700; }
.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__title { margin: 0 0 0.75rem; }
.game-procedures :is(h1, h2, h3, h4, h5, h6):not(.game-procedures__title) { margin: 1rem 0 0.25rem; }
.game-procedures p { line-height: 1.6; }
.game-procedures p:last-child { margin-bottom: 0; }
.game-procedures ul, .game-procedures ol { margin: 0.5rem 0; padding-left: 1.5rem; }
.game-procedures li > ul, .game-procedures li > ol { margin: 0.25rem 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__title { margin: 0 0 0.75rem; }
.game-history p:last-child { margin-bottom: 0; color: var(--muted); }
.game-history__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: 0.75rem; }
.game-history__match { overflow: hidden; border: 1px solid var(--line); border-radius: 0.4rem; background: var(--surface); }
.game-history__match header { display: flex; justify-content: space-between; align-items: baseline; gap: 0.75rem; padding: 0.6rem 0.7rem 0.45rem; }
.game-history__match header strong { font-size: 0.9rem; }
.game-history__match time { color: var(--muted); font-size: 0.75rem; font-weight: 400; }
.game-history__match .match-results th, .game-history__match .match-results td { padding: 0.22rem 0.45rem; }
.game-history__match .match-results thead th { padding: 0.25rem 0.45rem; }

.listing-section { padding: 0 0 2rem; }
.listing-section > h2 { margin-bottom: 1rem; font-size: 1.8rem; }
.standings-section { margin: 0 0 3.5rem; }
.standings-section__heading, .schedule-section__heading, .gameday-card__heading { display: flex; justify-content: space-between; align-items: end; gap: 1rem; }
.standings-section__heading { margin-bottom: 1rem; }
.standings-section__heading > p { margin: 0; color: var(--muted); }
.standings-panel { background: var(--card); box-shadow: 0 6px 18px rgb(24 35 45 / 7%); }
.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__label--short { display: none; }
.completed-registrations-table { min-width: 68rem; }
.completed-registrations-table th, .completed-registrations-table td { padding-inline: 0.75rem; }
.season-players-table tbody th, .season-players-table tbody td { padding-block: 0.3rem; }
.registration-timestamp { white-space: nowrap; }
.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-rank { white-space: nowrap; }
.standing-movement { display: inline-block; margin-left: 0.35rem; font-size: 0.68rem; font-weight: 700; }
.standing-movement--up { color: var(--positive); }
.standing-movement--down { color: var(--negative); }
.standings-table tbody td:first-child { width: 5rem; color: var(--rank); font-weight: 800; }
.standings-table tbody th { font-size: 1.05rem; }
.player-summary-table { min-width: 43rem; }
.player-summary-table th, .player-summary-table td { padding: 0.45rem 0.65rem; line-height: 1.2; white-space: nowrap; }
.player-summary-table tbody th, .player-summary-table tbody td:first-child, .player-summary-table tbody td:nth-child(3) { font-size: 0.95rem; font-weight: 700; }
.player-summary-table tbody td:first-child { width: auto; color: inherit; }
.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 { margin-bottom: 1rem; }
.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[hidden] { display: none; }
.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; }
.captain-lineup__status--error { color: var(--red); font-weight: 700; }
.listing-section > .captain-lineup__gameday-title { margin-bottom: 0.25rem; }
.captain-lineup__gameday-date { margin: 0 0 0.85rem; }
.captain-lineup__matches { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.65rem; }
.captain-lineup__match { padding: 0.85rem; border: 1px solid var(--line); border-radius: 0.45rem; background: var(--card); }
.captain-lineup__match-header { display: grid; grid-template-columns: auto minmax(5rem, 0.75fr) minmax(10rem, 1.5fr); align-items: start; gap: 0.7rem; }
.captain-lineup__cover { width: 3.5rem; height: 3.5rem; }
.captain-lineup__match-details { min-width: 0; }
.captain-lineup__match-number, .captain-lineup__opponent-section h4, .captain-lineup__player label { margin: 0; color: var(--muted); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.captain-lineup__match h3 { margin: 0.1rem 0 0; font-size: 1rem; }
.captain-lineup__opponent-section { min-width: 0; }
.captain-lineup__opponent-section h4 { margin-bottom: 0.35rem; }
.captain-lineup__opponents { display: grid; gap: 0.35rem; margin: 0; padding: 0; list-style: none; }
.captain-lineup__opponents li { display: flex; align-items: center; gap: 0.3rem; min-width: 0; }
.captain-lineup__opponents li > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.captain-lineup__opponents .team-mark--small { margin-left: 0; }
.captain-lineup__player { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; margin: 0.9rem 0 0; padding-top: 0.7rem; border-top: 1px solid var(--line); }
.captain-lineup__actions { margin-top: 0.85rem; }
.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-list__empty { margin: 0; padding: 0.75rem 0.9rem; color: var(--muted); }
.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; }
.player-match-row { display: grid; grid-template-columns: 2.4rem minmax(0, 1fr) auto; column-gap: 0.65rem; row-gap: 0.12rem; align-items: center; justify-content: initial; padding: 0.45rem 0.65rem; }
.player-match-row__cover { grid-row: 1 / span 2; width: 2.4rem; height: 3rem; border-radius: 0.15rem; object-fit: cover; }
.player-match-row__details { min-width: 0; }
.player-match-row strong { display: block; margin: 0; overflow: hidden; font-size: 0.95rem; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.player-match-row__date { color: var(--muted); font-size: 0.82rem; line-height: 1.2; white-space: nowrap; }
.player-match-row__meta { grid-column: 2 / -1; display: block; margin: 0; color: var(--muted); font-size: 0.82rem; line-height: 1.3; }

.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(--player-color, 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, .standings-player { display: inline-flex; align-items: center; gap: 0.35rem; white-space: nowrap; }
.standings-player-avatar, .standings-team-avatar { display: inline-grid; width: 1.75rem; height: 1.75rem; place-items: center; flex: 0 0 auto; border-radius: 50%; color: var(--navy); font-size: 0.75rem; font-weight: 800; }
.standings-player-avatar { background: var(--player-color, var(--blue)); }
.standings-team-avatar { background: var(--team-color); }
.standings-player-avatar--image, .standings-team-avatar--image { object-fit: cover; }
.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: 52rem; 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; }
.season-management-actions, .league-management-actions { margin-top: 0.75rem; }
.season-management-actions .button--secondary, .league-management-actions .button--secondary { border-color: var(--button); background: var(--button); color: white; }
.season-management-actions .button--secondary:hover, .season-management-actions .button--secondary:focus-visible, .league-management-actions .button--secondary:hover, .league-management-actions .button--secondary:focus-visible { background: #a91d21; }
.procedures-preview__title { margin: 1.25rem 0 0.4rem; font-size: 1rem; }
.procedures-preview { margin: 0 0 1.25rem; padding: 1rem; border: 1px solid var(--line); border-left: 4px solid var(--blue); background: var(--surface); }
.procedures-preview p { line-height: 1.6; }
.procedures-preview p:last-child { margin-bottom: 0; }
.procedures-preview ul, .procedures-preview ol { padding-left: 1.5rem; }
.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: 1.25rem 1.5rem; border-top: 5px solid var(--blue); color: var(--muted); font-size: 0.85rem; }
.site-footer__content { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; width: min(100%, 1160px); margin: 0 auto; }
.site-footer__identity, .site-footer__actions { display: flex; align-items: center; gap: 0.75rem; }
.site-footer__identity { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
.site-footer__actions { flex: none; gap: 1.5rem; }
.site-footer__social-links { display: flex; flex-direction: column; align-items: flex-end; gap: 0.75rem; }
.site-footer a { color: var(--ink); font-weight: 700; text-decoration-color: var(--red); text-decoration-thickness: 2px; text-underline-offset: 0.18em; }
.site-footer a:hover, .site-footer a:focus-visible { color: var(--red); }
.site-footer__social-link { display: inline-flex; align-items: center; gap: 0.25rem; }
.site-footer__social-icon { width: 1em; height: 1em; fill: currentColor; }
.theme-toggle { display: inline-grid; width: 1.75rem; height: 1.75rem; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--card); color: var(--ink); font: inherit; cursor: pointer; }
.theme-toggle:hover, .theme-toggle:focus-visible { background: var(--surface); color: var(--red); }
.theme-toggle__sun { display: none; }
:root[data-theme="dark"] .theme-toggle__sun { display: inline; }
:root[data-theme="dark"] .theme-toggle__moon { display: none; }

@media (max-width: 760px) {
    .site-main { padding-inline: 0.75rem; }
    .captain-lineup__matches { grid-template-columns: 1fr; }
    .site-footer__content { align-items: flex-start; flex-direction: column; }
    .site-footer__social-links { align-items: flex-start; }
    .site-header__bar, .primary-nav { width: min(100% - 2rem, 1160px); }
    .site-header__bar { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 0.5rem; min-height: auto; padding: 0.65rem 0; }
    .brand { min-width: 0; gap: 0.5rem; }
    .brand > span:last-child { display: block; min-width: 0; line-height: 1.05; }
    .brand__mark { width: 2.25rem; height: 2.25rem; }
    .site-header__actions, .site-header__bar .account-nav { gap: 0.5rem; }
    .primary-nav { grid-template-columns: 1fr; margin-bottom: 0.65rem; }
    .primary-nav.is-mobile-collapsed { display: none; }
    .primary-nav .nav-link { min-height: 2.6rem; padding: 0.4rem; border-top: 1px solid rgb(255 255 255 / 18%); }
    .primary-nav-toggle { display: block; padding: 0.45rem 0.65rem; }
    .account-profile-link > span:last-child { display: none; }
    .hero, .page-heading, .form-page, .simple-page { padding: 1.75rem 0 1.5rem; }
    .league-hero { align-items: flex-start; }
    .season-hero { position: relative; display: block; }
    .season-hero > div { width: 100%; }
    .season-hero > .league-logo, .season-hero > .league-logo-link { position: absolute; top: 2.25rem; right: 0; }
    .season-hero h1 { padding-right: 6rem; }
    .league-logo, .season-hero .league-logo { width: 5rem; height: 5rem; }
    .season-hero__registration-actions { flex-wrap: wrap; row-gap: 0.25rem; }
    .season-hero__registration-actions > span { flex-basis: 100%; }
    .season__heading { display: block; }
    .season__heading > p { margin-top: 0.75rem; }
    .season-facts { grid-template-columns: 1fr 1fr; }
    .season-facts div { padding: 0.75rem 0.85rem; }
    .season-facts div:nth-child(even) { border-right: 0; }
    .season-facts div:not(:nth-last-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; }
    .game-procedures, .game-history { padding-inline: 0.75rem; }
    .game-history__list { grid-template-columns: 1fr; }
    .standings-section__heading { display: block; }
    .standings-section__heading > p { margin-top: 0.75rem; }
    .season-standings-table { table-layout: fixed; }
    .season-standings-table th, .season-standings-table td { padding: 0.5rem 0.35rem; }
    .season-standings-table th:first-child, .season-standings-table td:first-child { width: 2.3rem; }
    .season-standings-table th:nth-child(n + 3), .season-standings-table td:nth-child(n + 3) { width: 2.8rem; text-align: center; }
    .season-standings-table .standings-table__label--full { display: none; }
    .season-standings-table .standings-table__label--short { display: inline; }
    .season-standings-table .team-name, .season-standings-table .standings-player { min-width: 0; white-space: normal; }
    .season-standings-table .team-name > span:last-child, .season-standings-table .standings-player > span:last-child { overflow-wrap: anywhere; }
    .player-summary-table { table-layout: auto; }
    .player-summary-table th, .player-summary-table td { width: auto; padding: 0.45rem 0.65rem; text-align: left; white-space: nowrap; }
    .completed-registrations-table th, .completed-registrations-table td { padding-inline: 0.5rem; }
    .standings-panel .standings-table th, .standings-panel .standings-table td { padding: 0.5rem 0.55rem; }
    .standings-panel .standings-table tbody td:first-child { width: auto; }
    .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,.info-grid,.info-week { 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; grid-template-rows:auto auto; }.news-card img { min-height:0; height:auto; max-height:18rem; aspect-ratio:auto; }.news-card__blurb { align-self:start; padding:0 1.5rem 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; }
    .player-match-row { display: grid; grid-template-columns: 2.4rem minmax(0, 1fr) auto; }
    .player-match-row__meta { margin-top: 0.12rem; }
    .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; }
}

@media (max-width: 420px) {
    .primary-nav .nav-link { font-size: 0.8rem; }
}
