@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700;800&family=Noto+Sans+SC:wght@400;500;600;700;800;900&display=swap');
:root{color-scheme:dark;--bg:#08090b;--panel:#13151a;--border:#292d35;--muted:#8a919f;--accent:#3378FF}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:#f0f2f7;font:14px 'Noto Sans SC',sans-serif}button,input{font:inherit}button{cursor:pointer;color:inherit;background:none;border:1px solid var(--border);border-radius:5px;padding:10px 15px}button:hover{border-color:var(--accent);color:var(--accent)}button:focus-visible,a:focus-visible{outline:2px solid var(--accent);outline-offset:4px}header{height:85px;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;padding:0 4%}.brand{display:flex;align-items:center;gap:10px;color:#f0f2f7;text-decoration:none;letter-spacing:2px;font:700 24px 'Barlow Condensed',sans-serif}.brand b{color:var(--accent)}.brand-icon{display:grid;place-items:center;border:2px solid var(--accent);color:var(--accent);width:30px;height:35px;transform:skew(-9deg);font-size:23px}.nav{font-size:11px;letter-spacing:2px;color:#a3aab8;display:flex;gap:13px;align-items:center}.live-dot{width:5px;height:5px;background:var(--accent);border-radius:50%}.quiet{font-size:12px;border:0;color:#a3aab8}main{max-width:1550px;margin:auto;padding:0 4%}.intro{display:flex;align-items:center;justify-content:space-between;padding:57px 0 46px}.eyebrow{color:var(--accent);font-size:10px;letter-spacing:2px;font-weight:600}h1{font-size:clamp(32px,3.5vw,51px);letter-spacing:-2px;margin:18px 0 13px;font-weight:800}h1 span{color:var(--accent)}.intro p{color:#969dac;margin:0;font-size:13px}.edition{border-left:1px solid var(--border);padding-left:40px;font-family:'Barlow Condensed',sans-serif;transform:rotate(-3deg)}.edition>span{font-size:13px;letter-spacing:5px}.edition strong{display:block;font-size:62px;line-height:1;letter-spacing:1px}.edition strong span{color:var(--accent);margin-left:18px}.edition small{color:var(--muted);font-size:10px;letter-spacing:2px}.toolbar{border-top:1px solid var(--border);padding:24px 0;display:flex;align-items:center;justify-content:space-between;gap:20px}.steps{display:flex;align-items:center;gap:12px}.step-number{font:600 18px 'Barlow Condensed';color:var(--accent);padding-right:7px}.muted{color:var(--muted);font-size:11px;margin-left:8px}.progress{display:flex;align-items:center;gap:15px;font-size:11px;color:#b5bdcc}.track{width:95px;height:3px;background:#29303e}.track i{display:block;width:0;height:100%;background:var(--accent);transition:width .3s}.workspace{display:flex;border:1px solid var(--border);border-radius:9px;overflow:hidden;background:linear-gradient(120deg,#11151d,#0b0d11)}aside{width:205px;flex-shrink:0;background:#101319;padding:23px 18px;border-right:1px solid var(--border)}.aside-title{display:flex;align-items:center;justify-content:space-between;font-size:12px;font-weight:600}.pill{font:500 10px 'Barlow Condensed';letter-spacing:1px;color:var(--muted)}.aside-help{font-size:10px;color:var(--muted);margin:9px 0 18px}.roster-team{display:flex;align-items:center;gap:10px;padding:8px 5px;cursor:grab;border-radius:5px;border:1px solid transparent;width:100%;text-align:left;margin-bottom:3px}.roster-team:hover,.roster-team.active{background:#142343;border-color:#3378FF}.team-icon{--color:#3378FF;display:inline-flex;align-items:center;justify-content:center;width:31px;height:31px;flex-shrink:0;background:color-mix(in srgb,var(--color) 10%,transparent);color:var(--color);font:800 16px 'Barlow Condensed';letter-spacing:-.4px;border-radius:6px;border:1px solid color-mix(in srgb,var(--color) 22%,transparent)}.team-text strong{font-size:12px;display:block}.team-text small{display:block;color:var(--muted);font-size:9px;margin-top:2px}.handle{margin-left:auto;color:#687386;font-size:14px}.edit{width:100%;font-size:10px;margin-top:15px;padding:9px}.note{margin-top:24px;font-size:10px;color:#788395;line-height:1.7}.note span{color:#a4aec0}.note p{margin:6px 0 0}.bracket-wrap{flex:1;overflow:auto;padding:26px 27px;background-image:radial-gradient(#5476ac22 .6px,transparent .6px);background-size:15px 15px}.bracket{display:grid;grid-template-columns:1.12fr 1.12fr 1.12fr 1fr;gap:30px;min-width:800px;height:525px}.round-heading{height:50px;display:flex;flex-direction:column;gap:6px}.round-heading>span{font-size:12px;font-weight:600}.round-heading small{font:500 10px 'Barlow Condensed';letter-spacing:1.8px;color:#7e8da6}.round-body{height:455px;display:flex;flex-direction:column;justify-content:space-around}.match{position:relative;border:1px solid #2c3545;border-radius:5px;background:#151a23;padding:4px}.match::after{content:'';position:absolute;width:31px;right:-31px;top:50%;border-top:1px solid #354663}.match-label{position:absolute;top:-18px;left:0;font:500 9px 'Barlow Condensed';letter-spacing:1.5px;color:#7e8da6}.slot{width:100%;border:1px solid transparent;border-radius:3px;display:flex;align-items:center;text-align:left;gap:9px;padding:7px;min-height:40px;font-size:12px;font-weight:600}.slot+.slot{border-top:1px solid #2a3343}.slot .team-icon{width:24px;height:24px;font-size:13px}.slot.winner{color:var(--accent);background:#3378FF0b}.check{margin-left:auto;color:var(--accent);font-size:11px}.slot.empty{color:#8490a3;font-size:10px;font-weight:400}.empty-icon{border:1px dashed #43516a;width:24px;height:24px;display:grid;place-items:center;color:#8490a3;border-radius:4px}.drop-hover{outline:2px solid var(--accent);background:#172d55!important}.champion-card{position:relative;min-height:230px;border:1px solid #285bbc;border-radius:7px;text-align:center;padding:28px 12px;background:radial-gradient(ellipse at 50% 35%,#3378FF12,transparent 70%)}.champion-card::before{content:'THE CHOSEN ONE';position:absolute;top:-6px;left:50%;transform:translateX(-50%);white-space:nowrap;color:#3378FF;background:#0f1623;font:500 9px 'Barlow Condensed';letter-spacing:2px;padding:0 8px}.trophy{color:var(--accent);width:64px;height:64px;margin:0 auto 16px;display:block}.champion-card h2{font-size:18px;margin:10px 0 5px}.champion-card p{font-size:10px;color:#91a2be;margin:0}.champion-card .team-icon{width:50px;height:50px;font-size:24px}.champion-tag{font:600 10px 'Barlow Condensed';letter-spacing:2px;color:var(--accent);margin-top:23px}.bottom{display:flex;align-items:center;justify-content:space-between;padding:22px 0;font-size:10px;color:var(--muted)}.save-dot{color:var(--accent);font-size:8px;margin-right:6px}.bottom button{font-size:11px;background:var(--accent);color:#ffffff;border:0;font-weight:600}.bottom button:hover{background:#3378FF}footer{display:flex;justify-content:space-between;border-top:1px solid var(--border);padding:24px 0 30px;color:#768195;font-size:9px;letter-spacing:1px}footer b{padding:0 10px;color:#879ec5}dialog{width:510px;background:#141923;color:#f0f2f7;border:1px solid #354b70;border-radius:12px;padding:30px}dialog::backdrop{background:#000a;backdrop-filter:blur(6px)}dialog h2{margin-bottom:10px}dialog p{font-size:12px;color:var(--muted)}.field-row{display:grid;grid-template-columns:28px 85px 1fr;gap:10px;margin:10px 0;align-items:center;color:var(--muted);font-size:12px}input{width:100%;min-width:0;background:#0a101b;border:1px solid #30415d;border-radius:4px;padding:9px;color:#eef3ff}.dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:22px}.primary{background:var(--accent);color:#ffffff}#toast{position:fixed;bottom:25px;left:50%;transform:translate(-50%,20px);background:var(--accent);color:#ffffff;padding:13px 24px;border-radius:6px;opacity:0;pointer-events:none;transition:.2s;font-size:12px;z-index:5}#toast.show{opacity:1;transform:translate(-50%,0)}@media(min-width:1500px){.bracket{gap:40px}.match::after{width:41px;right:-41px}}@media(max-width:1000px){.muted{display:none}.edition{display:none}aside{width:175px;padding:20px 12px}.bracket-wrap{padding:25px 20px}.intro{padding:38px 0}.nav{font-size:9px;letter-spacing:1px}}@media(max-width:600px){header{height:65px}.brand{font-size:20px}.nav{display:none}main{padding:0 18px}h1{letter-spacing:-1px;font-size:32px}.intro p{font-size:11px;line-height:1.8}.toolbar{align-items:flex-start}.steps strong{font-size:12px}.progress{flex-direction:column;gap:7px;align-items:flex-end}.workspace{flex-direction:column}aside{width:100%;border-right:0;border-bottom:1px solid var(--border);padding:15px}.aside-help{margin:6px 0 12px}#roster{display:grid;grid-template-columns:repeat(4,1fr);gap:4px}.roster-team{padding:6px 2px;gap:5px}.roster-team .team-icon{width:25px;height:25px;font-size:12px}.team-text strong{font-size:10px}.team-text small,.handle,.note{display:none}.edit{margin-top:8px;width:auto}.bracket-wrap{padding:25px 20px}.bottom{gap:15px;flex-wrap:wrap}.bottom>span:nth-child(2){display:none}footer{font-size:8px;gap:20px;line-height:1.8}dialog{width:calc(100% - 24px);padding:20px}}

/* Brand assets and MEXC blue interaction states */
.brand{gap:12px;letter-spacing:0}.mexc-lockup{display:flex;align-items:center;gap:7px}.mexc-mark{width:29px;height:22px}.mexc-wordmark{width:83px;height:18.6px;filter:invert(1)}.brand-divider{height:24px;width:1px;background:var(--border);margin:0 4px}.worlds-logo{display:block;width:155px;height:auto;filter:invert(1)}
h1 span,.eyebrow,.step-number,.slot.winner,.check,.champion-tag{color:#3378FF}.champion-card::before{color:#3378FF}.bottom button:hover,.primary:hover{color:white}.slot.winner{background:#3378FF20}.edition strong span{color:#3378FF}
@media(max-width:600px){.brand{gap:8px}.mexc-mark{width:22px;height:17px}.mexc-wordmark{width:64px;height:14.35px}.brand-divider{height:20px;margin:0 2px}.worlds-logo{width:115px}.quiet{font-size:10px;padding:8px 0}.note{display:block;margin-top:12px}.note p{margin-top:3px}}

/* Sixteen-team selection pool */
#roster{max-height:427px;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#354b70 transparent;padding-right:3px}.team-icon:has(img){background:transparent;border-color:transparent;padding:0}.team-icon img{display:block;width:100%;height:100%;object-fit:contain}.handle.seeded{font-size:9px;color:#3378FF;white-space:nowrap}.champion-card .team-icon:has(img){width:66px;height:66px;padding:6px}dialog{max-height:85vh}#fields{max-height:48vh;overflow-y:auto;padding-right:5px}
@media(max-width:600px){#roster{max-height:240px;grid-template-columns:repeat(4,minmax(0,1fr))}.roster-team .team-text{min-width:0}.roster-team .team-text strong{font-size:9px}.roster-team .team-icon{width:27px;height:27px}.aside-help{line-height:1.7}}

/* Preserve source logos; remove white mattes at render time. */
.team-logo-0 img,.team-logo-8 img,.team-logo-10 img{filter:url(#remove-white) drop-shadow(0 0 1px #b5bfce)}
.team-logo-3 img,.team-logo-6 img,.team-logo-9 img,.team-logo-12 img{filter:brightness(0) invert(1)}
.team-logo-11 img,.team-logo-14 img{filter:invert(1);mix-blend-mode:screen}
.team-icon{font-size:12px}.team-logo-7{letter-spacing:-.8px}.champion-card .team-icon:has(img){padding:0}

/* English copy spacing */
h1{font-family:'Barlow Condensed',sans-serif;font-size:clamp(34px,4vw,58px);letter-spacing:-.5px}.team-text{min-width:0}.team-text small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.handle.seeded{font-size:8px}.round-heading small{font-size:9px}.note{line-height:1.8}
@media(max-width:600px){h1{font-size:37px;line-height:1.08;max-width:310px}.steps strong{font-size:11px}.steps{gap:7px}.progress{white-space:nowrap}.bottom{font-size:9px}.quiet{font-size:9px}.champion-card h2{font-size:17px}}

/* Centered event heading below the MEXC navigation */
.event-intro{display:flex;flex-direction:column;justify-content:center;text-align:center;gap:20px;padding:48px 0 42px}.event-title{position:relative;display:flex;align-items:center;justify-content:center}.event-title h1{margin:0;font-size:clamp(44px,5vw,70px);line-height:1.02;letter-spacing:-1px;max-width:none}.event-title h1 span{color:#3378FF}.event-logo{position:absolute;left:calc(100% + 32px);width:155px;height:auto;filter:invert(1)}
@media(max-width:700px){.event-intro{padding:36px 0 32px;gap:16px}.event-intro .eyebrow{font-size:8px;letter-spacing:1.3px}.event-title h1{font-size:42px}.event-logo{left:calc(100% + 8px);width:60px}.event-intro p{max-width:290px;font-size:11px}}

/* Championship emblem and typographic lockup */
.event-intro{gap:25px;padding:50px 0 44px}.event-title{gap:30px}.event-title::after{content:'';position:absolute;bottom:-15px;left:0;right:0;height:1px;background:linear-gradient(90deg,transparent,#3378FF 50%,transparent)}.event-emblem{display:block;width:104px;height:108px;object-fit:contain;filter:invert(1);mix-blend-mode:screen;flex-shrink:0}.event-divider{width:2px;height:94px;background:linear-gradient(180deg,transparent,#3378FF 25%,#3378FF 75%,transparent);transform:skew(-10deg)}.event-title h1{text-align:left;font-family:'Barlow Condensed',sans-serif;font-weight:800;font-size:64px;line-height:.92;letter-spacing:1px}.event-title h1 span{display:inline-block;margin-top:9px;letter-spacing:5px;font-size:.88em}.event-intro>p{margin-top:7px}
@media(max-width:700px){.event-intro{padding:34px 0 32px;gap:23px}.event-title{gap:16px}.event-emblem{width:68px;height:74px}.event-divider{height:65px;width:1px}.event-title h1{font-size:40px;letter-spacing:.3px}.event-title h1 span{letter-spacing:3px;margin-top:6px}.event-intro>p{font-size:10px;max-width:300px}.event-title::after{bottom:-13px}}

/* Larger title with consistent tracking on both lines. */
.event-title h1{font-size:76px;letter-spacing:1px}.event-title h1 span{font-size:1em;letter-spacing:inherit}.event-emblem{width:118px;height:124px}.event-divider{height:114px}
@media(max-width:700px){.event-title{gap:14px}.event-title h1{font-size:46px;letter-spacing:.3px}.event-title h1 span{font-size:1em;letter-spacing:inherit}.event-emblem{width:72px;height:80px}.event-divider{height:78px}}
@media(max-width:380px){.event-title{gap:10px}.event-title h1{font-size:40px}.event-emblem{width:60px;height:68px}.event-divider{height:68px}}

/* Equal-width title lines, with the prediction title taking precedence. */
.event-title h1{width:340px;display:flex;flex-direction:column;gap:7px;line-height:.95;letter-spacing:0}.event-title h1 .title-worlds{display:block;margin:0;color:#f0f2f7;font-size:60px;letter-spacing:0;white-space:nowrap}.event-title h1 .title-picks{display:block;margin:0;color:#3378FF;font-size:90px;letter-spacing:0;white-space:nowrap}
@media(max-width:700px){.event-title h1{width:218px;gap:5px}.event-title h1 .title-worlds{font-size:38px}.event-title h1 .title-picks{font-size:58px}}
@media(max-width:380px){.event-title h1{width:190px}.event-title h1 .title-worlds{font-size:34px}.event-title h1 .title-picks{font-size:51px}}

/* Tighter title rhythm without the eyebrow. */
.event-title h1{gap:1px;line-height:.9}.event-intro{padding-top:44px}
@media(max-width:700px){.event-title h1{gap:1px}.event-intro{padding-top:32px}}

/* Compact bracket actions and clean page footer. */
.bracket-actions{display:flex;align-items:center;gap:22px}.bracket-actions .quiet{font-size:11px;padding:8px 0;white-space:nowrap}.bottom{justify-content:flex-end;padding-bottom:30px}
@media(max-width:600px){.toolbar{flex-wrap:wrap;gap:10px}.bracket-actions{margin-left:auto;gap:14px}.bracket-actions .quiet{font-size:10px}.bottom{justify-content:flex-end}}

/* Full-width team pool: sixteen teams in two rows above the bracket. */
.workspace{flex-direction:column}aside{width:100%;border-right:0;border-bottom:1px solid var(--border);padding:22px 26px}.aside-title{justify-content:flex-start;gap:12px}.aside-help{margin:7px 0 16px}#roster{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:10px;max-height:none;overflow:visible;padding:0}.roster-team{position:relative;flex-direction:column;justify-content:center;text-align:center;gap:9px;padding:14px 5px 12px;margin:0;background:#131820;border:1px solid #29303e;min-width:0}.roster-team .team-icon{width:38px;height:38px}.roster-team .team-text{width:100%}.roster-team .team-text strong{font-size:12px}.roster-team .team-text small{display:none}.roster-team .handle{display:none}.roster-team:has(.seeded){border-color:#23457c;background:#101d32}.edit{width:auto;margin-top:16px}.note{margin-top:12px;display:block}.note p{display:inline;margin-left:8px}.bracket-wrap{width:100%}
@media(max-width:700px){aside{padding:18px 12px}#roster{grid-template-columns:repeat(8,minmax(0,1fr));gap:5px;max-height:none}.roster-team{padding:10px 1px;gap:7px}.roster-team .team-icon{width:27px;height:27px}.roster-team .team-text strong{font-size:9px}.note p{display:block;margin:4px 0 0}}
@media(max-width:380px){#roster{gap:3px}.roster-team .team-icon{width:23px;height:23px}.roster-team .team-text strong{font-size:8px}}

/* Full team names and a bespoke Summoner’s Cup outline. */
#roster{margin-top:18px}.roster-team .team-text strong{font-size:12px;line-height:1.4;white-space:normal;overflow-wrap:normal;min-height:34px;display:flex;align-items:center;justify-content:center}.slot{min-height:48px;font-size:11px;line-height:1.35}.slot>span:not(.team-icon):not(.check){min-width:0;white-space:normal}.summoners-cup{width:92px;height:138px;color:#d9e3f7;margin-bottom:18px}.champion-card h2{font-size:16px;line-height:1.45;font-weight:600}.champion-card{padding:25px 14px}.champion-tag{line-height:1.5}
@media(max-width:700px){#roster{grid-template-columns:repeat(8,minmax(76px,1fr));gap:7px;overflow-x:auto;padding-bottom:8px}.roster-team .team-text strong{font-size:10px;min-height:42px}.roster-team{padding:12px 5px}.roster-team .team-icon{width:30px;height:30px}}

/* Latin-first type avoids oversized curly-quote fallback spacing. */
body{font-family:Arial,Helvetica,sans-serif}.team-text strong,.slot,.champion-card h2{font-family:Arial,Helvetica,sans-serif;letter-spacing:normal;font-kerning:normal}.summoners-cup{width:76px;height:114px;margin:0 auto 16px;overflow:hidden;color:#d8e3f5}.champion-card{padding:25px 15px}.champion-card h2{font-size:15px;line-height:1.5}

.share-section,.rewards-section{padding:28px 0;border-top:1px solid var(--border);margin-top:28px}.steps h2{font-size:14px;margin:0;font-weight:600}.download-area{text-align:center;padding:30px 0 10px}.download-button{background:#3378FF;border-color:#3378FF;color:white;padding:15px 30px;font-weight:600;font-size:14px;border-radius:6px}.download-button span{margin-left:18px;font-size:18px}.download-button:hover{color:white;background:#064ad5}.download-button:disabled{opacity:.6;cursor:wait}.download-area p{font-size:12px;color:#8a96aa;margin-top:15px}.rewards-card{display:flex;justify-content:space-between;gap:45px;padding:32px;margin-top:22px;background:linear-gradient(120deg,#141b28,#0c1018);border:1px solid #293446;border-radius:9px}.reward-rules{max-width:720px}.reward-rules h3{font-size:24px;margin:0 0 25px}.reward-rules ol{padding-left:22px;margin:0}.reward-rules li{padding-left:9px;margin-top:22px;color:#3378FF}.reward-rules strong{color:#edf1f7;font-size:14px}.reward-rules p{color:#94a1b7;font-size:13px;line-height:1.8;margin:8px 0 0}.social-placeholder{min-width:180px;text-align:center}.qr-placeholder{position:relative;width:150px;height:150px;margin:0 auto 16px;border:1px dashed #45628f;border-radius:8px;background:#101a2b;display:grid;place-items:center}.qr-placeholder>span:last-child{font-size:10px;line-height:1.8;letter-spacing:1.6px;color:#7e9bc6}.qr-corner{position:absolute;width:22px;height:22px;border:2px solid #3378FF;border-radius:3px}.qr-corner.a{top:13px;left:13px}.qr-corner.b{top:13px;right:13px}.qr-corner.c{bottom:13px;left:13px}.social-placeholder strong{font-size:13px}.social-placeholder p{font-size:10px;color:#7d8da5}.summoners-cup{filter:drop-shadow(0 2px 5px #3378FF25)}
@media(max-width:600px){.rewards-card{padding:22px;flex-direction:column;gap:26px}.reward-rules h3{font-size:21px}.download-area p{font-size:11px;line-height:1.6}.download-button{width:100%;max-width:300px}.rewards-section{margin-top:8px}.social-placeholder{padding-top:22px;border-top:1px solid #293446}}

/* Bracket polish and faithful image export. */
.bracket-actions #reset{background:#3378FF;color:#fff;border:1px solid #3378FF;border-radius:6px;padding:11px 17px;font-weight:600}.bracket-actions #reset:hover{background:#064ad5;color:#fff}.round-heading small{font-size:16px;font-weight:600;letter-spacing:1.5px;color:#99abc8}.slot.winner{border-top-color:#3378FF}.slot.winner{border:1px solid #3378FF;box-shadow:inset 0 0 0 1px #3378FF20}.slot:hover{border:1px solid #3378FF}.download-area{display:flex;align-items:flex-start;justify-content:center;gap:18px;padding:34px 0 14px}.username-field{text-align:left;display:flex;flex-direction:column;gap:8px;font-size:12px;width:240px}.username-field input{height:52px;border-radius:6px;background:#111824}.username-field input:focus{outline:1px solid #3378FF}.download-area .download-button{margin-top:22px;height:52px}#username-error{font-size:11px;line-height:1.4;color:#ff9a9a;max-width:240px}.community-qr{width:190px;height:190px;overflow:hidden;border-radius:10px;margin:0 auto 16px;background:#fff;position:relative}.community-qr img{position:absolute;width:257px;max-width:none;height:auto;left:-33px;top:-133px}.export-brand{display:flex;justify-content:space-between;align-items:center;margin-bottom:32px;font:600 14px Arial;color:#9babca}.export-credit{text-align:right;border-top:1px solid #29374e;margin-top:20px;padding-top:20px;font:600 20px Arial;color:#fff}.export-frame .slot{cursor:default}.summoners-cup{filter:drop-shadow(0 3px 5px #3378FF18)}
@media(max-width:600px){.download-area{flex-direction:column;align-items:center;gap:12px}.username-field{width:100%;max-width:300px}.download-area .download-button{margin-top:0}.round-heading small{font-size:14px}}

/* Unified official MEXC lockup: preserve asset color and proportions. */
.mexc-logo{display:block;width:119px;height:auto;object-fit:contain}
@media(max-width:600px){.mexc-logo{width:93px}}
