:root{color:#19201d;font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background:#f4f1e9;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}*{box-sizing:border-box}body{min-width:320px;min-height:100vh;margin:0}button,input,textarea,select{font:inherit}button,select,input{color:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed}.app-shell{min-height:100vh;padding:18px 14px 36px}.app-header{margin:0 0 16px}.eyebrow{color:#27634f;letter-spacing:0;text-transform:uppercase;margin:0 0 10px;font-size:.78rem;font-weight:700}h1{letter-spacing:0;max-width:620px;margin:0;font-size:2rem;line-height:1.04}.mode-switch{background:#ebe7dc;border:1px solid #c9c4b7;border-radius:8px;grid-template-columns:repeat(2,minmax(80px,1fr));gap:4px;width:100%;min-width:0;padding:4px;display:grid}.mode-switch button{color:#5a625d;background:0 0;border:0;border-radius:6px;min-height:38px;font-size:.92rem;font-weight:700}.mode-switch button:disabled{cursor:not-allowed;opacity:.45}.mode-switch button.is-active{color:#19201d;background:#fff;box-shadow:0 1px 2px #19201d1f}.workspace{grid-template-columns:1fr;align-items:start;gap:14px;display:grid}.board-frame{background:#ddd4c0;border:1px solid #c9c4b7;border-radius:8px;width:100%;overflow:hidden;box-shadow:0 18px 50px #19201d1a}.board-frame.is-half-court{max-width:500px}.board-frame.is-full-court{max-width:100%}.board-frame.is-portrait{max-width:540px}.board-frame.is-portrait.is-full-court,.board-frame.is-landscape.is-half-court{max-width:500px}.board-frame.is-landscape.is-full-court{max-width:100%}.court{touch-action:none;-webkit-user-select:none;user-select:none;background-color:#d7c29f;background-image:linear-gradient(90deg,#ffffff14 1px,#0000 1px),linear-gradient(#ffffff14 1px,#0000 1px),none;background-position:0 0,0 0,0 0;background-repeat:repeat,repeat,repeat;background-size:28px 28px;background-attachment:scroll,scroll,scroll;background-origin:padding-box,padding-box,padding-box;background-clip:border-box,border-box,border-box;width:100%;height:auto;min-height:360px;display:block}.court-lines rect,.court-lines line,.court-lines circle,.court-lines path{fill:none;stroke:#f9f4ea;stroke-linecap:round;stroke-linejoin:round;stroke-width:2px;vector-effect:non-scaling-stroke}.screen-markers line{stroke:#d83a2e;stroke-linecap:round;stroke-width:4px;vector-effect:non-scaling-stroke}.player-token .player-body{filter:drop-shadow(0 4px 7px #19201d38);stroke:#fff;stroke-width:3px;vector-effect:non-scaling-stroke}.player-token .possession-ring{fill:none;stroke:#d83a2e;stroke-width:3.4px;vector-effect:non-scaling-stroke}.player-token text{fill:#fff;letter-spacing:0;paint-order:stroke fill;pointer-events:none;stroke:#19201d99;stroke-linejoin:round;stroke-width:3px;font-weight:800}.draggable-token{cursor:grab}.draggable-token.is-dragging{cursor:grabbing}.draggable-token.is-dragging .player-body{filter:drop-shadow(0 8px 12px #19201d47)}.ball-token circle{fill:#c7662e}.ball-token path{fill:none;stroke:#783817;stroke-linecap:round;stroke-width:1.8px;vector-effect:non-scaling-stroke}.control-panel{gap:12px;display:grid}.control-group{border:0;border-bottom:1px solid #e2ded4;gap:14px;min-width:0;margin:0;padding:0 0 16px;display:grid}.control-group:last-child{border-bottom:0;padding-bottom:0}.control-group legend,.team-control h3{margin:0 0 10px;padding:0;font-size:1rem;font-weight:800}.control-group label,.team-control label,.toggle-row{color:#525c56;justify-content:space-between;align-items:center;gap:14px;font-size:.95rem;font-weight:650;display:flex}.control-group select,.team-control select,.name-field input{background:#fff;border:1px solid #c9c4b7;border-radius:6px;width:76px;min-height:38px;padding:0 10px}.name-field input{width:min(100%,148px)}.control-group input[type=color],.team-control input[type=color]{background:#fff;border:1px solid #c9c4b7;border-radius:6px;width:76px;height:38px;padding:3px}.name-list{gap:8px;display:grid}.team-control{border-top:1px solid #e2ded4;gap:10px;padding-top:12px;display:grid}.drawing-controls{gap:10px;display:grid}.tier-two-actions{flex-wrap:wrap;justify-content:center;gap:8px 18px;min-height:28px;display:flex}.drawing-primary-action,.play-action,.icon-action{border-radius:6px;font-weight:800}.drawing-primary-action:disabled,.play-action:disabled,.icon-action:disabled,.text-action:disabled{opacity:.45}.drawing-primary-action{color:#fff;background:#27634f;border:0;min-height:58px;font-size:1rem;font-weight:900}.drawing-primary-action.is-recording{background:#9a4519}.play-action{color:#fff;background:#27634f;border:0;place-items:center;min-height:48px;display:grid}.play-action svg{stroke-width:2.6px;width:24px;height:24px}.share-actions{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;display:grid}.icon-action{color:#37413b;background:#fff;border:1px solid #d8d2c3;place-items:center;min-height:44px;display:grid}.icon-action svg{stroke-width:2.5px;width:22px;height:22px}.export-status{color:#27634f;min-height:20px;margin:0;font-size:.84rem;font-weight:800}.export-status.is-error{color:#9a4519}.export-link{color:#37413b;background:#fff;border:1px solid #d8d2c3;border-radius:6px;place-items:center;min-height:36px;font-size:.82rem;font-weight:800;text-decoration:none;display:grid}.setup-details{background:#fffdf8;border:1px solid #d8d2c3;border-radius:8px;overflow:hidden}.setup-details summary{color:#19201d;cursor:pointer;justify-content:space-between;align-items:center;gap:12px;min-height:52px;padding:0 16px;font-size:.96rem;font-weight:850;list-style:none;display:flex}.setup-details summary::-webkit-details-marker{display:none}.setup-details summary:after{content:"+";color:#525c56;background:#fff;border:1px solid #d8d2c3;border-radius:999px;place-items:center;width:28px;height:28px;font-weight:850;display:grid}.setup-details[open] summary:after{content:"-"}.setup-content{gap:16px;padding:0 16px 16px;display:grid}.court-setup-group{gap:10px}.teams-setup-group{gap:12px}.text-action{color:#525c56;background:0 0;border:0;align-items:center;gap:6px;min-height:28px;padding:0;font-size:.84rem;font-weight:850;display:inline-flex}.text-action svg{stroke-width:2.4px;width:15px;height:15px}.toggle-row{justify-content:start;min-height:32px}.toggle-row input{accent-color:#27634f;width:18px;height:18px}@media (width>=900px){.app-shell{padding:24px 48px 40px}.workspace{grid-template-columns:minmax(0,1fr) minmax(260px,300px);gap:20px}h1{font-size:2.8rem}.control-panel{position:sticky;top:24px}}@media (width<=380px){h1{font-size:1.75rem}.share-actions{grid-template-columns:1fr}.court{min-height:300px}}
