/* [league] BAJNOKSÁG – B · Műszak tokenekre (style.css :root): fekete-fehér, hajszálvonal; EGYETLEN akcentus a pálya fénye
   (saját klán, következő meccsed). Szín csak jelentéssel: feljutó zóna (zöld), kieső zóna (piros), élő (piros pont).
   A crew-jelzés visszafogott: Rózsák tömör papír-négyzet, Nefelejcsek vonalkázott (mint a klán-jelvényeken). */

/* ---------- Klán-menü: 4 fül; a Bajnokság fülön szélesebb panel (asztalon) ---------- */
.cm-tabs { grid-template-columns: repeat(4, 1fr); }
.cm-tabs button { font-size: 19px; }
@media (min-width: 761px) {
  .cm-body[data-tab="league"] { grid-template-columns: minmax(0, 1fr) clamp(560px, 46vw, 760px); }
}

.lg-cr { display: inline-block; flex: none; width: 8px; height: 8px; border-radius: 1px; background: rgba(245, 242, 236, .55); vertical-align: middle; }
.lg-cr.nf { background: repeating-linear-gradient(-45deg, rgba(245, 242, 236, .7) 0 1px, transparent 1px 3px); box-shadow: inset 0 0 0 1px rgba(245, 242, 236, .55); }
.lg-live { display: inline-flex; align-items: center; gap: 6px; height: 20px; padding: 0 7px; border-radius: var(--r-xs); background: var(--bad-t); color: var(--bad); font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.lg-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--bad); animation: lgPulse 1.4s ease-in-out infinite; }
@keyframes lgPulse { 50% { opacity: .3; } }

/* Piaci pozíció */
.lg-race { display: grid; gap: 8px; padding: 12px 14px; border-radius: var(--r); background: var(--fill); box-shadow: inset 0 0 0 1px var(--line); }
.lg-race-h { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 10px; }
.lg-race-h small { font-family: var(--f-disp); font-weight: 800; font-size: 18px; text-transform: uppercase; color: var(--ink); white-space: nowrap; }
.lg-race-h span { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); }
.lg-race-bar { display: flex; height: 8px; border-radius: 2px; overflow: hidden; gap: 2px; }
.lg-race-bar i { display: block; height: 100%; transition: width .6s var(--ease-film, ease); }
.lg-race-bar i.rz { background: var(--ink); }
.lg-race-bar i.nf { background: repeating-linear-gradient(-45deg, rgba(245, 242, 236, .6) 0 1.5px, rgba(245, 242, 236, .12) 1.5px 5px); }
.lg-race-l { display: flex; justify-content: space-between; gap: 10px; font-family: var(--f-mono); font-size: 13px; color: var(--ink-2); }
.lg-race-l span { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; min-width: 0; }
.lg-race-l span.r { justify-content: flex-end; text-align: right; }
.lg-race-l b { font-family: var(--f-body); font-weight: 600; color: var(--ink); }
.lg-race-l small { flex-basis: 100%; font-size: 10.5px; color: var(--dim); letter-spacing: .04em; }

