/* ==========================================================================
   LENA — design rendszer

   Szinhasznalat: a szin JELENTEST hordoz, nem dekoracio.
     · zold  = az elemzett csapat / jatekos (marka)
     · lila  = az ellenfel
     · kek/piros = a JATEKBELI oldal (Summoner's Rift kek/piros oldal) — ezek
       a jelentesuk miatt fixek, nem cserelhetok
     · zold/piros nyil = jobb/rosszabb a viszonyitasi alapnal — MINDIG nyil
       ikonnal es szoveggel egyutt, mert a zold-piros par szinvaksaggal
       osszekeverheto, es a szin onmagaban nem hordozhatja a jelentest

   A diagram-szineket a dataviz validatorral ellenoriztem (CVD-szeparacio,
   vilagossagi sav, kontraszt) mind vilagos, mind sotet modban.
   ========================================================================== */

:root {
    color-scheme: light;

    /* felszinek */
    --page: #eef4f0;
    --surface: #ffffff;
    --surface-2: #f6faf7;
    --surface-3: #eaf3ee;
    --border: #dbe7e0;
    --border-strong: #c3d6cb;

    /* tinta */
    --ink: #0d1a14;
    --ink-2: #4a5a52;
    --ink-3: #7d8f86;

    /* marka */
    --brand: #0e9f6e;
    --brand-strong: #0a7a54;
    --brand-soft: #d6f4e6;
    --brand-glow: rgba(14, 159, 110, .28);

    /* entitasok */
    --team-a: #0e9f6e;
    --team-b: #7c5cff;
    --team-b-soft: #ece7ff;

    /* jatekbeli oldalak (fix jelentes) */
    --side-blue: #2a78d6;
    --side-red: #e34948;
    --side-blue-soft: #dcebfb;
    --side-red-soft: #fde3e2;

    /* allapot — mindig ikonnal parban */
    --good: #0ca30c;
    --good-soft: #dff5df;
    --bad: #d03b3b;
    --bad-soft: #fbe2e2;
    --warn: #b8860b;
    --warn-soft: #fbf0d4;

    /* pastel kiegeszitok */
    --pastel-mint: #cdefdf;
    --pastel-sky: #d7e9fb;
    --pastel-lilac: #e6dffb;
    --pastel-peach: #fde5d6;
    --pastel-lemon: #fbf1cf;

    --radius: 14px;
    --radius-sm: 9px;
    --shadow: 0 1px 2px rgba(13, 26, 20, .05), 0 4px 14px rgba(13, 26, 20, .05);
    --shadow-lift: 0 2px 6px rgba(13, 26, 20, .07), 0 14px 32px rgba(13, 26, 20, .10);

    --mono: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, monospace;
    --ease: cubic-bezier(.22, .8, .3, 1);
}

:root[data-theme="dark"] {
    color-scheme: dark;

    --page: #0a100e;
    --surface: #0f1613;
    --surface-2: #141d19;
    --surface-3: #1a2621;
    --border: #23322b;
    --border-strong: #31463c;

    --ink: #eaf3ee;
    --ink-2: #9fb3a8;
    --ink-3: #6f847a;

    --brand: #16a06a;
    --brand-strong: #3ddc84;
    --brand-soft: #10281f;
    --brand-glow: rgba(61, 220, 132, .35);

    --team-a: #16a06a;
    --team-b: #7d6ce0;
    --team-b-soft: #1d1a33;

    --side-blue: #3987e5;
    --side-red: #e66767;
    --side-blue-soft: #12233a;
    --side-red-soft: #33191a;

    --good: #35c435;
    --good-soft: #10240f;
    --bad: #e05a5a;
    --bad-soft: #2c1414;
    --warn: #e0a92a;
    --warn-soft: #2a2110;

    --pastel-mint: #16332a;
    --pastel-sky: #14263c;
    --pastel-lilac: #221e3a;
    --pastel-peach: #33231a;
    --pastel-lemon: #2e2914;

    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 4px 14px rgba(0, 0, 0, .3);
    --shadow-lift: 0 2px 6px rgba(0, 0, 0, .5), 0 14px 32px rgba(0, 0, 0, .45);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--page);
    color: var(--ink);
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 14px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

