:root{
  --pitch-dark:#0c1f14;
  --pitch:#123622;
  --pitch-line:#e9f5ec;
  --grass:#3fae6a;
  --gold:#e0b23d;
  --ink:#0c1f14;
  --muted:#5d7569;
  --paper:#f4f7f3;
}
*{box-sizing:border-box;}
body{
  margin:0;
  background:var(--pitch-dark);
  color:var(--pitch-line);
  font-family:'Inter',sans-serif;
  line-height:1.45;
}
h1,h3,.eyebrow{font-family:'Anton',sans-serif;}

/* ===== page 1: title, stats, findings — all stacked, deep green throughout ===== */
.intro{
  min-height:100vh;
  display:flex;
  flex-direction:column;
  background:var(--pitch-dark);
  padding:64px 56px;
}

/* hero */
.hero{flex:none;}
.eyebrow{
  text-transform:uppercase;
  letter-spacing:0.17em;
  font-size:13px;
  color:var(--grass);
  font-weight:600;
  margin-bottom:14px;
}
.hero h1{
  font-family:'Archivo Black','Anton',sans-serif;
  font-size:clamp(26px,3.2vw,42px);
  font-weight:400;
  margin:0 0 16px;
  line-height:1.16;
  text-transform:uppercase;
  letter-spacing:0.01em;
  white-space:nowrap;
  color:var(--pitch-line);
}
.hero p{
  font-size:16px;
  color:rgba(233,245,236,0.78);
  margin:0;
  white-space:nowrap;
}

/* stat band — light green boxes */
.stats{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:14px;
  margin-top:36px;
  flex:none;
}
.stat{
  background:var(--grass);
  border-radius:10px;
  padding:20px 22px;
}
.stat .num{
  font-family:'JetBrains Mono',monospace;
  font-size:25px;
  font-weight:700;
  color:var(--pitch-dark);
  display:block;
  letter-spacing:-0.01em;
}
.stat .label{
  font-size:12px;
  color:rgba(12,31,20,0.75);
  margin-top:4px;
  font-weight:500;
}

/* findings — one translucent white panel, 2x2 grid inside */
.findings-panel{
  flex:1;
  display:flex;
  align-items:center;
  margin-top:36px;
  background:rgba(255,255,255,0.08);
  border:1px solid rgba(255,255,255,0.12);
  border-radius:16px;
  padding:36px;
}
.findings-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:32px 40px;
  width:100%;
}
.finding .tag{
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:0.13em;
  color:var(--grass);
  font-weight:700;
  margin-bottom:6px;
}
.finding h2{
  font-family:'Inter',sans-serif;
  font-size:18px;
  margin:0 0 5px;
  line-height:1.3;
  font-weight:700;
  letter-spacing:0.003em;
  color:var(--pitch-line);
}
/* the one factor that actually moved win rate — flag it yellow */
.finding h2 .key{color:var(--gold);}
.finding .sub{color:rgba(233,245,236,0.6);font-size:12.5px;font-weight:500;margin:0;}
.finding-body{margin-top:9px;}
.finding-body p{margin:0 0 8px;color:rgba(233,245,236,0.82);font-size:14px;line-height:1.55;}
.finding-body p:last-child{margin-bottom:0;}
.callout{
  background:rgba(255,255,255,0.08);
  border-left:3px solid var(--grass);
  padding:9px 13px;
  font-size:13px;
  color:var(--pitch-line);
  border-radius:4px;
  margin-top:9px;
}

/* ===== page 2: interactive shot map ===== */
.map-section{
  min-height:100vh;
  display:flex;
  flex-direction:column;
  background:var(--pitch-dark);
  padding:40px 40px 24px;
}
.map-section-header{
  flex:none;
  margin-bottom:16px;
}
/* same family as the hero title, a step lighter than its Archivo Black */
.map-section-header h2{
  font-family:'Archivo','Archivo Black',sans-serif;
  font-weight:700;
  font-size:26px;
  letter-spacing:0.01em;
  margin:8px 0 0;
  color:var(--pitch-line);
}

/* two columns: clickable player-name list on the left, the season label +
   type pills + pitch on the right */
