/* Světový pohár IBF – česká reprezentace. Vizuálně navazuje na czechteamtrials.cz
   Navy foundation, light surfaces, restrained blue accent.
   --focus / --focus-tint are overridden at runtime from data/config.json (focus team). */

:root {
  --navy-950: #0b1830;
  --navy-900: #0f1f3a;
  --navy-800: #122443;
  --navy-700: #1c3461;
  --navy-600: #2a4679;
  --ink: #18263d;
  --ink-2: #3a4a63;
  --muted: #5d6c83;
  --line: #e0e6ee;
  --line-2: #cfd8e4;
  --bg: #f5f7fa;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --blue: #2856c6;
  --blue-600: #1f47a8;
  --blue-50: #edf2fc;
  --win: #16794a;
  --win-50: #e8f5ee;
  --loss: #b3261e;
  --gold: #c9a227;
  --silver: #9aa4b1;
  --bronze: #b07a45;
  --focus: #c98a00;
  --focus-tint: #fff6de;
  --radius: 8px;
  --radius-sm: 6px;
  --shadow: 0 1px 2px rgba(16, 32, 64, .05), 0 1px 1px rgba(16, 32, 64, .03);
  --shadow-2: 0 4px 16px rgba(16, 32, 64, .08);
  --font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1200px;
  --gutter: 16px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  font-feature-settings: "tnum" 0;
  overflow-x: hidden;
}
/* jemný vzor kuželek a koulí stojí na místě a karty přes něj plují
   (pevná vrstva místo background-attachment: fixed, které iOS Safari ignoruje) */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: url("../img/bowling-bg.svg?v=2") 0 0 / 220px 220px repeat;
}
img, svg { max-width: 100%; }
h1, h2, h3, h4, h5 { margin: 0; line-height: 1.25; color: var(--ink); letter-spacing: -.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
a { color: var(--blue); }
abbr[title] { text-decoration: none; }
button { font: inherit; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 900px) { :root { --gutter: 28px; } }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: #fff; color: var(--navy-800); padding: 10px 14px; border-radius: var(--radius-sm);
  font-weight: 600; box-shadow: var(--shadow-2);
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 3px solid #5b8def; outline-offset: 2px; border-radius: 4px; }
h1:focus, h2:focus, main:focus { outline: none; }

.muted { color: var(--muted); }
.small { font-size: .875rem; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.label { font-weight: 600; color: var(--ink-2); }

/* ------------------------------------------------ header & nav */
.site-header { background: var(--navy-800); color: #d9e1ef; position: sticky; top: 0; z-index: 50; box-shadow: 0 1px 0 rgba(0, 0, 0, .2); }
.site-header__inner { display: flex; align-items: center; gap: 16px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; min-width: 0; }
.brand__mark { width: 46px; height: 46px; flex: none; object-fit: contain; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand__text strong { font-size: .9375rem; letter-spacing: .01em; }
.brand__text span { font-size: .75rem; color: #9fb0cb; }

.site-nav { margin-left: auto; }
.site-nav ul { list-style: none; display: flex; gap: 2px; }
.site-nav a {
  display: block; padding: 9px 12px; border-radius: var(--radius-sm); color: #d9e1ef; text-decoration: none;
  font-size: .9375rem; font-weight: 500; white-space: nowrap;
}
.site-nav a:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.site-nav a[aria-current="page"] { background: var(--navy-700); color: #fff; box-shadow: inset 0 -2px 0 #7fa3ff; }

.nav-toggle {
  display: none; margin-left: auto; align-items: center; gap: 8px; background: transparent; color: #fff;
  border: 1px solid rgba(255, 255, 255, .25); border-radius: var(--radius-sm); padding: 8px 12px; min-height: 44px; cursor: pointer;
}
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
  display: block; width: 16px; height: 2px; background: currentColor; border-radius: 1px; position: relative; content: "";
}
.nav-toggle__bars::before { position: absolute; top: -5px; }
.nav-toggle__bars::after { position: absolute; top: 5px; }

@media (max-width: 859px) {
  .nav-toggle { display: inline-flex; }
  .site-nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--navy-800); border-top: 1px solid rgba(255, 255, 255, .08); display: none; box-shadow: var(--shadow-2); }
  .nav-open .site-nav { display: block; }
  .site-nav ul { flex-direction: column; padding: 8px var(--gutter) 14px; gap: 2px; }
  .site-nav a { padding: 12px; font-size: 1rem; }
}

/* ------------------------------------------------ layout primitives */
main { display: block; min-height: 60vh; }
.view-body { padding-top: 24px; padding-bottom: 56px; }
.stack { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.grid { display: grid; gap: 16px; margin-bottom: 16px; }
.grid > * { min-width: 0; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.grid--groups { grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
.card__meta { flex-basis: 100%; }
.grid--groups .card__head { align-items: center; }
.grid--groups .card__head h4 { line-height: 26px; }
.tbl--groups th.num, .tbl--groups td.num { width: 1%; padding-left: 8px; padding-right: 8px; }
.team-cell__nm { font-weight: 600; }
.team-cell__seed { display: block; font-size: .75rem; color: var(--muted); line-height: 1.3; }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.grid--main { grid-template-columns: minmax(0, 1fr); }
.grid--cards { grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); align-items: start; }
@media (min-width: 960px) { .grid--main { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: start; } }

.page-head { margin-bottom: 20px; position: relative; }
.page-head h1 { font-size: clamp(1.625rem, 1.2rem + 1.6vw, 2.0625rem); font-weight: 700; }
.page-head .stripe { margin-bottom: 10px; }
.lead { color: var(--ink-2); margin-top: 6px; max-width: 72ch; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 28px 0 12px; flex-wrap: wrap; }
.sec-head h2 { font-size: 1.25rem; }
.more-link { font-size: .875rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.more-link:hover { text-decoration: underline; }
.note { color: var(--muted); font-size: .875rem; margin: 8px 0 16px; max-width: 80ch; }
.notice { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: var(--radius); padding: 14px 16px; margin: 16px 0; }
.notice--hist { border-left-color: #f2c14e; }
.notice--error { border-left-color: var(--loss); }
.app-loading { padding-top: 40px; padding-bottom: 40px; color: var(--muted); }

/* ------------------------------------------------ cards */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); min-width: 0; }
.card__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 14px 16px 0; flex-wrap: wrap; }
.card__title, .card__head h2, .card__head h3, .card__head h4 { font-size: 1rem; font-weight: 700; }
.card__body { padding: 12px 16px 16px; }
a.card { color: inherit; text-decoration: none; display: block; transition: border-color .15s; }
a.card:hover { border-color: var(--line-2); box-shadow: var(--shadow-2); }

.block { margin-top: 28px; }
.block__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.block__head h3 { font-size: 1.0625rem; }

.details-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 16px; }
.details-card > summary { cursor: pointer; padding: 14px 0; list-style: none; display: flex; align-items: center; gap: 10px; }
.details-card > summary::-webkit-details-marker { display: none; }
.details-card > summary::before { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(-45deg); transition: transform .15s; flex: none; }
.details-card[open] > summary::before { transform: rotate(45deg); }
.details-card > summary h3, .details-card > summary h4 { font-size: 1rem; display: inline; }
.details-card[open] { padding-bottom: 16px; }

/* ------------------------------------------------ focus-team system */
.stripe { display: inline-flex; width: 36px; height: 6px; border-radius: 2px; overflow: hidden; vertical-align: middle; flex: none; }
.stripe i { flex: 1; }
/* jemný obrys, aby bílý pruh nesplýval se světlým podkladem (v tmavém hero není potřeba) */
.stripe { position: relative; }
.stripe::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(16, 32, 64, .2); pointer-events: none; }
.hero .stripe::after { content: none; }
.flag { filter: drop-shadow(0 0 .5px rgba(16, 32, 64, .55)); }
.chip.is-on .flag { filter: none; }

.fed {
  display: inline-flex; align-items: center; gap: 4px; font-size: .6875rem; font-weight: 700; letter-spacing: .04em;
  color: var(--ink-2); background: var(--surface-2); border: 1px solid var(--line); border-radius: 4px; padding: 1px 5px;
  line-height: 1.4; vertical-align: middle; white-space: nowrap;
}
.fed--focus { background: var(--focus-tint); border-color: var(--focus); color: var(--ink); }
.fed__flag { font-size: .8125rem; line-height: 1; }
.fed--bye { color: var(--muted); font-weight: 500; }
/* držení koule (BowlChamp): R / L jednoruč, 2R / 2L obouruč – vždy hned za zemí */
.hand {
  display: inline-block; font-size: .625rem; font-weight: 800; letter-spacing: .02em; line-height: 1.4; padding: 1px 4px; border-radius: 4px;
  color: var(--muted); border: 1px solid var(--line-2); background: transparent; text-decoration: none; vertical-align: middle; white-space: nowrap;
  cursor: help; font-variant-numeric: tabular-nums;
}
.hand--2 { color: var(--ink-2); border-style: dashed; }
tr.is-bye > td { color: var(--muted); }

.focus-badge {
  display: inline-flex; align-items: center; gap: 4px; font-size: .75rem; font-weight: 700; letter-spacing: .02em;
  background: var(--focus-tint); color: var(--ink); border: 1px solid var(--focus); border-radius: 4px; padding: 2px 7px; white-space: nowrap;
}

.is-focus { position: relative; }
tr.is-focus > td { background: var(--focus-tint); }
tr.is-focus > td:first-child { box-shadow: inset 3px 0 0 var(--focus); }
li.is-focus { background: var(--focus-tint); box-shadow: inset 3px 0 0 var(--focus); }

.focus-card { border-top: 3px solid var(--focus); }
.focus-card__head { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px 0; }
.focus-card__head h2, .focus-card__head h3 { font-size: 1rem; font-weight: 800; letter-spacing: .02em; }

/* ------------------------------------------------ hero */
.hero { background: linear-gradient(180deg, var(--navy-800) 0%, var(--navy-900) 100%); color: #e6ecf6; }
.hero__inner { display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: flex-end; justify-content: space-between; padding-top: 26px; padding-bottom: 26px; }
.hero__main { min-width: 0; flex: 1 1 420px; }
.hero h1 { color: #fff; font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.75rem); font-weight: 800; letter-spacing: -.015em; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 8px; font-size: 1.0625rem; font-weight: 600; color: #fff; }
.hero__venue { color: #a9b9d3; font-size: .875rem; margin-top: 4px; }
.hero__follow {
  flex: 0 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 4px; background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--radius); padding: 14px 16px;
}
.hero__follow .stripe { width: 48px; margin-bottom: 4px; }
.hero__follow-label { font-size: .6875rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #9fb0cb; }
.hero__follow-team { font-size: 1.5rem; font-weight: 800; color: #fff; letter-spacing: .02em; }
.hero__follow-team > span { margin-right: .25em; }
.hero__state { font-size: .8125rem; color: #cbd5e6; }

/* ------------------------------------------------ quick access */
.quick { margin-bottom: 16px; }
.quick ul { list-style: none; display: grid; gap: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .quick ul { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .quick ul { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.quick__item {
  display: flex; flex-direction: column; gap: 2px; position: relative; height: 100%; min-height: 64px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 11px 32px 11px 14px;
  color: var(--ink); text-decoration: none; box-shadow: var(--shadow);
}
.quick__item:hover { border-color: var(--blue); }
.quick__item .i-ext { position: absolute; right: 12px; top: 13px; color: var(--muted); }
.quick__item--muted { background: var(--surface-2); }
.quick__title { font-weight: 700; font-size: .9375rem; }
.quick__meta { font-size: .8125rem; color: var(--muted); }

.i-ext { width: 12px; height: 12px; flex: none; margin-left: 4px; vertical-align: -1px; }

/* ------------------------------------------------ states */
.state { display: inline-block; font-size: .6875rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 2px 6px; border-radius: 4px; white-space: nowrap; }
.state--archived { background: #eef1f5; color: #4b5a70; border: 1px solid var(--line-2); }
.state--off { background: #f6eaea; color: #8c2a24; border: 1px solid #ecd0cd; }
.state--soon { background: var(--blue-50); color: var(--blue-600); border: 1px solid #cddbf6; }
.state--live { background: #e03a2f; color: #fff; animation: live-glow 1.4s cubic-bezier(.37, 0, .63, 1) infinite alternate; }
.state--live::before {
  content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #fff; margin-right: 5px; vertical-align: 1px;
  animation: live-dot 1.4s cubic-bezier(.37, 0, .63, 1) infinite alternate;
}
/* Plná červená → zářící a zpět; křivka easeInOutSine + alternate = sinusový průběh (stejně jako na czechteamtrials.cz) */
@keyframes live-glow {
  from { background: #e03a2f; box-shadow: 0 0 0 0 rgba(224, 58, 47, 0); }
  to { background: #f0493d; box-shadow: 0 0 10px 2px rgba(240, 73, 61, .6); }
}
@keyframes live-dot { from { opacity: .35; } to { opacity: 1; } }

/* ------------------------------------------------ status card */
.status-card .card__body { padding-top: 16px; }
.status-card__q { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.status-card__a { font-size: 1.125rem; font-weight: 700; margin: 2px 0 10px; }
.status-row { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--line); margin-top: 8px; }
.status-row--now { background: var(--focus-tint); border-color: var(--focus); }
.status-row__rel { font-weight: 600; color: var(--ink-2); text-transform: none; letter-spacing: 0; }
.status-row__label { font-size: .75rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.status-row__note { font-size: .875rem; color: var(--ink-2); }
.sess-line strong { font-weight: 700; }
.status-card__tz { font-size: .8125rem; color: var(--muted); margin-top: 10px; }

/* ------------------------------------------------ summary */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 10px; margin: 0 0 12px; }
.kpis > div { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; min-width: 0; }
.kpis dt { font-size: .75rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.kpis dd { margin: 2px 0 0; font-weight: 700; font-size: 1rem; }
.kpis small { font-weight: 500; color: var(--muted); font-size: .8125rem; }
.medal-line { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

.sum-list { list-style: none; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.sum-list li + li { border-top: 1px solid var(--line); }
.sum-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 10px 12px; color: inherit; text-decoration: none; }
.sum-row:hover { background: var(--surface-2); }
.sum-row__event { font-weight: 700; }
.sum-row__finish { text-align: right; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; justify-content: flex-end; flex-wrap: wrap; }
.sum-row__detail { grid-column: 1 / -1; font-size: .875rem; color: var(--ink-2); }

/* medaile: kotouč na stuze v barvách sledované země, bez čísla */
.medal { display: inline-block; width: 18px; height: 26px; flex: none; vertical-align: middle; line-height: 0; }
.medal svg { display: block; width: 100%; height: 100%; overflow: visible; }
.medal__rib1 { fill: var(--stripe-3, #11457e); }
.medal__rib2 { fill: var(--stripe-2, #d7141a); }
.medal__disc { fill: var(--m-base); stroke: var(--m-lo); stroke-width: 1; }
.medal__ring { fill: none; stroke: rgba(255, 255, 255, .55); stroke-width: 1; }
.medal--gold { --m-base: #d9b13b; --m-lo: #9c7a12; }
.medal--silver { --m-base: #bfc7d1; --m-lo: #7f8a98; }
.medal--bronze { --m-base: #c4834a; --m-lo: #86522a; }
.medal-run { display: inline-flex; flex-wrap: wrap; gap: 3px; }
.card__body > .kpis:last-child { margin-bottom: 0; }

/* highlights */
.hl-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.hl { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--line); font-size: .9375rem; }
.hl--medal { background: var(--focus-tint); border-color: var(--focus); }
.hl .medal { margin-top: 1px; }
.hl__pos { flex: none; min-width: 40px; text-align: center; font-weight: 800; font-size: .8125rem; background: #fff; border: 1px solid var(--line-2); border-radius: 4px; padding: 1px 4px; font-variant-numeric: tabular-nums; }

/* medalists overview */
.mini-event { padding: 14px 16px; display: flex !important; flex-direction: column; gap: 10px; }
.mini-event h3 { font-size: 1rem; }
.mini-event__focus { margin-top: auto; font-size: .875rem; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 10px; }
.podium-list { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.podium-list li { display: flex; align-items: center; gap: 8px; padding: 4px 6px; border-radius: 4px; min-width: 0; }
.pl-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; font-size: .9375rem; }
.podium-list--lg li { padding: 8px 10px; border: 1px solid var(--line); background: var(--surface-2); }
.podium-list--lg li.is-focus { background: var(--focus-tint); border-color: var(--focus); }

/* ------------------------------------------------ matches */
.match { position: relative; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); overflow: hidden; }
.match + .match { margin-top: 8px; }
/* druhý pixel rámečku kreslí ::after nad pozadím řádků – vnitřní stín karty by zvýrazněný řádek překryl */
.match.has-focus { border-color: var(--focus); }
.match.has-focus::after { content: ""; position: absolute; inset: 0; border-radius: calc(var(--radius-sm) - 1px); box-shadow: inset 0 0 0 1px var(--focus); pointer-events: none; }
.m-label { font-size: .75rem; font-weight: 700; color: var(--muted); padding: 6px 10px 0; text-transform: uppercase; letter-spacing: .04em; }
.m-side { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "name fed score" "games games games"; align-items: center; gap: 2px 8px; padding: 7px 10px; }
.m-side + .m-side { border-top: 1px solid var(--line); }
.m-name { grid-area: name; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .9375rem; color: var(--ink-2); }
.m-side .fed, .m-side .m-tags { grid-area: fed; }
.m-tags { display: inline-flex; align-items: center; gap: 4px; }
.m-score { grid-area: score; font-weight: 800; min-width: 22px; text-align: center; font-variant-numeric: tabular-nums; border-radius: 4px; padding: 0 4px; color: var(--muted); }
.m-games { grid-area: games; display: flex; flex-wrap: wrap; gap: 3px; }
.g { font-size: .75rem; font-variant-numeric: tabular-nums; color: var(--muted); padding: 0 4px; border-radius: 3px; background: var(--surface-2); border: 1px solid transparent; }
.g--w { color: var(--ink); font-weight: 700; border-color: var(--line-2); background: #fff; }
.g--ro { font-style: italic; }
.m-side.is-win .m-name { color: var(--ink); font-weight: 700; }
.m-side.is-win .m-score { background: var(--navy-800); color: #fff; }
.m-side.is-focus { background: var(--focus-tint); }
.m-note { font-size: .75rem; color: var(--muted); padding: 4px 10px 6px; border-top: 1px dashed var(--line); }

/* bracket: columns on wide screens (locally scrollable), stacked rounds on phones */
.bracket-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); }
.bracket { display: grid; gap: 14px; grid-template-columns: repeat(var(--rounds), minmax(200px, 1fr)); min-width: min-content; padding-bottom: 6px; }
.round { min-width: 0; display: flex; flex-direction: column; }
.round__title { font-size: .8125rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); padding: 0 2px 8px; display: flex; flex-direction: column; gap: 1px; }
.round__when { font-weight: 500; font-size: .75rem; color: var(--muted); letter-spacing: 0; text-transform: none; }
.round__matches { display: flex; flex-direction: column; justify-content: space-around; flex: 1; gap: 8px; }
.round__matches .match + .match { margin-top: 0; }
@media (max-width: 719px) {
  .bracket-scroll { overflow: visible; }
  /* phones: latest round first; match cards are not focusable, so reading order stays sensible */
  .bracket { display: flex; flex-direction: column-reverse; min-width: 0; gap: 22px; }
}

/* pavouk: přepínač kol (výchozí) a tlačítko „Celý pavouk“ se stromem z BowlChampu – zrcadlově s finále uprostřed;
   na široké obrazovce přes celou šířku okna, na menších posuvný do stran */
.ko-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.ko-when { margin: -2px 0 10px; }
.ko-wave { font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 14px 0 8px; }
.ko-wave:first-of-type { margin-top: 4px; }
.ko-grid { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); align-items: start; }
.ko-grid .match + .match { margin-top: 0; }
.match.is-tbd { background: var(--surface-2); border-style: dashed; }
.match.is-tbd .m-name { font-size: .875rem; }
.bt-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 6px; }
.bt { --g: 18px; display: grid; column-gap: var(--g); width: 1440px; }
@media (min-width: 1280px) {
  .bt-scroll { overflow: visible; }
  .bt { position: relative; left: 50%; transform: translateX(-50%); width: min(1640px, calc(100vw - 2 * var(--gutter) - 12px)); }
}
.bt-col { display: flex; flex-direction: column; min-width: 0; }
.bt-head { font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); text-align: center;
  padding-bottom: 6px; border-bottom: 1px solid var(--line-2); margin-bottom: 4px; display: flex; flex-direction: column; }
.bt-head span { font-weight: 600; font-size: .75rem; letter-spacing: 0; color: var(--muted); }
.bt-slots { flex: 1; display: flex; flex-direction: column; }
.bt-slot { flex: 1; display: flex; align-items: center; position: relative; min-height: 62px; padding: 15px 0 4px; }
.bt-box { position: relative; width: 100%; background: var(--surface); border: 1px solid var(--line-2); border-radius: 6px; }
.bt-box.has-focus { border-color: var(--focus); box-shadow: 0 0 0 1px var(--focus); }
.bt-box.is-live { border-style: dashed; border-color: var(--blue); }
.bt-lbl { position: absolute; left: 2px; bottom: 100%; font-size: .625rem; font-weight: 700; color: var(--muted); line-height: 1.5; white-space: nowrap; }
.bt-col--r .bt-lbl { left: auto; right: 2px; }
.bt-side { display: flex; align-items: center; gap: 4px; height: 22px; padding: 0 0 0 7px; font-size: .75rem; color: var(--ink-2); overflow: hidden; }
.bt-side + .bt-side { border-top: 1px solid var(--line); }
.bt-side:first-child { border-radius: 5px 5px 0 0; }
.bt-side:last-child { border-radius: 0 0 5px 5px; }
.bt-nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-right: 2px; }
.bt-sc:empty { min-width: 4px; }
.bt-side .fed { font-size: .5625rem; padding: 0 3px; gap: 2px; }
.bt-side .fed__flag { display: none; }
.bt-side .hand { font-size: .5625rem; padding: 0 2px; }
.bt-sc { flex: none; align-self: stretch; display: flex; align-items: center; justify-content: center; min-width: 20px; font-weight: 800;
  font-variant-numeric: tabular-nums; color: var(--muted); }
.bt-side.is-win { color: var(--ink); font-weight: 700; }
.bt-side.is-win .bt-sc { background: var(--navy-800); color: #fff; }
.bt-side.is-loss .bt-nm { color: var(--muted); }
.bt-side.is-focus { background: var(--focus-tint); }
.bt-side.is-tbd .bt-nm { color: var(--muted); font-style: italic; font-size: .6875rem; }
/* spojnice: z každého zápasu krátká čára do půlky mezery (::after slotu), v dalším kole svislice mezi středy obou
   předchůdců (::before slotu – střed boxu je o 5,5 px pod středem slotu kvůli místu na dráhy) a čára do zápasu (::before boxu) */
.bt-col--l .bt-slot::after, .bt-col--r .bt-slot::after { content: ""; position: absolute; top: calc(50% + 5.5px); width: calc(var(--g) / 2); border-top: 1px solid var(--line-2); }
.bt-col--l .bt-slot::after { right: calc(var(--g) / -2); }
.bt-col--r .bt-slot::after { left: calc(var(--g) / -2); }
.bt-col--l:not(.bt-col--first) .bt-slot::before, .bt-col--r:not(.bt-col--first) .bt-slot::before {
  content: ""; position: absolute; top: calc(25% + 5.5px); bottom: calc(25% - 5.5px); }
.bt-col--l:not(.bt-col--first) .bt-slot::before { left: calc(var(--g) / -2); border-left: 1px solid var(--line-2); }
.bt-col--r:not(.bt-col--first) .bt-slot::before { right: calc(var(--g) / -2); border-right: 1px solid var(--line-2); }
.bt-col--l:not(.bt-col--first) .bt-box::before, .bt-col--f .bt-box::before,
.bt-col--r:not(.bt-col--first) .bt-box::after, .bt-col--f .bt-box::after { content: ""; position: absolute; top: 50%; width: calc(var(--g) / 2); border-top: 1px solid var(--line-2); }
.bt-col--l .bt-box::before, .bt-col--f .bt-box::before { right: calc(100% + 1px); }
.bt-col--r .bt-box::after, .bt-col--f .bt-box::after { left: calc(100% + 1px); }
.bt-col--f .bt-box { border-width: 2px; }

/* knockout path (player cards) */
.path { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.path li { padding: 7px 10px 8px; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--line); }
.path li.is-win { border-left: 3px solid var(--win); }
.path li.is-loss { border-left: 3px solid var(--line-2); }
.path__top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.path__round { font-size: .6875rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.path__score { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; display: inline-flex; align-items: center; }
.path__res { font-size: .9375rem; margin-top: 2px; }
.path__games { font-size: .8125rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.nw, .tbl--rr td:nth-child(2) { white-space: nowrap; }

.cpath { list-style: none; display: flex; flex-direction: column; gap: 4px; margin-top: 4px; }
.cpath li { display: flex; align-items: baseline; gap: 6px; font-size: .875rem; padding: 3px 0 3px 10px; border-left: 3px solid var(--line-2); }
.cpath li.is-win { border-left-color: var(--win); }
.cpath__r { flex: none; width: 108px; white-space: nowrap; font-size: .6875rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.cpath__o { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); }
.cpath strong { font-variant-numeric: tabular-nums; }

/* ------------------------------------------------ tables */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tbl { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.tbl th { text-align: left; font-size: .75rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.tbl th.num { text-align: right; }
.tbl td { padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl tr.cut td { border-bottom: 2px dashed var(--line-2); }
.tbl tr.gap td { text-align: center; color: var(--muted); padding: 2px; }
.tbl--class .pos { width: 1%; }
.tbl--class .pos .medal { margin-right: 6px; vertical-align: middle; }
.name-cell .nm { font-weight: 600; }
.tbl--rr tr.is-win td:first-child { box-shadow: inset 3px 0 0 var(--win); }
.wl { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 4px; font-size: .6875rem; font-weight: 800; margin-right: 4px; }
.wl--w { background: var(--win-50); color: var(--win); }
.wl--l { background: #f3f4f6; color: var(--muted); }
.card .table-scroll { margin: 8px -16px -16px; }
.card .table-scroll .tbl td:first-child, .card .table-scroll .tbl th:first-child { padding-left: 16px; }
.card .table-scroll .tbl td:last-child, .card .table-scroll .tbl th:last-child { padding-right: 16px; }
.block > .table-scroll { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
@media (max-width: 719px) { .hide-sm { display: none; } }
@media (max-width: 400px) { .hide-xs { display: none; } .tbl td, .tbl th { padding: 8px 6px; } }

/* ------------------------------------------------ chips, switch, subnav */
.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 12px; border-radius: var(--radius-sm);
  border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font-size: .875rem; font-weight: 600; cursor: pointer;
}
.chip:hover { border-color: var(--blue); }
.chip.is-on { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }
.filter { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; margin-bottom: 6px; }
.link { color: var(--blue); font-weight: 600; text-decoration: none; }
.link:hover { text-decoration: underline; }

.switch { display: inline-flex; align-items: center; gap: 8px; font-size: .875rem; font-weight: 600; cursor: pointer; min-height: 36px; }
.switch input { width: 18px; height: 18px; accent-color: var(--navy-800); margin: 0; }

.subnav { margin-bottom: 20px; border-bottom: 1px solid var(--line-2); overflow-x: auto; -webkit-overflow-scrolling: touch; }
.subnav ul { list-style: none; display: flex; gap: 2px; min-width: max-content; }
.subnav a {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; color: var(--ink-2); text-decoration: none; font-weight: 600;
  font-size: .9375rem; border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap;
}
.subnav a:hover { color: var(--ink); }
.subnav a[aria-current="page"] { color: var(--navy-800); border-bottom-color: var(--navy-800); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--focus); display: inline-block; }

.event-head { margin-bottom: 16px; }
.event-head h2 { font-size: 1.375rem; margin-bottom: 4px; }
.event-head p { font-size: .9375rem; }

.focus-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.focus-list__top { display: flex; justify-content: space-between; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 6px; }
.focus-list__top > span { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; }

/* ------------------------------------------------ schedule */
.days { display: flex; flex-direction: column; gap: 14px; margin-top: 8px; }
.day { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.day--focus { border-color: var(--line-2); }
.day--today { border-color: var(--blue); box-shadow: 0 0 0 2px var(--blue-50); }
.day__head { display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap; padding: 12px 16px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.day__head h2 { font-size: 1rem; }
.day__dow { color: var(--ink-2); font-weight: 600; }
.day__label { color: var(--muted); font-size: .875rem; flex: 1; min-width: 0; }
.sessions { list-style: none; }
.sess { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line); }
.sess:first-child { border-top: 0; }
.sess__time { font-variant-numeric: tabular-nums; font-weight: 700; display: flex; flex-direction: column; line-height: 1.3; }
.sess__end { font-weight: 500; color: var(--muted); font-size: .875rem; }
.sess__title { font-weight: 600; }
.sess__meta { display: flex; gap: 4px 10px; flex-wrap: wrap; align-items: center; font-size: .8125rem; margin-top: 3px; }
.kind { font-size: .6875rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 2px 6px; border-radius: 4px; background: var(--blue-50); color: var(--blue-600); }
.kind--singles-women, .kind--team-women { background: #f3edfb; color: #5b3a9a; }
.kind--singles-both, .kind--team-both { background: #eef1f5; color: #3a4a63; }
.kind--practice, .kind--ceremony { background: #f1f3f5; color: var(--muted); }
.sess--focus { background: var(--focus-tint); box-shadow: inset 4px 0 0 var(--focus); }
.sess--possible { background: repeating-linear-gradient(135deg, #fffdf6, #fffdf6 8px, var(--focus-tint) 8px, var(--focus-tint) 16px); box-shadow: inset 4px 0 0 transparent; border-left: 4px dashed var(--focus); padding-left: 12px; }
.sess__focus { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; margin-top: 8px; font-size: .875rem; }
.sess__athletes { font-weight: 700; }
.sess__note { color: var(--ink-2); flex-basis: 100%; }
@media (max-width: 420px) { .sess { grid-template-columns: 58px minmax(0, 1fr); gap: 10px; padding: 12px; } }

/* ------------------------------------------------ team page */
.team-group { margin-top: 32px; }
.group-title { font-size: 1.25rem; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.count { font-size: .75rem; font-weight: 700; color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 1px 8px; }
.player-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 16px 16px; min-width: 0; border-top: 3px solid var(--focus); }
.player-card--medal { box-shadow: 0 0 0 1px var(--focus), var(--shadow-2); }
.team-event-card { border-top-color: var(--navy-700); }
.grid--cards > .team-event-card { grid-column: 1 / -1; }
.te-grid { display: grid; gap: 4px 24px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .te-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); } }
.te-grid .pc-q { margin-top: 4px; }
.pc-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.pc-name { font-size: 1.125rem; font-weight: 800; min-width: 0; }
.pc-sub { display: flex; justify-content: space-between; align-items: center; gap: 6px 10px; flex-wrap: wrap; margin: 4px 0 10px; font-size: .875rem; }
.pc-place { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; font-size: .875rem; background: var(--surface-2); border: 1px solid var(--line); border-radius: 4px; padding: 2px 8px; }
.pc-place--gold, .pc-place--silver, .pc-place--bronze { background: var(--focus-tint); border-color: var(--focus); }
.pc-block { margin-top: 12px; }
.pc-block h4 { font-size: .75rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.pc-q { font-size: .9375rem; }
.games { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(40px, 1fr)); gap: 4px; margin-top: 8px; }
.games li { text-align: center; font-size: .8125rem; font-variant-numeric: tabular-nums; padding: 3px 0; border-radius: 4px; background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); }
.games li.is-win { background: var(--win-50); border-color: #bfe0cd; color: var(--win); font-weight: 700; }
.staff-list { list-style: none; display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.staff-list li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; display: flex; flex-direction: column; }

/* ------------------------------------------------ live & destinations */
.dest { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 6px; box-shadow: var(--shadow); min-width: 0; }
.dest--big { padding: 20px; }
.dest__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.dest__title { font-size: 1.125rem; font-weight: 800; letter-spacing: .04em; }
.dest__provider { font-weight: 600; color: var(--ink-2); }
.dest__label, .dest__note { font-size: .875rem; color: var(--muted); }
.dest__action { margin-top: auto; padding-top: 10px; }
.dest--live { border-color: #e03a2f; }
.dest--coming-soon, .dest--unavailable { background: var(--surface-2); }

.btn { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 700; font-size: .9375rem; text-decoration: none; border: 1px solid transparent; }
.btn--primary { background: var(--navy-800); color: #fff; }
.btn--primary:hover { background: var(--navy-700); }
.btn--ghost { background: #fff; color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn--disabled { background: #eceff3; color: #6b778a; cursor: not-allowed; user-select: none; }
.preview { margin-top: 20px; }
.preview .grid { margin-top: 4px; }

/* ------------------------------------------------ documents & pattern */
.docs-layout { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); align-items: start; }
.docs-main, .docs-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
@media (min-width: 960px) { .docs-layout { grid-template-columns: minmax(0, 1fr) 360px; } .docs-side { position: sticky; top: 76px; } }
.doc-list { list-style: none; display: flex; flex-direction: column; }
.doc-list li { padding: 9px 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.doc-list li:first-child { border-top: 0; }
.doc-list--compact li { padding: 7px 0; }
.doc-group .doc-list { padding: 4px 16px 8px; }
.doc-link { color: var(--ink); font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.doc-link:hover { color: var(--blue); }
.doc-link:hover .doc-title { text-decoration: underline; }
.doc-note { font-size: .8125rem; color: var(--muted); }
.type-badge { font-size: .625rem; font-weight: 800; letter-spacing: .06em; padding: 2px 5px; border-radius: 3px; background: #eef1f5; color: #4b5a70; border: 1px solid var(--line-2); }

.pattern-name { font-weight: 700; margin-bottom: 8px; }
.lane-viz { position: relative; height: 22px; border-radius: 4px; background: repeating-linear-gradient(90deg, #f0e3c8 0 10px, #ecdcbc 10px 11px); border: 1px solid #e0cfa8; overflow: hidden; margin-bottom: 12px; }
.lane-viz__oil { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(90deg, rgba(40, 86, 198, .45), rgba(40, 86, 198, .18)); border-right: 2px solid var(--blue); }
.lane-viz__label { position: absolute; right: 8px; top: 2px; font-size: .75rem; font-weight: 700; color: var(--ink-2); }
.pattern-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 8px; margin: 0 0 12px; }
.pattern-grid div { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 8px 10px; }
.pattern-grid dt { font-size: .6875rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.pattern-grid dd { margin: 2px 0 0; font-weight: 800; font-variant-numeric: tabular-nums; }
.pattern-links { font-size: .9375rem; }
.pattern-alt { font-size: .8125rem; color: var(--muted); margin-top: 8px; }

.notes { margin-top: 28px; font-size: .875rem; color: var(--ink-2); }
.notes summary { cursor: pointer; font-weight: 700; color: var(--ink); padding: 6px 0; }
.notes ul { padding-left: 20px; display: flex; flex-direction: column; gap: 6px; max-width: 90ch; }

/* ------------------------------------------------ footer */
.site-footer { background: var(--navy-800); color: #aebbd2; font-size: .875rem; }
.site-footer__inner { padding-top: 22px; padding-bottom: 26px; display: flex; flex-direction: column; gap: 6px; }
.site-footer a { color: #fff; }
.site-footer__links .i-ext { color: #aebbd2; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

@media print {
  .site-header, .quick, .toolbar, .subnav, .switch { display: none !important; }
  body { background: #fff; }
}

/* results event tabs become a 2×2 grid on phones so no event is hidden off-screen */
@media (max-width: 639px) {
  .subnav { border-bottom: 0; overflow: visible; }
  .subnav ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; min-width: 0; }
  .subnav a { display: flex; justify-content: center; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--surface); margin: 0; padding: 10px 8px; white-space: normal; text-align: center; min-height: 44px; }
  .subnav a[aria-current="page"] { background: var(--navy-800); color: #fff; border-color: var(--navy-800); }
}

/* compact hero on phones so the key answers stay near the top */
@media (max-width: 599px) {
  .hero__inner { padding-top: 18px; padding-bottom: 18px; gap: 14px; }
  .hero__meta { font-size: 1rem; gap: 2px 14px; }
  .hero__follow { flex: 1 1 100%; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 10px 12px; }
  .hero__follow .stripe { width: 28px; margin: 0; }
  .hero__follow-team { font-size: 1.125rem; }
  .hero__state { flex-basis: 100%; }
}

/* ------------------------------------------------ živá data a české starty */
.update-line { display: flex; align-items: center; gap: 8px; font-size: .8125rem; color: var(--muted); margin: 0 0 12px; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: #1f9d55; box-shadow: 0 0 0 0 rgba(31, 157, 85, .5); animation: pulse 2s infinite; flex: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(31, 157, 85, .45); } 70% { box-shadow: 0 0 0 8px rgba(31, 157, 85, 0); } 100% { box-shadow: 0 0 0 0 rgba(31, 157, 85, 0); } }
.page-head .update-line { margin-top: 10px; }

.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .8125rem; color: var(--ink-2); margin: 0 0 12px; }
.legend__i { display: inline-flex; align-items: center; gap: 6px; }
.legend__i::before { content: ""; width: 14px; height: 14px; border-radius: 3px; flex: none; }
.legend__i--focus::before { background: var(--focus-tint); box-shadow: inset 3px 0 0 var(--focus); border: 1px solid var(--line-2); }
.legend__i--possible::before { background: repeating-linear-gradient(135deg, #fff, #fff 3px, var(--focus-tint) 3px, var(--focus-tint) 6px); border: 1px dashed var(--focus); }

.next-list, .standing-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.next-list li { display: flex; flex-direction: column; gap: 1px; padding: 8px 10px; border-radius: var(--radius-sm); background: var(--focus-tint); box-shadow: inset 3px 0 0 var(--focus); }
.next-list li.is-possible { background: var(--surface-2); box-shadow: inset 3px 0 0 var(--line-2); }
.next-list__when { font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2); }
.next-list__what { font-weight: 600; }
.next-list__who { font-size: .875rem; }
.standing-list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); font-size: .9375rem; }
.lr { font-weight: 700; white-space: nowrap; }
.standing-list .lr { white-space: normal; }
.standing-list li.is-up, .focus-list li.is-up { border-left: 3px solid var(--win); background: var(--win-50); }
.focus-list li.is-up { padding: 8px 10px; border-radius: var(--radius-sm); }

.roster-mini { display: grid; gap: 10px; margin: 0; }
.roster-mini dt { font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.roster-mini dd { margin: 2px 0 0; font-weight: 600; }

.pools { display: flex; flex-direction: column; gap: 8px; }
.pool > summary { flex-wrap: wrap; }
.pool > summary h4 { margin-right: auto; }
.pool .table-scroll { margin: 0 -16px; }
.pool .tbl td:first-child, .pool .tbl th:first-child { padding-left: 16px; }
.pool .tbl td:last-child, .pool .tbl th:last-child { padding-right: 16px; }

.match.is-live { border-style: dashed; }
.path li.is-live, .cpath li.is-live { border-left-color: #1f9d55; }
.wl--o { background: #e6f5ec; color: #1f7a45; }
.ok { color: var(--win); font-weight: 700; }
.pc-empty { margin-top: 8px; }
.games--rr { grid-template-columns: repeat(auto-fill, minmax(30px, 1fr)); }


/* ================================================ převzato z webu ECC 2026 (stejný vzhled) */
.site-footer__inner { flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px 24px; }
.site-footer__text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.site-footer__login { margin-left: auto; }
.site-footer__login a { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 12px; border: 1px solid rgba(255, 255, 255, .22); border-radius: var(--radius-sm); color: #d6deeb; font-weight: 600; text-decoration: none; }
.site-footer__login a:hover, .site-footer__login a[aria-current] { border-color: #fff; color: #fff; }
.i-lock { width: 14px; height: 14px; flex: none; }

/* ------------------------------------------------ neveřejné statistiky (assets/js/stats.js) */
.st-login { max-width: 460px; }
.st-login__form { display: flex; flex-direction: column; gap: 8px; }
.st-login__label { font-weight: 700; font-size: .875rem; }
.st-login__row { display: flex; gap: 8px; flex-wrap: wrap; }
.st-login__input { flex: 1 1 200px; min-width: 0; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); font: inherit; background: var(--surface); color: var(--ink); }
.st-login__input:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.st-login__err { color: var(--loss); font-weight: 600; font-size: .875rem; }
.st-login .note { margin: 12px 0 0; }
.st-login__show { font-weight: 500; min-height: 32px; }
.st-pwchange { max-width: 460px; }
.st-pwform { margin-top: 8px; }
.st-login__form > .st-login__input { flex: none; }
.st-pwmsg { font-size: .875rem; font-weight: 600; min-height: 1.3em; }
.st-pwmsg.is-ok { color: var(--win); }
.st-pwmsg.is-err { color: var(--loss); }
button.btn { cursor: pointer; }
.btn[disabled] { opacity: .6; cursor: progress; }
.st-account { display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; margin: 0 0 14px; padding: 8px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); font-size: .875rem; }
.st-account__links { display: inline-flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.st-logout { min-height: 34px; padding: 5px 12px; font-size: .875rem; }
.st-role { display: inline-block; font-size: .6875rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; padding: 2px 6px; border-radius: 3px; border: 1px solid var(--line-2); background: #eef1f5; color: #4b5a70; }
.st-role--admin { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }
.st-role--trener { background: var(--focus-tint); border-color: var(--focus); color: var(--ink); }
.st-role--repre { background: #fdeced; border-color: #d7141a; color: #b0101a; }
.chip.st-danger:hover { border-color: var(--loss); color: var(--loss); }
.st-userform { max-width: 560px; margin-top: 16px; }
.st-uform select.st-login__input { appearance: auto; }
.st-uform input[readonly] { background: var(--surface-2); color: var(--muted); }
.st-toolbar { margin: 0 0 16px; }
.st-h2 { font-size: 1.125rem; font-weight: 700; margin: 8px 0 10px; }
.st-tfilter { margin: 0 0 10px; }
.st-ms { position: relative; }
.st-ms > summary { list-style: none; user-select: none; }
.st-ms > summary::-webkit-details-marker { display: none; }
.st-ms > summary::after { content: ""; width: 7px; height: 7px; margin-left: 2px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.st-ms[open] > summary::after { transform: translateY(2px) rotate(-135deg); }
.st-ms__panel { position: absolute; z-index: 20; top: calc(100% + 4px); left: 0; width: min(320px, calc(100vw - 32px)); background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius); box-shadow: 0 8px 24px rgba(16, 32, 64, .14); padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.st-ms__search { min-height: 38px; flex: none; }
.st-ms__list { max-height: 300px; overflow-y: auto; display: flex; flex-direction: column; }
.st-ms__opt { display: flex; align-items: center; gap: 8px; padding: 6px 6px; border-radius: 4px; font-size: .875rem; cursor: pointer; }
.st-ms__opt:hover { background: var(--surface-2); }
.st-ms__opt input { width: 18px; height: 18px; margin: 0; accent-color: var(--navy-800); flex: none; }
.st-ms__opt .muted { margin-left: auto; font-size: .75rem; }
.st-ms__foot { border-top: 1px solid var(--line); padding-top: 6px; }
@media (max-width: 560px) { .st-tfilter .filter { position: relative; } .st-ms { position: static; } .st-ms__panel { width: 100%; box-sizing: border-box; } }
.st-ms__clear { background: none; border: 0; padding: 4px 0; font: inherit; font-size: .875rem; cursor: pointer; }
.st-cards { margin-bottom: 24px; }
.st-kpis { grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: 8px; }
.st-kpis dd { font-variant-numeric: tabular-nums; }
.st-kpis dd small { font-weight: 500; }
.st-kpis > div > small { display: block; margin-top: 2px; }
.st-kpis .st-hint { font-size: .75rem; }
.card > .st-table { margin: 0; border-radius: var(--radius); }
.st-tbl { font-size: .875rem; font-variant-numeric: tabular-nums; }
.st-tbl td, .st-tbl th { white-space: nowrap; }
.st-tbl td.num, .st-leaves td.num, .tbl td.num { text-align: right; font-variant-numeric: tabular-nums; }
.st-tbl .pos { color: var(--muted); width: 1%; }
.st-tbl tfoot td { border-top: 2px solid var(--line-2); border-bottom: 0; font-weight: 700; background: var(--surface-2); }
.st-sort { background: none; border: 0; padding: 0; font: inherit; color: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; white-space: nowrap; }
.st-sort:hover, .st-sort.is-on { color: var(--ink); }
.st-grid { margin: 16px 0; align-items: start; }
.st-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.st-leaves .pl-rack { vertical-align: middle; }
.st-leaves .pl { width: 7px; height: 7px; }
.st-leaves__rack { width: 1%; }
.st-tag { font-size: .6875rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--loss); }
.st-fr { list-style: none; display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 4px; margin-bottom: 8px; }
.st-fr li { display: flex; flex-direction: column; align-items: center; gap: 3px; font-variant-numeric: tabular-nums; min-width: 0; }
.st-fr__n { font-size: .75rem; font-weight: 700; color: var(--muted); }
.st-fr__bar { position: relative; display: block; width: 100%; max-width: 32px; height: 70px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 3px; overflow: hidden; --p: 0%; }
.st-fr__bar i { position: absolute; left: 0; right: 0; bottom: 0; height: var(--p); background: var(--focus); }
.st-fr__v { font-size: .75rem; font-weight: 700; white-space: nowrap; }
.st-fr small { font-size: .6875rem; color: var(--muted); }
.st-games { display: flex; flex-direction: column; gap: 14px; }
.st-game { margin-top: 0; }
.st-back { margin-bottom: 8px; }
.page-head h1 .fed { font-size: 1rem; vertical-align: middle; }
@media (max-width: 560px) { .st-fr__v { font-size: .625rem; } .st-fr small { display: none; } }
/* stavové štítky postupu (stejný tvar jako .state) */
.st { display: inline-block; font-size: .6875rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 2px 6px; border-radius: 4px; white-space: nowrap; vertical-align: middle; }
.st--none { background: #eef1f5; color: #4b5a70; border: 1px solid var(--line-2); }
.st--up { background: var(--win-50); color: var(--win); border: 1px solid #bfe0cd; }
.st--line { background: var(--blue-50); color: var(--blue-600); border: 1px solid #cddbf6; }
.st--down { background: #fff4dc; color: #8a5a00; border: 1px solid #f0d9a4; }
.st--out { background: #f6eaea; color: #8c2a24; border: 1px solid #ecd0cd; }
.st--live { background: #e03a2f; color: #fff; }
.st--gold { background: var(--focus-tint); color: var(--ink); border: 1px solid var(--focus); }
.sum-row__detail .st, .focus-list__top .st, .name-cell .st { margin-left: 2px; }
.status-row__rel { font-weight: 600; color: var(--ink-2); text-transform: none; letter-spacing: 0; }
.sess--done { opacity: .75; }
/* ------------------------------------------------ dráhy českých hráčů a „Teď“ v kartě Kdy hraje Česko */
.lane-tag { display: inline-block; font-size: .75rem; font-weight: 700; color: var(--focus); background: var(--focus-tint); border: 1px solid var(--focus); border-radius: 4px; padding: 0 5px; white-space: nowrap; vertical-align: 1px; }
.status-card--live { border-color: #e03a2f; box-shadow: 0 0 0 1px #e03a2f, var(--shadow); }
.status-card__q .state { vertical-align: 1px; margin-left: 4px; }
.status-row__label .state { margin-right: 2px; }
.next-list__when .state { margin-right: 4px; }

/* uplynulé dny programu – až za dnešními a nadcházejícími */
.days__past { font-size: .8125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-top: 18px; }
.days__past ~ .day { opacity: .75; }

/* Živě: rozehraná hra českého hráče (LaneTalk /live) */
.lane-tag--live { background: #e03a2f; border-color: #e03a2f; color: #fff; }
.lg { margin-top: 8px; }
.lg__head { font-size: .875rem; font-weight: 700; margin: 0 0 4px; }
.lg__head .muted { font-weight: 600; }
.lg__frames { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)) minmax(0, 1.45fr); border: 1px solid var(--line-2); border-radius: 4px; background: var(--surface); overflow: hidden; font-variant-numeric: tabular-nums; }
.lg__f { display: flex; flex-direction: column; border-left: 1px solid var(--line-2); min-width: 0; }
.lg__f:first-child { border-left: 0; }
.lg__f--cur { background: var(--focus-tint); }
.lg__balls { display: flex; justify-content: flex-end; border-bottom: 1px solid var(--line); font-size: .75rem; font-weight: 700; line-height: 1.5; }
.lg__balls span { flex: 0 0 50%; text-align: center; min-height: 1.5em; }
.lg__balls span + span { border-left: 1px solid var(--line); }
.lg__f--10 .lg__balls span { flex-basis: 33.34%; }
.lg__leave { display: flex; justify-content: center; align-items: center; gap: 5px; box-sizing: border-box; height: 36px; flex: 0 0 36px; padding: 0; border-bottom: 1px solid var(--line); background: var(--surface-2); overflow: hidden; }
.pl-rack { display: inline-flex; flex-direction: column; align-items: center; gap: 1px; }
.pl-row { display: flex; gap: 1px; }
.pl { display: block; box-sizing: border-box; width: 6px; height: 6px; border-radius: 50%; background: var(--line); }
.pl--st { background: var(--loss); }
.pl--cv { background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--ink); }
@media (max-width: 560px) { .lg__leave { height: 26px; flex-basis: 26px; gap: 2px; } .pl { width: 4px; height: 4px; } .pl--cv { box-shadow: inset 0 0 0 1px var(--ink); } }
.lg__split { display: inline-block; box-sizing: border-box; min-width: 1.4em; height: 1.4em; line-height: calc(1.4em - 3px); padding: 0 .1em; border: 1.5px solid currentColor; border-radius: 999px; font-weight: inherit; vertical-align: middle; }
.lg__sum { text-align: center; font-weight: 800; font-size: .875rem; line-height: 1.8; min-height: 1.8em; }
.lg__block { font-size: .875rem; margin: 6px 0 0; }
.lg__upd { font-size: .75rem; color: var(--muted); margin: 2px 0 0; }
/* souboj (semifinále / finále) ve stavové kartě */
.h2h { margin-top: 10px; }
.card .h2h .table-scroll { margin: 0; }
.h2h__title { font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0 0 4px; }
.h2h__tbl { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line-2); border-radius: 4px; font-variant-numeric: tabular-nums; font-size: .9375rem; }
.h2h__tbl th, .h2h__tbl td { padding: 6px 8px; border-top: 1px solid var(--line); text-align: left; white-space: nowrap; }
.h2h__tbl thead th { border-top: 0; font-size: .75rem; color: var(--muted); font-weight: 700; }
.h2h__tbl .num { text-align: center; width: 3.6em; }
.h2h__tbl tbody th { font-weight: 700; white-space: normal; }
.h2h__tbl tr.is-focus th, .h2h__tbl tr.is-focus td { background: var(--focus-tint); }
.h2h__w { font-weight: 800; }
.h2h__live { color: #c8322a; font-weight: 800; }
.h2h__live::before { content: ''; display: inline-block; width: 6px; height: 6px; margin-right: 4px; border-radius: 50%; background: currentColor; vertical-align: middle; }
.h2h__wins { font-weight: 800; font-size: 1.0625rem; }
.h2h__tbl tr.is-win .h2h__wins { color: var(--win); }

/* Výsledky: jednotlivé hry bloku a rozbalení všech her hráče */
.tbl th.g-cell, .tbl td.g-cell { padding-left: 4px; padding-right: 4px; min-width: 2.6em; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.tbl th.g-cell { color: var(--muted); }
.tbl td.g-hi, .ag__list li.g-hi { font-weight: 800; color: var(--ink); }
.tbl tr.has-games { cursor: pointer; }
.tbl tr.has-games:not(.is-focus):hover td { background: var(--surface-2); }
.tbl tr.is-open td { border-bottom-color: transparent; }
.nm-btn { font: inherit; font-weight: 600; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; text-decoration: underline dotted var(--line-2); text-underline-offset: 3px; }
.nm-btn:hover { color: var(--blue-600); text-decoration-color: currentColor; }
.nm-btn[aria-expanded="true"] { color: var(--blue-600); }
.tbl tr.ag-row td { background: var(--surface-2); padding-top: 6px; padding-bottom: 10px; }
.ag { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 3px 0; }
.ag__label { font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); min-width: 9em; }
.ag__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px 12px; font-variant-numeric: tabular-nums; }
.ag__list small { color: var(--muted); font-size: .6875rem; }
.ag__sum { font-size: .875rem; font-weight: 700; }
@media (max-width: 719px) { .ag__label { min-width: 0; flex-basis: 100%; } }
/* mazací model – výřez dráhy z PDF Kegel ve stejném rámečku jako dřív */
/* rámeček i výška jako boxy .pattern-grid pod ním; čáry po 10 ft (obrázek pokrývá 0–58,6 ft → 10 ft = 17,06 %) */
.lane-viz--img { display: block; height: 61px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: repeating-linear-gradient(90deg, transparent 0 calc(17.06% - 1px), var(--line) calc(17.06% - 1px) 17.06%), var(--surface-2); }
.lane-viz--img img { display: block; width: 100%; height: 100%; object-fit: fill; }
.lane-viz--img .lane-viz__end { position: absolute; top: 0; bottom: 0; left: var(--oil); width: 2px; margin-left: -1px; background: var(--blue); }
.lane-viz--img .lane-viz__label { top: 50%; transform: translateY(-50%); }

/* ------------------------------------------------ Světový pohár: doplňky */
/* hry souboje z LaneTalku, které oficiální výsledky (ABF) ještě nemají */
.h2h__lt { font-style: italic; }
.doc-badge { font-size: .75rem; margin-left: 6px; white-space: nowrap; }
/* Baker: framy jiných hráčů družstva jsou v kartě hry hráče potlačené */
.lg__f--other { opacity: .35; }
.st-tag--baker { color: var(--blue-600); }
/* stránka trenéra: kdo hrál který frame */
.bk-game { margin-bottom: 16px; }
.bk-game.is-saved { border-color: #bfe0cd; }
.bk-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 8px 12px; margin: 8px 0 12px; }
.bk-slot { display: flex; flex-direction: column; gap: 4px; font-size: .875rem; }
.bk-slot__l { font-weight: 700; }
.bk-slot select { flex: none; min-height: 40px; appearance: auto; }
.bk-frames .lg__f { min-width: 0; }
.bk-frame { display: block; border-top: 1px solid var(--line); }
.bk-frame select { display: block; width: 100%; min-width: 0; border: 0; background: var(--surface-2); font: inherit; font-size: .6875rem; padding: 4px 2px; text-overflow: ellipsis; }
.bk-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 12px; }
@media (max-width: 560px) { .bk-frames { grid-template-columns: repeat(5, minmax(0, 1fr)); } .bk-frames .lg__f--10 { grid-column: span 1; } .bk-frames .lg__f:nth-child(6) { border-left: 0; } .bk-frames .lg__f:nth-child(n+6) { border-top: 1px solid var(--line-2); } }
.h2h__tbl td.h2h__pts { width: auto; white-space: nowrap; }

/* křížová tabulka poolu (každý s každým) pod tabulkou pořadí */
.xt { margin: 12px 0 4px; }
.xt__title { font-size: .75rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; }
.xt > summary.xt__title { cursor: pointer; padding: 4px 0; }
.xt > summary.xt__title:hover { color: var(--ink); }
.xt:not([open]) > summary.xt__title { margin-bottom: 0; }
/* bez vnitřního okraje – pevné sloupce (jména vlevo, body vpravo) drží přesně u okraje posuvné oblasti */
.pool .xt .table-scroll { margin: 0; padding: 0; }
.xt .table-scroll { scroll-snap-type: x mandatory; }
.xt__tbl thead th.xt__col { scroll-snap-align: start; }
/* oddělené okraje: u sloučených (collapse) okraje s pevnými buňkami neposouvají a pod nimi prosvítají posunuté buňky */
.xt__tbl { border-collapse: separate; border-spacing: 0; font-size: .8125rem; font-variant-numeric: tabular-nums; background: var(--surface); }
.xt__tbl th, .xt__tbl td { border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 5px 6px; text-align: center; white-space: nowrap; }
.xt__tbl tr > :first-child { border-left: 1px solid var(--line); }
.xt__tbl thead tr > * { border-top: 1px solid var(--navy-700); }
.xt__tbl thead th { background: var(--navy-800); color: #fff; font-weight: 700; vertical-align: bottom; border-color: var(--navy-700); }
.xt__col { min-width: 3.4em; }
.xt__col .xt__n { display: block; font-size: .6875rem; opacity: .75; }
.xt__nm { display: block; font-size: .6875rem; max-width: 6em; overflow: hidden; text-overflow: ellipsis; }
.xt__row { text-align: left !important; font-weight: 700; position: sticky; left: 0; z-index: 1; background: var(--surface); }
.xt__row .xt__n { color: var(--muted); font-weight: 600; }
.xt__corner { position: sticky; left: 0; z-index: 2; }
.xt__pts { position: sticky; right: 0; z-index: 1; background: var(--surface); border-left: 1px solid var(--line); box-shadow: -3px 0 4px -2px rgba(0, 0, 0, .12); }
.xt__tbl thead th.xt__pts { z-index: 2; background: var(--navy-800); }
.xt__row { box-shadow: 3px 0 4px -2px rgba(0, 0, 0, .12); }
.xt__tbl tr.is-focus td.xt__pts { background: var(--focus-tint); }
.xt__self { background: var(--line) !important; }
.xt__c.is-w { background: var(--win-50); color: var(--win); font-weight: 800; }
.xt__c.is-l { color: var(--ink-2); }
.xt__c.is-lt { font-style: italic; }
.xt__tbl tr.is-focus th.xt__row, .xt__tbl tr.is-focus td { box-shadow: inset 0 2px 0 var(--focus-tint), inset 0 -2px 0 var(--focus-tint); }
.xt__tbl tr.is-focus th.xt__row { background: var(--focus-tint); }
.xt__tbl thead th.is-focus { background: var(--focus); color: #fff; box-shadow: inset 0 -3px 0 #d7141a; }
/* řádky: celé jméno na počítači, na telefonu krátké jméno a federace pod ním – úzký pevný sloupec, víc skóre na šířku */
.xt__short { display: none; }
.xt__short .xt__n { display: block; font-size: .6875rem; color: var(--muted); font-weight: 600; }
@media (max-width: 719px) {
  .xt__full { display: none; }
  .xt__short { display: block; max-width: 5.5em; overflow: hidden; text-overflow: ellipsis; }
  .xt__tbl { font-size: .75rem; }
  .xt__tbl th, .xt__tbl td { padding: 4px 4px; }
  .xt__col { min-width: 0; }
  .xt__nm { max-width: 5em; }
}
/* hry hráče se soupeři: jedna hra na řádek */
.ag__list--vs { flex-direction: column; gap: 3px; }
.ag__list--vs li { font-weight: 700; }
.ag__list--vs li.g-hi { color: var(--win); }
.ag__rd { display: inline-block; min-width: 4.2em; color: var(--muted); font-size: .75rem; font-weight: 600; }
.ag__opp { font-weight: 400; color: var(--ink-2); }

/* zápas na 1 hru v poolu jako výsledková tabule: jména vedle sebe, pod nimi skóre a body */
.vs { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: stretch; background: var(--surface); border: 1px solid var(--line-2); border-radius: 6px; overflow: hidden; }
.vs__side { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; min-width: 0; }
.vs__side--a { text-align: left; align-items: flex-start; }
.vs__side--b { text-align: right; align-items: flex-end; }
.vs__name { font-weight: 700; line-height: 1.3; overflow-wrap: break-word; }
.vs__name .fed { white-space: nowrap; }
.vs__score { font-size: 1.75rem; font-weight: 800; line-height: 1.15; font-variant-numeric: tabular-nums; color: var(--ink-2); margin-top: 2px; }
.vs__side.is-win .vs__score { color: var(--win); }
.vs__marks { display: inline-flex; gap: 3px; margin: 0 6px; }
.vs__marks i { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border: 1.5px solid var(--win); color: var(--win); background: var(--win-50); font-style: normal; font-weight: 800; font-size: .75rem; border-radius: 3px; }
.vs__marks i.vs__open { border-color: var(--line-2); color: var(--ink-2); background: var(--surface-2); }
.vs__marks i.vs__open.is-split { width: auto; min-width: 20px; padding: 0 1px; }
.vs__open .lg__split { display: inline-flex; align-items: center; justify-content: center; min-width: 15px; height: 15px; padding: 0 2px; line-height: 1; font-size: .6875rem; vertical-align: 0; margin: 0; }
.vs__sub { font-size: .75rem; color: var(--muted); }
.vs__score.is-live .h2h__live { font-size: inherit; }
.vs__max { font-size: .75rem; }
.vs__meta { font-size: .8125rem; color: var(--muted); }
.vs__meta strong { color: var(--ink); }
.vs__mid { display: flex; align-items: center; padding: 0 4px; font-size: 1.5rem; font-weight: 800; color: var(--muted); margin-top: 1.4em; }
@media (max-width: 420px) {
  .vs__side { padding: 8px 8px; }
  .vs__name { font-size: .875rem; }
  .vs__score { font-size: 1.5rem; }
  .vs__meta { font-size: .75rem; }
  .vs__mid { padding: 0 2px; font-size: 1.25rem; }
}
/* frame, ke kterému skóre platí – vedle skóre */
.vs__score { display: flex; align-items: baseline; gap: 6px; }
.vs__side--b .vs__score { flex-direction: row-reverse; }
.vs__frame { font-size: .75rem; font-weight: 600; color: var(--muted); line-height: 1.25; }
.vs__side--b .vs__frame { text-align: right; }
.vs__score { align-items: center; }
.vs__score .h2h__live, .vs__frame { white-space: nowrap; }
.vs__score .h2h__live::before { display: none; }

/* tabule zápasu jako mřížka: jméno / skóre / řádek pod skóre / body ve stejných řádcích obou stran, dvojtečka v řádku skóre */
.vs { align-items: center; }
.vs > .vs__c, .vs > .vs__gap, .vs > .vs__mid { align-self: stretch; margin: 0; }
.vs__c { padding: 0 12px; min-width: 0; }
.vs__c--a { text-align: left; }
.vs__c--b { text-align: right; }
.vs__name.vs__c { padding-top: 10px; }
.vs__meta.vs__c { padding-bottom: 10px; }
.vs__score.vs__c { display: flex; align-items: center; gap: 6px; }
.vs__score.vs__c--b { justify-content: flex-end; flex-direction: row; }
.vs__score.vs__c--b .vs__marks { order: -1; }
.vs__mid { display: flex; align-items: center; justify-content: center; margin-top: 0; padding: 0 6px; }
@media (max-width: 420px) { .vs__c { padding-left: 8px; padding-right: 8px; } }
.vs__score.vs__c { flex-wrap: wrap; row-gap: 2px; }
/* vysvětlivky pod tabulí zápasu – sbalené */
.vysv { margin: 6px 0 2px; font-size: .75rem; color: var(--muted); }
.vysv > summary { cursor: pointer; font-weight: 700; width: max-content; list-style: none; display: inline-flex; align-items: center; gap: 4px; }
.vysv > summary::-webkit-details-marker { display: none; }
.vysv > summary::before { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); transition: transform .15s; }
.vysv[open] > summary::before { transform: rotate(45deg); }
.vysv > p { margin: 4px 0 0; }
/* framy obou hráčů pod tabulí – rozbalené, dají se skrýt */
.vs-sheets { font-size: inherit; color: inherit; margin-top: 8px; }
.vs-sheets > summary { font-size: .75rem; color: var(--muted); }
/* pruh nad tabulí zápasu: po kolikátém framu se skóre porovnává */
.vs__frm { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 6px 12px; flex-wrap: wrap; padding: 7px 12px; background: var(--navy-800); color: #fff; }
.vs__frm-l { font-size: .8125rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.vs__frm-bar { display: inline-grid; grid-template-columns: repeat(10, 1fr); gap: 3px; width: min(100%, 220px); }
.vs__frm-bar i { height: 8px; border-radius: 2px; background: rgba(255, 255, 255, .22); }
.vs__frm-bar i.on { background: #fff; }
.vs__sub:empty { display: none; }
@media (max-width: 420px) { .vs__frm { padding: 6px 8px; } .vs__frm-bar { width: 100%; } }
/* hráči na různých framech: pruh každého hráče nad jeho stranou tabule */
.vs__frm--two { flex-wrap: nowrap; align-items: flex-start; }
.vs__frm-side { display: flex; flex-direction: column; gap: 4px; width: min(46%, 220px); }
.vs__frm-side--b { align-items: flex-end; text-align: right; }
.vs__frm-side .vs__frm-bar { width: 100%; }
/* štítek „po N. framu“ u každého hráče */
.vs__fchip { display: inline-block; background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line-2); font-size: .75rem; font-weight: 700; border-radius: 4px; padding: 1px 6px; white-space: nowrap; margin: 2px 0; }
/* hráč o frame(y) napřed – výrazný box */
.vs__ahead { display: inline-block; font-size: .75rem; font-weight: 800; border-radius: 4px; padding: 1px 7px; margin: 2px 0; border: 1px solid transparent; font-variant-numeric: tabular-nums; }
.vs__fchip--ahead { background: var(--blue); border-color: var(--blue); color: #fff; }
.vs__ahead--2 { background: #e5534b; color: #fff; }
.vs__ahead--3 { background: #a51d16; color: #fff; font-size: .8125rem; padding: 2px 8px; }
.vs__rest { display: block; }
.vs__fchip { max-width: 100%; white-space: normal; }

/* rozlosování poolů u části programu */
.sess__draw { margin-top: 10px; font-size: .875rem; }
.sess__draw > summary { cursor: pointer; color: var(--ink-2, var(--muted)); font-weight: 600; }
.sess__draw[open] > summary { margin-bottom: 8px; }
.draw-pools { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 12px 20px; }
.draw-pool h4 { font-size: .875rem; margin: 0 0 4px; }
.tbl--draw { font-size: .8125rem; }
.tbl--draw td, .tbl--draw th { padding: 4px 8px; }
.tbl--draw td.num { width: 3.5em; color: var(--muted); }
.tbl--draw tr.is-bye td { color: var(--muted); }
/* roll-off o postup: hvězdička u bodů, výsledek pod tabulkou poolu */
.ro-star { margin-left: 2px; color: var(--focus); font-weight: 800; cursor: help; }
.ro-note { margin: 8px 0 0; }

/* Zápas družstev (Baker): velké číslo = vyhrané hry, výrazně kdo vede / vyhrál / prohrál */
.tm__board { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: stretch; background: var(--surface); border: 1px solid var(--line-2); border-radius: 6px; overflow: hidden; }
.tm__side { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; min-width: 0; border-top: 4px solid transparent; }
.tm__side--b { flex-direction: row-reverse; text-align: right; }
.tm__name { font-weight: 700; line-height: 1.3; overflow-wrap: break-word; min-width: 0; }
.tm__name .fed { white-space: nowrap; }
.tm__pts { font-size: 2.5rem; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.tm__mid { display: flex; align-items: center; font-size: 2rem; font-weight: 800; color: var(--muted); padding: 0 2px; }
.tm__side.is-lead { border-top-color: var(--win); }
.tm__side.is-lead .tm__pts { color: var(--win); }
.tm__side.is-win { background: var(--win-50); border-top-color: var(--win); }
.tm__side.is-win .tm__pts { color: var(--win); }
.tm__side.is-loss { background: #fbeceb; border-top-color: var(--loss); }
.tm__side.is-loss .tm__pts { color: var(--loss); }
.tm__state { margin: 6px 0 8px; padding: 6px 10px; border-radius: 4px; font-weight: 800; text-align: center; background: var(--surface-2, #f3f4f6); color: var(--ink); }
.tm__state--won { background: var(--win); color: #fff; }
.tm__state--lost { background: var(--loss); color: #fff; }
.tm__state--lead { background: var(--win-50); color: var(--win); }
.tm__state--behind { background: #fbeceb; color: var(--loss); }
.tm__cur { margin: 10px 0 4px; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.tm .vs { margin-bottom: 8px; }
.tm__games .num { width: 4em; }
.tm__games td.tm__colon { width: 1em; padding: 6px 0; text-align: center; color: var(--muted); }
.tm__games tbody th { font-weight: 600; white-space: nowrap; }
.tm__games td:last-child { width: 1%; }
.tm__games tr.is-win th { box-shadow: inset 3px 0 0 var(--win); }
.tm__games tr.is-loss th { box-shadow: inset 3px 0 0 var(--loss); }
.tm__games tr.is-cur th, .tm__games tr.is-cur td { background: var(--focus-tint); }
.tm__res { display: inline-block; padding: 1px 8px; border-radius: 4px; font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; background: #f3f4f6; color: var(--ink-2); }
.tm__res--w { background: var(--win-50); color: var(--win); }
.tm__res--l { background: #fbeceb; color: var(--loss); }
@media (max-width: 520px) {
  .tm__side { padding: 8px 10px; }
  .tm__name { font-size: .875rem; }
  .tm__pts { font-size: 2rem; }
  .tm__games .num { width: auto; }
  .tm__games th, .tm__games td { padding: 6px 5px; }
  .tm__res { padding: 1px 5px; }
}

/* Baker: soupeř a kolikátá hra, části programu, uložené hry zvlášť a sbalené */
.bk-sec { margin-bottom: 28px; }
.bk-sec__t { font-size: 1.125rem; margin: 0 0 8px; padding-bottom: 6px; border-bottom: 2px solid var(--ink); }
.bk-sec--done .bk-sec__t { border-bottom-color: var(--win); color: var(--win); }
.bk-search { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 8px 0 4px; }
.bk-search input { flex: 1 1 260px; min-width: 0; }
.bk-game[hidden], .bk-part[hidden] { display: none; }
.bk-part { font-size: .8125rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin: 14px 0 6px; }
.bk-head { min-width: 0; flex: 1; }
.bk-head .card__title { margin: 0; }
.bk-sub { margin: 2px 0 0; }
.bk-match { margin: 6px 0 0; font-size: .9375rem; }
.bk-score strong { font-variant-numeric: tabular-nums; font-size: 1.0625rem; }
.bk-game.is-saved { background: var(--win-50); border-color: #bfe0cd; margin-bottom: 8px; }
.bk-game.is-saved .card__body { background: var(--surface); }
.bk-sum { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 4px 10px; cursor: pointer; list-style: none; }
.bk-sum::-webkit-details-marker { display: none; }
.bk-sum::after { content: '▸'; margin-left: auto; color: var(--muted); }
details[open] > .bk-sum::after { content: '▾'; }
.bk-ok { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--win); color: #fff; font-weight: 800; flex: none; }
.bk-who { flex-basis: 100%; margin: 4px 0 0 34px; padding: 0; list-style: none; color: var(--ink-2); }
.bk-who li { margin: 1px 0; }
.bk-who__f { display: inline-block; min-width: 4.2em; color: var(--muted); font-variant-numeric: tabular-nums; }

/* stav zápasu družstev uprostřed řádku se jmény */
.vs > .vs__match { align-self: start; display: grid; grid-template-columns: auto auto auto; align-items: center; justify-items: center; column-gap: 4px; padding: 8px 4px 0; }
.vs__mw { font-size: 2rem; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; color: var(--ink-2); min-width: .7em; text-align: center; padding: 2px 6px; border-radius: 6px; }
.vs__mw.is-lead { color: var(--win); }
.vs__mw.is-win { color: #fff; background: var(--win); }
.vs__mw.is-loss { color: #fff; background: var(--loss); }
.vs__mc { font-size: 1.5rem; font-weight: 800; color: var(--muted); }
.vs__mlab { grid-column: 1 / -1; margin-top: 4px; font-size: .6875rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
@media (max-width: 420px) { .vs__mw { font-size: 1.625rem; padding: 2px 4px; } }

/* postup ze skupin družstev a vyřazovací část před zveřejněním pavouka */
.q-tag { display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 4px; font-size: .6875rem; font-weight: 800; letter-spacing: .03em; vertical-align: 1px; white-space: nowrap; }
.q-tag--up { background: var(--win-50); color: var(--win); border: 1px solid #bfe0cd; }
.q-tag--ro { background: var(--focus-tint); color: #8a5a00; border: 1px solid #f0d58a; text-transform: uppercase; }
.tbl--groups tr.is-q td:first-child { box-shadow: inset 3px 0 0 var(--win); }
.po-me-line { margin: 0 0 8px; font-weight: 600; }
.po-rounds { list-style: none; padding: 0; margin: 8px 0 12px; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 4px 16px; font-size: .875rem; }
.po-sub { margin: 12px 0 6px; font-size: .9375rem; }
.po-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 8px 20px; }
.po-groups h4 { margin: 0 0 4px; font-size: .8125rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.po-groups ul, .po-pairs { list-style: none; padding: 0; margin: 0; font-size: .9375rem; }
.po-groups li, .po-pairs li { padding: 3px 0; }
.po-code { display: inline-block; min-width: 2.2em; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.po-me { font-weight: 800; background: var(--focus-tint); padding: 0 3px; border-radius: 3px; }

.bk-live { display: inline-block; padding: 0 6px; border-radius: 4px; background: #c8322a; color: #fff; font-weight: 800; font-size: .6875rem; text-transform: uppercase; letter-spacing: .04em; }
.bk-live--done { background: var(--ink-2); }
.notice--guess { border-left-color: #f2c14e; margin: 0 0 12px; padding: 10px 14px; }

/* zápasy družstva ve skupině */
.tg-list li, .tg-list li.g-hi { font-weight: 400; color: var(--ink); }
.tg-list small { font-weight: 400; }
.tg-res { display: inline-block; min-width: 2.6em; font-weight: 800; font-variant-numeric: tabular-nums; }
.tg-res--w { color: var(--win); }
.tg-res--l { color: var(--loss); }
.tg-res--live { color: var(--ink-2); }
.tg-live { display: inline-block; padding: 0 6px; border-radius: 4px; background: var(--focus-tint); color: #8a5a00; font-size: .75rem; font-weight: 700; }
.tg-games { color: var(--ink-2); font-variant-numeric: tabular-nums; margin-left: 4px; }
.tg-g--w { font-weight: 700; color: var(--ink); }
.tg-wo { display: inline-block; padding: 0 6px; border-radius: 4px; background: var(--focus-tint); color: #8a5a00; font-size: .75rem; font-weight: 700; }