/* Finom hattermintazat — a "gamer" hangulatert, de olvashatosagot nem rontva. */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(680px circle at 12% -6%, var(--brand-glow), transparent 62%),
        radial-gradient(560px circle at 92% 4%, rgba(124, 92, 255, .14), transparent 60%);
    opacity: .75;
}

a { color: var(--brand-strong); text-decoration: none; }
a:hover { text-decoration: underline; }

h1 { font-size: 1.75rem; margin: 0; font-weight: 750; letter-spacing: -.02em; }
h2 { font-size: 1rem; margin: 0 0 .9rem; font-weight: 700; letter-spacing: -.01em; }

h3 {
    font-size: .68rem;
    margin: 0 0 .4rem;
    font-weight: 700;
    color: var(--ink-3);
    text-transform: uppercase;
    letter-spacing: .09em;
}

/* ===================== Elrendezes ===================== */

.shell { display: flex; min-height: 100vh; position: relative; z-index: 1; }

.sidebar {
    width: 216px;
    flex-shrink: 0;
    padding: 1.1rem .8rem;
    background: var(--surface);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: .15rem;
    position: sticky;
    top: 0;
    height: 100vh;
}

.brand {
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: .16em;
    padding: .3rem .7rem 1.2rem;
    display: flex;
    align-items: baseline;
    gap: .1rem;
}

.brand b {
    background: linear-gradient(120deg, var(--brand-strong), var(--team-b));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .55rem .7rem;
    border-radius: var(--radius-sm);
    color: var(--ink-2);
    font-weight: 550;
    position: relative;
    transition: background .18s var(--ease), color .18s var(--ease), transform .18s var(--ease);
}

.nav-link:hover { background: var(--surface-3); color: var(--ink); text-decoration: none; transform: translateX(2px); }

.nav-link.active {
    background: var(--brand-soft);
    color: var(--brand-strong);
    box-shadow: inset 0 0 0 1px var(--border-strong);
}

.nav-link.active::before {
    content: "";
    position: absolute;
    left: -.8rem;
    top: 20%;
    bottom: 20%;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: var(--brand-strong);
    box-shadow: 0 0 10px var(--brand-glow);
}

.nav-link .ico { width: 18px; text-align: center; opacity: .9; }

.sidebar-foot { margin-top: auto; padding-top: 1rem; }

.content { flex: 1; padding: 1.6rem 2rem 4rem; max-width: 1500px; min-width: 0; }

/* Keskeny kepernyon a 216 pixeles oldalsav tobb helyet vinne el, mint amennyi
   a tartalomnak maradna, ezert vizszintes fejlecce alakul. A menupontok egy
   gorgetheto sorba kerulnek — igy mind elerheto marad, es a tartalom megkapja
   a teljes szelesseget. */
@media (max-width: 720px) {
    .shell { flex-direction: column; }

    .sidebar {
        width: auto;
        height: auto;
        flex-direction: row;
        align-items: center;
        gap: .3rem;
        padding: .5rem .7rem;
        border-right: none;
        border-bottom: 1px solid var(--border);
        overflow-x: auto;
        z-index: 5;
    }

    .brand { padding: 0 .6rem 0 0; font-size: 1.15rem; flex: none; }

    .nav-link { padding: .4rem .55rem; white-space: nowrap; flex: none; }
    .nav-link:hover { transform: none; }
    .nav-link.active::before { display: none; }
    .nav-link .ico { display: none; }

    /* A menu tullog a kepernyon es gorgetheto, ezert a temavalto kikerulne a
       lathato savbol. Kitüzzuk a jobb szelre, hogy mindig kezugyben legyen. */
    .sidebar-foot {
        margin-top: 0;
        margin-left: auto;
        padding-top: 0;
        padding-left: .5rem;
        flex: none;
        position: sticky;
        right: 0;
        background: var(--surface);
    }

    .content { padding: 1rem .8rem 3rem; }
}

.page-head { margin-bottom: 1.3rem; }
.page-head .sub { color: var(--ink-2); font-size: .86rem; margin-top: .15rem; }

