@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&display=swap');
*{box-sizing:border-box}body{margin:0;background:#101313;color:#e9eeeb;font:14px 'DM Sans',system-ui,sans-serif}button,input{font:inherit}button{cursor:pointer;border:1px solid #343b37;background:#222825;color:#e9eeeb;border-radius:8px;padding:11px 14px;min-height:44px}button:hover{border-color:#a0b38e;background:#30382f}button.primary{background:#c9fa6b;color:#14200a;border-color:#c9fa6b;font-weight:700}input{min-width:0;border:1px solid #343c35;border-radius:6px;background:#191e1b;color:#fff;padding:10px}header{height:88px;display:flex;align-items:center;gap:16px;padding:0 26px;border-bottom:1px solid #303631}.brand{display:flex;align-items:center;gap:12px;font-size:18px;font-weight:700;letter-spacing:1px;width:250px}.brand b{color:#c9fa6b;font-size:38px}.brand span{display:block;font-size:9px;letter-spacing:2px;color:#939f94;margin-top:4px}.name{flex:1}.name input{border:0;background:transparent;padding:0;font-weight:600;font-size:17px;width:100%}.name small{display:block;color:#8b978e;margin-top:6px;font-size:11px}nav{height:60px;display:flex;padding:0 26px;align-items:center;gap:26px;border-bottom:1px solid #303631}.tab{border:0;background:transparent;border-radius:0;height:60px;color:#939f97;padding:10px 0}.tab.active{color:#c9fa6b;border-bottom:2px solid #c9fa6b}.spacer{flex:1}.live{font-size:9px;color:#92a18f;letter-spacing:1.5px}main{display:flex;height:calc(100dvh - 148px);min-height:530px}aside{width:270px;flex-shrink:0;padding:24px 20px;overflow:auto;border-right:1px solid #303631;background:#171c19}.eyebrow{font-size:9px;letter-spacing:2px;color:#c9fa6b}h2{font-size:20px;margin:9px 0}.muted{color:#8b988f;font-size:12px;line-height:1.6}label{display:block;font-size:9px;color:#a0aca2;letter-spacing:1.5px;margin:25px 0 10px}.maps{display:flex;flex-direction:column;gap:8px}.maps button{text-align:left;background:linear-gradient(100deg,#29372a,#202821);font-weight:600}.maps button:nth-child(2){background:linear-gradient(100deg,#443a28,#29261e)}.maps button:nth-child(3){background:linear-gradient(100deg,#243c39,#202a29)}.maps small{float:right;font-size:10px;color:#a2afa2;font-weight:400}.maps .selected{border-color:#c9fa6b;color:#d7ffa0}.wide{width:100%}.row{display:flex;gap:8px;margin-top:9px}.row input{width:100%}.hint{font-size:11px;line-height:1.6;color:#859087;margin-top:12px}#selection{font-size:12px;color:#b3c2b4;min-height:20px}input[type=range]{width:100%;accent-color:#c9fa6b;padding:0;border:0;min-height:30px}.danger{color:#ec9d8e;margin-top:10px;font-size:12px}.source{border-top:1px solid #303830;margin-top:25px;padding-top:18px;font-size:9px;color:#94a293;letter-spacing:1px}.source input{width:100%;font-size:10px;margin-top:8px}.source small{display:block;line-height:1.6;letter-spacing:0;margin-top:8px}.workspace{flex:1;display:flex;flex-direction:column;min-width:0;padding:0 22px;background:#101512}.workspace-top{height:78px;display:flex;align-items:center;justify-content:space-between}.workspace-top b{font-size:18px}.workspace-top span{display:block;color:#8a988b;font-size:9px;letter-spacing:2px;margin-top:6px}.workspace-top button{padding:7px 12px;margin-left:5px;background:#1b231d}#stage{flex:1;position:relative;overflow:hidden;background:#0b1310;border:1px solid #344331;border-radius:12px;touch-action:none;background-image:radial-gradient(#344137 1px,transparent 1px);background-size:22px 22px}#world{position:absolute;width:1000px;height:1000px;transform-origin:0 0}#mapImg{width:100%;height:100%;display:block;pointer-events:none}#overlay{position:absolute;inset:0;width:100%;height:100%;overflow:visible;touch-action:none}#overlay text{font-family:system-ui;font-weight:700;paint-order:stroke;stroke:#101913;stroke-width:2;stroke-linejoin:round}#yt{position:absolute;inset:0;width:100%;height:100%;display:none}#loading{position:absolute;top:20px;left:50%;transform:translateX(-50%);background:#111e17e8;padding:10px 18px;border-radius:6px;font-size:12px;pointer-events:none}.tools{position:absolute;left:16px;top:16px;padding:6px;display:flex;flex-direction:column;gap:4px;background:#152019f2;border:1px solid #3c4a3b;border-radius:12px;box-shadow:0 10px 35px #0005}.tools button{border:0;background:transparent;width:48px;padding:3px;font-size:21px;min-height:49px}.tools small{display:block;font-size:8px;margin-top:1px;color:#aebcae}.tools button.active{background:#c9fa6b;color:#192214}.tools button.active small{color:#192214}.tools input[type=color]{padding:3px;width:44px;height:38px;min-height:38px;align-self:center}.tools input[type=range]{width:45px}.tools i{border-top:1px solid #3a4839;margin:3px}.zoom{position:absolute;right:16px;bottom:18px;display:flex;align-items:center;gap:10px;border:1px solid #394a38;border-radius:9px;background:#132018f2;padding:3px}.zoom button{border:0;background:transparent;font-size:18px}.zoom span{font-size:11px;width:40px;text-align:center}.canvas-hint{position:absolute;bottom:23px;left:20px;font-size:10px;color:#c0cdbc;background:#152019dd;padding:8px 12px;border-radius:6px;pointer-events:none}footer{display:flex;justify-content:space-between;height:42px;align-items:center;font-size:10px;color:#8c9c8c}footer i{display:inline-block;width:6px;height:6px;border-radius:100%;background:#c9fa6b;margin-right:5px}.video-controls{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:12px}.video-controls input{flex:1;min-width:200px}.video-controls button{font-size:11px}.video-controls[hidden],#moments[hidden]{display:none}#moments{display:flex;gap:8px;padding-bottom:12px;flex-wrap:wrap}#moments button{font-size:11px}dialog{background:#1a241c;color:#f0f5ee;border:1px solid #52634c;border-radius:14px;width:640px;max-width:94vw;padding:25px}dialog::backdrop{background:#030a07bc}.dialog-head{display:flex;justify-content:space-between;align-items:center}.saved{display:flex;align-items:center;gap:10px;border-top:1px solid #354332;padding:12px 0}.saved div{flex:1}.saved small{display:block;color:#9cad98;font-size:10px;margin-top:4px}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);border:1px solid #7e9b65;background:#253821;padding:13px 22px;border-radius:8px;display:none;z-index:100}#count{background:#35432d;color:#c9fa6b;border-radius:4px;padding:2px 6px;margin-left:6px}@media(max-width:1050px){aside{width:225px;padding:20px 14px}.brand{width:210px}.workspace{padding:0 12px}.canvas-hint{display:none}header{padding:0 16px;gap:10px}.live{display:none}.tools{left:10px;top:10px}.tools button{min-height:44px}}@media(max-width:700px){header{height:72px}.brand{width:auto;font-size:12px}.brand b{font-size:26px}.brand span{font-size:6px}.name{display:none}header button{padding:8px;font-size:11px}nav{height:52px;padding:0 14px}.tab{height:52px}main{height:calc(100dvh - 124px);min-height:650px;flex-direction:column}aside{width:100%;height:175px;padding:12px;display:flex;flex-wrap:wrap;gap:8px;align-content:flex-start}.eyebrow,aside h2,aside p,aside label,.hint,.source,#selection,aside>.danger,aside>input[type=range]{display:none}.maps{flex-direction:row;width:100%}.maps button{flex:1;padding:10px}.maps small{display:none}aside>.wide{width:45%;font-size:11px}.row{margin:0;flex:1}.workspace{flex:1;min-height:470px}.workspace-top{height:65px}footer #footnote{display:none}.tools{gap:0;padding:4px}.tools button{width:42px;min-height:41px;font-size:18px}.tools small{font-size:7px}}

#tiles{position:absolute;inset:0;pointer-events:none}#tiles img{position:absolute;display:block;pointer-events:none}#mapImg{position:absolute;inset:0}#yt{background:#050805}body.video #world{height:562.5px}body.video #overlay{height:562.5px}body.video #mapImg{display:none}

#stage[data-tool="select"],#stage[data-tool="pan"]{cursor:grab}#stage[data-tool="select"] [data-id]{cursor:move}#stage.dragging,#stage.dragging *{cursor:grabbing!important}#stage[data-tool="pen"],#stage[data-tool="arrow"],#stage[data-tool="circle"]{cursor:crosshair}

#stage{overflow:clip}

.object-settings{width:100%}.object-settings[hidden]{display:none}.size-row{display:flex;align-items:center;gap:8px}.size-row input[type=range]{flex:1;min-width:0}.size-row input[type=number]{width:65px;min-height:44px;padding:8px;font-size:12px}button:disabled,input:disabled{opacity:.45;cursor:default}@media(max-width:700px){.object-settings label{display:block;margin:8px 0}.object-settings input[type=range]{display:block}.object-settings{flex-shrink:0}}

.logo-pool{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-top:10px;max-height:230px;overflow:auto;width:100%}.logo-card{position:relative;min-width:0;padding:8px 4px 6px;display:flex;flex-direction:column;align-items:center;gap:5px}.logo-card img{width:42px;height:42px;object-fit:contain}.logo-card span{font-size:9px;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.logo-card b{position:absolute;right:2px;top:0;color:#c9fa6b;font-size:13px}.pool-empty{grid-column:1/-1;font-size:11px;color:#8b988f;margin:4px 0}.pool-hint{font-size:10px}@media(max-width:700px){.logo-pool{grid-template-columns:repeat(5,minmax(0,1fr));flex-shrink:0;max-height:145px}.pool-hint{display:block;width:100%;margin-top:0}.logo-card img{width:32px;height:32px}}

.workspace-top #clearScreen{color:#efb3a2;border-color:#65443a}.workspace-top #clearScreen:hover:enabled{background:#3b2721}@media(max-width:850px){.workspace-top{gap:10px;flex-wrap:wrap;height:auto;min-height:78px;padding:12px 0}.workspace-top>div:last-child{display:flex;flex-wrap:wrap;gap:6px}.workspace-top button{margin-left:0;font-size:11px;padding:7px 9px}}
[hidden]{display:none!important}#tournamentsPage{height:calc(100dvh - 148px);overflow:auto;padding:34px max(24px,5vw) 60px;background:#101713}.tourney-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:28px}.tourney-heading h1{font-size:32px;letter-spacing:-1px;margin:8px 0}.tourney-heading p{color:#95a594;margin:0;font-size:13px}.tourney-layout{display:grid;grid-template-columns:240px minmax(0,1fr);gap:30px}.tourney-filters{width:auto;background:#19221a;border:1px solid #344130;border-radius:12px;padding:20px;height:max-content;overflow:visible}.tourney-filters label:first-child{margin-top:0}select,textarea{font:inherit;color:#e9eeeb;background:#111a14;border:1px solid #3a4a36;border-radius:8px;padding:12px;min-height:46px;width:100%}select{cursor:pointer}textarea{resize:vertical}.tourney-note{border-top:1px solid #394534;margin-top:24px;padding-top:18px;font-size:11px;color:#9daa98;line-height:1.7}.match-list-heading{display:flex;justify-content:space-between;color:#a5b39f;font-size:11px;letter-spacing:1px;margin-bottom:14px}.match-list-heading span:last-child{font-size:9px;color:#71856e}.match-card{display:flex;background:#1b251d;border:1px solid #374632;border-radius:12px;overflow:hidden;margin-bottom:14px}.match-visual{width:190px;flex-shrink:0;background-size:cover;background-position:center;position:relative}.map-badge{position:absolute;left:12px;bottom:12px;background:#182514e8;color:#d1f2b1;border:1px solid #66854d;padding:5px 10px;border-radius:5px;font-size:11px}.match-content{padding:22px;min-width:0;flex:1}.match-content h2{font-size:22px;margin-top:10px}.match-content .eyebrow{overflow-wrap:anywhere}.match-notes{font-size:12px;color:#b9c8b3;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere}.match-actions{display:flex;flex-wrap:wrap;gap:7px;margin-top:18px}.match-actions button{font-size:11px;padding:9px 13px}.match-remove{color:#e6a997}.match-empty{padding:65px 25px;text-align:center;border:1px dashed #405435;border-radius:12px;background:#152017}.empty-symbol{font-size:45px;color:#c9fa6b}.match-empty p{max-width:380px;margin:12px auto 24px}.match-form-grid{display:grid;grid-template-columns:1fr 1fr 1.5fr;gap:12px}#matchForm input,#matchForm textarea{width:100%}#matchForm label{margin-top:18px}#matchFormError{color:#ffa68d;font-size:12px;line-height:1.5}.form-actions{justify-content:flex-end;margin-top:24px}.signin-link{display:inline-block;color:#c9fa6b;border:1px solid #789358;padding:12px;border-radius:8px;text-decoration:none}@media(max-width:1000px){.tourney-layout{grid-template-columns:200px minmax(0,1fr);gap:18px}.match-visual{width:130px}.match-content{padding:18px}.tourney-heading h1{font-size:27px}}@media(max-width:700px){#tournamentsPage{height:calc(100dvh - 124px);padding:22px 14px}.tourney-heading{align-items:flex-start;flex-direction:column;gap:12px}.tourney-layout{display:block}.tourney-filters{height:auto;width:100%;display:block;margin-bottom:22px}.tourney-filters label{display:block;margin:12px 0 8px}.tourney-filters .hint{display:block}.match-card{flex-direction:column}.match-visual{height:105px;width:100%;background-position:center 40%}.match-form-grid{grid-template-columns:1fr 1fr}.match-form-grid>div:last-child{grid-column:1/-1}nav{gap:18px}.tab{font-size:12px}.tourney-heading .row{flex:none}.match-actions button{flex:1}.tourney-note{margin-top:15px;padding-top:12px}}
.replay-toolbar{background:#1a281b;border:1px solid #435c35;border-radius:10px;padding:14px;margin-top:12px}.replay-heading{display:flex;justify-content:space-between;gap:12px;align-items:center}.replay-heading small{display:block;font-size:10px;color:#e6c98b;margin-top:5px}.replay-heading .row{margin:0;flex-wrap:wrap}.replay-heading button{font-size:11px;padding:8px 10px}.replay-toolbar p{font-size:11px;color:#aabda2;margin:10px 0;line-height:1.6}.replay-transport{display:flex;gap:8px;align-items:center}.replay-transport button{font-size:11px;padding:8px;white-space:nowrap}.replay-transport input{flex:1;min-width:50px}.replay-transport span{font-size:11px;white-space:nowrap}.replay-transport select{width:70px;padding:8px}.replay-options{display:flex;flex-wrap:wrap;gap:20px;margin-top:10px}.replay-options label{display:flex;align-items:center;gap:6px;font-size:10px;letter-spacing:0;margin:0;color:#b8cbae}.replay-options input{accent-color:#c9fa6b}.replay-panel>input{width:100%;margin:8px 0}#replayPlayers{display:flex;flex-direction:column;max-height:220px;overflow:auto;gap:6px}#replayPlayers button{font-size:11px;text-align:left;padding:10px;display:flex;align-items:center;justify-content:space-between;gap:6px}#replayPlayers button.active{border-color:#c9fa6b;background:#33462a}#replayPlayers small{font-size:9px;color:#a8b69f}#replayPlayerEditor input{width:100%}#replayPlayerEditor button{font-size:11px;margin-top:9px}#replayPointInfo{display:block;font-size:10px;line-height:1.6;margin-top:10px;color:#b4c6a9}.replay-panel hr{border:0;border-top:1px solid #3a4e32;margin:22px 0}#replayOverlay{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;overflow:visible;z-index:1}#stage[data-tool=select] #replayOverlay [data-replay-player]{pointer-events:all;cursor:pointer}#replayOverlay text{font:700 15px system-ui;paint-order:stroke;stroke:#111b12;stroke-width:3px;stroke-linejoin:round;pointer-events:none}.replay-mode .workspace{overflow:auto}.replay-mode #stage{min-height:330px}.replay-mode #coachMain{min-height:650px}.replay-mode #canvasHint{max-width:60%}#replayProcessForm input,#replayProcessForm textarea{width:100%}#processorHealth{font-size:12px;line-height:1.7;padding:12px;border:1px solid #596746;border-radius:8px;color:#d4dfb7}#replayProcessError{color:#ffae95;font-size:12px}#replayCalibrationDialog{width:900px}#replayCalibrationImage{position:relative;touch-action:none;user-select:none;margin:16px 0;background:#080c09;min-height:100px}#replayPreview{width:100%;height:auto;display:block;pointer-events:none}#replayCropBox{position:absolute;display:none;border:2px solid #c9fa6b;background:#c9fa6b18;pointer-events:none}#replayCropStatus{font-size:12px;color:#b8c5ad}.replay-mode #stage.correcting{cursor:crosshair}@media(max-width:1000px){.replay-heading{align-items:flex-start;flex-direction:column}.replay-heading .row{gap:5px}.replay-toolbar{padding:10px}.replay-options{gap:10px}}@media(max-width:700px){.replay-panel{width:100%;flex-shrink:0}.replay-panel h2{display:block}.replay-panel label{display:block;margin:10px 0 5px}.replay-panel .hint{display:block}.replay-transport{flex-wrap:wrap}.replay-transport input{order:9;flex-basis:100%}.replay-mode #coachMain{min-height:850px}.replay-mode #stage{min-height:350px}.replay-heading button{font-size:10px}.replay-options label{display:flex}.replay-toolbar{flex-shrink:0}}
.replay-mode .tools{max-height:calc(100% - 28px);overflow-y:auto;scrollbar-width:thin}.replay-options input[type=range]{width:90px;min-height:25px}
.processor-package{display:inline-block;color:#c9fa6b;font-size:11px;margin-bottom:6px;text-underline-offset:3px}
#photoSpotDialog{width:min(1300px,97vw);max-width:97vw;height:min(850px,94dvh);max-height:94dvh;padding:18px;overflow:hidden}#photoSpotDialog[open]{display:flex;flex-direction:column}.photo-dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:14px}.photo-dialog-heading>div{flex:1}.photo-dialog-heading input{width:min(700px,100%);font-size:17px;margin-top:7px;font-weight:600}.photo-dialog-layout{display:flex;flex:1;min-height:0;gap:15px}.photo-gallery{width:170px;flex-shrink:0;padding:0 12px 0 0;background:none;border:0;overflow:auto}.photo-gallery button{font-size:11px}#photoThumbnails{display:flex;flex-direction:column;gap:8px;margin:12px 0}#photoThumbnails button{display:flex;flex-direction:column;gap:5px;align-items:center;padding:7px;flex-shrink:0}#photoThumbnails img{width:100%;height:80px;object-fit:cover;border-radius:4px}#photoThumbnails small{font-size:10px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#photoThumbnails button.active{border-color:#c9fa6b;background:#35492a}.photo-workspace{flex:1;min-width:0;display:flex;flex-direction:column}.photo-tools{display:flex;gap:5px;flex-wrap:wrap;margin-bottom:9px;align-items:center}.photo-tools button{font-size:11px;padding:9px 10px}.photo-tools button.active{background:#c9fa6b;color:#1a2610;border-color:#c9fa6b}.photo-tools input[type=color]{width:44px;height:44px;padding:4px}.photo-tools input[type=range]{width:65px;min-height:44px}.photo-note-row{display:flex;gap:7px;margin-bottom:10px}.photo-note-row input:first-child{flex:1;font-size:11px}.photo-note-row input:last-child{width:65px}#photoCanvas{position:relative;flex:1;min-height:260px;overflow:clip;border:1px solid #49603c;border-radius:10px;background:#0a100d;touch-action:none}#photoWorld{position:absolute;width:1000px;transform-origin:0 0}#photoImage{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;user-select:none}#photoDrawing{position:absolute;inset:0;width:100%;height:100%;touch-action:none;overflow:visible}#photoDrawing text{font-family:system-ui;font-weight:600}#photoEmpty{position:absolute;inset:35% 12% auto;text-align:center;color:#9eaf95;pointer-events:none}.photo-zoom{position:absolute;right:12px;bottom:12px;display:flex;align-items:center;gap:6px;background:#14211be8;border:1px solid #425b37;border-radius:8px;padding:3px}.photo-zoom button{padding:6px 11px;font-size:13px;background:transparent;border:0}.photo-zoom span{font-size:11px;min-width:40px;text-align:center}#photoHint{font-size:10px;color:#9fb493;line-height:1.5;margin-top:7px}.photo-dialog-footer{display:flex;gap:15px;align-items:center;justify-content:space-between;border-top:1px solid #3b4d33;margin-top:14px;padding-top:12px}.photo-dialog-footer>span{font-size:11px;color:#b6caa8;line-height:1.6}.photo-dialog-footer .row{flex-shrink:0;margin:0}.photo-dialog-footer button{font-size:12px}#openPhotoSpot{margin-top:8px;border-color:#61794f;color:#d1f7ad}#stage[data-tool=photo]{cursor:crosshair}#photoCanvas[data-photo-tool=pan]{cursor:grab}#photoCanvas[data-photo-tool=pen],#photoCanvas[data-photo-tool=arrow],#photoCanvas[data-photo-tool=circle],#photoCanvas[data-photo-tool=text]{cursor:crosshair}.tools{max-height:calc(100% - 30px);overflow-y:auto;scrollbar-width:thin}@media(max-width:850px){#photoSpotDialog{padding:12px}.photo-gallery{width:130px}.photo-tools button{font-size:10px;padding:8px}.photo-dialog-footer{gap:8px}.photo-dialog-footer>span{font-size:10px}.photo-dialog-footer button{padding:9px}}@media(max-width:600px){.photo-dialog-layout{flex-direction:column;gap:8px}.photo-gallery{display:block;width:100%;height:110px;padding:0;border-bottom:1px solid #3b4d33;flex-shrink:0;overflow:auto}.photo-gallery>.wide{width:auto;display:inline-block;padding:8px;min-height:40px}.photo-gallery .hint{display:none}#photoThumbnails{display:inline-flex;flex-direction:row;vertical-align:top;max-width:65%;overflow:auto;margin:0 6px;gap:5px}#photoThumbnails button{width:74px;min-height:65px;padding:4px}#photoThumbnails img{height:40px}#photoThumbnails small{font-size:8px}.photo-dialog-heading input{font-size:13px}.photo-dialog-heading{margin-bottom:8px}.photo-tools{gap:3px}.photo-tools button{min-height:40px}.photo-tools input[type=range]{width:45px}.photo-workspace{min-height:0}#photoCanvas{min-height:170px}.photo-dialog-footer{flex-direction:column;align-items:stretch;margin-top:9px;padding-top:8px}.photo-dialog-footer .row{justify-content:flex-end}.photo-dialog-footer>span{font-size:9px}.photo-note-row{margin-bottom:6px}#photoText{font-size:10px}#photoHint{display:none}}
@media(min-width:601px){.photo-gallery{height:auto;display:block}}
