:root {
  --bg: #f4f6f5;
  --card: #ffffff;
  --ink: #15241f;
  --muted: #5d6f68;
  --green: #0b3d2e;
  --green2: #15663f;
  --accent: #e8b94a;
  --accent-ink: #3d2e07;
  --line: #e2e8e5;
  --red: #b3372f;
  --nav-bg: #ffffff;
  --input-bg: #fafcfb;
  --chip-bg: #eef4f1;
  --me-row: #fdf6e3;
  --tt-bg: #f0f4f2;
  --sec-btn: #eef1f0;
  --hit-bg: #e3f2e9;
  --hit-line: #bcdcc9;
  --hit-ink: #15663f;
  --toast-bg: #15241f;
  --toast-ink: #ffffff;
  --red-bg: #f9e7e5;
  --radius: 14px;
  --focus: #15663f;
  --skel-base: #e9efec;
  --skel-shine: #f6faf8;
}
:root[data-theme="dark"] {
  --bg: #0f1512;
  --card: #1a231e;
  --ink: #e8efe9;
  --muted: #9ab0a4;
  --green: #0b3d2e;
  --green2: #37b878;
  --accent: #e0b54e;
  --accent-ink: #3d2e07;
  --line: #2b362f;
  --red: #e0705f;
  --nav-bg: #161e1a;
  --input-bg: #121a16;
  --chip-bg: #243029;
  --me-row: #34301a;
  --tt-bg: #243029;
  --sec-btn: #2a352f;
  --hit-bg: #1e3a2b;
  --hit-line: #2e5740;
  --hit-ink: #86d8ab;
  --toast-bg: #e8efe9;
  --toast-ink: #15241f;
  --red-bg: #3a2420;
  --focus: #37b878;
  --skel-base: #222d27;
  --skel-shine: #2e3b34;
}
* { box-sizing: border-box; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
*::-webkit-scrollbar { width: 7px; height: 7px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: var(--line); border-radius: 99px; }
*::-webkit-scrollbar-thumb:hover { background: var(--muted); }
html, body { margin: 0; padding: 0; }
html { touch-action: manipulation; }
body {
  font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background: var(--bg); color: var(--ink);
  padding-bottom: calc(64px + env(safe-area-inset-bottom));
}
.hidden { display: none !important; }
.small { font-size: 12px; color: var(--muted); }

/* login */
.login { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, #0b3d2e, #15663f 60%, #0b3d2e); padding: 20px; }
.login-card { background: var(--card); border-radius: 20px; padding: 32px 26px; max-width: 360px; width: 100%;
  text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.login-card h1 { margin: 8px 0 10px; font-size: 26px; line-height: 1.15; }
.login-card p { color: var(--muted); font-size: 14px; }
.login-card .ball { font-size: 44px; }
#gbtn { display: flex; justify-content: center; margin-top: 18px; min-height: 44px; }
#login-err { color: var(--red); min-height: 1em; }
.iab { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; padding: 14px;
  background: var(--hit-bg); border: 1px solid var(--hit-line); border-radius: 12px; font-size: 14px; color: var(--ink); }
.iab .btn { margin-top: 4px; }

/* header */
header { position: sticky; top: 0; z-index: 20; background: var(--green); color: #fff;
  display: flex; align-items: center; justify-content: space-between; padding: 10px 14px;
  padding-top: calc(10px + env(safe-area-inset-top)); }
.brand { font-weight: 700; letter-spacing: .2px; display: flex; align-items: center; gap: 7px; }
.ic { vertical-align: -3px; flex-shrink: 0; }
.ball-svg { color: var(--green2); }
.mepill { position: relative; font-size: 13px; }
.mepill img { width: 26px; height: 26px; border-radius: 50%; }
.mebtn { display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25); color: #fff; border-radius: 999px;
  padding: 4px 10px 4px 5px; font-size: 13px; cursor: pointer; font-family: inherit; }
.memenu { position: absolute; right: 0; top: calc(100% + 8px); background: var(--card); color: var(--ink);
  border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px rgba(0,0,0,.25);
  min-width: 185px; overflow: hidden; z-index: 30; }
.memenu button { display: flex; align-items: center; gap: 9px; width: 100%; background: none; border: none;
  padding: 11px 14px; font-size: 14px; color: var(--ink); cursor: pointer; text-align: left; font-family: inherit; }
.memenu button:hover { background: var(--chip-bg); }

main { max-width: 760px; margin: 0 auto; padding: 12px; }

/* tabs */
nav#tabs { position: fixed; bottom: 0; left: 0; right: 0; z-index: 20; background: var(--nav-bg);
  border-top: 1px solid var(--line); display: flex; padding-bottom: env(safe-area-inset-bottom); }
nav#tabs button { flex: 1; background: none; border: none; padding: 8px 4px 6px; font-size: 18px;
  display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--muted); cursor: pointer; }
nav#tabs button span { font-size: 11px; }
nav#tabs button.active { color: var(--green2); font-weight: 700; }