/* szezon-sor, saját csapat */
.lg-season { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.lg-season > div { display: grid; gap: 4px; }
.lg-season small { font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.lg-season b { font-family: var(--f-disp); font-weight: 900; font-size: 34px; line-height: .9; text-transform: uppercase; }
.lg-nextr { display: inline-flex; align-items: center; gap: 6px; font-family: var(--f-mono); font-size: 12px; color: var(--ink-2); }
.lg-nextr .ic { width: 14px; height: 14px; color: var(--muted); }
.lg-me { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 12px 14px; border-radius: var(--r); background: var(--light-t); box-shadow: inset 0 0 0 1px rgba(243, 162, 91, .45); }
.lg-me.none { background: var(--fill); box-shadow: inset 0 0 0 1px var(--line); }
.lg-me.none > div { display: grid; gap: 3px; flex: 1 1 200px; }
.lg-me.none small { font-size: 12.5px; color: var(--muted); }
.lg-me-id { display: grid; gap: 3px; flex: 0 1 auto; min-width: 0; }
.lg-me-id small, .lg-nx small { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.lg-me-id b { font-family: var(--f-disp); font-weight: 800; font-size: 22px; text-transform: uppercase; color: var(--light); white-space: nowrap; }
.lg-hon { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--ink-2); }
.lg-hon .ic { width: 13px; height: 13px; color: var(--light); }
.lg-nx { display: grid; gap: 2px; flex: 1 1 180px; min-width: 0; padding-left: 14px; border-left: 1px solid rgba(243, 162, 91, .3); }
.lg-nx b { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lg-nx span { font-family: var(--f-mono); font-size: 12px; color: var(--ink-2); }
.lg-nx.live { display: flex; align-items: center; gap: 10px; }

/* osztály-váltó */
.lg-divrow { display: flex; align-items: center; gap: 12px; }
.lg-divrow > span { font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.lg-divrow .lg-divs { flex: 1; }
.lg-divs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 2px; padding: 3px; border-radius: var(--r-sm); background: var(--fill); box-shadow: inset 0 0 0 1px var(--line); }
.lg-divs button { all: unset; box-sizing: border-box; cursor: var(--cur-ptr, pointer); position: relative; height: 32px; display: grid; place-items: center; border-radius: 3px; font-family: var(--f-mono); font-size: 14px; font-weight: 500; color: var(--muted); white-space: nowrap; transition: background var(--t), color var(--t); }
.lg-divs button:hover { color: var(--ink); }
.lg-divs button[aria-checked="true"] { background: var(--paper); color: var(--on-paper); }
.lg-divs button.mine::after { content: ""; position: absolute; top: 5px; right: 6px; width: 5px; height: 5px; border-radius: 50%; background: var(--light); }
.lg-divs button:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }

/* tabella */
.lg-tab { width: 100%; border-collapse: collapse; font-family: var(--f-mono); font-size: 13px; table-layout: fixed; }
.lg-tab th { height: 28px; font-weight: 400; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); text-align: center; border-bottom: 1px solid var(--line); }
.lg-tab td { height: 40px; text-align: center; color: var(--ink-2); border-bottom: 1px solid var(--line); white-space: nowrap; }
.lg-tab th.rk, .lg-tab td.rk { width: 30px; text-align: left; padding-left: 8px; }
.lg-tab th.nm { text-align: left; width: auto; }
.lg-tab th:not(.rk):not(.nm):not(.fo):not(.kd) { width: 30px; }
.lg-tab th.kd { width: 40px; } .lg-tab th.pt { width: 34px; } .lg-tab th.fo { width: 104px; }
.lg-tab td.nm { text-align: left; overflow: hidden; }
.lg-nmw { display: flex; align-items: center; gap: 8px; min-width: 0; }
.lg-nmw > span { display: grid; min-width: 0; }
.lg-tab td.nm b { font-family: var(--f-body); font-weight: 600; font-size: 14px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; }
.lg-tab td.nm small { font-family: var(--f-body); font-size: 10.5px; color: var(--dim); }
.lg-tk { margin-left: 3px; font-style: normal; color: var(--muted); }
.lg-cup { display: inline-flex; align-items: center; gap: 2px; margin-right: 6px; font-style: normal; color: var(--light); }
.lg-cup .ic { width: 11px; height: 11px; }
.lg-tab td.pt { font-weight: 500; color: var(--ink); font-size: 14px; }
.lg-tab td.kd { color: var(--muted); }
.lg-tab tr.up td.rk { box-shadow: inset 2px 0 0 var(--acc); color: var(--acc); }
.lg-tab tr.down td.rk { box-shadow: inset 2px 0 0 var(--bad); color: var(--bad); }
.lg-tab tr.mine td { background: var(--light-t); }
.lg-tab tr.mine td.nm b, .lg-tab tr.mine td.pt { color: var(--light); }
.lg-z { display: inline-block; width: 8px; height: 8px; margin: 0 4px 0 8px; border-radius: 1px; vertical-align: 0; }
.lg-z.up { background: var(--acc); } .lg-z.down { background: var(--bad); }
.lg-form { display: inline-flex; gap: 2px; }
.lg-form i { display: inline-grid; place-items: center; min-width: 15px; padding: 0 2px; box-sizing: border-box; height: 15px; border-radius: 2px; font-style: normal; font-size: 9.5px; font-weight: 500; color: var(--on-paper); background: var(--muted); }
.lg-form i.w { background: var(--ink); } .lg-form i.d { background: var(--dim); color: var(--ink); } .lg-form i.l { background: transparent; box-shadow: inset 0 0 0 1px var(--line-3); color: var(--muted); }
.lg-form i.n { background: none; color: var(--dim); width: auto; }
.lg-tie { font-size: 11.5px; }

/* menetrend / eredmények */
.lg-rd { display: grid; gap: 2px; }
.lg-rd + .lg-rd { margin-top: 8px; }
.lg-rd-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 4px 0; }
.lg-rd-h b { font-family: var(--f-disp); font-weight: 800; font-size: 16px; text-transform: uppercase; }
.lg-rd-h span { font-family: var(--f-mono); font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.lg-ms { list-style: none; margin: 0; padding: 0; display: grid; }
.lg-m { display: grid; grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1fr) 62px; align-items: center; gap: 8px; min-height: 36px; padding: 0 8px; border-radius: var(--r-sm); font-size: 13.5px; }
.lg-m:nth-child(odd) { background: var(--fill); }
.lg-m .h { display: flex; align-items: center; justify-content: flex-end; gap: 7px; text-align: right; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.lg-m .a { display: flex; align-items: center; gap: 7px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.lg-m .sc { text-align: center; font-family: var(--f-mono); }
.lg-m .sc b { font-weight: 500; font-size: 15px; }
.lg-m .sc b.vs { color: var(--dim); }
.lg-m .sc b.lv { color: var(--bad); font-size: 11px; letter-spacing: .1em; }
.lg-m small { font-family: var(--f-mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lg-m.mine { box-shadow: inset 2px 0 0 var(--light); }
.lg-m.mine .h, .lg-m.mine .a { color: var(--ink); }
.lg-m.mine .sc b { color: var(--light); }
.lg-m[data-cm] { cursor: var(--cur-ptr, pointer); transition: background var(--t); }
.lg-m[data-cm]:hover { background: var(--fill-3); }
.lg-m[data-cm]:focus-visible { outline: none; background: var(--fill-3); box-shadow: inset 2px 0 0 var(--ink); }

/* meccs-részletek */
.lg-mh { display: grid; gap: 10px; }
.lg-mh > small { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.lg-score { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 14px; }
.lg-score b { font-family: var(--f-disp); font-weight: 800; font-size: 24px; line-height: .95; text-transform: uppercase; color: var(--ink-2); overflow-wrap: anywhere; }
.lg-score b:first-child { text-align: right; }
.lg-score b.w { color: var(--ink); }
.lg-score span { font-family: var(--f-disp); font-weight: 900; font-size: 54px; line-height: .85; white-space: nowrap; }
.lg-score span i { font-style: normal; color: var(--dim); margin: 0 4px; }
.lg-kl { text-align: center; font-family: var(--f-mono); font-size: 12px; color: var(--muted); }
.lg-sum { font-size: 14.5px; color: var(--ink); }
.lg-rlw { display: flex; align-items: center; gap: 10px; }
.lg-rlw small { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); white-space: nowrap; }
.lg-rl { display: flex; gap: 3px; flex-wrap: wrap; }
.lg-rl i { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 3px; font-style: normal; font-family: var(--f-mono); font-size: 10.5px; }
.lg-rl i.h { background: var(--ink); color: var(--on-paper); }
.lg-rl i.a { box-shadow: inset 0 0 0 1px var(--line-3); color: var(--ink-2); }
.lg-tms { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.lg-tm .cm-sh h3 { display: inline-flex; align-items: center; gap: 8px; font-size: 17px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lg-pt { width: 100%; border-collapse: collapse; font-family: var(--f-mono); font-size: 12.5px; table-layout: fixed; }
.lg-pt th { font-weight: 400; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); height: 24px; width: 26px; }
.lg-pt th.nm { text-align: left; width: auto; }
.lg-pt td { height: 30px; text-align: center; color: var(--ink-2); border-bottom: 1px solid var(--line); }
.lg-pt td.nm { text-align: left; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.lg-pt td.nm b { font-family: var(--f-body); font-weight: 600; font-size: 13px; color: var(--ink); }
.lg-pt tr.mvp td.nm b { color: var(--light); }
.lg-fl, .lg-mvp { margin-left: 6px; font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); }
.lg-fl.hu { color: var(--ink-2); }
.lg-mvp { color: var(--light); }
.lg-x { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 13px; }
.lg-x li { display: grid; grid-template-columns: minmax(0, 1fr) 20px minmax(0, 1fr) 30px; align-items: center; gap: 6px; }
.lg-x li b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lg-x li b:first-child { text-align: right; }
.lg-x li span { display: grid; place-items: center; color: var(--dim); }
.lg-x li span .ic { width: 13px; height: 13px; }
.lg-x li small { font-family: var(--f-mono); color: var(--muted); text-align: right; }

/* felállítás */
.cm-tiles.lg2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lg-cand .cm-seg { flex: none; }
.lg-cand .cm-seg button { padding: 0 9px; }
.lg-cand.out .cm-nm b { color: var(--dim); }

/* ---------- lobbi: „Következő bajnoki meccsed” ---------- */
.lg-chip { all: unset; box-sizing: border-box; cursor: var(--cur-ptr, pointer); flex-basis: 100%; max-width: max-content; display: inline-flex; align-items: center; gap: 10px; min-height: 36px; padding: 6px 12px; border-radius: var(--r-sm);
  background: rgba(12, 12, 14, .55); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--ink-2); font-size: 13.5px; line-height: 1.3; transition: background var(--t), box-shadow var(--t); }
.lg-chip[hidden] { display: none; }
.lg-chip .ic { flex: none; width: 16px; height: 16px; color: var(--light); }
.lg-chip b { color: var(--ink); font-weight: 600; }
.lg-chip:hover { background: rgba(245, 242, 236, .08); box-shadow: inset 0 0 0 1px var(--line-3); }
.lg-chip:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.lg-chip.in-strip { flex-basis: auto; width: 100%; margin-top: 8px; }

/* élő meccs értesítés: a fejléc alatt középen, a többi értesítést nem takarja */
.lg-livebar { position: fixed; z-index: 80; left: 50%; top: 84px; translate: -50% 0; display: flex; align-items: center; gap: 14px; max-width: calc(100vw - 32px); padding: 10px 10px 10px 14px; border-radius: var(--r);
  background: rgba(9, 9, 11, .96); box-shadow: inset 0 0 0 1px rgba(242, 99, 99, .45), var(--sh-lg); color: var(--ink); font-family: var(--f-body); }
.lg-livebar[hidden] { display: none; }
.lg-livebar > div { display: grid; gap: 2px; min-width: 0; }
.lg-livebar small { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.lg-livebar b { font-weight: 600; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lg-cd { font-family: var(--f-mono); font-size: 15px; color: var(--ink-2); min-width: 40px; text-align: right; }
.lg-join { all: unset; box-sizing: border-box; cursor: var(--cur-ptr, pointer); height: 36px; padding: 0 16px; border-radius: var(--r-sm); background: var(--paper); color: var(--on-paper); font-weight: 600; font-size: 14px; white-space: nowrap; }
.lg-join:hover { background: #fff; }
.lg-lx { all: unset; cursor: var(--cur-ptr, pointer); display: grid; place-items: center; width: 32px; height: 32px; border-radius: var(--r-sm); color: var(--muted); }
.lg-lx .ic { width: 16px; height: 16px; }
.lg-lx:hover { color: var(--ink); background: var(--fill-2); }
.lg-join:focus-visible, .lg-lx:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* ---------- mobil ---------- */
@media (max-width: 760px) {
  .cm-tabs button { font-size: 16px; gap: 3px; }
  .cm-tabs button small { display: none; }
  .lg-season b { font-size: 28px; }
  .lg-tab th.fo, .lg-tab td.fo { display: none; }
  .lg-tab th:not(.rk):not(.nm):not(.fo):not(.kd) { width: 24px; }
  .lg-tab th.kd { width: 36px; }
  .lg-tab th.rk, .lg-tab td.rk { width: 24px; padding-left: 6px; }
  .lg-tab td.nm b { font-size: 13px; }
  .lg-m { grid-template-columns: minmax(0, 1fr) 46px minmax(0, 1fr); gap: 6px; padding: 4px 6px; font-size: 12.5px; }
  .lg-m small { grid-column: 1 / -1; text-align: center; margin-top: -2px; }
  .lg-tms { grid-template-columns: 1fr; }
  .lg-score span { font-size: 42px; }
  .lg-score b { font-size: 18px; }
  .lg-livebar { top: auto; bottom: 16px; left: 16px; right: 16px; translate: none; max-width: none; flex-wrap: wrap; }
  .lg-livebar > div { flex: 1 1 140px; }
  .lg-cand { flex-wrap: wrap; }
  .lg-cand .cm-seg { margin-left: auto; }
}
@media (prefers-reduced-motion: reduce) { .lg-live::before { animation: none; } .lg-race-bar i { transition: none; } }

/* [pclan2] bajnoki nevezés: ellenőrzőlista (Saját klán + Bajnokság fül) – fekete-fehér; kész pont: kitöltött jel, hiányzó: üres keret */
.lg-rgl { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--line); border-radius: var(--r); overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.lg-rg { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 4px 6px 4px 12px; background: var(--bg); min-width: 0; }
.lg-rg-m { flex: none; display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line-3); }
.lg-rg.ok .lg-rg-m { background: var(--ink); box-shadow: none; color: var(--on-paper); }
.lg-rg-m .ic { width: 12px; height: 12px; stroke-width: 2.4; }
.lg-rg-l { flex: 1 1 auto; min-width: 0; font-size: 13.5px; color: var(--ink); overflow-wrap: anywhere; }
.lg-rg.ok .lg-rg-l { color: var(--muted); }
.lg-rg .cm-btn { flex: none; height: 30px; }
.lg-rg .cm-btn .ic { width: 13px; height: 13px; }
.lg-rg-st { font-size: 13px; }
.lg-rg-w { margin-top: 2px; }
.lg-rgbox { display: grid; gap: 8px; flex: 1 1 100%; min-width: 0; }
.lg-rg-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.lg-rg-h b { font-family: var(--f-disp); font-weight: 800; font-size: 18px; text-transform: uppercase; letter-spacing: .02em; }
.lg-rg-h span { font-family: var(--f-mono); font-size: 11px; color: var(--muted); }
.lg-me.reg { display: block; }

/* [lgrsvp] visszajelzés a következő meccsre + előlobbi */
.lg-rsvp { flex: 1 1 100%; display: grid; gap: 6px; padding-top: 10px; border-top: 1px solid var(--line-2, rgba(245, 242, 236, .08)); }
.lg-rsvp small { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.lg-rsvp-b { display: flex; flex-wrap: wrap; gap: 8px; }
.lg-rsvp-b .cm-btn.on { box-shadow: inset 0 0 0 1px var(--line-3); background: var(--fill-3); }
.lg-rsvp > span { font-size: 12.5px; color: var(--ink-2); }
.lg-nxw { display: grid; gap: 2px; min-width: 0; }
.lg-join[disabled] { opacity: .45; cursor: default; }

/* [lgcrew] „Minden meccs Rózsa–Nefelejcs” sor (a szezon-fejléc alatt) és a pihenő időpont a menetrendben */
.lg-crx { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-radius: var(--r-sm); box-shadow: inset 0 0 0 1px var(--line); }
.lg-crx-v { display: inline-flex; align-items: center; gap: 5px; flex: none; }
.lg-crx-v .lg-cr { width: 11px; height: 11px; }
.lg-crx-v i:not(.lg-cr) { font-style: normal; font-family: var(--f-mono); color: var(--dim); }
.lg-crx > div { display: grid; gap: 1px; min-width: 0; }
.lg-crx b { font-family: var(--f-disp); font-weight: 800; font-size: 15px; text-transform: uppercase; color: var(--ink); }
.lg-crx small { font-size: 12px; color: var(--muted); }
.lg-rd.rest .lg-rd-h { padding: 6px 8px; border-radius: var(--r-sm); box-shadow: inset 0 0 0 1px var(--line); }
.lg-rd.rest .lg-rd-h b { color: var(--dim); font-size: 14px; }
.lg-rd.rest .lg-rd-h span { color: var(--dim); text-align: right; }

/* ================= [lgzaro] BAJNOKI ZÁRÓKÉP (public/js/lgend.js) =================
   A sima zárókép (menu.css .es) rácsára épül; a főszereplő az osztály tabellája. Fekete-fehér + a pálya fénye a saját klánon;
   zöld / piros csak a zónák jelentésével. A sorok abszolút helyen állnak (--i × --rh): az átrendeződés csak transform. */
/* a #hud (és vele a #endScreen) pointer-events: none – a sima záróképen csak a gombok kattinthatók, a tartalom nem görgethető egérrel /
   ujjal, és a kattintás a játék vásznára esik. A bajnoki zárókép hosszabb (tabella + statisztika): itt a réteg fogadja az eseményeket. */
#endScreen:has(> .lge) { pointer-events: auto; }
.lge { --rh: 44px; }
.lge-head { display: grid; gap: 14px; }
.lge-kick { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 14px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.lge-tag { display: inline-flex; align-items: center; gap: 7px; height: 24px; padding: 0 10px; border-radius: var(--r-xs); background: var(--light-t); color: var(--light); }
.lge-tag .ic { width: 14px; height: 14px; }
.lge-score { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: clamp(12px, 3vw, 48px); }
.lge-tm { display: grid; gap: 6px; min-width: 0; justify-items: start; }
.lge-tm.h { justify-items: end; text-align: right; }
.lge-tm b { font-family: var(--f-disp); font-weight: 900; font-size: clamp(30px, 4.2vw, 68px); line-height: .86; text-transform: uppercase; color: var(--ink-2); overflow-wrap: anywhere; }
.lge-tm.won b { color: var(--ink); }
.lge-tm.me b { color: var(--light); }
.lge-tm small { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.lge-tm .lg-cr { width: 10px; height: 10px; }
.lge-num { display: flex; align-items: center; gap: 14px; font-family: var(--f-disp); font-weight: 900; font-size: clamp(72px, 12vh, 150px); line-height: .78; font-variant-numeric: tabular-nums; }
.lge-num i { font-style: normal; color: var(--dim); font-size: .5em; }
.lge-verdict { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 16px; }
.lge-res { font-family: var(--f-disp); font-weight: 900; font-size: 30px; line-height: 1; text-transform: uppercase; letter-spacing: .02em; }
.lge-res.l { color: var(--muted); }
.lge-gain { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: var(--r-pill); font-family: var(--f-mono); font-size: 14px; font-weight: 500; background: var(--paper); color: var(--on-paper); }
.lge-gain.d { background: var(--fill-3); color: var(--ink); } .lge-gain.l { background: none; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line-3); }
.lge-mv { display: inline-flex; align-items: center; gap: 10px; min-height: 30px; }
.lge-mv:empty { display: none; }
.lge-mv b { display: inline-flex; align-items: center; gap: 4px; font-family: var(--f-disp); font-weight: 900; font-size: 26px; line-height: 1; text-transform: uppercase; }
.lge-mv .ic { width: 20px; height: 20px; stroke-width: 2.4; }
.lge-mv.up b { color: var(--acc); } .lge-mv.dn b { color: var(--bad); } .lge-mv.eq b { color: var(--ink-2); }
.lge-mv span { font-family: var(--f-mono); font-size: 13px; color: var(--ink-2); }
.lge-mv em { font-style: normal; font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; padding: 3px 8px; border-radius: var(--r-xs); }
.lge-mv em.z-up { background: var(--acc-t); color: var(--acc); } .lge-mv em.z-down { background: var(--bad-t); color: var(--bad); }
.lge-mv.on { animation: lgeKick .6s var(--ease-pop, ease) both; }
@keyframes lgeKick { from { transform: scale(1.5); opacity: 0; } }

.lge-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.lge-col { display: grid; gap: 14px; min-width: 0; }
.lge-tab, .lge-ms, .lge-mvp { border-radius: var(--r-lg); background: rgba(14, 14, 16, .72); box-shadow: inset 0 0 0 1px var(--line); padding: 14px 16px 12px; min-width: 0; }
.lge-sh { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; margin-bottom: 8px; }
.lge-sh h3 { font-family: var(--f-disp); font-weight: 800; font-size: 22px; text-transform: uppercase; letter-spacing: .01em; }
.lge-leg { display: flex; gap: 12px; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.lge-leg .lg-z { margin-left: 0; }
.lge-hint, .lge-note { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .04em; color: var(--dim); }
.lge-note { margin-top: 8px; }
/* tabella-sorok */
.lge-thr, .lge-r { display: grid; grid-template-columns: 34px minmax(0, 1fr) 30px 26px 26px 26px 42px 44px 100px; align-items: center; column-gap: 4px; }
.lge-thr { height: 26px; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); border-bottom: 1px solid var(--line); }
.lge-thr .c, .lge-r .c { text-align: center; }
.lge-thr .rk { padding-left: 6px; }
.lge-rows { position: relative; height: calc(var(--n, 10) * var(--rh)); }
.lge-r { position: absolute; left: 0; right: 0; top: 0; height: var(--rh); transform: translate3d(0, calc(var(--i) * var(--rh)), 0); transition: transform 1s var(--ease-film), background-color .4s; border-bottom: 1px solid var(--line); font-family: var(--f-mono); font-size: 13px; color: var(--ink-2); background: var(--bg-2); }
.lge-r .rk { display: inline-grid; place-items: center; width: 26px; height: 26px; margin-left: 4px; border-radius: var(--r-xs); font-size: 13px; color: var(--muted); transition: background-color .4s, color .4s; }
.lge-r[data-z="up"] .rk { background: var(--acc-t); color: var(--acc); }
.lge-r[data-z="down"] .rk { background: var(--bad-t); color: var(--bad); }
.lge-r .nm { display: flex; align-items: center; gap: 8px; min-width: 0; }
.lge-r .nm b { font-family: var(--f-body); font-weight: 600; font-size: 14px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.lge-r .nm small { flex: none; font-family: var(--f-body); font-size: 10.5px; color: var(--dim); }
.lge-r .c.chg { color: var(--ink); font-weight: 500; }
.lge-r .pt { position: relative; }
.lge-r .pt b { display: inline-block; font-weight: 500; font-size: 15px; color: var(--ink); }
.lge-r .kd { color: var(--muted); }
.lge-r.op { background: #141416; }
.lge-r.me { background: #241A12; z-index: 2; box-shadow: inset 2px 0 0 var(--light); }
.lge-r.me .nm b, .lge-r.me .pt b { color: var(--light); }
.lge-r.hit { z-index: 3; }
.lge-r.hit.op { background: #1C1C1F; }
/* +pont: a pont-cellára „rászáll” */
.lge-plus { position: absolute; right: -4px; top: 50%; margin-top: -10px; font-style: normal; font-family: var(--f-disp); font-weight: 900; font-size: 19px; line-height: 1; color: var(--light); opacity: 0; pointer-events: none; }
.lge-plus.g0 { color: var(--dim); }
.lge-plus.on { animation: lgePlus 1.5s var(--ease-out) both; }
@keyframes lgePlus { 0% { opacity: 0; transform: translate(18px, -14px) scale(1.6); } 25% { opacity: 1; transform: none; } 70% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translate(-10px, 0) scale(.7); } }
.lge-r .lg-form i.new { animation: lgeForm .55s var(--ease-pop, ease) .25s both; }
@keyframes lgeForm { from { opacity: 0; transform: translateX(-10px) scale(.4); } }
/* helyezés-változás jelző a saját / ellenfél sorában */
.lge-dl { flex: none; display: inline-flex; align-items: center; gap: 2px; height: 20px; padding: 0 7px 0 5px; border-radius: var(--r-pill); font-style: normal; font-family: var(--f-mono); font-size: 11px; font-weight: 500; white-space: nowrap; }
.lge-dl .ic { width: 12px; height: 12px; stroke-width: 2.6; }
.lge-dl.up { background: var(--acc); color: var(--on-paper); } .lge-dl.dn { background: var(--bad); color: var(--on-paper); } .lge-dl.eq { background: var(--fill-3); color: var(--ink-2); padding: 0 8px; }
.lge-dl.on { animation: lgeKick .5s var(--ease-pop, ease) both; }
/* MVP */
.lge-mvp { display: grid; gap: 6px; background: linear-gradient(120deg, rgba(243, 162, 91, .14), rgba(14, 14, 16, .72) 60%); box-shadow: inset 0 0 0 1px rgba(243, 162, 91, .28); }
.lge-mvp-k { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.lge-mvp-n { font-family: var(--f-disp); font-weight: 900; font-size: clamp(34px, 3.4vw, 54px); line-height: .86; text-transform: uppercase; color: var(--light); overflow-wrap: anywhere; }
.lge-mvp > small { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); font-size: 13px; }
.lge-mvp-s { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 6px; }
.lge-mvp-s span { display: grid; gap: 2px; }
.lge-mvp-s b { font-family: var(--f-disp); font-weight: 900; font-size: 30px; line-height: .9; font-variant-numeric: tabular-nums; }
.lge-mvp-s small { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
/* meccs-statisztika */
.lge-st + .lge-st { margin-top: 12px; }
.lge-sth { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding: 4px 0; }
.lge-sth b { font-weight: 600; color: var(--ink); }
.lge-st.me .lge-sth b { color: var(--light); }
.lge-sth span { margin-left: auto; font-family: var(--f-mono); font-size: 11.5px; color: var(--muted); }
.lge-pt { width: 100%; border-collapse: collapse; font-family: var(--f-mono); font-size: 12.5px; table-layout: fixed; }
.lge-pt th { height: 24px; font-weight: 400; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); text-align: center; border-bottom: 1px solid var(--line); }
.lge-pt th.nm { text-align: left; } .lge-pt th:not(.nm) { width: 34px; } .lge-pt th.dm { width: 58px; }
.lge-pt td { height: 30px; text-align: center; color: var(--ink-2); border-bottom: 1px solid var(--line); }
.lge-pt td.nm { text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lge-pt td.nm b { font-family: var(--f-body); font-weight: 500; color: var(--ink); margin-right: 6px; }
.lge-pt td.nm .es-mvp { margin-left: 4px; }
.lge-pt tr.me td { background: var(--light-t); } .lge-pt tr.me td.nm b { color: var(--light); }
.lge-pt td.dm { color: var(--ink); }
.es.skip .lge-r, .es.skip .lge-plus, .es.skip .lge-dl, .es.skip .lge-mv, .es.skip .lg-form i { transition: none !important; animation: none !important; }
.es.skip .lge-plus { opacity: 0; }
@media (max-width: 1100px) { .lge-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) {
  .lge { --rh: 40px; }
  .lge-score { gap: 10px; }
  .lge-tm b { font-size: clamp(18px, 5.6vw, 30px); }
  .lge-num { font-size: 56px; gap: 8px; }
  .lge-res { font-size: 24px; }
  .lge-tab, .lge-ms, .lge-mvp { padding: 12px 10px 10px; }
  .lge-thr, .lge-r { grid-template-columns: 30px minmax(0, 1fr) 24px 34px 36px 52px; }
  .lge-thr .wdl, .lge-r .wdl { display: none; }
  .lge-r .rk { width: 24px; height: 24px; margin-left: 2px; }
  .lge-r .nm { gap: 6px; } .lge-r .nm b { font-size: 13px; } .lge-r .nm small { display: none; }
  .lge-r .fo .lg-form i:nth-child(n + 4) { display: none; }
  .lge-mvp-s b { font-size: 24px; }
  .lge-pt th.dm { width: 50px; }
}
@media (prefers-reduced-motion: reduce) { .lge-r { transition: none; } .lge-plus.on, .lge-dl.on, .lge-mv.on, .lge-r .lg-form i.new { animation: none; } .lge-plus.on { opacity: 0; } }

/* ================= [lgzaro] Bajnokság fül – Statisztika nézet (lgpane.js statsHtml): toplista-kártyák, a saját sor a pálya fényével ================= */
.lgs-vw { justify-self: start; }
.lgs-ctl { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: end; margin-bottom: 12px; }
.lgs-f { display: grid; gap: 4px; min-width: 0; }
.lgs-f > small { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.lgs-seas { flex-wrap: wrap; }
.lgs-seas button.dim { color: var(--dim); }
.lgs-tm { flex: 1 1 180px; }
.lgs-tm select { height: 32px; min-width: 0; width: 100%; padding: 0 8px; border-radius: var(--r-sm); border: 0; background: var(--fill-2); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--ink); font-size: 13px; }
.lgs-tm select:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.lgs-g { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 10px; }
.lgs-c { display: grid; align-content: start; gap: 6px; padding: 10px 12px 8px; border-radius: var(--r); background: var(--fill); box-shadow: inset 0 0 0 1px var(--line); min-width: 0; }
.lgs-ch { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 8px; }
.lgs-ch h4 { margin: 0; font-family: var(--f-disp); font-weight: 800; font-size: 17px; text-transform: uppercase; letter-spacing: .01em; color: var(--ink); }
.lgs-ch small { font-family: var(--f-mono); font-size: 10px; color: var(--dim); }
.lgs-l { list-style: none; margin: 0; padding: 0; display: grid; }
.lgs-l li { position: relative; display: grid; grid-template-columns: 22px minmax(0, 1fr) auto 38px; align-items: center; gap: 6px; min-height: 34px; padding: 2px 4px; border-bottom: 1px solid var(--line); }
.lgs-l li:last-child { border-bottom: 0; }
.lgs-l .rk { font-family: var(--f-mono); font-size: 12px; color: var(--dim); text-align: right; }
.lgs-l li.p1 .rk { color: var(--ink); font-weight: 500; }
.lgs-l .nm { display: grid; min-width: 0; }
.lgs-l .nm b { font-weight: 600; font-size: 13.5px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lgs-l .nm small { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lgs-l .nm small em { font-style: normal; color: var(--ink-2); }
.lgs-l .v { font-family: var(--f-disp); font-weight: 900; font-size: 22px; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; text-align: right; }
.lgs-l li.p1 .v { font-size: 26px; }
.lgs-l .m { font-family: var(--f-mono); font-size: 10.5px; color: var(--dim); text-align: right; white-space: nowrap; }
.lgs-l li.me { background: var(--light-t); border-radius: var(--r-xs); box-shadow: inset 2px 0 0 var(--light); }
.lgs-l li.me .nm b, .lgs-l li.me .v { color: var(--light); }
.lgs-you { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.lgs-l li.lgs-sep { display: block; min-height: 0; padding: 0 4px; border: 0; text-align: center; font-family: var(--f-mono); color: var(--dim); line-height: 14px; }
.lgs-foot { margin-top: 10px; font-size: 12px; }
@media (max-width: 760px) {
  .lgs-ctl { gap: 8px; }
  .lgs-ctl > .lgs-f { flex: 1 1 100%; }
  .lgs-seas { display: flex; overflow-x: auto; flex-wrap: nowrap; }
  .lgs-l li { grid-template-columns: 20px minmax(0, 1fr) auto 34px; }
}