/* ===================== Kartyak ===================== */

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.1rem 1.15rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
    animation: rise .38s var(--ease) both;
}

.card.accent { border-top: 3px solid var(--brand); }

@keyframes rise {
    from { opacity: 0; transform: translateY(9px); }
    to { opacity: 1; transform: none; }
}

/* Lepcsozetes megjelenes, hogy az oldal betoltese eleven legyen. */
.stagger > * { animation: rise .4s var(--ease) both; }
.stagger > *:nth-child(2) { animation-delay: .05s; }
.stagger > *:nth-child(3) { animation-delay: .1s; }
.stagger > *:nth-child(4) { animation-delay: .15s; }
.stagger > *:nth-child(5) { animation-delay: .2s; }
.stagger > *:nth-child(6) { animation-delay: .25s; }

.grid { display: grid; gap: 1rem; }
.grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

/* ===================== Stat csempe ===================== */

.tile {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: .85rem 1rem;
    box-shadow: var(--shadow);
    transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}

.tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }

.tile .figure {
    font-size: 1.75rem;
    font-weight: 750;
    letter-spacing: -.03em;
    line-height: 1.15;
}

.tile .note { font-size: .74rem; color: var(--ink-3); margin-top: .1rem; }

/* ===================== Tablazat ===================== */

.table-wrap { overflow-x: auto; border-radius: var(--radius-sm); }

table { width: 100%; border-collapse: collapse; font-size: .85rem; }

thead th {
    text-align: left;
    font-weight: 700;
    color: var(--ink-3);
    text-transform: uppercase;
    font-size: .66rem;
    letter-spacing: .08em;
    padding: .45rem .6rem;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
    background: var(--surface);
    position: sticky;
    top: 0;
    z-index: 2;
}

/* Rendezheto fejlec. A nyil mutatja az aktiv oszlopot es az iranyt. */
th.sortable { cursor: pointer; user-select: none; transition: color .14s var(--ease), background .14s var(--ease); }
th.sortable:hover { color: var(--brand-strong); background: var(--surface-2); }
th.sortable.active { color: var(--brand-strong); }

.sort-arrow { font-size: .6rem; margin-left: .25rem; }

th.sortable:not(.active):hover .sort-arrow::after { content: "↕"; opacity: .45; }

td { padding: .5rem .6rem; border-bottom: 1px solid var(--border); }
tbody tr { transition: background .14s var(--ease); }
tbody tr:hover { background: var(--surface-2); }
tbody tr:last-child td { border-bottom: none; }

