/* =====================================================================
   TIFO — NOVÝ APPKOVÝ DIZAJN PRE WEBOVÉ STRÁNKY OTVORENÉ V APPKE
   ---------------------------------------------------------------------
   Všetko je pod html.is-app (nastaví partials/app-detect.ejs), takže web
   v prehliadači sa nemení. Cieľ: každá stránka v appke vyzerá ako appkové
   obrazovky /app/* (css/app.css, prefix .a-): tmavé karty so zaoblením
   22 px, tlačidlá 46–52 px, zlaté hlavné akcie, segmentové prepínače,
   veľký nadpis, ktorý sa pri posúvaní presunie do hornej lišty.
   Funkcie stránok ostávajú — mení sa len vzhľad.
   ===================================================================== */

/* ---------- 1) farby, zaoblenia a písmo ako na appkových obrazovkách ---------- */
html.is-app {
  --bg: #080b14; --bg-deep: #05070d;
  --surface-1: #0f1424; --surface-2: #161d31; --surface-3: #212a43; --surface-4: #2c3858;
  --line: rgba(150, 165, 215, .10); --line-strong: rgba(150, 165, 215, .2);
  --text-1: #eef1f9; --text-2: #b8c0d6; --text-3: #7f89a8; --text-4: #545c78;
  --r-xs: 9px; --r-sm: 14px; --r-md: 16px; --r-lg: 22px; --r-xl: 24px; --r-2xl: 28px;
  --fs-display: 30px; --fs-h1: 26px; --fs-h2: 19px; --fs-h3: 18px; --fs-h4: 16px;
  --shadow-sm: none; --shadow-md: none; --shadow-lg: 0 14px 34px -14px rgba(0, 0, 0, .6);
  --text-glow-brand: none; --text-glow-gold: none;
  --nav-h: 0px;
  background: #080b14;
}
html.is-app body {
  background: #080b14; color: var(--text-2);
  -webkit-tap-highlight-color: transparent; overscroll-behavior-y: contain;
}
/* jemná fialová žiara hore ako na obrazovkách appky (namiesto webového pozadia) */
html.is-app .bg-field {
  background: radial-gradient(90% 320px at 100% 0%, rgba(124, 92, 255, .16), transparent 70%);
}
html.is-app .wrap { max-width: 600px; padding-inline: 18px !important; }
html.is-app h1, html.is-app h2, html.is-app h3 { letter-spacing: -.015em; }
html.is-app h1 { font-size: 26px; line-height: 1.15; }
html.is-app h2 { font-size: 19px; line-height: 1.2; }
html.is-app h3 { font-size: 17px; line-height: 1.25; }

/* webové „nadpisy nad nadpisom", omrvinky a dekorácie appka nemá —
   späť ide šípka v hornej lište, nadpis je jeden */
html.is-app .eyebrow,
html.is-app .crumb,
html.is-app .crumbs,
html.is-app .breadcrumb,
html.is-app .breadcrumbs { display: none !important; }
html.is-app .card-accent::before { display: none; }

/* bez nábehových animácií webu (appka má vlastný prechod obrazoviek) */
html.is-app.has-reveal .reveal { opacity: 1 !important; transform: none !important; }
html.is-app body > main, html.is-app body > .wrap, html.is-app body > .form-layout { animation-duration: .25s; }

