*{box-sizing:border-box}body{margin:0;background:#091a17;color:#f3f5ee;font:15px system-ui,-apple-system,Segoe UI,sans-serif}button,input,select{font:inherit}button{cursor:pointer;border:1px solid #58765f;background:#173e32;color:#f9f8ec;border-radius:9px;padding:10px 12px}button:hover{background:#275744}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #eac35c;outline-offset:2px}a{color:#f1cf6c}.top{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px clamp(16px,4vw,60px);background:#102c25;border-bottom:1px solid #315342;font-size:12px;letter-spacing:.12em}.brand{font-size:20px;font-weight:900;text-decoration:none;color:white}.signin{text-decoration:none}main{max-width:1460px;margin:auto;padding:32px 22px}.intro{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:26px}.eyebrow{color:#e5bf55;letter-spacing:.17em;font-size:11px;font-weight:800}h1{font-size:clamp(30px,4vw,53px);margin:8px 0}h1 em{color:#e9c464}p{color:#b9c8bf;max-width:680px;line-height:1.6}.reset{background:transparent;white-space:nowrap}.workspace{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(300px,.85fr);gap:30px;align-items:start}.device-label{display:flex;justify-content:space-between;font-size:11px;font-weight:800;letter-spacing:.13em;color:#b8d3c2;margin:0 0 12px}.device-label span{color:#e5bf55}.tablet{min-width:0}.screen{background:#112b24;border:10px solid #202d2a;border-radius:24px;padding:18px;box-shadow:0 22px 70px #0007}.section-head,.phone-team{display:flex;align-items:center;gap:12px}.section-head img{width:52px;height:52px;object-fit:contain}.section-head strong,.phone-team strong{display:block}.section-head small,.phone-team small{display:block;color:#a8bfb1;margin-top:4px}.live{margin-left:auto;font-size:10px;color:#e9c565}.score{display:grid;grid-template-columns:1fr 1fr 1fr;text-align:center;align-items:center;background:#071b16;border:1px solid #335343;border-radius:12px;margin:16px 0;padding:14px 6px}.score span,.score small{display:block;color:#a9c2b4;font-size:10px}.score strong{display:block;font-size:36px}.score-mid strong{font-size:22px;color:#f3ce67}.actions{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:12px}.actions button{flex:1;min-width:90px}.tools{display:flex;flex-wrap:wrap;align-items:end;gap:10px;margin:12px 0}.tools label{flex:1;min-width:120px;color:#c4d8ca;font-size:12px}.tools select{display:block;width:100%;margin-top:5px}select,input{border-radius:8px;background:#092119;color:#fff;border:1px solid #527060;padding:10px;min-width:0}.pitch,.phone-pitch{position:relative;overflow:hidden;border:3px solid #d8e6d480;background:repeating-linear-gradient(0deg,#1e5d43 0 15%,#246b4c 15% 30%);border-radius:8px;aspect-ratio:1.3;min-height:320px}.pitch:before,.phone-pitch:before{content:"";position:absolute;inset:5%;border:2px solid #cde0ce99}.midline{position:absolute;top:50%;left:5%;width:90%;border-top:2px solid #cde0ce99}.circle{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:18%;aspect-ratio:1;border:2px solid #cde0ce99;border-radius:50%}.dot{position:absolute;transform:translate(-50%,-50%);display:flex;flex-direction:column;align-items:center;gap:3px;font-size:10px;text-align:center;white-space:nowrap;text-shadow:0 1px 3px #000}.dot b{display:grid;place-items:center;border:2px solid #e5bf55;background:#124833;border-radius:50%;width:33px;height:33px;font-size:13px;box-shadow:0 2px 8px #0006}.dot span{background:#092019b8;padding:2px 4px;border-radius:4px}.eventbox,.chat,.phone-card{border:1px solid #3c5b4b;background:#0b241c;border-radius:12px;padding:12px;margin-top:12px}h3{font-size:14px;margin:0 0 10px}.events{display:grid;gap:8px;color:#d5e3d7;font-size:12px}.event{border-bottom:1px solid #375244;padding-bottom:7px}.chat h3 small{font-weight:400;color:#a3b9aa}.messages{max-height:180px;overflow:auto;display:grid;gap:8px}.msg{background:#1c4031;padding:8px;border-radius:9px;font-size:12px;overflow-wrap:anywhere}.msg b{color:#e8c45c;display:block;margin-bottom:3px}form{display:flex;gap:7px;margin-top:12px}form input{flex:1;width:40px}.phone-wrap{max-width:440px;margin:auto;width:100%}.phone{background:#161c1a;border:9px solid #303937;border-radius:40px;padding:7px;box-shadow:0 22px 70px #0009}.island{width:32%;height:14px;background:#050908;border-radius:20px;margin:0 auto 8px}.phone-screen{background:#f0f3ed;color:#1d3428;border-radius:24px;padding:15px;max-height:850px;overflow:auto}.phone-head{display:flex;justify-content:space-between;color:#164e35;font-weight:900}.phone-head small{font-size:9px;align-self:center}.phone-team{margin:18px 0}.phone-team img{width:45px;height:45px;object-fit:contain}.phone-team small{color:#637e70}.phone-score{display:flex;justify-content:space-around;align-items:center;background:#123e2e;color:#fff;border-radius:12px;padding:12px}.phone-score>strong{font-size:34px}.phone-score div{text-align:center}.phone-score span,.phone-score small{display:block;font-size:12px}.phone-score small{font-size:9px;color:#e7c15c}.phone-pitch{margin-top:12px;min-height:0;aspect-ratio:1.15}.phone-pitch .dot{font-size:7px}.phone-pitch .dot b{width:23px;height:23px;font-size:10px}.phone-pitch .dot span{max-width:60px;overflow:hidden;text-overflow:ellipsis}.phone-card{background:#fff;color:#213d2b;border-color:#d1ddd2}.phone-card .event{border-color:#e1e8df}.phone-card .msg{background:#e5f0e7}.phone-card .msg b{color:#1e6b45}.phone-card input{background:#f4f8f3;color:#173825;border-color:#c4d6c9}.disclaimer{display:block;color:#6b8072;text-align:center;margin-top:12px}.foot-cta{text-align:center;margin:38px 0;color:#c4d5c9}.foot-cta a{margin-left:8px}@media(max-width:850px){.workspace{grid-template-columns:1fr}.phone-wrap{max-width:410px}.intro{align-items:start;flex-direction:column}.screen{padding:12px;border-width:6px}.top>span{display:none}}@media(max-width:430px){main{padding:20px 10px}.section-head img{width:40px;height:40px}.live{font-size:8px}.pitch{min-height:250px}.dot b{width:26px;height:26px}.dot span{font-size:8px}}
/* v2 — adapted from the actual P.I.T.C.H. v0.8.0-alpha10.1 UI design language. */
:root{--bg:#f5f8f4;--panel:#fff;--edge:#d2dfd5;--text:#19332a;--muted:#637c72;--lime:#b8ef68;--mint:#167d55;--gold:#e3b84d}
body{background:#eaf0e9;color:var(--text);font-family:Inter,ui-sans-serif,system-ui,-apple-system,Segoe UI,sans-serif}
.top{background:#182e2a;color:#f5f8f4;border-bottom:1px solid #42614f}.top a{color:#e9cf75}
main{max-width:1780px}.intro p{color:#50695c}.intro h1 em{color:#18774c}.eyebrow{color:#167d55}
.device-label{color:#365a48}.device-label span{color:#9b7223}
.screen{display:block;background:#f5f8f4;border:9px solid #263632;border-radius:26px;padding:0;color:#19332a}
.app-chrome{display:grid;grid-template-columns:165px minmax(0,1fr);min-height:680px}
.app-sidebar{background:#152b2b;color:#e4eee7;border-right:1px solid #375447;display:flex;flex-direction:column;padding:18px 9px;border-radius:15px 0 0 15px}
.app-sidebrand{font-size:12px;display:flex;flex-wrap:wrap;gap:5px;align-items:center;padding:9px 5px 25px}.app-sidebrand strong{letter-spacing:.12em}.app-sidebrand small{width:100%;font-size:8px;letter-spacing:.12em;color:#9fbaac}
.app-nav{display:grid;gap:7px;font-size:11px}.app-nav div{padding:12px 7px;border:1px solid #345246;border-radius:9px}.app-nav .selected{background:#315544;color:#c4f17c;border-color:#80a873;font-weight:800}.app-version{margin-top:auto;color:#a7bdad;font-size:9px;padding:14px 5px}
.app-main{padding:16px;min-width:0}.app-top{display:flex;justify-content:space-between;align-items:center;gap:10px;border-bottom:1px solid #d7e3da;padding-bottom:14px;margin-bottom:16px}.app-top h2{margin:3px 0;font-size:22px}.demo-chip{font-size:9px;font-weight:900;color:#176a46;background:#e1f3e7;border:1px solid #b4d5c0;border-radius:20px;padding:7px}
.section-head{background:#fff;border:1px solid #d3e1d6;border-radius:13px;padding:12px}.section-head small{color:#667c71}.live{color:#136c43}
.score{background:linear-gradient(125deg,#e6f8dc,#dbf3e8);border:1px solid #a7d5bc;color:#193e32;border-radius:19px}.score span,.score small{color:#507466}.score strong{color:#187c4c}.score-mid strong{color:#153e33}
.actions button,.tools button,.chat button{background:#e8f4e8;color:#194633;border:1px solid #b3d1ba;font-weight:750}.actions button:hover,.tools button:hover{background:#d5eacf}
.tools label{color:#315f4b;font-weight:750}.tools select,.tools input{background:#fff;color:#183d30;border-color:#aac7b6}
.authentic-pitch{aspect-ratio:.84;min-height:0;max-width:800px;margin:0 auto;border:5px solid #235a44;border-radius:17px;background:repeating-linear-gradient(0deg,#186046 0,#186046 12.5%,#1c674c 12.5%,#1c674c 25%);box-shadow:inset 0 0 80px #05160b55,0 12px 30px #0003}
.authentic-pitch:before{display:none}.authentic-pitch .pitch-lines{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.authentic-pitch .pitch-markers{position:absolute;inset:0;pointer-events:none}
.authentic-pitch .player-token{position:absolute;transform:translate(-50%,-50%);min-width:64px;max-width:90px;text-align:center;z-index:2;pointer-events:none}.authentic-pitch .disc{height:47px;width:47px;border:2px solid #d9f4ce;border-radius:50%;background:#244a37;display:grid;place-items:center;position:relative;margin:auto;box-shadow:0 3px 10px #0008;overflow:visible}.authentic-pitch .player-photo{height:100%;width:100%;object-fit:cover;border-radius:50%}.authentic-pitch .jersey{position:absolute;right:-9px;bottom:-3px;background:#b8ef68;border:1px solid #f2f5d8;color:#14362c;font-size:10px;font-weight:900;border-radius:12px;padding:2px 4px}.authentic-pitch .name{background:#0c292ae8;color:#fff;border:1px solid #709279;border-radius:6px;padding:3px 5px;font-size:10px;margin-top:3px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.eventbox,.chat{background:#fff;color:#193b2c;border:1px solid #d3e0d5}.events{color:#315c48}.event{border-bottom-color:#d5e4d8}.chat h3 small{color:#698475}.msg{background:#e5f0e7}.msg b{color:#1e6b45}.chat input{background:#fff;color:#1e392d;border:1px solid #bdd4c2}
.phone{border-color:#303937}.phone-screen{background:#f5f8f4}.phone-score{background:linear-gradient(125deg,#e6f8dc,#dbf3e8);color:#1a543a;border:1px solid #a7d5bc}.phone-score small{color:#167d55}.phone-pitch.authentic-pitch{aspect-ratio:.84;border-width:3px}.phone-pitch.authentic-pitch .disc{width:26px;height:26px}.phone-pitch.authentic-pitch .jersey{font-size:7px;right:-5px}.phone-pitch.authentic-pitch .name{font-size:7px;max-width:48px}.phone-pitch.authentic-pitch .player-token{min-width:35px;max-width:50px}
.phone-card{background:#fff;border-color:#d1ddd2}.foot-cta{color:#416552}.foot-cta a{color:#167d55}
@media(max-width:1150px){.workspace{grid-template-columns:1fr}.phone-wrap{max-width:420px}.app-chrome{grid-template-columns:145px minmax(0,1fr)}}
@media(max-width:600px){.app-chrome{grid-template-columns:1fr}.app-sidebar{display:none}.app-main{padding:10px}.app-top h2{font-size:19px}.demo-chip{font-size:8px}.screen{border-width:5px}.authentic-pitch .disc{width:35px;height:35px}.authentic-pitch .name{font-size:8px}.authentic-pitch .player-token{min-width:45px;max-width:65px}.intro{gap:8px}}

/* v3 tactical drawing: coach-only overlay; parent board deliberately unaffected */
.tactical-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:7px;margin:12px 0;padding:10px;background:#e9f2e9;border:1px solid #b9d2be;border-radius:12px}.tactical-title{font-size:10px;font-weight:900;letter-spacing:.12em;color:#24513b;margin-right:4px}.tactical-toolbar button{padding:8px 10px;background:#fff;color:#244735;border:1px solid #abc6b2;font-size:12px}.tactical-toolbar button.active{background:#19583e;color:#fff;border-color:#19583e}.draw-color-label{display:flex;align-items:center;gap:5px;font-size:12px;font-weight:700;color:#27503d}.draw-color-label input{width:37px;height:34px;padding:2px;background:white;border:1px solid #a9c8b2;cursor:pointer}.tactical-toolbar small{flex-basis:100%;font-size:11px;color:#4a705b}.tactical-ink{position:absolute;inset:0;width:100%;height:100%;z-index:5;pointer-events:none;touch-action:auto;overflow:visible}.tactical-ink.drawing{pointer-events:auto;touch-action:none;cursor:crosshair}.tactical-ink.erasing{pointer-events:auto;touch-action:none;cursor:cell}.tactical-ink path{fill:none;stroke-linejoin:round;stroke-linecap:round;vector-effect:non-scaling-stroke}.tactical-ink path.erasable{pointer-events:stroke}.tactical-ink.erasing path.erasable{cursor:cell}.tactical-ink.erasing path.erasable:hover{opacity:.55}.tactical-ink:not(.erasing) path{pointer-events:none}


/* iOS tactical drawing touch fix */
#coach-pitch:has(#tactical-ink.drawing),
#coach-pitch:has(#tactical-ink.erasing),
#tactical-ink.drawing,
#tactical-ink.erasing {
    touch-action: none !important;
    -webkit-user-select: none !important;
    user-select: none !important;
    overscroll-behavior: contain;
}

/* Riverton parent-phone-only GOAL celebration (CSP compatible). */
.phone-screen{position:relative}
.demo-goal-overlay[hidden]{display:none!important}
.demo-goal-overlay{position:absolute;inset:0;z-index:40;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:10px;padding:18px;background:radial-gradient(circle at 50% 35%,#276344 0%,#102b22 52%,#081c17 100%);color:#fff;box-sizing:border-box;overflow:hidden;border-radius:inherit;pointer-events:none}
.demo-goal-overlay.is-visible{animation:demoGoalEnter .45s cubic-bezier(.2,.9,.2,1) both}
.demo-goal-sparks{font-size:32px;color:#f2cf65;letter-spacing:.25em;animation:demoGoalSpark 1.6s ease-in-out infinite alternate}
.demo-goal-title{font-weight:950;letter-spacing:.12em;font-size:clamp(38px,7vw,66px);line-height:1;color:#f4d36e;text-shadow:0 5px 28px #0008}
.demo-goal-team{font-size:15px;font-weight:800;color:#f3f9f4}
.demo-goal-score{font-size:clamp(30px,6vw,48px);font-weight:900;color:#f4d36e;font-variant-numeric:tabular-nums}
.demo-goal-scorer{font-size:14px;font-weight:800;line-height:1.4}
.demo-goal-minute{font-size:11px;color:#bddbc8}
@keyframes demoGoalEnter{from{opacity:0;transform:scale(.91)}to{opacity:1;transform:scale(1)}}
@keyframes demoGoalSpark{from{opacity:.5;transform:translateY(3px)}to{opacity:1;transform:translateY(-3px)}}
@media(prefers-reduced-motion:reduce){.demo-goal-overlay,.demo-goal-sparks{animation:none!important}}

/* Riverton goal attribution dialog and visible reset action */
.intro .reset{background:#173e32;color:#fff;border:2px solid #e7c25c;font-weight:800;padding:14px 20px;box-shadow:0 5px 16px #0004}
.intro .reset:hover{background:#285b45;color:#ffe28c}
.goal-dialog{position:fixed;inset:0;margin:auto;width:min(440px,calc(100vw - 28px));max-height:calc(100vh - 32px);overflow:auto;box-sizing:border-box;border:1px solid #b7d6bd;border-radius:18px;background:#f5f8f3;color:#183b2c;padding:22px;box-shadow:0 20px 90px #0009}
.goal-dialog::backdrop{background:#06130fc9;backdrop-filter:blur(3px)}
.goal-form{display:grid;gap:16px;margin:0}
.goal-dialog-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.goal-dialog-head h2{margin:0;font-size:24px}
.goal-dialog .goal-close{background:transparent;color:#183b2c;border:1px solid #9bb7a4;font-size:26px;line-height:1;padding:5px 12px}
.goal-dialog p{margin:0;color:#466656;font-size:14px}
.goal-form label{display:grid;gap:7px;font-weight:750;font-size:14px}
.goal-form select{width:100%;background:#fff;color:#183b2c;border:1px solid #a9c7b0;min-height:45px}
.goal-dialog-actions{display:flex;gap:10px;justify-content:flex-end;flex-wrap:wrap}
.goal-dialog-actions button{font-weight:800}
.goal-dialog-actions .goal-submit{background:#e7c25c;color:#142a20;border-color:#c8a33f}
.goal-dialog-actions .goal-submit:hover{background:#f3d77e}

/* alpha14.6.6: demo visual alignment with P.I.T.C.H. alpha14.6.5 */
:root{--bg:#f4f4f1;--panel:#343434;--edge:#565656;--text:#fff;--muted:#c9c9c9;--gold:#d9bd08}
body{background:#f4f4f1;color:#242424}
.top{background:#292929;border-color:#444}.top a{color:#e9d75d}
.intro h1{color:#242424}.intro h1 em{color:#a48b00}.intro p{color:#545454}.intro .eyebrow{color:#8c7600}
.device-label{color:#414141}.device-label span{color:#967e00}
.screen{background:#f4f4f1;border-color:#242424;color:#242424}
.app-sidebar{background:#303030;color:#f7f7f7;border-color:#484848}
.app-sidebrand small{color:#c7c7c7}.app-nav div{border-color:#595959}
.app-nav .selected{background:#d9bd08;color:#171717;border-color:#f3d52e}
.app-version{color:#bdbdbd}
.app-top{border-color:#ddd}.app-top h2{color:#242424}
.demo-chip{background:#333;color:#f0cf30;border-color:#555}
.section-head,.eventbox,.chat{background:#343434;color:#fff;border-color:#555}
.section-head small,.chat h3 small{color:#c8c8c8}.live{color:#d9bd08}
.score{display:block!important;background:linear-gradient(145deg,#172126,#0b1013)!important;border:3px double #385a4c!important;color:#fff!important;padding:16px!important;border-radius:20px!important;box-shadow:0 0 0 2px #1b2728,0 10px 28px #0004!important}
.demo-score-meta{text-align:center;color:#d9bd08;font-weight:850;letter-spacing:.09em;font-size:11px;margin-bottom:14px}
.demo-score-meta small{display:block;color:#c6c6c6!important;margin-top:4px;font-size:9px}
.demo-score-grid{display:grid;grid-template-columns:minmax(0,1fr) 12px minmax(0,1fr);align-items:center;gap:8px}
.demo-score-team{display:flex;flex-direction:column;align-items:center;gap:8px;padding:12px 5px;background:linear-gradient(#142026,#0b1216);border:1px solid #286346;border-radius:13px;min-width:0}
.demo-score-team>span{font-size:10px;font-weight:850;text-align:center;color:#fff!important;min-height:2.5em;display:grid;place-items:center}
.demo-score-team>strong{display:grid;place-items:center;background:#04090b;border:1px solid #253e42;border-radius:10px;width:95%;min-height:88px;color:#43f58b!important;font-size:1px!important;line-height:1!important;text-shadow:none!important}
.demo-score-vs{color:#b4c5c0!important;text-align:center;font-size:24px}
.score .score-mid{display:flex!important;flex-direction:column;align-items:center;justify-content:center;width:100%;margin:15px 0 0;padding:10px 0 0;border-top:1px solid #2d4444;background:transparent!important}
.score .score-mid strong{display:grid;place-items:center;color:#ffcf32!important;font-size:1px!important;line-height:1!important;text-shadow:none!important}
.score .score-mid small{color:#ccc!important;font-size:10px;margin-top:7px}
.demo-led-digits{display:inline-flex;align-items:center;justify-content:center;gap:2px;height:72px;max-width:100%;vertical-align:middle}
.demo-led-digit{height:100%;width:auto;min-width:0;overflow:visible}
.demo-led-colon{height:100%;width:auto;fill:currentColor}
.demo-led-digit .lit{fill:currentColor;filter:drop-shadow(0 0 3px currentColor)}
.demo-led-digit .unlit{fill:#102019;opacity:.22}
#clock .demo-led-digits{height:47px}
#clock .demo-led-digit .unlit,#phone-clock .demo-led-digit .unlit{fill:#332709;opacity:.22}
.actions button,.tools button,.chat button{background:#d9bd08;color:#181818;border-color:#d9bd08}
.tools label{color:#363636}.tools select,.tools input{background:#fff;color:#222;border-color:#888}
.tactical-toolbar{background:#343434;border-color:#5b5b5b}.tactical-title,.tactical-toolbar small,.draw-color-label{color:#fff}
.tactical-toolbar button{background:#292929;color:#fff;border-color:#777}
.tactical-toolbar button.active{background:#d9bd08;color:#1b1b1b;border-color:#d9bd08}
.events{color:#eee}.event{border-bottom-color:#555}
.chat input{background:#222;color:#fff;border-color:#777}
.phone-screen{background:#f3f3f0}.phone-score{background:linear-gradient(145deg,#172126,#0b1013)!important;border:2px solid #365b49!important;color:#43f58b!important;box-shadow:0 0 0 2px #1b2728}
.phone-score strong{color:#43f58b!important;font-size:1px!important;text-shadow:none!important}
.phone-score .demo-led-digits{height:49px}
#phone-clock{color:#ffcf32!important;font-size:1px!important;text-shadow:none!important}
#phone-clock .demo-led-digits{height:25px}
.phone-score small{color:#c7c7c7!important}
.phone-card{background:#343434;color:#fff;border-color:#555}
.phone-card .event{border-color:#555}.phone-card .msg{background:#252525}.phone-card .msg b{color:#f0cf30}
.phone-card input{background:#222;color:#fff;border-color:#777}
.disclaimer{color:#666}.foot-cta{color:#414141}.foot-cta a{color:#987c00}
@media(max-width:600px){.demo-score-team>strong{min-height:64px}.demo-led-digits{height:54px}#clock .demo-led-digits{height:38px}}


/* PITCH official demo brand logo */
.pitch-brand-logo{display:inline-block;flex:none;object-fit:contain;vertical-align:middle;width:1.4em;height:1.4em}
.brand{display:inline-flex;align-items:center;gap:.35em}
.pitch-brand-logo-header{width:30px;height:30px}
.app-sidebrand .pitch-brand-logo-sidebar{width:28px;height:28px}
.phone-head{align-items:center;gap:4px}
.pitch-brand-logo-phone{width:18px;height:18px}
