.cup-page{max-width:1440px;padding-top:32px}
.cup-shell{display:grid;gap:24px}
.cup-hero{position:relative;overflow:hidden;display:flex;justify-content:space-between;gap:24px;padding:30px;border:1px solid rgba(186,255,47,.32);border-radius:22px;background:radial-gradient(560px 280px at 85% 15%,rgba(186,255,47,.09),transparent 70%),linear-gradient(115deg,#102945 0%,#0a1b2e 62%,#071522 100%)}
.cup-hero:after{content:"";position:absolute;right:-90px;top:-150px;width:360px;height:360px;border:1px solid rgba(186,255,47,.1);border-radius:50%;box-shadow:0 0 0 45px rgba(186,255,47,.025),0 0 0 90px rgba(186,255,47,.016)}
.cup-hero-copy,.cup-hero-side{position:relative;z-index:1}
.cup-hero h2{margin:7px 0 8px;font-size:36px;letter-spacing:-1.2px}
.cup-hero p{max-width:720px;margin:0;color:#8fa8c0;font-size:13px;line-height:1.55}
.cup-hero-side{display:flex;flex-direction:column;align-items:flex-end;justify-content:space-between;min-width:240px}
.cup-gender-toggle{display:flex;gap:5px;padding:5px;border:1px solid #29415d;border-radius:14px;background:#081728}
.cup-gender-toggle button{border:0;border-radius:10px;background:transparent;color:#8fa8c0;padding:10px 16px;font-size:12px;font-weight:900;cursor:pointer}
.cup-gender-toggle button.active{background:var(--lime);color:#13200a}
.cup-source{color:#9ab1c8;font-size:10px;font-weight:800;text-align:right}
.cup-source a{display:block;margin-top:5px;color:var(--lime);text-decoration:none}
.cup-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.cup-stat{min-height:92px;padding:18px 20px;border:1px solid #29415d;border-radius:16px;background:#0d2036}
.cup-stat small{display:block;color:#6f8ead;font-size:9px;font-weight:950;letter-spacing:1.2px}
.cup-stat strong{display:block;margin:6px 0 2px;color:#f4f8fc;font-size:27px}
.cup-stat span{color:#7f9ab5;font-size:10px}
.cup-stat:first-child{border-color:rgba(186,255,47,.38);background:linear-gradient(135deg,rgba(186,255,47,.08),#0d2036)}
.cup-subtitle{display:flex;align-items:flex-end;justify-content:space-between;margin-bottom:14px}
.cup-subtitle span{color:var(--lime);font-size:9px;font-weight:950;letter-spacing:1px}
.cup-subtitle h3{margin:5px 0 0;font-size:23px}
.cup-subtitle small{color:#7893ad;font-size:10px;text-align:right}
.cup-qualifiers{padding:22px;border:1px solid #203854;border-radius:20px;background:rgba(10,27,46,.72)}
.cup-qualifier-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.cup-toolbar{display:flex;align-items:center;justify-content:space-between;gap:15px}
.cup-round-jumps{display:flex;gap:7px;overflow-x:auto;scrollbar-width:none}
.cup-round-jumps::-webkit-scrollbar{display:none}
.cup-round-jumps button,#cupRefresh{flex:0 0 auto;border:1px solid #29415d;border-radius:999px;background:#0c1c2f;color:#91a9c0;padding:9px 12px;font-size:10px;font-weight:850;cursor:pointer}
.cup-round-jumps button:hover,#cupRefresh:hover{border-color:var(--lime);color:var(--lime)}
.cup-load-state{display:flex;align-items:center;gap:10px;color:#7792ac;font-size:9px;white-space:nowrap}
.cup-load-state:before{content:"";width:7px;height:7px;border-radius:50%;background:var(--lime);box-shadow:0 0 0 3px rgba(186,255,47,.09)}
.cup-bracket{display:grid;grid-template-columns:repeat(4,minmax(235px,1fr));gap:16px;align-items:stretch;overflow-x:auto;padding:2px 2px 14px;scroll-snap-type:x proximity;scrollbar-color:#2d4865 transparent}
.cup-round{position:relative;display:flex;flex-direction:column;min-width:235px;scroll-snap-align:start}
.cup-round:not(:last-child):after{content:"";position:absolute;right:-16px;top:52px;bottom:10px;width:16px;background:linear-gradient(90deg,rgba(87,124,160,.36),rgba(87,124,160,0));clip-path:polygon(0 49%,65% 49%,65% 45%,100% 50%,65% 55%,65% 51%,0 51%)}
.cup-round-title{display:flex;align-items:flex-end;justify-content:space-between;min-height:43px;margin-bottom:10px;padding:0 3px 9px;border-bottom:1px solid #29415d}
.cup-round-title span{color:#e9f2fa;font-size:14px;font-weight:950}
.cup-round-title small{color:#6786a3;font-size:9px}
.cup-round-matches{display:flex;flex:1;flex-direction:column;justify-content:space-around;gap:12px}
.cup-match{position:relative;overflow:hidden;border:1px solid #29415d;border-radius:14px;background:linear-gradient(145deg,#102640,#0c1d31);box-shadow:0 8px 20px rgba(0,0,0,.12)}
.cup-match.waiting{border-color:#27415d}
.cup-match.in-progress{border-color:rgba(255,171,64,.56)}
.cup-match.completed{border-color:rgba(186,255,47,.55)}
.cup-match-head{display:flex;align-items:center;justify-content:space-between;padding:8px 10px;border-bottom:1px solid rgba(79,111,143,.32);background:rgba(5,17,31,.3)}
.cup-match-head span{color:#7898b5;font-size:8px;font-weight:900;letter-spacing:.45px;text-transform:uppercase}
.cup-match-head small{color:#516f8b;font-size:8px;font-weight:900}
.cup-team{display:grid;grid-template-columns:24px minmax(0,1fr) 24px;align-items:center;gap:7px;min-height:40px;padding:5px 10px;border-bottom:1px solid rgba(79,111,143,.18)}
.cup-team strong{min-width:0;color:#dce7f1;font-size:11px;line-height:1.15;overflow-wrap:anywhere}
.cup-team.pending strong{color:#6f89a3;font-style:italic;font-weight:700}
.cup-team.winner{background:rgba(186,255,47,.09)}
.cup-team.winner strong{color:var(--lime)}
.cup-seed{display:grid;place-items:center;width:22px;height:22px;border-radius:7px;background:#172f4b;color:#88a8c6;font-size:8px;font-weight:950}
.cup-team.winner .cup-seed{background:var(--lime);color:#142108}
.cup-score{color:#eff6fc;font-size:13px;font-weight:950;text-align:right}
.cup-match-status{padding:8px 10px;color:#708ca6;font-size:8px;font-weight:800}
.cup-match-status.dated{color:#a9c1d6}
.cup-legs{padding:6px 10px}
.cup-leg{display:flex;justify-content:space-between;gap:7px;padding:3px 0;color:#7691ab;font-size:8px}
.cup-leg b{color:#eaf2f8;font-size:10px}
.cup-leg.golden span,.cup-leg.golden b{color:#ffc857}
.cup-advanced{padding:7px 10px;background:rgba(186,255,47,.1);color:var(--lime);font-size:8px;font-weight:950}

@media(max-width:1050px){
  .cup-qualifier-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .cup-bracket{grid-template-columns:repeat(4,270px)}
}

@media(max-width:600px){
  .mainnav{grid-template-columns:repeat(5,minmax(0,1fr))}
  .navbtn{font-size:15px}
  .navbtn span{font-size:9px}
  .cup-page{padding-top:20px}
  .cup-shell{gap:16px}
  .cup-hero{display:block;padding:21px 18px;border-radius:17px}
  .cup-hero h2{font-size:29px}
  .cup-hero p{font-size:11px}
  .cup-hero-side{align-items:stretch;min-width:0;margin-top:18px}
  .cup-gender-toggle{width:100%}
  .cup-gender-toggle button{flex:1}
  .cup-source{text-align:left;margin-top:14px}
  .cup-stats{gap:7px}
  .cup-stat{min-height:82px;padding:13px 11px}
  .cup-stat small{font-size:7px;letter-spacing:.5px}
  .cup-stat strong{font-size:23px}
  .cup-stat span{font-size:8px}
  .cup-qualifiers{padding:16px 13px;border-radius:16px}
  .cup-subtitle{display:block}
  .cup-subtitle h3{font-size:21px}
  .cup-subtitle small{display:block;margin-top:6px;text-align:left}
  .cup-qualifier-grid{display:flex;gap:10px;overflow-x:auto;padding-bottom:5px;scroll-snap-type:x mandatory;scrollbar-width:none}
  .cup-qualifier-grid::-webkit-scrollbar{display:none}
  .cup-qualifier-grid .cup-match{flex:0 0 86%;scroll-snap-align:start}
  .cup-toolbar{align-items:flex-start;flex-direction:column}
  .cup-round-jumps{width:100%}
  .cup-load-state{width:100%;justify-content:space-between}
  .cup-bracket{width:calc(100vw - 28px);grid-template-columns:repeat(4,calc(100vw - 52px));gap:12px;overscroll-behavior-inline:contain;scroll-snap-type:x mandatory}
  .cup-round{min-width:0}
  .cup-round:not(:last-child):after{display:none}
  .cup-round-title{position:sticky;left:0}
  .cup-round-matches{justify-content:flex-start}
  .cup-match{border-radius:13px}
  .cup-team strong{font-size:11px}
}

@media(max-width:380px){
  .navbtn span{font-size:8px}
  .cup-stats{grid-template-columns:1fr 1fr}
  .cup-stat:last-child{grid-column:1/-1}
}
