:root {
  color-scheme: light;
  --paper: #f4f3e9;
  --ink: #182b22;
  --muted: #45594d;
  --green: #075640;
  --line: #c9d2c4;
  --lime: #d9f27a;
  --bronze: #775728;
  --pitch-lime: #def785;
  --red: #a73121;
  --serif: "Songti SC", "Noto Serif CJK SC", SimSun, serif;
  --sans: "PingFang SC", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 24px; scrollbar-gutter: stable; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.7 var(--sans); }
a { color: inherit; text-underline-offset: 0.24em; }
a:focus-visible { outline: 3px solid #9e560e; outline-offset: 5px; }
.wrap { width: min(1160px, calc(100% - 64px)); margin-inline: auto; }
.skip { position: absolute; top: 8px; left: 8px; z-index: 1; padding: 8px 14px; background: white; transform: translateY(-200%); }
.skip:focus { transform: none; }

.icon-library { position: absolute; overflow: hidden; pointer-events: none; }
.icon {
  display: inline-block;
  flex: 0 0 auto;
  width: 1.15em;
  height: 1.15em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-tile {
  display: inline-grid;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 10px;
  background: #e2efe4;
  color: var(--green);
  font-size: 20px;
}
.site-nav a, .pitch-heading h2, .roster-heading h2,
.roster-filters label > span, .local-inner h2,
.import-note strong, .mini-board-label, .entry h3 {
  display: flex;
  align-items: center;
  gap: .45em;
}
.site-nav .icon, .roster-heading .icon { color: var(--green); }
.step-top { display: flex; justify-content: space-between; align-items: center; }

.site-header {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 4px solid var(--green);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 16px; text-decoration: none; }
.brand-caption { padding-left: 16px; border-left: 1px solid var(--line); color: var(--muted); font-size: 13px; font-weight: 700; white-space: nowrap; }
.brand img { display: block; width: 153px; max-width: 100%; height: auto; }
.header-link { display: inline-flex; min-height: 44px; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.header-link:hover { text-decoration: underline; }

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #101d19;
  color: #f2f8f4;
}
.hero-inner { padding-top: clamp(36px, 5vw, 78px); }
.hero-main {
  display: grid;
  grid-template-columns: minmax(0, .76fr) minmax(0, 1.24fr);
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
  padding-bottom: clamp(36px, 6vw, 82px);
}
.hero-copy { max-width: 590px; }
.pitch-showcase {
  min-width: 0;
  border-block: 1px solid #6d9d88;
  background: #103a2f;
  box-shadow: 0 25px 55px #071c17a0;
}
.pitch-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; padding: 11px 16px; }
.pitch-heading h2 { font-size: clamp(17px, 2vw, 23px); letter-spacing: 0; }
.pitch-badge { padding: 2px 8px; border: 1px solid #7da491; color: #e0f2e6; font-size: 12px; }
.interactive-pitch {
  position: relative;
  isolation: isolate;
  min-height: 260px;
  aspect-ratio: 8 / 5;
  background: radial-gradient(ellipse at 70% 24%, #c0ef8c52, transparent 66%),
    repeating-linear-gradient(90deg, #235f49 0 10%, #2a6e52 10% 20%);
}
.interactive-pitch > svg { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; stroke: #c4ead6; opacity: .58; }
.pitch-player {
  position: absolute;
  top: var(--y);
  left: var(--x);
  transform: translate(-50%, -50%);
  display: grid;
  justify-items: center;
  gap: 2px;
  width: max-content;
  padding: 3px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #fff;
  font: inherit;
  cursor: pointer;
}
.pitch-player:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.pitch-player:disabled { cursor: default; }
.pitch-wing { --x: 83%; --y: 28%; }
.pitch-midfield { --x: 53%; --y: 51%; }
.pitch-defence { --x: 34%; --y: 72%; }
.pitch-keeper { --x: 13%; --y: 49%; }
.pitch-portrait {
  position: relative;
  display: block;
  width: clamp(44px, 6vw, 73px);
  aspect-ratio: 1;
  border: 2px solid #9ac8b4;
  border-radius: 4px 4px 15px 15px;
  background: #14372d;
  box-shadow: 0 4px 11px #092319b0;
}
.pitch-portrait img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.pitch-number { position: absolute; bottom: 0; right: 0; min-width: 18px; padding: 0 4px; border-radius: 5px 0 13px 0; background: #173b31; color: #fff; font-size: 11px; font-weight: 800; }
.pitch-player strong { padding: 1px 5px; border-radius: 4px; background: #112e25; font-size: 13px; line-height: 1.4; }
.pitch-position { color: #e9f6ed; font-size: 11px; font-weight: 700; text-shadow: 0 1px 3px #091e17; }
.pitch-player[data-selected] { z-index: 1; }
.pitch-player[data-selected] .pitch-portrait,
.pitch-player:enabled:hover .pitch-portrait { border-color: #f0df8d; box-shadow: 0 0 0 3px #f0df8d, 0 5px 14px #102e22; }
.pitch-player[data-selected] strong { background: #f0df8d; color: #233022; }
.pitch-hint { margin: 0; padding: 10px 16px; color: #d0e5da; font-size: 13px; }
.pitch-profile {
  box-sizing: border-box;
  width: min(540px, calc(100% - 28px));
  max-height: calc(100% - 28px);
  max-height: calc(100dvh - 28px);
  margin: auto;
  padding: 0;
  border: 1px solid #b7cbbf;
  border-radius: 16px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 24px 80px #071c18b0;
  overflow: auto;
  overscroll-behavior: contain;
}
html:has(.pitch-profile[open]) { overflow: hidden; }
.pitch-profile::backdrop { background: #061d17b5; }
.profile-topbar { display: flex; align-items: center; gap: 8px 12px; padding: 9px clamp(12px, 3vw, 22px); background: #123c30; color: #fff; }
.profile-topbar h2 { margin: 0; font-size: 18px; letter-spacing: 0; }
.profile-demo { padding: 2px 6px; border: 1px solid #8cb09c; color: #e1f2e7; font-size: 11px; white-space: nowrap; }
.profile-topbar form { margin: 0 0 0 auto; }
.profile-close { display: grid; width: 44px; height: 44px; place-items: center; border: 0; border-radius: 8px; background: #255547; color: #fff; font: 26px/1 var(--sans); cursor: pointer; }
.profile-close:hover { background: #386e5e; }
.profile-close:focus-visible { outline: 2px solid var(--pitch-lime); outline-offset: 2px; }
.pitch-profile-heading { display: grid; grid-template-columns: clamp(58px, 12vw, 82px) minmax(0, 1fr) max-content; align-items: center; gap: 12px; padding: 16px clamp(12px, 3vw, 22px); border-bottom: 1px solid #dce7df; background: #eff6ef; }
.pitch-profile-heading img { display: block; width: 100%; height: auto; border-radius: 10px; }
.pitch-profile-heading .roster-player strong { font-size: clamp(22px, 5vw, 30px); }
.pitch-profile .roster-details { padding: 14px clamp(12px, 3vw, 22px) 20px; background: #fff; }
.directory { padding-block: clamp(28px, 5vw, 56px); }
.roster-filters:not([hidden]) { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 12px clamp(13px, 2vw, 24px); }
.roster-filters label { display: grid; gap: 4px; min-width: 0; color: var(--muted); font-size: 12px; font-weight: 700; }
.roster-filters select { min-width: 0; width: 100%; min-height: 42px; padding-inline: 4px; border: 1px solid #9eb4a7; border-radius: 5px; background: #fff; color: var(--ink); font: inherit; }
.roster-result { margin: 0; padding: 0 clamp(13px, 2vw, 24px) 9px; color: var(--muted); font-size: 13px; }

.roster {
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  border: 1px solid #cad9cf;
  box-shadow: 0 8px 24px #081c1710;
}
.roster-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px 14px;
  padding: 15px clamp(13px, 2vw, 24px);
  border-bottom: 1px solid #dbe6df;
  background: #edf5ee;
}
.roster-heading h2 { margin: 0; font: 800 clamp(18px, 2vw, 23px)/1.25 var(--sans); }
.roster-heading > span { color: var(--muted); font-size: 12px; white-space: nowrap; }
.roster-list { margin: 0; padding: 0; list-style: none; }
.roster-list li + li { border-top: 1px solid #e5ece7; }
.roster-list summary {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) max-content 12px;
  align-items: center;
  gap: clamp(8px, 1.6vw, 18px);
  padding: 10px clamp(13px, 2vw, 24px);
  list-style: none;
  cursor: pointer;
}
.roster-list summary::-webkit-details-marker { display: none; }
.roster-list summary:hover, .roster-list details[open] summary { background: #f1f7f2; }
.roster-list summary:focus-visible { outline: 2px solid var(--green); outline-offset: -3px; }
.roster-list img { display: block; width: 46px; height: 46px; border-radius: 50%; background: #e7efe8; }
.roster-player { display: grid; gap: 2px; line-height: 1.35; }
.roster-player strong { font-size: 16px; }
.roster-player > span { color: var(--muted); font-size: 12px; }
.roster-position { padding: 3px 7px; border-radius: 4px; background: #e7f3e9; color: var(--green); font-size: 12px; font-weight: 700; }
.roster-arrow { width: 7px; height: 7px; border: solid #4c6557; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.roster-list details[open] .roster-arrow { transform: rotate(225deg); }
.roster-details { padding: 10px clamp(13px, 2vw, 24px) 12px; background: #f7faf8; font-size: 14px; }
.profile-section + .profile-section { margin-top: 12px; padding-top: 12px; border-top: 1px solid #dce7df; }
.profile-section p { margin: 0; }
.profile-section .profile-label { display: flex; align-items: center; gap: 7px; margin-bottom: 6px; color: var(--green); font-weight: 800; }
.profile-label small { margin-left: auto; color: var(--muted); font-size: 11px; font-weight: 600; }
.profile-facts, .profile-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; }
.profile-facts > div, .profile-metrics > div { padding: 8px 10px; border-radius: 7px; background: #eaf3eb; }
.profile-facts dt, .profile-metrics dt { display: flex; align-items: center; gap: 4px; color: var(--muted); font-size: 12px; }
.profile-facts dd, .profile-metrics dd { margin: 1px 0 0; font-weight: 800; font-variant-numeric: tabular-nums; }
.profile-metrics dd { font-size: clamp(18px, 4vw, 26px); line-height: 1.2; }
.profile-metrics dd small { color: var(--muted); font-size: 12px; font-weight: 500; }

.local-football { overflow: hidden; background: #e9ebd0; color: #163b2b; border-bottom: 1px solid var(--line); }
.local-inner { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: end; gap: 12px 32px; }
.local-copy { padding-block: clamp(30px, 5vw, 62px); }
.local-inner h2 { font-size: clamp(33px, 5vw, 66px); }
.local-inner p:not(.eyebrow) { margin: 12px 0 0; max-width: 29em; }
.local-art { display: block; width: 100%; height: auto; align-self: end; }

.hero-field {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: radial-gradient(ellipse at 73% -10%, #678b48 0%, #1e5943 35%, #0b2b23 72%);
  pointer-events: none;
}
.hero-field::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, #0a3027 12%, rgba(10, 48, 39, .91) 34%, transparent 77%);
}
.hero-field svg {
  position: absolute;
  top: 50%;
  right: -5%;
  width: max(67%, 660px);
  transform: translateY(-50%) rotate(-13deg);
}
.field-lines { stroke: #c1ded1; stroke-width: 1.5; opacity: .42; }
.field-route { stroke: var(--pitch-lime); stroke-width: 3; stroke-linecap: round; }
.field-points { fill: var(--pitch-lime); stroke: #0a3027; stroke-width: 3; }

@media (prefers-reduced-motion: no-preference) {
  .field-route { animation: trace-route 1.8s ease-out both; }
}
@keyframes trace-route {
  from { stroke-dasharray: 0 1; }
  to { stroke-dasharray: 1 0; }
}

.hero-stages {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  border-top: 1px solid #809d8c;
  list-style: none;
}
.hero-stages li { padding: clamp(12px, 2vw, 23px) 0; font-size: clamp(13px, 1.6vw, 17px); font-weight: 700; }
.hero-stages li + li { padding-left: clamp(8px, 2vw, 24px); border-left: 1px solid #809d8c; }
.hero-stages span { margin-right: .35em; color: var(--pitch-lime); font-variant-numeric: tabular-nums; }
.eyebrow { display: flex; gap: 10px; align-items: center; margin: 0 0 14px; color: var(--green); font-size: 13px; font-weight: 700; letter-spacing: 0.08em; }
.eyebrow span { width: 20px; height: 2px; background: currentColor; }
h1, h2 { font-family: var(--sans); }
h1 { margin: 0; font-size: clamp(46px, 6.7vw, 98px); font-weight: 900; line-height: 1.04; letter-spacing: -0.045em; }
h1 span { color: var(--pitch-lime); }
.hero .eyebrow { display: inline-flex; padding: 5px 11px; border: 1px solid #7fa177; background: #173c30; color: var(--pitch-lime); }
.hero .eyebrow span { width: 6px; height: 6px; transform: rotate(45deg); }
.intro { max-width: 35em; margin: 24px 0; color: var(--muted); font-size: clamp(16px, 1.5vw, 19px); }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 22px; min-height: 48px; padding: 10px 19px; background: var(--green); color: #fff; font-size: 15px; font-weight: 700; text-decoration: none; }
.button:hover { background: #064331; }
.button span { font-size: 19px; line-height: 1; }

.hero .intro { color: #e0ebe3; }
.hero .button { background: var(--pitch-lime); color: #16372d; }
.hero .button:hover { background: #d1f4d4; }
.hero .text-link { color: #fffaf0; }
.hero a:focus-visible { outline-color: #fffaf0; }

.process { padding-block: 42px 58px; border-top: 1px solid var(--line); }
h2 { margin: 0; font-size: clamp(27px, 3.4vw, 46px); line-height: 1.24; letter-spacing: -0.04em; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin: 32px 0 0; padding: 0; list-style: none; }
.steps li { padding-top: 18px; border-top: 2px solid var(--green); }
.step-number { color: var(--green); font: 700 22px/1.2 var(--serif); }
.steps h3 { margin: 10px 0 5px; font-size: 20px; }
.steps p { margin: 0; color: var(--muted); }
.import-note { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 30px 0 0; padding: 12px 16px; border-left: 3px solid #b79a63; background: #f0ebdd; color: var(--muted); }
.import-note strong { color: var(--bronze); }

.site-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 27px; color: var(--muted); font-size: 14px; }
.site-footer a { display: inline-flex; align-items: center; min-height: 32px; }

@media (max-width: 760px) {
  .wrap { width: calc(100% - 40px); }
  .site-header { min-height: 70px; }
  .hero-main, .local-inner { grid-template-columns: 1fr; }
  .local-copy { padding-bottom: 0; }
  .local-art { max-width: 520px; justify-self: end; }
  .hero-field svg { right: -270px; opacity: .38; }
  .hero-field::after { background: linear-gradient(90deg, #0a3027, transparent); }
  .steps { grid-template-columns: 1fr; gap: 18px; }
  .site-footer { flex-direction: column; }
}

.site-nav { display: flex; align-items: center; justify-content: flex-end; gap: clamp(12px, 3vw, 38px); }
.site-nav a { font-size: 14px; text-decoration: none; white-space: nowrap; }
.site-nav a:hover { text-decoration: underline; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.text-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--green); font-weight: 700; }
.text-link:hover { color: #063a2c; }

.features, .entries { padding-block: clamp(40px, 6vw, 80px); border-top: 1px solid var(--line); }
.section-heading { display: grid; grid-template-columns: 1.25fr 1fr; align-items: end; gap: 18px 48px; }
.section-heading > p { max-width: 31em; margin: 0; color: var(--muted); }
.feature-grid, .entry-grid { display: grid; margin: 32px 0 0; padding: 0; }
.feature-grid { grid-template-columns: 1.35fr 1fr 1fr; gap: 12px; list-style: none; }
.feature-grid li { padding: clamp(15px, 2vw, 26px); border: 1px solid var(--line); background: #fafbf5; }
.feature-grid .feature-lead {
  grid-row: span 3;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: radial-gradient(ellipse at 100% 0%, #2b7354, #12372b 70%);
  color: #fff;
}
.feature-grid li:last-child { grid-column: span 2; }
.feature-grid .feature-lead h3 { max-width: 7em; font-size: clamp(24px, 3.4vw, 42px); }
.feature-grid .feature-lead p { color: #dcebdd; }
.feature-measures { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 24px; }
.feature-measures span { padding: 4px 8px; border: 1px solid #a6cdb4; color: #e7f5e7; font-size: 12px; }
.feature-grid h3, .entry h3, .mini-board h3 { margin: 10px 0 6px; line-height: 1.35; }
.feature-grid p, .entry p { margin: 0; color: var(--muted); }

.mini { padding-block: clamp(42px, 7vw, 92px); background: #103d31; color: #f4f6ea; }
.mini-inner { display: grid; grid-template-columns: 1.12fr 1fr; gap: clamp(30px, 6vw, 84px); align-items: center; }
.mini .eyebrow { color: var(--lime); }
.mini-copy > p:not(.eyebrow) { max-width: 37em; }
.mini-note { color: #c7decf; font-size: 14px; }
.button-light { background: var(--lime); color: #1c3126; }
.button-light:hover { background: #edf7a4; }
.mini-board {
  position: relative;
  max-width: 365px;
  width: 100%;
  justify-self: center;
  padding: 35px clamp(14px, 3vw, 27px) 18px;
  border: 6px solid #122a23;
  border-radius: 28px;
  background: #edf4e7;
  color: var(--ink);
  box-shadow: 12px 14px 0 #265647;
}
.mini-board::before { position: absolute; top: 9px; left: 50%; width: 42px; height: 5px; border-radius: 8px; background: #183529; content: ""; transform: translateX(-50%); }
.mini-board-label { margin: 0 0 12px; color: var(--green); font-size: 13px; font-weight: 700; }
.mini-board article { display: grid; grid-template-columns: 42px 1fr; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid #b9cbb4; }
.mini-board h3, .mini-board article p { margin: 0; }
.mini-board article p { color: var(--muted); font-size: 14px; }

.entry-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.entry { display: flex; flex-direction: column; align-items: flex-start; padding: clamp(20px, 3vw, 32px); border: 1px solid var(--line); background: #fbfaf3; }
.entry .entry-type { color: var(--green); font-size: 13px; font-weight: 700; }
.entry h3 { font-size: clamp(17px, 1.8vw, 24px); }
.entry h3 .icon-tile { width: 34px; height: 34px; border-radius: 8px; font-size: 17px; }
.entry p:not(.entry-type) { margin-bottom: 16px; }
.entry a { margin-top: auto; }
.entry-note { margin: 16px 0 0; color: var(--muted); font-size: 14px; }
.site-footer { border-top: 1px solid var(--line); }

@media (max-width: 900px) {
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-grid .feature-lead { grid-row: auto; grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .section-heading, .mini-inner { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .site-header { flex-wrap: wrap; padding-block: 12px; gap: 4px; }
  .site-nav { width: 100%; flex-wrap: wrap; justify-content: space-between; gap: 0 10px; }
  .site-nav a { display: inline-flex; align-items: center; min-height: 44px; gap: 4px; font-size: 13px; }
  .feature-grid, .entry-grid { grid-template-columns: 1fr; }
  .feature-grid li:last-child { grid-column: auto; }
}
