/* Situs subdomain event: KERANGKA bersama (nav, komponen, jadwal, klasemen, bracket, podium, footer).
   Identitas tiap seri hidup di berkas temanya, dimuat oleh js/config.js sesudah berkas ini:
     css/league.css        liga siaran (MMPL; bawaan seri tanpa tema)
     css/board.css         papan catur ajaib (MMCG)
     css/tactical.css      peta taktis (PMCL)
     css/festival.css      festival (MAF)
     css/championship.css  kejuaraan antar-perusahaan (MCC)
   Tema menyetel token (warna dasar, font display, radius, bentuk pil) dan menyusun hero-nya sendiri; komponen di sini
   hanya membaca token. Warna aksen datang dari seri di arena (--accent, app.js). */
:root {
  --maxw: 1200px;
  --gutter: clamp(16px, 5vw, 56px);
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-pill: 100px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  --accent: #F2994A;
  --accent-ink: #1A0E04;
  --blue: #4C8DFF;
  --bg-0: #070A12;
  --bg-1: #0C1222;
  --bg-2: #121B30;
  --bg-3: #1A2540;
  --bg-glass: rgba(9, 13, 24, .74);
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .15);
  --text: #EEF2FA;
  --muted: #A0ABC2;
  --dim: #66728C;
  --live: #F0475A;
  --gold: #F2C25A;
  --win: #3DD68C;
  --loss: #F0475A;
  --shadow: 0 30px 80px -40px rgba(0, 0, 0, .9);

  --display: "Plus Jakarta Sans", system-ui, sans-serif; /* each theme sets its own */
  --body: "Plus Jakarta Sans", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { background: var(--bg-0); color: var(--text); font-family: var(--body); line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3 { font-family: var(--display); line-height: 1.1; letter-spacing: -.01em; }
h2 { display: flex; align-items: center; gap: 12px; font-size: clamp(1.4rem, 2.4vw, 1.85rem); letter-spacing: -.02em; }
h2::before { content: ""; width: 4px; height: .9em; border-radius: 3px; background: var(--accent); flex: none; }
h2 small { font-family: var(--body); font-size: .88rem; font-weight: 500; color: var(--dim); letter-spacing: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(26px, 4vw, 44px); }
.sh { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.dim { color: var(--dim); }
.mono { font-family: var(--mono); }
.eyebrow { font-family: var(--mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.link { color: var(--accent); font-weight: 600; font-size: .9rem; }
.link:hover { text-decoration: underline; }
.card { background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--r-md); }
.note { padding: 14px 16px; border-radius: var(--r-sm); background: var(--bg-1); border: 1px solid var(--line); color: var(--muted); margin-bottom: 12px; }
.note.bad { border-left: 3px solid var(--live); color: var(--text); }
.skeleton { border-radius: var(--r-md); background: linear-gradient(90deg, var(--bg-1), var(--bg-2), var(--bg-1)); background-size: 200% 100%; animation: sk 1.4s infinite; }
@keyframes sk { to { background-position: -200% 0; } }

/* Sections below the fold fade up once as they scroll in (app.js marks them .rv, then .in). */
.section.rv { opacity: 0; transform: translateY(14px); }
.section.rv.in { opacity: 1; transform: none; transition: opacity .6s var(--ease-out), transform .7s var(--ease-out); }
@media (prefers-reduced-motion: reduce) { .section.rv { opacity: 1; transform: none; } }

.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: var(--r-pill); font-weight: 700; font-size: .92rem; border: 1px solid transparent; transition: transform .2s var(--ease-out), border-color .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 7px 14px; font-size: .84rem; }
.btn-accent { background: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 30px -12px color-mix(in srgb, var(--accent) 70%, transparent); }
.btn-ghost { color: var(--text); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--accent); }
.btn-live { background: var(--live); color: #fff; box-shadow: 0 10px 30px -12px color-mix(in srgb, var(--live) 80%, transparent); }

/* tags */
.tag { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: .66rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.tag.gold { color: var(--gold); }
.tag.sm { font-size: .6rem; padding: 3px 8px; border-radius: var(--r-pill); background: color-mix(in srgb, var(--accent) 14%, transparent); }
.pill-live { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: var(--r-pill); font-family: var(--mono); font-size: .62rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #fff; background: var(--live); white-space: nowrap; }
.pill-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { opacity: .2; } }

/* nav */
.nav { position: sticky; top: 0; z-index: 50; background: var(--bg-glass); backdrop-filter: blur(18px) saturate(1.4); border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand img { width: 38px; height: 38px; border-radius: 10px; object-fit: cover; }
.brand-tx { display: flex; flex-direction: column; line-height: 1; }
.brand-tx b { font-family: var(--display); font-size: 1.05rem; letter-spacing: .04em; }
.brand-tx small { font-family: var(--mono); font-size: .54rem; letter-spacing: .12em; color: var(--dim); margin-top: 4px; }
.links { display: flex; gap: 2px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.links::-webkit-scrollbar { display: none; }
.links a { position: relative; padding: 8px 12px; border-radius: 9px; font-size: .9rem; font-weight: 500; color: var(--muted); white-space: nowrap; transition: color .2s; }
.links a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 2px; border-radius: 2px; background: var(--accent); transform: scaleX(0); transition: transform .25s var(--ease-out); }
.links a:hover { color: var(--text); }
.links a.on { color: var(--text); }
.links a.on::after { transform: scaleX(1); }

/* announcement ribbon (Backoffice subdomain in arena) */
.notice { background: color-mix(in srgb, var(--accent) 12%, var(--bg-1)); border-bottom: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); }
.notice .wrap { display: flex; align-items: baseline; gap: 12px; padding-block: 10px; }
.notice p { font-size: .9rem; }

/* hero: dasar yang dipakai semua mode; komposisinya (kolom, latar, judul) disusun di berkas tema. */
.hero { position: relative; overflow: hidden; isolation: isolate; border-bottom: 1px solid var(--line); background: var(--bg-0); }
.hero::before, .hero::after { content: ""; position: absolute; z-index: -1; pointer-events: none; }

/* Halaman liga (MMPL, MMCG, PMCL): pil edisi di atas judul, tab cabang di bawahnya bila satu edisi berisi beberapa
   event, lalu dua kolom hero (teks, kartu). Tema mewarnai dan menyusun ulang latarnya. */
.stabs { display: flex; align-items: center; gap: 6px; padding-top: 20px; overflow-x: auto; scrollbar-width: none; }
.stabs::-webkit-scrollbar { display: none; }
.stabs a { display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: var(--r-pill); border: 1px solid var(--line-2); background: rgba(7, 10, 18, .5); backdrop-filter: blur(8px); font-size: .82rem; font-weight: 600; color: var(--muted); white-space: nowrap; transition: border-color .2s, color .2s; }
.stabs a:hover { color: var(--text); border-color: var(--accent); }
.stabs a.on { background: var(--text); border-color: var(--text); color: var(--bg-0); }
.gtabs { display: flex; gap: 6px; margin-top: 10px; overflow-x: auto; scrollbar-width: none; }
.gtabs a { display: inline-flex; align-items: center; gap: 7px; padding: 6px 14px; border-radius: var(--r-pill); border: 1px solid var(--line-2); font-size: .84rem; font-weight: 600; color: var(--muted); white-space: nowrap; }
.gtabs a:hover { color: var(--text); border-color: var(--accent); }
.gtabs a.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

.hero-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: clamp(24px, 4vw, 48px); align-items: center;
  min-height: min(62vh, 560px); padding-block: clamp(28px, 5vw, 60px) clamp(32px, 6vw, 72px); }
.hero-in.solo { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 900px) { .hero-in { grid-template-columns: minmax(0, 1fr); min-height: 0; } }

.emb-l { display: flex; align-items: center; gap: 14px; }
.emb { width: 64px; height: 64px; flex: none; filter: drop-shadow(0 8px 22px rgba(0, 0, 0, .6)); }
/* A JPEG emblem carries its dark backdrop (no alpha): screen it away. */
.emb[src$=".jpg"], .emb[src$=".jpeg"] { mix-blend-mode: screen; }
.emb-l .eyebrow { display: flex; flex-direction: column; gap: 4px; }
.emb-l .eyebrow small { font-size: .6rem; letter-spacing: .18em; color: var(--dim); }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 18px; color: var(--muted); font-size: .9rem; }
.meta > span:not(.phase):not(.game) { padding: 4px 11px; border-radius: var(--r-pill); border: 1px solid var(--line-2); background: rgba(7, 10, 18, .45); font-size: .82rem; font-weight: 500; }
.phase { padding: 4px 11px; border-radius: var(--r-pill); background: var(--bg-3); color: var(--text); font-weight: 600; font-size: .82rem; }
.phase.on { background: color-mix(in srgb, var(--accent) 22%, transparent); color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); }
.game { padding: 3px 10px; border-radius: var(--r-pill); border: 1px solid color-mix(in srgb, var(--gold) 55%, transparent); color: var(--gold); font-family: var(--mono); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; }
.prog { height: 6px; border-radius: var(--r-pill); background: var(--bg-3); margin-top: 22px; max-width: 420px; overflow: hidden; }
.prog span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 70%, #fff 0%), var(--accent)); box-shadow: 0 0 12px color-mix(in srgb, var(--accent) 60%, transparent); }
.prog-l { font-size: .8rem; color: var(--dim); margin-top: 8px; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, max-content)); gap: 10px 36px; margin-top: 26px; }
.stats div { display: flex; flex-direction: column-reverse; gap: 2px; }
/* the numbers of the event: a row with thin dividers (themes centre or recolour it) */
.stats { display: flex; flex-wrap: wrap; gap: 12px 0; margin-top: 28px; }
.stats div { display: flex; flex-direction: column-reverse; gap: 2px; padding-right: 24px; margin-right: 24px; border-right: 1px solid var(--line-2); }
.stats div:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.stats dd { font-family: var(--display); font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; line-height: 1; }
.stats dd small { font-size: .55em; color: var(--muted); font-weight: 600; margin-left: 2px; }
.stats dt { font-family: var(--mono); font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }

