@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700;800&family=Barlow:wght@400;500;600;700&display=swap');
:root{--ink:#16362c;--green:#123e30;--green2:#205640;--paper:#f4f5ef;--white:#fff;--muted:#617167;--line:#d9dfd5;--lime:#d2ee92;--orange:#f5b87a;--body:'Barlow',Segoe UI,sans-serif;--display:'Barlow Condensed','Arial Narrow',sans-serif}
*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:var(--body);font-size:16px;line-height:1.5}button,input,select{font:inherit}button,a,select,input{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:default;opacity:.45}button,select{min-height:42px}button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible,[tabindex]:focus-visible{outline:3px solid #de8c3c;outline-offset:4px}button{color:inherit}a{color:var(--green)}h1,h2,h3,h4,p{margin:0}h1,h2,h3{font-family:var(--display);line-height:1.04}h2{font-size:clamp(34px,3.5vw,48px);font-weight:700;letter-spacing:-.6px}h3{font-size:28px}h4{font-size:16px}p+p{margin-top:12px}.eyebrow{font-size:12px;letter-spacing:1.8px;font-weight:700}.club-header{background:var(--green);color:#fff;display:flex;align-items:center;gap:30px;padding:22px max(28px,calc((100vw - 1440px)/2));border-bottom:5px solid var(--lime)}.brand{display:flex;align-items:center;gap:17px}.brand img{border-radius:50%;width:64px;height:64px}.brand h1{font-size:45px;letter-spacing:.5px;margin-top:4px}.brand .eyebrow{color:#bbd5c7}.header-note{border-left:1px solid #47705c;padding-left:30px;margin-left:auto;display:grid;gap:4px}.header-note span{font-size:12px;letter-spacing:2px;color:#b9d1c1}.header-note strong{font-weight:500}.share-button{background:transparent;color:#fff;border:1px solid #769886;padding:8px 17px;border-radius:5px;font-size:14px;font-weight:600}.share-button:hover{background:#245742}.main-nav{padding:0 max(28px,calc((100vw - 1440px)/2));display:flex;gap:32px;background:white;border-bottom:1px solid var(--line)}.main-nav button{padding:18px 0 15px;border:0;border-bottom:3px solid transparent;background:none;font-weight:600;white-space:nowrap}.main-nav button span{font-size:12px;margin-right:9px;color:#809284;font-weight:500}.main-nav button.active{border-color:var(--green);color:var(--green)}.main-nav button:not(.active){color:var(--muted)}main{max-width:1496px;padding:30px 28px 48px;margin:auto;min-height:75vh}.section-top{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:22px}.section-top p{color:var(--muted);max-width:740px;margin-top:10px}.section-kicker{color:var(--muted);font-size:12px;font-weight:700;letter-spacing:1.7px;margin-bottom:8px}.segmented{display:flex;padding:4px;background:#e4e9e0;border:1px solid #d8dfd3;border-radius:7px;gap:3px;flex-shrink:0}.segmented button{border:0;border-radius:4px;background:transparent;padding:7px 15px;min-height:36px;font-size:15px;font-weight:600}.segmented button.active{background:var(--green);color:white;box-shadow:0 2px 4px #0001}.workspace{display:grid;grid-template-columns:minmax(0,1.68fr) minmax(320px,1fr);gap:24px;align-items:start}.board-shell{border-radius:8px;background:var(--green);overflow:hidden;border:1px solid #164836}.board-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:15px 18px;border-bottom:1px solid #52735c}.phase-tabs{display:flex;gap:4px;flex:1;flex-wrap:wrap}.phase-tabs button{font-size:14px;border:0;background:transparent;color:#c8dece;padding:6px 12px;min-height:34px;border-radius:4px}.phase-tabs button.active{color:#123e30;background:var(--lime);font-weight:700}.icon-button{border:1px solid #5e816c;background:transparent;color:#fff;border-radius:4px;min-height:34px;padding:5px 10px;font-size:14px}.pitch-stage{position:relative;padding:10px 28px 0;background:#164b37}.pitch-svg{width:100%;height:auto;max-height:610px;display:block;overflow:visible}.pitch-svg text{font-family:var(--body)}.team-marker{cursor:pointer;outline:none}.team-marker .disc{fill:var(--lime);stroke:#173c2c;stroke-width:1.5}.team-marker.selected .disc,.team-marker:focus .disc{stroke:white;stroke-width:3;fill:#edffc9}.team-marker .number{fill:#143c2c;font-weight:700;font-size:12px;text-anchor:middle;dominant-baseline:central}.team-marker .name{fill:white;text-anchor:middle;font-size:11px;font-weight:600;paint-order:stroke;stroke:#164b37;stroke-width:3px;stroke-linejoin:round}.team-marker .role-label{fill:#c2d5c5;text-anchor:middle;font-size:9px;paint-order:stroke;stroke:#164b37;stroke-width:2px}.opp{fill:#f3b17c;stroke:#573519;stroke-width:1}.opp-label{fill:#472d20;text-anchor:middle;font-size:9px;font-weight:700;dominant-baseline:central}.player-moving{transition:transform 800ms ease-in-out}.ball{transition:transform 800ms ease-in-out}.pitch-caption{color:#bad3c3;font-size:12px;text-align:center;letter-spacing:1.8px;padding-top:4px}.board-bottom{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;padding:13px 18px;background:#103b2b;color:#d9e8dc;font-size:12px}.legend{display:flex;align-items:center;gap:14px;flex-wrap:wrap}.legend span{display:inline-flex;align-items:center;gap:6px}.legend i{display:inline-block;width:9px;height:9px;border-radius:50%;background:var(--lime)}.legend i.opponent{background:var(--orange)}.legend i.run{border-top:2px dashed #d2ee92;width:19px;height:0;border-radius:0;background:none}.legend i.pass{border-top:2px solid white;width:19px;height:0;border-radius:0;background:none}.panel{background:white;border:1px solid var(--line);border-radius:7px;padding:24px}.panel+.panel{margin-top:16px}.panel p{color:var(--muted);margin-top:10px}.panel .lead{font-size:18px;color:var(--ink);line-height:1.45}.phase-index{font-size:12px;font-weight:700;letter-spacing:1.5px;color:var(--muted);margin-bottom:10px}.rule-list{padding:0;margin:20px 0 0;list-style:none;counter-reset:rule}.rule-list li{position:relative;padding:0 0 16px 37px;counter-increment:rule}.rule-list li:last-child{padding-bottom:0}.rule-list li:before{content:counter(rule,decimal-leading-zero);position:absolute;left:0;top:2px;font-size:12px;font-weight:700;color:#52795d}.rule-list strong{display:block;font-size:16px;margin-bottom:4px}.rule-list span{font-size:15px;line-height:1.45;color:var(--muted);display:block}.note{border-left:3px solid #84a94f;background:#edf3e5;padding:13px 15px;font-size:14px;margin-top:20px}.note strong{display:block;margin-bottom:3px}.role-card-top{display:flex;align-items:center;gap:13px;margin-bottom:16px}.shirt-number{background:var(--green);color:var(--lime);width:48px;height:52px;display:grid;place-items:center;border-radius:4px;font-family:var(--display);font-size:30px;font-weight:700}.role-card-top h3{font-size:26px}.role-card-top small{color:var(--muted);font-size:14px}.text-link{border:0;background:none;padding:0;text-decoration:underline;text-underline-offset:4px;min-height:28px;margin-top:14px;font-size:14px;font-weight:600}.micro-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:24px}.micro-card{border-top:3px solid var(--green);padding:16px 0}.micro-card .eyebrow{color:var(--muted)}.micro-card h3{font-size:24px;margin:9px 0}.micro-card p{font-size:15px;color:var(--muted)}.field-label{font-size:14px;font-weight:600;display:block;margin-bottom:6px}select,input[type=search]{border:1px solid #bfcdbd;background:white;border-radius:5px;padding:8px 10px;max-width:100%;color:var(--ink)}.control-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.control-row>label{display:flex;align-items:center;gap:8px;font-size:14px}.small-select{min-height:34px;padding:4px 8px;font-size:14px}.sub-controls{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:14px}.pill-button{border:1px solid var(--line);background:white;padding:7px 12px;border-radius:4px;font-size:14px;min-height:36px}.pill-button.active{background:#e5efdc;border-color:#a9bf92}.pattern-layout{display:grid;grid-template-columns:225px minmax(0,1fr);gap:24px}.pattern-menu{display:flex;flex-direction:column;gap:8px}.pattern-choice{padding:16px;text-align:left;background:transparent;border:1px solid var(--line);border-radius:5px;display:grid;gap:6px}.pattern-choice.active{background:var(--green);color:white;border-color:var(--green)}.pattern-choice .pattern-no{font-size:12px;letter-spacing:1px;color:var(--muted)}.pattern-choice.active .pattern-no{color:#b2caa9}.pattern-choice strong{font-size:16px;line-height:1.25}.pattern-choice small{font-size:12px;color:var(--muted)}.pattern-choice.active small{color:var(--lime)}.pattern-work{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(270px,1fr);gap:20px;align-items:start}.playback{display:flex;gap:9px;align-items:center;justify-content:space-between;padding:14px 18px;color:white;background:#103b2b}.playback button{background:transparent;color:white;border:1px solid #749581;border-radius:4px;padding:7px 14px}.playback .play{background:var(--lime);color:var(--green);border-color:var(--lime);font-weight:700;min-width:78px}.step-track{display:flex;gap:6px;padding:0 18px 16px;background:#103b2b}.step-dot{height:5px;min-height:10px;flex:1;border:0;background:#3f6951;border-radius:2px;padding:0}.step-dot.active{background:var(--lime)}.step-count{font-size:13px}.step-list{list-style:none;padding:0;margin:18px 0}.step-list li{padding:12px 0;border-bottom:1px solid var(--line);color:var(--muted);font-size:14px}.step-list li.current{color:var(--green);font-weight:600}.step-list li span{font-size:12px;display:inline-block;width:24px;color:#7c917e}.tag{display:inline-block;font-size:12px;font-weight:600;padding:3px 8px;background:#e9efdf;color:#456232;border-radius:3px}.player-layout{display:grid;grid-template-columns:300px minmax(0,1fr);gap:24px}.roster-sidebar{background:white;border:1px solid var(--line);border-radius:6px;overflow:hidden}.roster-search{padding:15px;border-bottom:1px solid var(--line)}.roster-search input{width:100%}.roster-list{max-height:830px;overflow-y:auto;padding:6px}.roster-choice{display:flex;align-items:center;gap:12px;width:100%;padding:11px;text-align:left;background:none;border:0;border-radius:4px}.roster-choice:hover{background:#f0f4eb}.roster-choice.active{background:var(--green);color:white}.mini-number{width:30px;font-family:var(--display);font-size:25px;color:#66816b}.roster-choice.active .mini-number{color:var(--lime)}.roster-choice strong{font-size:15px;display:block}.roster-choice small{font-size:12px;display:block;color:var(--muted)}.roster-choice.active small{color:#bcd4be}.roster-choice .segments{margin-left:auto;width:39px;gap:2px}.segments{display:flex;gap:5px;align-items:center}.segments i{height:8px;background:#d9e3d3;border-radius:2px;flex:1;display:block}.segments i.filled{background:#568036}.player-detail{min-width:0}.player-hero{display:flex;gap:24px;background:var(--green);padding:28px;color:white;border-radius:6px;position:relative;overflow:hidden}.big-number{font-family:var(--display);font-size:100px;line-height:1;color:var(--lime);font-weight:700;min-width:100px}.player-hero h2{font-size:43px}.player-hero .eyebrow{color:#bcd5c3}.player-hero p{color:#c0d4c8;margin-top:8px}.player-hero .tags{display:flex;gap:6px;flex-wrap:wrap;margin-top:12px}.player-hero .tag{background:#2b5741;color:#d1e7c0}.player-detail-grid{display:grid;grid-template-columns:1.2fr 1fr;gap:18px;margin-top:18px}.role-selector{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:20px 0 14px}.role-selector select{flex:1}.readiness{margin-top:16px;padding-top:16px;border-top:1px solid var(--line)}.readiness .segments{max-width:220px;margin:10px 0}.readiness p{font-size:14px}.mini-pitch{max-width:270px;margin:0 auto;background:#164b37;border-radius:4px}.mini-pitch .pitch-svg{max-height:330px}.mini-pitch .name,.mini-pitch .role-label{display:none}.mini-pitch .team-marker:not(.selected){opacity:.35}.role-instructions{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:18px}.role-instructions .panel+.panel{margin-top:0}.role-instructions h3{font-size:24px}.check-list{padding-left:20px;margin:14px 0 0}.check-list li{margin-bottom:9px;font-size:15px;color:var(--muted)}.full-width{grid-column:1/-1}.match-intro{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.match-intro .tag{font-size:14px;padding:6px 10px}.match-grid{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(330px,1fr);gap:24px;margin-top:22px}.match-roster{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.attendance{display:grid;grid-template-columns:auto 1fr;gap:10px;align-items:start;border:1px solid var(--line);border-radius:4px;padding:11px;background:white}.attendance input{accent-color:var(--green);width:18px;height:18px;margin:3px 0}.attendance strong{font-size:15px;display:block}.attendance small{font-size:12px;color:var(--muted);display:block}.attendance select{font-size:12px;margin-top:7px;width:100%;min-height:32px;padding:4px}.attendance.absent{background:#ecefe8}.assignment-row{display:grid;grid-template-columns:95px minmax(0,1fr);gap:8px;align-items:center;margin-top:10px}.assignment-row label{font-size:14px}.assignment-row select{width:100%;font-size:14px}.primary-button{background:var(--green);color:white;border:1px solid var(--green);padding:9px 16px;border-radius:4px;font-weight:600}.outline-button{background:transparent;border:1px solid #8ca288;padding:9px 16px;border-radius:4px;font-weight:600}.warning{padding:12px 14px;background:#fff1da;border-left:3px solid #c68e38;font-size:14px;margin-top:14px}.match-summary{padding:16px 0;border-bottom:1px solid var(--line);font-size:14px}.match-summary strong{display:block;margin-bottom:5px}.match-summary p{color:var(--muted)}.rotation-table{width:100%;border-collapse:collapse;font-size:14px;margin-top:16px}.rotation-table th,.rotation-table td{text-align:left;padding:12px 8px;border-bottom:1px solid var(--line);vertical-align:top}.rotation-table th{font-weight:600;font-size:12px;text-transform:uppercase;letter-spacing:1px}.rotation-table td:first-child{white-space:nowrap;font-weight:600}.match-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:18px}.match-brief{margin-top:24px}.match-brief h3{margin-bottom:12px}.quiet{color:var(--muted);font-size:14px}.empty{padding:24px;color:var(--muted)}.focus-strip{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin-top:18px;font-size:14px}.focus-strip strong{margin-right:6px}.focus-strip button{font-size:13px;min-height:34px}footer{max-width:1440px;margin:0 auto;padding:22px 0;border-top:1px solid var(--line);display:flex;justify-content:space-between;gap:16px;color:var(--muted);font-size:12px;letter-spacing:.8px}footer b{padding:0 8px}#toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%) translateY(20px);background:#133d2e;color:white;border:1px solid #86ac74;padding:13px 22px;border-radius:5px;opacity:0;pointer-events:none;transition:.2s;z-index:30;max-width:90vw;text-align:center}#toast.show{opacity:1;transform:translateX(-50%) translateY(0)}.skip-link{position:fixed;top:-60px;left:15px;background:white;z-index:100;padding:10px}.skip-link:focus{top:12px}.mobile-player-picker{display:none}.copy-fallback{position:fixed;inset:0;background:#09261dd9;z-index:60;display:grid;place-items:center;padding:20px}.copy-dialog{background:white;padding:24px;border-radius:6px;max-width:580px;width:100%}.copy-dialog textarea{width:100%;height:100px;font:inherit;margin:16px 0}.fine-print{font-size:12px;color:var(--muted)}
@media(min-width:1500px){.pitch-svg{max-height:645px}}@media(max-width:1100px){.header-note{display:none}.share-button{margin-left:auto}.workspace{grid-template-columns:minmax(0,1.35fr) minmax(290px,1fr)}.pattern-layout{grid-template-columns:180px minmax(0,1fr);gap:16px}.pattern-work{grid-template-columns:minmax(0,1fr)}.pattern-work>aside{display:grid;grid-template-columns:1fr 1fr;gap:16px}.pattern-work>aside .panel+.panel{margin-top:0}.player-layout{grid-template-columns:250px minmax(0,1fr)}.player-detail-grid{grid-template-columns:1fr}.player-detail-grid .mini-pitch{display:none}.match-roster{grid-template-columns:1fr}.pitch-stage{padding:8px 12px 0}.panel{padding:20px}footer{margin:0 28px}}
@media(max-width:760px){.club-header{padding:16px 18px;gap:10px}.brand{gap:11px}.brand img{width:49px;height:49px}.brand h1{font-size:33px}.brand .eyebrow{font-size:10px;letter-spacing:1px}.share-button{font-size:12px;padding:6px 9px;min-height:36px}.main-nav{padding:0 16px;gap:22px;overflow-x:auto}.main-nav button{font-size:14px;padding:14px 0 12px}.main-nav button span{display:none}main{padding:23px 16px 35px}.section-top{align-items:start;flex-direction:column;gap:16px;margin-bottom:18px}.section-top h2{font-size:36px}.section-top p{font-size:15px}.workspace{grid-template-columns:1fr;gap:16px}.pitch-svg{max-height:580px}.pitch-stage{padding:8px 10px 0}.board-toolbar{padding:11px 10px}.phase-tabs{gap:2px}.phase-tabs button{padding:6px 9px;font-size:13px}.icon-button{font-size:12px}.panel{padding:20px}.micro-grid{grid-template-columns:1fr;gap:0}.micro-card{padding:16px 0;border-top:1px solid var(--line)}.pattern-layout{grid-template-columns:1fr}.pattern-menu{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.pattern-choice{padding:10px;gap:5px}.pattern-choice strong{font-size:13px}.pattern-choice small{font-size:11px}.pattern-choice .pattern-no{font-size:11px}.pattern-work{gap:16px}.pattern-work>aside{display:block}.pattern-work>aside .panel+.panel{margin-top:16px}.player-layout{grid-template-columns:1fr;gap:16px}.roster-sidebar{display:none}.mobile-player-picker{display:block;width:100%;margin-bottom:16px}.mobile-player-picker select{width:100%}.player-hero{padding:22px;gap:15px}.big-number{font-size:80px;min-width:70px}.player-hero h2{font-size:37px}.player-detail-grid{gap:16px}.role-instructions{grid-template-columns:1fr;gap:16px}.match-grid{grid-template-columns:1fr;gap:16px}.match-roster{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.attendance{padding:9px;gap:6px}.attendance strong{font-size:14px}.attendance small{font-size:11px}.attendance input{width:16px;height:16px}.match-grid>aside{grid-row:1}.match-grid>aside .panel+.panel{margin-top:16px}.board-bottom{padding:12px;font-size:11px}.legend{gap:9px}.playback{padding:13px 12px}.playback button{padding:7px 10px}.role-selector{align-items:stretch;flex-direction:column;gap:6px}footer{margin:0 16px;flex-direction:column;gap:8px;padding:18px 0}.focus-strip{margin-top:12px}.section-top .segmented{align-self:flex-start}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important;scroll-behavior:auto!important}}
@media print{.club-header{background:white;color:#16362c;border-bottom:2px solid #16362c;padding:10px}.header-note,.share-button,.main-nav,footer,.match-roster,.match-actions,.roster-sidebar,.pattern-menu,.control-row,.sub-controls,#toast{display:none!important}main{padding:12px}.workspace,.match-grid,.player-layout,.pattern-work,.pattern-layout{display:block}.board-shell{max-width:540px;margin:auto;print-color-adjust:exact}.panel{break-inside:avoid;margin:12px 0}.section-top{margin-bottom:12px}.pitch-svg{max-height:550px}.match-grid>aside{display:block}.panel+.panel{margin-top:12px}.player-hero{print-color-adjust:exact}.role-instructions{display:block}.match-grid>section>h3{display:none}.match-grid>section>p{display:none}}
.team-marker .name{font-size:16px}.team-marker .role-label{font-size:11px}.team-marker .number{font-size:14px}.pitch-svg .team-marker{scroll-margin:20px}
/* Version 2: a personal starting point and visible phase controls. */
.club-header{gap:22px}.identity-controls{margin-left:auto;display:grid;grid-template-columns:190px 245px;gap:12px}.identity-controls label{display:block;font-size:12px;letter-spacing:.8px;color:#d2e3d5;margin-bottom:5px;font-weight:600}.identity-controls select{width:100%;background:#fff;color:#16362c;border:1px solid #91aa92;min-height:43px;font-size:15px}.identity-controls select:disabled{background:#d7e2d9;color:#526e5f}.club-header .share-button{margin-left:0}.formation-strip{display:flex;justify-content:space-between;align-items:center;gap:20px;background:white;border:1px solid var(--line);border-left:4px solid var(--green);padding:16px 20px;border-radius:5px;margin-bottom:26px}.formation-strip .section-kicker{display:block;margin-bottom:6px}.formation-strip p{font-size:16px;color:var(--muted)}.formation-strip p strong{color:var(--ink)}.formation-strip .segmented button{min-height:43px;padding:9px 23px;font-size:18px}.you-key{display:inline-block;font-size:10px;letter-spacing:1px;font-weight:700;color:#203b28;background:#ffdd7a;border-radius:3px;padding:2px 6px;vertical-align:middle;margin-left:8px}.setup-empty{padding:55px 30px 80px;max-width:760px}.setup-number{font-family:var(--display);font-size:90px;line-height:1;color:#adc396;margin-bottom:20px}.setup-empty h2{font-size:44px;max-width:560px}.setup-empty p{font-size:18px;line-height:1.6;max-width:570px;color:var(--muted);margin-top:18px}.setup-steps{display:flex;gap:12px;flex-wrap:wrap;margin-top:30px}.setup-steps span{font-size:14px;padding:9px 12px;border:1px solid #cbd6c4;border-radius:4px;color:var(--muted)}.setup-steps .done{background:#e3efd3;border-color:#99b37e;color:var(--green)}.phase-tabs{display:grid;grid-template-columns:repeat(3,minmax(95px,1fr));gap:8px;width:100%}.phase-tabs button{min-height:44px;padding:9px 12px;border:1px solid #72957e;background:#285d45;color:#fff;font-weight:600;border-radius:5px;box-shadow:0 2px 0 #07271a;font-size:15px}.phase-tabs button:hover{background:#3c7255;border-color:#d3e4c4}.phase-tabs button.active{background:var(--lime);border-color:var(--lime);color:var(--green);box-shadow:0 2px 0 #809e55}.board-toolbar{align-items:center;gap:16px}.phase-demo-title{padding:16px 18px 3px;background:#103b2b;color:#e3eedc}.phase-demo-title span{display:block;font-size:11px;letter-spacing:1.7px;color:#adc9ae;margin-bottom:4px}.phase-demo-title strong{font-size:16px;font-weight:600}.phase-step-count{font-size:13px;white-space:nowrap}.sequence-story{margin-bottom:16px;border-top:4px solid #d4a843}.your-job{margin-top:18px;padding:15px;background:#f4f4e7;border:1px solid #e4e5ce;border-radius:4px}.your-job .you-key{margin:0 7px 0 0}.your-job>strong{font-size:14px}.your-job p{font-size:15px;margin-top:9px}.you-halo{fill:#ffda7822;stroke:#ffda78;stroke-width:2.7}.you-label{font-size:11px;font-weight:800;letter-spacing:1.7px;fill:#ffe39a;text-anchor:middle;paint-order:stroke;stroke:#164b37;stroke-width:3px}.your-player .disc{fill:#ffdc7e!important;stroke:#fff6dc!important;stroke-width:2}.your-player .name{fill:#ffe39a}.mini-pitch .your-player .you-label{display:none}.phase-playback .play{min-width:118px}.phase-playback button:focus-visible{outline-color:#ffdc7e}.main-nav{position:relative}.board-shell .pitch-stage{padding-top:14px}
@media(max-width:1100px){.identity-controls{grid-template-columns:165px 205px}.club-header{gap:14px}.brand h1{font-size:38px}.brand img{width:55px;height:55px}.brand .eyebrow{font-size:10px}.club-header .share-button{font-size:12px;padding:7px 10px}.board-toolbar{flex-wrap:wrap}.board-toolbar>.icon-button{margin-left:auto}.phase-tabs{flex-basis:100%}}
@media(max-width:760px){.club-header{display:grid;grid-template-columns:1fr auto;padding:15px 16px;gap:15px}.identity-controls{grid-row:2;grid-column:1/-1;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);margin:0;width:100%;gap:10px}.identity-controls label{font-size:12px}.identity-controls select{font-size:14px;padding:8px 6px}.brand h1{font-size:33px}.brand img{width:49px;height:49px}.brand .eyebrow{font-size:10px}.club-header .share-button{align-self:center}.formation-strip{align-items:flex-start;flex-direction:column;padding:14px 16px;gap:12px;margin-bottom:22px}.formation-strip .segmented{width:100%}.formation-strip .segmented button{flex:1}.formation-strip p{font-size:15px}.setup-empty{padding:25px 4px 50px}.setup-number{font-size:64px;margin-bottom:15px}.setup-empty h2{font-size:36px}.setup-empty p{font-size:16px}.setup-steps{gap:7px;margin-top:22px}.setup-steps span{font-size:12px;padding:8px}.phase-tabs{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.phase-tabs button{font-size:14px;padding:8px 5px;min-height:44px}.phase-demo-title{padding:15px 12px 3px}.phase-demo-title strong{font-size:15px}.phase-playback{gap:6px}.phase-playback button{font-size:14px;padding:7px 9px}.phase-playback .play{min-width:109px}.section-top p{line-height:1.5}.your-job>strong{font-size:14px}}
@media print{.identity-controls,.formation-strip,.phase-playback,.phase-step-track{display:none}}
[hidden]{display:none!important}.identity-controls{display:block}.viewer-summary{display:flex;align-items:center;gap:14px}.viewer-summary>div{display:grid;gap:2px;min-width:150px}.viewer-summary strong{color:white;font-size:16px}.viewer-summary>div>span{color:#c6ddca;font-size:14px}.viewer-summary .you-key{margin:0}.entry-page{min-height:65vh;display:grid;place-items:center;padding:32px 16px}.entry-card{width:100%;max-width:570px;background:white;border:1px solid var(--line);border-top:5px solid var(--green);border-radius:9px;padding:36px;box-shadow:0 12px 40px #143e3010}.entry-badge{display:flex;align-items:center;gap:17px;margin-bottom:25px}.entry-badge img{border-radius:50%}.entry-badge .section-kicker{max-width:180px;line-height:1.7;margin:0}.entry-card h2{font-size:46px}.entry-card>p{color:var(--muted);font-size:17px;margin-top:14px;line-height:1.6}.entry-fields{display:grid;gap:20px;margin:28px 0}.entry-fields select{width:100%;min-height:48px;font-size:16px}.entry-fields select:disabled{background:#eff2eb;color:#809180}.enter-playbook{width:100%;min-height:49px;font-size:17px}.entry-cancel{display:block;margin:15px auto 0}.entry-overlay{position:fixed;inset:0;z-index:70;background:#09281edb;backdrop-filter:blur(4px);display:grid;place-items:center;padding:20px;overflow-y:auto}.entry-overlay .entry-card{margin:auto}.entry-page+.formation-strip{display:none}
@media(max-width:760px){.identity-controls{grid-row:2}.viewer-summary{gap:9px;justify-content:space-between}.viewer-summary>div{min-width:0;flex:1}.viewer-summary strong{font-size:15px}.viewer-summary>div>span{font-size:13px}.viewer-summary .share-button{font-size:12px;padding:6px 9px}.entry-page{padding:12px 0 24px;min-height:65vh}.entry-card{padding:25px 22px}.entry-card h2{font-size:38px}.entry-card>p{font-size:16px}.entry-badge{gap:14px;margin-bottom:21px}.entry-badge img{width:63px;height:63px}.entry-fields{margin:24px 0;gap:17px}.club-header:has(.identity-controls:empty){grid-template-columns:1fr}.club-header:has(.identity-controls:empty) .identity-controls{display:none}}
@media(max-width:760px){.formation-strip{flex-direction:row;align-items:center;padding:11px 12px;gap:10px;margin-bottom:18px}.formation-strip p{display:none}.formation-strip .section-kicker{font-size:11px;letter-spacing:1px;margin:0}.formation-strip .segmented{width:auto;flex-shrink:0}.formation-strip .segmented button{font-size:16px;padding:7px 12px;min-height:40px}.section-top h2{font-size:32px}main:has(.workspace) .section-top p{display:none}main:has(.workspace) .section-top{margin-bottom:16px}.board-toolbar{gap:10px}}
.build-routes{display:grid;grid-template-columns:auto minmax(160px,1fr);gap:7px 14px;align-items:center;padding:13px 18px;background:#103b2b;border-top:1px solid #426850;color:#d9e6d6}.build-routes label{font-size:13px;font-weight:600}.build-routes select{width:100%;min-height:40px;background:#244f3b;border:1px solid #749581;color:white;font-size:14px;padding:7px 10px}.build-routes p{grid-column:1/-1;font-size:13px;color:#bcd4bf;line-height:1.45}.phase-handoff{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 18px 16px;background:#103b2b;color:#bcd4bf;font-size:13px}.phase-handoff button{border:1px solid #719674;border-radius:4px;background:transparent;color:#d9e6d6;padding:9px 12px;font:inherit;min-height:42px}.phase-handoff.ready button{background:#d2ee92;color:#133d2e;border-color:#d2ee92;font-weight:700}.phase-handoff button:disabled{opacity:.4;cursor:default}.phase-handoff.ready span{color:#d2ee92}.phase-tabs button{font-size:14px}@media(max-width:760px){.build-routes{padding:11px 12px;grid-template-columns:1fr}.build-routes select{font-size:15px}.build-routes p{font-size:12px}.phase-handoff{padding:0 12px 15px;flex-wrap:wrap;gap:8px}.phase-handoff button{width:100%}.phase-tabs button{font-size:13px}.phase-handoff>span{font-size:12px}}
.review-toolbar{display:flex;justify-content:space-between;gap:16px;align-items:center;margin:0 0 20px}.review-toolbar>span{font-size:13px;color:var(--muted)}.animation-review-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.animation-review-card{background:white;border:1px solid var(--line);border-radius:6px;overflow:hidden;display:flex;flex-direction:column;padding:20px}.review-card-heading{min-height:86px}.review-card-heading>span{font-size:11px;letter-spacing:1.2px;color:var(--muted)}.review-card-heading h3{font-size:25px;line-height:1.15;margin-top:8px}.review-thumbnail{background:#164b37;border-radius:4px;margin-top:12px}.review-thumbnail .pitch-svg{height:260px;width:100%}.review-thumbnail .name,.review-thumbnail .role-label{display:none}.animation-review-card>p{font-size:14px;line-height:1.55;color:var(--muted);margin:10px 0 18px}.animation-review-card .review-caption{font-size:11px;margin:7px 0 0;color:#7b897c}.animation-review-card>button{margin-top:auto;width:100%}.animation-action{display:inline-block;font-size:12px;font-weight:600;padding:5px 9px;margin:7px 0 12px;color:#345b26;background:#edf3df;border-radius:3px}.pattern-review-next{display:flex;justify-content:space-between;gap:10px;padding:0 18px 16px;background:#103b2b}.pattern-review-next button{font-size:13px;border:1px solid #749581;color:#d9e6d6;background:transparent;border-radius:4px;padding:8px 10px;min-height:40px}.player-moving{transition-duration:1200ms}.ball{transition-duration:var(--ball-duration,800ms)}@media(max-width:1100px){.animation-review-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:760px){.review-toolbar{align-items:flex-start;flex-direction:column;gap:8px;margin-bottom:15px}.review-toolbar button{width:100%}.review-toolbar>span{font-size:12px}.animation-review-grid{grid-template-columns:1fr;gap:16px}.review-card-heading{min-height:0}.review-thumbnail .pitch-svg{height:270px}.pattern-review-next{flex-wrap:wrap;padding:0 12px 16px}.pattern-review-next button{flex:1;min-width:130px}.animation-review-card{padding:18px}}
.quick-guide-link{font-weight:600;text-underline-offset:4px}
.static-shape .player-moving,.static-shape .ball{transition:none!important;animation:none!important}.shape-picker{width:100%;max-width:480px;min-height:48px;margin-bottom:22px}.shape-responsibility-card h2{font-size:34px;line-height:1.1;margin-top:8px}.shape-player-job{margin-top:22px;padding:18px;background:#f4f4e7;border-left:3px solid #d4a843;border-radius:3px}.shape-player-job h3{font-size:24px;margin-top:8px;line-height:1.15}.shape-player-job p{font-size:16px;line-height:1.45}.shape-player-job .basic-jobs{margin-top:16px;gap:12px}.shape-player-job .you-key{margin:0}.shape-team-job{margin-top:24px}.shape-team-job h3{font-size:23px}.shape-rules{list-style:none;padding:0;display:grid;gap:16px;margin:16px 0 0}.shape-rules strong{display:block;font-size:16px}.shape-rules span{display:block;font-size:15px;color:var(--muted);line-height:1.45;margin-top:4px}.shape-reminder{font-size:14px!important;line-height:1.5;border-top:1px solid var(--line);padding-top:14px;margin-top:18px!important}
@media(max-width:760px){.shape-responsibility-card h2{font-size:29px}.shape-player-job{padding:15px;margin-top:18px}.shape-player-job h3{font-size:22px}.shape-picker{margin-bottom:18px}}
.basic-role-card h2{font-size:38px;line-height:1.1}.basic-player{font-size:15px!important;color:var(--muted);margin-top:8px!important}.basic-role-card .basic-job{font-size:20px;color:var(--ink);margin-top:20px;line-height:1.4}.basic-jobs{list-style:none;margin:22px 0 0;padding:0;display:grid;gap:16px}.basic-jobs li{padding-left:22px;position:relative;font-size:17px;line-height:1.45}.basic-jobs li:before{content:'';position:absolute;left:0;top:9px;width:7px;height:7px;background:var(--green);border-radius:50%}.base-field .ball{display:none}.base-hint,.simple-legend{padding:13px 16px;background:#103b2b;color:#cfe2d0;font-size:13px}.position-select-label{display:block;font-size:14px;margin:14px 0 6px;font-weight:600}#basic-position{width:100%;min-height:48px}.next-lesson{margin-top:18px}.next-lesson p{font-size:15px;color:var(--muted);margin-bottom:10px}.next-lesson button{width:100%;min-height:48px}.extra-details{border-top:1px solid var(--line);margin-top:22px;padding-top:14px}.extra-details summary{cursor:pointer;font-weight:600;font-size:15px;min-height:44px;display:list-item;align-content:center}.extra-details[open] summary{margin-bottom:12px}.extra-details .panel{padding:18px;box-shadow:none}.team-options{background:#eaf0e4;padding:6px 16px;border:1px solid var(--line);border-radius:5px;margin-top:14px}.team-options .build-routes{margin-bottom:12px;border-radius:5px}.team-options>.text-link{display:block}.position-overview{margin-top:36px;padding-top:24px;border-top:1px solid var(--line)}.position-overview h3{font-size:28px;margin-bottom:20px}.position-overview-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}.position-overview-grid strong{font-size:16px}.position-overview-grid p{font-size:15px;line-height:1.45;color:var(--muted);margin-top:6px}.attack-picker{width:100%;max-width:480px;min-height:48px;margin-bottom:22px}.sequence-story{border-top:1px solid var(--line)}.sequence-story h3{margin-top:10px}.sequence-story .lead{font-size:17px}.phase-handoff{padding-top:0}.basics-workspace>.board-shell{min-width:0}
@media(max-width:760px){.basic-role-card h2{font-size:30px}.basic-role-card .basic-job{font-size:19px;margin-top:14px}.basic-jobs{gap:14px;margin-top:18px}.basic-jobs li{font-size:16px}.position-overview-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 16px}.position-overview-grid strong{font-size:15px}.position-overview-grid p{font-size:14px}.base-field .pitch-stage{padding-top:10px}.base-field .pitch-svg{max-height:510px}.extra-details summary{font-size:15px}.position-overview{margin-top:28px}.club-header{padding-top:12px;padding-bottom:12px}.base-hint{font-size:12px}}
/* Separate the high striker's labels from the supporting forward below. */
.team-marker[data-slot="9"] .name{transform:translateY(-59px)}
.team-marker[data-slot="9"] .role-label{transform:translateY(-58px)}
.team-marker[data-slot="9"] .you-label{transform:translateY(-28px)}
@media(max-width:1100px){select,input[type=search],.build-routes select,.attendance select,.lineup-row select{font-size:16px!important;min-height:44px!important}}
/* Phone sharing edition: visible navigation and comfortable touch controls. */
@media(max-width:760px){
 html{scroll-padding-top:12px}body{overflow-wrap:break-word}
 button,select,input[type=search]{min-height:44px}
 select,input[type=search],.build-routes select,.identity-controls select{font-size:16px}
 .main-nav{display:grid;grid-template-columns:1fr 1fr;gap:0;padding:6px 16px;overflow:visible}
 .main-nav button{white-space:normal;text-align:left;padding:10px 8px;border-radius:4px;min-height:44px}
 .main-nav button.active{background:#edf3e5}
 .main-nav button span{display:inline;margin-right:6px;font-size:11px}
 .club-header .share-button,.viewer-summary .share-button,.formation-strip .segmented button,.icon-button,.segmented button,.pattern-review-next button{min-height:44px}
 .pattern-choice{min-height:70px}.pattern-choice strong{font-size:14px}.pattern-choice small{font-size:12px}
 .attendance select{font-size:16px;min-height:44px;width:100%}.attendance>span{min-width:0;flex:1}
 .attendance input{width:22px;height:22px;flex-shrink:0}.attendance{align-items:flex-start}
 .text-link{min-height:44px}.sub-controls .quiet{min-height:44px;display:flex;align-items:center}
 .entry-overlay{padding:12px;align-items:start}.entry-overlay .entry-card{margin:12px auto}
 .playback{flex-wrap:wrap}.playback button{min-height:44px}
 .formation-strip{min-width:0}.formation-strip .section-kicker{max-width:85px}.formation-strip .segmented button{white-space:nowrap}
 footer{padding-bottom:max(20px,env(safe-area-inset-bottom))}
}
@media(max-width:380px){.match-roster{grid-template-columns:1fr}.pattern-menu{grid-template-columns:repeat(2,minmax(0,1fr))}.brand h1{font-size:29px}.club-header{gap:10px}.club-header .share-button{max-width:94px}.viewer-summary strong{font-size:14px}}

.footer-matchday{background:none;border:0;color:var(--muted);font:inherit;text-align:left;padding:0;min-height:44px;cursor:pointer;text-decoration:underline;text-underline-offset:3px}
@media(max-width:760px){.main-nav button:last-child{grid-column:1/-1}}

/* Keep player, system and phase controls together above the diagram. */
.club-header>.share-button{margin-left:auto}
.playbook-controls{background:var(--white);border:1px solid var(--line);border-radius:7px;padding:16px 20px;margin-bottom:20px}
.control-context{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:12px}
.playbook-controls .identity-controls{display:block;margin:0;min-width:0}
.playbook-controls .viewer-summary{display:flex;align-items:center;gap:12px;min-width:0;color:var(--ink)}
.playbook-controls .viewer-summary strong{color:var(--ink)}
.playbook-controls .viewer-summary>div>span{color:var(--muted)}
.playbook-controls .viewer-summary .you-key{margin:0}
.playbook-controls .share-button{color:var(--green);border-color:#b4c5b7;background:white;min-height:44px;white-space:nowrap}
.playbook-controls .share-button:hover{background:#edf3e5}
.control-formation{display:flex;align-items:center;gap:10px}
.control-formation .field-label{margin:0}
.playbook-controls .main-nav{display:flex;padding:0;gap:8px;overflow:visible;border:0;background:transparent}
.playbook-controls .main-nav button{flex:1;border:1px solid var(--line);border-radius:4px;min-height:44px;padding:9px 12px;font-size:15px;text-align:center;background:white;white-space:normal}
.playbook-controls .main-nav button.active{background:var(--green);color:white;border-color:var(--green)}
.playbook-controls .main-nav button.active span{color:var(--lime)}
.control-shape{margin-top:14px;display:grid;grid-template-columns:auto minmax(180px,360px);gap:12px;align-items:center}
.control-shape .field-label{margin:0}
.control-shape .shape-picker{margin:0;max-width:none;min-height:44px;width:100%}
@media(max-width:760px){
 .playbook-controls{padding:14px;margin-bottom:16px}
 .control-context{flex-direction:column;align-items:stretch;gap:12px;margin-bottom:12px}
 .playbook-controls .viewer-summary{gap:9px}
 .playbook-controls .viewer-summary>div{flex:1;min-width:0}
 .playbook-controls .viewer-summary .share-button{margin-left:auto;font-size:13px;padding:8px 10px}
 .control-formation{justify-content:space-between}
 .control-formation .segmented button{min-height:44px;padding:8px 15px}
 .playbook-controls .main-nav{gap:6px}
 .playbook-controls .main-nav button{padding:8px 5px;font-size:13px;line-height:1.25}
 .playbook-controls .main-nav button span{display:none}
 .control-shape{grid-template-columns:auto minmax(0,1fr);gap:10px}
}
