/* =====================================================================
   TIFO — vzhľad MOBILNEJ APLIKÁCIE
   ---------------------------------------------------------------------
   Platí LEN v appke (Google Play / nainštalovaná PWA): <html class="is-app">
   nastaví skript partials/app-detect.ejs ešte pred vykreslením. Web
   v prehliadači (mobil aj počítač) tieto pravidlá nikdy nedostane.

   Dve časti:
   1) „chróm" pre bežné webové stránky otvorené v appke (skryje webovú
      hlavičku, pätičku a lištu, pridá appkovú hornú a spodnú lištu),
   2) komponenty appkových obrazoviek /app/* (prefix .a-).
   ===================================================================== */

/* appková spodná lišta a horná lišta sú na webe vždy skryté */
.app-tabbar, .app-topbar { display: none; }

/* ---------------------------------------------------------------------
   1) Bežné stránky v appke
   --------------------------------------------------------------------- */
html.is-app body { padding-bottom: calc(104px + env(safe-area-inset-bottom)); }
html.is-app .nav,
html.is-app .tabbar,
html.is-app .more-sheet,
html.is-app #more-sheet,
html.is-app .footer,
html.is-app [data-install-banner],
html.is-app .install-banner { display: none !important; }

/* lepivé panely webových stránok (uloženie tipov a pod.) nad appkovou lištou */
html.is-app .savebar { bottom: calc(92px + env(safe-area-inset-bottom)) !important; }
html.is-app .toast-wrap { bottom: calc(100px + env(safe-area-inset-bottom)) !important; }
html.is-app .auth-toggle { display: none !important; }

html.is-app .app-topbar {
  display: flex; align-items: center; gap: 12px;
  position: sticky; top: 0; z-index: 60;
  padding: calc(10px + env(safe-area-inset-top)) 16px 10px;
  background: rgba(8, 11, 20, .86);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(150, 165, 215, .10);
}
.app-topbar .a-ib { flex: none; }
.app-topbar b {
  flex: 1; min-width: 0; font: 700 18px var(--font-display, 'Space Grotesk', sans-serif);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text-1, #eef1f9);
}

/* ---------------------------------------------------------------------
   Plávajúca spodná lišta (spoločná pre všetky stránky v appke)
   --------------------------------------------------------------------- */
html.is-app .app-tabbar {
  display: flex; align-items: center; justify-content: space-between;
  position: fixed; z-index: 80;
  left: 12px; right: 12px; bottom: calc(14px + env(safe-area-inset-bottom));
  max-width: 536px; margin: 0 auto;   /* na počítači (appka z Chrome) nie cez celú šírku */
  height: 66px; padding: 0 10px; border-radius: 24px;
  background: rgba(20, 26, 44, .86);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(150, 165, 215, .2);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .55);
}
.app-tabbar a {
  position: relative; height: 46px; min-width: 46px; padding: 0 12px;
  border-radius: 16px; display: flex; align-items: center; justify-content: center; gap: 8px;
  color: #7f89a8; text-decoration: none; font: 700 13.5px var(--font-body, 'Manrope', sans-serif);
  transition: background .2s, color .2s, padding .2s;
  -webkit-tap-highlight-color: transparent;
}
.app-tabbar a svg { width: 22px; height: 22px; flex: none; }
.app-tabbar a span.t { display: none; }
.app-tabbar a.on { background: #7c5cff; color: #fff; padding: 0 16px; box-shadow: 0 6px 18px rgba(124, 92, 255, .45); }
.app-tabbar a.on span.t { display: inline; }
.app-tabbar a.main { color: #facc15; }
.app-tabbar a.main.on { background: #facc15; color: #1c1605; box-shadow: 0 6px 18px rgba(250, 204, 21, .4); }
.app-tabbar .dot {
  position: absolute; top: 7px; right: 7px; width: 9px; height: 9px; border-radius: 50%;
  background: #ff4d6d; box-shadow: 0 0 0 2px #141a2c;
}
.app-tabbar .dot[hidden] { display: none; }
.app-tabbar svg, .a-screen svg.i, .a-ib svg { stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------------------------------------------------------------------
   2) Appkové obrazovky /app/*
   --------------------------------------------------------------------- */
.a-screen {
  --a-brand: #7c5cff; --a-brand-b: #9d83ff; --a-brand-soft: rgba(124, 92, 255, .16); --a-brand-line: rgba(124, 92, 255, .45);
  --a-gold: #facc15; --a-gold-ink: #1c1605; --a-gold-soft: rgba(250, 204, 21, .13);
  --a-ok: #1fd497; --a-ok-soft: rgba(31, 212, 151, .14); --a-warn: #f5a524; --a-warn-soft: rgba(245, 165, 36, .15);
  --a-bad: #f0476a; --a-info: #3da5f4; --a-info-soft: rgba(61, 165, 244, .14); --a-live: #ff4d6d;
  --a-bg: #080b14; --a-bg2: #05070d; --a-s1: #0f1424; --a-s2: #161d31; --a-s3: #212a43; --a-s4: #2c3858;
  --a-line: rgba(150, 165, 215, .10); --a-line2: rgba(150, 165, 215, .2);
  --a-t1: #eef1f9; --a-t2: #b8c0d6; --a-t3: #7f89a8; --a-t4: #545c78;
  --a-disp: 'Space Grotesk', system-ui, sans-serif; --a-body: 'Manrope', system-ui, sans-serif;
  margin: 0; min-height: 100vh; min-height: 100dvh;
  background: var(--a-bg); color: var(--a-t1); font-family: var(--a-body);
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
  padding-bottom: calc(110px + env(safe-area-inset-bottom));
  overscroll-behavior-y: contain;
}
.a-screen * { box-sizing: border-box; }
.a-screen a { color: inherit; text-decoration: none; }
.a-screen button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.a-glow { position: fixed; inset: 0 0 auto; height: 320px; pointer-events: none; z-index: 0;
  background: radial-gradient(90% 60% at 100% 0%, rgba(124, 92, 255, .16), transparent 60%); }
.a-wrap { position: relative; z-index: 1; padding: 0 18px; max-width: 560px; margin: 0 auto; }

/* horná časť */
.a-top { display: flex; align-items: center; gap: 12px; padding: calc(14px + env(safe-area-inset-top)) 18px 12px; position: relative; z-index: 2; max-width: 560px; margin: 0 auto; }
.a-top h1 { flex: 1; margin: 0; font: 700 26px var(--a-disp); letter-spacing: -.02em; }
.a-top .sub { color: var(--a-t3); font: 700 12px var(--a-body); letter-spacing: .04em; }
.a-ib { width: 40px; height: 40px; border-radius: 14px; display: grid; place-items: center; flex: none;
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(150, 165, 215, .2); color: #eef1f9; position: relative; }
.a-ib svg { width: 19px; height: 19px; }
.a-ib .dot { position: absolute; top: 8px; right: 9px; width: 8px; height: 8px; border-radius: 50%; background: #ff4d6d; box-shadow: 0 0 0 2px var(--a-bg, #080b14); }

/* typografia a drobnosti */
.a-muted { color: var(--a-t3); }
.a-small { font-size: 12px; }
.a-sec { display: flex; justify-content: space-between; align-items: baseline; margin: 22px 2px 12px; font: 700 16px var(--a-disp); }
.a-sec a { color: var(--a-brand-b); font: 600 13px var(--a-body); }
.a-label { font: 700 11px var(--a-body); letter-spacing: .08em; color: var(--a-t3); text-transform: uppercase; }
.a-num { font-family: var(--a-disp); font-weight: 700; }
.a-up { color: var(--a-ok); } .a-down { color: var(--a-bad); }
.a-empty { text-align: center; padding: 40px 20px; color: var(--a-t3); }
.a-empty b { display: block; color: var(--a-t1); font: 700 17px var(--a-disp); margin-bottom: 6px; }

/* karty */
.a-card { background: var(--a-s1); border: 1px solid var(--a-line); border-radius: 22px; }
.a-glass { background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .015)); border: 1px solid var(--a-line2); border-radius: 22px; }
.a-list { padding: 2px 14px; }
.a-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--a-line); }
.a-row:last-child { border-bottom: 0; }

/* tlačidlá */
.a-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 52px; border-radius: 16px; font: 700 16px var(--a-body); }
.a-btn.gold { background: var(--a-gold); color: var(--a-gold-ink); box-shadow: 0 0 24px rgba(250, 204, 21, .3); }
.a-btn.ghost { background: var(--a-s2); border: 1px solid var(--a-line2); }
.a-btn:active, .a-press:active { transform: scale(.97); }
.a-btn, .a-press { transition: transform .12s ease; }

