/* Kerékpáros csapatmenedzser widget – a fortunajatek.hu játékwidgetjeinek stílusában.
   Minden szabály a #kr konténeren belül érvényes, így beágyazva sem ütközik az oldal stílusaival.
   A színek a #kr változóiban, egy helyen állíthatók. */
#kr {
  --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;
}
#kr[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);
}
#kr *, #kr *::before, #kr *::after { box-sizing: border-box; }
#kr button, #kr input, #kr select { font: inherit; color: inherit; margin: 0; }
#kr a { color: inherit; }
#kr h1, #kr h2, #kr h3, #kr p { margin: 0; }
#kr img { max-width: 100%; }

/* ---------- felső sor ---------- */
#kr .top { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
#kr .top .sp { flex: 1; }
#kr .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;
}
#kr .pill:hover { color: var(--ink); border-color: var(--muted); }
#kr .pill.on { color: var(--ink); border-color: var(--ink); }
#kr .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 ---------- */
#kr .panel { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 18px 18px; }
#kr .panel + .panel { margin-top: 12px; }
#kr .panel.tight { padding: 12px 14px; }
#kr .status { display: flex; align-items: center; gap: 10px; padding: 10px 12px; flex-wrap: wrap; }
#kr .status .club { font-family: var(--f-head); font-weight: 700; font-size: 20px; text-transform: uppercase; letter-spacing: .02em; line-height: 1.05; }
#kr .status .meta { font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; color: var(--muted); text-transform: uppercase; }
#kr .status .meta b { color: var(--ink); }
#kr .status .grow { flex: 1; min-width: 150px; }
#kr .tabs { display: flex; gap: 6px; overflow-x: auto; padding: 10px 0 12px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
#kr .tabs::-webkit-scrollbar { display: none; }
#kr .tabs button, #kr .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; }
#kr .tabs button:hover, #kr .tabs a:hover { border-color: var(--muted); color: var(--ink); }
#kr .tabs button.on, #kr .tabs a.on { background: var(--red); border-color: var(--red); color: var(--red-ink); }
#kr .tabs .bdg { position: absolute; top: -6px; right: -6px; }

#kr .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; }
#kr .kicker { font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; color: var(--muted); text-transform: uppercase; }
#kr .lead { font-size: 16.5px; font-weight: 500; color: var(--ink); line-height: 1.55; }
#kr .txt { color: var(--ink2); font-size: 15px; line-height: 1.6; }
#kr 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; }
#kr h2.sec::before { content: ''; width: 4px; height: 18px; background: var(--red); border-radius: 2px; }
#kr h3 { font-family: var(--f-head); font-weight: 700; text-transform: uppercase; font-size: 17px; letter-spacing: .03em; margin-bottom: 6px; }
#kr .mono { font-family: var(--f-mono); }
#kr .muted { color: var(--muted); }
#kr .small { font-size: 13px; }
#kr .xs { font-size: 11.5px; }
#kr .pos { color: var(--green); }
#kr .neg { color: var(--red); }
#kr .gold { color: var(--gold); }
#kr .center { text-align: center; }
#kr .mt { margin-top: 12px; }
#kr .mt2 { margin-top: 18px; }

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

/* statisztika-kártyák */
#kr .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ő) */
#kr .grid { display: grid; gap: 10px; }
#kr .g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
#kr .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
#kr .g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
#kr .stat { background: var(--panel2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; min-width: 0; }
#kr .stat .l { font-family: var(--f-mono); font-size: 10px; letter-spacing: .12em; color: var(--muted); text-transform: uppercase; }
#kr .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; }
#kr .stat .s { font-size: 12px; color: var(--muted); }
#kr .box { background: var(--panel2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; min-width: 0; }
#kr .box.acc { border-left: 3px solid var(--green); }
#kr .box.acc-gold { border-left: 3px solid var(--gold); }
#kr .box.acc-red { border-left: 3px solid var(--red); }

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

#kr .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; }
#kr .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; }
#kr .tag.red { color: var(--red); border-color: var(--red); }
#kr .tag.green { color: var(--green); border-color: var(--green); }
#kr .tag.gold { color: var(--gold); border-color: var(--gold); }
#kr .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; }
#kr .ovr { display: inline-block; min-width: 28px; text-align: center; font-family: var(--f-head); font-weight: 700; font-size: 17px; }
#kr .flag { font-family: var(--f-mono); font-size: 10.5px; color: var(--muted); }

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

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

