:root{color-scheme:light;--paper:#f4f4ed;--white:#fffef9;--ink:#1e352a;--muted:#788078;--green:#204d38;--line:#dce0d4;--lime:#dce9b6;--blue:#47799a;--red:#c36a57;--shadow:0 18px 50px #1e352a08;font-family:Arial,"Segoe UI",sans-serif}
*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink)}button,input{font:inherit}button,a,input{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:default}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #b4994a;outline-offset:5px}button{touch-action:manipulation}a{color:inherit}button svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.shell{max-width:1280px;margin:auto;padding:0 54px}.topbar{height:103px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);gap:20px}.brand{display:flex;align-items:center;gap:12px;text-decoration:none;font-weight:800;font-size:18px;letter-spacing:1.3px}.brand small{display:block;font-size:8px;letter-spacing:2px;font-weight:500;color:var(--muted);margin-top:6px}.brand-badge{width:37px;height:44px;color:var(--green)}.brand-badge svg{width:100%;height:100%;fill:var(--green);stroke:var(--paper);stroke-width:1.5}.header-actions{display:flex;align-items:center;gap:9px}.two-player-label{font-size:12px;color:var(--muted);margin-right:14px}.icon-button{border:1px solid var(--line);border-radius:50%;width:38px;height:38px;background:transparent;color:var(--ink);display:inline-flex;align-items:center;justify-content:center;font-size:18px}.icon-button:hover{background:#e5e9dc}.icon-button[aria-pressed=true]{background:var(--green);color:white;border-color:var(--green)}.intro{display:grid;grid-template-columns:1.13fr 1fr;gap:65px;padding:51px 0 40px;align-items:start}.eyebrow{text-transform:uppercase;letter-spacing:2px;font-size:10px;font-weight:700;display:flex;align-items:center;gap:9px}.eyebrow::before{content:"";display:inline-block;width:6px;height:6px;background:#7b9653;border-radius:50%}.intro h1{font-size:clamp(34px,3.9vw,51px);line-height:1.12;letter-spacing:-1.8px;font-weight:750;margin:22px 0 19px}.intro h1 em{font-style:normal;color:#64834a}.intro-description{color:#727c70;font-size:14px;line-height:1.8;max-width:385px;margin:0}.scene{position:relative;isolation:isolate;width:100%;overflow:hidden;aspect-ratio:760/440;border-radius:18px;background:#a7bb91}.scene>svg{width:100%;height:100%;display:block}.intro-scene{margin-top:32px;transform:rotate(-1.5deg);box-shadow:0 12px 25px #24442d16;border:5px solid var(--white);border-radius:20px}.scene-tag{position:absolute;left:20px;top:17px;display:flex;align-items:center;gap:7px;color:#f2f4df;font-size:8px;letter-spacing:2px;font-weight:700}.scene-tag i{width:5px;height:5px;border-radius:50%;background:#e4eaaa}.scene-caption{position:absolute;bottom:16px;left:0;right:0;text-align:center;font-size:9px;letter-spacing:2px;color:#eff5da;font-weight:700}.setup-card{background:var(--white);border:1px solid #e3e5d9;border-radius:20px;padding:30px;box-shadow:var(--shadow)}.card-heading{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e9ebdf;padding-bottom:22px;margin-bottom:24px}.card-heading h2{font-size:23px;letter-spacing:-.6px;margin:0}.match-label{font-size:9px;letter-spacing:1px;border:1px solid var(--line);border-radius:5px;padding:6px 8px;color:var(--muted)}.team-fields{display:grid;grid-template-columns:1fr 1fr;gap:15px}.team-field label{display:flex;align-items:center;gap:7px;font-size:11px;font-weight:700;margin-bottom:10px}.team-dot{width:8px;height:8px;border-radius:50%;display:inline-block;flex-shrink:0;background:var(--team-color)}.blue{--team-color:var(--blue)}.red{--team-color:var(--red)}.team-field input{width:100%;min-width:0;border:1px solid #e1e4d8;border-radius:8px;padding:13px 12px;background:#f8f9f2;color:var(--ink);font-size:12px}.team-field input::placeholder{color:#959c90}.field-hint{font-size:10px;line-height:1.5;color:#91988c;margin:11px 0 27px}.mode-fieldset{padding:0;margin:0;border:0;min-width:0}.mode-fieldset legend{font-size:11px;font-weight:700;margin-bottom:12px}.mode-options{display:grid;grid-template-columns:1fr 1fr;gap:12px}.mode-card{position:relative;display:block;cursor:pointer}.mode-card input{position:absolute;width:1px;height:1px;opacity:0}.mode-content{display:flex;flex-direction:column;align-items:flex-start;gap:6px;border:1px solid #e1e4d8;background:#fafbf5;border-radius:10px;padding:14px;transition:border-color .15s,background .15s}.mode-content strong{font-size:12px}.mode-content small{font-size:10px;color:#85907e}.mode-card input:checked+.mode-content{border:1.5px solid #567244;padding:13.5px;background:#f0f4e5}.mode-card input:focus-visible+.mode-content{outline:3px solid #b4994a;outline-offset:3px}.mode-content::after{content:"";width:11px;height:11px;border:1px solid #c4cbb9;border-radius:50%;position:absolute;right:13px;top:14px}.mode-card input:checked+.mode-content::after{background:var(--green);border-color:var(--green);box-shadow:inset 0 0 0 3px #f0f4e5}.mini-goal{width:60px;height:35px;border:2px solid #9eae8b;border-bottom-width:1px;display:grid;grid-template-columns:repeat(3,1fr);position:relative;margin:2px 0 6px;background:repeating-linear-gradient(0deg,transparent 0 7px,#b6c1a83d 7px 8px)}.mini-goal i{border-right:1px dashed #a6b796}.mini-goal i:last-child{border:0}.mini-goal.five{grid-template:1fr 1fr / 1fr 1fr 1fr}.mini-goal.five i:nth-child(2){grid-area:1/2/3/3;border-left:1px dashed #a6b796}.mini-goal.five i:nth-child(1),.mini-goal.five i:nth-child(3){border-bottom:1px dashed #a6b796}.primary-button{display:flex;align-items:center;justify-content:center;gap:15px;width:100%;border:0;border-radius:9px;padding:17px 22px;background:var(--green);color:#fffef2;font-weight:700;font-size:13px;min-height:52px}.primary-button span{font-size:19px;font-weight:400}.primary-button:hover{background:#153d29}.setup-card .primary-button{margin-top:23px}.setup-note{text-align:center;font-size:10px;color:#8b9485;margin:13px 0 0;display:flex;align-items:center;justify-content:center;gap:6px}.setup-note svg{width:12px;height:12px;stroke:currentColor;fill:none}.how-strip{display:grid;grid-template-columns:repeat(3,1fr);gap:34px;border-top:1px solid var(--line);padding:26px 0 32px}.how-step{display:flex;align-items:flex-start;gap:13px}.step-number{font-size:11px;color:#8e9f80;border:1px solid #d5ddc9;border-radius:50%;width:26px;height:26px;display:flex;align-items:center;justify-content:center;flex-shrink:0}.how-step strong{font-size:12px;display:block;margin:1px 0 6px}.how-step p{font-size:11px;color:#86907f;line-height:1.6;margin:0;max-width:250px}.footer{border-top:1px solid var(--line);display:flex;justify-content:space-between;gap:20px;padding:21px 0;font-size:10px;color:#92998d}.footer i{padding:0 7px;font-style:normal}.match{max-width:860px;margin:30px auto 40px}.match-topline{display:flex;justify-content:space-between;align-items:center;margin:0 0 14px;font-size:10px;letter-spacing:1.2px;color:#7e8977}.text-button{background:transparent;border:0;padding:8px 0;font-size:11px;color:#7d8877}.text-button:hover{color:var(--green);text-decoration:underline}.scoreboard{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;background:var(--white);border:1px solid var(--line);border-radius:14px;padding:18px 26px;gap:24px}.score-team{display:flex;align-items:center;gap:12px;min-width:0}.score-team:last-child{justify-content:flex-end;text-align:right;flex-direction:row-reverse}.team-badge{width:37px;height:42px;display:flex;align-items:center;justify-content:center;background:var(--team-color);color:#fffdf2;font-weight:700;font-size:16px;clip-path:polygon(0 0,100% 0,100% 74%,50% 100%,0 74%);flex-shrink:0}.score-team .name{font-size:13px;font-weight:700;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:220px}.score-team .team-copy{min-width:0}.attempts{display:flex;gap:5px;margin-top:8px;justify-content:inherit}.score-team:last-child .attempts{justify-content:flex-end}.attempt{width:9px;height:9px;border:1px solid #cdd5c5;border-radius:50%;background:transparent}.attempt.goal{background:var(--team-color);border-color:var(--team-color)}.attempt.saved{position:relative;border-color:var(--team-color)}.attempt.saved::after{content:"";position:absolute;top:3px;left:1px;width:5px;height:1px;background:var(--team-color);transform:rotate(-45deg)}.score-numbers{display:flex;align-items:center;gap:15px;font-size:36px;font-weight:750;letter-spacing:-1px}.score-numbers span{font-size:20px;font-weight:400;color:#c0c7b8}.play-area{position:relative;margin-top:24px;min-height:430px}.play-heading{text-align:center;margin-bottom:21px}.play-heading .eyebrow{justify-content:center;font-size:9px;letter-spacing:1.5px}.play-heading h1{font-size:29px;letter-spacing:-.7px;margin:10px 0}.play-heading p{font-size:12px;color:#7c8874;margin:0;line-height:1.6}.game-scene{max-width:730px;margin:auto;border:5px solid var(--white);box-shadow:0 12px 30px #1e352a10;border-radius:20px}.zone{position:absolute;width:62px;height:62px;border-radius:50%;transform:translate(-50%,-50%);background:#f8faebed;color:#314f31;border:1.5px solid #eff5dc;box-shadow:0 3px 10px #102d2b20;font-size:22px;font-weight:700;display:flex;align-items:center;justify-content:center}.zone:hover{background:#e0eabf;border-color:#fafbe9;transform:translate(-50%,-50%) scale(1.08)}.zone:focus-visible{outline-offset:4px}.zone.chosen{background:#e0eab6;border:3px solid #fffde6;box-shadow:0 0 0 4px #49663a70}.zone:disabled{pointer-events:none}.zone.faded{opacity:.26}.zone small{position:absolute;font-size:9px;white-space:nowrap;top:calc(100% + 9px);color:#f7fae9;text-shadow:0 1px 5px #10321a}.pitch-hint{text-align:center;font-size:10px;color:#929a88;margin:17px 0 0}.locked-note{font-size:12px;color:var(--green);font-weight:700;text-align:center;margin-top:16px;display:flex;align-items:center;justify-content:center;gap:8px}.locked-note::before{content:"✓";background:#dfe8cb;border-radius:50%;width:19px;height:19px;display:inline-flex;align-items:center;justify-content:center}.handoff{max-width:600px;margin:29px auto 5px;text-align:center;border:1px solid #d4deca;border-radius:20px;padding:37px 40px;background:#e9eddf;position:relative;overflow:hidden;min-height:350px}.handoff::before{content:"";position:absolute;width:330px;height:330px;border:1px solid #d4deca;border-radius:50%;top:-215px;left:calc(50% - 165px);pointer-events:none}.handoff .eyebrow{justify-content:center;color:#8b987d;font-size:9px}.handoff .large-badge{width:63px;height:72px;margin:22px auto 17px;font-size:27px}.handoff h1{font-size:27px;letter-spacing:-.7px;margin:10px 0;overflow-wrap:anywhere}.handoff p{font-size:13px;line-height:1.8;color:#75816c;margin:10px 0 24px}.handoff .primary-button{max-width:330px;margin:auto}.privacy-note{font-size:10px!important;margin:17px 0 0!important;color:#939d88!important}.countdown-card{min-height:350px;background:var(--green);border-radius:20px;margin:29px auto 5px;color:#f9fae9;text-align:center;padding:40px 20px;display:flex;flex-direction:column;align-items:center;justify-content:center}.countdown-card .eyebrow{color:#b7c89b;font-size:9px}.count-number{font-size:145px;font-weight:800;line-height:1.4;animation:count-in .28s ease-out}.countdown-card p{font-size:12px;color:#afc29d}.result-title{display:flex;align-items:center;justify-content:center;gap:11px}.result-label{display:inline-block;font-size:10px;letter-spacing:1px;color:#6d834f;background:#e5edda;border-radius:5px;padding:7px 10px;margin-bottom:6px}.reveal-mark{position:absolute;transform:translate(-50%,-50%);pointer-events:none;display:flex;align-items:center;justify-content:center}.reveal-keeper{width:74px;height:88px;color:var(--team-color);filter:drop-shadow(0 4px 3px #13271e40)}.reveal-keeper svg{width:100%;height:100%;overflow:visible}.reveal-ball{width:43px;height:43px;z-index:2;filter:drop-shadow(0 4px 4px #16302350);animation:ball-in .5s cubic-bezier(.17,.7,.2,1)}.reveal-ball svg{width:100%;height:100%}.result-legend{display:flex;justify-content:center;flex-wrap:wrap;gap:18px;font-size:11px;margin:17px 0}.result-legend span{display:flex;gap:6px;align-items:center}.legend-ball{font-size:14px}.result-actions{max-width:360px;margin:20px auto}.secondary-button{width:100%;padding:15px 20px;background:transparent;border:1px solid #c7d0bc;border-radius:9px;font-size:12px;color:var(--green);font-weight:700;min-height:48px}.secondary-button:hover{background:#e7ecdd}.result-actions .secondary-button{margin-top:10px}.final-card{margin:25px auto;max-width:600px;background:var(--white);border:1px solid var(--line);border-radius:20px;text-align:center;padding:30px}.trophy{color:#b59a4d;width:64px;height:64px;margin:auto}.trophy svg{width:100%;height:100%;stroke:currentColor;fill:none;stroke-width:2;stroke-linejoin:round}.final-card h1{font-size:30px;letter-spacing:-.8px;overflow-wrap:anywhere}.final-card>p{color:#7d8876;font-size:13px;line-height:1.8}.final-score{font-size:70px;font-weight:800;letter-spacing:4px;margin:20px 0}.final-score span{font-size:35px;color:#bdc6b2;font-weight:400}.summary-list{border-top:1px solid var(--line);margin:23px 0 0;padding:14px 0 0;display:grid;gap:8px}.summary-row{display:grid;grid-template-columns:24px minmax(0,1fr) auto;gap:8px;text-align:left;align-items:center;font-size:11px}.summary-row .history-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.summary-row>span:first-child{color:#9ca78f}.summary-row strong{font-size:10px;color:#7a8b6e}.summary-row .history-goal{color:#3e6b42}.settings-return{display:block;margin:16px auto 0}.exit-confirm{padding:45px 35px}.exit-confirm h1{font-size:27px}.exit-confirm .result-actions{margin-bottom:0}dialog{max-width:480px;width:calc(100% - 32px);border:1px solid var(--line);border-radius:20px;background:var(--white);color:var(--ink);padding:34px;box-shadow:0 30px 80px #12281835}dialog::backdrop{background:#18322780;backdrop-filter:blur(5px)}.close-dialog{position:absolute;right:16px;top:16px}.close-dialog+h2{padding-right:15px}dialog .eyebrow{font-size:8px;margin:22px 0 17px}dialog h2{font-size:28px;letter-spacing:-.8px;line-height:1.2}dialog ol{padding-left:21px;font-size:13px;line-height:1.75}dialog li{padding-left:5px;margin:12px 0}dialog p{font-size:12px;line-height:1.75;color:#7a8671}dialog .primary-button{margin-top:25px}#main:focus{outline:none}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}noscript{padding:30px;display:block}@keyframes count-in{from{opacity:.2;transform:scale(.85)}to{opacity:1;transform:scale(1)}}@keyframes ball-in{from{opacity:.3;translate:0 90px;scale:1.5}to{opacity:1;translate:0 0;scale:1}}
@media(min-width:1400px){.shell{padding:0 54px}.intro{padding-top:60px;padding-bottom:45px}.intro-scene{margin-top:34px}.setup-card{padding:32px}.topbar{height:110px}}
@media(max-width:1000px){.shell{padding:0 28px}.intro{gap:30px;grid-template-columns:1fr 1fr}.setup-card{padding:24px}.intro h1{font-size:39px}.intro-description{font-size:13px}.how-strip{gap:20px}.score-team .name{max-width:170px}}
@media(max-width:740px){.shell{padding:0 20px}.topbar{height:80px}.two-player-label{display:none}.brand{font-size:15px;gap:9px;letter-spacing:1px}.brand-badge{width:30px;height:36px}.brand small{font-size:7px}.header-actions{gap:6px}.icon-button{width:34px;height:34px}.fullscreen-button{display:none}.intro{grid-template-columns:1fr;padding:30px 0;gap:29px}.intro h1{font-size:37px;letter-spacing:-1.3px;margin:18px 0 14px}.intro-description{max-width:340px}.intro-scene{margin:24px 0 0;max-width:500px;aspect-ratio:760/350}.intro-scene>svg{height:auto;position:absolute;top:50%;transform:translateY(-50%)}.intro-copy>.eyebrow{font-size:8px;letter-spacing:1.5px}.setup-card{padding:24px;border-radius:16px}.card-heading{margin-bottom:21px;padding-bottom:18px}.card-heading h2{font-size:22px}.team-field input{font-size:13px;padding:14px 11px}.field-hint{margin-bottom:23px}.mode-content{padding:15px}.mode-card input:checked+.mode-content{padding:14.5px}.how-strip{grid-template-columns:1fr;gap:19px;padding:24px 3px}.how-step p{max-width:none;font-size:12px}.how-step strong{font-size:13px}.step-number{width:28px;height:28px}.footer{font-size:9px;gap:12px;line-height:1.6;padding:17px 0}.footer>span:last-child{text-align:right;max-width:165px}.footer i{padding:0 3px}.match{margin:20px auto 28px}.match-topline{font-size:8px;letter-spacing:1px}.scoreboard{padding:15px 13px;gap:10px}.score-team{gap:7px}.score-team .name{font-size:11px;max-width:110px}.team-badge{width:28px;height:33px;font-size:12px}.score-numbers{font-size:29px;gap:8px}.score-numbers span{font-size:17px}.attempts{gap:4px}.attempt{width:8px;height:8px}.attempt.saved::after{top:3px;left:1px;width:4px}.play-area{margin-top:23px;min-height:0}.play-heading h1{font-size:25px}.play-heading p{font-size:11px}.game-scene{border-width:3px;border-radius:14px;aspect-ratio:760/440}.game-scene>svg{position:absolute;top:50%;height:auto;transform:translateY(-50%)}.zone{width:44px;height:44px;font-size:18px}.zone small{font-size:8px;top:calc(100% + 8px)}.scene-tag{left:15px;top:13px;font-size:7px}.scene-caption{font-size:7px;bottom:11px;letter-spacing:1.5px}.pitch-hint{font-size:9px;line-height:1.6;margin:13px 8px}.handoff{padding:30px 21px;min-height:345px;margin-top:24px}.handoff h1{font-size:25px}.handoff p{font-size:12px}.countdown-card{min-height:345px}.count-number{font-size:130px}.reveal-keeper{width:51px;height:60px}.reveal-ball{width:32px;height:32px}.result-legend{gap:10px;font-size:10px}.result-actions{margin-top:17px}.final-card{padding:27px 22px}.final-card h1{font-size:27px}.final-score{font-size:60px}.summary-row{font-size:10px}.exit-confirm{padding:40px 22px}dialog{padding:26px}dialog .eyebrow{font-size:7px;letter-spacing:1px}dialog h2{font-size:26px}}
@media(max-width:360px){.shell{padding:0 13px}.brand{font-size:13px}.score-team .name{max-width:82px}.scoreboard{padding:14px 10px}.intro h1{font-size:33px}.setup-card{padding:19px}.team-fields{gap:10px}.mode-content{padding:12px}.mode-card input:checked+.mode-content{padding:11.5px}.zone{width:40px;height:40px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}
.chosen-symbol{display:block;width:42px;height:42px;color:var(--team-color)}.chosen-symbol svg{width:100%;height:100%;stroke:none;fill:none}.chosen-keeper{width:46px;height:55px}@media(max-width:740px){.zone small{display:none}.chosen-symbol{width:30px;height:30px}.chosen-keeper{width:33px;height:40px}}

/* Keep the team fields, position cards and kick-off action in the phone's first view. */
.mode-fieldset { margin-top: 24px; }
@media (max-width: 740px) {
  .intro { padding: 20px 0 24px; gap: 16px; }
  .intro h1 { font-size: 28px; line-height: 1.12; letter-spacing: -.8px; margin: 0; }
  .how-strip { display: none; }
  .intro-scene { display: block; max-width: 340px; aspect-ratio: 760 / 440; margin: 12px auto 0; }
  .intro-scene > svg { position: static; height: 100%; transform: none; }
  .intro-scene .reveal-keeper { width: 12% !important; height: auto !important; aspect-ratio: 90 / 105; }
  .intro-scene .reveal-ball { width: 6% !important; height: auto !important; aspect-ratio: 1; }
  .setup-card { padding: 20px; }
  .card-heading { padding-bottom: 16px; margin-bottom: 18px; }
  .mode-fieldset { margin-top: 20px; }
  .setup-card .primary-button { margin-top: 18px; }
  .setup-note { margin-top: 10px; }
}
@media (max-width: 360px) {
  .intro h1 { font-size: 26px; }
  .setup-card { padding: 18px; }
}
@media (max-width: 740px) and (max-height: 700px) {
  .topbar { height: 64px; }
  .intro { padding-top: 12px; gap: 10px; }
  .intro h1 { font-size: 24px; }
  .intro-scene { width: 240px; margin-top: 10px; }
  .setup-card { padding: 16px; }
  .card-heading { padding-bottom: 10px; margin-bottom: 12px; }
  .mode-fieldset { margin-top: 14px; }
  .mode-fieldset legend { margin-bottom: 8px; }
  .mode-content { padding: 10px; }
  .mode-card input:checked + .mode-content { padding: 9.5px; }
  .mini-goal { height: 28px; margin-bottom: 4px; }
  .setup-card .primary-button { margin-top: 12px; }
}
@media (max-width: 740px) and (max-height: 600px) {
  .intro-scene { width: 160px; }
}

/* A visual role cue keeps the private handoff short and easy to recognise. */
.handoff-role {
  width: 116px;
  height: 116px;
  margin: 22px auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--team-color);
  border: 1px solid #cdd8bf;
  border-radius: 50%;
  background: radial-gradient(circle at 45% 35%, #f7f8ec, #dce6cc);
}
.handoff-role > svg { display: block; width: 80px; height: 94px; overflow: visible; }
.handoff-role-ball > svg { width: 76px; height: 76px; filter: drop-shadow(0 5px 3px #213d2c1a); }
.handoff .handoff-ready-button { margin-top: 24px; min-height: 60px; font-size: 20px; text-align: center; justify-content: center; }
.handoff .handoff-no-peeking {
  margin: 24px 0 0;
  color: var(--team-color);
  font-size: 27px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.7px;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
@media (max-width: 740px) {
  .handoff-role { width: 102px; height: 102px; margin: 18px auto; }
  .handoff-role > svg { width: 70px; height: 82px; }
  .handoff-role-ball > svg { width: 66px; height: 66px; }
  .handoff .handoff-ready-button { margin-top: 22px; }
  .handoff .handoff-no-peeking { font-size: 25px; }
}
