:root {
  color-scheme: light;
  --font-ui: ui-rounded, "Trebuchet MS", system-ui, -apple-system, "Segoe UI", sans-serif;
  --green: #10281c;
  --green-deep: #0a1d14;
  --green-mid: #204630;
  --gold: #d4b263;
  --cream: #f8f6f0;
  --ink: #1d2920;
  --muted: #657066;
  --line: #dce1d9;
}

* { box-sizing: border-box; }
html { min-height: 100%; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--cream); color: var(--ink); font: 16px/1.6 var(--font-ui); }
main { flex: 1; }
a { color: inherit; }
button, input { font: inherit; }
.container { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }

.site-header { background: var(--green-deep); color: #fff; border-bottom: 1px solid rgba(255,255,255,.14); }
.header-inner { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--gold); color: var(--gold); font: 700 17px Georgia, serif; letter-spacing: -.08em; }
.brand-wordmark { display: flex; flex-direction: column; font-size: 20px; font-weight: 800; line-height: 1.05; letter-spacing: .04em; }
.brand-caption { margin-top: 5px; font-size: 9px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: #c7d3c9; }
.site-nav { display: flex; align-items: center; gap: 25px; font-size: 14px; font-weight: 650; }
.site-nav a { text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--gold); }
.nav-user { color: #c8d3c9; }
.nav-form { margin: 0; }
.nav-button { padding: 9px 15px; border: 1px solid rgba(255,255,255,.4); border-radius: 4px; background: transparent; color: #fff; cursor: pointer; }
.nav-button:hover { border-color: var(--gold); color: var(--gold); }
.nav-login { padding: 9px 15px; border: 1px solid var(--gold); border-radius: 4px; }

.hero { overflow: hidden; background: radial-gradient(circle at 80% 25%, #244a32, transparent 38%), linear-gradient(130deg, var(--green) 30%, #173d27); color: #fff; }
.hero-inner { min-height: 500px; padding-block: 74px; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(250px, .75fr); align-items: center; gap: 65px; }
.eyebrow { margin: 0 0 18px; color: var(--gold); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: none; }
.eyebrow-dark { color: #7f651f; }
h1, h2, p { margin-top: 0; }
h1, h2 { font-family: var(--font-ui); line-height: 1.12; letter-spacing: -.035em; }
.hero h1 { margin-bottom: 21px; font-size: clamp(44px, 6vw, 78px); font-weight: 500; }
.hero h1 em { color: var(--gold); font-weight: 400; }
.hero-description { max-width: 580px; margin-bottom: 29px; color: #d6e1d7; font-size: 17px; }
.hero-welcome { display: inline-block; margin: 0; padding: 12px 16px; border-left: 3px solid var(--gold); background: rgba(255,255,255,.08); }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 24px; padding: 12px 20px; border: 0; border-radius: 12px; text-decoration: none; font-weight: 750; cursor: pointer; }
.button-primary { background: var(--gold); color: var(--green-deep); }
.button-primary:hover { background: #e7c97d; }
.hero-card { display: block; width: min(100%, 320px); height: auto; aspect-ratio: 488 / 680; object-fit: contain; justify-self: center; border-radius: 4.5%; outline: 1px solid rgba(212,178,99,.65); box-shadow: 22px 28px 55px rgba(0,0,0,.2); transform: rotate(4deg); }
.coming-soon { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 50px; padding-block: 82px; }
.coming-soon h2 { max-width: 470px; margin-bottom: 0; font-size: clamp(30px, 3vw, 42px); font-weight: 800; }
.coming-soon > p { max-width: 455px; margin-bottom: 4px; color: var(--muted); }

.login-section { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: start; padding-block: 94px 120px; }
.login-intro h1, .error-section h1 { font-size: clamp(42px, 5vw, 62px); font-weight: 800; }
.login-intro > p:last-child, .error-section > p:not(.eyebrow) { color: var(--muted); }
.login-panel { padding: 32px; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: 0 14px 36px rgba(15,39,25,.05); }
.login-panel h2 { margin-bottom: 26px; font-size: 30px; font-weight: 800; }
.form-field { margin-bottom: 20px; }
.form-field label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 700; }
.form-field input { display: block; width: 100%; padding: 11px 13px; border: 1px solid #bbc7bc; border-radius: 12px; background: #fff; color: var(--ink); }
.form-field input:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--green-mid); }
.field-error { margin: 5px 0 0; color: #a22929; font-size: 13px; }
.field-hint { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.button-full { width: 100%; }
.login-help { margin: 22px 0 0; color: var(--muted); font-size: 13px; }
.flash-list { padding-top: 14px; }
.flash { margin: 0 0 8px; padding: 10px 14px; border-left: 3px solid var(--gold); background: #fff; }
.flash-error, .flash-danger { border-color: #b94747; }
.flash-success { border-color: #3a8b58; }
.error-section { padding-block: 90px 120px; }
.error-section .button { margin-top: 12px; }
.placeholder-section { max-width: 760px; padding-block: 90px 120px; }
.placeholder-section h1 { margin-bottom: 20px; font-size: clamp(42px, 5vw, 62px); font-weight: 800; }
.placeholder-section > p:not(.eyebrow) { max-width: 650px; color: var(--muted); font-size: 18px; }
.placeholder-card { display: flex; flex-direction: column; gap: 4px; margin-top: 36px; padding: 24px; border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 6px; background: #fff; }
.placeholder-card span { color: var(--muted); font-size: 12px; font-weight: 750; letter-spacing: .12em; text-transform: none; }
.placeholder-card strong { font-family: var(--font-ui); font-size: 22px; font-weight: 800; }
.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; padding-block: 24px; }

@media (max-width: 700px) {
  .header-inner { min-height: 74px; padding-block: 10px; }
  .brand-caption { display: none; }
  .site-nav { gap: 13px; }
  .nav-home { display: none; }
  .hero-inner { min-height: 0; grid-template-columns: 1fr; gap: 45px; padding-block: 65px; }
  .hero-card { width: min(230px, 85%); }
  .coming-soon, .login-section { grid-template-columns: 1fr; gap: 25px; padding-block: 62px; }
  .footer-inner { flex-direction: column; gap: 3px; }
}

@media (max-width: 420px) {
  .container { width: min(1120px, calc(100% - 28px)); }
  .brand-mark { width: 36px; height: 36px; font-size: 14px; }
  .brand-wordmark { font-size: 18px; }
  .nav-user { max-width: 84px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .nav-button, .nav-login { padding: 7px 10px; }
  .login-panel { padding: 23px; }
}

.archive-hero { padding-block: 64px 48px; background: linear-gradient(120deg, var(--green-deep), var(--green-mid)); color: #fff; }
.archive-hero h1, .archive-content h1 { font-size: clamp(42px, 6vw, 68px); font-weight: 800; margin-bottom: 20px; }
.archive-hero > .container > p:not(.eyebrow) { color: #d6e1d7; font-size: 18px; }
.archive-stats { display: flex; flex-wrap: wrap; gap: 30px 64px; margin-top: 32px; }
.archive-stats > span { display: flex; flex-direction: column; color: #d6e1d7; font-size: 13px; }
.archive-stats strong { color: var(--gold); font: 800 34px/1.3 var(--font-ui); }
.archive-stats-light { margin-bottom: 32px; }
.archive-stats-light > span { color: var(--muted); }
.archive-stats-light strong { color: var(--green); }
.archive-content { padding-block: 54px 72px; }
.archive-content h2 { font-size: 34px; font-weight: 800; margin-bottom: 20px; }
.event-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.event-card { display: block; padding: 26px; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: 22px; text-decoration: none; }
a.event-card:hover { border-color: var(--green-mid); box-shadow: 0 8px 24px #10281c0d; }
.archive-label { color: var(--muted); font-size: 11px; letter-spacing: .12em; font-weight: 750; text-transform: none; }
.event-card h3 { margin: 12px 0; font: 800 27px/1.2 var(--font-ui); }
.event-card p { color: var(--muted); font-size: 13px; }
.event-champion { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; }
.event-champion > span:last-child { margin-left: auto; }
.archive-section { margin-top: 56px; }
.archive-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.archive-search label { display: block; font-size: 13px; margin-bottom: 5px; font-weight: 650; }
.archive-search > div { display: flex; gap: 8px; }
.archive-search input { min-width: 0; width: 200px; padding: 10px; border: 1px solid #bbc7bc; border-radius: 12px; }
.archive-note { color: var(--muted); font-size: 14px; max-width: 850px; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.archive-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 14px; font-variant-numeric: tabular-nums; }
.archive-table th, .archive-table td { padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.archive-table thead { background: #edf0e9; color: var(--green); font-size: 12px; }
.archive-table thead th { white-space: nowrap; }
.archive-table tbody tr:last-child > * { border-bottom: 0; }
.archive-table tbody tr:hover { background: #fafbf8; }
.archive-table small { display: block; color: var(--muted); font-size: 12px; margin-top: 4px; }
.archive-table a { text-underline-offset: 3px; }
.archive-table td { min-width: 100px; }
.match-table { min-width: 820px; table-layout: fixed; }
.match-table th:nth-child(1) { width: 19%; }
.match-table th:nth-child(2) { width: 14%; }
.match-table th:nth-child(3) { width: 18%; }
.match-table th:nth-child(4) { width: 20%; }
.match-table details { margin-top: 8px; font-size: 12px; }
summary { cursor: pointer; }
.source-reference { overflow-wrap: anywhere; color: var(--muted); font-size: 12px; }
.archive-issue { border-bottom: 1px solid var(--line); padding: 16px 0; }
.archive-issue p, .match-table details p { margin: 12px 0 0; }
.archive-back { display: inline-block; margin-bottom: 32px; font-size: 14px; text-underline-offset: 4px; }
.archive-callout { border-left: 3px solid var(--gold); background: #eeece3; padding: 18px 22px; font-size: 14px; }
.archive-provenance { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); }
.archive-provenance h2 { font-size: 25px; color: var(--ink); }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible, .table-scroll:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
@media (max-width: 850px) { .event-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .event-grid { grid-template-columns: 1fr; }
  .archive-hero { padding-block: 44px 36px; }
  .archive-content { padding-block: 36px 52px; }
  .archive-section-heading { align-items: stretch; flex-direction: column; gap: 8px; }
  .archive-search { margin-bottom: 20px; }
  .archive-search input { flex: 1; }
  .archive-table th, .archive-table td { padding: 12px; }
  .archive-stats { gap: 20px 32px; }
}

/* Fixed bracket geometry keeps advancement lines intact on narrow screens. */
.bracket-scroll { overflow-x: auto; padding: 24px; border: 1px solid var(--line); border-radius: 6px; background: #f0f1ea; }
.playoff-bracket { position: relative; }
.bracket-lines { position: absolute; inset: 0; pointer-events: none; }
.bracket-lines path { fill: none; stroke: #8b9c8b; stroke-width: 2; }
.bracket-round { position: absolute; top: 0; width: 220px; margin: 0; color: var(--muted); font-size: 12px; font-weight: 750; letter-spacing: .08em; text-transform: none; }
.bracket-match { position: absolute; width: 220px; height: 96px; overflow: hidden; border: 1px solid #b9c5b8; border-radius: 16px; background: #fff; box-shadow: 0 3px 10px #10281c08; }
.bracket-player { height: 47px; display: flex; align-items: center; gap: 10px; padding: 0 12px; font-size: 14px; }
.bracket-player + .bracket-player { border-top: 1px solid var(--line); }
.bracket-player a { text-decoration: none; font-weight: 650; }
.bracket-player a:hover { text-decoration: underline; }
.bracket-seed { width: 18px; font-size: 11px; opacity: .75; }
.bracket-score { margin-left: auto; font-weight: 750; font-variant-numeric: tabular-nums; }
.bracket-winner { color: #fff; background: var(--green-mid); }
.bracket-win-label { color: #ecd28b; font-size: 10px; font-weight: 800; }
.bracket-champion { position: absolute; width: 220px; height: 96px; display: flex; flex-direction: column; justify-content: center; padding: 12px 20px; border: 1px solid var(--gold); border-left: 4px solid var(--gold); border-radius: 16px; background: var(--green-deep); color: #fff; }
.bracket-champion span { color: var(--gold); font-size: 11px; text-transform: none; letter-spacing: .08em; }
.bracket-champion a { font: 800 28px/1.4 var(--font-ui); text-decoration: none; }
.bracket-champion a:hover { text-decoration: underline; }
.bracket-scroll:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 600px) { .bracket-scroll { padding: 16px; } }

.record-sort { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; padding-block: 4px; }
.record-sort:hover { text-decoration: underline; }
.record-sort span { font-size: 15px; }
.archive-table th[aria-sort] { background: #dde6d8; }

.player-dashboard { display: grid; grid-template-columns: minmax(0, 2fr) minmax(240px, 1fr); gap: 32px; padding-block: 56px 80px; }
.dashboard-empty, .dashboard-profile { padding: 32px; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.dashboard-empty h2 { font-size: 36px; font-weight: 800; }
.dashboard-empty > p:not(.eyebrow) { max-width: 540px; color: var(--muted); }
.dashboard-profile { border-top: 3px solid var(--gold); }
.dashboard-profile h2 { font-size: 28px; overflow-wrap: anywhere; }
.dashboard-profile dl { margin: 24px 0; }
.dashboard-profile dt { color: var(--muted); font-size: 12px; }
.dashboard-profile dd { margin: 0 0 14px; overflow-wrap: anywhere; }
.preference-field { margin-bottom: 24px; }
.preference-field input { width: 18px; height: 18px; vertical-align: middle; accent-color: var(--green-mid); }
.preference-field label { font-size: 14px; }
.approval-actions { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; margin-top: 28px; }
.profile-identity, .history-profile-link { overflow-wrap: anywhere; }
.history-profile-link { margin-top: 20px; }
@media (max-width: 700px) { .player-dashboard { grid-template-columns: 1fr; padding-block: 32px; } }

.admin-nav { display: flex; flex-wrap: wrap; gap: 24px; margin-bottom: 36px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.admin-nav a { font-weight: 650; text-underline-offset: 5px; }
.admin-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; margin-block: 24px 32px; }
.admin-form { max-width: 700px; }
.form-field select, .form-field textarea { display: block; width: 100%; padding: 11px 13px; border: 1px solid #bbc7bc; border-radius: 12px; background: #fff; color: var(--ink); font: inherit; }
.form-field textarea { min-height: 120px; resize: vertical; }
select:focus-visible, textarea:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.review-buttons { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.review-buttons .button { padding: 8px 12px; font-size: 13px; }
.button-secondary { background: #edf0e9; color: var(--green); border: 1px solid var(--line); }
.activity-entry { padding: 24px 0; border-bottom: 1px solid var(--line); }
.activity-entry h2 { font-size: 25px; }
.activity-entry pre { white-space: pre-wrap; overflow-wrap: anywhere; font: 13px/1.6 system-ui, sans-serif; }
.league-dates { display: flex; gap: 24px 48px; flex-wrap: wrap; padding: 24px; background: #edf0e9; border-radius: 6px; }
.league-dates span, .league-dates strong { display: block; }
.league-dates span { color: var(--muted); font-size: 12px; }
.league-description { white-space: pre-wrap; overflow-wrap: anywhere; }
.registration-status { display: inline-block; padding: 5px 12px; background: #edf0e9; border-radius: 12px; font-weight: 650; }
.member-event { margin-bottom: 16px; }
@media (max-width: 700px) { .header-inner { flex-wrap: wrap; } .site-nav { flex-wrap: wrap; } }

.match-records > summary { cursor: pointer; font-weight: 700; padding: 12px 0; }
.match-filter { margin: 16px 0; }
.match-filter label { display: block; font-weight: 700; margin-bottom: 10px; }
.match-filter input { display: block; width: 100%; max-width: 520px; padding: 10px; margin-top: 6px; font: inherit; border: 1px solid var(--muted); border-radius: 12px; }
.match-records [hidden] { display: none !important; }
.standings-footnote { font-size: 12px; margin-top: 10px; }

/* Event operation controls stay readable on the player dashboard and mobile. */
.dashboard-match { margin: 20px 0; padding-top: 16px; border-top: 1px solid var(--line); }
.dashboard-match h4 { margin: 0 0 8px; }
.dashboard-match details { margin: 12px 0; }
.dashboard-match summary { cursor: pointer; font-weight: 700; color: var(--green-mid); }
.dashboard-match form { margin-top: 16px; }
.admin-form fieldset { margin: 18px 0; padding: 16px; border: 1px solid var(--line); border-radius: 12px; min-width: 0; }
.admin-form legend { font-weight: 700; padding: 0 6px; }
.admin-form > label { display: block; margin: 16px 0; }
.draft-seating { line-height: 1.8; }
.dashboard-profile { align-self: start; }

/* Shared game-win controls for players and event operators. */
.admin-form .scoreboard { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding: 20px 12px; }
.admin-form .scoreboard[hidden] { display: none; }
.score-player { display: flex; flex-direction: column; align-items: center; min-width: 0; text-align: center; }
.score-player label { font-weight: 700; overflow-wrap: anywhere; }
.score-actions { display: flex; gap: 12px; }
.score-actions button { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: var(--cream); color: var(--green); font-size: 24px; cursor: pointer; }
.score-actions button:disabled { opacity: .4; cursor: default; }
.score-number { width: 100%; min-width: 0; max-width: 150px; margin: 8px 0; border: 1px solid transparent; border-radius: 12px; background: transparent; color: var(--green); font-size: clamp(64px, 8vw, 92px); line-height: 1.2; text-align: center; appearance: textfield; -moz-appearance: textfield; }
.score-number::-webkit-inner-spin-button, .score-number::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.score-number:focus, .score-actions button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
@media (max-width: 900px) {
  .header-inner { flex-wrap: wrap; gap: 12px; }
  .site-nav { flex-wrap: wrap; justify-content: flex-end; }
}
@media (max-width: 700px) {
  .site-nav { width: 100%; justify-content: flex-start; }
  .nav-user { max-width: none; overflow: visible; }
}

.form-error-bubble { border: 1px solid #b94747; border-radius: 12px; background: #fff2f2; color: #782b2b; margin-top: 12px; max-width: 42rem; }

.current-match { margin: 1rem 0; padding: 1rem; border: 2px solid var(--gold); border-radius: 12px; }
.current-match h4, .dashboard-match h5 { margin: 0 0 .75rem; font-size: 1.15rem; }
.previous-rounds { margin: 1rem 0; }
.previous-rounds > summary { cursor: pointer; font-weight: 700; padding: .75rem 0; }
.submitted-report p { margin: .4rem 0; }
.confirm-report { margin: 1rem 0; }

.member-event .submitted-report .report-outcome { font-size: 1.05rem; font-weight: 600; color: var(--ink); }

/* A friendly club-room feel, in the same green and gold. */
h1, h2, h3 { text-wrap: balance; }
.button { justify-content: center; min-height: 46px; border-radius: 999px; gap: 12px; transition: background .15s, transform .15s; }
.button-primary { box-shadow: 0 3px 0 #a78a44; }
.button-primary:hover { transform: translateY(-1px); }
.button-primary:active { transform: translateY(1px); box-shadow: 0 1px 0 #a78a44; }
.archive-hero { padding-block: 44px 36px; }
.archive-content h1, .archive-hero h1 { font-size: clamp(36px, 5vw, 58px); letter-spacing: -.045em; }
.archive-content h2 { font-size: 28px; }
.archive-label, .eyebrow { letter-spacing: .04em; }
.archive-stats strong { letter-spacing: -.045em; }
.event-card h3 { font-size: 25px; }
.event-card h3 a { text-decoration: none; }
.event-card h3 a:hover { text-decoration: underline; }
.archive-callout { border-radius: 14px; }
.admin-nav { gap: 8px; }
.admin-nav a { padding: 7px 14px; border-radius: 999px; background: #e9ede3; text-decoration: none; }
.dashboard-hero { background: var(--cream); color: var(--green); padding-block: 36px 0; }
.dashboard-hero .eyebrow { color: #7f651f; margin-bottom: 8px; }
.dashboard-hero h1 { margin-bottom: 8px; }
.dashboard-hero > .container > p:not(.eyebrow) { color: var(--muted); font-size: 16px; }
.player-dashboard { grid-template-columns: minmax(0, 1fr) 260px; align-items: start; padding-block: 24px 60px; }
.player-dashboard h2 { font-size: 23px; }
.member-event { padding: 24px; margin-bottom: 24px; border: 1px solid var(--line); box-shadow: 0 5px 0 #e8e9df; }
.member-event > .archive-label { display: inline-block; padding: 3px 10px; border-radius: 999px; background: #edf0e9; color: var(--green-mid); }
.member-event h3 { margin-block: 12px 8px; }
.member-event .record-chip { display: inline-block; padding: 5px 12px; margin: 0; border-radius: 999px; background: #f5edda; color: var(--green); }
.current-match { margin: 20px 0 14px; padding: 22px; background: #f6f7f2; border: 0; border-radius: 18px; }
.current-match > h4 { font-size: 12px; color: #5b655b; margin: 0 0 16px; letter-spacing: .05em; }
.dashboard-match { border: 0; margin: 0; padding: 0; }
.match-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.match-heading h5, .match-heading h2 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 20px; min-width: 0; overflow-wrap: anywhere; }
.match-heading small { display: block; font-size: 11px; color: var(--muted); font-weight: 500; }
.match-avatar { flex-shrink: 0; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 14px; background: var(--green-mid); color: var(--gold); font-size: 22px; font-weight: 800; }
.due-chip { font-size: 11px; color: var(--muted); }
.quick-report { margin: 0; }
.quick-report fieldset { min-width: 0; border: 0; padding: 0; margin: 0; }
.quick-report legend { font-size: 22px; font-weight: 800; padding: 0; margin-bottom: 3px; }
.report-hint, .member-event .report-hint { color: var(--muted); font-size: 12px; margin: 7px 0 12px; }
.score-pick-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-block: 18px; }
.score-pick { position: relative; cursor: pointer; min-width: 0; }
.score-pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.score-pick > span { display: flex; flex-direction: column; align-items: center; padding: 15px 4px; border: 2px solid #dde3d8; border-radius: 16px; background: #fff; transition: background .15s, border-color .15s; }
.score-pick strong { font-size: clamp(25px, 3vw, 34px); line-height: 1.2; letter-spacing: -.06em; }
.score-pick small { color: var(--muted); margin-top: 5px; font-size: 12px; }
.score-pick:hover > span { border-color: var(--gold); }
.score-pick input:checked + span { background: var(--green-mid); border-color: var(--green-mid); color: #fff; box-shadow: 0 3px 0 #10281c30; }
.score-pick input:checked + span small { color: #e6d59c; }
.score-pick input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 3px; }
.report-submit { width: 100%; margin-block: 12px 6px; font-size: 15px; }
.report-extras { font-size: 13px; margin: 12px 0; }
.report-extras > summary { color: var(--green-mid); font-weight: 600; padding-block: 5px; }
.quick-report .kind-picks { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.kind-picks legend { font-size: 14px; margin-bottom: 8px; }
.kind-picks label { display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; border: 1px solid var(--line); background: white; border-radius: 10px; cursor: pointer; }
.kind-picks input, .concession-check input { accent-color: var(--green-mid); }
.kind-picks label:has(input:checked) { border-color: var(--green-mid); background: #e9efdf; }
.report-note { display: block; margin-top: 16px; font-weight: 600; }
.report-note span { font-weight: 400; color: var(--muted); }
.report-note textarea { display: block; margin-top: 6px; width: 100%; min-height: 70px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; font: inherit; resize: vertical; }
.concession-check { display: none; margin: 12px 0; }
.special-result { display: none; border-radius: 14px; background: #e9efdf; padding: 18px; }
.special-result span { display: block; font-size: 13px; margin-top: 4px; }
.quick-report:has([name="kind"]:checked:not([value="played"])) .score-picks { display: none; }
.quick-report:has([name="kind"]:checked:not([value="played"])) .special-result { display: block; }
.quick-report:has([value="i_conceded"]:checked, [value="opponent_conceded"]:checked) .concession-check { display: block; }
.match-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-top: 16px; margin-top: 12px; border-top: 1px solid var(--line); font-size: 11px; color: var(--muted); }
.match-footer a { color: var(--green-mid); font-weight: 600; }
.match-status, .member-event .match-status { padding: 10px 12px; border-radius: 12px; background: #e7edde; color: var(--green-mid); font-size: 13px; }
.report-caption { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 13px; }
.status-pill { display: inline-block; font-size: 10px; padding: 4px 8px; border-radius: 999px; background: #e8edde; color: var(--green-mid); }
.status-done { font-size: 12px; }
.result-board { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 12px; align-items: center; text-align: center; padding: 22px 0; }
.result-board strong { display: flex; align-items: center; gap: 16px; font-size: 48px; letter-spacing: -.04em; line-height: 1; }
.result-board strong > span { font-size: 24px; color: var(--muted); }
.result-player { font-size: 14px; font-weight: 700; overflow-wrap: anywhere; }
.result-message, .member-event .result-message { font-size: 20px; font-weight: 750; color: var(--green); padding-block: 14px; }
.previous-rounds { border-top: 1px solid var(--line); padding-top: 6px; font-size: 13px; }
.previous-rounds .dashboard-match { padding: 20px 0; border-top: 1px solid var(--line); }
.dashboard-profile { background: #edf0e7; border: 0; border-radius: 20px; padding: 22px; }
.dashboard-profile .eyebrow { font-size: 11px; margin-bottom: 8px; }
.dashboard-profile h2 { margin-bottom: 14px; }
.profile-details { font-size: 13px; margin-bottom: 16px; }
.profile-details dl { margin-block: 12px; }
.dashboard-profile > a { font-size: 13px; }
.match-page { max-width: 760px; }
.match-page .archive-back { margin-bottom: 22px; }
.match-surface { background: #fff; border: 1px solid var(--line); padding: 28px; border-radius: 24px; box-shadow: 0 5px 0 #e8e9df; }
.match-help { margin-top: 28px; font-size: 13px; color: var(--muted); }
.match-help summary { margin-bottom: 16px; color: var(--green-mid); font-weight: 700; }
@media (max-width: 760px) {
  .player-dashboard { grid-template-columns: 1fr; gap: 24px; }
  .dashboard-profile { padding: 20px; }
  .member-event { padding: 18px; }
  .current-match { padding: 16px; }
  .match-surface { padding: 20px; }
}
@media (max-width: 420px) {
  .score-pick-grid { gap: 6px; }
  .score-pick strong { font-size: 25px; }
  .score-pick small { font-size: 11px; }
  .score-pick > span { padding: 14px 3px; border-radius: 12px; }
  .result-board { gap: 8px; }
  .result-board strong { font-size: 40px; gap: 8px; }
  .due-chip { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .button, .score-pick > span { transition: none; } }

/* Preserve the original identity in the header and homepage hero. */
.site-header, .hero { font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.hero h1 { font-family: Georgia, "Times New Roman", serif; line-height: 1.12; letter-spacing: -.035em; text-wrap: wrap; }
.hero .eyebrow { letter-spacing: .19em; text-transform: uppercase; }
.hero .button { justify-content: space-between; min-height: auto; gap: 24px; border-radius: 4px; box-shadow: none; transform: none; transition: none; }
