/* GRADCARD v2 — shareable 9:16 graduation card (see js/gradcard.js).
   Designed at 360×640; exported at scale 3 → 1080×1920.
   Brand: White #FFF · Green #758F60 · Blue #C8DCE5 · Blush #E1CCBE ·
          Olive #757263 · Dark #3D3D3D · Black #000 */
.gc2{width:360px;height:640px;background:#FFFFFF;color:#3D3D3D;display:flex;flex-direction:column;overflow:hidden;border-radius:14px;position:relative;
  font-family:'Noto Sans','Helvetica Neue',Helvetica,Arial,sans-serif;line-height:1.35;text-align:left;box-sizing:border-box;margin:0 auto;
  box-shadow:0 1px 2px rgba(61,61,61,.08),0 12px 40px -12px rgba(61,61,61,.25)}
.gc2 *{box-sizing:border-box}
.gc2-top{background:#E1CCBE;padding:13px 20px 11px;display:flex;flex-direction:column;gap:8px;position:relative}
.gc2-logo{position:absolute;top:14px;right:16px;width:74px;height:auto;background:#FFFFFF;padding:7px;border-radius:8px;box-sizing:content-box}
.gc2-kicker{display:flex;flex-direction:column;gap:1px;padding-right:100px;line-height:1.25}
.gc2-kicker b{font-size:11px;letter-spacing:.16em;text-transform:uppercase;font-weight:700;color:#000000}
.gc2-kicker span{font-size:12px;font-weight:500;color:#3D3D3D}
.gc2-who{min-width:0}
.gc2-sub{font-size:11px;font-weight:500;color:#757263;margin-top:3px}
.gc2-id{display:flex;align-items:center;gap:14px;padding-right:96px}
.gc2-photo{width:62px;height:62px;border-radius:50%;background:#758F60;color:#FFFFFF;display:flex;align-items:center;justify-content:center;font-size:26px;font-weight:300;box-shadow:0 0 0 3px #FFFFFF;flex:none;overflow:hidden}
.gc2-photo img{width:100%;height:100%;object-fit:cover;display:block}
.gc2-name{font-size:34px;font-weight:700;line-height:1.05;color:#000000;letter-spacing:-.01em;overflow-wrap:anywhere}
.gc2-name--l{font-size:28px}
.gc2-name--xl{font-size:23px}
.gc2-name--xxl{font-size:19px}
.gc2-goals{display:flex;flex-wrap:wrap;gap:5px;align-items:center}
.gc2-goals i{font-style:normal;font-size:8.5px;letter-spacing:.14em;text-transform:uppercase;color:#757263;font-weight:500;margin-right:2px}
.gc2-goals span{font-size:10.5px;font-weight:500;color:#000000;background:rgba(255,255,255,.7);border-radius:999px;padding:3px 9px}

.gc2-body{flex:1;display:flex;flex-direction:column;justify-content:space-between;padding:9px 20px 7px;gap:5px;min-height:0}
.gc2-days{display:flex;align-items:flex-end;gap:10px}
.gc2-num{font-size:50px;font-weight:200;line-height:.82;color:#000000;letter-spacing:-.03em;font-variant-numeric:tabular-nums}
.gc2-numlab{font-size:11px;font-weight:500;line-height:1.2;color:#758F60;text-transform:uppercase;letter-spacing:.12em;padding-bottom:2px}
.gc2-meta{margin-left:auto;text-align:right;font-size:10px;line-height:1.45;color:#6F6B62;padding-bottom:1px}
.gc2-meta b{color:#3D3D3D;font-weight:500}

.gc2-chart{display:block}
.gc2-chart--blue{background:#C8DCE5;border-radius:10px;padding:7px 10px 5px}
.gc2-ghead{display:flex;justify-content:space-between;align-items:flex-end;gap:8px;margin-bottom:2px}
.gc2-ghead .k{font-size:8.5px;letter-spacing:.14em;text-transform:uppercase;font-weight:500;color:#6F6B62;line-height:1.3}
.gc2-ghead .m{font-size:12.5px;font-weight:700;color:#000000;letter-spacing:0;text-transform:none;display:block}
.gc2-ghead .d{font-size:24px;font-weight:700;color:#758F60;line-height:1;font-variant-numeric:tabular-nums;white-space:nowrap}
.gc2-ghead .d small{font-size:10px;font-weight:500;margin-left:2px}
.gc2-chart--blue .gc2-ghead .k{color:#3D3D3D}
.gc2-chart--blue .gc2-ghead .d{color:#000000}
.gc2-svg{display:block;width:100%;height:auto;overflow:visible}

.gc2-wins h4{margin:0 0 4px;font-size:8.5px;letter-spacing:.14em;text-transform:uppercase;font-weight:500;color:#6F6B62}
.gc2-wins ul{list-style:none;margin:0;padding:0;display:flex;gap:6px}
.gc2-wins li{flex:1 1 0;border:1px solid #E6DDD5;border-radius:8px;padding:5px 7px 4px;display:flex;flex-direction:column;gap:2px;min-width:0}
.gc2-wins .lab{font-size:9px;font-weight:500;color:#6F6B62;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gc2-wins .val{font-size:14px;font-weight:700;color:#000000;font-variant-numeric:tabular-nums;white-space:nowrap}
.gc2-wins .val small{font-size:8.5px;font-weight:500;color:#3D3D3D}
.gc2-spark{display:block;width:100%;height:12px}
.gc2-dots{display:flex;gap:2px;height:12px;align-items:center}
.gc2-dots b{flex:none;width:6px;height:6px;border-radius:50%;background:#EDE5DE}
.gc2-dots b.was{background:#BEB9AD}
.gc2-dots b.now{background:#758F60}
.gc2-note{font-size:7.5px;font-weight:300;color:#6F6B62;text-align:center}

.gc2-foot{background:#757263;color:#FFFFFF;padding:10px 20px 7px;display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px}
.gc2-invite{flex:1 0 100%;display:flex;flex-direction:column;gap:3px;padding-bottom:7px;margin-bottom:1px;border-bottom:1px solid rgba(255,255,255,.25)}
.gc2-invite b{font-size:15px;font-weight:700;color:#FFFFFF;line-height:1.2}
.gc2-invite span{font-size:10.5px;font-weight:500;color:#FFFFFF;opacity:.92;letter-spacing:.02em}
.gc2-invite i{font-style:normal;opacity:.6;margin:0 3px}
.gc2-coachphoto{width:40px;height:40px;border-radius:50%;background:#E1CCBE;color:#000000;display:flex;align-items:center;justify-content:center;font-weight:500;font-size:16px;box-shadow:0 0 0 2px rgba(255,255,255,.8);flex:none;overflow:hidden}
.gc2-coachphoto img{width:100%;height:100%;object-fit:cover;display:block}
.gc2-coach{font-size:10px;line-height:1.4;min-width:0;flex:1}
.gc2-coach .team{font-size:8.5px;letter-spacing:.14em;text-transform:uppercase;opacity:.85}
.gc2-coach .cname{font-size:13px;font-weight:700}
.gc2-coach .mail{font-weight:300;overflow-wrap:anywhere}
.gc2-permit{flex:1 0 100%;font-size:8.5px;font-weight:300;opacity:.85;border-top:1px solid rgba(255,255,255,.25);padding-top:5px;display:flex;justify-content:space-between}
.gc2-body:has(.gc2-hero){justify-content:center;gap:28px}
.gc2-hero{display:flex;flex-direction:column;align-items:center;text-align:center}
.gc2-hero-k{font-size:12px;letter-spacing:.18em;text-transform:uppercase;font-weight:500;color:#758F60}
.gc2-hero-num{font-size:128px;font-weight:200;line-height:.95;color:#000000;letter-spacing:-.04em;font-variant-numeric:tabular-nums;margin-top:6px}
.gc2-hero-lbl{font-size:18px;font-weight:700;color:#000000;margin-top:2px}
.gc2-hero-sub{font-size:11px;color:#6F6B62;margin-top:4px}
.gc2-habit{background:#E1CCBE;border-radius:10px;padding:12px 14px}
.gc2-habit-k{font-size:8.5px;letter-spacing:.14em;text-transform:uppercase;font-weight:500;color:#3D3D3D}
.gc2-habit-row{display:flex;justify-content:space-between;align-items:baseline;gap:8px;margin-top:3px}
.gc2-habit-name{font-size:17px;font-weight:700;color:#000000}
.gc2-habit-val{font-size:11px;font-weight:500;color:#3D3D3D;white-space:nowrap;font-variant-numeric:tabular-nums}
.gc2-habit-bar{height:8px;border-radius:999px;background:rgba(255,255,255,.7);margin-top:8px;overflow:hidden}
.gc2-habit-fill{display:block;height:100%;background:#758F60;border-radius:999px}
.gc2-w0{width:0%}
.gc2-w5{width:5%}
.gc2-w10{width:10%}
.gc2-w15{width:15%}
.gc2-w20{width:20%}
.gc2-w25{width:25%}
.gc2-w30{width:30%}
.gc2-w35{width:35%}
.gc2-w40{width:40%}
.gc2-w45{width:45%}
.gc2-w50{width:50%}
.gc2-w55{width:55%}
.gc2-w60{width:60%}
.gc2-w65{width:65%}
.gc2-w70{width:70%}
.gc2-w75{width:75%}
.gc2-w80{width:80%}
.gc2-w85{width:85%}
.gc2-w90{width:90%}
.gc2-w95{width:95%}
.gc2-w100{width:100%}

/* ── Player's card screen (app.js _renderGradCardV2) ── */
.gc2-fit{width:100%;max-width:360px;margin:8px auto 0}
.gc2-exporting{height:auto!important;overflow:visible!important}
.gc2-exporting .gc2{transform:none!important;border-radius:0!important;box-shadow:none!important}
.gc2-actions{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;margin:18px auto 0;max-width:360px}
.gc2-actions button{flex:1 1 150px}
.gc2-panel{max-width:360px;margin:18px auto 0;background:#FFFFFF;border:1px solid #E6DDD5;border-radius:14px;padding:16px;display:flex;flex-direction:column;gap:14px;text-align:left}
.gc2-panel h3{margin:0;font-size:15px;font-weight:700;color:#000000}
.gc2-switch-row{display:flex;gap:12px;align-items:flex-start;cursor:pointer}
.gc2-switch-row b{display:block;font-weight:500;color:#000000;font-size:14px}
.gc2-switch-row small{display:block;margin-top:2px;font-size:12.5px;line-height:1.45;color:#6F6B62}
.gc2-switch{position:relative;width:46px;height:26px;flex:none;margin-top:1px}
.gc2-switch input{position:absolute;inset:0;opacity:0;margin:0;cursor:pointer;z-index:1}
.gc2-switch span{position:absolute;inset:0;background:#D8D2CA;border-radius:999px;transition:background .2s}
.gc2-switch span::after{content:"";position:absolute;top:3px;left:3px;width:20px;height:20px;border-radius:50%;background:#FFFFFF;box-shadow:0 1px 3px rgba(0,0,0,.2);transition:transform .2s}
.gc2-switch input:checked + span{background:#758F60}
.gc2-switch input:checked + span::after{transform:translateX(20px)}
.gc2-switch input:focus-visible + span{outline:2px solid #758F60;outline-offset:2px}
.gc2-keep{margin:0;font-size:12.5px;color:#6F6B62}
@media (prefers-reduced-motion:reduce){.gc2-switch span,.gc2-switch span::after{transition:none}}

/* ── Coach views: ✓/✕ icon on roster rows + card modal (app.js) ── */
.gc2-mark{width:22px;height:22px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;color:#FFFFFF;font-size:13px;font-weight:700;line-height:1;flex:none}
.gc2-mark.yes{background:#5F8A4A}
.gc2-mark.no{background:#B4574B}
.gc2-rowmark{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;margin:0 8px 0 0;padding:0;border:0;border-radius:50%;color:#FFFFFF;font-size:12px;font-weight:700;line-height:1;vertical-align:middle;cursor:pointer;font-family:inherit}
.gc2-rowmark.yes{background:#5F8A4A}
.gc2-rowmark.no{background:#B4574B}
.gc2-rowmark:focus-visible{outline:2px solid #758F60;outline-offset:2px}
.gc2-modal-box{max-width:400px}
.gc2-modal-head{display:flex;align-items:center;gap:10px;margin:0 32px 14px 0}
.gc2-modal-head b{display:block;font-size:17px;color:#000000}
.gc2-modal-head small{display:block;font-size:12.5px;color:#6F6B62}
.gc2-modal .gc2-fit{margin:0 auto}
.gc2-request{max-width:360px;margin:18px auto 0;background:#C8DCE5;color:#3D3D3D;border-radius:12px;padding:12px 14px;font-size:13.5px;line-height:1.45}

/* ── Graduation moment overlay (GRADCARD.moment) ── */
.gm{position:fixed;inset:0;z-index:2000;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:24px 16px;overflow-y:auto;background:#757263;color:#FFFFFF;transition:background .8s ease;font-family:'Noto Sans','Helvetica Neue',Helvetica,Arial,sans-serif}
.gm [hidden]{display:none!important}
.gm.stage2{background:#EFE6DF;color:#3D3D3D;justify-content:flex-start}
.gm-intro{display:flex;flex-direction:column;align-items:center;text-align:center;gap:14px;max-width:340px;animation:gmIn .9s ease both}
.gm-logo{width:74px;background:#FFFFFF;padding:8px;border-radius:10px;box-sizing:content-box}
.gm-eyebrow{font-size:12px;letter-spacing:.18em;text-transform:uppercase;font-weight:500;opacity:.85;margin-top:6px}
.gm-title{font-size:34px;line-height:1.1;font-weight:700;margin:0;color:#FFFFFF;text-wrap:balance}
.gm-sub{font-size:16px;opacity:.9;margin:0}
.gm-open{margin-top:18px;border:0;border-radius:999px;padding:15px 30px;font:inherit;font-size:16px;font-weight:700;background:#FFFFFF;color:#000000;cursor:pointer;box-shadow:0 10px 30px -10px rgba(0,0,0,.4);animation:gmPulse 2s ease-in-out 1.2s infinite}
.gm-later{background:none;border:0;color:#FFFFFF;opacity:.8;font:inherit;font-size:14px;text-decoration:underline;cursor:pointer;padding:6px}
.gm-open:focus-visible,.gm-btn:focus-visible,.gm-later:focus-visible{outline:3px solid #E1CCBE;outline-offset:3px}
.gm-stage{display:flex;flex-direction:column;align-items:center;gap:16px;width:100%;max-width:380px;padding-top:4px}
.gm-cardwrap{position:relative;animation:gmRise .9s cubic-bezier(.2,.8,.2,1) both}
.gm-after{display:flex;flex-direction:column;gap:12px;width:100%;max-width:360px;opacity:0;transform:translateY(12px);transition:opacity .6s ease,transform .6s ease}
.gm-after.show{opacity:1;transform:none}
.gm-actions{display:flex;gap:10px}
.gm-btn{flex:1;border:0;border-radius:12px;padding:13px 14px;font:inherit;font-size:15px;font-weight:600;cursor:pointer}
.gm-primary{background:#757263;color:#FFFFFF}
.gm-ghost{background:#FFFFFF;color:#3D3D3D;border:1px solid #E6DDD5}
.gm-ask{background:#FFFFFF;border:1px solid #E6DDD5;border-radius:14px;padding:14px 16px;display:flex;flex-direction:column;gap:10px;text-align:left}
.gm-ask p{margin:0;font-size:14.5px;line-height:1.45;color:#000000;font-weight:500}
.gm-ask small{display:block;font-size:12.5px;color:#6F6B62;font-weight:400;margin-top:3px}
.gm-ask .row{display:flex;gap:8px}
.gm-ask .row button{flex:1;border-radius:10px;padding:10px;font:inherit;font-size:14px;font-weight:600;cursor:pointer}
.gm-yes{background:#758F60;color:#FFFFFF;border:0}
.gm-no{background:#FFFFFF;color:#3D3D3D;border:1px solid #E6DDD5}
.gm-thanks{margin:0;font-size:14px;color:#758F60;font-weight:600;text-align:center}
.gm-close{background:none;border:0;color:#6F6B62;font:inherit;font-size:14px;text-decoration:underline;cursor:pointer;padding:6px}
canvas.gm-confetti{position:fixed;inset:0;pointer-events:none;z-index:2001}
.gm-build .gc2-body > *,.gm-build .gc2-foot{opacity:0;transform:translateY(8px)}
.gm-build.go .gc2-body > *,.gm-build.go .gc2-foot{opacity:1;transform:none;transition:opacity .5s ease,transform .5s ease}
.gm-build.go .gc2-body > *:nth-child(1){transition-delay:.15s}
.gm-build.go .gc2-body > *:nth-child(2){transition-delay:1.1s}
.gm-build.go .gc2-body > *:nth-child(3){transition-delay:2s}
.gm-build.go .gc2-body > *:nth-child(4){transition-delay:2.8s}
.gm-build.go .gc2-body > *:nth-child(5){transition-delay:3s}
.gm-build.go .gc2-foot{transition-delay:3.2s}
.gm-pop{animation:gmPop .7s cubic-bezier(.2,1.6,.4,1) both}
@keyframes gmIn{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:none}}
@keyframes gmRise{from{opacity:0;transform:translateY(60px) scale(.94)}to{opacity:1;transform:none}}
@keyframes gmPulse{0%,100%{transform:scale(1)}50%{transform:scale(1.04)}}
@keyframes gmPop{0%{transform:scale(.4);opacity:0}100%{transform:scale(1);opacity:1}}
@media (prefers-reduced-motion:reduce){.gm-intro,.gm-cardwrap,.gm-open{animation:none}.gm-build .gc2-body > *,.gm-build .gc2-foot{opacity:1;transform:none}.gm-pop{animation:none}.gm{transition:none}}
/* Off-screen-ish export copy for the graduation moment (see APP.maybeShowGradMoment) */
.gc2-export-host{position:fixed;left:0;top:0;width:360px;height:640px;z-index:1;pointer-events:none}
.gc2-export-host .gc2{border-radius:0;box-shadow:none;margin:0}

/* ── Feed format: 360×450 → 1080×1350 (Facebook / Instagram feed) ── */
.gc2--feed{height:450px}
.gc2--feed .gc2-top{padding:11px 18px 9px;gap:6px}
.gc2--feed .gc2-logo{top:11px;right:14px;width:58px;padding:5px}
.gc2--feed .gc2-kicker{padding-right:80px}
.gc2--feed .gc2-kicker b{font-size:10px}
.gc2--feed .gc2-kicker span{font-size:11px}
.gc2--feed .gc2-id{gap:11px;padding-right:76px}
.gc2--feed .gc2-photo{width:46px;height:46px;font-size:20px;box-shadow:0 0 0 2px #FFFFFF}
.gc2--feed .gc2-name{font-size:26px}
.gc2--feed .gc2-name--l{font-size:22px}
.gc2--feed .gc2-name--xl{font-size:19px}
.gc2--feed .gc2-name--xxl{font-size:16px}
.gc2--feed .gc2-sub{font-size:10px;margin-top:2px}
.gc2--feed .gc2-goals span{font-size:9.5px;padding:2px 8px}
.gc2--feed .gc2-body{padding:7px 18px 5px;gap:4px}
.gc2--feed .gc2-num{font-size:40px}
.gc2--feed .gc2-numlab{font-size:9.5px}
.gc2--feed .gc2-meta{font-size:9px}
.gc2--feed .gc2-ghead .d{font-size:20px}
.gc2--feed .gc2-wins li{padding:4px 6px 3px}
.gc2--feed .gc2-wins .val{font-size:12.5px}
.gc2--feed .gc2-note{font-size:7px;margin-top:-1px}
.gc2--feed .gc2-wins h4{margin-bottom:2px}
.gc2--feed .gc2-days{gap:8px}
.gc2--feed .gc2-foot{padding:8px 18px 6px;gap:4px 10px}
.gc2--feed .gc2-invite b{font-size:13px}
.gc2--feed .gc2-invite span{font-size:9.5px}
.gc2--feed .gc2-invite{padding-bottom:6px}
.gc2--feed .gc2-coachphoto{width:32px;height:32px;font-size:13px}
.gc2--feed .gc2-coach .cname{font-size:11.5px}
.gc2--feed .gc2-coach{font-size:9px}
.gc2--feed .gc2-hero-num{font-size:92px}
.gc2--feed .gc2-hero-lbl{font-size:15px}
.gc2--feed .gc2-habit{padding:9px 12px}
.gc2--feed .gc2-habit-name{font-size:14px}
/* Congratulations variant has to fit the shorter feed card too */
.gc2--feed .gc2-body:has(.gc2-hero){gap:12px;justify-content:center}
.gc2--feed .gc2-hero-k{font-size:10px}
.gc2--feed .gc2-hero-num{font-size:78px;margin-top:2px}
.gc2--feed .gc2-hero-lbl{font-size:14px}
.gc2--feed .gc2-hero-sub{font-size:10px}
.gc2--feed .gc2-habit{padding:8px 12px}
.gc2--feed .gc2-habit-bar{height:7px;margin-top:6px}

/* ── Share format chips (Facebook 4:5 / Story 9:16) ── */
.gc2-formats{display:flex;gap:8px;justify-content:center;max-width:360px;margin:14px auto 0}
.gc2-fmt{flex:1;border:1px solid #E6DDD5;background:#FFFFFF;color:#3D3D3D;border-radius:999px;padding:8px 12px;font:inherit;font-size:13px;font-weight:500;cursor:pointer}
.gc2-fmt[aria-pressed="true"]{background:#757263;border-color:#757263;color:#FFFFFF}
.gc2-fmt:focus-visible{outline:2px solid #758F60;outline-offset:2px}
.gm-after .gc2-formats{margin:0 auto}
.gc2-export-host--feed{height:450px}
