/* Életút widget – a szallaskiraly.hu stílusában (krém alap, mélyzöld-kék szöveg, narancs kiemelés).
   Minden szabály a #el konténeren belül érvényes, így beágyazva sem ütközik az oldal stílusaival.
   A színek a #el változóiban, egy helyen állíthatók. */
#el {
  --frame: #050506;
  --bg: #0f1114;
  --panel: #16181d;
  --panel2: #1d2027;
  --panel3: #252933;
  --line: #2b2f37;
  --line2: #23262d;
  --ink: #f4f4f2;
  --ink2: #cfd2d7;
  --muted: #8e949d;
  --red: #ff3b4e;
  --red2: #e8283b;
  --red-ink: #1c070a;
  --gold: #f6b72a;
  --orange: #f37b2b;
  --green: #36cf78;
  --blue: #5aa7ff;
  --green-bg: rgba(54, 207, 120, .12);
  --red-bg: rgba(255, 59, 78, .12);
  --gold-bg: rgba(246, 183, 42, .12);
  --pitch1: #d9a463;
  --f-head: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --f-ui: 'Barlow', 'Segoe UI', system-ui, sans-serif;
  --f-mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  box-sizing: border-box;
  max-width: 660px;
  margin: 0 auto;
  background: var(--frame);
  color: var(--ink);
  font-family: var(--f-ui);
  font-size: 15px;
  line-height: 1.45;
  border-radius: 20px;
  padding: 16px 14px 18px;
  -webkit-font-smoothing: antialiased;
  text-align: left;
  position: relative;
}
#el[data-theme="light"] {
  --frame: #ffffff;
  --bg: #f3f2ee;
  --panel: #f7f6f3;
  --panel2: #efeee9;
  --panel3: #e5e3dc;
  --line: #d9d6ce;
  --line2: #e6e4dd;
  --ink: #15171a;
  --ink2: #3a3e44;
  --muted: #6d7178;
  --red: #e5283d;
  --red2: #c61c30;
  --red-ink: #ffffff;
  --gold: #c98a00;
  --orange: #d0610f;
  --green: #1c8a4a;
  --blue: #1f5fa8;
  border: 1px solid var(--line);
  box-shadow: 0 6px 30px rgba(0, 0, 0, .08);
}
#el *, #el *::before, #el *::after { box-sizing: border-box; }
#el button, #el input, #el select { font: inherit; color: inherit; margin: 0; }
#el a { color: inherit; }
#el h1, #el h2, #el h3, #el p { margin: 0; }
#el img { max-width: 100%; }

/* ---------- felső sor ---------- */
#el .top { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
#el .top .sp { flex: 1; }
#el .pill {
  display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid var(--line); background: transparent; color: var(--muted);
  border-radius: 999px; padding: 5px 12px; font-family: var(--f-mono); font-size: 11px; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; cursor: pointer; line-height: 1.2; white-space: nowrap;
}
#el .pill:hover { color: var(--ink); border-color: var(--muted); }
#el .pill.on { color: var(--ink); border-color: var(--ink); }
#el .chip { display: inline-block; border: 1.5px solid var(--red); color: var(--red); border-radius: 999px; padding: 4px 12px; font-family: var(--f-mono); font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }

/* ---------- panelek ---------- */
#el .panel { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 18px 18px; }
#el .panel + .panel { margin-top: 12px; }
#el .panel.tight { padding: 12px 14px; }
#el .status { display: flex; align-items: center; gap: 10px; padding: 10px 12px; flex-wrap: wrap; }
#el .status .club { font-family: var(--f-head); font-weight: 700; font-size: 20px; text-transform: uppercase; letter-spacing: .02em; line-height: 1.05; }
#el .status .meta { font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; color: var(--muted); text-transform: uppercase; }
#el .status .meta b { color: var(--ink); }
#el .status .grow { flex: 1; min-width: 150px; }
#el .tabs { display: flex; gap: 6px; overflow-x: auto; padding: 10px 0 12px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
#el .tabs::-webkit-scrollbar { display: none; }
#el .tabs button, #el .tabs a { text-decoration: none; flex: 0 0 auto; border: 1.5px solid var(--line); background: var(--panel); color: var(--ink2); border-radius: 8px; padding: 6px 11px; font-family: var(--f-head); font-weight: 700; font-size: 15px; letter-spacing: .03em; text-transform: uppercase; cursor: pointer; position: relative; }
#el .tabs button:hover, #el .tabs a:hover { border-color: var(--muted); color: var(--ink); }
#el .tabs button.on, #el .tabs a.on { background: var(--red); border-color: var(--red); color: var(--red-ink); }
#el .tabs .bdg { position: absolute; top: -6px; right: -6px; }

#el .title { font-family: var(--f-head); font-weight: 700; font-size: clamp(25px, 7.4vw, 44px); line-height: .98; text-transform: uppercase; letter-spacing: .005em; margin: 12px 0 10px; }
#el .kicker { font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; color: var(--muted); text-transform: uppercase; }
#el .lead { font-size: 16.5px; font-weight: 500; color: var(--ink); line-height: 1.55; }
#el .txt { color: var(--ink2); font-size: 15px; line-height: 1.6; }
#el h2.sec { font-family: var(--f-head); font-weight: 700; font-size: 20px; text-transform: uppercase; letter-spacing: .03em; margin: 20px 0 10px; display: flex; align-items: center; gap: 8px; }
#el h2.sec::before { content: ''; width: 4px; height: 18px; background: var(--red); border-radius: 2px; }
#el h3 { font-family: var(--f-head); font-weight: 700; text-transform: uppercase; font-size: 17px; letter-spacing: .03em; margin-bottom: 6px; }
#el .mono { font-family: var(--f-mono); }
#el .muted { color: var(--muted); }
#el .small { font-size: 13px; }
#el .xs { font-size: 11.5px; }
#el .pos { color: var(--green); }
#el .neg { color: var(--red); }
#el .gold { color: var(--gold); }
#el .center { text-align: center; }
#el .mt { margin-top: 12px; }
#el .mt2 { margin-top: 18px; }

/* lépések (01 02 03) */
#el .steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin: 18px 0; }
#el .steps > div { padding: 12px 13px; background: var(--panel2); }
#el .steps > div + div { border-left: 1px solid var(--line); }
#el .steps .n { font-family: var(--f-mono); font-size: 11px; color: var(--red); font-weight: 600; }
#el .steps b { display: block; font-family: var(--f-head); font-size: 17px; text-transform: uppercase; margin: 4px 0 4px; }
#el .steps span { font-size: 13px; color: var(--muted); line-height: 1.5; display: block; }
/* számsor */
#el .nums { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin: 16px 0 12px; }
#el .nums > div { padding: 12px 6px; text-align: center; background: var(--panel2); min-width: 0; }
#el .nums > div + div { border-left: 1px solid var(--line); }
#el .nums b { display: block; font-family: var(--f-head); font-size: 26px; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#el .nums span { display: block; overflow-wrap: anywhere; font-family: var(--f-mono); font-size: 10px; letter-spacing: .12em; color: var(--muted); text-transform: uppercase; }
#el .nums .c1 { color: var(--ink); } #el .nums .c2 { color: var(--gold); } #el .nums .c3 { color: var(--orange); } #el .nums .c4 { color: var(--green); }
#el .info { display: flex; gap: 10px; align-items: center; background: var(--panel2); border-left: 3px solid var(--gold); border-radius: 0 10px 10px 0; padding: 11px 14px; font-size: 14px; }
#el .info.red { border-left-color: var(--red); } #el .info.green { border-left-color: var(--green); } #el .info.blue { border-left-color: var(--blue); }
#el .note { text-align: center; font-size: 12px; color: var(--muted); margin-top: 12px; }

