/* (31 Oct 2026, night) leagues in Thaas's own look (js/league.js): shield crests in the league's colour, banners with the season's
   progress, Discover on the same page, a four-step setup with a live crest preview, a podium for the season's top three */
#leagueOv>.panel.league{max-width:min(1040px,100%); width:100%; max-height:calc(100dvh - 20px); overflow:auto; padding:14px 18px 18px}
.lgbar{display:flex; align-items:center; gap:12px; margin-bottom:6px}
.lgbar h2{margin:0; flex:1; min-width:0; font-size:28px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.lgback{width:40px; height:40px; flex:none; border-radius:50%; border:1px solid rgba(240,192,138,.4); background:rgba(0,0,0,.3); color:#f0c08a; font-size:20px; line-height:1; padding:0}
.lgtop{display:flex; gap:8px; flex-wrap:wrap; justify-content:flex-end} .lgtop .btn{width:auto; padding:10px 18px}
.lgsect{margin-top:14px} .lgsect h3{margin:0 0 8px; font-size:15px; color:#f0c08a; text-transform:none; letter-spacing:.02em; display:flex; align-items:baseline; gap:8px}
.lgsect h3 small{font-size:12px; color:var(--muted); font-weight:600}
/* the crest: a shield in the league's two colours with its initials */
.lgcrest{--ca:#16858c; --cb:#0b4f57; flex:none; width:44px; height:50px; display:grid; place-items:center; background:linear-gradient(160deg,var(--ca),var(--cb));
  clip-path:polygon(50% 0,100% 12%,100% 58%,50% 100%,0 58%,0 12%); box-shadow:inset 0 0 0 2px rgba(255,255,255,.2)}
.lgcrest b{color:#fff8e8; font-size:15px; letter-spacing:.04em; text-shadow:0 1px 2px rgba(0,0,0,.6); margin-top:-4px}
.lgcrest.big{width:62px; height:70px} .lgcrest.big b{font-size:21px}
/* your leagues */
.lgbanners{display:grid; grid-template-columns:repeat(auto-fill,minmax(290px,1fr)); gap:10px}
.lgbanner{display:flex; gap:14px; align-items:center; text-align:left; padding:14px; border-radius:16px; color:var(--cream); cursor:pointer;
  border:1px solid color-mix(in srgb,var(--ca) 60%,transparent); background:linear-gradient(120deg,color-mix(in srgb,var(--cb) 70%,#000) ,rgba(10,8,7,.85) 70%)}
.lgbinfo{display:grid; gap:4px; min-width:0; flex:1} .lgbinfo b{font-size:18px} .lgbinfo small{color:var(--muted); font-size:12px} .lgyou{color:#f3e2bf !important} .lgyou b{font-size:13px; color:#f0c08a}
.lgprog{display:block; height:6px; border-radius:6px; background:rgba(255,255,255,.1); overflow:hidden} .lgprog i{display:block; height:100%; background:linear-gradient(90deg,var(--ca,#16858c),#f0c08a)}
.lgempty{display:grid; gap:4px; padding:16px; border-radius:16px; border:1px dashed rgba(240,192,138,.4); background:rgba(211,154,94,.05)} .lgempty span{color:var(--muted); font-size:13px}
.lgpast{margin:10px 0 0; font-size:13px; color:#e9dcc0; line-height:1.7}
/* spotlight + discover */
.lgspot{display:grid; grid-template-columns:repeat(auto-fill,minmax(210px,1fr)); gap:10px}
.lgspotc{display:grid; justify-items:start; gap:6px; padding:14px; border-radius:16px; border:1px solid color-mix(in srgb,var(--ca) 55%,transparent); background:linear-gradient(160deg,color-mix(in srgb,var(--cb) 55%,#000),rgba(10,8,7,.85))}
.lgspotc small{color:var(--muted); font-size:12px} .lgspotc .btn{width:auto; padding:8px 14px}
.lgflag{font-style:normal; font-size:10.5px; font-weight:800; letter-spacing:.06em; padding:2px 8px; border-radius:999px; vertical-align:middle} .f-featured{background:#e7b54a; color:#1b1207} .f-event{background:#7fd3ff; color:#06202b}
.lgtools{display:flex; gap:8px; flex-wrap:wrap; margin-bottom:10px} .lgtools input,.lgtools select{padding:9px 12px; border-radius:12px; border:1px solid var(--line); background:rgba(0,0,0,.35); color:var(--cream)}
#lgSearch{flex:1; min-width:180px} .lgcodein{display:flex; gap:6px} .lgcodein input{width:120px; text-transform:uppercase; letter-spacing:.12em} .lgcodein .ghost{width:auto}
.lgfind{display:flex; align-items:center; gap:12px; padding:10px 12px; margin-bottom:6px; border-radius:14px; background:rgba(14,12,11,.6); border:1px solid rgba(251,247,239,.1)}
.lgmid{flex:1; min-width:0; display:grid; gap:2px} .lgmid b{font-size:16px} .lgmid small{color:var(--muted); font-size:12px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap} .lgfacts{color:#cdbb98 !important}
.lgfind .btn,.lgfind .ghost{width:auto; white-space:nowrap; padding:9px 14px} .lgfind em{color:var(--muted)}
/* the setup */
.lgsteps{display:flex; gap:6px; list-style:none; margin:6px 0 14px; padding:0; counter-reset:s}
.lgsteps li{flex:1; display:flex; align-items:center; gap:8px; padding:8px 10px; border-radius:12px; background:rgba(255,255,255,.04); color:var(--muted); font-size:13px; font-weight:700}
.lgsteps li i{width:24px; height:24px; flex:none; display:grid; place-items:center; border-radius:50%; border:1.5px solid currentColor; font-style:normal; font-size:12px}
.lgsteps li.on{color:#f0c08a; background:rgba(211,154,94,.12)} .lgsteps li.done{color:#9fe3b4}
.lgwiz{display:grid; grid-template-columns:1fr 220px; gap:16px; align-items:start}
.lgwizb{display:grid; gap:10px}
.lgfield{display:grid; gap:6px; font-size:13px; font-weight:800; color:#f3e2bf} .lgfield small{font-weight:500; color:var(--muted)}
.lgfield input{padding:11px 12px; border-radius:12px; border:1px solid var(--line); background:rgba(0,0,0,.35); color:var(--cream); font-size:15px; font-weight:400}
.lgswatch{display:flex; gap:10px; flex-wrap:wrap} .lgswatch button{width:44px; height:44px; border-radius:50%; padding:0; border:3px solid transparent; background:linear-gradient(160deg,var(--ca),var(--cb))}
.lgswatch button.on{border-color:#fff3d6; box-shadow:0 0 0 2px rgba(240,192,138,.6)}
.lgchoice{display:grid; grid-template-columns:1fr 1fr; gap:8px} .lgchoice.four{grid-template-columns:repeat(4,1fr)}
.lgchoice button,.lgseg button{display:grid; gap:3px; text-align:left; padding:12px; border-radius:14px; border:1px solid var(--line); background:rgba(0,0,0,.25); color:var(--cream)}
.lgchoice button small,.lgseg button small{color:var(--muted); font-size:11.5px; font-weight:500; line-height:1.35}
.lgchoice button.on,.lgseg button.on{border-color:#d39a5e; background:rgba(211,154,94,.12)} .lgseg button:disabled{opacity:.4}
.lgseg{display:flex; gap:8px; flex-wrap:wrap} .lgseg button{flex:1; min-width:96px; text-align:center}
.lgranges{display:grid; gap:10px; padding:12px; border-radius:14px; background:rgba(0,0,0,.25)} .lgranges label{display:grid; grid-template-columns:170px 1fr 70px; align-items:center; gap:10px; font-size:13px}
.lgranges input{accent-color:#d39a5e} .lgranges output{color:#f0c08a; font-weight:800}
.lgpreview{display:grid; justify-items:center; gap:6px; padding:18px 12px; border-radius:18px; text-align:center; position:sticky; top:0;
  border:1px solid color-mix(in srgb,var(--ca) 55%,transparent); background:radial-gradient(circle at 50% 0,color-mix(in srgb,var(--ca) 35%,transparent),rgba(10,8,7,.85) 70%)}
.lgpreview b{font-size:17px} .lgpreview small{color:var(--muted); font-size:12px}
.lgreview{display:flex; gap:14px; align-items:flex-start; padding:14px; border-radius:16px; background:rgba(255,255,255,.04)} .lgreview b{font-size:18px} .lgreview ul{margin:8px 0 0; padding-left:18px; color:#e9dcc0; font-size:13px; line-height:1.6}
.lgnav{display:flex; justify-content:space-between; gap:10px; margin-top:14px} .lgnav .btn,.lgnav .ghost{width:auto; padding:11px 22px}
/* a league's page */
.lghero{display:flex; gap:16px; align-items:center; padding:14px 16px; border-radius:18px; border:1px solid color-mix(in srgb,var(--ca) 55%,transparent);
  background:linear-gradient(120deg,color-mix(in srgb,var(--cb) 65%,#000),rgba(10,8,7,.85) 75%)}
.lghero>div{flex:1; display:grid; gap:6px} .lghero small{color:var(--muted); font-size:12.5px} .lghero p{margin:0; color:#f3e2bf} .lgcode{letter-spacing:.15em; color:#ffe7a8}
.lgplay{display:grid; grid-template-columns:repeat(auto-fill,minmax(230px,1fr)); gap:8px}
.lgtable{display:flex; align-items:center; gap:10px; flex-wrap:wrap; padding:10px 12px; border-radius:14px; background:rgba(14,12,11,.6); border:1px solid rgba(251,247,239,.1)}
.lgtable>b{font-size:16px; color:#f0c08a} .lgtable span{flex:1; color:var(--muted); font-size:12.5px; min-width:110px} .lgtable .btn,.lgtable .ghost{width:auto; padding:8px 14px} .lgtable.new{border-style:dashed; border-color:rgba(240,192,138,.4)}
.lgtable em{color:var(--muted)}
.lgpodium{display:grid; grid-template-columns:repeat(3,1fr); align-items:end; gap:8px; max-width:420px; margin:6px auto 10px}
.lgpodium>div{display:grid; justify-items:center; gap:2px; padding:10px 6px 0; border-radius:12px 12px 0 0; background:linear-gradient(180deg,rgba(211,154,94,.25),rgba(211,154,94,.06))}
.lgpodium>div span{font-size:13px; font-weight:700; text-align:center} .lgpodium>div b{color:#f0c08a} .lgpodium>div i{font-style:normal; font-size:22px; font-weight:900; color:rgba(255,255,255,.35); padding:4px 0}
.lgpodium .p1{min-height:110px; background:linear-gradient(180deg,rgba(231,181,74,.45),rgba(231,181,74,.08))} .lgpodium .p2{min-height:86px} .lgpodium .p3{min-height:70px} .lgpodium .empty{background:none}
.lgstand td,.lgstand th{font-size:13px} .lgstand tr.unranked td{color:var(--muted)} .lgstand small{font-size:11px; color:var(--muted)}
.lgrace{margin:0; padding:0; list-style:none; counter-reset:r; display:grid; gap:4px; max-width:520px}
.lgrace li{counter-increment:r; display:flex; gap:10px; padding:7px 12px; border-radius:10px; background:rgba(255,255,255,.04)} .lgrace li::before{content:counter(r); color:var(--muted); width:18px}
.lgrace li span{flex:1} .lgrace li b{color:#f0c08a} .lgrace li.us{background:rgba(211,154,94,.15)}
.lgmembers td{font-size:13px} .lgmembers select,.lgtagpick select{background:rgba(0,0,0,.35); color:var(--cream); border:1px solid var(--line); border-radius:8px; padding:3px 6px}
.lgbtns{display:flex; flex-wrap:wrap; gap:6px; margin-top:12px} .lgbtns .ghost,.lgbtns .btn{width:auto}
.lgdel{display:flex; gap:6px} .lgdel input{padding:6px 8px; border-radius:8px; border:1px solid var(--line); background:rgba(0,0,0,.35); color:var(--cream)}
.lgtagpick{display:flex; align-items:center; gap:6px; font-size:12px; color:var(--muted)}
@media (max-width:760px){ .lgwiz{grid-template-columns:1fr} .lgpreview{display:none} .lgchoice,.lgchoice.four{grid-template-columns:1fr 1fr} .lgsteps li{font-size:0; justify-content:center} .lgsteps li i{font-size:12px} .lgranges label{grid-template-columns:1fr; gap:4px} }
@media (max-height:430px){ #leagueOv>.panel.league{padding:10px 14px} .lgbar h2{font-size:23px} }

/* (31 Oct 2026, late) the league page: tabs on the left, the live league tables on the right (seats fill in as people sit),
   scoring and season rewards cards, the final week's double points, the Matches log */
.lgpage{display:grid; grid-template-columns:minmax(0,1fr) 300px; gap:16px; align-items:start; margin-top:14px}
.lgtabs{display:flex; gap:4px; padding:4px; border-radius:14px; background:rgba(0,0,0,.3); border:1px solid rgba(251,247,239,.08); margin-bottom:12px; overflow-x:auto}
.lgtabs button{flex:1; white-space:nowrap; padding:9px 12px; border-radius:10px; border:0; background:none; color:var(--muted); font-weight:800; font-size:13px; letter-spacing:.03em}
.lgtabs button.on{background:linear-gradient(180deg,#e8b866,#c08a45); color:#1b1207}
.lglive{position:sticky; top:0; display:grid; gap:8px; padding:12px; border-radius:16px; background:rgba(14,12,11,.7); border:1px solid rgba(240,192,138,.25)}
.lglive h3{margin:0; font-size:13px; letter-spacing:.08em; text-transform:uppercase; color:#f0c08a}
.lglive .note{margin:0; font-size:12px}
.lglt{display:grid; gap:8px; padding:10px; border-radius:12px; background:rgba(255,255,255,.04); border:1px solid rgba(251,247,239,.08)} .lglt.mine{border-color:#d39a5e}
.lglth{display:flex; align-items:baseline; gap:8px} .lglth b{color:#f0c08a} .lglth small{flex:1; color:var(--muted); font-size:12px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.lglth em{font-style:normal; font-size:11.5px; font-weight:800; color:#8fe0a8} .lglth em.on{color:#ffcf7a}
.lgseats{display:grid; grid-template-columns:1fr 1fr; gap:6px}
.lgseat{display:flex; align-items:center; gap:6px; min-width:0; padding:6px 8px; border-radius:10px; border:1px dashed rgba(251,247,239,.18); color:var(--muted); font-size:12px}
.lgseat i{flex:none; width:24px; height:24px; border-radius:50%; display:grid; place-items:center; font-style:normal; font-size:10px; font-weight:800; background:rgba(255,255,255,.06)}
.lgseat b{overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-weight:700}
.lgseat.on{border-style:solid; border-color:rgba(143,224,168,.45); color:var(--cream)} .lgseat.on i{background:linear-gradient(160deg,#16858c,#0b4f57); color:#fff}
.lglt .btn,.lgnewt .btn,.lgnewt .ghost{width:auto; padding:8px 14px}
.lgnewt{display:flex; flex-wrap:wrap; align-items:center; gap:6px; padding-top:6px; border-top:1px solid rgba(251,247,239,.08)} .lgnewt span{flex:1 1 100%; font-size:12px; color:var(--muted)}
.lgfinal{margin-bottom:10px; padding:9px 12px; border-radius:12px; background:linear-gradient(90deg,rgba(255,170,60,.25),rgba(255,170,60,.05)); border:1px solid rgba(255,190,90,.5); color:#ffe2b0; font-size:13px}
.lgx2{font-style:normal; color:#ffcf7a; font-weight:900}
.lgpodium .p1 em{font-style:normal; font-size:20px; margin-bottom:-2px}
.lgyours{margin:0 0 8px; font-size:13px; color:#e9dcc0} .lgyours b{color:#f0c08a}
.lgfire{color:#ff9a4a} .lgfire::before{content:"🔥"; margin-right:2px; font-size:11px}
.lginfo{display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-top:12px}
.lgcard{padding:12px 14px; border-radius:14px; background:rgba(255,255,255,.04); border:1px solid rgba(251,247,239,.08)}
.lgcard h4{margin:0 0 6px; font-size:13px; color:#f0c08a; letter-spacing:.05em; text-transform:uppercase}
.lgcard ul{margin:0; padding-left:16px; font-size:12.5px; line-height:1.6; color:#e9dcc0}
.lgcard ol{margin:0 0 6px; padding:0; list-style:none; display:grid; gap:4px} .lgcard ol li{display:flex; justify-content:space-between; gap:8px; font-size:12.5px}
.lgcard ol li b{color:#ffe7a8; text-align:right} .lgcard small{font-size:11px; color:var(--muted)}
.lgcard.prizes{background:linear-gradient(160deg,rgba(231,181,74,.14),rgba(255,255,255,.03)); border-color:rgba(231,181,74,.35)}
.lgmatches{display:grid; gap:6px}
.lgmatch{display:flex; flex-wrap:wrap; align-items:center; gap:6px 10px; padding:9px 12px; border-radius:12px; background:rgba(14,12,11,.6); border:1px solid rgba(251,247,239,.08)}
.lgmh{display:flex; align-items:baseline; gap:6px; flex:0 0 100%} .lgmh b{color:#f0c08a} .lgmh small{margin-left:auto; color:var(--muted); font-size:11.5px}
.lgmp{display:inline-flex; align-items:center; gap:5px; font-size:12.5px} .lgmp i{font-style:normal; width:18px; height:18px; border-radius:50%; display:grid; place-items:center; font-size:10px; font-weight:800; background:rgba(255,255,255,.08)}
.lgmp.w i{background:#e7b54a; color:#1b1207} .lgmp b{color:#8fe0a8; font-size:12px} .lgmp em{font-style:normal; font-size:11px}
.lgat{font-style:normal; font-size:10.5px; font-weight:800; padding:1px 7px; border-radius:99px; background:rgba(143,224,168,.15); color:#8fe0a8; border:1px solid rgba(143,224,168,.4)}
@media (max-width:900px){ .lgpage{grid-template-columns:minmax(0,1fr) 240px; gap:10px} .lginfo{grid-template-columns:1fr} .lgseats{grid-template-columns:1fr} }
@media (max-width:560px){ .lgpage{grid-template-columns:1fr} .lglive{position:static; order:-1} }
/* (31 Oct, late) how long a league runs (and its price), the ended box with the owner's restart */
.lgchoice.five{grid-template-columns:repeat(3,minmax(0,1fr))}
.lgchoice button[data-short]{opacity:.55}
.lgprice{font-style:normal; font-weight:900; color:#ffe7a8; font-size:15px}
.lgpay{margin:10px 0 0; font-size:14px; color:#e9dcc0} .lgpay b{color:#ffe7a8}
.lgended{display:grid; gap:8px; margin-bottom:12px; padding:12px 14px; border-radius:14px; background:linear-gradient(160deg,rgba(231,181,74,.16),rgba(255,255,255,.03)); border:1px solid rgba(231,181,74,.45)}
.lgended>b{font-size:15px; color:#ffe7a8} .lgended span{font-size:13px; color:#e9dcc0} .lgended .btn{width:auto; justify-self:start}
@media (max-width:900px){ .lgchoice.five{grid-template-columns:repeat(3,minmax(0,1fr))} }
@media (max-width:560px){ .lgchoice.five{grid-template-columns:1fr 1fr} }
/* (1 Nov) who of the league is online: a green dot in Members, and "Online now" under the league tables */
.lgdot{display:inline-block; width:9px; height:9px; border-radius:50%; background:#6b6157; vertical-align:middle; font-style:normal}
.lgdot.on{background:#3fd27a; box-shadow:0 0 6px rgba(63,210,122,.8)}
.lgseen{color:var(--muted); font-size:11px}
.lgonline{display:grid; gap:6px; padding:8px 10px; border-radius:12px; background:rgba(63,210,122,.07); border:1px solid rgba(63,210,122,.3)}
.lgonline>b{font-size:12.5px; color:#bff3d2} .lgonline small{color:var(--muted); font-size:12px}
.lgonline span{display:flex; flex-wrap:wrap; gap:5px} .lgonline em{font-style:normal; font-size:12px; padding:3px 9px; border-radius:99px; background:rgba(255,255,255,.07); color:var(--cream)} .lgonline em.play{color:#ffcf7a}

/* (1 Nov) deleting a league asks once more: the question and Yes / Cancel */
.lgdel{display:grid; gap:4px; padding:10px 12px; border-radius:12px; border:1px solid rgba(224,96,77,.55); background:rgba(120,20,16,.22)}
.lgdel>b{font-size:14px; color:#ffd7cf} .lgdel>small{font-size:12px; color:var(--muted)}
.lgdel>span{display:flex; gap:8px; flex-wrap:wrap; margin-top:4px}
html body #leagueOv .lgdel .btn.danger:not(.xback){background:linear-gradient(180deg,#d9574a,#8e1f18) !important; color:#fff4ee !important; text-shadow:0 1px 1px rgba(0,0,0,.4) !important; border-color:#5a120d !important}
