/* Approved cream / emerald Bilgi Arenası. All rules scoped to the league view. */
body:has(#leaguesView.active){background:#fffdf5;color:#213c57}body:has(#leaguesView.active) #app{max-width:1080px}body:has(#leaguesView.active) .topbar{background:transparent;box-shadow:none;border:0}body:has(#leaguesView.active) .header-status{display:none}body:has(#leaguesView.active) .brand-text{color:#007d80}body:has(#leaguesView.active) .brand-text strong{color:#ff932b}body:has(#leaguesView.active) .tab.active{background:#d9faed;color:#008f82;box-shadow:none}
.ml-page{max-width:720px;margin:0 auto;padding:0 12px 16px;font-family:Nunito,system-ui,sans-serif;color:#263e58}.ml-page *{box-sizing:border-box}.ml-heading{text-align:center}.ml-heading h1{font-size:clamp(36px,7vw,58px);line-height:1.05;letter-spacing:-2px;margin:0;color:#007d85;font-weight:950}.ml-heading h1 span{font-size:23px;color:#ffc543;vertical-align:top;margin-left:6px}.ml-heading p{font-size:clamp(14px,3vw,20px);font-weight:750;color:#64738b;margin:7px 0 14px}.ml-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));margin:0 0 12px;position:relative;gap:6px}.ml-tabs:before{content:'';position:absolute;left:10%;right:10%;height:3px;top:49%;background:#dce5e5}.ml-tabs button{position:relative;display:flex;align-items:center;flex-direction:column;background:transparent;border:0;border-radius:22px;padding:3px 1px;cursor:pointer;color:#263e58;min-width:0;font:inherit}.ml-tabs button[aria-pressed=true]{background:radial-gradient(ellipse,#d5ffe6 10%,#e8fbed 65%,transparent 72%)}.ml-tabs button:hover{background-color:#e6f8ef}.ml-tabs b{font-size:clamp(11px,2.5vw,17px);white-space:nowrap}.ml-tabs small{min-height:14px;font-size:10px;color:#657b84}.ml-badge{display:block;width:80px;height:84px;background-image:url('assets/leagues/shields.webp');background-size:400% 100%;background-repeat:no-repeat;mix-blend-mode:multiply;flex:none}.ml-badge-0{background-position:0 0}.ml-badge-1{background-position:33.333% 0}.ml-badge-2{background-position:66.666% 0}.ml-badge-3{background-position:100% 0}
.ml-hero{height:180px;display:flex;align-items:center;position:relative;border-radius:26px;overflow:hidden;background:radial-gradient(circle at 22% 35%,#22bd89,transparent 35%),linear-gradient(110deg,#00645d,#009d80 65%,#075e67);border:1px solid #09a99d;box-shadow:0 5px 14px #23645915;color:white}.ml-hero-shield{width:32%;align-self:stretch;display:grid;place-items:center;position:relative;z-index:1}.ml-hero-shield .ml-badge{width:155px;height:155px;mix-blend-mode:normal;clip-path:polygon(50% 9%,67% 19%,93% 25%,91% 50%,80% 65%,63% 76%,50% 79%,37% 76%,20% 65%,9% 50%,7% 25%,33% 19%);filter:drop-shadow(0 8px 5px #004a43);animation:mlFloat 4s ease-in-out infinite}.ml-hero-shield>span{position:absolute;top:20px;left:15px;font-size:26px;color:#fff3a0;animation:mlShine 2s infinite alternate}.ml-hero-copy{position:relative;z-index:2;align-self:center;min-width:0}.ml-pill{display:inline-block;font-size:13px;font-weight:800;background:#00b281b0;border-radius:30px;padding:5px 10px}.ml-hero h2{margin:5px 0 0;line-height:1.1;font-size:clamp(24px,4.7vw,40px);color:white;letter-spacing:-1px}.ml-hero p{margin:6px 0 10px;font-weight:700;font-size:14px}.ml-clock{border:1px solid #bdffec;border-radius:30px;background:#005e6270;padding:5px 10px;font-weight:750;font-size:13px;display:inline-block}.ml-mountain{position:absolute;right:0;bottom:0;width:30%;height:100%;background:linear-gradient(150deg,transparent 40%,#a7dec8 41%,#3c9590 70%);clip-path:polygon(0 0,100% 0,100% 100%,0 100%)}.ml-mountain span{position:absolute;right:10px;top:20px;font-size:12px;font-weight:800;transform:rotate(-8deg)}.ml-mountain i{position:absolute;right:30px;bottom:35px;font-size:45px;color:#ffce60;font-style:normal}.ml-explainer{display:grid;grid-template-columns:1fr 1fr;background:#fffefa;border:1px solid #eee9dc;border-radius:18px;margin:8px 0 12px;padding:9px 10px;gap:10px;color:#5b6b84;font-size:12px;font-weight:750;line-height:1.4}.ml-explainer span+span{border-left:1px solid #dedfd7;padding-left:12px}
.ml-podiums{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;align-items:end;padding-top:15px}.ml-podium{position:relative;text-align:center;display:flex;flex-direction:column;align-items:center;min-width:0;padding-top:8px;border-radius:70% 70% 12px 12px;background:linear-gradient(135deg,#fff,#d8eafb);border:1px solid #fff;box-shadow:0 3px 15px #37474408}.ml-podium .ml-avatar{width:80px;height:82px;object-fit:contain;border-radius:50%;background:#cae7ff;border:3px solid white;box-shadow:0 0 0 2px #a3d8ed}.ml-place-1{background:linear-gradient(135deg,#fff8cf,#ffdb78);padding-top:14px;z-index:1;box-shadow:0 0 20px #ffd25430}.ml-place-1:before{content:'♛';position:absolute;top:-22px;font-size:30px;color:#eab13e;text-shadow:0 2px #ffc652}.ml-place-1 .ml-avatar{width:95px;height:98px;background:#ffe8a1;border-color:#fff9d6;box-shadow:0 0 0 3px #f7c84e}.ml-place-3{background:linear-gradient(135deg,#fff7e4,#ffdfc1)}.ml-place-3 .ml-avatar{background:#ffe1c1;box-shadow:0 0 0 2px #edb077}.ml-medal{font-size:17px;font-weight:950;color:white;border:2px solid white;border-radius:50%;width:31px;height:31px;display:grid;place-items:center;background:#829db7;margin-top:-10px;z-index:2}.ml-place-1 .ml-medal{background:#e5a51c}.ml-place-3 .ml-medal{background:#b97942}.ml-podium>div:not(.ml-vacant){display:flex;flex-direction:column;gap:3px;width:100%;padding:7px 5px 11px;border-top:1px solid #ffffffa0;border-radius:17px 17px 0 0}.ml-podium b{font-size:15px;overflow:hidden;text-overflow:ellipsis}.ml-podium strong{font-size:19px;white-space:nowrap;color:#24374d}.ml-list{list-style:none;padding:0;margin:9px 0;display:grid;gap:7px;max-height:255px;overflow-y:auto;scrollbar-width:thin}.ml-row{display:flex;align-items:center;gap:9px;border:1px solid #ece9dc;background:#fff;border-radius:18px;padding:7px 12px;min-height:52px;box-shadow:0 3px 8px #51583f06}.ml-row>b{font-size:20px;color:#566b83;min-width:20px}.ml-avatar{object-fit:contain}.ml-row .ml-avatar{width:38px;height:38px;border-radius:50%;background:#e7f0e5}.ml-row strong{overflow-wrap:anywhere;font-size:14px;flex:1;min-width:0}.ml-row>span:last-child{white-space:nowrap;font-size:15px;font-weight:850}.ml-row.ml-self{background:linear-gradient(100deg,#d8faf4,#effdf5);border-color:#19c8af;color:#00817e;box-shadow:0 0 12px #09d4aa16}.ml-up{font-size:24px;color:#00b677}.ml-personal{display:flex;align-items:center;gap:9px;border-radius:20px;border:1px solid #ceefdf;background:linear-gradient(110deg,#f5fff7,#dbf8ed);padding:8px 10px;color:#00686a}.ml-personal .ml-avatar{width:43px;height:43px;background:#d5eddc;border-radius:50%}.ml-personal b{font-size:14px;flex:1}.ml-personal>span{font-size:30px;color:#00b67a}.ml-personal small{max-width:35%;font-weight:650;text-align:center;background:#c8f6df;border-radius:14px;padding:8px;font-size:11px}.ml-help{font-size:10px;text-align:center;color:#697d85;margin-top:10px;line-height:1.5}.ml-message{text-align:center;background:#fffaf0;border:1px solid #efe8d5;border-radius:20px;padding:24px 15px;line-height:1.6}.ml-message button{background:#008e81;color:white;padding:12px 20px;border:0;border-radius:14px;font:750 15px system-ui;cursor:pointer}.ml-vacant{min-height:135px;display:grid;place-content:center;color:#8a9e99;font-size:35px;gap:10px}.ml-vacant small{font-size:12px}.ml-rise{animation:mlRise .6s ease-out}@keyframes mlFloat{50%{transform:translateY(-4px) rotate(2deg)}}@keyframes mlShine{to{opacity:.35;transform:scale(.7)}}@keyframes mlRise{from{transform:translateY(15px);box-shadow:0 0 22px #00c791}to{transform:translateY(0)}}
@media(max-width:760px){body:has(#leaguesView.active) #app{padding:8px 4px 80px}body:has(#leaguesView.active) .topbar{padding:3px 10px;justify-content:flex-start;min-height:45px}body:has(#leaguesView.active) .brand{gap:5px}body:has(#leaguesView.active) .brand-text{font-size:18px}body:has(#leaguesView.active) .modern-brand-art{width:40px;height:38px}body:has(#leaguesView.active) .tabs{position:fixed;bottom:0;left:0;right:0;z-index:50;display:flex;flex-wrap:nowrap;background:#fffefa;box-shadow:0 -5px 20px #39554d0c;border-radius:22px 22px 0 0;padding:7px 6px calc(7px + env(safe-area-inset-bottom));width:100%;gap:3px}body:has(#leaguesView.active) .tabs .tab{flex:1;min-width:0;padding:7px 2px;display:flex;flex-direction:column;gap:3px;border-radius:15px;font-size:11px;background:transparent;color:#56677e}body:has(#leaguesView.active) .tabs .tab.active{background:#e1faee;color:#008f82}body:has(#leaguesView.active) .tabs .tab[hidden]{display:none}body:has(#leaguesView.active) .tabs .ui-icon{width:23px;height:23px}.ml-page{padding:0 7px 8px}.ml-hero{height:143px;border-radius:20px}.ml-hero-shield .ml-badge{width:120px;height:120px}.ml-hero-shield{width:30%}.ml-hero p{font-size:12px}.ml-pill{font-size:11px}.ml-mountain span{font-size:10px;right:5px}.ml-clock{font-size:11px}.ml-badge{width:66px;height:68px}.ml-tabs{margin-bottom:7px}.ml-heading p{margin-bottom:6px}.ml-explainer{font-size:10px;padding:7px;margin-bottom:7px}.ml-podium .ml-avatar{width:61px;height:63px}.ml-place-1 .ml-avatar{width:74px;height:77px}.ml-podium strong{font-size:16px}.ml-podium b{font-size:12px}.ml-podium>div:not(.ml-vacant){padding:5px 3px 7px}.ml-list{max-height:185px;gap:5px;margin:6px 0}.ml-row{min-height:43px;padding:4px 10px;border-radius:15px;gap:7px}.ml-row .ml-avatar{width:31px;height:31px}.ml-row>span:last-child{font-size:12px}.ml-row strong{font-size:12px}.ml-row>b{font-size:17px}.ml-personal{padding:6px 8px;gap:5px}.ml-personal b{font-size:11px}.ml-personal small{font-size:9px;padding:6px}.ml-personal .ml-avatar{width:32px;height:32px}.ml-help{font-size:9px}.ml-tabs b{font-size:12px}}
@media(max-width:760px) and (max-height:900px){.ml-heading h1{font-size:32px}.ml-heading p{font-size:12px;margin:3px 0}.ml-tabs .ml-badge{width:53px;height:53px}.ml-tabs small{font-size:9px;min-height:11px}.ml-hero{height:112px}.ml-hero-shield .ml-badge{width:102px;height:102px}.ml-hero h2{font-size:25px}.ml-hero p{margin:4px 0 7px;font-size:11px}.ml-pill{padding:3px 8px}.ml-clock{padding:3px 8px}.ml-podium .ml-avatar{width:48px;height:49px}.ml-place-1 .ml-avatar{width:60px;height:61px}.ml-podiums{padding-top:12px}.ml-podium strong{font-size:14px}.ml-medal{width:25px;height:25px;font-size:13px}.ml-row{min-height:40px}.ml-list{max-height:135px}.ml-personal small{font-size:8px}.ml-help{font-size:8px;margin-top:6px}.ml-explainer{margin:5px 0;font-size:9px}}
@media(prefers-reduced-motion:reduce){.ml-page *{animation:none!important;transition:none!important}}
.ml-hero{background:#007b71 url('assets/leagues/emerald-trail.webp') center/cover no-repeat}.ml-mountain{background:none;clip-path:none}.ml-mountain i{display:none}.ml-mountain span{top:20px;right:12px;text-shadow:0 1px 3px #00695a}
@media(max-width:760px) and (max-height:900px){body:has(#leaguesView.active) .topbar{min-height:35px;padding:0 10px}.ml-heading h1{font-size:29px}.ml-tabs{margin-bottom:5px}.ml-tabs .ml-badge{width:46px;height:47px}.ml-tabs small{min-height:10px}.ml-hero{height:95px}.ml-hero-shield .ml-badge{width:90px;height:90px}.ml-hero h2{font-size:23px}.ml-hero p{font-size:10px;margin:3px 0 5px}.ml-explainer{padding:5px 8px}.ml-podium .ml-avatar{width:40px;height:41px}.ml-place-1 .ml-avatar{width:50px;height:51px}.ml-podium{padding-top:4px}.ml-place-1{padding-top:8px}.ml-medal{width:21px;height:21px;font-size:12px}.ml-podium>div:not(.ml-vacant){padding:3px}.ml-row{min-height:35px;padding:2px 9px}.ml-row .ml-avatar{width:27px;height:27px}.ml-list{max-height:115px;gap:4px}.ml-personal{padding:4px 7px}.ml-help{line-height:1.3;margin-top:4px}}
@media(max-width:700px){#app .tabs{grid-template-columns:repeat(4,minmax(0,1fr))}}body:has(#leaguesView.active) #app .tabs{display:flex}

body:has(#leaguesView.active) .header-status{display:flex}body:has(#leaguesView.active) .economy-strip{display:none}

body:has(#leaguesView.active) #app .topbar{backdrop-filter:none;display:flex;align-items:center;justify-content:space-between}body:has(#leaguesView.active) #app .brand{display:flex}body:has(#leaguesView.active) #app .brand-text span{color:#007d80}body:has(#leaguesView.active) #app .brand-text strong{color:#ff932b}
@media(max-width:760px){body:has(#leaguesView.active) #app .tabs{position:fixed;top:auto;bottom:0;left:0;right:0;transform:none;flex-basis:auto;width:100%!important;max-width:none;z-index:50}body:has(#leaguesView.active) #app .topbar{position:static}body:has(#leaguesView.active) #app .tabs .tab{flex-direction:column;padding:7px 2px!important}body:has(#leaguesView.active) #app .tab.active{background:#d9faed;color:#008f82}}