/* hírek */
#kr .news { list-style: none; margin: 0; padding: 0; }
#kr .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; }
#kr .news li.n-ok { border-left-color: var(--green); }
#kr .news li.n-bad { border-left-color: var(--red); }
#kr .news li.n-offer { border-left-color: var(--gold); }
#kr .news li.n-info { border-left-color: var(--blue); }
#kr .news .d { font-family: var(--f-mono); font-size: 10px; color: var(--muted); display: block; letter-spacing: .08em; }

/* modális ablak */
#kr .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; }
#kr .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; }
#kr .modal-h { padding: 16px 18px 6px; display: flex; align-items: flex-start; gap: 10px; }
#kr .modal-h h3 { font-size: 24px; margin: 0; flex: 1; line-height: 1.05; }
#kr .modal-b { padding: 6px 18px 18px; }
#kr .x { background: none; border: 0; font-size: 26px; line-height: 1; cursor: pointer; color: var(--muted); padding: 0 4px; }
#kr .x:hover { color: var(--red); }
#kr .toasts { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 9999; display: flex; flex-direction: column; gap: 6px; align-items: center; width: max-content; max-width: 92vw; }
#kr .toast { background: var(--panel3); color: var(--ink); padding: 10px 16px; 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; }


/* meccs */
#kr .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; }
#kr .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; }
#kr .score .tn.r { text-align: right; }
#kr .score .sc { font-family: var(--f-head); font-weight: 700; font-size: 38px; line-height: 1; text-align: center; min-width: 86px; }
#kr .score .clk { font-family: var(--f-mono); font-size: 11.5px; text-align: center; color: var(--gold); }
#kr .kit { display: inline-block; width: 11px; height: 11px; border-radius: 50%; border: 2px solid #fff; vertical-align: -1px; margin: 0 5px; }
#kr .courtw { display: flex; justify-content: center; background: #1b1f26; }
#kr canvas.court { display: block; touch-action: manipulation; max-width: 100%; }
#kr .mview.bb { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
#kr table.t.res { table-layout: fixed; width: 100%; }
#kr table.t.res td { white-space: normal; overflow-wrap: anywhere; }
#kr table.t.res td.c { width: 74px; }
#kr table.t.res td.r { text-align: right; }
#kr .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; }
#kr .tower td { padding: 3px 5px; }
#kr .feed div.me { border-left: 3px solid var(--gold); }
#kr .show-m { display: none; }
@media (max-width: 520px) { #kr .show-m { display: inline; } }
#kr table.t.sm td, #kr table.t.sm th { padding: 4px 5px; font-size: 12.5px; }
#kr .feed { max-height: 320px; overflow-y: auto; border: 1px solid var(--line); border-radius: 12px; }
#kr .feed div { padding: 6px 10px; border-bottom: 1px solid var(--line2); font-size: 14px; }
#kr .feed div b.m { font-family: var(--f-mono); font-size: 11px; color: var(--muted); display: inline-block; width: 64px; font-weight: 600; }
#kr .feed div.goal { background: var(--gold-bg); font-weight: 600; }
#kr .feed b.ic { display: inline-block; width: 9px; height: 12px; vertical-align: -1px; margin-right: 4px; border-radius: 1px; }
#kr .feed div.card-y b.ic { background: #f3cf00; } #kr .feed div.card-r b.ic { background: #d0021b; }
#kr .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ó */
#kr .tpick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
#kr .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; }
#kr .tcard:hover { border-color: var(--gold); border-left-color: var(--c, var(--gold)); }
#kr .tcard .tnm { font-family: var(--f-head); font-weight: 700; font-size: 19px; text-transform: uppercase; line-height: 1.05; }
#kr .stars { color: var(--gold); letter-spacing: 1px; font-size: 13px; }

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

/* szerencsekerék */
#kr .wheel { position: relative; width: min(320px, 82vw); aspect-ratio: 1; margin: 6px auto 12px; }
#kr .wheel canvas { width: 100%; height: 100%; display: block; }
#kr .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; }

#kr .attr { display: grid; grid-template-columns: 86px minmax(0, 1fr) 30px; gap: 8px; align-items: center; font-size: 13px; margin: 3px 0; }
#kr .attr input[type=range] { width: 100%; min-width: 0; margin: 0; }
#kr .attr .n { text-align: right; font-family: var(--f-head); font-weight: 700; font-size: 15px; }
#kr .chart { width: 100%; height: 170px; display: block; }
#kr .empty { padding: 18px; text-align: center; color: var(--muted); }
#kr .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); } }
#kr .hide { display: none !important; }
#kr details summary { cursor: pointer; }
#kr h1, #kr h2, #kr h3, #kr .stat .l, #kr .stat .s, #kr .box, #kr .btn, #kr .small, #kr .txt, #kr .title { overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }
@media (max-width: 520px) {
  #kr .btn { white-space: normal; max-width: 100%; text-align: center; }
  #kr .grid > *, #kr .box { min-width: 0; }
  #kr .stat .l { letter-spacing: .06em; }
}
@media (max-width: 420px) {
  #kr .g3, #kr .stack-s { grid-template-columns: minmax(0, 1fr) !important; }
  #kr .btn { padding-left: 10px; padding-right: 10px; }
  #kr .score { padding: 8px; gap: 4px; }
  #kr .score .sc { font-size: 28px; min-width: 0; }
  #kr .score .tn { font-size: 13px; }
}
@media (max-width: 520px) {
  #kr { padding: 12px 10px 14px; border-radius: 16px; font-size: 14px; }
  #kr .panel { padding: 14px 12px; }
  #kr .steps { grid-template-columns: 1fr; }
  #kr .steps > div + div { border-left: 0; border-top: 1px solid var(--line); }
  #kr .nums b { font-size: 22px; }
  #kr .nums span { letter-spacing: .04em; font-size: 9px; }
  #kr .attr { grid-template-columns: minmax(0, 118px) minmax(0, 1fr) minmax(30px, auto) !important; }
  #kr .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #kr .g3 { grid-template-columns: 1fr 1fr; }
  #kr .tpick { grid-template-columns: 1fr; }
  #kr .stack-m { grid-template-columns: 1fr; }
  #kr .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #kr .hide-m { display: none; }
  #kr .btn.big { font-size: 18px; padding: 10px 18px; white-space: normal; text-align: center; }
  #kr .score .tn { font-size: 14px; }
  #kr .score .sc { font-size: 30px; min-width: 66px; }
  #kr table.t { font-size: 12.5px; }
  #kr table.t td, #kr table.t th { padding: 6px 5px; }
  #kr .stat .v { font-size: 22px; }
}

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

/* ---------- kerékpáros kiegészítések ---------- */
#kr .modal.wide { max-width: 760px; }
#kr .stat.hl { border-color: var(--gold); }
#kr .pos-b { width: 42px; }
#kr .pos-GC { background: #b8860b; } #kr .pos-MO { background: #c0392b; } #kr .pos-SP { background: #1f8f4a; }
#kr .pos-TT { background: #2769b0; } #kr .pos-CL { background: #7a4fbf; } #kr .pos-DO { background: #5c6470; }
/* trikó ikon */
#kr .jer { display: inline-block; width: 16px; height: 14px; vertical-align: -2px; margin-right: 4px; background: var(--jc); border: 1px solid rgba(0, 0, 0, .45);
  clip-path: polygon(28% 0, 72% 0, 100% 22%, 86% 42%, 78% 34%, 78% 100%, 22% 100%, 22% 34%, 14% 42%, 0 22%); }
#kr .jer.sm { width: 13px; height: 11px; }
#kr svg.prof { width: 100%; display: block; margin: 6px 0 4px; }
#kr .mrow { display: flex; gap: 8px; align-items: center; padding: 5px 0; border-bottom: 1px solid var(--line2); font-size: 13.5px; min-width: 0; }
#kr .mrow:last-of-type { border-bottom: 0; }
#kr .mrow.out { opacity: .5; }
#kr .mrow .bar { flex: 0 0 auto; }
#kr canvas.court { border-radius: 0; }
#kr .courtw { background: #cfe8ff; }
#kr table.t td .nm { vertical-align: middle; }
@media (max-width: 520px) {
  #kr .mrow { font-size: 12.5px; gap: 6px; }
  #kr .mrow .bar { width: 44px !important; }
}
#kr .pticks { display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: 10px; color: var(--muted); margin: -2px 0 4px; }
#kr .status .club, #kr .tcard .tnm, #kr .title, #kr .modal-h h3 { overflow-wrap: anywhere; }
