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

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

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

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

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

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

#hm .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; }
#hm .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; }
#hm .tag.red { color: var(--red); border-color: var(--red); }
#hm .tag.green { color: var(--green); border-color: var(--green); }
#hm .tag.gold { color: var(--gold); border-color: var(--gold); }
#hm .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; }
#hm .pos-GK { background: #b8860b; } #hm .pos-DF { background: #2769b0; } #hm .pos-MF { background: #2e8a44; } #hm .pos-FW { background: #d0283d; }
#hm .ovr { display: inline-block; min-width: 28px; text-align: center; font-family: var(--f-head); font-weight: 700; font-size: 17px; }
#hm .flag { font-family: var(--f-mono); font-size: 10.5px; color: var(--muted); }
#hm .frm { display: inline-flex; gap: 2px; }
#hm .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; }
#hm .frm .W { background: #22a55b; } #hm .frm .D { background: #6c727b; } #hm .frm .L { background: #d0283d; }

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

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

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

/* modális ablak */
#hm .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; }
#hm .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; }
#hm .modal-h { padding: 16px 18px 6px; display: flex; align-items: flex-start; gap: 10px; }
#hm .modal-h h3 { font-size: 24px; margin: 0; flex: 1; line-height: 1.05; }
#hm .modal-b { padding: 6px 18px 18px; }
#hm .x { background: none; border: 0; font-size: 26px; line-height: 1; cursor: pointer; color: var(--muted); padding: 0 4px; }
#hm .x:hover { color: var(--red); }
#hm .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 */
#hm .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); }
#hm .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; }
#hm .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); }
#hm .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%; }
#hm .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%; }
#hm .tcourt .hoop::before { content: ''; position: absolute; left: -12px; right: -12px; top: -9px; border-top: 3px solid #f4f4f4; }
#hm .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%; }
#hm .tdot { position: absolute; transform: translate(-50%, -50%); width: 64px; text-align: center; cursor: pointer; z-index: 2; }
#hm .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; }
#hm .tdot.gk .c { background: radial-gradient(circle at 35% 30%, #fff6 0 18%, transparent 19%), #c9960c; }
#hm .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; }
#hm .tdot .sl { font-family: var(--f-mono); font-size: 9px; color: #e8ffe4; }
#hm .tdot.sel .c { outline: 3px solid var(--gold); }
#hm .tdot.bad .c { border-color: #ffb3b3; }
#hm .tdot.warn .nm2 { color: #ffd76a; }
#hm .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; }
#hm .benchl .it.sel { outline: 2px solid var(--gold); }
#hm .benchl .it:hover { border-color: var(--muted); }
#hm .benchl .it .nmx { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

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

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

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

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

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

/* ===================== Szálláskirály megjelenés (alapértelmezett) ===================== */
#hm[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);
}
#hm[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);
}
#hm[data-skin="szk"] .neg { color: var(--neg); }
#hm[data-skin="szk"] .title { font-weight: 800; text-transform: none; letter-spacing: -.02em; font-size: clamp(26px, 6.4vw, 38px); line-height: 1.04; }
#hm[data-skin="szk"] h2.sec { font-weight: 800; text-transform: none; letter-spacing: -.01em; font-size: 20px; }
#hm[data-skin="szk"] h3 { font-family: var(--f-head); font-weight: 700; text-transform: none; letter-spacing: -.01em; font-size: 17px; }
#hm[data-skin="szk"] .status .club { font-weight: 800; text-transform: none; letter-spacing: -.01em; font-size: 19px; }
#hm[data-skin="szk"] .kicker, #hm[data-skin="szk"] .stat .l, #hm[data-skin="szk"] .chip { letter-spacing: .08em; font-weight: 800; }
#hm[data-skin="szk"] .steps b, #hm[data-skin="szk"] .choice b { text-transform: none; letter-spacing: -.01em; font-weight: 700; font-family: var(--f-head); }
#hm[data-skin="szk"] .stat .v, #hm[data-skin="szk"] .nums b { font-weight: 800; letter-spacing: -.02em; font-size: 24px; }
#hm[data-skin="szk"] .btn { text-transform: none; letter-spacing: 0; font-weight: 800; font-size: 15px; border-radius: 999px; font-family: var(--f-ui); }
#hm[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); }
#hm[data-skin="szk"] .btn:not(.ol):not(.green):hover { background: var(--red2); border-color: var(--red2); }
#hm[data-skin="szk"] .btn.ol { border-radius: 999px; }
#hm[data-skin="szk"] .btn.green { background: var(--green); border-color: var(--green); color: #fff; }
#hm[data-skin="szk"] .tabs button, #hm[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; }
#hm[data-skin="szk"] .tabs button.on, #hm[data-skin="szk"] .tabs a.on { background: var(--ink); border-color: var(--ink); color: var(--frame); }
#hm[data-skin="szk"] .seg button { text-transform: none; font-weight: 800; font-size: 13px; letter-spacing: 0; }
#hm[data-skin="szk"] .seg button.on { background: var(--ink); color: var(--frame); }
#hm[data-skin="szk"] .pill { text-transform: none; letter-spacing: 0; font-weight: 800; }
#hm[data-skin="szk"] .chip { border-color: transparent; background: var(--gold-bg); color: var(--red2); }
#hm[data-skin="szk"] .box, #hm[data-skin="szk"] .stat, #hm[data-skin="szk"] .choice, #hm[data-skin="szk"] .panel { border-radius: 18px; }
#hm[data-skin="szk"] .modal { border-radius: 20px; }
#hm[data-skin="szk"] .wheel .ptr { border-top-color: var(--ink); }
@media (max-width: 520px) { #hm[data-skin="szk"] .title { font-size: 27px; } }

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