/* round sections */
.round { margin-bottom: 14px; }
.round-head { display: flex; justify-content: space-between; align-items: center; background: var(--green);
  color: #fff; border-radius: var(--radius); padding: 10px 14px; cursor: pointer; user-select: none; }
.round-head .small { color: #cfe3d8; }
.round.closed .round-body { display: none; }
.round-body { padding-top: 8px; }

/* match card */
.match { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 10px 12px; margin-bottom: 8px; }
.match .when { font-size: 12px; color: var(--muted); display: flex; justify-content: space-between; gap: 6px; flex-wrap: wrap; }
.match .when .live, .live { color: var(--red); font-weight: 700; animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: .45; } }
.teamrow { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.teamrow img.crest { width: 22px; height: 22px; object-fit: contain; }
.teamrow .crest-ph { width: 22px; text-align: center; }
.teamrow .tname { flex: 1; font-weight: 600; font-size: 15px; }
.teamrow .tname.tbd { color: var(--muted); font-weight: 400; font-size: 13px; }
.teamrow input { width: 52px; height: 38px; text-align: center; font-size: 17px; font-weight: 700;
  border: 2px solid var(--line); border-radius: 10px; background: var(--input-bg); color: var(--ink); }
.teamrow input:focus { border-color: var(--green2); outline: none; }
.teamrow .goals { width: 52px; text-align: center; font-size: 18px; font-weight: 800; }
.match-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; min-height: 22px; gap: 8px; flex-wrap: wrap; }
.match-foot .state { font-size: 12px; color: var(--muted); }
.match-foot .state.saved { color: var(--green2); font-weight: 600; }
.match-foot .state.err { color: var(--red); font-weight: 600; }
.badge { display: inline-block; background: var(--chip-bg); border: 1px solid var(--line); color: var(--muted);
  font-size: 11px; border-radius: 999px; padding: 2px 8px; margin-left: 4px; }
.badge.pt { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 700; }
.badge.hit { background: var(--hit-bg); border-color: var(--hit-line); color: var(--hit-ink); }
.linkbtn { background: none; border: none; color: var(--green2); font-size: 13px; cursor: pointer;
  text-decoration: underline; padding: 0; }
.lock { font-size: 13px; color: var(--muted); display: inline-flex; align-items: center; gap: 5px; }
.extlink { color: var(--green2); text-decoration: none; font-weight: 800; margin-left: 7px; font-size: 13px; }
.extlink:hover { text-decoration: underline; }
.modal-seg { margin: 10px 0; }
.statteams { display: flex; justify-content: space-between; font-weight: 700; font-size: 13px; margin: 6px 0 10px; }
.statrow { margin-bottom: 10px; }
.statline { display: flex; justify-content: space-between; align-items: center; font-size: 13px; margin-bottom: 4px; }
.statline b { font-variant-numeric: tabular-nums; }
.slabel { color: var(--muted); font-size: 12px; }
.duo { height: 6px; border-radius: 99px; background: var(--accent); overflow: hidden; }
.duoh { height: 100%; background: var(--green2); border-radius: 99px 0 0 99px; }
.tlrow { display: flex; align-items: center; gap: 8px; padding: 5px 2px; border-top: 1px solid var(--line); font-size: 13px; }
.tlrow.a { flex-direction: row-reverse; text-align: right; }
.tlmin { color: var(--muted); font-size: 12px; min-width: 34px; font-variant-numeric: tabular-nums; }
.tlrow.a .tlmin { text-align: left; }
.cardq { width: 11px; height: 15px; border-radius: 2px; display: inline-block; flex-shrink: 0; }
.cardq.y { background: var(--accent); }
.cardq.r { background: var(--red); }
.subarr { color: var(--muted); font-weight: 600; }
.tltext { flex: 1; }
.match.gray { background: var(--bg); }
.match.gray .teamrow { opacity: .5; }
.match.gray .when { opacity: .65; }
.lockcenter { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 0 2px; color: var(--muted); }
.lockcenter .countdown { font-size: 14px; }
.lockcenter .ltime { font-size: 12px; font-weight: 600; }
.lockcenter .linkbtn { margin-top: 2px; }
.countdown { color: var(--red); font-weight: 700; font-variant-numeric: tabular-nums; }
.countdown.cd-open { color: var(--green2); font-weight: 600; }

/* leaderboard */
table.board { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--radius);
  overflow: hidden; border: 1px solid var(--line); }