/* ---------- 2) horná lišta: veľký nadpis sa pri posúvaní presunie do lišty ---------- */
html.is-app .app-topbar {
  background: transparent; border-bottom-color: transparent;
  backdrop-filter: none; -webkit-backdrop-filter: none;
  transition: background .2s, border-color .2s;
  padding: calc(12px + env(safe-area-inset-top)) 18px 10px;
}
html.is-app .app-topbar.solid {
  background: rgba(8, 11, 20, .88); border-bottom-color: rgba(150, 165, 215, .10);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
html.is-app .app-topbar b { font: 700 17px var(--font-display); transition: opacity .2s, transform .2s; }
html.is-app .app-topbar.big b { opacity: 0; transform: translateY(6px); }
html.is-app .app-topbar .a-ib { width: 40px; height: 40px; border-radius: 14px; }

/* ---------- 3) podnavigácia sezóny / správy → appkové čipy ---------- */
html.is-app .subnav {
  position: sticky; top: calc(62px + env(safe-area-inset-top)); z-index: 55;
  background: rgba(8, 11, 20, .88); border: 0;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  -webkit-mask-image: none; mask-image: none;
}
html.is-app .subnav-inner { height: auto; padding-block: 8px 10px; gap: 8px; }
html.is-app .subnav-inner > span[style*="width:1px"] { display: none; }
html.is-app .subnav-inner > a.row { padding-right: 0 !important; }
html.is-app .subnav-brand-name { display: none; }
html.is-app .subnav-link {
  height: 34px; padding: 0 14px; border-radius: 12px; display: inline-flex; align-items: center; flex: none;
  background: var(--surface-1); border: 1px solid var(--line); color: var(--text-2);
  font: 600 13px var(--font-body); white-space: nowrap;
}
html.is-app .subnav-link.active { background: #eef1f9; border-color: #eef1f9; color: #0b0f1c; }
html.is-app .subnav.admin-bar .subnav-link.active { background: var(--danger); border-color: var(--danger); color: #fff; }

/* ---------- 4) tlačidlá ----------
   JEDEN systém tlačidiel ako na obrazovkách appky (.a-btn / .a-ib):
   hlavná akcia = zlatá, ostatné = tmavé s jemným okrajom, nebezpečné = červené.
   Fialová (btn-brand) sa v appke správa ako hlavná akcia — žiadne ďalšie farby. */
html.is-app .btn {
  --_bg: #161d31; --_fg: #eef1f9;
  min-height: 48px; padding: 12px 18px; border-radius: 16px; line-height: 1.25;
  align-items: center; justify-content: center; text-align: center; gap: 8px;
  font: 700 15px/1.25 var(--font-body); letter-spacing: 0; box-shadow: none;
  border: 1px solid rgba(150, 165, 215, .2);
}
html.is-app .btn:active { transform: scale(.97); }
html.is-app .btn-sm { min-height: 38px; padding: 8px 14px; border-radius: 12px; font-size: 13.5px; }
html.is-app .btn-lg { min-height: 52px; border-radius: 16px; font-size: 16px; }
html.is-app .btn-icon { min-height: 0; padding: 0; width: 40px; height: 40px; border-radius: 14px; --_bg: rgba(255, 255, 255, .04); }
html.is-app .btn-primary, html.is-app .btn-brand { --_bg: #facc15; --_fg: #1c1605; border-color: transparent; box-shadow: 0 0 24px rgba(250, 204, 21, .3); }
html.is-app .btn-secondary { --_bg: #161d31; --_fg: #eef1f9; border-color: rgba(150, 165, 215, .2); }
html.is-app .btn-ghost { --_bg: transparent; --_fg: #b8c0d6; border-color: transparent; }
html.is-app .btn-danger { --_bg: rgba(240, 71, 106, .12); --_fg: #ff8aa2; border-color: rgba(240, 71, 106, .3); }
html.is-app .btn:hover { box-shadow: none; filter: none; }
html.is-app .btn-primary:hover, html.is-app .btn-brand:hover { box-shadow: 0 0 24px rgba(250, 204, 21, .3); background: #facc15; }
html.is-app .btn-secondary:hover { background: #161d31; }
/* nedostupné tlačidlo = sivé (nie „vyblednutá zlatá") */
html.is-app .btn:disabled, html.is-app .btn[aria-disabled="true"] { --_bg: #161d31; --_fg: #7d87a3; background: #161d31; color: #7d87a3; border-color: rgba(150, 165, 215, .14); box-shadow: none; opacity: 1; }

/* ---------- 5) karty ---------- */
html.is-app .card { background: var(--surface-1); border: 1px solid var(--line); border-radius: 22px; box-shadow: none; }
html.is-app .card-pad { padding: 18px; }
html.is-app .card-hover:hover { transform: none; box-shadow: none; border-color: var(--line); }
html.is-app .card-hover:active { transform: scale(.985); }
html.is-app .card-glow { box-shadow: none; border-color: var(--brand-line); }

/* ---------- 6) štítky → appkové „pilulky" ---------- */
html.is-app .tag {
  font: 700 11px var(--font-body); letter-spacing: .01em; text-transform: none;
  padding: 4px 9px; border-radius: 9px; border-color: transparent;
}
html.is-app .tag-muted { background: var(--surface-2); }
html.is-app .tag[style*="display:block"] { font-size: 13px; font-weight: 600; padding: 12px 14px !important; border-radius: 14px; line-height: 1.45; }
html.is-app .chip-role { border-radius: 8px; letter-spacing: .02em; }

/* ---------- 7) formuláre ---------- */
html.is-app .label { font: 700 12px var(--font-body); color: var(--text-3); letter-spacing: .02em; }
html.is-app .hint { font-size: 12.5px; color: var(--text-3); line-height: 1.45; }
html.is-app .input, html.is-app .select, html.is-app .textarea {
  background-color: #05070d; border: 1.5px solid var(--line-strong); border-radius: 15px;
  min-height: 50px; padding-block: 12px; font-size: 16px; font-weight: 600; color: var(--text-1); box-shadow: none;
}
html.is-app .textarea { min-height: 110px; font-weight: 500; }
html.is-app .input:focus, html.is-app .select:focus, html.is-app .textarea:focus {
  border-color: #7c5cff; box-shadow: 0 0 0 3px rgba(124, 92, 255, .22);
}
html.is-app input[type="datetime-local"].input, html.is-app input[type="date"].input { width: 100% !important; }
html.is-app .input-icon .input { padding-left: 42px; }
html.is-app .search { max-width: none; }
html.is-app .check input { border-radius: 7px; width: 22px; height: 22px; }
html.is-app .switch { width: 48px; height: 28px; }

/* segmentový prepínač (webový .segment aj „tab" tlačidlá) → .a-seg */
html.is-app .segment {
  display: flex; width: 100%; gap: 4px; padding: 4px; border-radius: 16px;
  background: var(--surface-1); border: 1px solid var(--line);
}
html.is-app .segment button, html.is-app .segment a {
  flex: 1; min-height: 40px; border-radius: 12px; font: 700 13.5px var(--font-body); color: var(--text-3);
}
html.is-app .segment button.active, html.is-app .segment a.active {
  background: var(--surface-3); color: var(--text-1); box-shadow: 0 2px 8px rgba(0, 0, 0, .3);
}

/* ---------- 8) zápasy, rebríčky, štatistiky ---------- */
html.is-app .match { border-radius: 22px; background: var(--surface-1); box-shadow: none; }
html.is-app .team-logo { border-radius: 14px; }
html.is-app .lb-row { border-radius: 16px; padding-block: 11px; }
html.is-app .lb-row.me { background: rgba(124, 92, 255, .16); border-color: rgba(124, 92, 255, .45); }
html.is-app .lb-rank.top1 { text-shadow: none; }
html.is-app .stat { padding: 14px 16px; }
html.is-app .stat-label { font: 700 11px var(--font-body); letter-spacing: .06em; color: var(--text-3); }
html.is-app .stat-value { font-size: 24px; }
html.is-app .stat-value.brand, html.is-app .stat-value.gold { text-shadow: none; }
html.is-app .pts-pill { border-radius: 9px; }
html.is-app .progress { height: 7px; border-radius: 4px; }
html.is-app .progress > i { box-shadow: none; }
html.is-app .cd-box { background: #05070d; border: 1px solid var(--line-strong); border-radius: 14px; padding: 8px 10px; min-width: 52px; }
html.is-app .cd-num { font-size: 22px; }
html.is-app .empty { padding: 34px 18px; }
html.is-app .empty-icon { border-radius: 20px; }
html.is-app .hr { background: var(--line); }

/* ---------- 9) dialógy → spodný panel ako v appke ---------- */
html.is-app .scrim { align-items: flex-end !important; justify-content: center; padding: 0 !important; backdrop-filter: none; background: rgba(5, 7, 13, .6); }
html.is-app .dialog {
  width: 100% !important; max-width: 560px !important; margin: 0 auto;
  border-radius: 26px 26px 0 0 !important; border: 0; border-top: 1px solid var(--line-strong);
  background: #111728; box-shadow: 0 -18px 50px rgba(0, 0, 0, .5);
  padding: 22px 20px calc(26px + env(safe-area-inset-bottom)) !important;
  max-height: 88vh; overflow-y: auto;
  animation: aw-sheet .26s ease both;
}
html.is-app .dialog::before { content: ""; display: block; width: 40px; height: 5px; border-radius: 3px; background: #2c3858; margin: -10px auto 16px; }
html.is-app .dialog-title { font-size: 20px; }
@keyframes aw-sheet { from { transform: translateY(40px); opacity: .4; } to { transform: none; opacity: 1; } }
html.is-app .dialog .btn { flex: 1; }

/* toast ako v appke */
html.is-app .toast { border-radius: 16px; border-left-width: 0; background: #232d47; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); }
html.is-app .toast-wrap, html.is-app #toastWrap { left: 16px !important; right: 16px !important; align-items: center; }

/* ---------- 10) tabuľky (správa, admin) sa posúvajú vodorovne, stránka nie ---------- */
html.is-app table { font-size: 13.5px; }
html.is-app .table-wrap, html.is-app .tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ---------- 11) lepivé spodné panely (uloženie tipov a pod.) ---------- */
html.is-app .savebar {
  left: 12px !important; right: 12px !important; max-width: 536px; margin: 0 auto;
  border-radius: 22px !important; background: rgba(20, 26, 44, .94) !important;
  border: 1px solid var(--line-strong) !important; box-shadow: 0 16px 36px rgba(0, 0, 0, .55) !important;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}

/* ---------- 12) poistka: nič nesmie rozšíriť stránku (inak sa celá zmenší) ---------- */
html.is-app, html.is-app body { overflow-x: clip; }
html.is-app .ad-row3 { grid-template-columns: minmax(0, 1fr); }

/* ---------- 13) rebríčky: stupne víťazov ako kompaktné riadky (ako .a-top3) ---------- */
html.is-app .podium { display: flex; flex-direction: column; gap: 8px; margin: 16px 0 18px; }
html.is-app .podium > div:empty { display: none; }
html.is-app .pod {
  display: grid; grid-template-columns: 30px 42px minmax(0, 1fr) auto; grid-template-areas: "r a n p" "r a s p";
  align-items: center; column-gap: 12px; text-align: left; padding: 11px 14px; border-radius: 20px; box-shadow: none;
}
html.is-app .pod1 { order: -1; 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); }
html.is-app .pod2 { background: linear-gradient(90deg, rgba(184, 192, 214, .18), rgba(184, 192, 214, .03) 70%); border: 1px solid rgba(184, 192, 214, .35); }
html.is-app .pod3 { order: 1; background: linear-gradient(90deg, rgba(201, 140, 85, .2), rgba(201, 140, 85, .03) 70%); border: 1px solid rgba(201, 140, 85, .38); }
html.is-app .pod .pod-rank {
  grid-area: r; position: static; opacity: 1; width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center;
  font: 700 14px var(--font-display); background: #c9cfde; color: #14182a;
}
html.is-app .pod1 .pod-rank { background: #facc15; color: #1c1605; }
html.is-app .pod3 .pod-rank { background: #c98c55; color: #1f1206; }
html.is-app .pod .avatar { grid-area: a; width: 42px !important; height: 42px !important; font-size: 15px !important; margin: 0 !important; }
html.is-app .pod .pod-name { grid-area: n; font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; align-self: end; }
html.is-app .pod .pod-sub { grid-area: s; margin: 0; font-size: 12px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; align-self: start; }
html.is-app .pod .pod-pts { grid-area: p; font-size: 22px; text-shadow: none; }
html.is-app .pod .pod-crown { display: none; }
html.is-app .pod[data-me="1"] { outline: 2px solid #7c5cff; outline-offset: -2px; }
html.is-app .podium { align-items: stretch; }
html.is-app .pod { width: 100%; }

/* ---------- 14) súhrnné štatistiky po dvoch vedľa seba (ako bento v appke) ---------- */
html.is-app .summary { grid-template-columns: 1fr 1fr !important; gap: 10px !important; }
html.is-app .filters { grid-template-columns: 1fr 1fr; }

/* ---------- 15) výber zápasov do kola ---------- */
html.is-app .builder-foot .btn:not(:disabled) { --_bg: #facc15; --_fg: #1c1605; border-color: transparent; box-shadow: 0 0 24px rgba(250, 204, 21, .3); }
html.is-app .builder-foot .btn { min-height: 52px; }
html.is-app .built-match { border-radius: 20px; background: var(--surface-1); }
html.is-app .om-badge { font: 700 10.5px var(--font-body) !important; letter-spacing: 0 !important; text-transform: none !important;
  color: #9d83ff !important; background: rgba(124, 92, 255, .16) !important; border: 0 !important; border-radius: 8px !important; padding: 3px 8px !important; margin-left: 8px; vertical-align: middle; }

/* ---------- 16) karty sezón: nižší farebný pás (appka má kompaktné karty) ---------- */
html.is-app .season-cover, html.is-app .dc-cover { height: 58px !important; padding: 10px 12px; }
html.is-app .season-cover > .tag:first-child { top: 10px; left: 12px; }
html.is-app .pf-cover { height: 120px; border-radius: 24px; }

/* ---------- 17) odznaky: kompaktná mriežka po dvoch ---------- */
html.is-app .ach-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
html.is-app .ach { padding: 14px; border-radius: 20px; text-align: center; display: flex; flex-direction: column; align-items: center; }
html.is-app .ach.earned::before { display: none; }
html.is-app .ach-ico { width: 52px; height: 52px; border-radius: 18px; font-size: 26px; margin: 0 0 10px; }
html.is-app .ach-name { font-size: 14px; line-height: 1.25; }
html.is-app .ach-desc { font-size: 12px; min-height: 0; margin-bottom: 10px; line-height: 1.4; }
html.is-app .ach-foot { margin-top: auto; width: 100%; flex-direction: column; gap: 6px; }
html.is-app .ach .ac-progress, html.is-app .ach .progress { width: 100%; }
html.is-app .ac-summary { gap: 10px; margin-bottom: 18px; }
html.is-app .rarity { border-radius: 8px; letter-spacing: .04em; }

/* webový prúžok priebehu posúvania appka nemá */
html.is-app .scroll-prog { display: none !important; }

/* =====================================================================
   ČASŤ B — ROZLOŽENIE STRÁNOK AKO NA OBRAZOVKÁCH APPKY
   (nielen farby: hlavičky ako hero, zoznamy ako riadky, štatistiky ako
   dlaždice, zápasy ako karty z obrazovky Tipovať)
   ===================================================================== */

/* ---- spoločné: popisky malým písmom ako v appke (body, presnosť…) ---- */
html.is-app .stat-label, html.is-app .lg-meta .l, html.is-app .sh-meta .l, html.is-app .cd-lbl,
html.is-app .lb-head-row, html.is-app .th-head-row, html.is-app th {
  text-transform: none !important; letter-spacing: 0 !important; font: 600 12px var(--font-body) !important; color: var(--text-3) !important;
}
/* nadpis karty (prvý popisok v karte) = nadpis sekcie appky */
html.is-app .card > .stat-label:first-child,
html.is-app .card > .between:first-child > .stat-label,
html.is-app .card > .between:first-child > div > .stat-label {
  font: 700 16px var(--font-display) !important; color: var(--text-1) !important;
}
/* nadpisy sekcií (h3 nad zoznamom) */
html.is-app main h3, html.is-app .blk-head h2, html.is-app .section-head h2 { font: 700 17px var(--font-display) !important; }

/* ---- hero karta (fialový prechod ako karta uzávierky na Domove) ---- */
html.is-app .aw-hero, html.is-app .round-head > .between {
  position: relative; overflow: hidden; border-radius: 26px; padding: 18px;
  background: linear-gradient(150deg, rgba(124, 92, 255, .34), rgba(124, 92, 255, .08) 55%, #0f1424);
  border: 1px solid rgba(124, 92, 255, .38); box-shadow: 0 18px 40px -18px rgba(124, 92, 255, .55);
}
html.is-app .round-head > .between::before {
  content: ""; position: absolute; right: -40px; top: -40px; width: 150px; height: 150px; border-radius: 50%; background: rgba(255, 255, 255, .06); pointer-events: none;
}

/* =================== KOLO (/rounds/:id) =================== */
html.is-app .round-head { padding-top: 6px !important; padding-bottom: 4px !important; }
html.is-app .round-head > .between { display: flex !important; flex-direction: column !important; align-items: stretch !important; gap: 14px !important; }
html.is-app .round-head h1 { font-size: 24px !important; line-height: 1.15; }
html.is-app .round-head .row.g-3 { flex-direction: column-reverse; align-items: flex-start; gap: 8px !important; margin-bottom: 6px !important; }
html.is-app .round-head p.muted { font-size: 13px; color: #c9c2ef !important; }
/* uzávierka v hero: riadok s malými políčkami */
html.is-app .round-head .between > .card {
  width: 100% !important; background: rgba(5, 7, 13, .35) !important; border: 1px solid rgba(255, 255, 255, .08) !important;
  border-radius: 18px; padding: 10px 12px !important; display: flex; align-items: center; justify-content: space-between; gap: 10px; text-align: left !important;
}
html.is-app .round-head .between > .card .stat-label { margin: 0 !important; color: #d9d2ff !important; font-weight: 700 !important; }
html.is-app .round-head .countdown { gap: 5px; }
html.is-app .round-head .cd-box { min-width: 42px; padding: 5px 6px; border-radius: 11px; background: rgba(5, 7, 13, .55); border-color: rgba(255, 255, 255, .08); }
html.is-app .round-head .cd-num { font-size: 17px; }
html.is-app .round-head .cd-lbl { font-size: 9.5px !important; }
/* akcie správcu = rad čipov, nie štyri tlačidlá pod sebou */
html.is-app .round-head .row.g-2.wrap-gap { flex-wrap: nowrap; overflow-x: auto; gap: 8px !important; margin: 4px -18px 0 !important; padding: 2px 18px; scrollbar-width: none; }
html.is-app .round-head .row.g-2.wrap-gap::-webkit-scrollbar { display: none; }
html.is-app .round-head .row.g-2.wrap-gap > .btn {
  width: auto !important; flex: none; min-height: 36px; padding: 8px 13px; border-radius: 12px; font-size: 13px;
  background: rgba(5, 7, 13, .45); border: 1px solid rgba(255, 255, 255, .12); color: #eef1f9; box-shadow: none;
}
html.is-app .round-head .row.g-2.wrap-gap > #delRoundBtn { color: #ff8aa2 !important; }
html.is-app .round-layout { padding-top: 18px !important; }

/* zápasy ako karty z obrazovky Tipovať */
html.is-app .match-row { border-radius: 24px !important; background: #0f1424; border: 1px solid var(--line); transition: border-color .2s, background .2s; }
html.is-app .match-row.tipped { background: linear-gradient(160deg, rgba(124, 92, 255, .22), #0f1424 55%) !important; border-color: rgba(124, 92, 255, .45) !important; box-shadow: none !important; }
html.is-app .match-row:not(.tipped):not(.locked) { border: 1.5px dashed rgba(245, 165, 36, .55) !important; }
html.is-app .match-row.locked { opacity: .78; }
html.is-app .match-row .match-head .tag-info { display: none; }
html.is-app .match-row .match-meta { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 10px; background: rgba(255, 255, 255, .05); color: var(--text-2) !important; font-weight: 700 !important; }
html.is-app .match-row .team-logo { border-radius: 16px !important; width: 46px !important; height: 46px !important; }
html.is-app .pick-opt { border-radius: 14px; min-width: 52px; background: #05070d; border-color: var(--line-strong); }
html.is-app .pick-opt.sel { background: #7c5cff; border-color: #7c5cff; color: #fff; box-shadow: 0 4px 14px rgba(124, 92, 255, .5); }
/* panel uloženia: kompaktný pruh (počet + tlačidlo vedľa seba) */
html.is-app .savebar { flex-direction: row !important; align-items: center !important; gap: 12px !important; padding: 10px 10px 10px 16px !important; }
html.is-app .savebar > div:first-child, html.is-app .savebar > span:first-child { font-size: 12.5px; line-height: 1.35; flex: 1; min-width: 0; }
html.is-app .savebar .row.g-2 { width: auto !important; flex: none; }
html.is-app .savebar .btn { min-height: 44px; padding: 10px 18px; }

/* =================== LIGA (/leagues/:id) — ako obrazovka Liga =================== */
html.is-app .lg-head { padding-top: 8px !important; padding-bottom: 0 !important; }
html.is-app .lg-banner { display: flex !important; flex-direction: column; align-items: center; text-align: center; gap: 0 !important; }
html.is-app .lg-cover { width: 76px !important; height: 76px !important; border-radius: 26px !important; font-size: 22px !important; align-self: center !important;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .45), inset 0 0 0 1px rgba(255, 255, 255, .18); }
html.is-app .lg-head-text { margin-top: 12px; }
html.is-app .lg-head-text .row { flex-direction: column; gap: 8px !important; align-items: center; }
html.is-app .lg-head-text h1 { font-size: 23px !important; }
html.is-app .lg-desc { margin-top: 6px !important; font-size: 13.5px; }
html.is-app .lg-info { width: 100%; margin-top: 16px !important; background: none !important; border: 0 !important; padding: 0 !important; }
html.is-app .lg-meta { display: grid !important; grid-template-columns: repeat(3, 1fr) !important; gap: 8px !important; }
html.is-app .lg-meta > div { flex-direction: column !important; align-items: center !important; gap: 2px !important; padding: 12px 6px; border-radius: 18px; background: #0f1424; border: 1px solid var(--line); }
html.is-app .lg-meta .n { font-size: 22px !important; }
html.is-app .lg-meta > div:last-child { grid-column: 1 / -1; flex-direction: row !important; justify-content: space-between !important; padding: 10px 12px 10px 16px !important; margin: 0 !important; border-top: 1px solid var(--line) !important; }
html.is-app .lg-actions { width: 100%; margin-top: 10px; flex-wrap: nowrap !important; }
html.is-app .lg-actions > * { flex: 1; }
html.is-app .lg-actions .btn-icon { flex: none; width: 46px; height: 46px; }
html.is-app .lg-layout { padding-top: 20px !important; }

/* zoznam kôl = jedna karta s riadkami (ako na obrazovke Liga) */
html.is-app .lg-layout main .stack.g-3 { gap: 0 !important; background: #0f1424; border: 1px solid var(--line); border-radius: 22px; padding: 2px 14px; }
html.is-app .round-item { display: grid !important; grid-template-columns: 40px minmax(0, 1fr) auto !important; column-gap: 12px !important; row-gap: 0 !important;
  padding: 12px 0 !important; background: none !important; border: 0 !important; border-bottom: 1px solid var(--line) !important; border-radius: 0 !important; box-shadow: none !important; opacity: 1 !important; }
html.is-app .round-item:last-child { border-bottom: 0 !important; }
html.is-app .round-item > div { grid-column: 2 !important; min-width: 0; }
html.is-app .round-item .round-n { width: 40px; height: 40px; border-radius: 14px; font-size: 12px; grid-row: span 2; }
html.is-app .round-item .round-n.active { background: rgba(31, 212, 151, .14); border-color: transparent; color: #1fd497; }
html.is-app .round-item b.hi { font-size: 14.5px; }
html.is-app .round-item .tag { font-size: 10.5px; padding: 3px 7px; }
html.is-app .round-item .muted { font-size: 12px !important; }
html.is-app .round-item .rnd-pts { grid-column: 2 !important; font-size: 12px !important; }
html.is-app .round-item .rnd-pts:empty { display: none; }
html.is-app .round-item .rnd-btn { grid-column: 3 !important; grid-row: 1 / span 2; align-self: center; justify-self: end !important; min-height: 34px; padding: 7px 12px; border-radius: 11px; font-size: 12.5px; }
html.is-app .lg-layout main > .between h3 { font-size: 17px !important; }

/* =================== SEZÓNA (/seasons/:id) =================== */
html.is-app .season-hero { border: 0; margin: 4px 18px 0; border-radius: 26px; }
html.is-app .season-hero-bg { opacity: .8 !important; }
html.is-app .season-hero-bg::after { background: linear-gradient(180deg, rgba(8, 11, 20, .15), rgba(8, 11, 20, .85)); }
html.is-app .season-hero-inner { padding: 20px 18px 18px !important; }
html.is-app .season-hero h1 { font-size: 25px !important; }
html.is-app .sh-meta { display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 8px !important; }
html.is-app .sh-meta > div { padding: 10px; border-radius: 16px; background: rgba(5, 7, 13, .45); border: 1px solid rgba(255, 255, 255, .08); text-align: center; }
html.is-app .sh-meta .n { font-size: 19px !important; }
html.is-app .sec-layout { padding-top: 18px !important; }
/* ligy v sezóne = riadky s erbom */
html.is-app .league-card { display: grid !important; grid-template-columns: 46px minmax(0, 1fr) auto !important; align-items: center !important; gap: 12px !important; padding: 12px 14px !important; border-radius: 20px !important; overflow: visible !important; }
html.is-app .league-cover { width: 46px !important; height: 46px !important; border-radius: 16px !important; padding: 0 !important; justify-content: center !important; font-size: 13px !important; overflow: hidden; }
html.is-app .league-cover .tag { display: none; }
html.is-app .league-card > div { padding: 0 !important; min-width: 0; }
html.is-app .league-card h4, html.is-app .league-card b { font-size: 15px; }
html.is-app .league-card > .btn { margin: 0 !important; min-height: 34px; padding: 7px 12px; border-radius: 11px; font-size: 12.5px; }
html.is-app .lc-init { display: inline !important; }
html.is-app .blk { margin-bottom: 22px; }

/* ---- ZJEDNODUŠENIE: v appke len to podstatné ----
   .aw-extra = karta, ktorej obsah je na stránke inde (duplicita) */
html.is-app .aw-extra { display: none !important; }
/* popisný odsek pod nadpisom stránky (vysvetľovanie) appka nemá */
html.is-app body:not(.auth-body) h1 + p.muted:not(.aw-keep):not(.ac-desc),
html.is-app body:not(.auth-body) h1 + p.lg-updated { display: none; }
/* podnadpisy kariet vo formulároch (vysvetľujúce vety) */
html.is-app .form-card > p.sub, html.is-app .card > .sub:not(.aw-keep) { display: none; }
/* hlavička tabuľky rebríčka (# Hráč Presnosť Body) appka nemá */
html.is-app .lb-head-row { display: none !important; }
/* novinky sezóny: len posledné 3 */
html.is-app .news-item:nth-child(n+4) { display: none; }
html.is-app .news-item:nth-child(3) { border-bottom: 0; }

/* =================== SEZÓNY / OBJAVIŤ: karty → riadky s erbom =================== */
html.is-app .grid-cards, html.is-app .results-grid { gap: 8px !important; }
html.is-app a.card:has(> .season-cover), html.is-app a.card:has(> .dc-cover) {
  display: grid !important; grid-template-columns: 50px minmax(0, 1fr); align-items: center; column-gap: 12px; padding: 11px 14px; border-radius: 20px; overflow: visible !important;
}
html.is-app a.card > .season-cover, html.is-app a.card > .dc-cover {
  width: 50px !important; height: 50px !important; padding: 0 !important; border-radius: 16px; overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14);
}
html.is-app a.card > .season-cover > *, html.is-app a.card > .dc-cover > * { display: none !important; }
html.is-app a.card > .season-cover + .card-pad, html.is-app a.card > .dc-body { padding: 0 !important; min-width: 0; }
html.is-app a.card > .season-cover + .card-pad h4, html.is-app a.card > .dc-body h4 {
  font: 700 15px var(--font-display) !important; margin: 0 0 3px !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.is-app a.card > .season-cover + .card-pad p, html.is-app a.card > .dc-body > p { display: none; }
html.is-app .season-meta, html.is-app .dc-meta { font-size: 12px !important; gap: 10px !important; margin: 0 !important; }
html.is-app a.card > .dc-body > .between { display: none; }
html.is-app a.card > .season-cover:not(.has-img)::before, html.is-app a.card > .dc-cover:not(.has-img)::before {
  content: attr(data-init); display: grid; place-items: center; width: 100%; height: 100%; font: 700 14px var(--font-display); color: #fff; }
html.is-app a.card > .season-cover.has-img::after, html.is-app a.card > .dc-cover.has-img::after { display: none; }

/* vysvetľujúca veta pod nadpisom karty (ak za ňou nasleduje obsah) */
html.is-app .card > :is(h2, h3, h4) + p.muted:not(:last-child):not(.aw-keep),
html.is-app .card > .stat-label + p.muted:not(:last-child):not(.aw-keep),
html.is-app .sc-head p { display: none; }
/* odznaky: len ikona, názov a progres */
html.is-app .ach-desc { display: none; }
html.is-app .ac-summary { grid-template-columns: 1fr !important; }
html.is-app .cmp-label, html.is-app .vs-lead { text-transform: none !important; letter-spacing: 0 !important; font-size: 12px !important; }

/* =================== SPRÁVA (členovia, formuláre) =================== */
html.is-app .mem-sub, html.is-app #modeInfo { display: none !important; }
html.is-app .mem-actions button[aria-disabled="true"] { display: none; }
html.is-app .mem-actions .btn-sm { min-height: 32px; padding: 6px 11px; border-radius: 10px; font-size: 12.5px; }
html.is-app .mem-actions form { gap: 6px !important; }

/* =================== VYHODNOTENIE =================== */
html.is-app .info-banner { display: none; }
html.is-app [data-save]:not(.btn-block) , html.is-app [data-cancel] { min-height: 40px !important; padding: 9px 14px !important; font-size: 14px !important; }
html.is-app [data-save] + [data-cancel] { --_fg: var(--text-3); }
html.is-app .ev-actions { display: flex !important; flex-direction: row !important; flex-wrap: wrap; gap: 8px !important; align-items: center; }
html.is-app .ev-actions > .btn { flex: 1; width: auto !important; }
html.is-app .ev-actions .ev-meta { flex-basis: 100%; text-align: center !important; font-size: 11.5px; }

/* blog: nižšie obrázky */
html.is-app .featured-img { min-height: 150px !important; }
html.is-app .post-img { height: 110px !important; font-size: 36px; }
/* admin sezóny: nižší pás */
html.is-app .se-cover { height: 40px !important; }
/* rebríček sezóny: prvé tri miesta sú hore (stupne víťazov) — v zozname sa neopakujú */
html.is-app body:has(.podium .pod) #lbTable > .lb-row:nth-child(-n+3) { display: none; }

/* nastavenia: sekcie ako čipy (rovnako ako všade inde v appke) */
html.is-app .set-nav { position: static !important; flex-direction: row !important; gap: 8px !important; overflow-x: auto; scrollbar-width: none; margin: 0 -18px 14px; padding: 0 18px; }
html.is-app .set-nav::-webkit-scrollbar { display: none; }
html.is-app .set-nav a { flex: none; height: 34px; padding: 0 14px !important; border-radius: 12px !important; background: #0f1424; border: 1px solid rgba(150, 165, 215, .1); color: #b8c0d6; font: 600 13px var(--font-body) !important; white-space: nowrap; }
html.is-app .set-nav a.active { background: #eef1f9 !important; border-color: #eef1f9; color: #0b0f1c !important; }
html.is-app .set-nav a.danger { color: #ff8aa2; }
/* ikony v tlačidlách sa nesmú zmrštiť (napr. akcie v správe blogu) */
html.is-app .btn svg { flex: none; }
html.is-app .btn-ico { padding: 0 !important; min-height: 0 !important; }
