*{box-sizing:border-box}body{margin:0;background:#081426;color:#f4f7fc;font-family:Arial,Helvetica,sans-serif}.top{padding:20px max(20px,calc((100vw - 1180px)/2));background:#0c1d34;display:flex;justify-content:space-between;align-items:center;border-bottom:2px solid #2464b5;gap:12px}.brand{font-size:18px;font-weight:900;letter-spacing:.04em}.brand b,.intro em{color:#2454ff;font-style:normal}a{color:inherit;text-decoration:none}.back{font-size:14px;color:#c8d8ef}main{max-width:1180px;margin:auto;padding:28px 18px 60px}.intro{text-align:center;padding:32px 0}.eyebrow{font-size:12px;font-weight:800;letter-spacing:.13em;color:#2454ff}.intro h1{font-size:clamp(35px,6vw,66px);margin:12px 0}.intro p{color:#b9c9dc}.toolbar{background:#112643;padding:18px;border:1px solid #24466d;border-radius:12px;display:flex;flex-wrap:wrap;align-items:end;gap:22px;margin-bottom:20px}.controls{display:grid;gap:8px}.controls label{font-size:12px;font-weight:bold;color:#c6d6ec}select{background:#07182e;color:white;border:1px solid #567ca9;padding:11px 15px;border-radius:7px;font-size:15px}.classes{display:flex;flex-wrap:wrap;gap:8px}button{border:1px solid #53749e;background:#0b1d34;color:white;padding:11px 17px;border-radius:7px;font-weight:800;cursor:pointer}button.active{background:#2454ff;color:#081426;border-color:#2454ff}.board{border:1px solid #2c507a;border-radius:14px;background:#10223c;overflow:hidden}.board-head{padding:25px;display:flex;align-items:center;justify-content:space-between;gap:12px;background:linear-gradient(100deg,#123966,#0d2340)}.board-head h2{margin:8px 0 0;font-size:clamp(21px,3vw,30px)}.season{color:#cbd8eb;font-size:12px;font-weight:bold}.notice{margin:20px 24px;padding:16px;border-left:3px solid #2454ff;background:#1a314f;color:#dce6f4}.bracket-scroll{overflow-x:auto;padding:12px 24px 30px}.bracket{display:flex;gap:36px;min-height:160px;align-items:stretch}.round{min-width:230px;display:flex;flex-direction:column;gap:16px}.round h3{font-size:13px;color:#2454ff;letter-spacing:.08em}.match{border:1px solid #47678b;border-radius:8px;background:#152f50;padding:12px;position:relative}.team{display:flex;justify-content:space-between;gap:10px;padding:9px 4px;font-weight:bold;font-size:14px}.team+.team{border-top:1px solid #385575}.seed{color:#aebfd3;margin-right:6px}.score{color:#2454ff}.meta{font-size:11px;color:#b9c9dc;padding-top:8px}.footer-note{color:#9bb1cd;font-size:13px;margin-top:20px}@media(max-width:600px){.top{padding:16px}.brand{font-size:14px}.board-head{padding:18px}.season{display:none}}.team.winner{background:rgba(36,84,255,.16);border-radius:4px}.helmet{width:30px;height:30px;object-fit:contain;flex:none}.game-status{color:#6fa4ff;font-size:11px;font-weight:800;padding:4px}.team span.score{margin-left:auto}

.bracket:has(.graphic-frame){display:block}.graphic-frame{max-width:1050px;margin:0 auto;text-align:center}.bracket-graphic{display:block;width:100%;height:auto;object-fit:contain;border-radius:8px}.graphic-open{display:inline-block;margin:14px auto 8px;color:#69b6ff;font-weight:700;text-decoration:underline}.live-heading{margin:30px 0 14px;color:#8bc2ff}.bracket:has(.graphic-frame) .round{display:inline-flex;vertical-align:top;margin:0 18px 20px 0}

/* V284: responsive native bracket columns */
.bracket{display:flex;gap:38px;align-items:stretch;min-width:max-content;padding:10px 0 20px}.round{min-width:260px;width:260px;justify-content:space-around;gap:20px}.round h3{color:#43a8ff;text-transform:uppercase;font-size:15px;position:sticky;top:0;background:#10223c;padding:12px 0;z-index:2}.match{min-height:118px;border:1px solid #456e98;border-left:3px solid #2799ff;background:#0b1c32;border-radius:9px;padding:10px;box-shadow:0 4px 16px #0002}.team{min-height:42px;align-items:center;justify-content:flex-start}.team>span:not(.score){flex:1}.team .record{display:block;color:#51aaff;font-size:11px;margin-top:4px}.helmet{width:38px;height:38px;object-fit:contain}.meta{color:#bad5ed}.score{font-size:18px;font-weight:900}.round:not(:last-child) .match:after{content:'';position:absolute;right:-39px;top:50%;width:38px;border-top:2px solid #7b9bbd}.bracket-scroll{scrollbar-color:#299bff #10223c}.footer-note{line-height:1.6}@media(max-width:650px){.round{min-width:230px;width:230px}.bracket-scroll{padding:12px}.board-head{flex-wrap:wrap}}

/* V285: District 11 6A native connected bracket */
.bracket:has(.d11-stage){display:block;min-width:1150px;padding:0;}
.d11-stage{position:relative;width:1150px;height:940px;background:#07111f;border-radius:10px;}
.d11-label{position:absolute;top:18px;width:324px;text-align:center;color:#fff;display:grid;gap:5px;letter-spacing:.06em;font-size:17px;}
.d11-label small{color:#38a1ff;font-weight:800;font-size:13px;}
.d11-lines{position:absolute;inset:0;width:1150px;height:940px;pointer-events:none;}
.d11-match{position:absolute;width:324px;min-height:96px;background:#10233b;border:1px solid #3b6186;border-left:3px solid #2598ff;border-radius:8px;overflow:hidden;z-index:1;}
.d11-team{height:47px;display:flex;align-items:center;gap:10px;padding:4px 10px;font-size:13px;font-weight:800;white-space:nowrap;}
.d11-team+.d11-team{border-top:1px solid #395573;}
.d11-team .helmet{width:37px;height:37px;object-fit:contain;}
.d11-team-name{min-width:0;overflow:hidden;text-overflow:ellipsis;flex:1;}
.d11-team .record{display:block;color:#42a4ff;font-size:11px;margin-top:2px;}
.d11-placeholder{width:37px;flex:none;}
.d11-champion{position:absolute;left:842px;top:565px;width:305px;text-align:center;color:#fff;border:2px solid #299cff;border-radius:8px;padding:14px;font-weight:900;letter-spacing:.04em;}
.d11-stage .winner{background:#153c59;}

.d11-game-meta{font-size:10px;font-weight:800;color:#ffd34d;text-align:center;padding:4px 6px 6px;border-top:1px solid #395573;white-space:normal;}

/* District 1 6A: connected 16-team bracket */
.bracket:has(.d1-six-stage){min-width:1400px;}
.d1-six-stage{width:1400px;height:1380px;}
.d1-six-stage .d11-lines{width:1400px;height:1380px;}
.d1-six-stage .d11-match{width:332px;}
.d1-six-stage .d11-label{width:332px;}
.d1-six-note{position:absolute;bottom:18px;left:0;width:100%;text-align:center;color:#a9d9b8;font-size:13px;font-weight:800;letter-spacing:.04em;}

/* D1 4A two-round connected bracket */
.bracket:has(.d1-four-stage){min-width:900px;}
.d1-four-stage{width:900px;height:650px;}
.d1-four-stage .d11-lines{width:900px;height:650px;}
/* District 3 6A: connected four-round bracket matching the published graphic */
.bracket:has(.d3-six-stage){display:block;min-width:1360px;padding:0}
.d3-six-stage{position:relative;width:1340px;height:1160px;background:#07111f;border-radius:10px}
.d3-six-stage .d11-label{top:12px}
.d3-six-stage .d11-match{width:292px;min-height:115px;overflow:visible}
.d3-six-stage .d11-team{min-height:40px}
.d3-six-stage .d11-game-meta{font-size:11px;line-height:1.4;white-space:normal}
.d3-six-stage .d3-site{font-size:10px;color:#b7d998;text-align:center;font-weight:700;padding:2px 7px 0}
.d3-six-stage .d11-lines{position:absolute;inset:0;width:1340px;height:1160px;pointer-events:none}
.d3-six-stage .d3-note{position:absolute;bottom:18px;width:100%;text-align:center;font-size:12px;color:#b8c6d8;font-weight:700}

/* V308: keep D3 6A connectors behind match cards, with consistent round geometry. */
.d3-six-stage .d11-lines{z-index:0}
.d3-six-stage .d11-match{z-index:1}
.d3-six-stage .d11-label{z-index:2}
.d3-six-stage .d11-team-name{white-space:normal;line-height:1.15}

/* District 12 6A: compact three-round league-to-district bracket */
.d3-six-stage:has(.d11-match[style*="872px"]){height:770px}

.bracket:has(.d1-one-stage){display:block;min-width:970px;padding:0}
.d1-one-stage{width:950px;height:760px;background:#07111f}
.d1-one-stage .d11-lines{width:950px;height:760px;z-index:0}
.d1-one-stage .d11-match{width:324px;min-height:130px;z-index:1;overflow:visible}
.d1-one-stage .d11-label{z-index:2}
.d1-one-stage .d11-team-name{white-space:normal}
.d1-one-note{position:absolute;bottom:20px;width:100%;text-align:center;font-size:12px;color:#b8c6d8;font-weight:700}

/* V330: consistent disclaimer visible beneath every district/class bracket. */
.bracket-change-disclaimer{margin:16px 18px 20px;padding:11px 14px;border:1px solid #37526b;border-radius:8px;background:#0d2034;color:#d9e6f3;text-align:center;font-size:13px;font-weight:700;line-height:1.5}

/* V342: discreet bracket correction contact beneath the date/location disclaimer. */
.bracket-correction{margin:0 18px 22px;padding:14px 16px;display:flex;align-items:center;justify-content:space-between;gap:16px;border:1px solid #294b6b;border-radius:9px;background:#0b1b30;color:#f4f7ff}
.bracket-correction-copy{display:flex;flex-direction:column;gap:5px}
.bracket-correction-copy strong{font-size:14px}
.bracket-correction-copy span{font-size:12px;line-height:1.5;color:#a9bdd8}
.bracket-correction-button{display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;padding:11px 15px;border-radius:7px;background:#2364c8;color:#fff;text-decoration:none;font-weight:700;font-size:13px;transition:background .15s ease}
.bracket-correction-button:hover,.bracket-correction-button:focus-visible{background:#347ce8;color:#fff}
@media(max-width:580px){.bracket-correction{flex-direction:column;align-items:stretch}.bracket-correction-button{width:100%;box-sizing:border-box}}