table.board th { background: var(--green); color: #fff; font-size: 12px; padding: 8px 6px; text-align: left; }
table.board td { padding: 8px 6px; border-top: 1px solid var(--line); font-size: 14px; }
table.board td.num, table.board th.num { text-align: right; font-variant-numeric: tabular-nums; }
table.board tr.me td { background: var(--me-row); }
tr.prow { cursor: pointer; }
tr.prow:hover td { background: var(--chip-bg); }
.chevtd { color: var(--muted); font-size: 16px; width: 18px; text-align: right; }
.statgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(76px, 1fr)); gap: 8px; margin: 10px 0; }
.realname { margin: -2px 0 8px 2px; }
.formstrip { display: flex; gap: 7px; margin: 8px 0 12px; }
.fchip { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 13px; border: 1px solid var(--line); }
.fchip.f-gold { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.fchip.f-good { background: var(--green2); border-color: var(--green2); color: #fff; }
.fchip.f-mid { background: var(--hit-bg); border-color: var(--hit-line); color: var(--hit-ink); }
.fchip.f-zero { background: var(--bg); color: var(--red); border-color: var(--red); }
.stat { background: var(--chip-bg); border: none; border-radius: 14px; padding: 13px 6px 11px;
  text-align: center; display: flex; flex-direction: column; gap: 3px; }
.stat b { font-size: 21px; font-weight: 800; line-height: 1; }
.stat span { font-size: 11px; color: var(--muted); }
.formahead { display: flex; justify-content: space-between; align-items: baseline; margin: 14px 2px 4px; }
.pname { display: flex; align-items: center; gap: 8px; }
.pname img { width: 24px; height: 24px; border-radius: 50%; }
.medal { font-size: 16px; }
h2.viewtitle { margin: 6px 2px 12px; font-size: 20px; display: flex; align-items: center; gap: 8px; }
td.rk { font-weight: 700; white-space: nowrap; }
td.rk1 { color: var(--accent); }
.mv { display: inline-flex; align-items: center; gap: 1px; font-size: 10px; font-weight: 700;
  margin-left: 5px; padding: 1px 6px 1px 3px; border-radius: 999px; vertical-align: 1px; }
.mv .ic { vertical-align: 0; }
.mv.up { background: var(--hit-bg); color: var(--hit-ink); }
.mv.down { background: var(--red-bg); color: var(--red); }
.livepts { color: var(--green2); font-size: 11px; font-weight: 800; margin-left: 4px; }
.boardnote { margin-top: 10px; }
table.rounds { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; margin-top: 16px; }
table.rounds th { background: var(--green2); color: #fff; font-size: 11px; padding: 6px 4px; }
table.rounds td { font-size: 12px; padding: 6px 4px; border-top: 1px solid var(--line); text-align: center; font-variant-numeric: tabular-nums; }
table.rounds td:first-child { text-align: left; font-weight: 600; }

/* matches view */
.mlist .match { cursor: pointer; }
.scoreline { font-weight: 800; font-size: 16px; }

/* modal */
.modal { position: fixed; inset: 0; background: rgba(10,20,16,.55); z-index: 40; display: flex;
  align-items: flex-end; justify-content: center; overscroll-behavior: contain; }
body.noscroll { position: fixed; left: 0; right: 0; width: 100%; overflow: hidden; }
@media (min-width: 600px) { .modal { align-items: center; } }
.modal-box { background: var(--card); color: var(--ink); width: 100%; max-width: 560px; max-height: 82vh; overflow: auto;
  border-radius: 18px 18px 0 0; padding: 16px; overscroll-behavior: contain; }
@media (min-width: 600px) { .modal-box { border-radius: 18px; } }
.modal-box h3 { margin: 2px 0 4px; }
.tiprow { display: flex; align-items: center; gap: 8px; padding: 7px 2px; border-top: 1px solid var(--line); font-size: 14px; }
.tiprow:first-of-type { border-top: none; }
.tiprow .tt { font-weight: 700; width: 46px; text-align: center; background: var(--tt-bg); border-radius: 8px; padding: 3px 0; }
.tiprow .nm { flex: 1; display: flex; align-items: center; gap: 7px; }
.tiprow img { width: 22px; height: 22px; border-radius: 50%; }
.closex { float: right; background: none; border: none; font-size: 22px; cursor: pointer; color: var(--muted); }

/* settings */
.setrow { margin: 14px 0; }
.setrow label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.setrow input[type=text] { flex: 1; min-width: 0; padding: 10px; border: 2px solid var(--line); border-radius: 10px;
  background: var(--input-bg); color: var(--ink); font-size: 15px; }
.setrow { margin: 16px 0; }
.setlist { display: flex; flex-direction: column; margin-top: 6px; }
.setitem { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 15px 2px; border-top: 1px solid var(--line); }
.setitem:first-child { border-top: none; }
.setitem.col { flex-direction: column; align-items: stretch; gap: 10px; }
.setinfo { display: flex; flex-direction: column; gap: 2px; }
.setinfo b { font-size: 14px; }
.namectl { display: flex; gap: 8px; }
.namectl input { flex: 1; min-width: 0; padding: 10px 12px; border: 2px solid var(--line); border-radius: 10px;
  background: var(--input-bg); color: var(--ink); font-size: 16px; }
.namectl input:focus { border-color: var(--green2); outline: none; }
.seg.seg-sm { width: 150px; flex-shrink: 0; }
.seg.seg-sm button { padding: 8px 0; }
.switch { position: relative; width: 47px; height: 27px; flex-shrink: 0; display: inline-block; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch .knob { position: absolute; inset: 0; background: var(--line); border-radius: 999px; cursor: pointer; transition: background .2s; }
.switch .knob::after { content: ''; position: absolute; top: 3px; left: 3px; width: 21px; height: 21px; background: #fff;
  border-radius: 50%; transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.switch input:checked + .knob { background: var(--green2); }
.switch input:checked + .knob::after { transform: translateX(20px); }
.switch input:disabled + .knob { opacity: .55; }
.setrow .arow { border: none; padding: 0; display: flex; gap: 8px; align-items: center; }
.joinrow { display: flex; gap: 8px; }
.joinrow input { flex: 1; min-width: 0; padding: 10px; border: 2px solid var(--line); border-radius: 10px;
  background: var(--input-bg); color: var(--ink); font-size: 16px; text-transform: uppercase; }
.grpline { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 2px 2px 10px; }
.joincard { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  max-width: 380px; margin: 36px auto; padding: 28px 22px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--muted); }
.joincard h3 { margin: 4px 0 0; color: var(--ink); }
.joincard .joinrow { width: 100%; margin-top: 12px; }
.joinmini { max-width: 380px; margin: 18px auto 0; }
.setrow input[type=text]:focus { border-color: var(--green2); outline: none; }
.seg { display: flex; gap: 6px; }
.seg button { flex: 1; padding: 9px 6px; border: 1px solid var(--line); background: var(--card); color: var(--ink);
  border-radius: 10px; font-size: 13px; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px; }
.seg button.active { background: var(--green2); border-color: var(--green2); color: #fff; font-weight: 700; }
.set-err { color: var(--red); font-size: 13px; min-height: 1.2em; margin-top: 6px; }
.confirmrow { display: flex; gap: 8px; margin-top: 16px; }
.confirmrow .btn { flex: 1; padding: 11px; }
.psearch { width: 100%; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--input-bg); color: var(--ink); font-size: 16px; margin-bottom: 4px; }
.psearch:focus { border-color: var(--green2); outline: none; }
.plist { max-height: 420px; overflow-y: auto; }
.prowadm { border-top: 1px solid var(--line); padding: 9px 2px; display: flex; align-items: center;
  justify-content: space-between; gap: 10px; }
.prowadm:first-of-type { border-top: none; }
.pinfo { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; }
.pinfo .small { overflow-wrap: anywhere; }
.pacts { display: flex; align-items: center; gap: 7px; flex-shrink: 0; }
.iconact { width: 34px; height: 34px; border-radius: 9px; display: flex; align-items: center; justify-content: center;
  background: var(--sec-btn); border: 1px solid var(--line); color: var(--muted); cursor: pointer; }
.iconact:hover { color: var(--ink); }
.iconact.danger { color: var(--red); background: var(--red-bg); border-color: transparent; }
.iconact.on { color: var(--green2); background: var(--hit-bg); border-color: transparent; }
.badge.bdgred { color: var(--red); border-color: var(--red); }
.missrow { border-top: 1px solid var(--line); }
.missrow:first-child { border-top: none; }
.misshead { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%;
  background: none; border: none; padding: 9px 2px; cursor: pointer; color: var(--ink); font-family: inherit; font-size: 14px; text-align: left; }
.misshead .mteams { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; }
.misshead > .ic { color: var(--muted); transition: transform .15s; flex-shrink: 0; }
.misshead.open > .ic { transform: rotate(180deg); }
.msbadge { font-size: 11px; font-weight: 700; border-radius: 999px; padding: 3px 9px; white-space: nowrap; flex-shrink: 0;
  display: inline-flex; align-items: center; gap: 4px; }
.msbadge.warn { background: var(--red-bg); color: var(--red); }
.msbadge.ok { background: var(--hit-bg); color: var(--hit-ink); }
.missnames { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 2px 10px; }
.mchip { background: var(--chip-bg); border: 1px solid var(--line); color: var(--ink); font-size: 12px;
  border-radius: 999px; padding: 3px 10px; }
.combo { position: relative; flex: 1 1 180px; min-width: 0; }
.combo input { width: 100%; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--input-bg); color: var(--ink); font-size: 16px; }
.combo input:focus { border-color: var(--green2); outline: none; }
.combolist { position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 25; background: var(--card);
  border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 28px rgba(0,0,0,.18);
  max-height: 240px; overflow-y: auto; padding: 4px; }
.combolist button { display: block; width: 100%; text-align: left; background: none; border: none; color: var(--ink);
  font-family: inherit; font-size: 14px; padding: 8px 9px; border-radius: 7px; cursor: pointer; }
.combolist button:hover { background: var(--chip-bg); }
.combolist .small { display: block; padding: 8px 9px; }
.dist { margin: 4px 0 14px; }
.distbar { display: flex; height: 22px; border-radius: 8px; overflow: hidden; gap: 2px; }
.distbar span { display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800;
  color: #fff; min-width: 0; white-space: nowrap; overflow: hidden; }
.distbar .d1 { background: var(--green2); }
.distbar .dx { background: var(--muted); }
.distbar .d2 { background: var(--accent); color: var(--accent-ink); }
.distfoot { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-top: 4px; }
.qrbox { background: #fff; padding: 14px; border-radius: 14px; width: max-content; margin: 14px auto; }
.qrbox svg { width: 200px; height: 200px; display: block; }
.invrow { display: flex; gap: 8px; align-items: center; }
.invlink { flex: 1; min-width: 0; background: var(--input-bg); border: 1px solid var(--line); border-radius: 10px;
  padding: 9px 12px; font-size: 13px; overflow-wrap: anywhere; color: var(--muted); }
.pname .crown { color: var(--accent); display: inline-flex; margin-left: 2px; }
.chartwrap { overflow-x: auto; margin: 8px 0 4px; }
.cgrid { stroke: var(--line); stroke-width: 1; }
.clab { fill: var(--muted); font-size: 10px; font-family: inherit; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 10px; margin-top: 8px; }
.lgd { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--muted); }
.lgd.melgd { font-weight: 700; color: var(--ink); }
.lgd i { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.tbar { display: flex; justify-content: flex-end; margin: 0 2px 8px; }
.tbar .linkbtn { display: inline-flex; align-items: center; gap: 5px; text-decoration: none; color: var(--muted); font-size: 12px; }
.tbar .linkbtn:hover { color: var(--green2); }
.cgv { stroke-dasharray: 2 5; }
.cname { fill: var(--ink); font-size: 12px; font-family: inherit; }
.cname.cme { font-weight: 700; }
.clbl { cursor: pointer; }
.chhint { margin: 2px 2px 0; }
.modal-box:has(#chartwrap) { max-width: min(1080px, 94vw); width: 100%; }
.createrow { margin-top: 8px; text-align: center; }
.createrow .linkbtn { color: var(--muted); font-size: 12px; }
.createrow .linkbtn:hover { color: var(--green2); }
.match.finrow { display: flex; align-items: center; gap: 7px; padding: 8px 10px; cursor: pointer; }
.finrow .frh, .finrow .fra { display: flex; align-items: center; gap: 5px; flex: 1; min-width: 0; }
.finrow .fra { justify-content: flex-end; }
.finrow .frn { font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.finrow .frs { font-size: 14px; font-variant-numeric: tabular-nums; flex-shrink: 0; }
.finrow img.crest { width: 17px; height: 17px; object-fit: contain; flex-shrink: 0; }
.finrow .crest-ph { width: 17px; flex-shrink: 0; }
.finrow .frtip { font-size: 12px; color: var(--muted); flex-shrink: 0; font-variant-numeric: tabular-nums; margin-left: 2px; }
.finrow .badge { flex-shrink: 0; min-width: 38px; text-align: center; }
.finrow:hover { border-color: var(--green2); }
.cardprev { width: 100%; border-radius: 12px; display: block; margin: 8px 0 12px; }
.prevacts { display: flex; justify-content: flex-end; gap: 8px; }
.prevacts .btn { display: inline-flex; align-items: center; gap: 6px; }
.setrow .btn { margin-top: 8px; }

/* torna */
.cupseg { margin-bottom: 12px; max-width: 340px; }
.groups { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 620px) { .groups { grid-template-columns: 1fr 1fr; } }
table.gtable { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; }
table.gtable th { background: var(--green); color: #fff; font-size: 11px; padding: 6px 4px; text-align: center; }
table.gtable th:first-child, table.gtable th:nth-child(2) { text-align: left; }
table.gtable td { font-size: 12px; padding: 5px 4px; border-top: 1px solid var(--line); text-align: center; font-variant-numeric: tabular-nums; }
table.gtable td.gteam { text-align: left; font-weight: 600; }
table.gtable td.gteam img { width: 18px; height: 18px; object-fit: contain; vertical-align: -4px; margin-right: 5px; }
table.gtable tr.adv td { background: var(--hit-bg); }
.bracket { display: flex; gap: 16px; overflow-x: auto; padding: 4px 2px 12px; align-items: stretch; scroll-snap-type: x proximity; }
@media (min-width: 820px) {
  #view-cup { --cupw: min(1240px, calc(100vw - 32px)); width: var(--cupw);
    margin-left: calc((var(--cupw) - 736px) / -2); }
  #view-cup .bracket .bcol { flex: 1; }
}
.bracket .bcol { scroll-snap-align: start; }
.bcol { min-width: 220px; display: flex; flex-direction: column; gap: 8px; }
.bpairs { display: flex; flex-direction: column; justify-content: space-around; flex: 1; gap: 14px; }
.bpair { position: relative; display: flex; flex-direction: column; justify-content: space-around; gap: 10px; flex: 1; padding-right: 12px; }
.bpair:not(.bsolo)::after { content: ''; position: absolute; right: 0; top: 25%; bottom: 25%; width: 10px;
  border: 2px solid var(--line); border-left: none; border-radius: 0 10px 10px 0; }
.bcol + .bcol .bmatch::before { content: ''; position: absolute; left: -14px; top: 50%; width: 14px; height: 2px; background: var(--line); }
.btitle { font-weight: 700; font-size: 13px; color: var(--muted); text-align: center; background: var(--chip-bg);
  border: 1px solid var(--line); border-radius: 999px; padding: 5px 10px; }
.btitle.b3 { font-size: 10px; margin-bottom: 2px; background: none; border: none; padding: 2px; }
.bmatch { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 7px 9px; position: relative;
  box-shadow: 0 1px 4px rgba(0,0,0,.07); }
.brow.bwin { background: var(--hit-bg); border-radius: 7px; margin: 0 -4px; padding-left: 4px; padding-right: 4px; }
.bmatch.final { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.bmatch.blive { border-color: var(--red); }
.bhead { font-size: 10px; color: var(--muted); margin-bottom: 3px; }
.brow { display: flex; align-items: center; gap: 6px; padding: 2px 0; font-size: 13px; }
.brow img { width: 16px; height: 16px; object-fit: contain; }
.brow .bph { width: 16px; display: inline-block; }
.brow .bname { flex: 1; }
.brow .bname.tbd { color: var(--muted); font-size: 11px; }
.brow .bsc { font-weight: 800; min-width: 18px; text-align: right; }
.brow.bwin .bname { font-weight: 800; }
.brow.bwin .bsc { color: var(--green2); }

/* admin */
.acard { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; margin-bottom: 12px; }
.acard h3 { margin: 0 0 8px; font-size: 15px; }
.arow { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-top: 1px solid var(--line); font-size: 13px; flex-wrap: wrap; }
.arow:first-of-type { border-top: none; }
.arow .grow { flex: 1; }
button.btn { background: var(--green2); color: #fff; border: none; border-radius: 10px; padding: 9px 14px;
  font-size: 13px; font-weight: 600; cursor: pointer; transition: filter .15s, transform .05s; font-family: inherit; }
button.btn:hover { filter: brightness(1.08); }
button.btn:active { transform: scale(.97); }
button.btn.sec { background: var(--sec-btn); color: var(--ink); }
button.btn.danger { background: var(--red); }
select, .acard input[type=number], .acard input[type=text] { padding: 7px; border: 1px solid var(--line); border-radius: 9px; font-size: 16px;
  background: var(--input-bg); color: var(--ink); }
.acard input[type=text] { flex: 1; min-width: 120px; }
.acard select { width: 100%; min-width: 0; }
.acard .arow { width: 100%; }
.acard .arow input[type=number] { flex: 1; min-width: 56px; max-width: 110px; }
@media (max-width: 620px) {
  .acard .arow .btn { flex: 1 1 auto; }
  .acard .arow select { flex: 1 1 100%; }
}
.acard input[type=number] { width: 64px; }

/* toast */
.toast { position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%); background: var(--toast-bg); color: var(--toast-ink);
  padding: 10px 16px; border-radius: 999px; font-size: 13px; z-index: 50; box-shadow: 0 8px 24px rgba(0,0,0,.3);
  max-width: 90vw; text-align: center; }

/* statisztikák */
.statseg { display:flex; gap:6px; background:var(--input-bg); border:1px solid var(--line); border-radius:12px; padding:4px; margin:0 0 16px; }
.statseg button { flex:1; border:0; background:transparent; color:var(--ink); padding:9px 10px; border-radius:9px; font-size:14px; font-weight:600; cursor:pointer; display:inline-flex; align-items:center; justify-content:center; gap:6px; }
.statseg button.active { background:var(--green); color:#fff; }
.apanel.hidden { display:none; }
.apanel.slidein { animation: apslide .35s ease both; }
@keyframes apslide { from { opacity:0; transform:translateX(18px); } to { opacity:1; transform:none; } }
@keyframes statup { from { opacity:0; transform:translateY(12px); } to { opacity:1; transform:none; } }
.statgrid2 { display:grid; grid-template-columns:repeat(auto-fill, minmax(104px,1fr)); gap:10px; margin-bottom:16px; }
.statcard { background:var(--input-bg); border:1px solid var(--line); border-radius:12px; padding:12px 10px; text-align:center; animation:statup .45s both; }
.statcard b { display:block; font-size:22px; font-weight:800; color:var(--green2); line-height:1.1; }
.statcard span { display:block; font-size:11px; color:var(--ink); opacity:.7; margin-top:3px; }
.statsec { margin-bottom:14px; }
.bars { display:flex; flex-direction:column; gap:7px; }
.barrow { display:flex; align-items:center; gap:8px; font-size:13px; }
.barlab { flex:0 0 40%; max-width:40%; color:var(--ink); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.bartrack { flex:1; height:14px; background:var(--line); border-radius:7px; overflow:hidden; }
.barfill { display:block; height:100%; background:var(--green); border-radius:7px; transition:width .6s ease; }
.barval { flex:0 0 auto; color:var(--ink); opacity:.8; font-variant-numeric:tabular-nums; min-width:58px; text-align:right; }
.cols { display:flex; align-items:flex-end; gap:4px; height:120px; padding-top:6px; overflow-x:auto; }
.col { flex:1 0 18px; display:flex; flex-direction:column; align-items:center; justify-content:flex-end; height:100%; gap:4px; }
.colbar { width:60%; min-width:8px; background:var(--green); border-radius:4px 4px 0 0; transition:height .6s ease; }
.collab { font-size:9px; color:var(--ink); opacity:.6; white-space:nowrap; }
.ttwrap { overflow-x:auto; }
.stattbl { width:100%; border-collapse:collapse; font-size:13px; }
.stattbl th { text-align:left; color:var(--ink); opacity:.6; font-weight:600; padding:4px 8px; border-bottom:1px solid var(--line); }
.stattbl td { padding:5px 8px; border-bottom:1px solid var(--line); }
.mrow { display:flex; align-items:center; gap:10px; padding:6px 0; border-bottom:1px solid var(--line); font-size:13px; }
.mrow .mn { flex:1; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.mrow b { color:var(--green2); }
.stiptip { position:fixed; z-index:200; background:var(--toast-bg); color:var(--toast-ink); padding:6px 10px; border-radius:8px; font-size:12px; font-weight:500; max-width:240px; pointer-events:none; box-shadow:0 6px 20px rgba(0,0,0,.3); line-height:1.35; }
.stiptip.hidden { display:none; }
.col { cursor:default; }
.col:hover .colbar { outline:2px solid var(--green2); outline-offset:1px; }
.barrow { cursor:default; border-radius:7px; }
.barrow:hover .barfill { outline:2px solid var(--green2); }
.statcard[data-tip] { cursor:help; }
.statcard[data-tip]:hover { outline:2px solid var(--green2); outline-offset:-1px; }

/* === Statisztika dashboard (profibb elrendezés) === */
.statwrap { display:flex; flex-direction:column; gap:20px; animation:statup .4s both; }
.statblock { display:flex; flex-direction:column; gap:11px; }
.statblock-h { margin:0; font-size:12px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:var(--muted); padding-bottom:7px; border-bottom:1px solid var(--line); }

/* mutató-csoportok */
.kpibar { display:grid; grid-template-columns:repeat(auto-fit, minmax(270px,1fr)); gap:12px; }
.kgrp { background:var(--card); border:1px solid var(--line); border-radius:var(--radius); padding:12px 13px 13px; }
.kgrp-h { display:block; font-size:11px; font-weight:700; letter-spacing:.03em; text-transform:uppercase; color:var(--muted); margin-bottom:10px; }
.kgrp-c { display:grid; grid-template-columns:repeat(auto-fit, minmax(58px,1fr)); gap:10px 8px; }
.kpi { text-align:center; border-radius:9px; padding:2px 0; }
.kpi b { display:block; font-size:21px; font-weight:800; color:var(--green2); line-height:1.05; letter-spacing:-.01em; }
.kpi span { display:block; font-size:10.5px; color:var(--muted); margin-top:3px; line-height:1.2; }
.kpi[data-tip] { cursor:help; }
.kpi[data-tip]:hover { background:var(--input-bg); outline:1px solid var(--line); }

/* tartalmi rács + kártyák */
.sgrid { display:grid; grid-template-columns:repeat(auto-fit, minmax(286px,1fr)); gap:12px; align-items:start; }
.scard { background:var(--card); border:1px solid var(--line); border-radius:var(--radius); padding:13px 14px; }
.scard-h { display:flex; align-items:center; gap:8px; font-size:14px; font-weight:700; color:var(--ink); margin-bottom:12px; }
.scard-note { margin-left:auto; font-size:10.5px; font-weight:700; color:var(--muted); background:var(--chip-bg); padding:2px 9px; border-radius:999px; white-space:nowrap; }

/* lenyitható részletek */
.sdetails { padding-bottom:4px; }
.sdetails > summary { cursor:pointer; margin-bottom:0; list-style:none; }
.sdetails > summary::-webkit-details-marker { display:none; }
.sdetails > summary::after { content:''; width:8px; height:8px; margin-left:6px; border-right:2px solid var(--muted); border-bottom:2px solid var(--muted); transform:rotate(45deg); transition:transform .2s; flex-shrink:0; }
.sdetails[open] > summary { margin-bottom:12px; }
.sdetails[open] > summary::after { transform:rotate(-135deg); }
.sdetails .scard-note { margin-left:auto; }

.statempty { padding:22px 0; text-align:center; opacity:.65; }
.statnote { margin:0; padding:11px 13px; background:var(--input-bg); border:1px solid var(--line); border-radius:11px; line-height:1.45; }

/* ===================================================================
   SZERZŐDÉS: közös UI-osztályok (app.js használja)
   =================================================================== */

/* --- üres állapot --- */
.emptystate {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; text-align: center; max-width: 360px; margin: 22px auto;
  padding: 28px 22px; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); color: var(--muted);
}
.emptystate .ico {
  width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
  color: var(--muted); opacity: .7;
}
.emptystate .ico svg { width: 40px; height: 40px; }
.emptystate p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--muted); }
.emptystate .cta { margin-top: 4px; }

/* --- skeleton betöltő --- */
.skel {
  position: relative; overflow: hidden; background: var(--skel-base);
  border-radius: 8px; color: transparent;
}
.skel::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent 0%, var(--skel-shine) 50%, transparent 100%);
  transform: translateX(-100%); animation: skelshine 1.3s infinite;
}
@keyframes skelshine { 100% { transform: translateX(100%); } }
.skel-wrap { margin-top: 4px; }
.skel-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px; margin-bottom: 8px;
}
.skel-card .skel { display: block; }
.skel-card .skel.l-when { width: 45%; height: 12px; margin-bottom: 12px; }
.skel-card .skel.l-row { width: 100%; height: 24px; margin-bottom: 9px; }
.skel-card .skel.l-row2 { width: 86%; }
.skel-card .skel.l-foot { width: 30%; height: 12px; margin-top: 2px; }

/* --- kapcsolat-banner --- */
.netbanner {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  background: var(--red); color: #fff; text-align: center;
  font-size: 13px; font-weight: 600; padding: 9px 14px;
  padding-top: calc(9px + env(safe-area-inset-top));
  transform: translateY(-100%); transition: transform .25s ease;
  box-shadow: 0 4px 16px rgba(0,0,0,.25);
}
.netbanner.show { transform: translateY(0); }

/* --- pontozás-magyarázó --- */
.scorelegend {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  background: var(--card); border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 8px 7px 12px; margin: 0 2px 12px;
}
.scorelegend .chip {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--chip-bg); border: 1px solid var(--line); color: var(--ink);
  font-size: 12px; font-weight: 600; border-radius: 999px; padding: 4px 10px;
  white-space: nowrap;
}
.scorelegend .chip b { color: var(--green2); font-variant-numeric: tabular-nums; }
.scorelegend .x {
  margin-left: auto; flex-shrink: 0;
  width: 26px; height: 26px; min-width: 26px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: none; border: none; color: var(--muted); cursor: pointer;
  font-size: 17px; line-height: 1; font-family: inherit;
}
.scorelegend .x:hover { color: var(--ink); background: var(--chip-bg); }

/* --- mentés-visszajelzés inputon --- */
input.saving { border-color: var(--muted) !important; opacity: .9; }
/* mentés visszajelzés: statikus zöld villanás (1 mp-ig tartjuk JS-ből) + lüktető gyűrű */
input.saved {
  border-color: var(--green2) !important;
  background: var(--hit-bg) !important;
  color: var(--hit-ink) !important;
  font-weight: 700;
  animation: inputsaved .9s ease;
}
@keyframes inputsaved {
  0% { box-shadow: 0 0 0 0 rgba(21,102,63,.5); }
  45% { box-shadow: 0 0 0 6px rgba(21,102,63,.16); }
  100% { box-shadow: 0 0 0 0 rgba(21,102,63,0); }
}

/* --- globális fókusz-jelzés (billentyűzet) --- */
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible,
summary:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--focus); outline-offset: 2px;
}
/* a saját zöld keretes inputok kapjanak látható fókusz-gyűrűt is */
.teamrow input:focus-visible { outline-offset: 1px; }

/* --- koppintási célok min. 44px (WCAG) --- */
.teamrow input { min-height: 44px; }
nav#tabs button { min-height: 44px; }
.iconact { min-width: 40px; min-height: 40px; }
.fchip { min-width: 40px; min-height: 40px; }
.seg button { min-height: 44px; }
.memenu button { min-height: 44px; }

/* --- toast a tab-barral konzisztens magasságban --- */
.toast { bottom: calc(80px + env(safe-area-inset-bottom)); }

/* ===================================================================
   Wrapped reveal — teljes képernyős, lapozható kártyák
   =================================================================== */
#wrapoverlay {
  position: fixed; inset: 0; z-index: 1000;
  background: #08080b; color: #fff; font-family: inherit;
  overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none;
  animation: wrapfade .35s ease both;
}
body.wrap-open { overflow: hidden; }
@keyframes wrapfade { from { opacity: 0; } to { opacity: 1; } }

