/* =====================================================================
   CAPTAINS' CUP — page styles. Uses the site tokens (--gold, --panel, --line…)
   so it follows the Gold and Neon themes. Class prefix "cc-" (never "ad-").
   ===================================================================== */
#captainscup .cc-loading,#captainscup .cc-empty{padding:40px 16px; text-align:center; color:var(--muted); font-family:'Manrope',sans-serif;}
#ccRoot{font-family:'Manrope',sans-serif; color:var(--text); max-width:1080px; margin:0 auto;}
#ccRoot *{box-sizing:border-box;}
.cc-muted{color:var(--muted); font-size:13px;} .cc-center{text-align:center;}

/* status pill */
.cc-pill{display:inline-flex; align-items:center; gap:7px; height:30px; padding:0 14px; border-radius:999px; font-size:12px; font-weight:800; white-space:nowrap;
  color:var(--gold); background:rgba(var(--gold-rgb),.12); border:1px solid rgba(var(--gold-rgb),.35);}
.cc-pill i{width:8px; height:8px; border-radius:50%; background:#3be88a; box-shadow:0 0 8px #3be88a; animation:onlinePulse 1.6s ease-in-out infinite;}
.cc-pill.is-soon{color:var(--muted); background:rgba(255,255,255,.05); border-color:var(--line);}
.cc-pill.is-draft{color:#3be88a; background:rgba(59,232,138,.1); border-color:rgba(59,232,138,.4);}
.cc-pill.is-finished{color:var(--on-gold); background:linear-gradient(135deg,var(--gold-hover),var(--gold)); border-color:transparent;}

/* notice + admin bar */
.cc-notice{margin:0 0 16px; padding:12px 14px; border-radius:12px; font-size:13px; line-height:1.55; color:var(--text);
  background:rgba(var(--gold-rgb),.08); border:1px dashed rgba(var(--gold-rgb),.5);}
.cc-notice code{padding:1px 6px; border-radius:6px; background:rgba(0,0,0,.3); color:var(--gold); font-size:12px;}
.cc-admin{display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin:0 0 16px; padding:10px 12px; border-radius:14px;
  background:rgba(0,0,0,.2); border:1px solid rgba(var(--gold-rgb),.2);}
.cc-admin > span{font-size:11px; font-weight:800; color:var(--gold); padding:3px 9px; border-radius:999px; background:rgba(var(--gold-rgb),.12); margin-right:4px;}

/* buttons */
.cc-btn{all:unset; box-sizing:border-box; cursor:pointer; display:inline-flex; align-items:center; justify-content:center; gap:7px; height:38px; padding:0 16px; border-radius:10px;
  border:1px solid var(--line); color:var(--text); background:rgba(0,0,0,.16); font-family:'Manrope',sans-serif; font-size:13px; font-weight:700; transition:all .15s; white-space:nowrap;}
.cc-btn:hover{border-color:rgba(var(--gold-rgb),.6); color:var(--gold); background:rgba(var(--gold-rgb),.08);}
.cc-btn:focus-visible,.cc-tab:focus-visible,.cc-day:focus-visible,.cc-seg button:focus-visible{outline:2px solid var(--gold); outline-offset:2px;}
.cc-btn.is-primary{color:var(--on-gold); border-color:transparent; background:linear-gradient(135deg,var(--gold-hover),var(--gold));}
.cc-btn.is-primary:hover{color:var(--on-gold); filter:brightness(1.08);}
.cc-btn.is-danger{color:#ff8a93; border-color:rgba(var(--red-rgb),.4);} .cc-btn.is-danger:hover{color:#fff; background:var(--red); border-color:var(--red);}
.cc-btn.is-sm{height:30px; padding:0 12px; font-size:12px; border-radius:9px;}
.cc-btn:disabled{opacity:.45; cursor:not-allowed; pointer-events:none;}

/* empty / hero */
.cc-hero{position:relative; overflow:hidden; text-align:center; padding:38px 20px 32px; border-radius:20px; margin-bottom:26px;
  background:radial-gradient(80% 90% at 50% 0%, rgba(var(--gold-rgb),.16), transparent 70%), linear-gradient(180deg, rgba(var(--gold-rgb),.06), rgba(var(--gold-rgb),.01));
  border:1px solid rgba(var(--gold-rgb),.25);}
/* thin dual-tone hairline ties this card back to the eNation × Elite collab above */
.cc-hero::before{content:""; position:absolute; top:0; left:10%; right:10%; height:2px;
  background:linear-gradient(90deg, transparent, var(--gold) 35%, #8f7bff 65%, transparent); opacity:.85;}
.cc-hero-ico{position:relative; width:68px; height:68px; margin:0 auto 14px; display:grid; place-items:center; color:var(--on-gold); background:linear-gradient(135deg,var(--gold-hover),var(--gold));
  clip-path:polygon(12px 0,100% 0,calc(100% - 12px) 100%,0 100%); filter:drop-shadow(0 0 14px rgba(var(--gold-rgb),.5));}
.cc-hero-ico::after{content:""; position:absolute; inset:-10px; border-radius:50%; border:1px dashed rgba(var(--gold-rgb),.35); animation:ccHeroRing 16s linear infinite;}
@keyframes ccHeroRing{ to{ transform:rotate(360deg); } }
.cc-hero-ico svg{width:32px; height:32px;}
.cc-hero h3{margin:0; font-family:'Teko',sans-serif; font-size:42px; font-weight:600; letter-spacing:.03em; line-height:1;}
.cc-hero p{margin:10px auto 14px; max-width:520px; font-size:14.5px; line-height:1.6; color:var(--muted);}
.cc-hero-actions{margin-top:18px;}

/* roadmap: four steps joined by a connecting line, like a tournament path */
.cc-steps{position:relative; display:grid; grid-template-columns:repeat(4,1fr); gap:12px; counter-reset:ccstep;}
.cc-steps::before{content:""; position:absolute; top:33px; left:calc(12.5% + 6px); right:calc(12.5% + 6px); height:2px;
  background:repeating-linear-gradient(90deg, rgba(var(--gold-rgb),.4) 0 10px, transparent 10px 18px); z-index:0;}
.cc-step{position:relative; z-index:1; padding:20px 16px 16px; border-radius:16px; border:1px solid rgba(var(--gold-rgb),.14);
  background:linear-gradient(180deg, rgba(var(--gold-rgb),.05), rgba(var(--gold-rgb),.012)); transition:transform .2s, border-color .2s, box-shadow .2s;}
.cc-step:hover{transform:translateY(-3px); border-color:rgba(var(--gold-rgb),.4); box-shadow:0 16px 32px -20px rgba(var(--gold-rgb),.7);}
.cc-step-n{position:absolute; top:-10px; left:50%; transform:translateX(-50%); width:26px; height:26px; display:grid; place-items:center;
  border-radius:50%; font-family:'Teko',sans-serif; font-size:16px; font-weight:600; letter-spacing:0; line-height:1;
  color:var(--on-gold); background:linear-gradient(135deg,var(--gold-hover),var(--gold)); box-shadow:0 0 0 4px var(--panel), 0 4px 12px -2px rgba(var(--gold-rgb),.6);}
.cc-step-ico{display:grid; place-items:center; width:38px; height:38px; margin:8px auto 10px; border-radius:11px; color:var(--gold); background:rgba(var(--gold-rgb),.1); border:1px solid rgba(var(--gold-rgb),.25);}
.cc-step-ico svg{width:20px; height:20px;}
.cc-step{text-align:center;}
.cc-step b{display:block; font-size:14px; margin-bottom:5px;} .cc-step p{margin:0; font-size:12.5px; line-height:1.55; color:var(--muted);}
@media (prefers-reduced-motion:reduce){ .cc-hero-ico::after{animation:none;} .cc-step{transition:none;} }

/* header + champion */
.cc-head{display:flex; align-items:center; justify-content:space-between; gap:14px; flex-wrap:wrap; margin-bottom:16px;}
.cc-head h3{margin:0; font-family:'Teko',sans-serif; font-size:36px; font-weight:600; letter-spacing:.03em; line-height:1;}
.cc-head p{margin:6px 0 0; font-size:13.5px; color:var(--muted);}
.cc-champ{display:flex; align-items:center; gap:16px; margin:0 0 18px; padding:18px 20px; border-radius:18px; border:1px solid var(--sq); position:relative; overflow:hidden;
  background:linear-gradient(135deg, color-mix(in srgb, var(--sq) 22%, transparent), rgba(0,0,0,.2)); box-shadow:0 18px 40px -22px var(--sq);}
.cc-champ-ico{flex:none; width:56px; height:56px; display:grid; place-items:center; border-radius:16px; color:#14110a; background:var(--sq); filter:drop-shadow(0 0 14px var(--sq));}
.cc-champ-ico svg{width:30px; height:30px;}
.cc-champ small{display:block; font-size:11.5px; font-weight:800; color:var(--sq); margin-bottom:2px;}
.cc-champ b{display:block; font-family:'Teko',sans-serif; font-size:32px; font-weight:600; line-height:1.05; letter-spacing:.02em;}
.cc-champ span{display:block; margin-top:3px; font-size:12.5px; color:var(--muted);}

/* tabs */
.cc-tabs{display:flex; gap:6px; flex-wrap:wrap; margin:0 0 18px; padding:5px; border-radius:14px; background:rgba(0,0,0,.2); border:1px solid var(--line); width:fit-content; max-width:100%;}
.cc-tab{all:unset; box-sizing:border-box; cursor:pointer; display:inline-flex; align-items:center; gap:8px; height:36px; padding:0 14px; border-radius:10px; font-size:13px; font-weight:700; color:var(--muted); transition:all .15s;}
.cc-tab svg{width:16px; height:16px;}
.cc-tab:hover{color:var(--text);}
.cc-tab[aria-selected="true"]{color:var(--on-gold); background:linear-gradient(135deg,var(--gold-hover),var(--gold));}

/* squad chip */
.cc-sq{display:inline-flex; align-items:center; gap:8px; min-width:0; max-width:100%;}
.cc-sq i{flex:none; width:10px; height:10px; border-radius:3px; background:var(--sq); box-shadow:0 0 10px var(--sq);}
.cc-sq b{font-weight:800; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;}
.cc-sq.is-big b{font-size:15px;} .cc-sq.is-tbd{color:var(--muted); font-weight:700;}

/* avatars */
.cc-av{flex:none !important; width:30px; height:30px; border-radius:9px; overflow:hidden; display:grid; place-items:center; font-family:'Teko',sans-serif; font-size:17px; font-weight:600; color:var(--gold);
  background:rgba(var(--gold-rgb),.14); border:1px solid rgba(var(--gold-rgb),.28);}
.cc-av img{width:100%; height:100%; object-fit:cover; display:block;}

/* draft */
.cc-clock{display:flex; align-items:center; gap:16px; padding:16px 18px; margin-bottom:16px; border-radius:16px; border:1px solid var(--sq);
  background:linear-gradient(135deg, color-mix(in srgb, var(--sq) 20%, transparent), rgba(0,0,0,.18));}
.cc-clock.is-done{--sq:var(--gold); border-color:rgba(var(--gold-rgb),.4); background:rgba(var(--gold-rgb),.07);}
.cc-clock-dot{flex:none; width:14px; height:14px; border-radius:50%; background:var(--sq); box-shadow:0 0 0 0 var(--sq); animation:ccPulse 1.6s ease-out infinite;}
@keyframes ccPulse{0%{box-shadow:0 0 0 0 color-mix(in srgb, var(--sq) 70%, transparent);} 100%{box-shadow:0 0 0 14px transparent;}}
.cc-clock small{display:block; font-size:11.5px; font-weight:800; color:var(--muted);} .cc-clock b{display:block; font-family:'Teko',sans-serif; font-size:30px; font-weight:600; line-height:1.1; color:var(--text);}
.cc-clock span{font-size:12.5px; color:var(--muted);}
.cc-squads{display:grid; grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); gap:12px;}
.cc-squad{padding:14px; border-radius:16px; border:1px solid color-mix(in srgb, var(--sq) 35%, var(--line)); background:linear-gradient(180deg, color-mix(in srgb, var(--sq) 10%, transparent), rgba(0,0,0,.14)); transition:box-shadow .2s, transform .2s;}
.cc-squad.is-turn{border-color:var(--sq); box-shadow:0 0 0 1px var(--sq), 0 16px 36px -20px var(--sq); transform:translateY(-2px);}
.cc-squad.is-champ{border-color:var(--sq); box-shadow:0 0 0 1px var(--sq), 0 16px 36px -20px var(--sq);}
.cc-squad-h{display:flex; align-items:center; gap:9px; margin-bottom:10px;} .cc-squad-h i{flex:none; width:12px; height:12px; border-radius:4px; background:var(--sq); box-shadow:0 0 10px var(--sq);}
.cc-squad-h b{flex:1; min-width:0; font-size:14.5px; font-weight:800; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;}
.cc-squad-stats{display:flex; gap:14px; margin:-2px 0 10px; font-size:12px; color:var(--muted);} .cc-squad-stats b{color:var(--text);}
.cc-squad ul{list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:6px;}
.cc-squad li{display:flex; align-items:center; gap:9px; padding:5px 8px 5px 5px; border-radius:10px; background:rgba(255,255,255,.04); font-size:13px; font-weight:600;}
.cc-squad li > span:not(.cc-av){flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;}
.cc-squad li em{font-style:normal; font-size:10.5px; font-weight:800; padding:2px 7px; border-radius:999px; color:var(--sq); border:1px solid var(--sq);}
.cc-squad li.is-empty{background:transparent; border:1px dashed var(--line); color:var(--muted);} .cc-squad li.is-empty .cc-av{background:transparent; border-style:dashed;}
.cc-two{display:grid; grid-template-columns:1.5fr 1fr; gap:16px; margin-top:16px; align-items:start;}
.cc-pool,.cc-log{padding:16px; border-radius:16px; border:1px solid rgba(var(--gold-rgb),.14); background:rgba(0,0,0,.14);}
.cc-pool-h{display:flex; align-items:center; justify-content:space-between; gap:10px; flex-wrap:wrap; margin-bottom:12px;}
.cc-pool-h b{font-size:14px;} .cc-pool-h b span{margin-left:6px; font-size:11.5px; padding:2px 8px; border-radius:999px; color:var(--gold); background:rgba(var(--gold-rgb),.12);}
.cc-search{box-sizing:border-box; height:36px; width:200px; max-width:100%; padding:0 12px; border-radius:10px; border:1px solid var(--line); background:rgba(0,0,0,.22); color:var(--text); font-family:'Manrope',sans-serif; font-size:13px; text-transform:none; letter-spacing:normal;}
.cc-search:focus{outline:none; border-color:rgba(var(--gold-rgb),.7); box-shadow:0 0 0 3px rgba(var(--gold-rgb),.14);}
.cc-pool-grid{display:grid; grid-template-columns:repeat(auto-fill,minmax(210px,1fr)); gap:8px; max-height:460px; overflow-y:auto; padding-right:4px; scrollbar-width:thin; scrollbar-color:rgba(var(--gold-rgb),.3) transparent;}
.cc-pp{display:flex; align-items:center; gap:9px; padding:7px 8px; border-radius:11px; border:1px solid var(--line); background:rgba(255,255,255,.03); font-size:13px; font-weight:600;}
.cc-pp > span:not(.cc-av){flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;}
.cc-log b{font-size:14px;} .cc-log-row{display:flex; align-items:center; gap:9px; margin-top:10px; font-size:12.5px; color:var(--muted);} .cc-log-row b{color:var(--text); font-size:13px;}
.cc-log-n{flex:none; min-width:30px; font-family:'Teko',sans-serif; font-size:18px; color:var(--gold);}

/* table */
.cc-table-wrap{overflow-x:auto; border-radius:16px; border:1px solid rgba(var(--gold-rgb),.16);}
.cc-table{width:100%; border-collapse:collapse; min-width:560px; font-size:13.5px;}
.cc-table th{padding:11px 10px; text-align:center; font-size:11.5px; font-weight:800; color:var(--muted); background:rgba(0,0,0,.25); text-transform:none; letter-spacing:normal;}
.cc-table td{padding:11px 10px; text-align:center; border-top:1px solid rgba(255,255,255,.05); font-weight:600;}
.cc-table .l{text-align:left;} .cc-table td b{color:var(--gold); font-size:15px;}
.cc-table tr.is-q td:first-child{box-shadow:inset 3px 0 0 var(--gold); color:var(--gold);}
.cc-table tbody tr:hover{background:rgba(var(--gold-rgb),.05);}
.cc-legend{display:flex; align-items:center; gap:8px; margin:12px 4px 0; font-size:12px; color:var(--muted);} .cc-legend i{width:3px; height:14px; background:var(--gold); border-radius:2px;}

/* fixtures + ties */
.cc-days{display:flex; gap:6px; flex-wrap:wrap; margin-bottom:16px;}
.cc-day{all:unset; box-sizing:border-box; cursor:pointer; height:34px; padding:0 14px; border-radius:999px; border:1px solid var(--line); color:var(--muted); font-size:12.5px; font-weight:800; transition:all .15s;}
.cc-day:hover{color:var(--text); border-color:rgba(var(--gold-rgb),.5);} .cc-day.is-done::after{content:"  ✓"; color:#3be88a;}
.cc-day[aria-pressed="true"]{color:var(--on-gold); background:linear-gradient(135deg,var(--gold-hover),var(--gold)); border-color:transparent;}
.cc-sub{margin:20px 0 10px; font-family:'Teko',sans-serif; font-size:24px; font-weight:600; letter-spacing:.04em;}
.cc-ties{display:grid; grid-template-columns:repeat(auto-fill,minmax(330px,1fr)); gap:14px;} .cc-ties.is-final{grid-template-columns:minmax(0,520px);}
.cc-tie{padding:14px 16px 12px; border-radius:18px; border:1px solid rgba(var(--gold-rgb),.16); background:linear-gradient(180deg, rgba(var(--gold-rgb),.06), rgba(var(--gold-rgb),.012));}
.cc-tie.is-done{border-color:rgba(var(--gold-rgb),.34);} .cc-tie.is-tbd{opacity:.7;}
.cc-tie header{display:flex; align-items:center; justify-content:space-between; font-size:11.5px; font-weight:800; color:var(--muted); margin-bottom:10px;}
.cc-tie header em{font-style:normal; padding:2px 9px; border-radius:999px; border:1px solid var(--line);}
.cc-tie.is-done header em{color:#3be88a; border-color:rgba(59,232,138,.4);}
.cc-tie-top{display:grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:10px;}
.cc-tie-sq{min-width:0;} .cc-tie-sq.b{text-align:right;} .cc-tie-sq.b .cc-sq{flex-direction:row-reverse;}
.cc-tie-score{display:flex; align-items:center; gap:8px; font-family:'Teko',sans-serif; font-size:34px; font-weight:600; line-height:1;}
.cc-tie-score i{font-style:normal; color:var(--muted); font-size:22px;}
.cc-tie-score.a b:first-child,.cc-tie-score.b b:last-child{color:var(--gold);}
.cc-games{margin-top:12px; display:flex; flex-direction:column; gap:5px;}
.cc-game{display:grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:8px; padding:6px 10px; border-radius:9px; background:rgba(255,255,255,.035); font-size:12.5px; font-weight:600;}
.cc-game .b{text-align:right;} .cc-gp{min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;}
.cc-gs{display:flex; align-items:center; gap:5px; font-family:'Teko',sans-serif; font-size:19px; font-weight:600; min-width:50px; justify-content:center;} .cc-gs i{font-style:normal; color:var(--muted);}
.cc-game.wa .a,.cc-game.wb .b{color:var(--gold); font-weight:800;} .cc-game.is-dec{border:1px dashed rgba(var(--gold-rgb),.45); background:rgba(var(--gold-rgb),.06);}
.cc-tie .cc-tie-foot{margin-top:12px; display:flex; justify-content:flex-end; padding:0; border:0; background:none;}

/* setup modal */
.cc-setup-list{max-height:300px; overflow-y:auto; margin-top:8px; display:flex; flex-direction:column; gap:6px; padding-right:4px; scrollbar-width:thin;}
.cc-setup-row{display:flex; align-items:center; gap:10px; padding:6px 8px; border-radius:11px; border:1px solid var(--line); background:rgba(255,255,255,.03); font-size:13px; font-weight:600;}
.cc-setup-row > span:nth-child(2){flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;}
.cc-seg{display:flex; padding:3px; border-radius:9px; background:rgba(0,0,0,.25); border:1px solid var(--line);}
.cm-skin .cm-body .cc-seg button{all:unset; box-sizing:border-box; cursor:pointer; height:26px; padding:0 10px; border-radius:7px; font-family:'Manrope',sans-serif; font-size:12px; font-weight:800; color:var(--muted);}
.cm-skin .cm-body .cc-seg button[aria-pressed="true"]{color:var(--on-gold); background:linear-gradient(135deg,var(--gold-hover),var(--gold));}
.cm-skin .cm-body .cc-seg button[data-r="o"][aria-pressed="true"]{color:var(--text); background:rgba(255,255,255,.12);}
.cc-setup-sum{display:flex; flex-direction:column; gap:3px; margin-top:12px; padding:10px 12px; border-radius:10px; background:rgba(0,0,0,.2); font-size:13px;}
.cc-setup-sum .ok{color:#3be88a; font-weight:700;} .cc-setup-sum .bad{color:#ff8a93; font-weight:700;}
#ccSetupOverlay .cm-modal{max-width:620px;} #ccTieOverlay .cm-modal{max-width:680px;}

/* tie editor */
.cc-edit-help{font-size:12.5px; line-height:1.55; color:var(--muted); margin:0 0 10px;}
.cc-edit-head{display:flex; justify-content:space-between; gap:10px; margin:6px 0 8px; font-size:13px;}
.cc-edit-row{display:grid; grid-template-columns:56px 1fr 56px 10px 56px 1fr; align-items:center; gap:6px; margin-bottom:8px; font-size:12px; font-weight:700;}
.cm-skin .cm-body .cc-edit-row select{min-height:38px; padding:0 26px 0 9px; font-size:12.5px; background-position:right 8px center;}
.cm-skin .cm-body .cc-edit-row input{min-height:38px; padding:0 4px; text-align:center; font-size:16px; font-weight:800; width:100%;}
.cc-edit-row b{text-align:center; color:var(--muted);} .cc-edit-n{color:var(--muted); font-size:11.5px;}
.cc-edit-dec{margin-top:14px; padding-top:12px; border-top:1px solid rgba(var(--gold-rgb),.12);} .cc-edit-dec small{display:block; color:var(--muted); margin:2px 0 8px; font-size:12px;}

/* home banner */
.home-cup{position:relative; z-index:1; order:8; width:100%; max-width:980px; margin-top:34px; display:flex; align-items:center; gap:14px; padding:14px 18px; border-radius:16px; text-decoration:none; color:var(--text); text-align:left;
  font-family:'Manrope',sans-serif; border:1px solid rgba(var(--gold-rgb),.4); background:linear-gradient(100deg, rgba(var(--gold-rgb),.16), rgba(var(--gold-rgb),.04)); transition:transform .2s, box-shadow .2s;}
.home-cup:hover{transform:translateY(-2px); box-shadow:0 18px 36px -22px rgba(var(--gold-rgb),.9);}
.home-cup:focus-visible{outline:2px solid var(--gold); outline-offset:3px;}
.home-cup .hc-ico{flex:none; width:46px; height:46px; display:grid; place-items:center; color:var(--on-gold); background:linear-gradient(135deg,var(--gold-hover),var(--gold)); clip-path:polygon(9px 0,100% 0,calc(100% - 9px) 100%,0 100%);}
.home-cup .hc-ico svg{width:24px; height:24px;}
.home-cup .hc-txt{flex:1; min-width:0; display:flex; flex-direction:column; gap:2px;} .home-cup .hc-txt b{font-family:'Teko',sans-serif; font-size:24px; font-weight:600; letter-spacing:.03em; line-height:1.1;}
.home-cup .hc-txt span{font-size:12.5px; color:var(--muted);}
@media (max-width:900px){ .cc-steps{grid-template-columns:1fr 1fr; row-gap:22px;} .cc-steps::before{display:none;} .cc-two{grid-template-columns:1fr;} }
@media (max-width:560px){
  .cc-steps{grid-template-columns:1fr;} .cc-ties{grid-template-columns:1fr;} .cc-tie-top{grid-template-columns:1fr; text-align:center;} .cc-tie-sq.b{text-align:center;}
  .cc-tie-sq,.cc-tie-sq.b{display:flex; justify-content:center;} .cc-tie-sq.b .cc-sq{flex-direction:row;} .cc-tie-score{justify-content:center;}
  .cc-hero h3{font-size:34px;} .cc-edit-row{grid-template-columns:1fr 1fr 1fr 10px 1fr 1fr; } .cc-edit-n{display:none;}
  .home-cup{padding:12px 14px;} .home-cup .hc-pillwrap{display:none;}
}
@media (prefers-reduced-motion:reduce){ .cc-clock-dot,.cc-pill i{animation:none;} .cc-squad,.home-cup{transition:none;} }

/* long squad names wrap instead of being cut off */
.cc-tie-top{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);}
.cc-tie-sq .cc-sq b{white-space:normal; overflow:visible; text-overflow:clip; font-size:13px; line-height:1.2; overflow-wrap:anywhere;}
.cc-tie-score{font-size:30px;}

/* ===== squad invites ===== */
.cc-clock.is-invite{--sq:var(--gold); border-color:rgba(var(--gold-rgb),.45); background:linear-gradient(135deg, rgba(var(--gold-rgb),.14), rgba(0,0,0,.18)); flex-wrap:wrap;}
.cc-clock.is-invite > div{flex:1; min-width:200px;}
.cc-mine{margin:0 0 16px; padding:14px 16px; border-radius:16px; border:1px solid var(--sq); background:linear-gradient(135deg, color-mix(in srgb, var(--sq) 14%, transparent), rgba(0,0,0,.16));}
.cc-mine b{display:block; font-size:15px;} .cc-mine span{font-size:12.5px; color:var(--muted);}
.cc-pend{display:flex; flex-wrap:wrap; gap:8px; margin-top:10px;}
.cc-chip{display:inline-flex; align-items:center; gap:8px; padding:4px 6px 4px 5px; border-radius:999px; border:1px solid var(--line); background:rgba(255,255,255,.05); font-size:12.5px; font-weight:700; color:var(--text);}
.cc-chip .cc-av{width:24px; height:24px; border-radius:8px; font-size:14px;}
.cc-chip button,.cc-x{all:unset; box-sizing:border-box; cursor:pointer; width:22px; height:22px; display:grid; place-items:center; border-radius:50%; color:var(--muted); font-size:16px; line-height:1; transition:all .15s;}
.cc-chip button:hover,.cc-x:hover{color:#fff; background:var(--red);}
.cc-x{flex:none; margin-left:2px;}
.cc-sent{font-size:11.5px; font-weight:800; color:var(--gold); padding:3px 10px; border-radius:999px; background:rgba(var(--gold-rgb),.12);}
.cc-pp .cc-btn + .cc-btn{margin-left:4px;}

/* invite card (pops in with a sound) + inbox chip */
.cc-inv-stack{position:fixed; right:18px; bottom:18px; z-index:1450; display:flex; flex-direction:column; gap:10px; width:min(380px, calc(100vw - 28px)); pointer-events:none;}
.cc-inv{pointer-events:auto; display:grid; grid-template-columns:auto 1fr; gap:6px 12px; padding:14px; border-radius:16px; border:1px solid var(--sq); font-family:'Manrope',sans-serif; color:var(--text);
  background:linear-gradient(135deg, color-mix(in srgb, var(--sq) 22%, var(--panel-2)), var(--panel)); box-shadow:0 24px 50px -16px rgba(0,0,0,.85), 0 0 0 1px rgba(0,0,0,.35);
  opacity:0; transform:translateY(14px) scale(.97); transition:opacity .25s, transform .3s cubic-bezier(.2,.9,.25,1);}
.cc-inv.is-in{opacity:1; transform:none;}
.cc-inv-ico{width:42px; height:42px; display:grid; place-items:center; border-radius:12px; color:#14110a; background:var(--sq); filter:drop-shadow(0 0 10px var(--sq));} .cc-inv-ico svg{width:22px; height:22px;}
.cc-inv-txt small{display:block; font-size:11px; font-weight:800; color:var(--sq);} .cc-inv-txt b{display:block; font-family:'Teko',sans-serif; font-size:24px; font-weight:600; line-height:1.1;}
.cc-inv-txt span{font-size:12.5px; color:var(--muted); line-height:1.4;}
.cc-inv-actions{grid-column:1 / -1; display:flex; gap:8px; flex-wrap:wrap; margin-top:4px;}
.cc-inv-chip,.cc-inv-chip[hidden]{display:none;}
.cc-inv-chip:not([hidden]){display:inline-flex;}
.cc-inv-chip{position:fixed; left:18px; bottom:18px; z-index:1440; align-items:center; gap:9px; height:42px; padding:0 16px 0 12px; border-radius:999px; cursor:pointer;
  font-family:'Manrope',sans-serif; font-size:13px; font-weight:800; color:var(--on-gold); border:0; background:linear-gradient(135deg,var(--gold-hover),var(--gold)); box-shadow:0 14px 30px -12px rgba(var(--gold-rgb),.8); animation:ccChip 2.4s ease-in-out 3;}
.cc-inv-chip svg{width:18px; height:18px;} .cc-inv-chip b{min-width:22px; height:22px; padding:0 6px; display:grid; place-items:center; border-radius:999px; background:rgba(0,0,0,.2); font-size:12px;}
@keyframes ccChip{0%,100%{transform:translateY(0);} 50%{transform:translateY(-3px);}}
.cc-inv-panel{position:fixed; left:18px; bottom:72px; z-index:1445; display:flex; flex-direction:column; gap:10px; width:min(380px, calc(100vw - 28px)); max-height:60vh; overflow-y:auto;}
.cc-inv-panel[hidden]{display:none;}
.cc-inv.is-panel{opacity:1; transform:none;}
@media (max-width:900px){ .cc-inv-stack{bottom:96px;} .cc-inv-chip{bottom:96px;} .cc-inv-panel{bottom:150px;} }
@media (prefers-reduced-motion:reduce){ .cc-inv-chip{animation:none;} .cc-inv{transition:none;} }

/* admin: assign picker */
#ccAssignOverlay .cm-modal{max-width:440px;}
.cc-assign{display:flex; flex-direction:column; gap:8px; margin-top:6px;}
.cm-skin .cm-body .cc-assign-row{all:unset; box-sizing:border-box; cursor:pointer; display:flex; align-items:center; gap:10px; padding:11px 14px; border-radius:12px; border:1px solid color-mix(in srgb, var(--sq) 40%, var(--line)); background:rgba(255,255,255,.03); font-family:'Manrope',sans-serif; font-size:13.5px; font-weight:700; transition:all .15s;}
.cm-skin .cm-body .cc-assign-row i{width:11px; height:11px; border-radius:3px; background:var(--sq);} .cm-skin .cm-body .cc-assign-row b{flex:1;} .cm-skin .cm-body .cc-assign-row span{font-size:12px; color:var(--muted);}
.cm-skin .cm-body .cc-assign-row:hover:not(:disabled){border-color:var(--sq); background:color-mix(in srgb, var(--sq) 14%, transparent);} .cm-skin .cm-body .cc-assign-row:disabled{opacity:.45; cursor:not-allowed;}

/* =====================================================================
   VISUAL 1 — playoff bracket (re-uses the 1v1 bracket's bv-* styles from bracketview.css)
   ===================================================================== */
.cc-bk{width:100%; margin:0 0 6px;}
.cc-bk .bv-scroll{cursor:default; padding:0 12px;}
.cc-bk .bv-bar{margin:0 0 10px;}
.cc-bk-sizer{min-height:260px;}
.cc-bk .bv-name{display:flex; align-items:center; gap:7px;}
.cc-seed{flex:none; width:17px; height:17px; display:inline-grid; place-items:center; border-radius:5px; font-style:normal; font-family:'Teko',sans-serif; font-size:.95rem; line-height:1; color:var(--muted); background:rgba(var(--text-rgb),.08);}
.bv-row.is-win .cc-seed{color:var(--on-gold); background:var(--gold);}
.cc-bk .bv-card.is-final .bv-name{font-size:.95rem;}
.cc-bk-note{position:absolute; text-align:center; font-size:.72rem; font-weight:800; color:var(--gold);}
.cc-bk-stack .cc-bk-note{position:static; margin:-4px 0 12px;}
.cc-bk-stack{display:none;}
.cc-bk-stack .bv-card{position:relative; left:auto; top:auto; width:100%; height:88px; margin:0 0 12px;}
.cc-bk-stack .bv-card.is-final{height:96px;}
.cc-bk-stack-trophy{display:flex; flex-direction:column; align-items:center; gap:0; margin:6px 0 0;}
.cc-bk-stack .bv-medal{position:relative; margin:0 auto;}
.cc-bk-stack .bv-champ{position:relative; margin-top:-6px;}
.cc-bk-stack .bv-bo3{top:0;}
.cc-bk-stack.is-tracing .bv-card:not(.is-on){opacity:.3;}
.cc-sub-details{margin-top:26px;}
@media (max-width:640px){
  .cc-bk .bv-frame{display:none;}
  .cc-bk .bv-tools{display:none;}
  .cc-bk-stack{display:block;}
  .cc-bk .bv-hint{margin-top:2px;}
}
@keyframes ccFlash{0%,100%{box-shadow:0 0 0 0 transparent;} 50%{box-shadow:0 0 0 6px rgba(var(--gold-rgb),.35), 0 0 34px rgba(var(--gold-rgb),.55);}}
.cc-tie.is-flash{animation:ccFlash .9s ease-in-out 2; border-color:var(--gold);}
@media (prefers-reduced-motion:reduce){ .cc-tie.is-flash{animation:none;} }

/* =====================================================================
   VISUAL 2 — league: form dots + head-to-head results grid
   ===================================================================== */
.cc-table{min-width:660px;}
.cc-form{display:inline-flex; gap:4px; align-items:center; justify-content:center;}
.cc-form i{width:10px; height:10px; border-radius:50%; background:var(--muted); opacity:.9;}
.cc-form i.w{background:#3be88a; box-shadow:0 0 6px rgba(59,232,138,.6);}
.cc-form i.l{background:#ff6b73;}
.cc-form i.d{background:var(--muted);}
.cc-form.is-empty{color:var(--muted);}
.cc-grid-wrap{overflow-x:auto; border-radius:16px; border:1px solid rgba(var(--gold-rgb),.16); background:rgba(0,0,0,.14);}
.cc-grid{border-collapse:separate; border-spacing:4px; width:100%; min-width:max-content; font-family:'Manrope',sans-serif; font-size:12.5px;}
.cc-grid th,.cc-grid td{text-align:center; padding:0; font-weight:700;}
.cc-g-corner{min-width:150px; text-align:left !important; padding:6px 8px !important; font-size:11px; color:var(--muted); font-weight:800;}
.cc-g-col{min-width:68px; padding:6px 4px !important; font-size:11px; color:var(--muted); vertical-align:bottom;}
.cc-g-col i{display:block; height:3px; border-radius:2px; background:var(--sq); margin:0 6px 5px; box-shadow:0 0 8px var(--sq);}
.cc-g-col span{display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; max-width:72px; margin:0 auto;}
.cc-g-row{text-align:left !important; padding:0 10px 0 0 !important; white-space:nowrap; min-width:150px;}
.cc-g-row em{display:inline-grid; place-items:center; width:22px; height:22px; margin-right:8px; border-radius:7px; font-style:normal; font-family:'Teko',sans-serif; font-size:1rem; color:var(--gold); background:rgba(var(--gold-rgb),.12);}
.cc-g-row i{display:inline-block; width:9px; height:9px; margin-right:7px; border-radius:3px; background:var(--sq); box-shadow:0 0 8px var(--sq);}
.cc-g-row span{font-size:12.5px; color:var(--text);}
.cc-grid td{height:38px; border-radius:9px; background:rgba(255,255,255,.03);}
.cc-grid td button{all:unset; box-sizing:border-box; width:100%; height:100%; min-height:38px; display:grid; place-items:center; cursor:pointer; border-radius:9px; font-family:'Teko',sans-serif; font-size:1.2rem; font-weight:500; letter-spacing:.02em;}
.cc-grid td button:focus-visible{outline:2px solid var(--gold); outline-offset:-2px;}
.cc-grid td.g-win{background:linear-gradient(135deg, rgba(var(--gold-rgb),.34), rgba(var(--gold-rgb),.12)); color:var(--gold); box-shadow:inset 0 0 0 1px rgba(var(--gold-rgb),.45);}
.cc-grid td.g-loss{background:rgba(var(--red-rgb),.14); color:#ff9aa1; box-shadow:inset 0 0 0 1px rgba(var(--red-rgb),.3);}
.cc-grid td.g-draw{background:rgba(var(--text-rgb),.1); color:var(--text);}
.cc-grid td.g-live{background:rgba(var(--pitch-rgb),.2); color:var(--text); box-shadow:inset 0 0 0 1px rgba(var(--pitch-rgb),.55);}
.cc-grid td.g-todo{background:transparent; color:var(--muted); box-shadow:inset 0 0 0 1px var(--line);}
.cc-grid td.g-todo button{font-family:'Manrope',sans-serif; font-size:.68rem; font-weight:800; opacity:.8;}
.cc-grid td button:hover{filter:brightness(1.25);}
.cc-grid td.cc-g-self{background:repeating-linear-gradient(135deg, rgba(var(--text-rgb),.07) 0 4px, transparent 4px 9px);}
.cc-g-pts{min-width:52px;} .cc-g-pts b{font-family:'Teko',sans-serif; font-size:1.4rem; font-weight:600; color:var(--gold);}
.cc-grid-key{flex-wrap:wrap; gap:6px 14px;} .cc-grid-key .k{display:inline-block; width:14px; height:14px; border-radius:4px; margin-right:-6px;}
.cc-grid-key .k.win{background:rgba(var(--gold-rgb),.5);} .cc-grid-key .k.draw{background:rgba(var(--text-rgb),.25);} .cc-grid-key .k.loss{background:rgba(var(--red-rgb),.45);} .cc-grid-key .k.todo{border:1px solid var(--line);}

.cc-bk-stack .bv-hint{margin-top:18px;}
.cc-bk-stack-trophy .bv-champ{margin-top:-4px; margin-bottom:6px;}

/* ===== review fixes: tiebreak, walkover, substitution, level badge ===== */
.cc-lv{flex:none; font-style:normal; font-size:10.5px; font-weight:800; padding:2px 7px; border-radius:999px; color:var(--gold); background:rgba(var(--gold-rgb),.12); border:1px solid rgba(var(--gold-rgb),.25);}
.cc-pp .cc-lv{margin-left:auto;} .cc-pp .cc-lv + .cc-btn,.cc-pp .cc-lv + .cc-sent{margin-left:6px;}
.cc-edit-fo{display:flex; align-items:center; flex-wrap:wrap; gap:8px; margin:2px 0 12px; font-size:12px; font-weight:700; color:var(--muted);}
#ccTiebreakOverlay .cm-modal,#ccSubOverlay .cm-modal{max-width:480px;}
.cc-tb-group{display:flex; flex-direction:column; gap:6px; margin:10px 0 16px; padding:10px; border-radius:14px; border:1px dashed rgba(var(--gold-rgb),.4); background:rgba(var(--gold-rgb),.04);}
.cm-skin .cm-body .cc-tb-row{display:flex; align-items:center; gap:10px; padding:8px 10px; border-radius:11px; background:rgba(255,255,255,.04); font-family:'Manrope',sans-serif; font-size:13.5px;}
.cc-tb-row em{font-style:normal; font-family:'Teko',sans-serif; font-size:1.2rem; color:var(--gold); min-width:18px;} .cc-tb-row i{width:10px; height:10px; border-radius:3px; background:var(--sq);} .cc-tb-row b{flex:1;}
.cm-skin .cm-body .cc-tb-row button{all:unset; box-sizing:border-box; cursor:pointer; width:30px; height:30px; display:grid; place-items:center; border-radius:8px; border:1px solid var(--line); color:var(--text); font-size:12px;}
.cm-skin .cm-body .cc-tb-row button:hover:not(:disabled){border-color:var(--gold); color:var(--gold);} .cm-skin .cm-body .cc-tb-row button:disabled{opacity:.3; cursor:default;}
.cc-squad li .cc-x{margin-left:auto; font-size:13px;}
.cc-squad li .cc-x + em{margin-left:6px;}
