:root{color-scheme:light;--paper:#f6f2e7;--sheet:#fffcf5;--ink:#263a3b;--muted:#647472;--line:#d8dcd1;--green:#237c6d;--coral:#d7664e;--shadow:0 10px 35px #263a3b0a;font-family:'DM Sans',system-ui,sans-serif;color:var(--ink);background:var(--paper)}
*{box-sizing:border-box}body{margin:0;min-height:100vh;background-image:radial-gradient(#b9c6bc55 .7px,transparent .7px);background-size:20px 20px}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:default;opacity:.42}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,[role=button]:focus-visible{outline:3px solid var(--coral);outline-offset:4px}button{touch-action:manipulation}a{color:inherit}h1,h2,p{margin:0}h1,h2,.brand{font-family:'Space Grotesk',system-ui,sans-serif}h1{font-size:clamp(48px,5.3vw,76px);font-weight:500;line-height:1.03;letter-spacing:-4px}h1 em{font-style:normal;color:var(--green)}h2{font-size:30px;line-height:1.18;letter-spacing:-1px;font-weight:500}p{line-height:1.6}[hidden]{display:none!important}.masthead{max-width:1240px;margin:auto;padding:30px 36px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:10px;text-decoration:none;font-size:23px;font-weight:600;letter-spacing:-.7px}.brand-mark{font-size:35px;color:var(--green)}.button{display:inline-flex;align-items:center;justify-content:center;gap:9px;border:1px solid transparent;border-radius:7px;min-height:48px;padding:12px 20px;font-weight:600;transition:background .15s,transform .15s}.button:not(:disabled):active,.choice:not(:disabled):active{transform:translateY(1px)}.primary{background:var(--green);color:white}.primary:hover{background:#1a675a}.secondary{background:var(--sheet);border-color:#b8c4b8;color:var(--ink)}.secondary:hover{background:#eaf0e6}.quiet{background:transparent;color:var(--ink);padding-inline:12px}.quiet:hover{background:#263a3b09}.full{width:100%;margin-top:22px}.eyebrow{text-transform:uppercase;font-size:11px;font-weight:700;letter-spacing:1.8px}.start-layout{max-width:1168px;margin:0 auto;padding:64px 36px 30px;display:grid;grid-template-columns:1fr 1fr;gap:90px;align-items:start}.intro .eyebrow{margin:4px 0 26px;color:var(--green)}.intro-copy{max-width:350px;color:var(--muted);font-size:16px;margin-top:23px}.paper-preview{margin:30px auto 0;max-width:270px;position:relative;transform:rotate(-5deg)}.paper-preview svg{width:100%;height:265px}.preview-note{position:absolute;bottom:33px;left:207px;transform:rotate(5deg);width:117px;font-size:12px;color:var(--muted);font-style:italic;line-height:1.5}.setup-paper{background:var(--sheet);border:1px solid #d5dacd;border-radius:10px;box-shadow:var(--shadow);padding:30px 32px 20px;min-height:471px;margin-top:13px;position:relative}.setup-paper:before{content:'';position:absolute;inset:7px 9px -7px;z-index:-1;border:1px solid #d5dacd;border-radius:10px;background:var(--sheet);transform:rotate(1deg)}.paper-top{display:flex;justify-content:space-between;align-items:center}.paper-dots{font-size:8px;letter-spacing:3px;color:#c8cec2}.wizard-progress{display:flex;gap:7px;margin:22px 0 30px}.wizard-progress span{height:3px;flex:1;background:#e1e4d9;border-radius:2px}.wizard-progress span.active{background:var(--green)}.step-label{text-transform:uppercase;font-size:10px;font-weight:700;letter-spacing:1.4px;color:var(--muted)}.setup-paper h2{margin:10px 0 25px}.choice-stack{display:grid;gap:12px}.choice{display:flex;align-items:center;gap:18px;width:100%;text-align:left;color:var(--ink);background:transparent;border:1px solid #cdd5c8;border-radius:7px;padding:20px 16px;min-height:89px}.choice:hover,.choice.selected,.choice[aria-pressed=true]{border-color:var(--green);background:#edf2e9}.choice-icon{font-size:30px;line-height:1;width:34px;text-align:center;color:var(--green)}.choice strong{display:block;font-size:16px;font-weight:600}.choice small{display:block;color:var(--muted);font-size:12px;margin-top:6px}.choice-arrow{margin-left:auto;color:var(--green);font-size:21px}.choice-stack.compact{gap:9px}.compact .choice{padding:12px 17px;min-height:68px}.wizard-footer{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:24px;min-height:48px}.tiny-note{color:#879087;font-size:11px;margin-left:auto}.setup-paper label,.lobby-paper label{display:block;font-size:12px;font-weight:700;margin:22px 0 8px}select,input{background:white;border:1px solid #bfcabd;border-radius:6px;padding:13px 12px;min-height:48px;color:var(--ink);width:100%}.field-note{font-size:12px;color:var(--muted);margin-top:10px}.muted{color:var(--muted);font-size:14px}.site-footer{max-width:1168px;margin:25px auto 0;padding:22px 36px;display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--line);font-size:11px;color:var(--muted)}.site-footer span:last-child{font-size:21px;color:var(--green)}.game-layout{max-width:1060px;margin:auto;display:grid;grid-template-columns:300px minmax(0,560px);gap:72px;padding:40px 30px}.match-sidebar{padding-top:20px}.match-title{font-size:44px;letter-spacing:-2px;margin-top:17px}.badges{display:flex;gap:7px;flex-wrap:wrap;margin:22px 0 30px}.badge{font-size:11px;font-weight:600;padding:7px 10px;border:1px solid #c7d1c3;border-radius:5px;background:#eff1e6}.turn-card{display:flex;gap:12px;align-items:center;border-top:1px solid var(--line);padding:25px 0 8px}.turn-card h2{font-size:26px;margin-top:5px}.turn-orb{width:14px;height:14px;flex-shrink:0;border-radius:50%;background:var(--green);box-shadow:0 0 0 5px #237c6d15}.game-message{font-size:15px;min-height:48px;margin:12px 0;color:var(--green);font-weight:600}.match-actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:24px}.match-actions .button{flex:1;padding-inline:13px}.sidebar-bottom{display:flex;flex-wrap:wrap;gap:6px;margin-top:35px}.pitch-paper{background-color:var(--sheet);box-shadow:var(--shadow);border:1px solid #d5dacd;border-radius:9px;padding:12px 16px;max-height:calc(100vh - 150px);min-height:480px;display:flex;flex-direction:column;align-items:center}.goal-label{font-size:10px;text-transform:uppercase;letter-spacing:1.5px;color:var(--muted);padding:4px}#pitch{display:block;width:100%;min-height:0;flex:1;overflow:visible;touch-action:manipulation}.grid-line{stroke:#dce2d7;stroke-width:1}.boundary{stroke:var(--ink);stroke-width:3;fill:none;stroke-linecap:round;stroke-linejoin:round}.drawn-line{fill:none;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}.player-0{stroke:var(--green)}.player-1{stroke:var(--coral)}.new-line{stroke-dasharray:1;stroke-dashoffset:1;animation:draw-line .24s ease-out forwards}.legal-dot{fill:var(--green);opacity:.5}.legal-target{cursor:pointer;outline:none}.legal-target:hover .legal-dot,.legal-target:focus-visible .legal-dot{opacity:1;r:7}.ball{fill:var(--ink);stroke:var(--sheet);stroke-width:3}.lobby-paper{margin:70px auto;max-width:540px;padding:38px;background:var(--sheet);border:1px solid #d5dacd;border-radius:10px;box-shadow:var(--shadow)}.lobby-paper h1{font-size:45px;letter-spacing:-2px;margin-top:18px}.lobby-paper #leave-room{margin-top:20px}.app-error{max-width:800px;margin:20px auto;padding:15px 20px;border-radius:7px;color:#963d2c;background:#f8e3dc;border:1px solid #eac3b5}dialog{border:1px solid #c6d1c2;border-radius:13px;background:var(--sheet);color:var(--ink);width:min(470px,calc(100% - 28px));padding:24px 30px;box-shadow:0 24px 100px #152a3b44}dialog::backdrop{background:#1c333b80;backdrop-filter:blur(3px)}.tutorial-top{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:-9px}#tutorial-title{font-size:29px;margin-top:13px}#tutorial-copy{font-size:17px;line-height:1.5;margin-top:15px;min-height:77px}.tutorial-demo{border:0;padding:0;background:transparent;display:block;width:240px;max-width:100%;margin:0 auto;color:var(--ink)}#tutorial-pitch{width:100%;display:block}.tutorial-hint{text-align:center;font-size:11px;color:var(--muted);margin-top:-6px}.tutorial-bottom{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-top:23px}#tutorial-dots{display:flex;gap:5px}#tutorial-dots span{width:5px;height:5px;border-radius:50%;background:#c8d2c2}#tutorial-dots .active{background:var(--green)}.tutorial-line{stroke-dasharray:1;stroke-dashoffset:1;animation:draw-line .65s ease-out forwards;fill:none;stroke-width:3;stroke-linecap:round}.tutorial-ball{animation:ball-pop .4s both;fill:var(--ink);stroke:var(--sheet);stroke-width:3}.tutorial-word{font-family:'Space Grotesk',sans-serif;font-size:15px;font-weight:600;fill:var(--green);text-anchor:middle;animation:ball-pop .4s both}@keyframes draw-line{to{stroke-dashoffset:0}}@keyframes ball-pop{from{opacity:0;transform:translateY(3px)}to{opacity:1;transform:translateY(0)}}@media(max-width:860px){.start-layout{gap:35px;padding-top:38px}.intro h1{font-size:55px;letter-spacing:-3px}.preview-note{left:170px;width:80px;font-size:11px}.paper-preview{max-width:230px}.setup-paper{padding:25px 23px}.game-layout{gap:28px;grid-template-columns:240px 1fr}.match-title{font-size:38px}.pitch-paper{padding-inline:9px}.brand{font-size:21px}}@media(max-width:640px){.masthead{padding:16px 18px}.masthead .button{font-size:12px;padding-inline:6px}.brand{font-size:20px}.brand-mark{font-size:28px}.start-layout{display:block;padding:32px 20px 20px;max-width:470px}.intro .eyebrow{margin:0 0 15px;font-size:10px}.intro h1{font-size:48px;letter-spacing:-2.8px}.intro-copy{font-size:14px;max-width:300px;margin-top:16px}.paper-preview{display:none}.setup-paper{margin-top:30px;min-height:0}.wizard-progress{margin-bottom:23px}.setup-paper h2{font-size:27px}.choice{min-height:80px;padding:16px 14px}.site-footer{margin-top:10px;padding:20px}.game-layout{display:flex;flex-direction:column;gap:18px;padding:20px 16px}.match-sidebar{padding:0}.match-sidebar>.eyebrow,.match-title{display:none}.badges{margin:0 0 11px}.turn-card{border:0;padding:4px 0}.turn-card h2{font-size:23px}.turn-card .step-label{display:none}.game-message{min-height:24px;margin:7px 0}.match-sidebar>.muted{font-size:12px}.match-actions{margin-top:12px}.sidebar-bottom{margin-top:9px;position:relative;gap:5px}.sidebar-bottom .button{font-size:12px;min-height:44px;padding:9px}.pitch-paper{order:-1;min-height:0;height:56vh;max-height:570px;padding:7px 10px}.game-layout .match-sidebar{order:-2}.game-layout .match-actions{display:inline-flex;width:100%;max-width:280px}.sidebar-bottom{display:inline-flex}.lobby-paper{margin:30px 18px;padding:28px 24px}.lobby-paper h1{font-size:39px}.app-error{margin:16px}.tutorial-top .eyebrow{font-size:9px;letter-spacing:1px}dialog{padding:20px}.tutorial-demo{width:215px}#tutorial-copy{font-size:16px;min-height:73px}.tutorial-bottom .button{padding-inline:13px}.goal-label{font-size:9px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important;animation-delay:0ms!important}}
.move-controls{display:grid;grid-template-columns:repeat(3,48px);grid-template-rows:repeat(3,48px);gap:7px;margin:18px 0}.move-controls button{min-height:48px;border:1px solid #b8c4b8;border-radius:7px;background:var(--sheet);color:var(--green);font-size:23px}.move-controls button:hover:not(:disabled){background:#e7efe1;border-color:var(--green)}.move-controls .center,.move-controls .control-ball{display:grid;place-items:center;color:var(--ink);font-size:22px}.move-controls button:disabled{opacity:.28}#coin-dialog{text-align:center;width:min(340px,calc(100% - 30px));padding:32px}.coin{width:86px;height:86px;border-radius:50%;background:#e8bc62;color:#725221;display:grid;place-items:center;margin:30px auto;font-size:49px;border:5px double #b38c42;box-shadow:0 10px 18px #263a3b15;animation:coin-toss 1.25s cubic-bezier(.18,.7,.32,1) forwards}.coin-result{font-size:22px;font-weight:600;min-height:36px;line-height:1.3}@keyframes coin-toss{0%{transform:translateY(15px) rotateY(0) scale(.8)}35%{transform:translateY(-20px) rotateY(720deg) scale(1.1)}100%{transform:translateY(0) rotateY(1800deg) scale(1)}}@media(max-width:640px){.move-controls{float:right;margin:0 0 0 12px;grid-template-columns:repeat(3,46px);grid-template-rows:repeat(3,46px);gap:5px}.move-controls button{min-height:46px}.match-sidebar:after{content:'';display:block;clear:both}.match-actions{max-width:calc(100% - 168px)!important}.match-actions .button{font-size:12px;min-width:75px}.sidebar-bottom{max-width:calc(100% - 165px)}.game-layout .match-sidebar>.muted{max-width:calc(100% - 165px)}}
.grid-point{fill:#bbc9bc}.pitch-boundary{stroke:var(--ink);stroke-width:3;stroke-linecap:round;stroke-linejoin:round}.move-line{stroke-width:3;stroke-linecap:round}.draw-line{stroke-dasharray:1;stroke-dashoffset:1;animation:draw-line .24s ease-out forwards}.legal-move{cursor:pointer;outline:none}.legal-move:hover .legal-dot,.legal-move:focus-visible .legal-dot{opacity:1;r:8}.legal-move:focus-visible .legal-dot{stroke:var(--coral);stroke-width:2}.legal-move.inactive{cursor:default;opacity:.4}.ball-halo{fill:#f6f2e7;opacity:.9}.ball-dot{fill:var(--ink);stroke:var(--sheet);stroke-width:2;pointer-events:none}.ball-halo{pointer-events:none}.move-controls button:nth-child(5){opacity:1;border-color:transparent;background:transparent;color:var(--ink)}