.shot-map-cta{
  flex:1;
  display:flex;
  flex-direction:row;
  align-items:stretch;
  width:100%;
  min-height:0;
  gap:16px;
}
.shot-map-players{
  flex:none;
  width:210px;
  display:flex;
  flex-direction:column;
  gap:4px;
  overflow-y:auto;
  padding-right:4px;
}
.player-item{
  text-align:left;
  background:var(--pitch);
  color:var(--pitch-line);
  border:1px solid rgba(233,245,236,0.14);
  border-radius:8px;
  padding:9px 12px;
  font-family:'Inter',sans-serif;
  font-size:13px;
  cursor:pointer;
  transition:opacity 0.15s ease;
}
.player-item:hover{opacity:0.85;}
.player-item .ko{opacity:0.55;font-size:11px;}
.player-item.active{
  background:var(--grass);
  color:var(--pitch-dark);
  border-color:var(--grass);
  font-weight:600;
}
.player-item.active .ko{opacity:0.7;}
.shot-map-main{
  flex:1;
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:10px;
}
.chart-meta{
  flex:none;
  color:var(--gold);
  font-family:'JetBrains Mono',monospace;
  font-size:14px;
}

/* light-green frame — the ONLY box around the chart. type pills sit
   at its top, the field fills the rest with no separate inner card. */
.shot-map-card{
  flex:1;
  display:flex;
  flex-direction:column;
  background:var(--grass);
  border-radius:16px;
  padding:10px;
  gap:10px;
  min-height:0;
}
.shot-map-header{
  display:flex;
  flex-direction:column;
  gap:12px;
  padding:12px 14px;
  flex:none;
}
.shot-map-types{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:10px;
}
.mode-pills, .type-pills{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
}
.type-divider{
  width:1px;
  align-self:stretch;
  background:rgba(233,245,236,0.18);
}
.type-pill, .mode-pill{
  display:inline-flex;
  align-items:center;
  gap:6px;
  background:var(--pitch-dark);
  color:var(--pitch-line);
  border:1px solid rgba(233,245,236,0.18);
  border-radius:999px;
  padding:6px 13px;
  font-size:12px;
  font-family:'Inter',sans-serif;
  cursor:pointer;
  transition:opacity 0.15s ease;
}
.mode-pill{font-weight:600;}
.type-pill::before{
  content:'';
  width:8px;
  height:8px;
  border-radius:50%;
  background:var(--pill-color,#9fb8a8);
  display:inline-block;
  flex:none;
}
.type-pill[data-type="all"]::before{display:none;}
.type-pill.active, .mode-pill.active{
  background:var(--grass);
  color:var(--pitch-dark);
  border-color:var(--grass);
  font-weight:600;
}
.type-pill.disabled{
  opacity:0.3;
  cursor:not-allowed;
}
.type-pill:not(.disabled):hover, .mode-pill:hover{opacity:0.85;}
.shot-map-plot{
  flex:1;
  min-height:0;
  width:100%;
}
.shot-map-plot .plotly-graph-div,
.shot-map-plot .js-plotly-plot,
.shot-map-plot .plot-container,
.shot-map-plot > div{
  width:100% !important;
  height:100% !important;
}

footer{
  padding:22px 8vw;
  color:rgba(233,245,236,0.55);
  font-size:12px;
  text-align:center;
  background:var(--pitch-dark);
}

@media (max-width:900px){
  .hero p{white-space:normal;}
  .hero h1{white-space:normal;}
  .intro{padding:40px 24px;}
  .stats{grid-template-columns:repeat(2,1fr);}
  .findings-grid{grid-template-columns:1fr;}
  .findings-panel{padding:24px;}
  .map-section{padding:24px;}
  .shot-map-header{padding:14px 18px;}
  .shot-map-card{padding:6px;gap:6px;}
  .shot-map-cta{flex-direction:column;}
  .shot-map-players{
    width:100%;
    flex-direction:row;
    overflow-x:auto;
    overflow-y:hidden;
    padding-bottom:4px;
  }
  .player-item{flex:none;white-space:nowrap;}
}