@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');
:root{--ink:#153e35;--green:#215b49;--lime:#d5ed87;--sand:#f5f4ed;--line:#dde2d6;--muted:#6b786e}*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:30px}body{margin:0;background:var(--sand);color:var(--ink);font-family:'DM Sans',sans-serif;font-size:15px}a{color:inherit;text-decoration:none}header{max-width:1200px;margin:auto;min-height:92px;display:flex;align-items:center;justify-content:space-between;padding:20px 32px;border-bottom:1px solid var(--line)}.brand{display:flex;gap:10px;align-items:center;font-family:Outfit,sans-serif;font-weight:800;font-size:23px;letter-spacing:1px}.brand small{font-size:9px;max-width:50px;line-height:1.5;letter-spacing:2px;border-left:1px solid #acb9ad;padding-left:10px}.logo{border:2px solid var(--ink);border-radius:50%;width:36px;height:36px;text-align:center;line-height:30px;font-size:29px}.header-link{font-weight:700;font-size:13px}main{max-width:1136px;margin:auto;padding:30px 0 70px}h1,h2,h3,h4{font-family:Outfit,sans-serif;line-height:1.1;margin-top:0}h1{font-size:clamp(36px,5vw,60px);letter-spacing:-1.8px;margin-bottom:16px;overflow-wrap:anywhere}h2{font-size:27px;margin-bottom:0}h3{font-size:23px;margin-bottom:15px}p{line-height:1.65}.eyebrow{font-size:11px;letter-spacing:1.8px;font-weight:700}.hero{position:relative;overflow:hidden;padding:55px 52px;background:var(--ink);color:white;border-radius:24px;min-height:480px;margin-bottom:56px}.hero h1{font-size:clamp(48px,6vw,76px);line-height:1.01;position:relative;z-index:1;margin-top:24px}.hero em{font-style:normal;color:var(--lime)}.hero p{max-width:350px;color:#c6d7ce;position:relative;z-index:1}.hero .button{background:var(--lime);color:var(--ink);position:relative;z-index:1;gap:35px}.hero-meta{font-size:12px;color:#c6d7ce;margin-top:24px}.hero-meta b{margin:0 10px}.court{position:absolute;width:360px;height:430px;right:40px;top:60px;border:2px solid #759784;transform:rotate(16deg);border-radius:2px;opacity:.65;background:linear-gradient(90deg,transparent 49.7%,#759784 49.7%,#759784 50.3%,transparent 50.3%)}.court:before,.court:after{content:'';position:absolute;left:0;right:0;border-top:2px solid #759784;top:25%}.court:after{top:75%}.court-net{position:absolute;top:50%;width:110%;left:-5%;border-top:4px solid var(--lime)}.court span{position:absolute;top:25%;left:24%;font-size:210px;font-family:Outfit;line-height:1;color:var(--lime);opacity:.8}.section-head{display:flex;gap:16px;align-items:center;justify-content:space-between;margin-bottom:22px}.section-head h1{margin-bottom:0}.muted,.help{color:var(--muted);font-size:12px}.help{line-height:1.65}.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,330px),1fr));gap:20px}.card{padding:26px;background:white;border:1px solid var(--line);border-radius:18px;min-width:0}.tournament{transition:transform .15s}.tournament:hover{transform:translateY(-3px)}.tournament h3{margin-top:18px}.tournament strong{font-size:13px}.empty{padding:38px}.empty p{color:var(--muted);max-width:560px}.intro{color:var(--muted);margin:0 0 26px}.back{display:inline-block;font-size:13px;margin-bottom:28px}.accent{color:#7b9b35}.create-form{display:grid;grid-template-columns:1.1fr 1fr;gap:24px}.step{display:flex;gap:14px;align-items:center;margin-bottom:28px;color:#8ca477}.step h2{color:var(--ink);font-size:23px}label{display:block;font-size:13px;font-weight:600;margin:20px 0 9px}input,textarea,select{font:inherit;color:var(--ink);border:1px solid #ced8cc;border-radius:10px;padding:13px;background:#fcfdf9;width:100%;max-width:100%;font-size:16px}textarea{resize:vertical;line-height:1.7}input:focus,textarea:focus,select:focus{outline:2px solid #87aa59;outline-offset:2px}button,.button{font:inherit;font-weight:700;border:none;border-radius:10px;background:var(--ink);color:white;cursor:pointer;padding:15px 22px;display:inline-flex;align-items:center;justify-content:center;min-height:46px;font-size:14px}button:hover,.button:hover{filter:brightness(1.08)}button:disabled{opacity:.6;cursor:wait}.secondary{background:#ecf0e5;color:var(--ink);border:1px solid var(--line)}.badge{display:inline-block;padding:5px 9px;border-radius:6px;background:#f0f2eb;font-size:10px;font-weight:600;white-space:nowrap;letter-spacing:0}.finished{background:#e7f2d1;color:#41632a}.rule{background:#f1f5e7;border-radius:12px;padding:20px;margin:26px 0}.rule p{font-size:13px;margin-bottom:0}.notice{background:#e9f1d7;border:1px solid #cedbb5;padding:15px 20px;border-radius:12px;margin-bottom:20px;font-size:14px}.notice.error{background:#fff0e9;border-color:#ebc2b0;color:#923d26}.progress{height:6px;background:#dfe5d7;border-radius:10px;margin-bottom:26px;overflow:hidden}.progress span{display:block;height:100%;background:#7ca84f}.tabs{display:flex;gap:8px;border-bottom:1px solid var(--line);margin-bottom:35px;position:sticky;top:0;background:var(--sand);z-index:2;padding:10px 0}.tabs a{padding:12px 20px;border-radius:9px;font-weight:700;font-size:13px}.tabs a:hover{background:var(--lime)}section[id]{margin-bottom:42px}table{border-collapse:collapse;width:100%;font-size:13px}th{text-align:left;font-size:10px;color:var(--muted);padding:12px 8px;letter-spacing:1px}td{padding:13px 8px;border-top:1px solid #edf0e9}th:not(:first-child),td:not(:first-child){text-align:right}td strong{font-size:18px}.rank{display:inline-block;width:24px;color:var(--muted)}tr.qualified td:first-child{border-left:3px solid #88aa51}.tie{display:block;color:#947435;font-size:10px;margin-left:28px}.games{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,330px),1fr));gap:16px}.match{padding:22px}.match .section-head{gap:6px}.match .eyebrow{font-size:9px;letter-spacing:.8px}.team{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:12px}.team label{font-size:15px;margin:0;font-weight:500;line-height:1.5}.team input{width:65px;flex-shrink:0;text-align:center;font-size:22px;font-weight:700;padding:8px;-moz-appearance:textfield}.team input::-webkit-inner-spin-button{appearance:none}.save{width:100%;margin-top:8px;padding:9px;font-size:12px}.section-head select{width:auto;max-width:180px;font-size:13px}.pairings{display:grid;gap:15px;margin:25px 0}.pair{display:grid;grid-template-columns:75px 1fr 15px 1fr;align-items:center;gap:12px}.pair strong{font-size:12px}.pair select{font-size:13px}.check{display:flex;align-items:center;gap:12px;line-height:1.5;margin:20px 0}.check input{width:20px;height:20px;flex-shrink:0}summary{cursor:pointer;padding:16px 0;font-weight:600}.champion{padding:30px;background:var(--lime);border-radius:16px;margin-bottom:20px}.champion h2{margin-top:14px}.champion p{margin-bottom:0}footer{text-align:center;color:var(--muted);padding:26px;border-top:1px solid var(--line);font-size:12px}[hidden]{display:none!important}@media(max-width:1200px){main{padding-left:24px;padding-right:24px}}@media(max-width:760px){header{padding:18px 20px;min-height:76px}.brand{font-size:19px}.brand small{display:none}main{padding:24px 16px 45px}.hero{padding:34px 26px;min-height:460px;border-radius:18px;margin-bottom:35px}.hero p{max-width:255px}.hero h1{font-size:56px}.court{right:-180px;top:75px;opacity:.25}.create-form{grid-template-columns:1fr}.card{padding:21px}.section-head{gap:10px}h2{font-size:23px}.section-head h1{font-size:34px}.section-head #share{padding:10px;font-size:11px;min-width:85px}.tabs{gap:0;justify-content:space-between}.tabs a{padding:12px 10px}.pair{grid-template-columns:1fr 15px 1fr;gap:7px}.pair strong{grid-column:1/-1}.pair select{padding:12px 7px;font-size:12px}.muted{font-size:10px}.hero-meta{font-size:10px}.hero-meta b{margin:0 5px}}

.bulk-save{position:sticky;top:0;z-index:5;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 18px;background:#fff;border:1px solid #ced8cc;border-radius:14px;box-shadow:0 6px 22px #153e3518;margin:18px 0}.bulk-save span{font-size:13px;line-height:1.5}.bulk-save button{flex-shrink:0}.bulk-save ~ .tabs{position:static}@media(max-width:600px){.bulk-save{flex-direction:column;align-items:stretch}.bulk-save button{width:100%}}

.team input[aria-invalid="true"]{border:2px solid #b42318;background:#fff0ee;color:#a11b13;outline-color:#b42318}.score-error{color:#b42318;font-size:12px;line-height:1.5;margin:10px 0 0}
.phase{margin:30px 0 42px}.tie-fields{border-top:1px dashed #ced8cc;margin-top:18px;padding-top:8px}.tie-fields .team label{font-size:12px}.tie-fields input{font-size:18px}.phase .badge{white-space:normal;text-align:right}
.header-actions{display:flex;align-items:center;gap:22px;min-width:0}.account-handle{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:140px}.auth-shell{max-width:540px;margin:12px auto 40px}.auth-shell h1{font-size:clamp(34px,5vw,48px)}.auth-card form>button,.auth-shell section form>button{margin-top:22px;width:100%}.auth-divider{display:flex;align-items:center;gap:12px;color:var(--muted);margin:20px 0;font-size:12px}.auth-divider:before,.auth-divider:after{content:'';height:1px;flex:1;background:var(--line)}.auth-card a,.text-link{font-weight:700;text-decoration:underline;text-underline-offset:3px}.errorlist{list-style:none;padding:12px;margin:8px 0;background:#fff0ee;border-radius:8px;color:#b42318;font-size:13px;line-height:1.5}.date-filter{display:flex;align-items:end;flex-wrap:wrap;gap:10px;margin:0 0 24px}.date-filter label{margin-top:0}.date-filter input{min-height:48px}.date-filter>div{min-width:180px}.pagination{display:flex;justify-content:center;gap:25px;align-items:center;margin-top:30px}.account-tools{display:flex;gap:15px;align-items:start;margin-bottom:35px;flex-wrap:wrap}.editor-list{margin-top:22px}.editor-row{display:flex;align-items:center;justify-content:space-between;gap:15px;border-bottom:1px solid var(--line);padding:18px 0;overflow-wrap:anywhere}.editor-row:last-child{border-bottom:0}.editor-row button{font-size:12px;padding:10px}.editor-row strong{min-width:0;overflow-wrap:anywhere}.auth-card input[disabled]{background:#f0f2eb}@media(max-width:600px){.header-actions{gap:12px}.header-actions .account-handle{max-width:100px}.header-link{font-size:11px}.date-filter>div{width:100%}.date-filter>button,.date-filter>a{flex:1;padding:13px 16px}.auth-shell{margin-top:0}.auth-card{padding:22px}}