/* erby a avatary */
.a-crest { width: 40px; height: 40px; border-radius: 14px; display: grid; place-items: center; flex: none; overflow: hidden;
  font: 700 12px var(--a-disp); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); background-size: cover; background-position: center; }
.a-crest img { width: 100%; height: 100%; object-fit: contain; background: #fff; padding: 4px; }
.a-av { border-radius: 50%; display: grid; place-items: center; flex: none; overflow: hidden; font: 700 13px var(--a-disp); color: #fff; }
.a-av img { width: 100%; height: 100%; object-fit: cover; }

/* prepínač a čipy */
.a-seg { display: flex; gap: 4px; padding: 4px; background: var(--a-s1); border: 1px solid var(--a-line); border-radius: 16px; font: 700 13.5px var(--a-body); }
.a-seg > * { flex: 1; text-align: center; padding: 10px 0; border-radius: 12px; color: var(--a-t3); }
.a-seg > .on { background: var(--a-s3); color: var(--a-t1); box-shadow: 0 2px 8px rgba(0, 0, 0, .3); }
.a-chips { display: flex; gap: 8px; overflow-x: auto; margin: 0 -18px 14px; padding: 0 18px; scrollbar-width: none; }
.a-chips::-webkit-scrollbar { display: none; }
.a-chip { height: 34px; padding: 0 14px; border-radius: 12px; background: var(--a-s1); border: 1px solid var(--a-line); flex: none;
  display: inline-flex; align-items: center; gap: 8px; font: 600 13px var(--a-body); color: var(--a-t2); white-space: nowrap; }
.a-chip.on { background: var(--a-t1); border-color: var(--a-t1); color: #0b0f1c; }
.a-chip .n { font: 700 11px var(--a-disp); padding: 1px 6px; border-radius: 6px; background: rgba(255, 255, 255, .08); }
.a-chip.on .n { background: rgba(0, 0, 0, .12); }
.a-pill { display: inline-flex; align-items: center; gap: 5px; font: 700 11.5px var(--a-body); padding: 5px 10px; border-radius: 9px; }
.a-pill.ok { color: var(--a-ok); background: var(--a-ok-soft); }
.a-pill.info { color: var(--a-info); background: var(--a-info-soft); }
.a-pill.warn { color: var(--a-warn); background: var(--a-warn-soft); }
.a-pill.gold { color: var(--a-gold); background: var(--a-gold-soft); }

/* karta uzávierky (Domov) */
.a-deadline { position: relative; overflow: hidden; border-radius: 24px; padding: 18px; margin-top: 4px; display: block;
  background: linear-gradient(135deg, #5b3fd6, #7c5cff 55%, #9d83ff); box-shadow: 0 18px 40px -14px rgba(124, 92, 255, .7); }
.a-deadline:before { content: ""; position: absolute; right: -30px; top: -30px; width: 140px; height: 140px; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.a-deadline .k { display: flex; align-items: center; gap: 6px; font: 700 12px var(--a-body); letter-spacing: .04em; color: #ece7ff; text-transform: uppercase; }
.a-deadline h3 { margin: 8px 0 0; font: 700 22px/1.2 var(--a-disp); }
.a-deadline p { margin: 4px 0 0; color: #e4ddff; font-size: 14px; }
.a-deadline .bar { height: 7px; border-radius: 4px; background: rgba(255, 255, 255, .22); margin-top: 12px; overflow: hidden; }
.a-deadline .bar i { display: block; height: 100%; border-radius: 4px; background: var(--a-gold); }
.a-deadline .a-btn { height: 46px; margin-top: 14px; font-size: 15px; }

/* bento */
.a-bento { display: grid; grid-template-columns: 1.25fr 1fr; gap: 10px; margin-top: 14px; }
.a-bento .big { grid-row: span 2; padding: 14px; display: flex; flex-direction: column; justify-content: space-between; }
.a-bento .sm { padding: 12px 14px; }
.a-bento .v { font: 700 22px var(--a-disp); margin-top: 2px; }
.a-spark { width: 100%; height: 34px; margin-top: 6px; stroke-width: 2.5; fill: none; }

/* Tipovať */
.a-ring { position: relative; width: 46px; height: 46px; flex: none; }
.a-ring svg { width: 46px; height: 46px; transform: rotate(-90deg); fill: none; stroke-width: 5; }
.a-ring span { position: absolute; inset: 0; display: grid; place-items: center; font: 700 13px var(--a-disp); }
.a-days { display: flex; gap: 8px; margin-bottom: 14px; overflow-x: auto; scrollbar-width: none; }
.a-days::-webkit-scrollbar { display: none; }
.a-day { flex: 1 0 54px; padding: 8px 0; border-radius: 14px; background: var(--a-s1); border: 1px solid var(--a-line); text-align: center; position: relative; }
.a-day .d { font: 700 11px var(--a-body); color: var(--a-t3); text-transform: uppercase; }
.a-day .n { font: 700 17px var(--a-disp); }
.a-day.on { background: var(--a-brand-soft); border-color: var(--a-brand-line); }
.a-day.on .d { color: var(--a-brand-b); }
.a-day .u { position: absolute; bottom: 5px; left: 50%; margin-left: -3px; width: 6px; height: 6px; border-radius: 50%; background: var(--a-warn); }
.a-dayhead { font: 700 12px var(--a-body); letter-spacing: .06em; color: var(--a-t3); margin: 18px 2px 10px; text-transform: uppercase; scroll-margin-top: 90px; }
.a-match { border-radius: 24px; padding: 16px; margin-bottom: 12px; background: var(--a-s1); border: 1px solid var(--a-line); transition: border-color .2s, background .2s; }
.a-match.tipped { background: linear-gradient(160deg, rgba(124, 92, 255, .2), var(--a-s1) 55%); border-color: var(--a-brand-line); }
.a-match.untipped { border-style: dashed; border-color: rgba(245, 165, 36, .55); }
.a-match .meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: var(--a-t3); }
.a-match .when { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.a-match .when.soon { color: var(--a-warn); background: var(--a-warn-soft); padding: 4px 9px; border-radius: 9px; }
.a-match .teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 6px; margin-top: 14px; }
.a-match .team { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; min-width: 0; }
.a-match .team b { font-size: 14px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.a-match .team .a-crest { width: 52px; height: 52px; border-radius: 18px; font-size: 14px; }
.a-score { display: flex; align-items: center; gap: 8px; }
.a-score .colon { font: 700 18px var(--a-disp); color: var(--a-t4); }
.a-step { width: 58px; border-radius: 18px; background: var(--a-bg2); border: 1px solid var(--a-line2); overflow: hidden; text-align: center; user-select: none; }
.a-step button { display: grid; place-items: center; width: 100%; height: 32px; color: var(--a-t3); }
.a-step button:active { background: rgba(255, 255, 255, .06); color: var(--a-t1); }
.a-step button svg { width: 16px; height: 16px; }
.a-step .v { font: 700 30px/1 var(--a-disp); padding: 2px 0 4px; }
.a-match.untipped .a-step .v { color: var(--a-t4); }
.a-match .row1x2 { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.a-match .row1x2 b { flex: 1; font-size: 15px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.a-match .row1x2 .a-crest { width: 34px; height: 34px; border-radius: 12px; font-size: 10.5px; }
.a-pick { display: flex; background: var(--a-bg2); border: 1px solid var(--a-line); border-radius: 16px; padding: 4px; margin-top: 12px; }
.a-pick button { flex: 1; height: 42px; border-radius: 12px; font: 700 16px var(--a-disp); color: var(--a-t3); transition: background .15s, color .15s; }
.a-pick button.on { background: var(--a-brand); color: #fff; box-shadow: 0 4px 14px rgba(124, 92, 255, .5); }
.a-saved { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 12px; min-height: 18px; font: 700 12.5px var(--a-body); color: var(--a-ok); }
.a-saved.err { color: var(--a-bad); }
.a-saved.busy { color: var(--a-t3); }
.a-saved svg { width: 15px; height: 15px; }

/* Rebríčky */
.a-lg { display: block; border-radius: 24px; padding: 16px; margin-top: 12px; background: var(--a-s1); border: 1px solid var(--a-line2); position: relative; overflow: hidden; }
.a-lg .hd { display: flex; align-items: center; gap: 12px; }
.a-lg .nm { font: 700 16px var(--a-disp); }
.a-lg .rk { font: 700 38px/1 var(--a-disp); }
.a-lg .mv { font: 700 13px var(--a-body); margin-left: 6px; }
.a-lg .ft { display: flex; align-items: flex-end; justify-content: space-between; margin-top: 14px; gap: 10px; }
.a-stack { display: flex; }
.a-stack .a-av { width: 30px; height: 30px; font-size: 10px; box-shadow: 0 0 0 2px var(--a-s1); }
.a-stack .a-av + .a-av { margin-left: -8px; }
.a-lg.compact { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 20px; border-color: var(--a-line); }
.a-top3 { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 20px; margin-bottom: 8px; }
.a-top3 .medal { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; font: 700 14px var(--a-disp); flex: none; }
.a-top3.p1 { background: linear-gradient(90deg, rgba(250, 204, 21, .24), rgba(250, 204, 21, .04) 70%); border: 1px solid rgba(250, 204, 21, .5); box-shadow: 0 8px 24px -10px rgba(250, 204, 21, .45); }
.a-top3.p1 .medal { background: #facc15; color: #1c1605; }
.a-top3.p2 { background: linear-gradient(90deg, rgba(184, 192, 214, .18), rgba(184, 192, 214, .03) 70%); border: 1px solid rgba(184, 192, 214, .35); }
.a-top3.p2 .medal { background: #c9cfde; color: #14182a; }
.a-top3.p3 { background: linear-gradient(90deg, rgba(201, 140, 85, .2), rgba(201, 140, 85, .03) 70%); border: 1px solid rgba(201, 140, 85, .38); }
.a-top3.p3 .medal { background: #c98c55; color: #1f1206; }
.a-top3.me, .a-rrow.me { outline: 2px solid var(--a-brand); outline-offset: -2px; }
.a-rrow { display: flex; align-items: center; gap: 11px; padding: 10px 14px; border-bottom: 1px solid var(--a-line); }
.a-rrow:last-child { border-bottom: 0; }
.a-rrow.me { background: var(--a-brand-soft); border-radius: 14px; }
.a-rrow .r { width: 26px; font: 700 14px var(--a-disp); color: var(--a-t3); text-align: center; flex: none; }
.a-rrow .nm, .a-top3 .nm { flex: 1; min-width: 0; font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.a-mv { width: 32px; font: 700 11px var(--a-body); display: flex; align-items: center; gap: 1px; justify-content: flex-end; flex: none; }
.a-mv svg { width: 12px; height: 12px; }
.a-pts { font: 700 15px var(--a-disp); min-width: 38px; text-align: right; flex: none; }
.a-mebar { position: fixed; z-index: 70; left: 12px; right: 12px; bottom: calc(92px + env(safe-area-inset-bottom));
  max-width: 536px; margin: 0 auto; padding: 11px 14px; border-radius: 20px; display: flex; align-items: center; gap: 11px;
  background: linear-gradient(90deg, #5b3fd6, #7c5cff); box-shadow: 0 12px 30px rgba(124, 92, 255, .45); transition: opacity .2s, transform .2s; }
.a-mebar.hide { opacity: 0; transform: translateY(12px); pointer-events: none; }
.a-mebar .r { width: 30px; font: 700 14px var(--a-disp); text-align: center; }
.a-select { appearance: none; -webkit-appearance: none; background: none; border: 0; color: var(--a-t1); font: 700 21px var(--a-disp); padding: 0 22px 0 0; max-width: 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237f89a8' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M7 10l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right center; background-size: 18px; }
.a-select option { background: #0f1424; font-size: 15px; }

/* liga */
.a-hero { display: flex; flex-direction: column; align-items: center; text-align: center; }
.a-hero .a-crest { width: 72px; height: 72px; border-radius: 24px; font-size: 20px; box-shadow: 0 14px 30px rgba(0, 0, 0, .45), inset 0 0 0 1px rgba(255, 255, 255, .18); }
.a-hero h2 { margin: 12px 0 0; font: 700 23px var(--a-disp); }
.a-prize1 { margin-top: 14px; border-radius: 24px; padding: 18px; position: relative; overflow: hidden;
  background: linear-gradient(150deg, rgba(250, 204, 21, .22), rgba(250, 204, 21, .04) 55%, var(--a-s1)); border: 1px solid rgba(250, 204, 21, .4); }
.a-prize1 svg.bg { position: absolute; right: -14px; top: -10px; width: 120px; height: 120px; color: rgba(250, 204, 21, .13); stroke-width: 1.4; }
.a-prizes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.a-prizes > div { padding: 14px; }
.a-ico { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; flex: none; }
.a-ico svg { width: 20px; height: 20px; }
.a-note { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; padding: 12px 14px; border-radius: 16px; background: var(--a-s1); border: 1px solid var(--a-line); font-size: 12.5px; color: var(--a-t2); line-height: 1.5; }
.a-note svg { width: 18px; height: 18px; color: var(--a-info); flex: none; margin-top: 1px; }
.a-pane[hidden] { display: none; }
.a-rules { white-space: pre-line; color: var(--a-t2); line-height: 1.6; font-size: 14px; padding: 16px; }

/* notifikácie */
.a-noti { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 20px; background: var(--a-s1); border: 1px solid var(--a-line); margin-bottom: 8px; }
.a-noti.read { opacity: .72; }
.a-noti.deadline { background: linear-gradient(90deg, rgba(245, 165, 36, .14), var(--a-s1) 60%); border-color: rgba(245, 165, 36, .35); }
.a-noti .tx { flex: 1; min-width: 0; }
.a-noti .tx b { display: block; font-size: 14.5px; }
.a-noti .tx span { display: block; color: var(--a-t2); font-size: 13px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.a-noti .tm { text-align: right; font-size: 11.5px; color: var(--a-t3); flex: none; }
.a-noti .unread { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--a-brand-b); margin-top: 7px; }
.a-noti .go { font: 700 12px var(--a-body); color: var(--a-gold-ink); background: var(--a-gold); padding: 7px 11px; border-radius: 11px; flex: none; }

/* profil */
.a-badges { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; }
.a-badge { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; flex: none; }
.a-badge svg { width: 26px; height: 26px; }
.a-badge.off { background: var(--a-s1); border: 1px dashed var(--a-line2); color: var(--a-t4); }
.a-menu .a-row { padding: 12px 0; }
.a-menu .a-ico { width: 36px; height: 36px; border-radius: 12px; }
.a-menu .lbl { flex: 1; font-weight: 600; }

/* úvodné obrazovky */
.a-onb { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; padding-bottom: 0;
  background: radial-gradient(120% 70% at 50% 18%, rgba(124, 92, 255, .35), transparent 60%), #05070d; }
.a-onb .skip { display: flex; justify-content: flex-end; padding: calc(16px + env(safe-area-inset-top)) 22px 6px; }
.a-onb .skip a { color: #7f89a8; font: 600 14px var(--a-body); }
.a-onb .slides { flex: 1; display: flex; overflow: hidden; }
.a-onb .slide { flex: 0 0 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 0 30px 20px; transition: transform .35s ease; }
.a-onb .art { width: 210px; height: 210px; border-radius: 50%; display: grid; place-items: center; margin-top: 18px;
  background: radial-gradient(circle, rgba(250, 204, 21, .18), transparent 65%); }
.a-onb .art img { width: 170px; filter: drop-shadow(0 12px 30px rgba(0, 0, 0, .6)); }
.a-onb .art svg { width: 110px; height: 110px; color: #facc15; stroke-width: 1.6; }
.a-onb .step { font: 700 13px var(--a-disp); letter-spacing: .2em; color: #facc15; margin-top: 30px; }
.a-onb h2 { margin: 12px 0 0; font: 700 30px/1.15 var(--a-disp); letter-spacing: -.01em; }
.a-onb p { color: #b8c0d6; font-size: 15.5px; line-height: 1.55; margin: 14px 0 0; }
.a-onb .dots { display: flex; justify-content: center; gap: 7px; margin: 22px 0; }
.a-onb .dots i { width: 7px; height: 7px; border-radius: 4px; background: #2c3858; transition: width .25s, background .25s; }
.a-onb .dots i.on { width: 26px; background: #facc15; }
.a-onb .foot { padding: 0 22px calc(30px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 12px; max-width: 520px; width: 100%; margin: 0 auto; }
.a-onb .foot .alt { text-align: center; font-size: 14px; color: #7f89a8; }
.a-onb .foot .alt a { color: #9d83ff; font-weight: 700; }
.a-pts-list { display: grid; gap: 8px; width: 100%; max-width: 300px; margin-top: 20px; text-align: left; }
.a-pts-list div { display: flex; justify-content: space-between; padding: 10px 14px; border-radius: 14px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(150, 165, 215, .14); font-size: 14px; }
.a-pts-list b { font-family: var(--a-disp); color: #facc15; }

/* spodný panel (bottom sheet) a toast */
.a-sheet-bg { position: fixed; inset: 0; z-index: 90; background: rgba(5, 7, 13, .6); opacity: 0; transition: opacity .2s; }
.a-sheet { position: fixed; z-index: 91; left: 0; right: 0; bottom: 0; padding: 10px 20px calc(24px + env(safe-area-inset-bottom));
  border-radius: 26px 26px 0 0; background: #111728; border-top: 1px solid rgba(150, 165, 215, .2); transform: translateY(100%); transition: transform .28s ease; max-width: 560px; margin: 0 auto; }
.a-sheet.open { transform: none; } .a-sheet-bg.open { opacity: 1; }
.a-sheet .grab { width: 40px; height: 5px; border-radius: 3px; background: #2c3858; margin: 0 auto 14px; }
.a-sheet h3 { margin: 0 0 6px; font: 700 20px 'Space Grotesk', sans-serif; color: #eef1f9; }
.a-sheet p { margin: 0 0 16px; color: #b8c0d6; font-size: 14.5px; line-height: 1.5; }
.a-toast { position: fixed; z-index: 95; left: 50%; bottom: calc(100px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  background: #232d47; color: #eef1f9; padding: 11px 16px; border-radius: 14px; font: 600 14px 'Manrope', sans-serif; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); max-width: calc(100% - 40px); }
.a-toast.err { background: #5a1b2a; }

/* potiahnutie na obnovenie */
.a-ptr { position: fixed; z-index: 75; top: 0; left: 50%; width: 38px; height: 38px; margin-left: -19px; border-radius: 50%;
  background: #161d31; border: 1px solid rgba(150, 165, 215, .2); display: grid; place-items: center; color: #9d83ff;
  transform: translateY(-50px); opacity: 0; }
.a-ptr svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2.4; stroke-linecap: round; }
.a-ptr.spin svg { animation: a-spin .8s linear infinite; }
@keyframes a-spin { to { transform: rotate(360deg); } }

/* skeleton pri prechode */
@media (prefers-reduced-motion: no-preference) {
  .a-screen .a-in { animation: a-in .32s ease both; }
  @keyframes a-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
}

/* ── zadávanie skóre šípkami na webových stránkach v appke (js/app.js) ── */
html.is-app .tip-inputs.tip-stepper { gap: 8px; }
html.is-app .tip-step { display: flex; flex-direction: column; align-items: center; width: 56px; border-radius: 16px;
  background: var(--surface-3); border: 1.5px solid var(--line-strong); overflow: hidden; user-select: none; -webkit-user-select: none; }
html.is-app .tip-step .tip-num { width: 100%; height: 40px; border: 0; border-radius: 0; background: none; box-shadow: none;
  font-size: 1.65rem; padding: 0; cursor: default; caret-color: transparent; }
html.is-app .tip-step .tip-num:focus { box-shadow: none; }
html.is-app .tip-step .tip-num.hit { color: var(--success); }
html.is-app .tip-step-btn { display: grid; place-items: center; width: 100%; height: 30px; border: 0; background: none;
  color: var(--text-3); cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
html.is-app .tip-step-btn:active { background: rgba(255, 255, 255, .07); color: var(--text-1); }
html.is-app .tip-step-btn svg { width: 17px; height: 17px; }
html.is-app .tip-step.off { opacity: .5; }
html.is-app .tip-step.off .tip-step-btn { visibility: hidden; height: 10px; }
html.is-app .tip-step:has(.tip-num.hit) { border-color: var(--success); box-shadow: 0 0 0 1px var(--success); }

/* ── Ligy: pridať sa / vytvoriť (app/pridat.ejs) ── */
.a-form { padding: 18px; margin-top: 16px; }
.a-form .a-label { display: block; margin-bottom: 8px; }
.a-input, .a-code { width: 100%; background: var(--a-bg2); border: 1.5px solid var(--a-line2); border-radius: 15px; color: var(--a-t1);
  font: 600 16px var(--a-body); padding: 0 15px; height: 50px; outline: none; transition: border-color .15s, box-shadow .15s; -webkit-appearance: none; }
.a-input:focus, .a-code:focus { border-color: var(--a-brand); box-shadow: 0 0 0 3px rgba(124, 92, 255, .22); }
.a-code { height: 64px; text-align: center; font: 700 30px var(--a-disp); letter-spacing: .32em; text-transform: uppercase; padding-left: calc(15px + .32em); }
.a-code::placeholder { color: var(--a-t4, #3d4763); letter-spacing: .32em; }
.a-hint { color: var(--a-t3); font-size: 12.5px; margin-top: 8px; line-height: 1.45; }
.a-err { margin-top: 12px; padding: 11px 13px; border-radius: 13px; background: rgba(240, 71, 106, .12); color: #ff8aa2; font: 600 13.5px var(--a-body); }
.a-screen .a-mini { flex: none; height: 36px; padding: 0 15px; border-radius: 12px; background: var(--a-s2); color: var(--a-t1); font: 700 13.5px var(--a-body); border: 1px solid var(--a-line2); }
.a-mini:active { transform: scale(.95); }
.a-mini[disabled] { opacity: .6; }
.a-choice { display: grid; gap: 8px; }
.a-choice.two { grid-template-columns: 1fr 1fr; }
.a-choice button { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; text-align: left; padding: 13px 14px;
  border-radius: 16px; border: 1.5px solid var(--a-line2); background: var(--a-bg2); color: var(--a-t2); -webkit-tap-highlight-color: transparent; }
.a-choice button svg { grid-row: span 2; width: 22px; height: 22px; color: var(--a-t3); }
.a-choice button b { font: 700 14.5px var(--a-body); color: var(--a-t1); }
.a-choice button span { font-size: 12px; color: var(--a-t3); line-height: 1.35; }
.a-choice.two button { grid-template-columns: 1fr; text-align: center; }
.a-choice button.on { border-color: var(--a-brand); background: rgba(124, 92, 255, .13); }
.a-choice button.on svg { color: var(--a-brand-b); }
.a-choice button[disabled] { opacity: .45; }
.a-tpls { display: grid; gap: 6px; max-height: 300px; overflow-y: auto; }
.a-tpl { display: flex; align-items: center; gap: 12px; padding: 9px 12px 9px 9px; border-radius: 15px; border: 1.5px solid var(--a-line); background: var(--a-bg2); cursor: pointer; }
.a-tpl input { position: absolute; opacity: 0; pointer-events: none; }
.a-tpl .a-crest { width: 34px; height: 34px; border-radius: 11px; font-size: 11px; }
.a-tpl .nm { flex: 1; min-width: 0; font-weight: 700; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.a-tpl .rd { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--a-line2); flex: none; }
.a-tpl:has(input:checked) { border-color: var(--a-brand); background: rgba(124, 92, 255, .1); }
.a-tpl:has(input:checked) .rd { border: 6px solid var(--a-brand); }
.a-done { padding: 26px 20px 20px; margin-top: 16px; text-align: center; }
.a-done .ok { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; background: var(--a-ok-soft); color: var(--a-ok); }
.a-done .ok svg { width: 30px; height: 30px; }
.a-done h2 { font: 700 22px var(--a-disp); margin: 0 0 6px; }
.a-screen .a-codebox { width: 100%; margin-top: 8px; height: 66px; border-radius: 16px; border: 1.5px dashed var(--a-line2); background: var(--a-bg2); color: var(--a-t1);
  font: 700 32px var(--a-disp); letter-spacing: .3em; padding-left: .3em; }
.a-codebox:active { transform: scale(.98); }
.a-quick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.a-quick a { display: flex; align-items: center; justify-content: center; gap: 7px; height: 44px; border-radius: 14px; background: var(--a-s1); border: 1px solid var(--a-line2); font: 700 13.5px var(--a-body); color: var(--a-t1); }
.a-quick a svg { width: 17px; height: 17px; color: var(--a-brand-b); }

/* ── Tipovanie: karty a názvy tímov (dlhý názov na 2 riadky) ── */
.a-match .teams { align-items: start; gap: 8px; }
.a-match .teams .a-score { align-self: center; }
.a-match .team b { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2;
  white-space: normal; overflow: hidden; text-overflow: clip; overflow-wrap: break-word; word-break: normal; hyphens: manual;
  font-size: 13.5px; line-height: 1.22; min-height: 2.44em; max-width: 100%; }
.a-match .teams { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 6px; }
.a-match .team .a-crest { width: 46px; height: 46px; border-radius: 16px; font-size: 13px; }
.a-match .a-score { gap: 6px; }
.a-match .a-step { width: 50px; }
.a-match .a-step .v { font-size: 28px; }
.a-match .row1x2 { align-items: center; }
.a-match .row1x2 b { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2;
  white-space: normal; overflow-wrap: break-word; line-height: 1.22; font-size: 14.5px; }
.a-match .meta > span:first-child { min-width: 0; }

/* webové stránky tipovania v appke (kolo, Moje tipy, zápasy sezóny) */
html.is-app .match-row { padding: 14px 14px 16px; border-radius: 22px; }
html.is-app .match-row .match-head { flex-direction: row; justify-content: space-between; align-items: center; text-align: left; gap: 8px; margin-bottom: 12px; }
html.is-app .match-row .match-head .match-meta { font-size: 12px; letter-spacing: 0; color: var(--text-3); }
html.is-app .match-row .match-head .tag { font-size: 10px; padding: 3px 8px; }
html.is-app .match-row .match-teams { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: start; gap: 8px; }
html.is-app .match-row .match-teams > .tip-inputs, html.is-app .match-row .match-teams > .pick-1x2 { align-self: center; }
html.is-app .match-row .match-teams .team { flex-direction: column; align-items: center; text-align: center; gap: 7px; }
html.is-app .match-row .team-logo { width: 44px; height: 44px; }
html.is-app .match-row .team-name { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2;
  white-space: normal; overflow: hidden; text-overflow: clip; overflow-wrap: break-word; word-break: normal; hyphens: manual;
  font-size: 13px; line-height: 1.22; min-height: 2.44em; max-width: 100%; text-align: center; }
html.is-app .match-row .tip-step { width: 50px; }

/* atribút hidden musí platiť aj pre prvky s vlastným display (napr. .a-btn) */
.a-screen [hidden] { display: none !important; }
/* .a-screen button (reset) by inak prebil písmo tlačidiel s triedou .a-btn */
.a-screen button.a-btn { font: 700 16px var(--a-body); }
.a-screen button.a-btn.ghost { background: var(--a-s2); }

/* liga: možnosti (spodný panel) */
.a-sheet { max-height: 88vh; overflow-y: auto; }
.a-idrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--a-bg2); border: 1.5px dashed var(--a-line2); }
.a-idrow b { display: block; margin-top: 3px; font-size: 22px; letter-spacing: .16em; }
.a-sheet .a-card { background: var(--a-s1); }
/* .a-screen button (reset) by inak zrušil pozadie ikonových tlačidiel a čipov */
.a-screen button.a-ib { background: rgba(255, 255, 255, .04); border: 1px solid rgba(150, 165, 215, .2); }
.a-screen button.a-chip { background: var(--a-s2); border: 1px solid var(--a-line2); display: inline-flex; align-items: center; font: 700 13px var(--a-body); }

/* kolo: karty zápasov bez tipovania (rovnaký tvar ako karta na tipovanie) */
.a-match.done .meta .a-pill { padding: 3px 8px; font-size: 11px; }
.a-match.done .meta .a-pill:not(.ok):not(.warn):not(.info) { background: var(--a-s2); color: var(--a-t3); }
.a-match.done .team .a-crest { width: 44px; height: 44px; border-radius: 15px; font-size: 12.5px; }
.a-res { min-width: 86px; text-align: center; font: 700 30px var(--a-disp); letter-spacing: .02em; color: var(--a-t1); }
.a-match.waiting .a-res, .a-match.canceled .a-res, .a-match.live .a-res { color: var(--a-t4); font-size: 24px; }
.a-mytip { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 10px 12px; border-radius: 14px; background: var(--a-bg2); font-size: 13.5px; }
.a-mytip b { font: 700 15px var(--a-disp); }
.a-others { margin-top: 10px; }
.a-others summary { list-style: none; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 6px; cursor: pointer; font: 700 12.5px var(--a-body); color: var(--a-brand-b); }
.a-others summary::-webkit-details-marker { display: none; }
.a-others[open] summary svg { transform: rotate(180deg); }
.a-others .o { display: flex; align-items: center; gap: 10px; padding: 7px 4px; border-top: 1px solid var(--a-line); font-size: 13.5px; }
.a-others .o .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.a-others .o b { font: 700 14px var(--a-disp); }
.a-others .o .p { min-width: 36px; text-align: right; font: 700 12px var(--a-body); color: var(--a-t4); }
.a-others .o .p.on { color: var(--a-gold); }
.a-sec .a-small { font-family: var(--a-body); }
.a-pill:not(.ok):not(.warn):not(.info):not(.gold) { background: var(--a-s2); color: var(--a-t2); }
.a-screen button.a-row { justify-content: flex-start; text-align: left; }
.a-screen button.a-row .lbl { flex: 1; }

/* ================= BANNER (sezóna, liga, kolo, zamknutý obsah) =================
   Jedno farebné okno: erb + názov, stav, tri čísla a tlačidlá. Farba z erbu (--bn). */
.a-banner { position: relative; overflow: hidden; isolation: isolate; border-radius: 28px; padding: 18px; margin-top: 2px; color: #fff;
  background: var(--bn, linear-gradient(135deg, #5a2ca0, #2a1450));
  box-shadow: 0 20px 44px rgba(0, 0, 0, .5), inset 0 0 0 1px rgba(255, 255, 255, .12); }
.a-banner::before { content: ''; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(90% 80% at 100% 0%, rgba(255, 255, 255, .22), transparent 55%), linear-gradient(180deg, rgba(5, 7, 13, 0) 30%, rgba(5, 7, 13, .45)); }
.a-banner::after { content: attr(data-wm); position: absolute; z-index: -1; right: -6px; top: -22px; font: 800 120px/1 var(--a-disp); letter-spacing: -.04em; color: rgba(255, 255, 255, .06); pointer-events: none; }
.a-banner .bn-top { display: flex; gap: 14px; align-items: center; }
.a-banner .bn-top .a-crest { width: 60px; height: 60px; border-radius: 20px; font-size: 17px; flex: none; box-shadow: 0 10px 24px rgba(0, 0, 0, .35), inset 0 0 0 1px rgba(255, 255, 255, .25); }
.a-banner .bn-eyebrow { display: block; font: 700 11px var(--a-body); letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .72); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.a-banner .bn-title { margin: 3px 0 0; font: 700 23px/1.15 var(--a-disp); letter-spacing: -.01em; color: #fff; overflow-wrap: anywhere; }
.a-banner .bn-desc { margin: 12px 0 0; font-size: 13.5px; line-height: 1.5; color: rgba(255, 255, 255, .78); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.a-banner .bn-pills { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.a-banner .bn-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 10px; font: 700 11.5px var(--a-body);
  background: rgba(5, 7, 13, .32); border: 1px solid rgba(255, 255, 255, .14); color: #fff; }
.a-banner .bn-pill .dot { width: 6px; height: 6px; border-radius: 50%; background: #2fe0a2; box-shadow: 0 0 8px #2fe0a2; }
.a-banner .bn-pill.gold { background: rgba(250, 204, 21, .18); border-color: rgba(250, 204, 21, .4); color: #ffe27a; }
.a-banner .bn-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.a-banner .bn-stats > div { min-width: 0; padding: 10px 6px; border-radius: 16px; text-align: center; background: rgba(5, 7, 13, .34); border: 1px solid rgba(255, 255, 255, .1); }
.a-banner .bn-stats b { display: block; font: 700 19px/1.2 var(--a-disp); color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.a-banner .bn-stats span { display: block; margin-top: 2px; font: 600 11px var(--a-body); color: rgba(255, 255, 255, .7); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.a-banner .bn-actions { display: flex; gap: 8px; margin-top: 14px; }
.a-banner .bn-actions .a-btn { flex: 1; width: auto; height: 50px; font-size: 15.5px; }
.a-banner .bn-actions .a-btn.ghost { background: rgba(5, 7, 13, .34); border-color: rgba(255, 255, 255, .16); color: #fff; }
.a-screen .bn-ib { flex: none; width: 50px; height: 50px; border-radius: 16px; display: grid; place-items: center; color: #fff;
  background: rgba(5, 7, 13, .34); border: 1px solid rgba(255, 255, 255, .16); }
.bn-ib svg { width: 20px; height: 20px; }
.bn-ib:active { transform: scale(.94); }
.a-banner .a-input { background: rgba(5, 7, 13, .5); border-color: rgba(255, 255, 255, .18); margin-top: 14px; }
.a-banner .a-err { margin-top: 10px; }
.a-banner .bn-lock { display: flex; gap: 10px; align-items: center; margin-top: 14px; padding: 12px; border-radius: 16px; background: rgba(5, 7, 13, .34); font-size: 13.5px; color: rgba(255, 255, 255, .85); }
.a-banner .bn-lock svg { width: 20px; height: 20px; flex: none; }
.a-banner a { color: inherit; }

/* karty zápasov: tímy symetricky okolo skóre / VS, všetko na stred */
.a-match .teams { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 10px; }
.a-match .team { justify-self: stretch; }
.a-vs { width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; font: 700 13px var(--a-disp); letter-spacing: .06em;
  color: var(--a-t3); background: var(--a-bg2); border: 1px solid var(--a-line2); }
.a-match .a-pick { margin-top: 14px; }
.a-match .meta { min-height: 22px; }
.a-match .meta > :first-child:empty { display: none; }
.a-match .meta:has(> :first-child:empty) { justify-content: center; }

/* výsledky v kole ako moderné bloky */
.a-match.done { position: relative; overflow: hidden; background: radial-gradient(120% 90% at 50% 0%, rgba(124, 92, 255, .14), transparent 60%), var(--a-s1); border: 1px solid var(--a-line2); }
.a-match.done.finished { background: radial-gradient(120% 90% at 50% 0%, rgba(47, 224, 162, .12), transparent 60%), var(--a-s1); }
.a-match.done .a-res { min-width: 0; padding: 8px 16px; border-radius: 16px; background: rgba(5, 7, 13, .6); border: 1px solid var(--a-line2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05); }
.a-match.done.finished .a-res { box-shadow: 0 0 24px rgba(47, 224, 162, .12), inset 0 1px 0 rgba(255, 255, 255, .06); }
.a-mytip { border: 1px solid var(--a-line); }
.a-match.done .a-mytip:has(.a-pill.gold) { background: linear-gradient(135deg, rgba(250, 204, 21, .16), rgba(5, 7, 13, .6)); border-color: rgba(250, 204, 21, .3); }
.a-others { margin-top: 10px; border-radius: 16px; background: rgba(5, 7, 13, .45); border: 1px solid var(--a-line); overflow: hidden; }
.a-others summary { padding: 10px; }
.a-others[open] summary { border-bottom: 1px solid var(--a-line); }
.a-others .o { padding: 8px 12px; border-top: 0; }
.a-others .o + .o { border-top: 1px solid var(--a-line); }
.a-others .o .p { padding: 3px 7px; border-radius: 8px; background: var(--a-s2); min-width: 0; }
.a-others .o .p.on { background: var(--a-gold-soft); }

/* ================= DOMOV: moje sezóny ako bento ================= */
.a-bento { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.a-bento .bt { position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; min-height: 156px; padding: 14px; border-radius: 24px; color: #fff;
  background: var(--bn); box-shadow: 0 12px 28px rgba(0, 0, 0, .4), inset 0 0 0 1px rgba(255, 255, 255, .12); }
.a-bento .bt::before { content: ''; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(100% 80% at 100% 0%, rgba(255, 255, 255, .2), transparent 55%), linear-gradient(180deg, rgba(5, 7, 13, .05) 20%, rgba(5, 7, 13, .55)); }
.a-bento .bt::after { content: attr(data-wm); position: absolute; z-index: -1; right: -6px; bottom: -20px; font: 800 78px/1 var(--a-disp); letter-spacing: -.04em; color: rgba(255, 255, 255, .07); }
.a-bento .bt.big, .a-bento .bt.wide { grid-column: span 2; }
.a-bento .bt.big { min-height: 178px; padding: 18px; border-radius: 28px; }
.a-bento .bt.big::after { font-size: 120px; bottom: -30px; }
.a-bento .bt-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.a-bento .bt .a-crest { width: 42px; height: 42px; border-radius: 14px; font-size: 12px; box-shadow: 0 8px 18px rgba(0, 0, 0, .35), inset 0 0 0 1px rgba(255, 255, 255, .25); }
.a-bento .bt.big .a-crest { width: 52px; height: 52px; border-radius: 17px; font-size: 14px; }
.a-bento .bt-badge { padding: 4px 9px; border-radius: 10px; background: #facc15; color: #1c1605; font: 800 11.5px var(--a-body); box-shadow: 0 0 16px rgba(250, 204, 21, .45); white-space: nowrap; }
.a-bento .bt-name { margin-top: 12px; font: 700 15px/1.2 var(--a-disp); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.a-bento .bt.big .bt-name { font-size: 21px; -webkit-line-clamp: 1; }
.a-bento .bt-sub { margin-top: 3px; font: 600 11.5px var(--a-body); color: rgba(255, 255, 255, .7); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.a-bento .bt-foot { display: flex; align-items: baseline; gap: 6px; margin-top: auto; padding-top: 10px; min-width: 0; }
.a-bento .bt-rank { font: 700 26px/1 var(--a-disp); }
.a-bento .bt.big .bt-rank { font-size: 36px; }
.a-bento .bt-pts { font: 600 11.5px var(--a-body); color: rgba(255, 255, 255, .75); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.a-bento .bt-move { margin-left: auto; display: inline-flex; align-items: center; gap: 2px; font: 700 12px var(--a-body); padding: 3px 7px; border-radius: 8px; background: rgba(5, 7, 13, .35); }
.a-bento .bt.add { min-height: 0; padding: 14px; flex-direction: row; align-items: center; justify-content: center; gap: 8px; background: var(--a-s1); border: 1.5px dashed var(--a-line2); box-shadow: none; font: 700 13.5px var(--a-body); color: var(--a-t1); text-align: center; }
.a-bento .bt.add::before, .a-bento .bt.add::after { display: none; }
.a-bento .bt.add svg { width: 18px; height: 18px; color: var(--a-brand-b); flex: none; }
.a-screen .a-howto { display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 14px; padding: 13px 16px; border-radius: 18px; background: var(--a-s1); border: 1px solid var(--a-line); color: var(--a-t2); font: 700 14px var(--a-body); text-align: left; }
.a-howto span { flex: 1; }
.a-howto svg { width: 18px; height: 18px; color: var(--a-info); }

/* ================= ÚVODNÝ NÁVOD (po prvom prihlásení) ================= */
.a-tour { position: fixed; inset: 0; z-index: 120; display: flex; align-items: flex-end; justify-content: center; padding: 16px 12px calc(16px + env(safe-area-inset-bottom));
  background: rgba(5, 7, 13, .72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: a-fade .25s ease; }
.a-tour[hidden] { display: none; }
@keyframes a-fade { from { opacity: 0; } }
.tour-card { position: relative; width: 100%; max-width: 480px; overflow: hidden; border-radius: 30px; padding: 22px 20px 20px;
  background: radial-gradient(120% 70% at 50% 0%, rgba(124, 92, 255, .35), transparent 60%), #111728; border: 1px solid rgba(150, 165, 215, .2); box-shadow: 0 30px 60px rgba(0, 0, 0, .6); animation: a-up .3s ease; }
@keyframes a-up { from { transform: translateY(30px); opacity: 0; } }
.a-screen .tour-skip { position: absolute; top: 14px; right: 16px; z-index: 2; padding: 6px 10px; border-radius: 10px; font: 700 13px var(--a-body); color: var(--a-t3); }
.tour-track { display: flex; transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.tour-slide { flex: 0 0 100%; min-width: 0; text-align: center; padding: 8px 4px 0; }
.tour-slide h2 { margin: 18px 0 8px; font: 700 23px var(--a-disp); color: #eef1f9; }
.tour-slide p { margin: 0 auto; max-width: 360px; color: #b8c0d6; font-size: 14.5px; line-height: 1.55; }
.tour-slide .tour-note { margin-top: 12px; padding: 10px 12px; border-radius: 14px; background: rgba(250, 204, 21, .1); color: #ffe27a; font-size: 13.5px; }
.tour-art { width: 128px; height: 128px; margin: 6px auto 0; border-radius: 36px; display: grid; place-items: center; background: rgba(255, 255, 255, .05); border: 1px solid rgba(150, 165, 215, .18); }
.tour-art img { width: 108px; height: 108px; object-fit: contain; }
.tour-art.gold { color: #facc15; background: rgba(250, 204, 21, .1); border-color: rgba(250, 204, 21, .3); box-shadow: 0 0 40px rgba(250, 204, 21, .2); }
.tour-art svg { width: 56px; height: 56px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tour-flow { display: flex; align-items: center; justify-content: center; gap: 6px; height: 134px; }
.tour-flow span { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 82px; padding: 14px 6px; border-radius: 20px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(150, 165, 215, .2); font: 700 12.5px var(--a-body); color: #eef1f9; }
.tour-flow span:nth-child(1) { background: linear-gradient(135deg, rgba(124, 92, 255, .4), rgba(124, 92, 255, .1)); }
.tour-flow span:nth-child(3) { background: linear-gradient(135deg, rgba(42, 111, 214, .4), rgba(42, 111, 214, .1)); }
.tour-flow span:nth-child(5) { background: linear-gradient(135deg, rgba(31, 212, 151, .35), rgba(31, 212, 151, .08)); }
.tour-flow svg { width: 26px; height: 26px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tour-flow i { width: 12px; height: 2px; border-radius: 2px; background: rgba(150, 165, 215, .4); }
.tour-score { display: flex; align-items: center; justify-content: center; gap: 12px; height: 134px; }
.tour-score > span { font: 700 26px var(--a-disp); color: var(--a-t4); }
.tour-score .st { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 62px; padding: 8px 0; border-radius: 18px; background: #05070d; border: 1px solid rgba(124, 92, 255, .5); box-shadow: 0 0 24px rgba(124, 92, 255, .3); }
.tour-score .st b { font: 700 34px var(--a-disp); color: #fff; }
.tour-score svg { width: 18px; height: 18px; stroke: #9d83ff; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.tour-pts { max-width: 320px; margin: 8px auto 0; text-align: left; }
.tour-dots { display: flex; justify-content: center; gap: 6px; margin: 18px 0 14px; }
.tour-dots i { width: 7px; height: 7px; border-radius: 4px; background: #2c3858; transition: width .25s, background .25s; }
.tour-dots i.on { width: 22px; background: #facc15; }
/* návod: susedné snímky nesmú presvitať do okrajov karty */
.tour-card { padding-left: 0; padding-right: 0; }
.tour-slide { padding: 8px 20px 0; }
.tour-card > .a-btn { width: calc(100% - 40px); margin: 0 20px; }

/* logá líg a súťaží: celé okienko (contain), okraje vyplní rozmazaná kópia loga */
.a-crest.lg { position: relative; isolation: isolate; background: #fff; }
.a-crest.lg .lg-bg { position: absolute; inset: -20%; z-index: -1; background-size: cover; background-position: center; filter: blur(10px) saturate(1.3); opacity: .9; }
.a-crest.lg img { position: relative; padding: 0; background: transparent; object-fit: contain; }
/* logo ligy/súťaže roztiahnuté na celú výšku aj šírku okienka */
.a-crest.lg img { width: 100%; height: 100%; object-fit: cover; }
.a-crest.lg .lg-bg { display: none; }