/* statisztika-kártyák */
#el .grid > * { min-width: 0; } /* a rács oszlopa a széles táblázat miatt se nyúljon ki (a táblázat maga görgethető) */
#el .grid { display: grid; gap: 10px; }
#el .g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
#el .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
#el .g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
#el .stat { background: var(--panel2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; min-width: 0; }
#el .stat .l { font-family: var(--f-mono); font-size: 10px; letter-spacing: .12em; color: var(--muted); text-transform: uppercase; }
#el .stat .v { font-family: var(--f-head); font-weight: 700; font-size: 26px; line-height: 1.15; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#el .stat .s { font-size: 12px; color: var(--muted); }
#el .box { background: var(--panel2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; min-width: 0; }
#el .box.acc { border-left: 3px solid var(--green); }
#el .box.acc-gold { border-left: 3px solid var(--gold); }
#el .box.acc-red { border-left: 3px solid var(--red); }

/* gombok */
#el .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 2px solid var(--red); background: var(--red); color: var(--red-ink);
  font-family: var(--f-head); font-weight: 700; font-size: 17px; letter-spacing: .05em; text-transform: uppercase; padding: 9px 18px;
  cursor: pointer; text-decoration: none; line-height: 1.1; border-radius: 9px; user-select: none; white-space: nowrap;
}
#el .btn:hover { background: var(--red2); border-color: var(--red2); }
#el .btn.ol { background: transparent; color: var(--ink); border-color: var(--line); }
#el .btn.ol:hover { border-color: var(--ink); }
#el .btn.green { background: var(--green); border-color: var(--green); color: #07150d; }
#el .btn.sm { font-size: 14px; padding: 5px 11px; border-width: 1.5px; border-radius: 7px; }
#el .btn.xs { font-size: 12.5px; padding: 3px 8px; border-width: 1.5px; border-radius: 6px; }
#el .btn.big { font-size: 22px; padding: 12px 30px; border-radius: 11px; }
#el .btn.wide { width: 100%; }
#el .btn { max-width: 100%; }
#el .btn[disabled] { opacity: .4; pointer-events: none; }
#el .btns { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
#el .btns.c { justify-content: center; }
/* választógombok (színes kerettel) */
#el .choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
#el .choice { background: var(--panel); border: 2px solid var(--line); border-radius: 10px; padding: 12px 10px; text-align: center; cursor: pointer; color: var(--ink); }
#el .choice b { display: block; font-family: var(--f-head); font-size: 19px; text-transform: uppercase; letter-spacing: .03em; line-height: 1.1; }
#el .choice span { display: block; font-family: var(--f-mono); font-size: 10.5px; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; margin-top: 4px; }
#el .choice:hover { background: var(--panel2); }
#el .choice.c-green { border-color: var(--green); } #el .choice.c-gold { border-color: var(--gold); } #el .choice.c-orange { border-color: var(--orange); } #el .choice.c-red { border-color: var(--red); } #el .choice.c-blue { border-color: var(--blue); }
#el .choice.sel { background: var(--panel3); box-shadow: 0 0 0 2px var(--ink) inset; }

#el .bdg { display: inline-block; min-width: 18px; padding: 1px 6px; border-radius: 999px; background: var(--red); color: #fff; font-family: var(--f-mono); font-size: 10.5px; font-weight: 600; text-align: center; line-height: 16px; }
#el .tag { display: inline-block; font-family: var(--f-mono); font-size: 10.5px; padding: 1px 7px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); white-space: nowrap; }
#el .tag.red { color: var(--red); border-color: var(--red); }
#el .tag.green { color: var(--green); border-color: var(--green); }
#el .tag.gold { color: var(--gold); border-color: var(--gold); }
#el .pos-b { display: inline-block; width: 34px; text-align: center; font-family: var(--f-mono); font-size: 10.5px; font-weight: 600; padding: 1px 0; border-radius: 4px; color: #fff; }
#el .pos-GK { background: #b8860b; } #el .pos-DF { background: #2769b0; } #el .pos-MF { background: #2e8a44; } #el .pos-FW { background: #d0283d; }
#el .ovr { display: inline-block; min-width: 28px; text-align: center; font-family: var(--f-head); font-weight: 700; font-size: 17px; }
#el .flag { font-family: var(--f-mono); font-size: 10.5px; color: var(--muted); }
#el .frm { display: inline-flex; gap: 2px; }
#el .frm i { min-width: 18px; height: 16px; font-style: normal; font-family: var(--f-mono); font-size: 9.5px; font-weight: 600; color: #fff; display: inline-flex; align-items: center; justify-content: center; border-radius: 3px; padding: 0 2px; }
#el .frm .W { background: #22a55b; } #el .frm .D { background: #6c727b; } #el .frm .L { background: #d0283d; }

/* táblázat */
#el .tw { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: 12px; }
#el table.t { width: 100%; border-collapse: collapse; font-size: 13.5px; }
#el table.t th { font-family: var(--f-mono); font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); text-align: left; padding: 8px 7px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--panel2); }
#el table.t td { padding: 7px 7px; border-bottom: 1px solid var(--line2); white-space: nowrap; }
#el table.t td.wr { white-space: normal; }
#el table.t tr:last-child td { border-bottom: 0; }
#el table.t tr.me td { background: var(--gold-bg); font-weight: 600; }
#el table.t tr.clk { cursor: pointer; }
#el table.t tr.clk:hover td { background: var(--panel2); }
#el table.t td.n, #el table.t th.n { text-align: right; font-variant-numeric: tabular-nums; }
#el table.t td.c, #el table.t th.c { text-align: center; }
#el table.t tr.q0 td:first-child { box-shadow: inset 3px 0 0 var(--green); }
#el table.t tr.q1 td:first-child { box-shadow: inset 3px 0 0 var(--blue); }
#el table.t tr.q2 td:first-child { box-shadow: inset 3px 0 0 var(--gold); }
#el table.t th.sort { cursor: pointer; }
#el table.t th.sort:hover { color: var(--ink); }
#el .tname { font-weight: 600; }
#el .clip { max-width: 120px; overflow: hidden; text-overflow: ellipsis; display: inline-block; vertical-align: bottom; }
#el .nm { max-width: 150px; overflow: hidden; text-overflow: ellipsis; display: inline-block; vertical-align: bottom; }

