/* Betűtípusok a játék saját fonts/ mappájából (külső betűszolgáltató nélkül – GDPR). */
@font-face { font-family: 'Barlow'; font-style: normal; font-display: swap; font-weight: 400; src: url(../fonts/barlow-latin-ext-400-normal.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Barlow'; font-style: normal; font-display: swap; font-weight: 400; src: url(../fonts/barlow-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Barlow'; font-style: normal; font-display: swap; font-weight: 500; src: url(../fonts/barlow-latin-ext-500-normal.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Barlow'; font-style: normal; font-display: swap; font-weight: 500; src: url(../fonts/barlow-latin-500-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Barlow'; font-style: normal; font-display: swap; font-weight: 600; src: url(../fonts/barlow-latin-ext-600-normal.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Barlow'; font-style: normal; font-display: swap; font-weight: 600; src: url(../fonts/barlow-latin-600-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Barlow'; font-style: normal; font-display: swap; font-weight: 700; src: url(../fonts/barlow-latin-ext-700-normal.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Barlow'; font-style: normal; font-display: swap; font-weight: 700; src: url(../fonts/barlow-latin-700-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-display: swap; font-weight: 500; src: url(../fonts/barlow-condensed-latin-ext-500-normal.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-display: swap; font-weight: 500; src: url(../fonts/barlow-condensed-latin-500-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-display: swap; font-weight: 600; src: url(../fonts/barlow-condensed-latin-ext-600-normal.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-display: swap; font-weight: 600; src: url(../fonts/barlow-condensed-latin-600-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-display: swap; font-weight: 700; src: url(../fonts/barlow-condensed-latin-ext-700-normal.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-display: swap; font-weight: 700; src: url(../fonts/barlow-condensed-latin-700-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-display: swap; font-weight: 400; src: url(../fonts/ibm-plex-mono-latin-ext-400-normal.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-display: swap; font-weight: 400; src: url(../fonts/ibm-plex-mono-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-display: swap; font-weight: 600; src: url(../fonts/ibm-plex-mono-latin-ext-600-normal.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-display: swap; font-weight: 600; src: url(../fonts/ibm-plex-mono-latin-600-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

/* ---------- ne lógjon ki semmi (keskeny kijelző, más betűtípus, befogadó oldal stílusai) ---------- */
#vm#vm .grid > *, #vm#vm .row > *, #vm#vm .btns > * { min-width: 0; }
#vm#vm .btn { max-width: 100%; white-space: normal; overflow-wrap: anywhere; text-align: center; flex-wrap: wrap; column-gap: 5px; row-gap: 0; }
#vm#vm .btn > span { min-width: 0; }
#vm#vm h1, #vm#vm h2, #vm#vm h3, #vm#vm .title { overflow-wrap: anywhere; }
#vm#vm table .btn, #vm#vm .tabs .btn { white-space: nowrap; overflow-wrap: normal; }
#vm#vm .tw { max-width: 100%; display: block; }
#vm#vm .tw > table.t { max-width: none; }