.num { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.rank { color: var(--ink-3); font-family: var(--mono); width: 2rem; }

/* ===================== Jelolesek ===================== */

.chip {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .12rem .55rem;
    border-radius: 999px;
    background: var(--surface-3);
    border: 1px solid var(--border);
    font-size: .74rem;
    font-weight: 600;
    color: var(--ink-2);
    margin: 0 .25rem .25rem 0;
    white-space: nowrap;
}

.chip.good { color: var(--good); background: var(--good-soft); border-color: transparent; }
.chip.bad { color: var(--bad); background: var(--bad-soft); border-color: transparent; }
.chip.brand { color: var(--brand-strong); background: var(--brand-soft); border-color: transparent; }
.chip.lilac { color: var(--team-b); background: var(--team-b-soft); border-color: transparent; }

.team-code {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.6rem;
    padding: .1rem .45rem;
    border-radius: 6px;
    font-family: var(--mono);
    font-weight: 700;
    font-size: .76rem;
    background: var(--surface-3);
    border: 1px solid var(--border);
}

.team-code.a { color: var(--team-a); background: var(--brand-soft); border-color: transparent; }
.team-code.b { color: var(--team-b); background: var(--team-b-soft); border-color: transparent; }

.good { color: var(--good); }
.bad { color: var(--bad); }
.dim { color: var(--ink-2); }
.faint { color: var(--ink-3); }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.blue-side { color: var(--side-blue); }
.red-side { color: var(--side-red); }

/* ===================== Sulyozott jelzes ===================== */

/* A jobb/rosszabb jelzes SOSEM csak szin: a nyil es a szoveg is hordozza. */
.delta { display: inline-flex; align-items: center; gap: .25rem; font-weight: 650; font-family: var(--mono); }
.delta.up { color: var(--good); }
.delta.down { color: var(--bad); }
.delta.flat { color: var(--ink-3); }

/* ===================== Metrikasav ===================== */

.metric { padding: .5rem 0; border-bottom: 1px dashed var(--border); }
.metric:last-child { border-bottom: none; }

.metric-top { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.metric-label { font-size: .84rem; font-weight: 550; }
.metric-value { font-family: var(--mono); font-size: .84rem; font-weight: 650; white-space: nowrap; }

.metric-track {
    position: relative;
    height: 6px;
    background: var(--surface-3);
    border-radius: 3px;
    margin: .38rem 0 .25rem;
    overflow: hidden;
}

.metric-track .fill {
    position: absolute;
    top: 0;
    bottom: 0;
    border-radius: 3px;
    transition: width .55s var(--ease), left .55s var(--ease), right .55s var(--ease);
    animation: grow .6s var(--ease) both;
}

.metric-track .fill.up { background: linear-gradient(90deg, var(--good), color-mix(in oklab, var(--good) 70%, white)); }
.metric-track .fill.down { background: linear-gradient(90deg, color-mix(in oklab, var(--bad) 70%, white), var(--bad)); }
.metric-track .fill.neutral { background: var(--ink-3); }

.metric-track .axis { position: absolute; left: 50%; top: -1px; bottom: -1px; width: 1px; background: var(--border-strong); }

.metric-note { font-size: .75rem; color: var(--ink-3); }

@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.metric-track .fill { transform-origin: left center; }
.metric-track .fill.down { transform-origin: right center; }

/* ===================== Osszehasonlito sor ===================== */

/* Mindket ertek kiirva, kozepen a kulonbseg — sosem egy elojeles szam
   magaban, amirol nem derul ki, kire vonatkozik. */
.vs-row {
    display: grid;
    grid-template-columns: 1fr 150px 1fr;
    align-items: center;
    gap: .6rem;
    padding: .55rem 0;
    border-bottom: 1px dashed var(--border);
}

.vs-row:last-child { border-bottom: none; }
.vs-row .side-a { text-align: right; }
.vs-row .side-b { text-align: left; }

.vs-row .amount { font-family: var(--mono); font-weight: 650; font-size: .9rem; }
.vs-row .caption { font-size: .72rem; color: var(--ink-3); }

.vs-row .middle { text-align: center; }
.vs-row .metric-name { font-size: .74rem; color: var(--ink-2); font-weight: 600; }

.vs-bar { display: flex; height: 7px; border-radius: 4px; overflow: hidden; margin-top: .3rem; background: var(--surface-3); }
.vs-bar .a { background: var(--team-a); transition: width .55s var(--ease); }
.vs-bar .gap { width: 2px; background: var(--surface); flex: none; }
.vs-bar .b { background: var(--team-b); transition: width .55s var(--ease); }

.winner-flag {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    font-size: .72rem;
    font-weight: 700;
    padding: .05rem .4rem;
    border-radius: 5px;
}

.winner-flag.a { color: var(--team-a); background: var(--brand-soft); }
.winner-flag.b { color: var(--team-b); background: var(--team-b-soft); }
.winner-flag.tie { color: var(--ink-3); background: var(--surface-3); }

/* ===================== Eselysav ===================== */

.odds {
    display: flex;
    height: 44px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: inset 0 0 0 1px var(--border);
}

.odds > div {
    display: flex;
    align-items: center;
    gap: .45rem;
    padding: 0 .8rem;
    font-weight: 750;
    color: #fff;
    transition: width .6s var(--ease);
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
}

.odds .a { background: linear-gradient(100deg, var(--team-a), color-mix(in oklab, var(--team-a) 75%, black)); }
.odds .b { background: linear-gradient(100deg, color-mix(in oklab, var(--team-b) 75%, black), var(--team-b)); justify-content: flex-end; }
.odds .pct { font-family: var(--mono); font-size: 1.05rem; }

/* ===================== Forma csik ===================== */

.form-strip { display: inline-flex; gap: 3px; }

.form-strip i {
    width: 17px;
    height: 17px;
    border-radius: 5px;
    font-style: normal;
    font-size: .62rem;
    line-height: 17px;
    text-align: center;
    font-weight: 800;
    color: #fff;
    transition: transform .16s var(--ease);
}

.form-strip i:hover { transform: translateY(-2px) scale(1.12); }
.form-strip i.w { background: var(--good); }
.form-strip i.l { background: var(--bad); }

/* ===================== Tier jelveny ===================== */

.tier {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 22px;
    border-radius: 6px;
    font-weight: 800;
    font-size: .74rem;
    color: #fff;
}

.tier.s { background: linear-gradient(135deg, #e8a33d, #d9822b); }
.tier.a { background: linear-gradient(135deg, var(--brand), var(--brand-strong)); }
.tier.b { background: linear-gradient(135deg, var(--side-blue), color-mix(in oklab, var(--side-blue) 70%, white)); }
.tier.c { background: var(--ink-3); }
.tier.d { background: var(--border-strong); color: var(--ink-2); }

/* ===================== Urlap ===================== */

select, input[type=text] {
    background: var(--surface);
    color: var(--ink);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: .4rem .6rem;
    font-size: .85rem;
    font-family: inherit;
    font-weight: 550;
    transition: border-color .16s var(--ease), box-shadow .16s var(--ease);
}

select:hover { border-color: var(--border-strong); }
select:focus, input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-glow); }

button {
    background: var(--surface);
    color: var(--ink);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: .4rem .8rem;
    font-size: .84rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all .16s var(--ease);
}

button:hover:not(:disabled) { border-color: var(--brand); color: var(--brand-strong); transform: translateY(-1px); }
button:active:not(:disabled) { transform: none; }

button.primary {
    background: linear-gradient(100deg, var(--brand), var(--brand-strong));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 2px 12px var(--brand-glow);
}

button.primary:hover:not(:disabled) { color: #fff; filter: brightness(1.06); }
button:disabled { opacity: .4; cursor: not-allowed; }

.toolbar {
    display: flex;
    gap: .5rem;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 1.1rem;
    padding: .7rem .85rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.toolbar label {
    font-size: .7rem;
    color: var(--ink-3);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
}

.toolbar .spacer { flex: 1; }

/* ===================== Segito magyarazat ===================== */

.hint {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: var(--surface-3);
    color: var(--ink-3);
    font-size: .64rem;
    font-weight: 800;
    cursor: help;
    margin-left: .3rem;
    vertical-align: middle;
    border: 1px solid var(--border);
}

.hint:hover { background: var(--brand-soft); color: var(--brand-strong); border-color: transparent; }

.legend {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: .74rem;
    color: var(--ink-3);
    padding-top: .6rem;
    margin-top: .6rem;
    border-top: 1px dashed var(--border);
}

.legend span { display: inline-flex; align-items: center; gap: .35rem; }
.legend .swatch { width: 10px; height: 10px; border-radius: 3px; }

.notice {
    display: flex;
    gap: .5rem;
    align-items: flex-start;
    background: var(--warn-soft);
    border: 1px solid color-mix(in oklab, var(--warn) 35%, transparent);
    color: var(--warn);
    border-radius: var(--radius-sm);
    padding: .55rem .75rem;
    font-size: .8rem;
    margin-bottom: .8rem;
}

.notice.info { background: var(--surface-3); border-color: var(--border); color: var(--ink-2); }

/* Ures allapot: egy egesz nezet helyett allo tabla ("nincs adat").
   FIGYELEM: ez egy oldalmeretu doboz 3rem belso margoval. Egy „meg nincs
   kitoltve" jellegu apro jelolesre NE ezt hasznald — arra a draft-tablan a
   `.open` szolgal. */
.empty {
    color: var(--ink-3);
    padding: 3rem 1rem;
    text-align: center;
    background: var(--surface);
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius);
}

.empty .big { font-size: 2rem; display: block; margin-bottom: .5rem; opacity: .5; }

/* ===================== Betoltes ===================== */

.loading { display: flex; align-items: center; gap: .6rem; color: var(--ink-3); padding: 2rem; }

.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid var(--border);
    border-top-color: var(--brand);
    border-radius: 50%;
    animation: spin .7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.skeleton {
    background: linear-gradient(90deg, var(--surface-3) 25%, var(--surface-2) 50%, var(--surface-3) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.4s infinite;
    border-radius: 6px;
    height: 12px;
}

@keyframes shimmer { to { background-position: -200% 0; } }

/* ===================== Draft tabla ===================== */

.draft-row {
    display: grid;
    grid-template-columns: 26px 58px 44px 1fr;
    align-items: center;
    gap: .5rem;
    padding: .3rem .45rem;
    border-radius: var(--radius-sm);
    transition: background .18s var(--ease);
}

.draft-row + .draft-row { margin-top: 2px; }
.draft-row.blue { background: color-mix(in oklab, var(--side-blue-soft) 45%, transparent); }
.draft-row.red { background: color-mix(in oklab, var(--side-red-soft) 45%, transparent); }

.draft-row.current {
    box-shadow: 0 0 0 2px var(--brand), 0 0 16px var(--brand-glow);
    animation: pulse 1.9s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 2px var(--brand), 0 0 12px var(--brand-glow); }
    50% { box-shadow: 0 0 0 2px var(--brand), 0 0 22px var(--brand-glow); }
}

.draft-row .step-no { font-family: var(--mono); font-size: .72rem; color: var(--ink-3); text-align: right; }
.draft-row .kind { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.draft-row .kind.ban { color: var(--bad); }
.draft-row .kind.pick { color: var(--good); }
.draft-row .champ { font-weight: 600; }
.draft-row .champ.banned { text-decoration: line-through; color: var(--ink-3); font-weight: 500; }

/* ===================== Ajanlas ===================== */

.suggestion {
    padding: .6rem .7rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    margin-bottom: .5rem;
    background: var(--surface-2);
    transition: transform .18s var(--ease), border-color .18s var(--ease), box-shadow .18s var(--ease);
}

.suggestion:hover { transform: translateX(3px); border-color: var(--brand); box-shadow: var(--shadow); }
.suggestion.top { border-color: var(--brand); background: var(--brand-soft); }

.suggestion-head { display: flex; justify-content: space-between; align-items: baseline; gap: .6rem; }
.suggestion-name { font-weight: 700; }

.score-pill {
    font-family: var(--mono);
    font-weight: 750;
    font-size: .82rem;
    padding: .05rem .45rem;
    border-radius: 6px;
    background: var(--surface-3);
}

.reason { font-size: .74rem; color: var(--ink-2); display: flex; gap: .4rem; align-items: baseline; }
.reason .w { font-family: var(--mono); color: var(--ink-3); min-width: 2.8rem; }

/* ===================== Draft tabla (draftgap-stilusu) ===================== */

.draft-layout {
    display: grid;
    grid-template-columns: minmax(210px, 1fr) minmax(420px, 2fr) minmax(210px, 1fr);
    gap: 1rem;
    align-items: start;
}

@media (max-width: 1100px) {
    .draft-layout { grid-template-columns: 1fr; }
}

.team-column { display: flex; flex-direction: column; gap: .45rem; }

.team-head {
    display: flex;
    align-items: center;
    gap: .55rem;
    padding: .5rem .6rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
}

.team-head.blue { background: var(--side-blue-soft); color: var(--side-blue); }
.team-head.red { background: var(--side-red-soft); color: var(--side-red); }
.team-head img { width: 28px; height: 28px; object-fit: contain; }
.team-head .name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* --- Pick slot --- */

.slot {
    display: flex;
    align-items: center;
    gap: .55rem;
    padding: .4rem .5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    cursor: pointer;
    transition: border-color .16s var(--ease), transform .16s var(--ease), box-shadow .16s var(--ease);
    text-align: left;
    width: 100%;
    font-family: inherit;
    font-size: .84rem;
    color: var(--ink);
}

.slot:hover { border-color: var(--brand); transform: translateX(2px); }

.slot.active {
    border-color: var(--brand);
    box-shadow: 0 0 0 2px var(--brand-glow);
    background: var(--brand-soft);
}

.slot.filled { background: var(--surface-2); }

.slot .portrait {
    position: relative;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: var(--surface-3);
    object-fit: cover;
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .62rem;
    color: var(--ink-3);
    font-weight: 700;
    overflow: hidden;
}

.slot .portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Oszlopos elrendezes, mert a poszt es a champion neve egymas ALATT all.
   Enelkul a ket span inline maradna, es a `.champ` overflow: hidden-je egy
   inline dobozra vonatkozna — arra viszont nem ertelmezett, ezert a bongeszo
   tulmeretezett dobozt rajzol, ami kilog a slotbol. */
.slot .meta {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: .05rem;
}
.slot .role {
    display: flex;
    align-items: center;
    gap: .3rem;
    min-width: 0;
    font-size: .66rem;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--ink-3);
    font-weight: 700;
}

/* A poszton jatszo jatekos. Masodlagos informacio: halvanyabb, es helyszuke
   eseten a champion neve elol elfogy, nem forditva. */
.slot .player {
    display: flex;
    align-items: center;
    gap: .22rem;
    min-width: 0;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 600;
    color: var(--ink-3);
    opacity: .85;
}

.slot .player img {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top center;
    background: var(--surface-3);
    flex: none;
}

.slot .player span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slot .champ {
    display: block;
    min-width: 0;
    font-weight: 650;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.slot .champ.open { color: var(--ink-3); font-weight: 500; font-style: italic; }
.slot .clear { opacity: 0; color: var(--ink-3); font-size: .9rem; padding: 0 .2rem; }
.slot:hover .clear { opacity: 1; }
.slot .clear:hover { color: var(--bad); }

/* --- Ban sor --- */

.ban-row { display: flex; gap: .3rem; }

.ban-slot {
    flex: 1;
    aspect-ratio: 1;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    cursor: pointer;
    padding: 0;
    overflow: hidden;
    position: relative;
    transition: border-color .16s var(--ease), box-shadow .16s var(--ease);
}

.ban-slot:hover { border-color: var(--bad); }
.ban-slot.active { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-glow); }
.ban-slot img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) brightness(.65); }

.ban-slot .x {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bad);
    font-size: 1.3rem;
    font-weight: 300;
    pointer-events: none;
}