/* űrlap */
#el .fld { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; min-width: 0; }
#el .fld label, #el .lbl { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
#el .inp { border: 1.5px solid var(--line); background: var(--panel2); color: var(--ink); padding: 8px 10px; border-radius: 8px; width: 100%; font-size: 15px; }
#el .inp:focus { outline: 2px solid var(--gold); outline-offset: 0; }
#el .row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
#el .row.sb { justify-content: space-between; }
#el .row > .fld { flex: 1 1 120px; }
#el .row > .fld .inp { width: 100%; min-width: 0; box-sizing: border-box; }
#el .fld label { overflow-wrap: anywhere; }
#el .seg { display: inline-flex; border: 1.5px solid var(--line); border-radius: 8px; overflow: hidden; flex-wrap: wrap; }
#el .seg button { border: 0; background: transparent; padding: 6px 11px; font-family: var(--f-head); font-weight: 700; text-transform: uppercase; font-size: 14.5px; cursor: pointer; letter-spacing: .03em; color: var(--ink2); }
#el .seg button + button { border-left: 1.5px solid var(--line); }
#el .seg button.on { background: var(--ink); color: var(--frame); }
#el .bar { height: 6px; background: var(--panel3); position: relative; overflow: hidden; border-radius: 3px; }
#el .bar > i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--green); border-radius: 3px; }
#el .bar.red > i { background: var(--red); }
#el .bar.gold > i { background: var(--gold); }

/* hírek */
#el .news { list-style: none; margin: 0; padding: 0; }
#el .news li { padding: 8px 10px; font-size: 14px; border-left: 3px solid var(--line); margin-bottom: 6px; background: var(--panel2); border-radius: 0 8px 8px 0; }
#el .news li.ok { border-left-color: var(--green); }
#el .news li.bad { border-left-color: var(--red); }
#el .news li.offer { border-left-color: var(--gold); }
#el .news li.info { border-left-color: var(--blue); }
#el .news .d { font-family: var(--f-mono); font-size: 10px; color: var(--muted); display: block; letter-spacing: .08em; }

/* modális ablak */
#el .ov { position: fixed; inset: 0; background: rgba(0, 0, 0, .7); z-index: 9990; display: flex; align-items: flex-start; justify-content: center; padding: 24px 10px; overflow-y: auto; }
#el .modal { background: var(--panel); border: 1px solid var(--line); width: 100%; max-width: 620px; border-radius: 16px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); position: relative; }
#el .modal-h { padding: 16px 18px 6px; display: flex; align-items: flex-start; gap: 10px; }
#el .modal-h h3 { font-size: 24px; margin: 0; flex: 1; line-height: 1.05; }
#el .modal-b { padding: 6px 18px 18px; }
#el .x { background: none; border: 0; font-size: 26px; line-height: 1; cursor: pointer; color: var(--muted); padding: 0 4px; }
#el .x:hover { color: var(--red); }
#el .toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); background: var(--panel3); color: var(--ink); padding: 10px 16px; z-index: 9999; box-shadow: 0 6px 20px rgba(0, 0, 0, .4); border-left: 4px solid var(--gold); border-radius: 0 8px 8px 0; max-width: 92vw; font-size: 14px; }

