:root {
  --ink: #111827; --muted: #667085; --line: #e5e7eb; --paper: #fff;
  --canvas: #f5f6f2; --green: #0b6b50; --green-dark: #074d3b;
  --lime: #d9f99d; --navy: #111827; --amber: #f59e0b; --red: #b42318;
  --radius: 18px; --shadow: 0 12px 36px rgba(17,24,39,.08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 15px/1.55 "DM Sans", sans-serif; }
body.is-loading { overflow: hidden; }
.loading-screen { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; background: rgba(17,24,39,.76); backdrop-filter: blur(6px); opacity: 0; visibility: hidden; transition: opacity .18s ease, visibility .18s ease; }
.loading-screen.visible { opacity: 1; visibility: visible; }
.loader { min-width: min(340px, 100%); padding: 30px; border-radius: 18px; background: white; box-shadow: 0 24px 70px rgba(0,0,0,.24); text-align: center; }
.loader strong, .loader small { display: block; }
.loader strong { font: 800 17px "Manrope", sans-serif; }
.loader small { margin-top: 4px; color: var(--muted); font-size: 12px; }
.spinner { display: block; width: 38px; height: 38px; margin: 0 auto 17px; border: 4px solid #dfe9e4; border-top-color: var(--green); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
a { color: inherit; }
.shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.site-header { background: rgba(17,24,39,.97); color: #fff; position: sticky; top: 0; z-index: 20; box-shadow: 0 1px rgba(255,255,255,.08); }
.nav-wrap { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; min-width: max-content; }
.brand-mark { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--lime); color: var(--navy); font: 800 13px "Manrope"; letter-spacing: -.03em; transform: rotate(-3deg); }
.brand strong { display: block; font: 800 15px "Manrope"; letter-spacing: -.02em; }
.brand small { display: block; color: #98a2b3; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; margin-top: 1px; }
.main-nav { display: flex; gap: 5px; }
.main-nav a { padding: 9px 13px; border-radius: 9px; color: #cbd5e1; font-weight: 600; font-size: 14px; text-decoration: none; white-space: nowrap; }
.main-nav a:hover, .main-nav a.active { color: white; background: rgba(255,255,255,.1); }
.hero { background: var(--navy); color: white; overflow: hidden; position: relative; }
.hero:after { content: ""; position: absolute; width: 440px; height: 440px; right: -140px; bottom: -300px; background: var(--green); border-radius: 50%; opacity: .55; }
.hero-inner { min-height: 430px; padding-block: 80px 76px; display: grid; align-content: center; position: relative; z-index: 1; }
.eyebrow { margin: 0 0 15px; color: var(--green-dark); font-weight: 800; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.hero .eyebrow { color: var(--lime); }
h1, h2, h3 { font-family: "Manrope", sans-serif; letter-spacing: -.035em; line-height: 1.08; }
h1 { max-width: 760px; margin: 0; font-size: clamp(42px, 7vw, 74px); }
.hero-copy { max-width: 590px; color: #cbd5e1; font-size: 18px; margin: 22px 0 30px; }
.button-row { display: flex; flex-wrap: wrap; gap: 11px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 45px; padding: 11px 18px; border: 0; border-radius: 11px; background: var(--green); color: white; font: 700 14px "DM Sans"; text-decoration: none; cursor: pointer; }
.button:hover { background: var(--green-dark); transform: translateY(-1px); }
.button-light { background: white; color: var(--navy); }
.button-light:hover { background: var(--lime); }
.button-secondary { background: #eef2ee; color: var(--green-dark); }
.home-section { padding-block: 64px 78px; }
.section-heading { max-width: 620px; margin-bottom: 28px; }
.section-heading h2 { font-size: 32px; margin: 0 0 9px; }
.section-heading p { margin: 0; color: var(--muted); font-size: 16px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; text-decoration: none; box-shadow: 0 2px 0 rgba(17,24,39,.02); transition: .2s ease; }
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #cbd5e1; }
.feature-icon { width: 43px; height: 43px; display: grid; place-items: center; border-radius: 12px; background: #e7f2ed; color: var(--green); font-size: 20px; font-weight: 800; }
.feature-card h3 { margin: 22px 0 8px; font-size: 20px; }
.feature-card p { margin: 0 0 20px; color: var(--muted); }
.text-link { color: var(--green); font-weight: 700; }
.page { padding-block: 46px 76px; min-height: calc(100vh - 154px); }
.page-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.page-head h1 { font-size: clamp(30px, 5vw, 46px); margin: 0; max-width: 850px; }
.page-head .subtitle { color: var(--muted); font-size: 16px; margin: 10px 0 0; }
.crumb { display: inline-block; margin-bottom: 12px; color: var(--green); font-weight: 700; font-size: 13px; text-decoration: none; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 4px 20px rgba(17,24,39,.04); overflow: hidden; }
.teams-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.team-card { padding: 22px; display: flex; align-items: center; justify-content: space-between; gap: 18px; background: white; border: 1px solid var(--line); border-radius: 16px; }
.team-card h2 { font-size: 18px; margin: 0 0 5px; }
.team-meta { color: var(--muted); font-size: 13px; }
.team-number { display: inline-grid; place-items: center; min-width: 32px; height: 26px; border-radius: 8px; background: #eef2ee; color: var(--green-dark); font-weight: 800; margin-right: 5px; }
.table-scroll { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table th { padding: 14px 12px; background: #f8faf9; color: #667085; text-align: left; font-size: 11px; line-height: 1.25; letter-spacing: .045em; text-transform: uppercase; border-bottom: 1px solid var(--line); white-space: nowrap; }
.data-table td { padding: 15px 12px; border-bottom: 1px solid #edf0ee; vertical-align: top; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: #fbfcfb; }
.player-name { font-weight: 800; font-size: 14px; white-space: nowrap; }
.player-cell { display: inline-flex; align-items: center; gap: 10px; min-width: max-content; }
.player-avatar { width: 40px; height: 40px; flex: 0 0 40px; position: relative; overflow: hidden; border: 1px solid #dfe5e1; border-radius: 50%; background: #eef2ee; }
.player-headshot { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.player-avatar-fallback { width: 100%; height: 100%; place-items: center; color: var(--green-dark); font-size: 9px; font-weight: 800; }
.player-avatar-fallback:not([hidden]) { display: grid; }
.position { display: inline-grid; place-items: center; min-width: 34px; padding: 4px 7px; border-radius: 7px; background: var(--navy); color: white; font-size: 11px; font-weight: 800; }
.badge { display: inline-flex; align-items: center; border-radius: 99px; padding: 4px 8px; background: #e7f2ed; color: var(--green-dark); font-size: 11px; line-height: 1.25; font-weight: 800; white-space: nowrap; }
.badge-muted { background: #f2f4f7; color: #475467; }
.badge-positive { background: #dcfae6; color: #067647; }
.badge-negative { background: #fee4e2; color: var(--red); }
.value-chip { display: inline-flex; align-items: center; justify-content: center; min-width: 58px; padding: 5px 9px; border-radius: 8px; font-weight: 800; white-space: nowrap; }
.value-positive { background: #dcfae6; color: #067647; }
.value-negative { background: #fee4e2; color: var(--red); }
.value-neutral { background: #f2f4f7; color: #667085; }
.value-detail { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; white-space: nowrap; }
.kept { color: var(--green); font-size: 17px; font-weight: 800; }
.reason { display: block; max-width: 220px; color: var(--muted); font-size: 11px; line-height: 1.35; margin-top: 4px; }
.table-note { margin: 16px 4px 0; color: var(--muted); font-size: 12px; }
.search-panel { padding: 22px; margin-bottom: 22px; }
.search-form { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(200px, .65fr) auto; gap: 14px; align-items: end; }
.field label { display: block; margin-bottom: 7px; color: #344054; font-size: 12px; font-weight: 800; }
.field input, .field select { width: 100%; height: 45px; padding: 0 13px; border: 1px solid #d0d5dd; border-radius: 10px; background: white; color: var(--ink); font: 500 14px "DM Sans"; outline: none; }
.field input:focus, .field select:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(11,107,80,.12); }
.empty-state { padding: 48px 22px; text-align: center; color: var(--muted); }
.empty-state strong { display: block; color: var(--ink); font: 700 20px "Manrope"; margin-bottom: 5px; }
.site-footer { padding: 24px 0; background: #e9ece8; color: var(--muted); font-size: 12px; }
.site-footer .shell { display: flex; justify-content: space-between; gap: 20px; }
@media (max-width: 820px) {
  .shell { width: min(100% - 28px, 1180px); }
  .nav-wrap { min-height: 68px; }
  .brand small { display: none; }
  .main-nav a { padding: 8px 9px; font-size: 12px; }
  .hero-inner { min-height: 390px; padding-block: 62px; }
  .feature-grid, .teams-grid { grid-template-columns: 1fr; }
  .search-form { grid-template-columns: 1fr 1fr; }
  .search-form .button { grid-column: 1 / -1; }
  .page-head { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 620px) {
  .shell { width: min(100% - 22px, 1180px); }
  .brand strong { font-size: 13px; }
  .brand-mark { width: 35px; height: 35px; border-radius: 10px; }
  .main-nav { gap: 0; }
  .main-nav a { padding-inline: 7px; }
  .main-nav a:last-child { font-size: 0; }
  .main-nav a:last-child:after { content: "Keepers"; font-size: 12px; }
  .hero-inner { min-height: 385px; }
  h1 { font-size: 42px; }
  .hero-copy { font-size: 16px; }
  .home-section, .page { padding-block: 38px 52px; }
  .feature-card { padding: 22px; }
  .team-card { align-items: flex-start; flex-direction: column; }
  .team-card .button { width: 100%; }
  .search-panel { padding: 16px; }
  .search-form { grid-template-columns: 1fr; }
  .search-form .button { grid-column: auto; width: 100%; }
  .panel.mobile-cards { border: 0; background: none; box-shadow: none; overflow: visible; }
  .mobile-cards .table-scroll { overflow: visible; }
  .mobile-cards .data-table, .mobile-cards tbody, .mobile-cards tr, .mobile-cards td { display: block; width: 100%; }
  .mobile-cards .data-table thead { display: none; }
  .mobile-cards .data-table tr { margin-bottom: 12px; padding: 12px 15px; background: white; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 3px 12px rgba(17,24,39,.04); }
  .mobile-cards .data-table td { display: grid; grid-template-columns: minmax(88px, 34%) 1fr; gap: 12px; padding: 8px 0; border-bottom: 1px solid #edf0ee; text-align: left; }
  .mobile-cards .data-table td:last-child { border: 0; }
  .mobile-cards .data-table td:before { content: attr(data-label); color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
  .mobile-cards .data-table td[data-primary] { display: block; padding: 4px 0 11px; }
  .mobile-cards .data-table td[data-primary]:before { display: none; }
  .reason { max-width: none; }
  .site-footer .shell { flex-direction: column; gap: 3px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