.ban-slot.open .x { color: var(--border-strong); font-size: 1rem; }

/* --- Champion valaszto racs --- */

.picker-head { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin-bottom: .7rem; }
.picker-head .target { font-weight: 700; }

.champ-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
    gap: .45rem;
    max-height: 460px;
    overflow-y: auto;
    padding-right: .2rem;
}

.champ-card {
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
    padding: .35rem;
    cursor: pointer;
    text-align: center;
    transition: transform .14s var(--ease), border-color .14s var(--ease), box-shadow .14s var(--ease);
    font-family: inherit;
    color: var(--ink);
    display: flex;
    flex-direction: column;
    gap: .2rem;
    align-items: center;
}

.champ-card:hover { transform: translateY(-3px); border-color: var(--brand); box-shadow: var(--shadow-lift); }
.champ-card.top { border-color: var(--brand); background: var(--brand-soft); }

.champ-card .portrait {
    position: relative;
    width: 52px;
    height: 52px;
    border-radius: 9px;
    overflow: hidden;
    background: var(--surface-3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .6rem;
    color: var(--ink-3);
    font-weight: 700;
}

.champ-card .portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.champ-card .name { font-size: .7rem; font-weight: 650; line-height: 1.15; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.champ-card .score { font-family: var(--mono); font-size: .66rem; color: var(--ink-3); }
.champ-card .score b { color: var(--brand-strong); }

.champ-card .bar { width: 100%; height: 3px; border-radius: 2px; background: var(--surface-3); overflow: hidden; }
.champ-card .bar div { height: 100%; background: var(--brand); border-radius: 2px; }

/* ===================== Radar ===================== */

.radar-wrap { display: flex; justify-content: center; padding: .4rem 0; }
.radar polygon.shape { animation: radar-in .7s var(--ease) both; transform-origin: center; }
@keyframes radar-in { from { opacity: 0; transform: scale(.55); } to { opacity: 1; transform: scale(1); } }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
