:root{color-scheme:light;--ink:#30372d;--muted:#6a7064;--edge:#c6c9b8;--paper:#f7f5ea;--green:#207a42;--red:#b92e2b}*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0;min-height:100dvh;display:flex;flex-direction:column;background:radial-gradient(ellipse at 22% 5%,#fbf8ec,#dce0d2);color:var(--ink);font:14px/1.45 system-ui,Segoe UI,sans-serif}header{display:flex;align-items:center;justify-content:space-between;padding:10px clamp(12px,3vw,42px);background:linear-gradient(105deg,#303a2d,#4a5841);color:#f8f1dd;border-bottom:3px solid #a4a27a;gap:12px}.brand{display:flex;align-items:center;gap:12px}.brand strong{font:bold clamp(17px,2.2vw,25px) Georgia,serif;letter-spacing:1.5px;display:block}.brand small{display:block;font-size:9px;letter-spacing:1px;margin-top:3px;color:#d9d5bf}.logo{font-size:27px;border:1px solid #a6b09c;background:#26332a;border-radius:10px;padding:4px 8px}.header-actions{display:flex;gap:7px}button,select{font:inherit}button{cursor:pointer;border:1px solid #b3b8a5;border-radius:7px;padding:10px 14px;background:linear-gradient(#fffdf4,#e5e5d5);color:#353b31;font-weight:700;box-shadow:0 2px 3px #0001}button:hover:not(:disabled){filter:brightness(1.07)}button:disabled{opacity:.44;cursor:default}button:focus-visible,select:focus-visible,#pitch:focus-visible,input:focus-visible+span{outline:3px solid #317d9a;outline-offset:3px}.ghost{background:#ffffff0b;border-color:#ffffff40;color:#faf4e5}.primary{background:linear-gradient(#647c51,#43553b);color:white;border-color:#374d32}.danger{background:linear-gradient(#b34b42,#8e332f);color:white;border-color:#7d2e29}.wide{width:100%}main{flex:1;width:100%;max-width:1400px;margin:auto;padding:clamp(10px,2vw,24px)}.menu{display:grid;grid-template-columns:minmax(240px,.8fr) minmax(390px,1.2fr);gap:clamp(22px,5vw,70px);align-items:center;max-width:1050px;margin:0 auto}.intro h1{font:700 clamp(38px,5.2vw,68px)/1.06 Georgia,serif;margin:14px 0;color:#394637;letter-spacing:-1.5px}.intro p{font-size:16px;max-width:360px;color:#626a5e}.eyebrow{font-size:10px;letter-spacing:1.6px;font-weight:800;color:#68785e}.illustration{width:min(100%,310px);display:block;margin:16px auto 0;filter:drop-shadow(0 8px 9px #24392420)}.card{background:#faf8ef;border:1px solid var(--edge);border-radius:13px;padding:17px;box-shadow:0 7px 25px #28341f10}.setup{padding:22px}.card h2{font:700 21px Georgia,serif;margin:0 0 12px}.setup h2{font-size:26px}fieldset{margin:0 0 16px;padding:0;border:0;min-width:0}legend{font-weight:750;margin-bottom:7px}.choices{display:grid;gap:8px}.two{grid-template-columns:repeat(2,minmax(0,1fr))}.three{grid-template-columns:repeat(3,minmax(0,1fr))}.choices label{position:relative;cursor:pointer}.choices input{position:absolute;opacity:0;width:1px;height:1px}.choices label>span{display:flex;flex-direction:column;gap:3px;height:100%;padding:11px;border:1px solid #c4c8b7;border-radius:8px;background:#f1f1e6}.choices input:checked+span{border-color:#526d43;box-shadow:inset 0 0 0 1px #526d43;background:#e5ebda}.choices b{font-size:15px}.choices small{font-size:11px;color:#656b5c}.swatch{height:40px;border:1px solid #0002;border-radius:5px;background-color:var(--field);background-image:linear-gradient(var(--grid) 1px,transparent 1px),linear-gradient(90deg,var(--grid) 1px,transparent 1px);background-size:12px 12px}.notebook{--field:#f9faf6;--grid:#b9cbd8;--line:#536b7c;--dot:#879eaa;--rim:#b4c6cf;--goal:#dde9df}.goblin{--field:#a1ad97;--grid:#798b76;--line:#3e5141;--dot:#607662;--rim:#53674f;--goal:#bac4ad}.parchment{--field:#e5c38d;--grid:#b89869;--line:#70563a;--dot:#a28254;--rim:#ac8451;--goal:#f1d8ab}.muted{color:var(--muted)}.tiny{font-size:11px}.setup>.tiny{margin-bottom:0;text-align:center}.game{display:grid;grid-template-columns:minmax(0,1fr) minmax(270px,340px);gap:clamp(12px,2.5vw,34px);align-items:start;max-width:1070px;margin:0 auto}.board-side{min-width:0;display:flex;justify-content:center}.pitch-frame{width:min(100%,660px);padding:8px 10px 10px;background:var(--field);border:1px solid var(--rim);border-radius:11px;box-shadow:inset 0 0 35px #0000000d,0 8px 22px #27342024;display:flex;flex-direction:column;align-items:center}.pitch-frame.notebook{background-image:linear-gradient(90deg,#c96c6c30 1px,transparent 1px);background-position:18px 0}.pitch-frame.parchment{background-image:radial-gradient(ellipse at 50% 45%,#fff2d344,transparent 70%),repeating-linear-gradient(112deg,#ffffff08 0 3px,#00000003 3px 5px)}.goal-label{font-size:10px;font-weight:900;letter-spacing:1.4px;text-align:center;line-height:1.3;padding:3px}.green{color:var(--green)}.red{color:var(--red)}#pitch{display:block;max-width:100%;height:min(71dvh,720px);width:auto;overflow:visible;touch-action:manipulation;cursor:default}#pitch.can-play{cursor:crosshair}.gridline{stroke:var(--grid);stroke-width:.018}.outline{stroke:var(--line);stroke-width:.057;stroke-linejoin:round;stroke-linecap:round;fill:none}.gridpoint{fill:var(--dot)}.goal-area{fill:var(--goal);opacity:.65}.trail{fill:none;stroke-width:.10;stroke-linecap:round;stroke-linejoin:round}.trail.p1{stroke:#168244}.trail.p2{stroke:#c02e2e}.legal-target{cursor:pointer}.legal-target .halo{fill:#fff9;stroke:currentColor;stroke-width:.035;opacity:.9}.legal-target .core{fill:currentColor}.legal-target:hover .halo{fill:#fff;stroke-width:.065}.legal-target.p1{color:#168244}.legal-target.p2{color:#c02e2e}.ball-ring{stroke:currentColor;stroke-width:.05;fill:#fff}.ball{color:#354333}.ball.p1{color:#168244}.ball.p2{color:#c02e2e}.side{display:grid;gap:10px;min-width:0}.side .card{padding:13px 15px}.side h2{font-size:19px;margin-bottom:8px}.teams{display:grid;gap:6px}.team{display:flex;align-items:center;gap:9px;padding:8px;border:1px solid #d6d8c9;border-radius:7px;background:#f0f1e7;opacity:.64}.team.active{opacity:1;border-color:currentColor;box-shadow:inset 0 0 0 1px currentColor;background:#fffdf6}.team i{width:12px;height:12px;border-radius:50%;background:currentColor}.team b{font-size:12px;letter-spacing:.5px}.team small{display:block;color:#646c61;font-size:11px}.team span{margin-left:auto;font-size:20px;font-weight:800}.status{margin:10px 0;padding:9px;background:#e7eddf;border-radius:7px;font-weight:750;min-height:44px}.status.red{background:#f3e1d9}.status.finished{background:#e1e7d0}.metrics{display:flex;justify-content:space-between;color:#74796c;font-size:10px;letter-spacing:1px}.metrics strong{display:block;color:#333d30;font-size:20px;letter-spacing:0;font-variant-numeric:tabular-nums}.instructions p{margin:4px 0 8px;font-size:12px}.directions{display:grid;grid-template-columns:repeat(3,36px);gap:4px;justify-content:center;align-items:center;margin:5px auto 8px}.directions button{padding:3px;font-size:18px;height:32px;line-height:1}.directions span{text-align:center}.theme-label{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:12px;font-weight:650}.theme-label select{min-width:0;border:1px solid #b8bcae;background:#fffdf6;color:#364131;border-radius:5px;padding:5px}.actions{display:grid;gap:7px}footer{text-align:center;font-size:11px;color:#6d7566;padding:8px}footer a{color:inherit}dialog{border:1px solid #b7beaa;border-radius:13px;max-width:490px;width:calc(100% - 24px);padding:23px;background:#faf8ee;color:var(--ink)}dialog::backdrop{background:#182719a0}dialog h2{font:700 24px Georgia;margin:0 0 10px}#blocked{max-width:600px;margin:35px auto}@media(min-width:850px) and (max-height:750px){header{padding-top:6px;padding-bottom:6px}main{padding:9px}.side{gap:7px}.side .card{padding:9px 12px}.team{padding:5px}.status{margin:6px 0;min-height:0;padding:6px}.instructions p{margin:3px 0;font-size:11px}.directions{gap:3px;margin:3px auto;grid-template-columns:repeat(3,32px)}.directions button{height:26px}.actions{gap:4px}.actions button{padding:8px 12px}#pitch{height:calc(100dvh - 125px)}}@media(max-width:760px){header{padding:8px 10px}.brand small{letter-spacing:0;font-size:8px}.logo{font-size:22px;padding:4px}.header-actions button{padding:7px;font-size:11px}.menu{grid-template-columns:1fr;gap:10px}.intro{padding:0 6px}.intro h1{font-size:34px;margin:6px 0}.intro p{font-size:13px;margin:5px 0}.illustration{display:none}.setup{padding:14px}.choices label>span{padding:9px 7px}.choices b{font-size:13px}.game{grid-template-columns:1fr;gap:10px}.side{grid-template-columns:1fr 1fr}.actions{grid-column:1/-1}.pitch-frame{width:auto;max-width:100%;padding:5px}#pitch{height:min(65dvh,620px)}.side .card{padding:10px}.theme-label{flex-wrap:wrap}.goal-label{font-size:9px}}@media(max-width:390px){.side{grid-template-columns:1fr}.brand strong{font-size:15px}.brand small{font-size:7px}.choices small{font-size:10px}}
@media(min-width:850px){.actions{grid-template-columns:1fr 1fr}.actions #surrender{grid-column:1/-1}.actions #back{font-size:12px}}
@media(min-width:850px) and (max-height:900px){main{padding:10px 16px}.side{gap:7px}.side .card{padding:9px 12px}.side h2{margin-bottom:6px}.team{padding:5px 8px}.status{margin:6px 0;min-height:0;padding:7px}.instructions p{margin:3px 0 6px;font-size:11px}.directions{gap:3px;margin:4px auto 5px;grid-template-columns:repeat(3,32px)}.directions button{height:27px}.actions{gap:6px}.actions button{padding:8px 10px}#pitch{height:min(71dvh,calc(100dvh - 155px))}}