/* story progress-sávok felül */
.wrap-bars {
  position: absolute; top: 0; left: 0; right: 0; z-index: 6;
  display: flex; gap: 5px; padding: calc(12px + env(safe-area-inset-top)) 14px 0;
}
.wrap-bar { flex: 1; height: 3px; border-radius: 99px; background: rgba(255,255,255,.3); overflow: hidden; }
.wrap-bar > i { display: block; height: 100%; width: 0; background: #fff; border-radius: 99px; }
.wrap-bar.done > i { width: 100%; }
.wrap-bar.active > i { animation: wrapfill var(--wdur, 5500ms) linear forwards; }
#wrapoverlay.paused .wrap-bar.active > i { animation-play-state: paused; }
@keyframes wrapfill { to { width: 100%; } }

/* bezárás + előnézet-jelző */
.wrap-x {
  position: absolute; top: calc(20px + env(safe-area-inset-top)); right: 12px; z-index: 8;
  width: 38px; height: 38px; border: 0; border-radius: 50%;
  background: rgba(0,0,0,.25); color: #fff; font-size: 24px; line-height: 1; cursor: pointer;
}
.wrap-preview {
  position: absolute; top: calc(23px + env(safe-area-inset-top)); left: 14px; z-index: 8;
  font-size: 11px; font-weight: 700; letter-spacing: .03em;
  background: rgba(255,255,255,.22); padding: 4px 11px; border-radius: 99px;
}

/* pálya + diák */
.wrap-track { display: flex; height: 100%; transition: transform .5s cubic-bezier(.65,0,.2,1); }
.wrap-slide { flex: 0 0 100%; height: 100%; }

/* kártya */
.wrapcard {
  position: relative; height: 100%; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: 16px;
  padding: 80px 30px calc(72px + env(safe-area-inset-bottom));
}
.wrapcard::before {
  content: ''; position: absolute; z-index: 0;
  width: 135vw; height: 135vw; max-width: 760px; max-height: 760px; border-radius: 50%;
  background: rgba(255,255,255,.13); top: -48vw; right: -42vw;
}
.wrapcard > * { position: relative; z-index: 1; }

/* tipográfia */
.w-eyebrow { font-size: 13px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; opacity: .85; }
.w-figure { display: flex; align-items: baseline; justify-content: center; gap: .12em; }
.w-num { font-size: clamp(78px, 31vw, 156px); font-weight: 900; line-height: .88; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.w-num.sm { font-size: clamp(34px, 11vw, 58px); letter-spacing: -.01em; }
.w-suf { font-size: .4em; font-weight: 800; opacity: .85; }
.w-title { font-size: clamp(26px, 7.5vw, 40px); font-weight: 900; line-height: 1.08; margin: 0; }
.w-text { font-size: 16px; line-height: 1.5; opacity: .94; max-width: 19em; margin: 0; }
.w-sub { font-size: 13px; opacity: .78; margin: 0; }
.w-emoji { font-size: clamp(56px, 19vw, 92px); line-height: 1; }
.w-match { font-size: clamp(23px, 6.5vw, 32px); font-weight: 800; line-height: 1.15; }
.w-vs { opacity: .55; margin: 0 7px; font-weight: 600; }
.w-scores { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.w-tag { background: rgba(255,255,255,.18); padding: 7px 13px; border-radius: 99px; font-size: 13px; }
.w-tag b { font-variant-numeric: tabular-nums; }
.w-badge { background: rgba(0,0,0,.22); padding: 6px 15px; border-radius: 99px; font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.w-badge.gold { background: #ffd23f; color: #4a3503; }
.w-bars { width: 100%; max-width: 360px; display: flex; flex-direction: column; gap: 11px; }
.w-row { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.w-rl { flex: 0 0 40%; text-align: left; opacity: .92; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w-rt { flex: 1; height: 13px; background: rgba(255,255,255,.2); border-radius: 99px; overflow: hidden; }
.w-rf { display: block; height: 100%; width: 0; background: #fff; border-radius: 99px; transition: width .8s cubic-bezier(.5,0,.2,1); }
.w-rv { flex: 0 0 auto; font-weight: 800; font-variant-numeric: tabular-nums; }
.w-close { margin-top: 6px; background: #fff; color: #111; border: 0; border-radius: 99px; padding: 14px 32px; font-size: 15px; font-weight: 800; cursor: pointer; }

/* per-kártya élénk gradiensek (Spotify-szerű) */
.wc-intro { background: linear-gradient(155deg, #1ed760, #0a6e3f 58%, #053723); }
.wc-points { background: linear-gradient(160deg, #8b5cf6, #4321a0); }
.wc-exacts { background: linear-gradient(160deg, #ff6a5a, #9e2218); }
.wc-acc { background: linear-gradient(160deg, #16c0b0, #0a5f57); }
.wc-place { background: linear-gradient(160deg, #ffb23e, #c2410c); }
.wc-best { background: linear-gradient(160deg, #ff8fb3, #962a52); }
.wc-nightmare { background: linear-gradient(160deg, #5b6680, #262b39); }
.wc-streak { background: linear-gradient(160deg, #ff7a18, #ad1d34); }
.wc-day { background: linear-gradient(160deg, #57a5ff, #134084); }
.wc-fav { background: linear-gradient(160deg, #25c4c6, #176a8a); }
.wc-rounds { background: linear-gradient(160deg, #9b7bff, #3f1f96); }
.wc-outro { background: linear-gradient(150deg, #1ed760, #0a3d2e 70%, #06281c); }

/* belépő animáció az AKTÍV dia tartalmára (staggerrel) */
.wrap-slide .wrapcard > * { opacity: 0; }
.wrap-slide.active .wrapcard > * { animation: wrise .6s cubic-bezier(.2,.75,.25,1) both; }
.wrap-slide.active .wrapcard > *:nth-child(1) { animation-delay: .04s; }
.wrap-slide.active .wrapcard > *:nth-child(2) { animation-delay: .12s; }
.wrap-slide.active .wrapcard > *:nth-child(3) { animation-delay: .2s; }
.wrap-slide.active .wrapcard > *:nth-child(4) { animation-delay: .28s; }
.wrap-slide.active .wrapcard > *:nth-child(5) { animation-delay: .36s; }
.wrap-slide.active .wrapcard > *:nth-child(6) { animation-delay: .44s; }
@keyframes wrise { from { opacity: 0; transform: translateY(26px) scale(.97); } to { opacity: 1; transform: none; } }
/* a nagy szám pop-pal jön be */
.wrap-slide.active .w-figure { animation: wpop .65s cubic-bezier(.2,.8,.2,1) both; animation-delay: .18s; }
@keyframes wpop { 0% { opacity: 0; transform: scale(.6); } 55% { transform: scale(1.08); } 100% { opacity: 1; transform: scale(1); } }

/* ===================================================================
   prefers-reduced-motion: animációk leállítása
   =================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  /* az ÉLŐ jelzés statikus piros pötty maradjon (ne villogjon) */
  .match .when .live, .live { animation: none !important; opacity: 1 !important; }
  /* skeleton ne fusson, csak halk statikus felület */
  .skel::after { display: none; }
}