/* taktikai pálya */
#el .tcourt { position: relative; width: 100%; max-width: 420px; aspect-ratio: 50 / 47; background: repeating-linear-gradient(90deg, #dca468 0 6%, #d69c5f 6% 12%); border-radius: 10px; margin: 0 auto; overflow: hidden; border: 2px solid rgba(255, 255, 255, .85); }
#el .tcourt .paint { position: absolute; left: 34%; width: 32%; top: 0; height: 40.4%; background: rgba(208, 40, 61, .45); border: 2px solid rgba(255, 255, 255, .85); border-top: 0; }
#el .tcourt .paint::after { content: ''; position: absolute; left: 12.5%; width: 75%; bottom: -12.8%; height: 25.5%; border: 2px solid rgba(255, 255, 255, .85); border-radius: 50%; clip-path: inset(50% 0 0 0); }
#el .tcourt .arc { position: absolute; left: 2.5%; width: 95%; top: -39.3%; height: 101%; border: 2px solid rgba(255, 255, 255, .85); border-radius: 50%; }
#el .tcourt .hoop { position: absolute; left: 50%; top: 11.2%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border: 3px solid #ff6a1a; border-radius: 50%; }
#el .tcourt .hoop::before { content: ''; position: absolute; left: -12px; right: -12px; top: -9px; border-top: 3px solid #f4f4f4; }
#el .tcourt .half { position: absolute; left: 38%; width: 24%; bottom: -12.8%; height: 25.5%; border: 2px solid rgba(255, 255, 255, .85); border-radius: 50%; }
#el .tdot { position: absolute; transform: translate(-50%, -50%); width: 64px; text-align: center; cursor: pointer; z-index: 2; }
#el .tdot .c { width: 34px; height: 34px; border-radius: 50%; margin: 0 auto; background: radial-gradient(circle at 35% 30%, #fff6 0 18%, transparent 19%), #d0283d; border: 2px solid #fff; box-shadow: 0 3px 5px rgba(0, 0, 0, .4); color: #fff; font-family: var(--f-head); font-weight: 700; font-size: 15px; display: flex; align-items: center; justify-content: center; }
#el .tdot.gk .c { background: radial-gradient(circle at 35% 30%, #fff6 0 18%, transparent 19%), #c9960c; }
#el .tdot .nm2 { font-family: var(--f-head); font-weight: 600; font-size: 12.5px; color: #fff; text-shadow: 0 1px 2px #000; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#el .tdot .sl { font-family: var(--f-mono); font-size: 9px; color: #e8ffe4; }
#el .tdot.sel .c { outline: 3px solid var(--gold); }
#el .tdot.bad .c { border-color: #ffb3b3; }
#el .tdot.warn .nm2 { color: #ffd76a; }
#el .benchl .it { display: flex; gap: 8px; align-items: center; padding: 6px 8px; border: 1px solid var(--line); background: var(--panel2); margin-bottom: 4px; cursor: pointer; border-radius: 8px; }
#el .benchl .it.sel { outline: 2px solid var(--gold); }
#el .benchl .it:hover { border-color: var(--muted); }
#el .benchl .it .nmx { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* meccs */
#el .score { background: var(--panel2); border: 1px solid var(--line); border-radius: 12px 12px 0 0; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; padding: 10px 12px; gap: 8px; }
#el .score .tn { font-family: var(--f-head); font-weight: 700; font-size: 17px; text-transform: uppercase; line-height: 1.05; overflow-wrap: anywhere; min-width: 0; }
#el .score .tn.r { text-align: right; }
#el .score .sc { font-family: var(--f-head); font-weight: 700; font-size: 38px; line-height: 1; text-align: center; min-width: 86px; }
#el .score .clk { font-family: var(--f-mono); font-size: 11.5px; text-align: center; color: var(--gold); }
#el .kit { display: inline-block; width: 11px; height: 11px; border-radius: 50%; border: 2px solid #fff; vertical-align: -1px; margin: 0 5px; }
#el .courtw { display: flex; justify-content: center; background: #1b1f26; }
#el canvas.court { display: block; touch-action: manipulation; max-width: 100%; }
#el .mview.bb { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
#el table.t.res { table-layout: fixed; width: 100%; }
#el table.t.res td { white-space: normal; overflow-wrap: anywhere; }
#el table.t.res td.c { width: 74px; }
#el table.t.res td.r { text-align: right; }
#el .tyre { display: inline-flex; align-items: center; justify-content: center; width: 19px; height: 19px; border-radius: 50%; border: 3px solid var(--tc); background: #15171c; color: var(--tc); font: 700 10px/1 var(--f-mono); vertical-align: middle; }
#el .tower td { padding: 3px 5px; }
#el .feed div.me { border-left: 3px solid var(--gold); }
#el .show-m { display: none; }
@media (max-width: 520px) { #el .show-m { display: inline; } }
#el .qtab td, #el .qtab th { padding: 4px 6px; }
#el table.t.sm td, #el table.t.sm th { padding: 4px 5px; font-size: 12.5px; }
#el .benchl .it.dis { opacity: .45; cursor: not-allowed; }
#el .feed { max-height: 320px; overflow-y: auto; border: 1px solid var(--line); border-radius: 12px; }
#el .feed div { padding: 6px 10px; border-bottom: 1px solid var(--line2); font-size: 14px; }
#el .feed div b.m { font-family: var(--f-mono); font-size: 11px; color: var(--muted); display: inline-block; width: 64px; font-weight: 600; }
#el .feed div.goal { background: var(--gold-bg); font-weight: 600; }
#el .feed b.ic { display: inline-block; width: 9px; height: 12px; vertical-align: -1px; margin-right: 4px; border-radius: 1px; }
#el .feed div.card-y b.ic { background: #f3cf00; } #el .feed div.card-r b.ic { background: #d0021b; }
#el .mstats { width: 100%; font-size: 13px; border-collapse: collapse; }
#el .mstats td { padding: 5px 6px; }
#el .mstats td.v { font-family: var(--f-head); font-weight: 700; font-size: 17px; width: 50px; }
#el .mstats td.v.r { text-align: right; }
#el .mstats td.k { text-align: center; font-family: var(--f-mono); font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
#el .ctrlbar { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; background: var(--panel2); border: 1px solid var(--line); border-top: 0; border-radius: 0 0 12px 12px; padding: 8px; }

/* csapatválasztó */
#el .tpick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
#el .tcard { background: var(--panel2); border: 1.5px solid var(--line); border-left: 5px solid var(--c, var(--line)); border-radius: 10px; padding: 10px 12px; cursor: pointer; min-width: 0; }
#el .tcard:hover { border-color: var(--gold); border-left-color: var(--c, var(--gold)); }
#el .tcard .tnm { font-family: var(--f-head); font-weight: 700; font-size: 19px; text-transform: uppercase; line-height: 1.05; }
#el .stars { color: var(--gold); letter-spacing: 1px; font-size: 13px; }

/* draft-lapok */
#el .cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
#el .pcard { aspect-ratio: 3 / 4; perspective: 700px; cursor: pointer; }
#el .pcard .in { position: relative; width: 100%; height: 100%; transition: transform .6s cubic-bezier(.3, 1.3, .5, 1); transform-style: preserve-3d; }
#el .pcard.open .in { transform: rotateY(180deg); }
#el .pcard .f, #el .pcard .b { position: absolute; inset: 0; backface-visibility: hidden; border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 8px; text-align: center; }
#el .pcard .f { background: repeating-linear-gradient(45deg, #1f2229 0 8px, #242831 8px 16px); border: 2px solid var(--gold); }
#el .pcard .f .q { font-family: var(--f-head); font-size: 40px; color: var(--gold); line-height: 1; }
#el .pcard .b { transform: rotateY(180deg); background: linear-gradient(160deg, #2b2210, #151208); border: 2px solid var(--gold); color: #fff; }
#el .pcard .b.silver { background: linear-gradient(160deg, #2a2d34, #15171b); border-color: #c8ccd4; }
#el .pcard .b .r { font-family: var(--f-head); font-weight: 700; font-size: 44px; line-height: 1; color: var(--gold); }
#el .pcard .b.silver .r { color: #e3e6ec; }
#el .pcard .b .pn { font-family: var(--f-head); font-weight: 700; font-size: 15px; text-transform: uppercase; line-height: 1.05; margin-top: 4px; }
#el .pcard.dim { opacity: .55; }
#el .pcard.pick .b { box-shadow: 0 0 0 3px var(--green); }
#el .dlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 6px; }
#el .dl { display: flex; gap: 6px; align-items: center; padding: 5px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel2); font-size: 13px; opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s; min-width: 0; }
#el .dl.show { opacity: 1; transform: none; }
#el .dl .nmx { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* szerencsekerék */
#el .wheel { position: relative; width: min(320px, 82vw); aspect-ratio: 1; margin: 6px auto 12px; }
#el .wheel canvas { width: 100%; height: 100%; display: block; }
#el .wheel .ptr { position: absolute; left: 50%; top: -6px; transform: translateX(-50%); width: 0; height: 0; border-left: 13px solid transparent; border-right: 13px solid transparent; border-top: 24px solid var(--red); filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .5)); z-index: 2; }

#el .attr { display: grid; grid-template-columns: 86px minmax(0, 1fr) 30px; gap: 8px; align-items: center; font-size: 13px; margin: 3px 0; }
#el .attr input[type=range] { width: 100%; min-width: 0; margin: 0; }
#el .attr .n { text-align: right; font-family: var(--f-head); font-weight: 700; font-size: 15px; }
#el .chart { width: 100%; height: 170px; display: block; }
#el .bracket { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 1fr); gap: 10px; overflow-x: auto; padding-bottom: 6px; }
#el .bracket .col { display: flex; flex-direction: column; justify-content: space-around; gap: 8px; }
#el .tie { background: var(--panel2); border: 1px solid var(--line); border-radius: 8px; font-size: 12.5px; }
#el .tie div { display: flex; justify-content: space-between; padding: 4px 8px; gap: 6px; }
#el .tie div + div { border-top: 1px solid var(--line2); }
#el .tie .w { font-weight: 700; }
#el .tie.me { outline: 2px solid var(--gold); }
#el .empty { padding: 18px; text-align: center; color: var(--muted); }
#el .spin { display: inline-block; width: 16px; height: 16px; border: 2px solid var(--line); border-top-color: var(--red); border-radius: 50%; animation: fmsp .8s linear infinite; vertical-align: -3px; }
@keyframes fmsp { to { transform: rotate(360deg); } }
#el .hide { display: none !important; }
#el details summary { cursor: pointer; }
#el h1, #el h2, #el h3, #el .stat .l, #el .stat .s, #el .box, #el .btn, #el .small, #el .txt, #el .title { overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }
@media (max-width: 520px) {
  #el .btn { white-space: normal; max-width: 100%; text-align: center; }
  #el .grid > *, #el .box { min-width: 0; }
  #el .stat .l { letter-spacing: .06em; }
}
@media (max-width: 420px) {
  #el .g3, #el .stack-s { grid-template-columns: minmax(0, 1fr) !important; }
  #el .btn { padding-left: 10px; padding-right: 10px; }
  #el .score { padding: 8px; gap: 4px; }
  #el .score .sc { font-size: 28px; min-width: 0; }
  #el .score .tn { font-size: 13px; }
}
@media (max-width: 520px) {
  #el { padding: 12px 10px 14px; border-radius: 16px; font-size: 14px; }
  #el .panel { padding: 14px 12px; }
  #el .steps { grid-template-columns: 1fr; }
  #el .steps > div + div { border-left: 0; border-top: 1px solid var(--line); }
  #el .nums b { font-size: 22px; }
  #el .nums span { letter-spacing: .04em; font-size: 9px; }
  #el .attr { grid-template-columns: minmax(0, 118px) minmax(0, 1fr) minmax(30px, auto) !important; }
  #el .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #el .g3 { grid-template-columns: 1fr 1fr; }
  #el .tpick { grid-template-columns: 1fr; }
  #el .stack-m { grid-template-columns: 1fr; }
  #el .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #el .hide-m { display: none; }
  #el .btn.big { font-size: 18px; padding: 10px 18px; white-space: normal; text-align: center; }
  #el .score .tn { font-size: 14px; }
  #el .score .sc { font-size: 30px; min-width: 66px; }
  #el table.t { font-size: 12.5px; }
  #el table.t td, #el table.t th { padding: 6px 5px; }
  #el .stat .v { font-size: 22px; }
}

#el svg.crest { display: inline-block; vertical-align: middle; flex: 0 0 auto; filter: drop-shadow(0 1px 1px rgba(0,0,0,.35)); }
#el .tname svg.crest { margin-right: 5px; vertical-align: -4px; }
@media (max-width: 420px) {
  #el .score .sc { font-size: 28px; min-width: 0; }
  #el .score .tn { font-size: 13px; }
}
@media (max-width: 380px) {
  #el .stat .l { letter-spacing: .02em; font-size: 9.5px; }
  #el .score { grid-template-columns: minmax(0, 1fr); text-align: center; }
  #el .score .tn, #el .score .tn.r { text-align: center; }
}

/* ===================== Szálláskirály megjelenés (alapértelmezett) ===================== */
#el[data-skin="szk"] {
  --frame: #fdf8ee;
  --bg: #f7f0e1;
  --panel: #fffdf8;
  --panel2: #f6eedd;
  --panel3: #eee2c9;
  --line: #e6d8bd;
  --line2: #efe5d2;
  --ink: #12363d;
  --ink2: #2f5258;
  --muted: #6b7b7e;
  --red: #e08a2e;
  --red2: #cf6f22;
  --red-ink: #ffffff;
  --gold: #c98a1c;
  --orange: #cf6f22;
  --green: #1f9e6e;
  --blue: #3f9c8f;
  --neg: #c4553f;
  --green-bg: rgba(31, 158, 110, .1);
  --red-bg: rgba(196, 85, 63, .1);
  --gold-bg: rgba(224, 138, 46, .12);
  --f-head: 'Fraunces', Georgia, 'Times New Roman', serif;
  --f-ui: 'Nunito Sans', 'Segoe UI', system-ui, sans-serif;
  --f-mono: 'Nunito Sans', 'Segoe UI', system-ui, sans-serif;
  border-radius: 22px;
  box-shadow: 0 1px 0 rgba(18, 54, 61, .04);
}
#el[data-skin="szk"][data-theme="dark"] {
  --frame: #0f2a30;
  --bg: #12333a;
  --panel: #163a42;
  --panel2: #1b444d;
  --panel3: #225059;
  --line: #2b5962;
  --line2: #214a53;
  --ink: #fdf8ee;
  --ink2: #e2dccd;
  --muted: #a3b5b5;
  --red: #f0a649;
  --red2: #e08a2e;
  --red-ink: #12363d;
  --gold: #f2c14e;
  --orange: #f0a649;
  --green: #4cc79a;
  --blue: #6cc3b5;
  --neg: #f08c74;
  --green-bg: rgba(76, 199, 154, .12);
  --red-bg: rgba(240, 140, 116, .14);
  --gold-bg: rgba(242, 193, 78, .12);
}
#el[data-skin="szk"] .neg { color: var(--neg); }
#el[data-skin="szk"] .title { font-weight: 800; text-transform: none; letter-spacing: -.02em; font-size: clamp(26px, 6.4vw, 38px); line-height: 1.04; }
#el[data-skin="szk"] h2.sec { font-weight: 800; text-transform: none; letter-spacing: -.01em; font-size: 20px; }
#el[data-skin="szk"] h3 { font-family: var(--f-head); font-weight: 700; text-transform: none; letter-spacing: -.01em; font-size: 17px; }
#el[data-skin="szk"] .status .club { font-weight: 800; text-transform: none; letter-spacing: -.01em; font-size: 19px; }
#el[data-skin="szk"] .kicker, #el[data-skin="szk"] .stat .l, #el[data-skin="szk"] .chip { letter-spacing: .08em; font-weight: 800; }
#el[data-skin="szk"] .steps b, #el[data-skin="szk"] .choice b { text-transform: none; letter-spacing: -.01em; font-weight: 700; font-family: var(--f-head); }
#el[data-skin="szk"] .stat .v, #el[data-skin="szk"] .nums b { font-weight: 800; letter-spacing: -.02em; font-size: 24px; }
#el[data-skin="szk"] .btn { text-transform: none; letter-spacing: 0; font-weight: 800; font-size: 15px; border-radius: 999px; font-family: var(--f-ui); }
#el[data-skin="szk"] .btn:not(.ol):not(.green) { background: var(--red); border-color: var(--red); color: #fff; box-shadow: 0 6px 16px rgba(207, 111, 34, .22); }
#el[data-skin="szk"] .btn:not(.ol):not(.green):hover { background: var(--red2); border-color: var(--red2); }
#el[data-skin="szk"] .btn.ol { border-radius: 999px; }
#el[data-skin="szk"] .btn.green { background: var(--green); border-color: var(--green); color: #fff; }
#el[data-skin="szk"] .tabs button, #el[data-skin="szk"] .tabs a { text-transform: none; letter-spacing: 0; font-family: var(--f-ui); font-weight: 800; font-size: 13.5px; border-radius: 999px; }
#el[data-skin="szk"] .tabs button.on, #el[data-skin="szk"] .tabs a.on { background: var(--ink); border-color: var(--ink); color: var(--frame); }
#el[data-skin="szk"] .seg button { text-transform: none; font-weight: 800; font-size: 13px; letter-spacing: 0; }
#el[data-skin="szk"] .seg button.on { background: var(--ink); color: var(--frame); }
#el[data-skin="szk"] .pill { text-transform: none; letter-spacing: 0; font-weight: 800; }
#el[data-skin="szk"] .chip { border-color: transparent; background: var(--gold-bg); color: var(--red2); }
#el[data-skin="szk"] .box, #el[data-skin="szk"] .stat, #el[data-skin="szk"] .choice, #el[data-skin="szk"] .panel { border-radius: 18px; }
#el[data-skin="szk"] .modal { border-radius: 20px; }
#el[data-skin="szk"] .wheel .ptr { border-top-color: var(--ink); }
@media (max-width: 520px) { #el[data-skin="szk"] .title { font-size: 27px; } }

/* ===================== szállodás elemek ===================== */
#el .hcv { position: relative; border-radius: 16px; overflow-x: auto; overflow-y: hidden; border: 1px solid var(--line); background: #cfe8ef; touch-action: manipulation; }
#el .hcv canvas { display: block; width: 100%; height: auto; cursor: pointer; }
#el .hcv .ovl { position: absolute; left: 10px; top: 8px; right: 10px; display: flex; justify-content: space-between; gap: 8px; pointer-events: none; font-weight: 800; font-size: 13px; color: #12363d; text-shadow: 0 1px 0 rgba(255,255,255,.7); }
#el .stars { color: var(--gold); letter-spacing: .04em; white-space: nowrap; }
#el .stars .off { opacity: .22; }
#el .ratb { display: inline-flex; align-items: center; justify-content: center; min-width: 46px; height: 38px; padding: 0 8px; border-radius: 12px 12px 12px 3px; background: var(--ink); color: var(--frame); font-weight: 800; font-size: 19px; font-family: var(--f-ui); }
#el .ratb.sm { min-width: 36px; height: 28px; font-size: 14px; border-radius: 9px 9px 9px 2px; }
#el .ratb.g { background: var(--green); color: #fff; } #el .ratb.o { background: var(--red); color: #fff; } #el .ratb.r { background: var(--neg, var(--red)); color: #fff; }
#el .kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 560px) { #el .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
#el .rv { border: 1px solid var(--line); background: var(--panel); border-radius: 14px; padding: 10px 12px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 10px; align-items: start; }
#el .rv + .rv { margin-top: 8px; }
#el .rv .who { font-weight: 800; font-size: 13px; }
#el .rv .tx { grid-column: 2; font-size: 14px; color: var(--ink2); }
#el .cmp { display: grid; grid-template-columns: minmax(0, 120px) minmax(0, 1fr) 34px; gap: 8px; align-items: center; margin: 4px 0; font-size: 13.5px; }
#el .cmp .n { text-align: right; font-weight: 800; }
#el .reqs { list-style: none; margin: 6px 0 0; padding: 0; }
#el .reqs li { padding: 5px 0 5px 28px; position: relative; border-bottom: 1px solid var(--line2); font-size: 14px; }
#el .reqs li::before { content: '✕'; position: absolute; left: 4px; top: 5px; color: var(--neg, var(--red)); font-weight: 800; }
#el .reqs li.ok::before { content: '✓'; color: var(--green); }
#el .reqs li.ok { color: var(--muted); }
#el .opt { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); margin-top: 8px; }
#el .opt .ic { font-size: 24px; text-align: center; line-height: 1; }
#el .opt b { display: block; font-size: 14.5px; }
#el .opt .d { font-size: 12.5px; color: var(--muted); line-height: 1.3; }
#el .opt.dis { opacity: .55; }
#el .bands { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 3px; margin-top: 6px; }
#el .bands div { height: 26px; border-radius: 6px; font-size: 10.5px; font-weight: 800; display: flex; align-items: center; justify-content: center; color: #fff; }
#el .b0 { background: #8fb3b5 !important; } #el .b1 { background: #3f9c8f !important; } #el .b2 { background: #e08a2e !important; } #el .b3 { background: #a3315a !important; }
#el .lvl { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line2); }
#el .lvl input[type=range] { width: 100%; accent-color: var(--red); grid-column: 1 / -1; }
#el .lvl .pv { font-weight: 800; font-size: 18px; }
#el .goal { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--line2); font-size: 14px; }
#el .goal .ck { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; }
#el .goal.done .ck { background: var(--green); border-color: var(--green); color: #fff; }
#el .goal .rw { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
#el .wk { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
#el .lg { font-size: 13.5px; padding: 4px 0; border-bottom: 1px dashed var(--line2); }
#el .lg:last-child { border-bottom: 0; }
#el .sel-info { border: 2px solid var(--red); }
#el .feed2 { max-height: 220px; overflow-y: auto; font-size: 13.5px; }
#el .feed2 div { padding: 4px 0; border-bottom: 1px solid var(--line2); }
#el .chart { display: flex; align-items: flex-end; gap: 2px; height: 70px; }
#el .chart i { flex: 1; background: var(--blue); border-radius: 3px 3px 0 0; min-height: 2px; }
#el .chart i.hi { background: var(--red); }
#el .celebr { text-align: center; padding: 6px 0 2px; }
#el .celebr .big { font-size: 46px; color: var(--gold); letter-spacing: .08em; line-height: 1.1; }

/* ===================== Életút ===================== */
#el { max-width: 760px; --sea: #cfe8ef; --land: #fffaf0; --land2: #f1e7d2; --border: #d8c8a6; }
#el[data-theme="dark"] { --sea: #17424b; --land: #23545d; --land2: #1c4950; --border: #3a6a72; }
#el .top .brand { font-family: var(--f-head); font-weight: 800; font-size: 18px; letter-spacing: -.01em; }
#el svg.av { display: block; flex: 0 0 auto; }
#el svg.pc { display: block; width: 100%; height: auto; border-radius: 8px; box-shadow: 0 3px 10px rgba(18, 54, 61, .18); }
#el svg.fam { display: block; width: 100%; height: auto; }
#el svg.map { display: block; width: 100%; height: auto; }
/* fejléc */
#el .status { align-items: center; }
#el .status .hav svg { border-radius: 50%; }
#el .status .nbtn { flex: 0 0 auto; }
#el .tabs .bdg { background: var(--red); color: #fff; border-radius: 999px; font-size: 10px; padding: 1px 6px; position: static; margin-left: 3px; }
/* kezdőlap */
#el .hero { overflow: hidden; position: relative; }
#el .herocards { position: relative; height: 170px; margin: -4px 0 6px; }
#el .herocards > div { position: absolute; width: 46%; max-width: 230px; }
#el .herocards .hc1 { left: 2%; top: 14px; transform: rotate(-6deg); }
#el .herocards .hc2 { left: 28%; top: 0; transform: rotate(3deg); z-index: 2; }
#el .herocards .hc3 { right: 2%; top: 22px; transform: rotate(8deg); }
#el .title.big { font-size: clamp(40px, 11vw, 64px) !important; }
#el .avrow { display: flex; gap: 8px; margin: 12px 0; }
/* varázsló */
#el .wiz { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
#el .wiz span { font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 999px; background: var(--panel2); color: var(--muted); }
#el .wiz span.on { background: var(--red); color: #fff; }
#el .wiz span.done { color: var(--green); }
#el .creator { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 16px; align-items: start; }
#el .cav svg { border-radius: 50%; margin: 0 auto 6px; }
#el .sw { display: flex; gap: 6px; flex-wrap: wrap; }
#el .swc { width: 30px; height: 30px; border-radius: 50%; border: 3px solid transparent; cursor: pointer; box-shadow: 0 0 0 1px var(--line); }
#el .swc.on { border-color: var(--ink); }
#el .chips { display: flex; gap: 6px; flex-wrap: wrap; }
#el .chipb { border: 1.5px solid var(--line); background: var(--panel); color: var(--ink2); border-radius: 999px; padding: 5px 12px; font-weight: 700; font-size: 13.5px; cursor: pointer; }
#el .chipb.on { background: var(--ink); color: var(--frame); border-color: var(--ink); }
#el .chk { display: inline-flex; gap: 6px; align-items: center; font-size: 14px; cursor: pointer; margin-right: 12px; }
#el .cgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
#el .choice { text-align: left; }
#el .choice span { text-transform: none; letter-spacing: 0; font-family: var(--f-ui); font-size: 12px; }
#el .tgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; }
#el .tcard2 { text-align: left; border: 2px solid var(--line); background: var(--panel); border-radius: 14px; padding: 10px; cursor: pointer; color: var(--ink); display: grid; gap: 2px; }
#el .tcard2 .ti { font-size: 22px; }
#el .tcard2 b { font-size: 15px; }
#el .tcard2 span:last-child { font-size: 12px; color: var(--muted); }
#el .tcard2.on { border-color: var(--red); background: var(--gold-bg); }
#el .bucketsel { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; padding: 8px; background: var(--panel2); border-radius: 12px; margin: 8px 0; }
#el .bk { background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; font-size: 13px; font-weight: 700; }
#el .dgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
#el .dpick { border: 2px solid transparent; background: none; padding: 3px; border-radius: 10px; cursor: pointer; color: var(--ink); text-align: left; }
#el .dpick span { display: block; font-size: 12px; font-weight: 700; margin-top: 3px; }
#el .dpick.on { border-color: var(--red); background: var(--gold-bg); }
#el .btns.stick { position: sticky; bottom: 8px; background: var(--panel); padding: 8px; border-radius: 14px; box-shadow: 0 4px 16px rgba(0, 0, 0, .12); z-index: 5; }
#el .ulist { display: grid; gap: 6px; }
#el .uopt { display: flex; gap: 10px; align-items: center; border: 1.5px solid var(--line); background: var(--panel); border-radius: 12px; padding: 8px 10px; cursor: pointer; text-align: left; color: var(--ink); }
#el .uopt:hover { border-color: var(--red); }
#el .uopt .ic, #el .uopt2 .ic { font-size: 22px; flex: 0 0 auto; }
#el .uopt b { display: block; font-size: 14.5px; }
#el .uopt span span { font-size: 12px; color: var(--muted); }
#el .uopt2 { display: flex; gap: 8px; align-items: center; border-bottom: 1px solid var(--line2); padding: 6px 0; }
#el .uopt2 .grow { flex: 1; min-width: 0; }
#el .uopt2 b { display: block; font-size: 14px; }
#el .uopt2.dis { opacity: .55; }
/* áttekintés */
#el .famp { padding: 0; overflow: hidden; }
#el .famscene { line-height: 0; }
#el .famscene.sm { border-radius: 14px; overflow: hidden; max-height: 170px; }
#el .famcap { padding: 12px 18px 16px; }
#el .famcap .title { margin: 4px 0 4px; }
#el .sbar { display: grid; grid-template-columns: 22px 98px minmax(0, 1fr) 30px; gap: 6px; align-items: center; margin: 5px 0; font-size: 13.5px; }
#el .sbar .bar { height: 9px; border-radius: 5px; }
#el .sbar .bar > i { border-radius: 5px; }
#el .sbar b { text-align: right; }
#el .kpis2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
#el .kpis2 .stat .v { font-size: 20px; }
#el .info a, #el .small a, #el p a { color: var(--red2); font-weight: 800; cursor: pointer; }
#el .info + .info { margin-top: 6px; }
#el .trow { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line2); font-size: 14px; }
#el .trow .tic { font-size: 20px; }
/* munka */
#el .jobcard { display: flex; gap: 14px; align-items: flex-start; background: var(--panel2); border-radius: 16px; padding: 14px; }
#el .jobcard .jic { font-size: 36px; line-height: 1; }
#el .jobcard .grow { flex: 1; min-width: 0; }
#el .jobcard h3 { font-size: 20px; margin: 2px 0 4px; }
#el .jobcard .bar { margin: 4px 0; height: 8px; }
#el .ladder { display: flex; gap: 4px; overflow-x: auto; margin-top: 10px; padding-bottom: 4px; }
#el .ladder > div { flex: 1 0 110px; background: var(--panel2); border-radius: 10px; padding: 6px 8px; font-size: 12px; border: 2px solid transparent; }
#el .ladder > div b { display: block; font-size: 12.5px; line-height: 1.2; }
#el .ladder > div.on { border-color: var(--red); background: var(--gold-bg); }
#el .ladder > div.done { opacity: .6; }
#el .jl { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 6px; }
#el .jli { display: flex; gap: 8px; font-size: 13.5px; padding: 6px 8px; background: var(--panel2); border-radius: 10px; }
#el .jli > span:first-child { font-size: 20px; }
#el .lrow { display: grid; grid-template-columns: 110px minmax(0, 1fr) 46px auto; gap: 8px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line2); font-size: 14px; }
#el .lrow .bar { height: 8px; }
/* család */
#el .kids { display: flex; gap: 10px; flex-wrap: wrap; }
#el .kid { display: flex; flex-direction: column; align-items: center; gap: 2px; background: var(--panel2); border: 2px solid transparent; border-radius: 14px; padding: 8px 10px; min-width: 96px; color: var(--ink); cursor: default; }
#el button.kid { cursor: pointer; }
#el .kid.on { border-color: var(--red); }
#el .kid svg { border-radius: 50%; }
/* utazás */
#el .mapw { border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--sea); }
#el .pin:hover circle:last-of-type { filter: brightness(1.15); }
#el .legend { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; color: var(--muted); }
#el .legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 4px; vertical-align: -1px; }
#el .dlist2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 8px; }
#el .dl2 { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px; align-items: center; text-align: left; border: 1.5px solid var(--line); background: var(--panel); border-radius: 14px; padding: 6px; cursor: pointer; color: var(--ink); }
#el .dl2:hover { border-color: var(--red); }
#el .dl2 .dtx { display: grid; gap: 2px; min-width: 0; }
#el .dl2 b { font-size: 14px; }
#el .sea4 i { font-style: normal; font-size: 13px; margin-right: 2px; }
#el .modal.wide { max-width: 760px; }
#el .plhead { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 14px; align-items: start; }
#el .seg.wrapseg { flex-wrap: wrap; }
#el .seg button[disabled] { opacity: .35; cursor: not-allowed; }
#el .szk { font-family: var(--f-ui); font-size: 11px; font-weight: 800; background: var(--red); color: #fff; border-radius: 999px; padding: 2px 8px; vertical-align: 3px; margin-left: 6px; }
#el .offs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
#el .off { text-align: left; border: 2px solid var(--line); background: var(--panel); border-radius: 14px; padding: 10px; cursor: pointer; color: var(--ink); display: grid; gap: 3px; }
#el .off.on { border-color: var(--red); background: var(--gold-bg); box-shadow: 0 4px 14px rgba(224, 138, 46, .2); }
#el .off b { font-size: 14.5px; }
#el .quote { display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 12px; background: var(--panel2); border-radius: 14px; padding: 10px; }
#el .quote .qside { text-align: center; border-left: 1px solid var(--line); padding-left: 10px; }
#el .stars.big { font-size: 22px; letter-spacing: 2px; color: var(--gold); }
#el .stars .off, #el .stars.big .off { opacity: .22; color: var(--gold); border: 0; background: none; padding: 0; display: inline; }
/* utazás-animáció */
#el .modal.trip { max-width: 640px; overflow: hidden; }
#el .tripmap { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--sea); }
#el .route { animation: elroute 2.6s linear forwards; stroke-dashoffset: 400; }
@keyframes elroute { from { opacity: .2; } to { opacity: 1; } }
#el .pcwrap { perspective: 900px; margin: -60px auto 0; width: 82%; position: relative; z-index: 3; }
#el .pcflip { transform: rotateY(90deg) translateY(20px); opacity: 0; transition: transform .7s cubic-bezier(.2, 1.3, .4, 1), opacity .3s; }
#el .pcflip.in { transform: rotate(-2deg); opacity: 1; }
#el .pcflip svg { box-shadow: 0 16px 40px rgba(0, 0, 0, .35); }
#el .tripinfo { margin-top: 12px; animation: elfade .5s; }
@keyframes elfade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
#el .eptag { font-weight: 800; font-size: 20px; color: var(--red2); }
#el .memo { font-style: italic; }
#el .qst { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; font-size: 14px; }
#el .qst > div { background: var(--panel2); border-radius: 10px; padding: 6px 10px; }
/* album */
#el .bucket { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
#el .bki { cursor: pointer; font-size: 12.5px; font-weight: 700; }
#el .bki span { display: block; margin-top: 4px; }
#el .bki:not(.done) svg { filter: grayscale(.75) opacity(.75); }
#el .album { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
#el .acard { background: none; border: 0; padding: 0; text-align: left; color: var(--ink); cursor: pointer; display: grid; gap: 4px; }
#el .acard:nth-child(3n+1) svg { transform: rotate(-1.5deg); } #el .acard:nth-child(3n+2) svg { transform: rotate(1.2deg); }
#el .pcbig { max-width: 520px; margin: 0 auto; }
#el .tl { border-left: 3px solid var(--line); margin-left: 12px; padding-left: 4px; }
#el .tli { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 6px; align-items: start; padding: 5px 0; font-size: 14px; position: relative; }
#el .tli .tic { font-size: 18px; background: var(--panel); margin-left: -20px; text-align: center; }
#el .book .title { font-size: clamp(28px, 7vw, 44px); }
#el .book svg.av { margin: 0 auto 6px; border-radius: 50%; }
@media (max-width: 600px) {
  #el .creator { grid-template-columns: 1fr; }
  #el .plhead { grid-template-columns: 1fr; }
  #el .offs { grid-template-columns: 1fr; }
  #el .quote { grid-template-columns: 1fr; }
  #el .quote .qside { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 8px; }
  #el .dlist2 { grid-template-columns: 1fr; }
  #el .album { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  #el .lrow { grid-template-columns: 92px minmax(0, 1fr) 34px; }
  #el .lrow > span:last-child { grid-column: 1 / -1; }
  #el .sbar { grid-template-columns: 20px 86px minmax(0, 1fr) 28px; }
  #el .status .hav { display: none; }
  #el .herocards { height: 130px; }
}
@media (max-width: 400px) {
  #el .kpis2 { grid-template-columns: 1fr 1fr; }
  #el .qst { grid-template-columns: 1fr; }
  #el .album { grid-template-columns: 1fr 1fr; }
}
#el .uopt span span b { display: inline; }
#el .dl2 .dtx .tag { justify-self: start; }
#el .opt .d b { display: inline; font-size: inherit; }
#el table.t.sm td:first-child { white-space: normal; }
#el table.t.sm { width: 100%; }
@media (max-width: 600px) {
  #el .opt { grid-template-columns: 34px minmax(0, 1fr); }
  #el .opt > div:last-child:not(:empty) { grid-column: 1 / -1; justify-self: end; }
  #el .opt > div:last-child:empty { display: none; }
}
@media (max-width: 640px) { #el .dashg { grid-template-columns: minmax(0, 1fr) !important; } }
#el .uopt2 { flex-wrap: wrap; }
#el .uopt2 .grow { flex: 1 1 150px; }
#el .uopt2 > .btns, #el .uopt2 > button { margin-left: auto; }
#el .cgrid .choice b { font-size: 16px; overflow-wrap: anywhere; }
/* élő családi kép */
#el svg.fam .fall { animation: elfall 8s linear infinite; }
#el svg.fam .leaf { animation: elleaf 9s linear infinite; transform-box: fill-box; }
#el svg.fam .bird { animation: elbird 18s linear infinite; }
#el svg.fam .drift { animation: eldrift 30s ease-in-out infinite alternate; }
@keyframes elfall { from { transform: translateY(0); } to { transform: translateY(280px); } }
@keyframes elleaf { 0% { transform: translate(0, 0) rotate(0); } 50% { transform: translate(18px, 140px) rotate(180deg); } 100% { transform: translate(-6px, 280px) rotate(360deg); } }
@keyframes elbird { from { transform: translateX(-40px); } to { transform: translateX(640px); } }
@keyframes eldrift { from { transform: translateX(-30px); } to { transform: translateX(30px); } }
@media (prefers-reduced-motion: reduce) { #el svg.fam .fall, #el svg.fam .leaf, #el svg.fam .bird, #el svg.fam .drift { animation: none; } }
/* kitüntetések, könyv */
#el .kpis2 .wide2 { grid-column: 1 / -1; }
#el .achg, #el .achnew { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px; }
#el .achi { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 12px; background: var(--panel2); opacity: .55; min-width: 0; }
#el .achi.on { opacity: 1; background: var(--gold-bg); box-shadow: 0 0 0 1.5px var(--red) inset; }
#el .achi .ai { font-size: 24px; flex: 0 0 auto; }
#el .achi > span:last-child { display: grid; min-width: 0; }
#el .achi b { font-size: 14px; }
#el .achnew .achi { animation: elfade .6s; }
#el .charts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
#el .chart2 { margin: 0; background: var(--panel2); border-radius: 14px; padding: 8px 10px; min-width: 0; }
#el .chart2 svg { display: block; width: 100%; height: auto; }
#el .chart2 .hv line, #el .chart2 .hv circle { opacity: 0; }
#el .chart2 .hv:hover line, #el .chart2 .hv:hover circle { opacity: 1; }
#el .years { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
#el .yr { background: var(--panel2); border-radius: 14px; padding: 8px; min-width: 0; }
#el .yr .yt { margin: 6px 0 2px; }
#el .nbtn { display: flex; flex-direction: column; gap: 6px; align-items: stretch; }
@media (max-width: 600px) {
  #el .charts, #el .years { grid-template-columns: minmax(0, 1fr); }
  #el .nbtn { flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 600px) {
  #el .yr { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 4px 10px; align-items: start; }
  #el .yr > svg { grid-row: span 2; }
  #el .yr .yt { margin: 0; }
}
