@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;800&family=DM+Sans:wght@400;500;600;700&display=swap');
:root{--green:#123e35;--lime:#ddf769;--cream:#f4f3e9}*{box-sizing:border-box}body{margin:0;background:var(--cream);color:var(--green);font-family:'DM Sans',sans-serif}button,input{font:inherit}button,a{ -webkit-tap-highlight-color:transparent}button{cursor:pointer}header{max-width:1240px;margin:auto;padding:27px 40px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #123e3526}.brand{text-decoration:none;color:var(--green);font-size:34px;font-weight:900;letter-spacing:-2px;display:flex;align-items:center;gap:13px}.brand span{font-size:9px;letter-spacing:2px;max-width:55px;line-height:1.5}.edition{font-size:10px;letter-spacing:2px}.quiet{background:none;border:1px solid #123e3533;border-radius:30px;padding:9px 14px;font-size:11px;color:var(--green)}main{max-width:1160px;margin:44px auto;display:grid;grid-template-columns:1fr 1.15fr;gap:65px;padding:0 24px;align-items:center}.eyebrow{font-size:10px;font-weight:700;letter-spacing:1.6px;display:flex;align-items:center;gap:8px}.eyebrow span{width:7px;height:7px;border-radius:50%;background:#7b9e31}h1{font-family:'Barlow Condensed',Impact,sans-serif;font-size:clamp(78px,8.7vw,124px);line-height:.88;letter-spacing:-2px;margin:26px 0}h1 em{font-style:normal;color:#6b8242}.intro>p{font-size:19px;line-height:1.6;color:#59685e}.coach-note{display:flex;align-items:center;gap:13px;margin:27px 0}.avatar{display:grid;place-items:center;background:var(--green);color:var(--lime);border-radius:50%;width:43px;height:43px;font-weight:700}.coach-note strong{font-size:13px}.coach-note small{display:block;margin-top:4px;color:#687769;font-size:12px}.instructions{border-top:1px solid #123e3526;padding-top:24px;display:flex;flex-direction:column;gap:12px;font-size:11px;color:#7c8974}.instructions b{margin-left:13px;color:var(--green);font-weight:500;font-size:13px}.desktop-note{margin-top:30px;font-size:11px;color:#7c8974}.game{border-radius:17px;background:var(--green);overflow:hidden;box-shadow:0 16px 40px #173b351a;color:var(--cream)}.scoreboard{display:flex;justify-content:space-between;align-items:center;padding:19px 24px;font-size:10px;letter-spacing:1.5px}.scoreboard>div{display:flex;gap:12px;align-items:center}.tiny{font-size:8px;max-width:35px;line-height:1.5;color:#a7beb0}.scoreboard strong{font-size:23px;letter-spacing:0}.scoreboard small{font-size:11px;font-weight:400;color:#a7beb0}.court-wrap{position:relative;aspect-ratio:1.2;background:#22634e}canvas{width:100%;height:100%;display:block}#overlay,#result{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;background:#103d35e8;padding:18px}#result[hidden],#overlay[hidden]{display:none}.pill{font-size:8px;letter-spacing:2px;background:#ffffff13;border:1px solid #ffffff20;border-radius:20px;padding:7px 13px}h2{font-family:'Barlow Condensed',Impact,sans-serif;font-size:51px;line-height:.98;margin:17px 0 10px;text-transform:uppercase}#overlay p{font-size:12px;line-height:1.6;color:#c3d0c4;margin:0 0 14px}label{font-size:10px;margin-bottom:6px}input{background:#ffffff0c;border:1px solid #809c88;color:white;border-radius:5px;padding:11px;width:230px;text-align:center;font-size:13px}input::placeholder{color:#a8bdb0}.primary{background:var(--lime);color:var(--green);border:0;border-radius:5px;font-size:12px;font-weight:800;padding:16px 22px;display:flex;justify-content:center;align-items:center;gap:8px;text-align:center}.primary:hover{background:#e9ff97}.primary:disabled{opacity:.35;cursor:default}#start{width:230px;margin:10px 0}#overlay>small{font-size:9px;color:#a4b6a7}.controls{padding:20px 24px}.meter-label{display:flex;justify-content:space-between;font-size:8px;letter-spacing:1px;margin-bottom:10px;color:#b3c7b9}.meter-label span:last-child{color:var(--lime);margin-right:20%}.meter{height:16px;position:relative;border-radius:4px;background:#ffffff18;margin-bottom:15px;overflow:hidden}.zone{position:absolute;left:63%;width:18%;height:100%;background:#ddf76988}.perfect{position:absolute;left:71%;width:2%;height:100%;background:var(--lime)}#marker{position:absolute;left:0;height:100%;width:4px;background:white;box-shadow:0 0 10px white}.controls .primary{width:100%}.controls small{display:block;text-align:center;font-size:9px;color:#9eb7a7;margin-top:12px}#feedback{position:absolute;top:18px;left:0;right:0;text-align:center;font-size:22px;font-weight:800;text-shadow:0 2px 8px #123e35;color:var(--lime)}.big-score{font-family:'Barlow Condensed',Impact,sans-serif;font-size:72px;color:var(--lime);line-height:1}.big-score small{font-size:24px;color:#b3c7b9}#result h2{font-size:34px;margin:12px 0}#result p{font-size:12px;margin:8px 0;max-width:290px}#dots{font-size:12px;margin:5px 0 12px;letter-spacing:3px}#again,#share{width:240px;margin-bottom:7px}.secondary{display:flex;align-items:center;justify-content:center;gap:8px;text-align:center;padding:11px;background:none;border:1px solid #91ab97;border-radius:5px;color:var(--cream);font-size:12px}.links{display:flex;gap:18px}.links button{border:none;background:none;color:#d5dfd0;font-size:10px;padding:8px 0}#notice{font-size:10px!important;color:var(--lime);min-height:12px}footer{max-width:1160px;margin:0 auto;padding:0 24px 26px;display:flex;justify-content:space-between;font-size:10px;color:#758274}footer b{padding:0 8px}#invitation{background:#e4ebc9;border-radius:5px;padding:12px;font-size:13px;line-height:1.5}button:focus-visible,a:focus-visible{outline:3px solid #f5a052;outline-offset:3px}@media(max-width:760px){header{padding:16px 20px}.edition{display:none}.brand{font-size:28px}main{display:block;padding:0 16px;margin:25px auto;max-width:520px}.intro{margin-bottom:22px}.eyebrow{font-size:8px}h1{font-size:66px;line-height:.92;margin:15px 0 10px}h1 br{display:none}h1 em{display:block}.intro>p{font-size:14px;margin:0}.intro>p br{display:none}.coach-note{margin:15px 0 0}.instructions,.desktop-note{display:none}.game{border-radius:12px}.scoreboard{padding:13px 19px}.controls{padding:16px 19px}.court-wrap{min-height:350px;aspect-ratio:1.2}#overlay h2{font-size:44px;margin:12px 0}footer{font-size:8px;padding:0 20px 20px}.intro{position:relative}.coach-note{position:absolute;right:0;bottom:4px;max-width:146px;gap:8px}.avatar{width:29px;height:29px;flex-shrink:0;font-size:12px}.coach-note strong{font-size:10px}.coach-note small{font-size:9px}.intro>p{max-width:190px}#invitation{margin-top:14px}.intro:has(#invitation:not([hidden])) .coach-note{display:none}}

.book{color:#ddf769;font-size:10px;margin-top:6px}#result{padding:12px}#result .pill{padding:5px 10px}#result #notice:empty{display:none}@media(max-width:760px){#result h2{font-size:29px}.big-score{font-size:62px}#result .primary{padding:12px 18px}}

.shot-heading{display:flex;justify-content:space-between;align-items:center;padding:0 24px 12px;gap:10px}.shot-heading strong{font-size:16px;color:var(--lime)}.shot-heading span{font-size:8px;letter-spacing:.8px;text-align:right}#sequence{display:grid;grid-template-columns:repeat(10,1fr);gap:3px;padding:0 20px 14px}#sequence span{font-size:9px;text-align:center;background:#ffffff12;padding:7px 0;border-radius:3px;color:#a7beb0}#sequence .active{background:var(--lime);color:var(--green);font-weight:bold}#sequence .complete{background:#709e6944;color:#ddf769}.drill-guide{font-size:12px;margin-top:24px;line-height:1.8}.drill-guide>b{font-size:9px;letter-spacing:2px}.drill-guide p{margin:6px 0}.drill-guide small{color:#6b8242}.intro>p{max-width:100%}@media(max-width:760px){.coach-note{position:static;max-width:none}.drill-guide{margin-top:14px;font-size:11px}.drill-guide p{line-height:1.7}.shot-heading{padding:0 19px 12px}.shot-heading strong{font-size:14px}.shot-heading span{font-size:7px}#sequence{padding:0 15px 12px}#sequence span{font-size:8px}}
/* Keep every game child inside its column, even with long names or mobile text scaling. */
main>*{min-width:0}.game,.court-wrap{width:100%;min-width:0}.court-wrap{isolation:isolate}canvas{max-width:100%}#overlay,#result{width:100%;max-width:100%;min-width:0;box-sizing:border-box}#overlay>*,#result>*{max-width:100%;min-width:0}#result h2,#result p,.book{overflow-wrap:anywhere;white-space:normal}.shot-heading>*{min-width:0}#sequence{grid-template-columns:repeat(10,minmax(0,1fr))}
/* Results participate in normal layout: their height grows instead of overlapping the meter. */
.game:has(#result:not([hidden])) .court-wrap{aspect-ratio:auto;min-height:0;background:#164a3d}
.game:has(#result:not([hidden])) canvas{display:none}
.game:has(#result:not([hidden])) .controls{display:none}
#result:not([hidden]){position:relative;inset:auto;padding:28px 22px 30px;background:linear-gradient(155deg,#164a3d,#103d35);gap:10px}
#result h2{width:100%;font-size:clamp(27px,4.5vw,36px);line-height:1.08;margin:6px 0}
#result p{width:100%;max-width:320px;line-height:1.5;margin:0}
#result .big-score{display:flex;align-items:baseline;justify-content:center;gap:7px;font-size:76px}
#result #dots{letter-spacing:2px;margin:2px 0 8px}
#again,#share{width:100%;max-width:320px;min-height:46px;margin:0;justify-content:center;text-align:center}
.links{width:100%;max-width:320px;justify-content:center;flex-wrap:wrap;gap:8px 22px}
.links button{min-height:40px;font-size:12px}
#result .book{display:block;width:100%;max-width:300px;font-size:12px;line-height:1.6;margin:2px 0 0;text-align:center;text-underline-offset:3px}
#result #notice{font-size:11px!important}
@media(max-width:760px){.shot-heading{align-items:flex-start}.shot-heading strong{flex:1}.shot-heading span{flex:1;line-height:1.5}#result:not([hidden]){padding:24px 18px 28px}#result h2{font-size:29px}#result .big-score{font-size:72px}footer{gap:16px;flex-wrap:wrap}.court-wrap:has(#overlay:not([hidden])){min-height:365px}#overlay{padding:18px}#overlay input,#overlay .primary{max-width:100%}}

.invite-card{width:100%;max-width:320px;border-top:1px solid #ffffff25;margin-top:8px;padding-top:20px;text-align:center}.invite-card>strong{font-size:18px}.invite-card p{padding:7px 0 14px}.invite-card .join{width:100%;justify-content:center;text-decoration:none;font-size:12px;white-space:normal;line-height:1.5}.invite-card details{margin-top:15px}.invite-card summary{cursor:pointer;font-size:12px;color:#ddf769;padding:8px}.invite-card img{display:block;width:180px;max-width:100%;height:auto;margin:12px auto;border-radius:6px}.invite-card small{font-size:10px;color:#b3c7b9}

.drill-owner{font-size:14px;letter-spacing:3px;font-weight:700;margin-top:25px}.drill-title{font-size:clamp(62px,6.6vw,94px);line-height:.94;margin:12px 0 22px;letter-spacing:-1px}@media(max-width:760px){.drill-title{font-size:62px;line-height:.95}.drill-title br{display:block}.drill-title em{display:inline}.drill-owner{font-size:11px;margin-top:18px}.coach-note strong{line-height:1.5}.shot-heading strong{font-size:13px}}

.spin-badge{display:inline-block;font-size:10px;font-weight:700;letter-spacing:1px;background:#e4ebc9;padding:9px 12px;border-radius:20px}.drill-subtitle{font-family:"DM Sans",sans-serif;font-size:19px;line-height:1.4;text-transform:none;margin:18px 0 10px;max-width:390px}@media(max-width:760px){.drill-subtitle{font-size:16px}.spin-badge{font-size:9px;margin-top:4px}}

.game-nav{display:flex;justify-content:center;gap:8px;flex-wrap:wrap;margin:18px 12px}.game-nav a{color:#123e35;text-decoration:none;border:1px solid #123e3533;border-radius:24px;padding:10px 15px;font-size:12px}.game-nav a[aria-current=page]{background:#123e35;color:#ddf769}

/* Keep the club name centred independently of the logo and utility control widths. */
header{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:16px}
header .brand{justify-self:start}header .edition{text-align:center;line-height:1.5}header .quiet{justify-self:end;text-align:center}
@media(max-width:760px){header{grid-template-columns:minmax(0,1fr) auto;gap:12px}header .edition{display:block;grid-column:1/-1;grid-row:2;font-size:9px;letter-spacing:1.6px}header .quiet{grid-column:2;grid-row:1}}

/* The mark and wordmark form a single accessible home link at every screen size. */
header .brand{gap:9px;letter-spacing:0;white-space:nowrap;min-width:0}
header .brand-mark{display:block;width:44px;height:44px;flex:none;object-fit:contain}
header .brand .brand-word{font-family:'Barlow Condensed',Impact,sans-serif;font-size:34px;font-weight:800;letter-spacing:.2px;max-width:none;line-height:1;white-space:nowrap}
header .brand-word em{font-style:italic}
@media(max-width:760px){header .brand{gap:7px}header .brand-mark{width:32px;height:32px}header .brand .brand-word{font-size:26px}}

.games-toggle{display:block;margin:12px auto;padding:10px 18px;min-height:44px;background:#123e35;color:#fff;border:0;border-radius:24px;font:inherit;cursor:pointer}
.games-toggle[hidden],.game-nav[hidden]{display:none}
@media(max-width:760px){
  nav.game-nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));max-width:460px;margin:10px auto;padding:0 12px}
  nav.game-nav a{display:flex;align-items:center;justify-content:center;min-height:44px;text-align:center;font-size:14px;line-height:1.25}
}

/* The header stays within reach while a player reads feedback mid-round. */
body > header {position:sticky;top:0;z-index:5;background:var(--cream);padding-block:12px}
header .coach-link {justify-self:end;display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:8px 16px;border-radius:24px;background:var(--green);color:white;text-decoration:none;font-size:14px;font-weight:700;text-align:center;line-height:1.2}
header .coach-link:hover {background:#225746}
html {scroll-padding-top:82px}
.scoreboard #sound {order:1;color:white;border-color:#ffffff70;font-size:12px;min-height:40px}
nav.game-nav {display:flex;align-items:stretch;justify-content:center;gap:0;max-width:1240px;margin:16px auto;padding:0 24px}
nav.game-nav[hidden] {display:none}
nav.game-nav > a {align-self:center;margin-right:18px;white-space:nowrap}
.game-family {padding:0 16px;border-left:1px solid #123e3528}
.family-name {display:block;font-size:14px;font-weight:700;margin-bottom:6px}
.family-links {display:flex;flex-wrap:wrap;gap:5px}
nav.game-nav a {display:inline-flex;align-items:center;min-height:40px;font-size:14px;padding:6px 12px}
@media (min-width:761px) and (max-width:1100px) {
  nav.game-nav {display:grid;grid-template-columns:auto 3fr 2fr 2fr;padding:0 12px}
  .game-family {padding:0 10px}
}
@media(max-width:760px) {
  body > header {padding:8px 12px;gap:6px}
  header .edition {display:none}
  header .coach-link {grid-column:2;grid-row:1;font-size:14px;padding:8px 12px}
  html {scroll-padding-top:68px}
  nav.game-nav {display:block;padding:0 16px;margin:8px auto;max-width:460px}
  nav.game-nav > a {margin:0}
  .game-family {border:0;border-top:1px solid #123e3528;padding:10px 0;margin-top:8px}
  nav.game-nav a {min-height:44px}
}

/* Use one centred action column for replay, sharing and the coaching invitation. */
#result:not([hidden]) > button.primary,
#result:not([hidden]) > button.secondary,
#result:not([hidden]) .invite-card .join {
  display:flex;
  width:min(100%, 320px);
  max-width:100%;
  min-height:46px;
  margin-inline:auto;
  justify-content:center;
  text-align:center;
}
#result:not([hidden]) .invite-card {align-self:center}
#result:not([hidden]) .invite-card p {margin-inline:auto}
#result:not([hidden]) .invite-card strong {display:block}
#result:not([hidden]) .invite-card .join {margin-top:12px}

/* Size long titles against their own column, including while web fonts are loading. */
.intro,.hub-hero {container-type:inline-size}
body[data-game=predictor] .intro h1,
body[data-game=partner] .intro h1 {font-size:clamp(32px,14cqi,108px)}
@media(max-width:760px){
  main.hub .hub-hero h1 {font-size:clamp(32px,14cqi,72px)}
}
@media(max-width:360px){
  header .brand .brand-word {font-size:20px}
  header .brand-mark {width:26px;height:26px}
  header .brand {gap:5px}
  header .coach-link {max-width:145px;font-size:13px;padding-inline:8px}
}