/* spotlight (next livestream / next match / champion) */
.spot { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 18px; border-radius: var(--r-lg); border: 1px solid var(--line-2);
  background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 10%, var(--bg-1)), color-mix(in srgb, var(--bg-1) 88%, transparent) 60%); backdrop-filter: blur(14px); box-shadow: var(--shadow);
  transition: border-color .2s, transform .25s var(--ease-out); }
.spot::before { content: ""; position: absolute; top: -1px; left: 24px; right: 24px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, var(--accent), transparent); }
.spot.air { border-color: color-mix(in srgb, var(--live) 60%, transparent); box-shadow: 0 0 0 1px color-mix(in srgb, var(--live) 20%, transparent), 0 30px 80px -30px color-mix(in srgb, var(--live) 35%, transparent); }
.spot.air::before { background: linear-gradient(90deg, transparent, var(--live), transparent); }
.spot-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.when { font-weight: 600; font-size: .84rem; color: var(--muted); }
.sess { display: flex; flex-direction: column; gap: 12px; padding: 14px 16px; border-radius: var(--r-md); background: color-mix(in srgb, var(--bg-2) 70%, transparent); border: 1px solid var(--line); transition: border-color .2s, transform .25s var(--ease-out); }
.sess:hover { border-color: var(--accent); transform: translateY(-1px); }
.sess.air { border-color: var(--live); }
.sess-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.sess-h b { font-family: var(--mono); font-size: .86rem; white-space: nowrap; }
.sess-h .cd { text-align: right; }
.sess-f { text-align: center; font-size: .74rem; color: var(--dim); }
.cd { font-family: var(--mono); font-size: .72rem; color: var(--accent); }
.spot-f { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding-top: 4px; }
.more { color: var(--accent); font-weight: 600; font-size: .86rem; margin-left: auto; }
.more:hover { text-decoration: underline; }
.vs-m { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: start; gap: 10px; }
.vs-t { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; min-width: 0; }
.vs-t b { font-family: var(--display); font-size: 1rem; line-height: 1.2; overflow-wrap: anywhere; }
.vs-logo { width: 60px; height: 60px; border-radius: 16px; object-fit: cover; font-size: .8rem; box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .9); }
.vs-m > .vs { display: inline-grid; place-items: center; align-self: start; margin-top: 16px; width: 30px; height: 28px; border-radius: 8px; border: 1px solid var(--line-2); font-family: var(--mono); font-weight: 700; font-size: .66rem; letter-spacing: .06em; color: var(--dim); }
.reg .prog { margin-top: 4px; max-width: none; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; padding: 12px 0; border-block: 1px solid var(--line); font-size: .88rem; }
.facts dt { color: var(--dim); }
.facts dd { font-weight: 600; }
.reg-cta { align-self: flex-start; }
.holder { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: .84rem; }
/* preseason (a series without events yet): the "Segera hadir" card and the line under the title */
.pre-c { gap: 10px; }
.pre-t { font-family: var(--display); font-size: clamp(1.8rem, 3.4vw, 2.4rem); font-weight: 800; line-height: 1; }
.pre-p { color: var(--muted); font-size: .92rem; }
.pre-a { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.pre-l { margin-top: 22px; max-width: 46ch; color: var(--muted); }
.next-l { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 18px; font-size: .88rem; color: var(--muted); }
.next-l .tag { padding: 3px 9px; border-radius: var(--r-pill); background: color-mix(in srgb, var(--accent) 14%, transparent); }

/* champion card (finished season) and title holder */
.spot.champ { background: linear-gradient(160deg, color-mix(in srgb, var(--gold) 14%, var(--bg-1)), color-mix(in srgb, var(--bg-1) 88%, transparent) 65%); border-color: color-mix(in srgb, var(--gold) 45%, transparent); }
.spot.champ::before { background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.champ-main { display: flex; align-items: center; gap: 18px; }
.champ-main b { font-family: var(--display); font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.05; letter-spacing: -.02em; }
.champ-logo { width: 84px; height: 84px; border-radius: 22px; object-fit: cover; flex: none; font-size: 1rem;
  box-shadow: 0 0 0 3px var(--bg-0), 0 0 0 5px var(--gold), 0 20px 50px -18px color-mix(in srgb, var(--gold) 70%, transparent); }
.podium { list-style: none; counter-reset: p 1; display: flex; flex-direction: column; gap: 8px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); }
.podium li { display: flex; align-items: center; gap: 12px; counter-increment: p; }
.podium li::before { content: counter(p); display: grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; font-family: var(--mono); font-size: .72rem; font-weight: 700; color: var(--bg-0); background: #C3CCDB; flex: none; }
.podium li:nth-child(2)::before { background: #C98A5B; }
.mvp { display: flex; align-items: center; gap: 12px; padding-top: 12px; border-top: 1px solid var(--line); font-size: .86rem; color: var(--muted); }
.mvp .tag { flex: none; }
.mvp b { color: var(--text); }
.mvp .badge { margin-left: auto; }
.hof { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 12px; }
.hof-c { position: relative; overflow: hidden; display: flex; align-items: center; gap: 16px; padding: 16px 18px; transition: border-color .2s, transform .25s var(--ease-out); }
.hof-c::after { content: ""; position: absolute; right: -30px; top: -30px; width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--gold) 18%, transparent), transparent); pointer-events: none; }
.hof-c:hover, .hof-c.on { border-color: color-mix(in srgb, var(--gold) 60%, transparent); }
.hof-c.on { background: linear-gradient(160deg, color-mix(in srgb, var(--gold) 10%, var(--bg-1)), var(--bg-1) 70%); }
.hof-c:hover { transform: translateY(-2px); }
.hof-logo { width: 60px; height: 60px; border-radius: 16px; object-fit: cover; flex: none; font-size: .8rem; box-shadow: 0 0 0 2px var(--bg-0), 0 0 0 3px color-mix(in srgb, var(--gold) 70%, transparent); }
.hof-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hof-t small { font-family: var(--mono); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.hof-t b { font-family: var(--display); font-size: 1.12rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* team badges */
.tm { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.tm .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tm .tx { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.tm .tm-k { font-size: .74em; font-weight: 500; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.badge { width: 28px; height: 28px; flex: none; border-radius: 8px; object-fit: cover; font-size: .52rem; }
.ini { display: grid; place-items: center; font-family: var(--mono); font-weight: 700; letter-spacing: .02em;
  color: hsl(var(--h) 70% 78%); background: hsl(var(--h) 35% 22%); border: 1px solid hsl(var(--h) 40% 32%); }
.tm.tbd { color: var(--dim); font-style: italic; }
.tm.tbd .badge { border: 1px dashed var(--line-2); }

/* schedule */
.seg { display: inline-flex; padding: 3px; border-radius: var(--r-pill); background: var(--bg-1); border: 1px solid var(--line); }
.seg button { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: var(--r-pill); font-size: .84rem; font-weight: 600; color: var(--muted); transition: background .2s, color .2s; }
.seg button b { font-family: var(--mono); font-size: .72rem; color: var(--accent); }
.seg button[aria-pressed="true"] { background: var(--bg-3); color: var(--text); }
.sched { display: flex; flex-direction: column; gap: 22px; }
.sched[data-only="live"] .fx:not(.is-live), .sched[data-only="live"] .day:not(.has-live) { display: none; }
.day-h { display: flex; align-items: center; gap: 10px; font-family: var(--body); font-size: .84rem; font-weight: 500; color: var(--dim); margin-bottom: 10px; }
.day-h b { font-family: var(--display); font-size: 1.05rem; color: var(--text); }
.day-h .rel { padding: 2px 9px; border-radius: var(--r-pill); background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent); font-family: var(--mono); font-size: .62rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.day-h::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.fx { display: grid; grid-template-columns: 72px minmax(0, 1fr) 160px; align-items: center; gap: 16px; padding: 12px 16px 12px 18px; background: var(--bg-1); border: 1px solid var(--line); transition: border-color .2s, background .2s; }
.fx + .fx { margin-top: -1px; }
.day .fx:first-of-type { border-radius: var(--r-md) var(--r-md) 0 0; }
.day .fx:last-of-type { border-radius: 0 0 var(--r-md) var(--r-md); }
.day .fx:only-of-type { border-radius: var(--r-md); }
.fx:hover { background: var(--bg-2); position: relative; z-index: 1; border-color: var(--line-2); }
.fx.is-live { box-shadow: inset 3px 0 0 var(--accent); background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 7%, var(--bg-1)), var(--bg-1) 40%); }
.fx.is-air { box-shadow: inset 3px 0 0 var(--live); }
.fx-time { display: flex; flex-direction: column; line-height: 1.15; }
.fx-time b { font-size: 1.15rem; letter-spacing: -.02em; }
.fx-time small { font-size: .64rem; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.fx-m { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 14px; font-weight: 600; font-size: .95rem; }
.fx-a, .fx-b { display: flex; align-items: center; gap: 10px; min-width: 0; }
.fx-a { justify-content: flex-end; text-align: right; }
.fx-m .badge { width: 34px; height: 34px; border-radius: 10px; }
.fx-m .vs { display: inline-grid; place-items: center; min-width: 30px; height: 26px; padding-inline: 6px; border-radius: 7px; border: 1px solid var(--line-2); font-family: var(--mono); font-size: .62rem; font-weight: 700; letter-spacing: .08em; color: var(--dim); }
.fx-x { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; font-size: .76rem; }
.more-l { margin-top: 14px; }

/* standings */
.legend { display: inline-flex; align-items: center; gap: 14px; font-size: .82rem; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend .sw { width: 10px; height: 10px; border-radius: 3px; background: var(--accent); }
.legend .sw.lo { background: var(--blue); }
.groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr)); gap: 14px; }
.grp { min-width: 0; overflow: hidden; }
.grp-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 13px 16px; border-bottom: 1px solid var(--line); background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 8%, transparent), transparent 60%); }
.grp-h b { font-family: var(--display); font-size: 1.05rem; }
.grp-h .dim { font-size: .74rem; }
.tbl-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .88rem; }
th { font-family: var(--mono); font-size: .64rem; font-weight: 500; letter-spacing: .08em; color: var(--dim); padding: 9px 6px; text-align: center; white-space: nowrap; }
td { padding: 9px 6px; text-align: center; border-top: 1px solid var(--line); color: var(--muted); font-variant-numeric: tabular-nums; }
th:first-child, td:first-child { padding-left: 16px; }
th:last-child, td:last-child { padding-right: 16px; }
tbody tr { transition: background .15s; }
tbody tr:hover { background: color-mix(in srgb, var(--text) 3%, transparent); }
.l { text-align: left; max-width: 0; width: 100%; color: var(--text); }
.pts { color: var(--text); font-weight: 700; font-size: .95rem; }
td.rk { font-family: var(--mono); font-weight: 600; color: var(--dim); }
tr.zone td:first-child { box-shadow: inset 3px 0 0 var(--accent); color: var(--accent); }
tr.zone.zl td:first-child { box-shadow: inset 3px 0 0 var(--blue); color: var(--blue); }
tr.out td { opacity: .5; }
.form { display: inline-flex; gap: 3px; }
.form i { width: 8px; height: 8px; border-radius: 2px; background: var(--bg-3); }
.form i.fw { background: var(--win); }
.form i.fl { background: var(--loss); }
.form i.ft { background: var(--dim); }
.lobbies { grid-template-columns: repeat(auto-fill, minmax(min(100%, 520px), 1fr)); }
.lobbies.one { grid-template-columns: minmax(0, 1fr); }
.lobby .tag.sm { margin-left: 6px; vertical-align: middle; }
/* the team chip stays inside its cell, so a long name ends in an ellipsis instead of running over the numbers */
td.l .tm { max-width: 100%; vertical-align: middle; }
.medal td:nth-child(n+3):not(.pts) { font-family: var(--mono); }
.md { display: inline-block; width: 11px; height: 11px; border-radius: 50%; vertical-align: middle; }
.md.g { background: var(--gold); }
.md.s { background: #C3CCDB; }
.md.b { background: #C98A5B; }

/* about */
.about { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px 32px; align-items: start; padding: 20px; }
.about-tx { display: flex; flex-direction: column; gap: 10px; color: var(--muted); max-width: 70ch; }
.about-l { display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
.about-l .btn { justify-content: space-between; }
@media (max-width: 760px) { .about { grid-template-columns: 1fr; } .about-l { flex-direction: row; flex-wrap: wrap; } }

/* bracket */
.fold { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--bg-1); }
.fold summary { padding: 14px 16px; cursor: pointer; font-weight: 600; font-size: .92rem; list-style: none; }
.fold summary::-webkit-details-marker { display: none; }
.fold summary::before { content: "▸"; display: inline-block; margin-right: 8px; color: var(--accent); transition: transform .2s; }
.fold[open] summary::before { transform: rotate(90deg); }
.fold summary .dim { font-weight: 400; font-size: .84rem; }
.fold > .side { padding: 0 16px 16px; }
.side + .side { margin-top: 22px; }
.side > .eyebrow { margin-bottom: 10px; }
.rounds { display: flex; gap: 22px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: thin; }
.round { display: flex; flex-direction: column; gap: 10px; min-width: 236px; flex: none; }
.rm { flex: 1; display: flex; flex-direction: column; justify-content: space-around; gap: 12px; }
.rh { font-family: var(--mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.round.gf .rh { color: var(--gold); border-color: color-mix(in srgb, var(--gold) 40%, transparent); }
.bm { position: relative; display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; border-radius: var(--r-sm); background: var(--bg-1); border: 1px solid var(--line); transition: border-color .2s; }
.fold .bm { background: var(--bg-2); }
a.bm:hover { border-color: var(--accent); }
/* stubs that join the columns, so the tree reads as a bracket */
.round:not(:first-child) .bm::before { content: ""; position: absolute; left: -23px; top: 50%; width: 22px; height: 1px; background: var(--line-2); }
.round:not(:last-child) .bm::after { content: ""; position: absolute; right: -12px; top: 50%; width: 11px; height: 1px; background: var(--line-2); }
.round.gf .bm { border-color: color-mix(in srgb, var(--gold) 45%, transparent); background: linear-gradient(160deg, color-mix(in srgb, var(--gold) 10%, var(--bg-1)), var(--bg-1) 70%); }
.bh { font-size: .62rem; color: var(--dim); margin-bottom: 4px; }
.ln { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 3px 0; font-size: .88rem; color: var(--muted); }
.ln .badge { width: 22px; height: 22px; border-radius: 6px; font-size: .44rem; }
.ln b { min-width: 22px; text-align: right; }
.ln.win { color: var(--text); font-weight: 700; }
.ln.win b { color: var(--accent); }

/* results */
.results { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 12px; }
.res { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; transition: border-color .2s, transform .25s var(--ease-out); }
.res:hover { border-color: var(--accent); transform: translateY(-1px); }
.res .ln b { font-size: 1.05rem; }
.ctx { font-size: .74rem; color: var(--dim); }

/* footer */
.foot { position: relative; border-top: 1px solid var(--line); padding-block: 32px 36px; margin-top: 32px; font-size: .84rem; background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--accent) 4%, transparent)); }
.foot-in { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px 32px; align-items: start; }
.foot-b { display: flex; align-items: center; gap: 12px; }
.foot-b img { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; }
.foot-b b { display: block; font-family: var(--display); font-size: 1rem; letter-spacing: .03em; }
.foot-b small { color: var(--dim); }
.foot-r { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; text-align: right; }
.foot .safe { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: .78rem; }

@media (max-width: 900px) {
  .foot-in { grid-template-columns: 1fr; }
  .foot-r { align-items: flex-start; text-align: left; }
}
@media (max-width: 640px) {
  .brand-tx { display: none; }
  .nav-in { gap: 10px; }
  .links a { padding: 8px; }
  .emb-l .eyebrow { font-size: .62rem; letter-spacing: .1em; }
  .stats div { padding-right: 14px; margin-right: 14px; }
  .stats dd { font-size: 1.5rem; }
  .fx { grid-template-columns: 56px minmax(0, 1fr); gap: 12px; padding: 12px; }
  .fx-x { grid-column: 2; flex-direction: row; justify-content: space-between; align-items: center; }
  .fx-m { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .fx-a { flex-direction: row-reverse; justify-content: flex-end; text-align: left; }
  .fx-m .vs { display: none; }
  .fx-m .badge { width: 28px; height: 28px; border-radius: 8px; }
  th.fm, td.fm { display: none; }
  .vs-logo { width: 50px; height: 50px; }
  .champ-logo { width: 68px; height: 68px; border-radius: 18px; }
}


/* podium */
.stage { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: clamp(8px, 2vw, 18px); max-width: 860px; margin-inline: auto; }
.step { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; min-width: 0; transition: transform .25s var(--ease-out); }
.step:hover { transform: translateY(-3px); }
.st-logo { width: clamp(56px, 9vw, 88px); height: clamp(56px, 9vw, 88px); border-radius: 22%; object-fit: cover; font-size: .8rem; box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .9); }
.s1 .st-logo { width: clamp(72px, 12vw, 116px); height: clamp(72px, 12vw, 116px); }
.step b { font-family: var(--display); font-size: clamp(.92rem, 1.8vw, 1.2rem); line-height: 1.15; margin-top: 6px; max-width: 100%; overflow-wrap: anywhere; }
.st-u { font-size: .8rem; color: var(--muted); min-height: 1.2em; }
.blk { --c: var(--bronze); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; width: 100%; margin-top: 10px; border-radius: 14px 14px 4px 4px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 34%, var(--bg-2)), var(--bg-1)); border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); border-bottom: 0; }
.s1 .blk { --c: var(--gold); height: 150px; }
.s2 .blk { --c: var(--silver); height: 110px; }
.s3 .blk { height: 84px; }
.st-n { font-family: var(--display); font-weight: 700; font-size: clamp(1.8rem, 4vw, 2.8rem); line-height: 1; color: var(--c); }
.blk small { font-family: var(--mono); font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* champion squad */
.pls { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr)); gap: 12px; }
.pl { display: flex; flex-direction: column; overflow: hidden; transition: border-color .2s, transform .25s var(--ease-out); }
a.pl:hover { border-color: color-mix(in srgb, var(--gold) 55%, transparent); transform: translateY(-2px); }
.pl-ph { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center top; background: var(--bg-2); }
.pl-ph.none { display: flex; align-items: flex-end; justify-content: center; background: linear-gradient(160deg, var(--bg-3), var(--bg-1)); }
.pl-ph.none svg { width: 78%; fill: rgba(150, 180, 240, .16); }
.pl-tx { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px 12px; min-width: 0; }
.pl-tx small { font-family: var(--mono); font-size: .6rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.pl-tx b { font-family: var(--display); font-size: .98rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-tx .dim { font-size: .76rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* journey */
.journey { list-style: none; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(180px, 1fr); gap: 14px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.jr { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: var(--r-md); background: var(--bg-1); border: 1px solid var(--line); font-size: .84rem; }
.jr:not(:last-child)::after { content: ""; position: absolute; top: 34px; right: -15px; width: 16px; height: 2px; background: color-mix(in srgb, var(--gold) 50%, transparent); }
.jr b { font-family: var(--display); font-size: 1.02rem; }
.jr-n { display: flex; align-items: baseline; gap: 6px; font-size: 1.9rem; font-weight: 600; line-height: 1.1; color: var(--text); }
.jr-n small { font-size: .7rem; color: var(--dim); letter-spacing: .08em; text-transform: uppercase; }
.jr.win { border-color: color-mix(in srgb, var(--gold) 55%, transparent); background: linear-gradient(160deg, rgba(242, 178, 51, .14), var(--bg-1) 70%); }
.jr.win .jr-n { color: var(--gold); }
.jr.win .tm { font-weight: 700; color: var(--text); }

/* kontingen */
.kts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 10px; }
.kt { padding: 12px 14px; }
.kt.med { border-color: color-mix(in srgb, var(--gold) 40%, transparent); }
.kt-h { display: flex; align-items: center; gap: 8px; padding-bottom: 8px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.kt-h b { font-size: .9rem; flex: 1; min-width: 0; }
.kt-h .mono { font-size: .7rem; }
.kt-t { display: flex; flex-direction: column; gap: 6px; font-size: .82rem; color: var(--muted); }
.kt-t .badge { width: 22px; height: 22px; border-radius: 6px; }
.kt-t .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* folded detail, hall of fame podium */
.fold.big summary { padding: 16px 18px; }
.fold-in { padding: 0 16px 16px; }
.hof-r { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 4px; font-size: .74rem; color: var(--muted); }
.hof-r .md { width: 8px; height: 8px; }

@media (max-width: 640px) {
  .s1 .blk { height: 112px; }
  .s2 .blk { height: 84px; }
  .s3 .blk { height: 64px; }
  .st-u { font-size: .7rem; }
  .journey { grid-auto-flow: row; grid-auto-columns: auto; }
  .jr:not(:last-child)::after { top: auto; bottom: -13px; right: auto; left: 34px; width: 2px; height: 12px; }
}

/* company chip next to a team (podium, champion team) */
.co-chip { width: 22px; height: 22px; border-radius: 6px; object-fit: contain; background: #fff; padding: 2px; flex: none; }
.st-u.with, .ct-co.with { display: inline-flex; align-items: center; gap: 6px; }

/* participating companies */
.cos { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 12px; }
.co { display: flex; flex-direction: column; gap: 12px; padding: 14px; transition: border-color .2s; }
.co.med.g { border-color: rgba(233, 185, 73, .55); background: linear-gradient(160deg, rgba(233, 185, 73, .1), var(--bg-1) 60%); }
.co.med.s { border-color: color-mix(in srgb, var(--silver) 40%, transparent); }
.co.med.b { border-color: color-mix(in srgb, var(--bronze) 45%, transparent); }
.co-h { display: flex; align-items: center; gap: 12px; }
.co-logo { width: 58px; height: 58px; flex: none; border-radius: 14px; object-fit: contain; background: #fff; padding: 6px; }
.co-logo.none { display: grid; place-items: center; background: var(--bg-3); color: var(--muted); font-family: var(--display); font-weight: 700; }
.co-n { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.co-n b { font-size: .9rem; line-height: 1.25; }
.co-r { align-self: flex-start; padding: 2px 9px; border-radius: var(--r-pill); font-family: var(--mono); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line-2); }
.co-r.top { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.co-r.g { color: #1A1204; background: var(--gold); border-color: var(--gold); }
.co-r.s { color: #111; background: var(--silver); border-color: var(--silver); }
.co-r.b { color: #1A0E06; background: var(--bronze); border-color: var(--bronze); }
.co-t { display: flex; flex-direction: column; gap: 6px; padding-top: 10px; border-top: 1px solid var(--line); font-size: .84rem; color: var(--muted); }
.co-t .badge { width: 22px; height: 22px; border-radius: 6px; }

/* champion team */
.ct { padding: 18px; }
.ct-h { display: flex; align-items: center; gap: 14px; padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.ct-h b { display: block; font-family: var(--display); font-size: 1.3rem; text-transform: uppercase; }
.ct-logo { width: 64px; height: 64px; border-radius: 16px; object-fit: cover; flex: none; }
.ct-co { color: var(--muted); font-size: .86rem; margin-top: 2px; }
.roster { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 8px; }
.rs { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: var(--r-sm); background: var(--bg-2); border: 1px solid var(--line); min-width: 0; }
a.rs:hover { border-color: color-mix(in srgb, var(--accent) 50%, transparent); }
.rs b { font-family: var(--display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rs .dim { font-size: .78rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rs small { font-family: var(--mono); font-size: .6rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }

/* how to take part */
.join { display: flex; flex-direction: column; gap: 14px; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 12px; }
.sp { display: flex; flex-direction: column; gap: 6px; padding: 18px; font-size: .9rem; }
.sp-n { font-size: 1.6rem; font-weight: 600; color: var(--accent); line-height: 1; margin-bottom: 6px; }
.sp b { font-family: var(--display); font-size: 1.05rem; }
.join-f { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.pc { display: flex; align-items: center; gap: 12px; padding: 12px 16px; flex-wrap: wrap; }
.pc small { font-family: var(--mono); font-size: .6rem; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.pc b { font-size: .95rem; }