/* Veřejný web Kellwiin – tmavý styl v barvách sub goal widgetu */
/* písmo Jost přímo z webu (OFL), žádné načítání z Googlu */
@font-face { font-family: Jost; font-style: normal; font-weight: 300 900; font-display: swap; src: url("fonts/jost-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Jost; font-style: normal; font-weight: 300 900; font-display: swap; src: url("fonts/jost-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #0b0918;
  --bg-2: #120f24;
  --card: rgba(255, 255, 255, .045);
  --card-2: rgba(255, 255, 255, .075);
  --line: rgba(255, 255, 255, .09);
  --text: #f1eefb;
  --muted: #a39cbd;
  --teal: #2de2d0;
  --pink: #ff7ad9;
  --violet: #a98bff;
  --gold: #ffd56b;
  --radius: 22px;
  --menu-w: 272px;
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--text);
  font: 400 16px/1.55 Jost, "Segoe UI", system-ui, sans-serif; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font-family: inherit; }  /* prohlížeč jinak dává tlačítkům systémové písmo */
h1, h2, h3 { margin: 0; line-height: 1.1; }

/* jemné barevné záře v pozadí */
.glow { position: fixed; z-index: -1; width: 60vmax; height: 60vmax; border-radius: 50%; filter: blur(90px); opacity: .22; pointer-events: none; }
.glow-a { background: var(--teal); top: -30vmax; left: -20vmax; }
.glow-b { background: var(--pink); bottom: -35vmax; right: 10vmax; opacity: .16; }

/* místo pro posuvník vždy rezervované – dlouhé a krátké stránky pak nejsou proti sobě posunuté */
html { scrollbar-gutter: stable; }

/* ---------- rozložení: menu = svislá pilulka s ikonami, vpravo uprostřed obrazovky ---------- */
/* obsah přes celou šířku, vpravo místo pro menu; na velkých monitorech nejvýš 1720 px a na středu */
.content { max-width: 2240px; margin: 0 auto; padding: 48px 128px 32px clamp(24px, 4vw, 64px);
  /* patička © vždy na spodní hraně obrazovky (u krátkých stránek), u dlouhých až za obsahem */
  box-sizing: border-box; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.content > * { flex: none; }
.menu-tab { display: none; }

.menu {
  position: fixed; right: 20px; top: 50%; transform: translateY(-50%); z-index: 30;
  padding: 10px; border-radius: 999px; border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(30, 25, 58, .78), rgba(16, 13, 34, .88));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07);  /* bez tmavé záře kolem */
  backdrop-filter: blur(18px);
}
.nav { position: relative; list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.nav a {
  position: relative; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  color: var(--muted); transition: background .25s var(--ease-out), color .25s var(--ease-out), transform .25s var(--ease-out);
}
.nav svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nav a:hover, .nav a:focus-visible { color: var(--text); background: rgba(255, 255, 255, .07); transform: scale(1.06); outline: none; }
.nav a.active { color: var(--teal); }
.nav a.active:hover, .nav a.active:focus-visible { color: #9ffcf0; background: transparent; }
/* zvýraznění aktivní stránky: samostatný kroužek, při přechodu mezi stránkami pružně klouže (View Transitions) */
.nav-ind { position: absolute; left: 0; top: calc(var(--i) * 60px); width: 52px; height: 52px; border-radius: 50%; pointer-events: none;
  background: rgba(45, 226, 208, .14); box-shadow: inset 0 0 0 1px rgba(45, 226, 208, .3), 0 0 22px -6px rgba(45, 226, 208, .6);
  view-transition-name: menu-ind; }

/* bublina s názvem vlevo od ikony */
.tip {
  position: absolute; right: calc(100% + 16px); top: 50%; padding: 7px 14px; border-radius: 12px; white-space: nowrap;
  font-size: 15px; font-weight: 600; color: var(--text); background: rgba(30, 25, 58, .95); border: 1px solid var(--line);
  box-shadow: 0 10px 30px -8px rgba(0, 0, 0, .6); pointer-events: none;
  opacity: 0; transform: translate(8px, -50%); filter: blur(4px);
  transition: opacity .25s var(--ease-out), transform .25s var(--ease-out), filter .25s var(--ease-out);
}
.tip::after { content: ""; position: absolute; right: -5px; top: 50%; width: 9px; height: 9px; background: inherit;
  border: 1px solid var(--line); border-left: 0; border-bottom: 0; transform: translateY(-50%) rotate(45deg); }
.nav a:hover .tip, .nav a:focus-visible .tip { opacity: 1; transform: translate(0, -50%); filter: none; }

/* ikony sítí (simple-icons) jako maska → barva podle platformy */
.ico { display: inline-block; width: 20px; height: 20px; flex: none; background: var(--brand, currentColor);
  -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
.s-twitch { --brand: #a970ff; }
.s-kick { --brand: #53fc18; }
.s-youtube { --brand: #ff3b3b; }
.s-instagram { --brand: #ff5fa2; }
.s-tiktok { --brand: #6ef2ea; }
.s-x { --brand: #f1eefb; }

/* ---------- Domů ---------- */
.hero {
  position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 24px;
  padding: clamp(28px, 5vw, 56px); border-radius: calc(var(--radius) + 6px); overflow: hidden;
  background: linear-gradient(135deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02)); border: 1px solid var(--line);
}
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background: radial-gradient(circle at 85% 50%, rgba(169, 139, 255, .35), transparent 55%); }
.hero.is-online::before { background: radial-gradient(circle at 85% 50%, rgba(45, 226, 208, .35), transparent 55%), radial-gradient(circle at 10% 100%, rgba(255, 122, 217, .25), transparent 50%); opacity: .9; }
.eyebrow { margin: 0 0 10px; text-transform: uppercase; letter-spacing: .22em; font-size: 13px; font-weight: 600; color: var(--muted); }
.status { display: flex; align-items: center; gap: .32em; font-size: clamp(54px, 10vw, 112px); font-weight: 800; letter-spacing: -.02em; }
.is-online .status { background: linear-gradient(90deg, var(--teal), #9ffcf0 45%, var(--pink)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.is-offline .status { color: #8d86a8; }
/* offline okno „volně“ – bez karty, text a obrázek přímo na stránce */
.hero.is-offline { background: none; border: 0; padding: 6px 0 12px; overflow: visible; }  /* nahoře v jedné linii s „Twitch“ v levém panelu */
.hero.is-offline::before { display: none; }
.hero.is-offline .eyebrow { font-size: 16px; }
.hero.is-offline .status { font-size: clamp(44px, 8vw, 88px); }
.status-dot { width: .3em; height: .3em; border-radius: 50%; flex: none; background: #5d5776; }
.is-online .status-dot { background: var(--teal); animation: pulse 1.8s infinite; }
.lead { margin: 14px 0 26px; font-size: 19px; color: var(--muted); max-width: 32em; }
.hero { isolation: isolate; }
.hero-img { display: block; max-width: min(320px, 100%); max-height: 220px; border-radius: var(--radius); object-fit: cover; }

.platforms { display: flex; flex-wrap: wrap; gap: 10px; }
.platform {
  display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px 9px 12px; border-radius: 999px;
  font-weight: 600; font-size: 15px; background: rgba(0, 0, 0, .25); border: 1px solid var(--line); opacity: .55; transition: opacity .2s;
}
.platform .ico { width: 18px; height: 18px; }
.platform em { font-style: normal; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.platform.on { opacity: 1; border-color: color-mix(in srgb, var(--brand) 55%, transparent); box-shadow: 0 0 24px -6px var(--brand); }
.platform.on em { color: var(--brand); }
.platform:hover { opacity: 1; }

.block { margin-top: 44px; }
.page-head + .block { margin-top: 16px; }  /* .page-main je flex → okraje se nesčítají do sebe */
.block-title { font-size: 24px; font-weight: 700; margin-bottom: 18px; }
/* levý panel (sítě, Discord, Pro suby, © a Soukromí) na všech stránkách; na telefonu a na Domů při vysílání dole */
.page-layout { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: clamp(28px, 4vw, 96px); align-items: start; }
.page-main { min-width: 0; display: flex; flex-direction: column; }
.page-main > * { flex: none; }
.has-side > .foot { display: none; }  /* na počítači je © a Soukromí dole v panelu */
.content.has-side { padding-bottom: 8px; }  /* patička je v panelu – dole jen malá rezerva, ať krátká stránka nejde posouvat */
.side-foot { margin: 18px 10px 0; font-size: 12px; line-height: 1.7; color: #6d6788; }
.side-foot a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.side-foot a:hover { color: var(--text); }
.side-socials { position: sticky; top: 48px; display: flex; flex-direction: column; gap: 4px; }
.soc { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; font-size: 14px; font-weight: 600;
  color: var(--muted); border: 1px solid transparent; transition: color .2s, background .2s, border-color .2s; }
.soc .ico { width: 18px; height: 18px; }
.soc-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.soc-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.soc em { font-style: normal; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #6d6788; }
.soc.on em { color: var(--brand); }
.soc.on { color: var(--text); border-color: color-mix(in srgb, var(--brand) 45%, transparent); }
.soc:hover { color: var(--text); background: color-mix(in srgb, var(--brand) 12%, transparent); }
.soc-sep { height: 1px; margin: 8px 10px; background: var(--line); }
@media (max-width: 800px) {
  .page-layout { grid-template-columns: minmax(0, 1fr); }
  .has-side > .foot { display: block; }
  .side-foot { display: none; }
  .side-socials { order: 2; position: static; flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 12px; }
  .side-socials .soc-sep { display: none; }
  .side-socials .soc { padding: 10px; background: var(--card); border-color: var(--line); }
  .side-socials .soc.on { border-color: color-mix(in srgb, var(--brand) 55%, transparent); }
  .side-socials .soc-text { display: none; }
  .side-socials .soc .ico { width: 22px; height: 22px; }
}

/* náhledy Soutěže a Top gifterů */
.teasers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 20px; align-items: stretch; }  /* běžící soutěž stejně vysoká jako gifteři */
.teasers.ended { align-items: start; }  /* ukončená soutěž jen tak vysoká, jak potřebuje */
.teasers:not(.ended) .teaser-contest .teaser-body { flex: 1; }
.teasers:not(.ended) .teaser-contest .teaser-body > .btn { margin-top: auto; }
@media (max-width: 1100px) { .teasers { grid-template-columns: minmax(0, 1fr); } }
.teaser { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.teaser h2 { margin: 0; font-size: 20px; }
.teaser .eyebrow { margin: 0; }
.teaser-contest { position: relative; overflow: hidden; isolation: isolate; }
.teaser-bg { position: absolute; z-index: -1; right: 0; bottom: 0; width: 55%; max-width: 420px; height: 75%; object-fit: cover; object-position: center; opacity: .3; pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 110% 110% at 100% 100%, #000 55%, transparent 92%); mask-image: radial-gradient(ellipse 110% 110% at 100% 100%, #000 55%, transparent 92%); }
.teaser-body { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; min-width: 0; flex: 1; }
.teaser-end { margin: 0; color: var(--gold); font-weight: 600; font-size: 14px; }
.teaser-prizes { margin: -4px 0 0; color: var(--teal); font-weight: 600; font-size: 15px; }
.teaser-timer { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin: 4px 0 2px; }
.teaser-timer .teaser-end { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; white-space: nowrap; }
.teaser-timer .countdown, .teaser-timer .countdown span { flex: none; justify-content: flex-start; }
.teaser-timer .countdown { gap: 18px; }
.teaser-timer .countdown span { min-width: 0; padding: 0; justify-items: center; }
.teaser-timer .countdown b { font-size: 34px; }
/* běžící soutěž na počítači: obsah vyplní okýnko (stejně vysoké jako Top gifteři) */
@media (min-width: 801px) {
  .teasers:not(.ended) .teaser-contest .teaser-body { gap: 14px; }
  .teasers:not(.ended) .teaser-contest h2 { font-size: 30px; line-height: 1.15; }
  .teasers:not(.ended) .teaser-contest .teaser-prizes { font-size: 18px; max-width: 34em; }
  .teasers:not(.ended) .teaser-contest .teaser-timer { margin: auto 0; }
  .teasers:not(.ended) .teaser-contest .teaser-timer .teaser-end { font-size: 13px; }
  .teasers:not(.ended) .teaser-contest .teaser-timer .countdown { gap: 24px; }
  .teasers:not(.ended) .teaser-contest .teaser-timer .countdown b { font-size: 56px; }
  .teasers:not(.ended) .teaser-contest .teaser-timer .countdown small { font-size: 13px; }
}
.teaser-note { margin: 0; color: var(--muted); font-size: 14px; }
.teaser-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.mini-board { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; width: 100%; }
.mini-board li { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 8px 12px;
  border-radius: 12px; background: rgba(255, 255, 255, .03); border: 1px solid rgba(255, 255, 255, .04); }
.mb-rank { color: var(--muted); font-weight: 700; font-variant-numeric: tabular-nums; }
.mini-board li:first-child .mb-rank { color: var(--gold); }
.mb-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mb-val { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mb-val small { color: var(--muted); font-weight: 500; font-size: 12px; }
.gift-tabs { display: flex; gap: 6px; }
.gift-tabs button { padding: 6px 12px; border-radius: 999px; font: inherit; font-weight: 600; font-size: 13px; color: var(--muted);
  background: rgba(0, 0, 0, .25); border: 1px solid var(--line); cursor: pointer; transition: color .2s, border-color .2s; }
.gift-tabs button.on { color: var(--text); border-color: color-mix(in srgb, var(--brand) 60%, transparent); box-shadow: 0 0 18px -8px var(--brand); }
.gift-pane { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.gift-panes { display: grid; flex: 1; }  /* všechny seznamy na sobě: karta má výšku nejdelšího, přepnutí ji nemění */
.gift-panes > .gift-pane { grid-area: 1 / 1; }
.gift-pane > .btn { margin-top: auto; }  /* „Celý žebříček“ vždy dole, i u kratšího seznamu */
.gift-pane[hidden] { display: flex; visibility: hidden; }


.slot-note { margin: 4px 0 0; font-size: 13px; color: #8d86a8; }

/* ---------- Soutěž ---------- */
/* text vlevo, obrázek výhry volně vpravo nahoře – průhledný, okraje se rozplývají, zasahuje i za karty pod ním */
.prize { position: relative; z-index: 0; padding: 8px 0 clamp(24px, 4vw, 48px); }
.prize-body { position: relative; z-index: 2; max-width: min(680px, 58%); display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.prize:not(.has-img) .prize-body { max-width: 760px; }
.prize-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.prize-badge { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: rgba(11, 9, 24, .55); backdrop-filter: blur(8px);
  color: var(--gold); font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; border: 1px solid rgba(255, 213, 107, .35); }
.prize-end { letter-spacing: .06em; }
/* odpočet vedle dárečku: jiný než zlaté „Hraje se o“ – tyrkysový, větší, ručička hodin tiká */
.prize-foot .prize-end { padding: 10px 18px 10px 14px; gap: 10px; font-size: 15px; color: var(--text); text-transform: none; letter-spacing: .02em;
  background: rgba(45, 226, 208, .14); border: 1px solid rgba(45, 226, 208, .55); }
.prize-foot .end-ico { width: 20px; height: 20px; color: var(--teal); }
.prize-foot .end-ico .hand { transform-origin: 12px 13px; animation: end-tick 4s steps(8) infinite; }
@keyframes end-tick { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .prize-foot .end-ico .hand { animation: none; } }
.end-ico { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.prize-body h1 { font-size: clamp(32px, 4.4vw, 60px); font-weight: 800; letter-spacing: -.01em; line-height: 1.05; white-space: nowrap; }  /* název na jednom řádku, klidně přes obrázek */
.prize-foot { display: flex; align-items: center; gap: 32px; margin-top: 18px; }
.prize-sub { color: var(--gold); font-weight: 600; margin: 0; }
.prize-body p { margin: 0; color: var(--muted); max-width: 36em; }
.prize-art { position: absolute; z-index: -1; top: -48px; right: calc(-1 * max(34px, 50vw - 1093px));  /* pravá hrana k menu vpravo */ width: min(56%, 1400px); pointer-events: none; }
.prize-img { display: block; width: auto; max-width: 100%; height: auto; max-height: 700px; margin-left: auto;  /* nižší, ať moc nezasahuje do zapojených; okraje se rozplývají kolem samotného obrázku */ opacity: var(--art-o, .55);
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 35%, transparent 100%); mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 35%, transparent 100%); }
.contest-grid { position: relative; z-index: 1; }
.contest-grid .card { backdrop-filter: blur(6px); }  /* obrázek za kartami nepřekáží čtení */
@media (max-width: 800px) {
  .prize { padding-top: 0; }
  .prize-body { max-width: none; }
  .prize-body h1 { white-space: normal; }
  .prize-body h1, .prize-body p { overflow-wrap: anywhere; }  /* dlouhý název výhry bez mezer nepřeteče z obrazovky */
  .prize-art { top: -24px; right: -16px; width: 85%; }
  .prize-img { opacity: .35; max-height: 420px; }
}
.prize-gift { width: 72px; animation: float 5s ease-in-out infinite; }  /* bez tmavého stínu */

.teaser h2, .teaser-note { overflow-wrap: anywhere; }
.contest-grid { display: flex; flex-direction: column; gap: 20px; margin-top: 24px; }  /* zapojení jen tak vysoké, kolik je lidí */
/* pravidla + dáreček a odpočet; do průhledna se doprava ztrácí jen podklad a rámeček karty, obsah zůstává plný */
.card.how { position: relative; width: fit-content; max-width: 100%; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 32px; align-items: center;
  padding-right: 0; column-gap: 96px; border: 0; backdrop-filter: none;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.045) 30.0%, rgba(255, 255, 255, 0.0449) 34.4%, rgba(255, 255, 255, 0.0443) 38.8%, rgba(255, 255, 255, 0.0428) 43.1%, rgba(255, 255, 255, 0.0403) 47.5%, rgba(255, 255, 255, 0.0369) 51.9%, rgba(255, 255, 255, 0.0326) 56.2%, rgba(255, 255, 255, 0.0277) 60.6%, rgba(255, 255, 255, 0.0225) 65.0%, rgba(255, 255, 255, 0.0173) 69.4%, rgba(255, 255, 255, 0.0124) 73.8%, rgba(255, 255, 255, 0.0081) 78.1%, rgba(255, 255, 255, 0.0047) 82.5%, rgba(255, 255, 255, 0.0022) 86.9%, rgba(255, 255, 255, 0.0007) 91.2%, rgba(255, 255, 255, 0.0001) 95.6%, rgba(255, 255, 255, 0.0) 100.0%); }  /* plynulé (smoothstep) zprůhlednění */
.card.how::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.09) 25.0%, rgba(255, 255, 255, 0.0898) 29.1%, rgba(255, 255, 255, 0.0886) 33.1%, rgba(255, 255, 255, 0.0856) 37.2%, rgba(255, 255, 255, 0.0807) 41.2%, rgba(255, 255, 255, 0.0738) 45.3%, rgba(255, 255, 255, 0.0652) 49.4%, rgba(255, 255, 255, 0.0554) 53.4%, rgba(255, 255, 255, 0.045) 57.5%, rgba(255, 255, 255, 0.0346) 61.6%, rgba(255, 255, 255, 0.0248) 65.6%, rgba(255, 255, 255, 0.0162) 69.7%, rgba(255, 255, 255, 0.0093) 73.8%, rgba(255, 255, 255, 0.0044) 77.8%, rgba(255, 255, 255, 0.0014) 81.9%, rgba(255, 255, 255, 0.0002) 85.9%, rgba(255, 255, 255, 0.0) 90.0%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
.card.how h2 { grid-column: 1 / -1; }
.card.how .prize-foot { margin: 0 150px 0 0; justify-self: center; }  /* karta kousek za odpočtem; viditelně zmizí v jeho půlce */
@media (min-width: 2200px) { .card.how { column-gap: 200px; } }  /* 2K: dáreček s odpočtem dál od pravidel */

.card { padding: 24px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.card h2 { font-size: 20px; font-weight: 700; margin-bottom: 16px; }
.rules { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.rules li { display: flex; gap: 12px; color: var(--muted); }
.rules li::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 9px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 10px var(--teal); }

.table-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.table-head h2 { margin: 0; }
.count { color: var(--muted); font-size: 14px; font-weight: 500; margin-left: 6px; }
.search { flex: 1 1 180px; max-width: 260px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line);
  background: rgba(0, 0, 0, .25); color: var(--text); font: inherit; font-size: 15px; outline: none; }
.search:focus { border-color: var(--teal); }
.board { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; }
.board li { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 14px; background: rgba(255, 255, 255, .03); border: 1px solid rgba(255, 255, 255, .04); }
.board .nick { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board .tickets { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-variant-numeric: tabular-nums; }
.board .tickets small { color: var(--muted); font-weight: 500; font-size: 13px; }
.board li[hidden] { display: none; }
.empty { color: var(--muted); text-align: center; padding: 28px 0; }

.foot { margin-top: auto; padding-top: 56px; color: #6d6788; font-size: 13px; }

@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(45, 226, 208, .6); } 70% { box-shadow: 0 0 0 12px rgba(45, 226, 208, 0); } 100% { box-shadow: 0 0 0 0 rgba(45, 226, 208, 0); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
/* ---------- příjezd obsahu při načtení stránky (časování podle návrhu ve Figmě) ---------- */
@keyframes rise { from { opacity: 0; translate: 0 var(--rise, 24px); } }
.page-main > :not(.home), .content > :not(.page-layout):not(.foot), .home > :not(.teasers), .intro .side-socials, .teasers > .teaser, .hero .status, .countdown > span {
  animation: rise .9s var(--ease-out) both; animation-delay: var(--d, 0s); }
.page-main > :nth-child(1), .content > :nth-child(1), .home > :nth-child(1) { --d: .15s; }
.page-main > :nth-child(2), .content > :nth-child(2), .home > :nth-child(2) { --d: .375s; }
.page-main > :nth-child(3), .content > :nth-child(3) { --d: .6s; }
.page-main > :nth-child(n+4), .content > :nth-child(n+4) { --d: .75s; }
/* levý panel přijede jen při první návštěvě (.intro, stejně jako menu), pak už stojí a animuje se jen obsah */
.side-socials { --d: .3s; --rise: 12px; }
.teasers > .teaser { --rise: 20px; }
.teasers > .teaser:nth-child(1) { --d: .6s; } .teasers > .teaser:nth-child(2) { --d: .72s; }
.hero .status { --d: .375s; --rise: 16px; }
.countdown > span { --rise: 12px; }
.countdown > span:nth-child(1) { --d: .675s; } .countdown > span:nth-child(2) { --d: .765s; }
.countdown > span:nth-child(3) { --d: .855s; } .countdown > span:nth-child(4) { --d: .945s; }
/* tečka u OFFLINE se po příjezdu jednou „nadechne“ */
.is-offline .status-dot { animation: breathe 1.35s ease-in-out 2.1s both; }
@keyframes breathe { 44% { scale: 1.25; } }
/* menu přijede zprava jen při první návštěvě (na telefonu je schované za okrajem) */
@media (min-width: 801px) {
  .intro .menu { animation: menu-in .7s var(--ease-out) .2s both; }
  @keyframes menu-in { from { opacity: 0; translate: 48px 0; } }
}
/* přechod mezi stránkami: menu zůstane, zvýraznění klouže na novou položku */
@view-transition { navigation: auto; }
.menu { view-transition-name: menu; }
::view-transition-group(menu-ind) { animation-duration: .45s; animation-timing-function: cubic-bezier(.34, 1.36, .64, 1); }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .2s; }

@media (prefers-reduced-motion: reduce) { *, ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; transition: none !important; } }

/* ---------- tablet a telefon: menu vyjede zprava ---------- */
@media (max-width: 960px) {
  .card.how { width: 100%; grid-template-columns: 1fr; row-gap: 20px; padding-right: 18px; background: var(--card); }
  .card.how::before { background: var(--line); }
  .card.how .prize-foot { justify-self: start; }
}
@media (max-width: 800px) {
  .content, .content.has-side { padding: 28px 16px 24px; }
  /* menu schované za pravým okrajem, ven ho vytáhne malá záložka; na telefonu jen ikony bez bublin */
  .tip { display: none; }
  .menu { right: 12px; transform: translate(calc(100% + 24px), -50%); transition: transform .32s cubic-bezier(.2, .8, .2, 1); }
  .menu-open .menu { transform: translate(0, -50%); }
  .menu-tab {
    display: grid; place-items: center; position: fixed; right: 0; top: 50%; z-index: 35; width: 18px; height: 64px;
    transform: translateY(-50%); padding: 0; border: 1px solid rgba(45, 226, 208, .35); border-right: 0; border-radius: 14px 0 0 14px;
    background: linear-gradient(180deg, rgba(45, 226, 208, .28), rgba(169, 139, 255, .28)); backdrop-filter: blur(10px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, .35); cursor: pointer; transition: opacity .2s, width .2s;
  }
  .menu-tab:active { width: 24px; }
  .menu-tab svg { width: 14px; height: 14px; fill: none; stroke: var(--text); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
  .menu-open .menu-tab { opacity: 0; pointer-events: none; }
  .scrim { position: fixed; inset: 0; z-index: 25; background: rgba(5, 4, 12, .6); backdrop-filter: blur(2px); }
  .hero { grid-template-columns: 1fr; padding: 28px 22px; }
  .status { font-size: 48px; }
  .lead { font-size: 17px; }
  .card { padding: 18px; }
  .search { max-width: none; }
  .board { grid-template-columns: 1fr; }
}

/* ---------- přehrávač (když se vysílá) ---------- */
.player-card { margin-top: 20px; padding: 14px; border-radius: calc(var(--radius) + 6px); background: var(--card); border: 1px solid var(--line); }
.player-tabs { display: flex; gap: 8px; margin-bottom: 12px; }
.player-tabs button { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; font: inherit; font-weight: 600; font-size: 15px;
  color: var(--muted); background: rgba(0, 0, 0, .25); border: 1px solid var(--line); cursor: pointer; transition: color .2s, border-color .2s; }
.player-tabs button .ico { width: 16px; height: 16px; }
.player-tabs button.on { color: var(--text); border-color: color-mix(in srgb, var(--brand) 60%, transparent); box-shadow: 0 0 20px -8px var(--brand); }
.player { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 12px; align-items: stretch; }
.player-main { display: grid; align-content: start; gap: 8px; min-width: 0; }
.player-pane[hidden] { display: none; }
.player-pane { display: grid; gap: 8px; }
.player[hidden] { display: none; }
.player-video { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #000; }
.player iframe { width: 100%; height: 100%; border: 0; display: block; }
.player-video iframe { position: absolute; inset: 0; }
.player-out { grid-column: 1 / -1; justify-self: end; font-size: 13px; color: var(--muted); }
.player-out:hover { color: var(--text); }
@media (max-width: 1100px) { .player { grid-template-columns: 1fr; } }

/* ---------- tlačítka ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 18px; border-radius: 14px; font-family: inherit; font-weight: 600; font-size: 15px; cursor: pointer;
  color: #0b0918; background: linear-gradient(90deg, var(--teal), #9ffcf0); border: 0; transition: transform .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 26px -10px var(--teal); }
.btn.ghost { color: var(--text); background: var(--card); border: 1px solid var(--line); }
.btn.ghost:hover { box-shadow: none; background: var(--card-2); }
.btn.small { padding: 8px 14px; font-size: 14px; border-radius: 12px; }

/* ---------- další stream + odpočet ---------- */
.next-card { margin-top: 20px; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); grid-template-areas: "info count twitch" "actions count twitch"; gap: 18px 28px; align-items: center;
  padding: clamp(22px, 3vw, 32px); border-radius: calc(var(--radius) + 6px); background: var(--card); border: 1px solid var(--line); }
.next-info { grid-area: info; }
.next-info .eyebrow { margin-bottom: 6px; }
.next-info h2 { font-size: clamp(22px, 2.6vw, 28px); font-weight: 700; }
.next-when { margin: 8px 0 0; color: var(--muted); }
.next-twitch { grid-area: twitch; align-self: stretch; justify-content: center; display: flex; flex-direction: column; gap: 4px; padding-left: 28px; border-left: 1px solid var(--line); }
.next-twitch .eyebrow { margin: 0 0 2px; font-size: 11px; color: var(--text); }
.next-twitch b { font-size: 15px; font-weight: 600; }
.next-twitch b { overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.next-twitch span { font-size: 14px; color: var(--text); }
.next-twitch .next-twitch-game { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; color: var(--teal); }
.next-twitch-game svg { width: 15px; height: 15px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.next-twitch-link { margin-top: 6px; font-size: 13px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, .25); align-self: flex-start; }
.next-twitch-link:hover { color: var(--teal); }
.next-actions { grid-area: actions; display: flex; flex-wrap: wrap; gap: 10px; }
.countdown { grid-area: count; display: flex; gap: 10px; }
.countdown span { display: grid; justify-items: center; min-width: 64px; padding: 4px 6px; }
.countdown b { font-size: 40px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #fff, #9ffcf0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.countdown small { margin-top: 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.countdown span[hidden] { display: none; }
.countdown.soon b { color: var(--teal); }
.next-empty { margin: 0; color: var(--muted); }

/* ---------- stránka Rozvrh ---------- */
.page-head { margin-bottom: 28px; }
.page-head h1 { font-size: clamp(38px, 6vw, 56px); font-weight: 800; letter-spacing: -.01em; }
.page-head .lead { margin: 10px 0 0; }
.schedule { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.slot { display: grid; grid-template-columns: 96px 1fr auto; gap: 20px; align-items: center; padding: 18px 20px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--line); }
.slot.first { border-color: rgba(45, 226, 208, .35); background: linear-gradient(90deg, rgba(45, 226, 208, .1), var(--card) 60%); }
.slot-date { display: grid; justify-items: center; padding: 10px 0; border-radius: 16px; background: rgba(0, 0, 0, .25); }
.slot-date b { font-size: 22px; font-weight: 800; white-space: nowrap; }
.slot-date span { font-size: 13px; color: var(--muted); }
.slot-main h2 { font-size: 19px; font-weight: 700; }
.slot-main p { margin: 4px 0 0; color: var(--muted); }
.slot-actions { display: flex; gap: 8px; }

@media (max-width: 800px) {
  .next-card { grid-template-columns: 1fr; grid-template-areas: "info" "count" "actions" "twitch"; }
  .next-twitch { padding: 16px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .countdown { justify-content: space-between; gap: 6px; }
  .countdown span { flex: 1; min-width: 0; padding: 4px; }
  .countdown b { font-size: 34px; }
  .slot { grid-template-columns: 72px 1fr; gap: 14px; padding: 14px; }
  .slot-date b { font-size: 17px; }
  .slot-actions { grid-column: 1 / -1; }
  .next-actions .btn { flex: 1; }
  .slot-actions .btn { flex: 1; }
}

/* ---------- Příkazy ---------- */
.cmd-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 18px; }
.cmd-tools .search { flex: 1 1 220px; max-width: 320px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 8px 14px; border-radius: 999px; font: inherit; font-size: 14px; font-weight: 600; color: var(--muted); background: var(--card); border: 1px solid var(--line); cursor: pointer; transition: color .2s, border-color .2s, background .2s; }
.chip:hover { color: var(--text); }
.chip.on { color: var(--text); border-color: rgba(45, 226, 208, .45); background: rgba(45, 226, 208, .12); }
.cmds { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.cmd { display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.cmd[hidden] { display: none; }
.cmd p { margin: 0; color: var(--muted); flex: 1; }
.cmd-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cmd-name { position: relative; padding: 6px 12px; border-radius: 10px; font: 600 16px/1.3 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  color: var(--teal); background: rgba(45, 226, 208, .1); border: 1px solid rgba(45, 226, 208, .25); cursor: copy; text-align: left; }
.cmd-name.copied::after { content: "Zkopírováno"; position: absolute; left: 0; top: calc(100% + 6px); padding: 3px 8px; border-radius: 8px; font: 600 12px Jost, sans-serif; color: #0b0918; background: var(--teal); white-space: nowrap; }
.play { flex: none; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255, 122, 217, .4); background: rgba(255, 122, 217, .12); color: var(--pink); cursor: pointer; transition: transform .2s, box-shadow .2s; }
.play svg { width: 18px; height: 18px; fill: currentColor; margin-left: 2px; }
.play:hover { transform: scale(1.06); box-shadow: 0 0 22px -6px var(--pink); }
.play.on { animation: pulse-pink 1.2s infinite; }
.cmd-foot { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.tag { padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--muted); background: rgba(255, 255, 255, .05); border: 1px solid var(--line); }
.tag.gold { color: var(--gold); border-color: rgba(255, 213, 107, .3); }
.foot-note { margin-top: 18px; font-size: 13px; color: #6d6788; }
@keyframes pulse-pink { 0% { box-shadow: 0 0 0 0 rgba(255, 122, 217, .55); } 70% { box-shadow: 0 0 0 12px rgba(255, 122, 217, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 122, 217, 0); } }
@media (max-width: 800px) { .cmd-tools .search { max-width: none; } .cmds { grid-template-columns: 1fr; } }

/* ---------- Setup ---------- */
.setup-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.setup-title { display: flex; align-items: center; gap: 10px; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.teal { background: var(--teal); box-shadow: 0 0 12px var(--teal); }
.dot.pink { background: var(--pink); box-shadow: 0 0 12px var(--pink); }
.specs { margin: 0; display: grid; }
.specs div { display: grid; grid-template-columns: 130px 1fr; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); }  /* Setup se ve Full HD vejde bez posouvání */
.specs div:first-child { border-top: 0; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; font-weight: 600; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.buy { font-size: 13px; font-weight: 700; color: var(--gold); padding: 3px 10px; border-radius: 999px; border: 1px solid rgba(255, 213, 107, .35); }
.buy:hover { background: rgba(255, 213, 107, .1); }
.downloads { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.download { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); transition: transform .2s, border-color .2s; }
.download:hover { transform: translateY(-2px); border-color: rgba(45, 226, 208, .4); }
.download svg { flex: none; width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: rgba(45, 226, 208, .12); fill: none; stroke: var(--teal); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.download b { display: block; }
.download small { color: var(--muted); font-size: 14px; }
.download.locked { opacity: .75; cursor: not-allowed; }
.download.locked:hover { transform: none; border-color: var(--line); }
.download.locked svg { stroke: var(--pink); background: rgba(255, 122, 217, .12); }
.lock-tag { display: block; margin-top: 4px; font-size: 12px; font-style: normal; font-weight: 700; letter-spacing: .04em; color: var(--pink); }
.sub-note { margin: 0 0 12px; color: var(--muted); }
.sub-login { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.sub-login .btn { font-size: 13px; padding: 7px 12px; }
.sub-login svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
/* dvě strany vedle sebe: nadpis, úvod a soubory na obou stranách ve stejné výšce (subgrid) */
.downloads-split.two { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; align-items: start; margin-top: 32px; }
.downloads-split.two .block { margin-top: 0; min-width: 0; display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 0; }
.dl-intro { margin-top: 14px; }
.dl-intro .sub-note { margin-bottom: 10px; font-size: 14px; }
.downloads-split.two .download { min-height: 92px; }
@media (max-width: 800px) { .downloads-split.two { grid-template-columns: 1fr; row-gap: 0; } .downloads-split.two .block + .block { margin-top: 32px; } }
@media (max-width: 800px) { .specs div { grid-template-columns: 110px 1fr; } }

/* ---------- Domů při vysílání: kompaktní hlavička místo velké karty ---------- */
.live-head { display: flex; align-items: center; gap: 16px; min-width: 0; }
.live-badge { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border-radius: 10px; font-size: 13px; font-weight: 800; letter-spacing: .14em;
  color: #0b0918; background: linear-gradient(90deg, var(--teal), #9ffcf0); box-shadow: 0 0 24px -6px var(--teal); }
.live-badge i { width: 8px; height: 8px; border-radius: 50%; background: #0b0918; animation: blink 1.4s infinite; }
.live-text { min-width: 0; }
.live-text h1 { font-size: clamp(18px, 2vw, 22px); font-weight: 700; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 4px 0 0; font-size: 14px; color: var(--muted); }
.live-meta span + span::before { content: "·"; margin-right: 14px; }
.player-head .player-tabs, .player-head .platform { margin: 0; flex: none; }
.player-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 4px 4px 14px; }
.player-tools { display: flex; align-items: center; gap: 10px; flex: none; }
.kino-btn { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; cursor: pointer;
  font: inherit; font-weight: 600; font-size: 15px; color: var(--muted); background: rgba(255, 255, 255, .04); border: 1px solid var(--line);
  transition: color .2s, border-color .2s, background .2s; }
.kino-btn:hover, .kino-btn[aria-pressed="true"] { color: var(--text); border-color: color-mix(in srgb, var(--teal) 55%, transparent); }
.kino-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.kino-btn .kino-close, .kino .kino-btn .kino-open { display: none; }
.kino .kino-btn .kino-close { display: block; }
/* kino: karta přehrávače přes celé okno, chat vpravo (na úzké obrazovce pod videem) */
body.kino { overflow: hidden; }
body.kino .home, body.kino .home > * { animation: none !important; translate: none !important; }  /* příjezd stránky by držel fixed uvnitř .home */
body.kino .player-card { position: fixed; inset: 0; z-index: 50; margin: 0; padding: 10px 12px 12px; border: 0; border-radius: 0;
  display: flex; flex-direction: column; background: var(--bg); }
body.kino .player-head { padding: 0 4px 10px; }
body.kino .player { flex: 1; min-height: 0; grid-template-columns: minmax(0, 1fr) 380px; }
body.kino .player-main { min-height: 0; align-content: stretch; }
body.kino .player-pane:not([hidden]) { min-height: 0; height: 100%; grid-template-rows: minmax(0, 1fr) auto; }
body.kino .player-video { aspect-ratio: auto; min-height: 0; }
@media (max-width: 1100px) {
  body.kino .player-card { bottom: auto; height: 100dvh; }  /* dvh: bez lišty prohlížeče na telefonu */
  body.kino .player { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); gap: 8px; }
  body.kino .player-pane:not([hidden]) { height: auto; }
  body.kino .player-video { aspect-ratio: 16 / 9; }
  body.kino .player-out { display: none; }
  body.kino .mchat { height: auto; min-height: 0; }  /* chat vyplní zbytek obrazovky, políčko pro psaní zůstane vidět */
}
@media (max-width: 800px) {
  /* kino na telefonu: hlavička v jednom řádku (LIVE + název), pod ní přepínač – víc místa pro chat */
  body.kino .player-card { padding: 6px 8px 8px; }
  body.kino .player-head { gap: 6px; padding: 0 0 6px; }
  body.kino .live-head { gap: 8px; }
  body.kino .live-badge { padding: 4px 8px; font-size: 11px; }
  body.kino .live-text h1 { font-size: 15px; white-space: nowrap; }
  body.kino .live-meta { display: none; }
  body.kino .player-head .player-tabs button, body.kino .kino-btn { padding: 6px 10px; }
}
@keyframes blink { 50% { opacity: .25; } }
@media (max-width: 800px) {
  .player-head { flex-direction: column; align-items: stretch; }
  .live-text h1 { white-space: normal; }
  .player-head .player-tabs button { flex: 1; justify-content: center; }
  .player-head .platform { align-self: flex-start; }
  .player-tools { min-width: 0; }
  .player-tools .player-tabs { flex: 1; min-width: 0; gap: 6px; }
  .player-head .player-tabs button { min-width: 0; padding: 8px 10px; gap: 6px; font-size: 14px; }
  .player-video .player-consent { gap: 8px; padding: 12px; }
  .player-video .player-consent > .ico { width: 32px; height: 32px; }
  .player-video .player-consent p, .player-video .player-consent label { font-size: 12px; }
  .kino-btn span { display: none; }  /* na telefonu jen ikona */
  .kino-btn { padding: 8px 10px; margin-left: auto; }
}

/* ---------- profil: spodní část pilulky, odlišená jemným přechodem ---------- */
.menu-profile { position: relative; margin: 14px -10px -10px; padding: 18px 10px 10px; border-radius: 0 0 999px 999px;
  background: linear-gradient(180deg, transparent, rgba(255, 122, 217, .1)); }
.menu-profile::before { content: ""; position: absolute; left: 14px; right: 14px; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .22), transparent); }
.profile-btn { position: relative; display: grid; place-items: center; width: 52px; height: 52px; padding: 0; border-radius: 50%; cursor: pointer;
  color: var(--muted); background: rgba(255, 255, 255, .05); border: 1px solid var(--line); transition: transform .25s, color .25s, box-shadow .25s; }
.profile-btn svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.profile-btn:hover, .profile-btn[aria-expanded="true"] { color: var(--text); transform: scale(1.06); box-shadow: 0 0 22px -6px var(--pink); }
.profile-btn img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.profile-btn.in { border: 2px solid rgba(255, 122, 217, .55); }
.profile-plat { position: absolute; right: -3px; bottom: -3px; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%;
  background: #120f24; border: 1.5px solid var(--bg); }
.profile-plat .ico { width: 11px; height: 11px; }
.menu-profile .profile-btn:hover .tip { opacity: 1; transform: translate(0, -50%); filter: none; }
.profile-btn[aria-expanded="true"] { border-color: rgba(255, 122, 217, .45); }
.pop-open .profile-btn .tip { opacity: 0 !important; }

/* bublina profilu */
.profile-pop { position: fixed; right: 112px; z-index: 45; isolation: isolate; width: 340px; max-height: calc(100vh - 32px); overflow: auto; padding: 22px;
  border-radius: 26px; border: 1px solid var(--line); color: var(--text);
  background: linear-gradient(180deg, rgba(34, 28, 64, .97), rgba(18, 15, 36, .98)); backdrop-filter: blur(20px);
  box-shadow: 0 30px 70px -18px rgba(0, 0, 0, .75), inset 0 1px 0 rgba(255, 255, 255, .07);
  transform-origin: 100% 100%; animation: pop-in .4s var(--ease-out); }
.profile-pop[hidden] { display: none; }
/* bublina vyjede od tlačítka profilu (zaostří se a zvětší), zavírá se stejnou cestou zpět */
.profile-pop.closing { animation: pop-out .25s var(--ease-out) forwards; pointer-events: none; }
@keyframes pop-in { from { opacity: 0; transform: translateX(10px) scale(.96); filter: blur(6px); } }
@keyframes pop-out { to { opacity: 0; transform: translateX(10px) scale(.96); filter: blur(6px); } }

/* přihlášení: pejsek v pravém horním rohu bubliny – uříznuté pravé ucho na pravé hraně, špička ucha (11,6 % výšky)
   na horní hraně; horní hrana spodní tlapky (84 %) lícuje s horní hranou nadpisu „Přihlas se“ */
.profile-pop { --dog: 128px; }
.pop-login { position: relative; display: grid; gap: 10px; text-align: center; justify-items: center; padding-top: calc(var(--dog) * (.84 - .116) - 22px); }
.pop-dog.top { top: calc(var(--dog) * -.116); bottom: auto; right: 0; width: var(--dog); opacity: .3;
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 70% 35%, #000 50%, transparent 90%); mask-image: radial-gradient(ellipse 80% 80% at 70% 35%, #000 50%, transparent 90%); }
/* pejsek zapuštěný do pozadí bubliny, jako ikony u sítí */
.pop-dog { position: absolute; z-index: -1; right: 0; bottom: 0; width: 170px; opacity: .13; pointer-events: none;; -webkit-mask-image: radial-gradient(closest-side at 62% 58%, #000 62%, transparent 100%); mask-image: radial-gradient(closest-side at 62% 58%, #000 62%, transparent 100%); }
.pop-login h2 { font-size: 24px; font-weight: 800; }
.pop-login p { margin: 0 0 6px; color: var(--muted); font-size: 15px; }
.login-btn { width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 13px 16px; border-radius: 14px; font-weight: 700;
  color: var(--text); background: color-mix(in srgb, var(--brand) 16%, transparent); border: 1px solid color-mix(in srgb, var(--brand) 45%, transparent); transition: background .2s, transform .2s; }
.login-btn:hover { transform: translateY(-1px); background: color-mix(in srgb, var(--brand) 26%, transparent); }
.login-btn .ico { width: 18px; height: 18px; }
.pop-fine { margin: 6px 0 0; font-size: 12.5px; color: #8a83a6; }

.pop-head { display: flex; align-items: center; gap: 14px; }
.pop-avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255, 122, 217, .55); box-shadow: 0 0 26px -8px var(--pink); }
.pop-head h2 { font-size: 22px; font-weight: 800; }
.pop-head p { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.pop-label { margin: 20px 0 10px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.pop-accounts { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pop-accounts li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); }
.acc-ico { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: color-mix(in srgb, var(--brand) 14%, transparent); }
.acc-ico .ico { width: 17px; height: 17px; }
.acc-name { flex: 1; display: grid; }
.acc-name small { color: var(--muted); font-size: 13px; }
.acc-act { padding: 6px 12px; border-radius: 10px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; color: var(--muted); background: transparent; border: 1px solid var(--line); }
.acc-act.add { color: var(--text); border-color: color-mix(in srgb, var(--brand) 50%, transparent); background: color-mix(in srgb, var(--brand) 12%, transparent); }
.pop-stats { display: grid; gap: 6px; }
.ps-row { display: grid; grid-template-columns: 1fr 88px 88px; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 14px;
  background: rgba(0, 0, 0, .25); border: 1px solid var(--line); }
.ps-row b { font-size: 20px; font-weight: 800; color: var(--teal); text-align: center; font-variant-numeric: tabular-nums; }
.ps-head { padding: 0 14px; background: none; border: 0; }
.ps-head small { font-size: 11.5px; color: var(--muted); line-height: 1.2; text-align: center; }
.ps-name { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.ps-name .ico { width: 16px; height: 16px; }
.ps-total { background: rgba(45, 226, 208, .08); border-color: rgba(45, 226, 208, .3); }
.ps-total b { color: var(--text); }
.pop-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.pop-danger { font: inherit; font-size: 13px; color: #ff7b8a; background: none; border: 0; cursor: pointer; opacity: .8; }
.pop-danger:hover { opacity: 1; text-decoration: underline; }

@media (max-width: 800px) {
  .menu-profile .tip { display: none; }
  .profile-pop { right: 0; left: 0; bottom: 0; top: auto !important; width: auto; max-height: 85vh; border-radius: 26px 26px 0 0; padding-bottom: 28px;
    animation: sheet-in .28s cubic-bezier(.2, .8, .2, 1); }
  @keyframes sheet-in { from { transform: translateY(40px); opacity: 0; } }
  .profile-pop.closing { animation: sheet-out .25s var(--ease-out) forwards; }
  @keyframes sheet-out { to { transform: translateY(40px); opacity: 0; } }
  .pop-open::before { content: ""; position: fixed; inset: 0; z-index: 44; background: rgba(5, 4, 12, .6); backdrop-filter: blur(2px); }
}

/* ---------- přihlášení: zpráva v bublině, nedostupné tlačítko ---------- */
.pop-msg { margin: 0 0 14px; padding: 10px 14px; border-radius: 12px; font-size: 14px; color: var(--text); background: rgba(255, 122, 217, .12); border: 1px solid rgba(255, 122, 217, .35); }
.login-btn.off { opacity: .45; cursor: not-allowed; }
.pop-foot form { display: contents; }
.pop-accounts form { margin: 0; }

/* ---------- aktivní účet v profilu ---------- */
.pop-hint { margin: -4px 0 10px; font-size: 13px; color: var(--muted); }
.pop-accounts li.is-active { border-color: color-mix(in srgb, var(--brand) 55%, transparent); background: color-mix(in srgb, var(--brand) 9%, transparent); }
.acc-active { padding: 5px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .04em; color: var(--brand); border: 1px solid color-mix(in srgb, var(--brand) 45%, transparent); }
.acc-unlink { width: 30px; height: 30px; display: grid; place-items: center; padding: 0; border-radius: 9px; cursor: pointer; color: var(--muted); background: transparent; border: 1px solid transparent; transition: color .2s, border-color .2s; }
.acc-unlink svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.acc-unlink:hover { color: var(--pink); border-color: rgba(255, 122, 217, .35); }

/* ---------- sloučený chat ---------- */
/* výšku určuje přehrávač vedle (height 0 + min-height 100 % = roztáhne se, ale řádek nenatahuje) */
.mchat { position: relative; display: flex; flex-direction: column; height: 0; min-height: 100%;
  border-radius: 16px; overflow: hidden; background: rgba(8, 7, 18, .55); border: 1px solid var(--line); }
.mchat-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px 10px 16px; border-bottom: 1px solid var(--line); }
.mchat-head b { font-size: 15px; }
.mchat-filter { display: flex; gap: 4px; }
.mchat-filter button { width: 30px; height: 30px; display: grid; place-items: center; padding: 0; border-radius: 9px; cursor: pointer;
  background: transparent; border: 1px solid transparent; opacity: .35; transition: opacity .2s, background .2s, border-color .2s; }
.mchat-filter button .ico { width: 15px; height: 15px; }
.mchat-filter button.on { opacity: 1; background: color-mix(in srgb, var(--brand) 12%, transparent); border-color: color-mix(in srgb, var(--brand) 35%, transparent); }
.mchat-list { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; list-style: none; margin: 0; padding: 8px 6px 8px 12px;
  scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .15) transparent; }
.mc { padding: 4px 6px; border-radius: 8px; font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; animation: mc-in .25s ease-out; }
.mc:hover { background: rgba(255, 255, 255, .04); }
.mc-ico { width: 13px; height: 13px; margin-right: 6px; vertical-align: -1px; }
.mc-badge { width: 13px; height: 13px; margin-right: 3px; vertical-align: -1px; }
.b-broadcaster { fill: var(--gold); } .b-mod { fill: var(--teal); } .b-vip { fill: var(--pink); } .b-sub { fill: var(--violet); }
.mc-name { font-weight: 700; margin-right: 6px; }
.mc-name::after { content: ":"; color: var(--muted); font-weight: 400; }
.mc-text { color: #e6e2f3; }
.mc-emote { display: inline-block; height: 26px; width: auto; margin: -4px 1px; vertical-align: middle; }
.mc-reply { display: inline-grid; place-items: center; width: 22px; height: 18px; margin-left: 4px; vertical-align: -3px; border-radius: 6px;
  color: var(--muted); opacity: .55; transition: opacity .2s, color .2s, background .2s; }
.mc-reply svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mc:hover .mc-reply, .mc-reply:focus-visible { opacity: 1; }
.mc-reply:hover { color: #ff5b5b; background: rgba(255, 59, 59, .12); }
.hide-twitch .s-twitch, .hide-kick .s-kick, .hide-youtube .s-youtube { display: none; }
.mchat-pins { list-style: none; margin: 0; padding: 8px 10px; display: grid; gap: 6px; border-bottom: 1px solid var(--line);
  background: rgba(45, 226, 208, .06); }
.mchat-pins[hidden] { display: none; }
.mc-pinned { cursor: pointer; animation: none; background: var(--card); border: 1px solid rgba(45, 226, 208, .25);
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.mc-pinned.open { display: block; }
.mc-pin-tag { display: inline-grid; vertical-align: -2px; margin-right: 4px; }
.mc-pin-tag svg { width: 14px; height: 14px; fill: none; stroke: var(--teal); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.mchat-empty { position: absolute; inset: 50% 20px auto; transform: translateY(-50%); margin: 0; text-align: center; font-size: 14px; color: var(--muted); pointer-events: none; }
.mchat-empty[hidden] { display: none; }
.mchat-new { position: absolute; left: 50%; bottom: 58px; transform: translateX(-50%); padding: 7px 14px; border-radius: 999px; border: 0; cursor: pointer;
  font-size: 13px; font-weight: 700; color: #0b0918; background: var(--teal); box-shadow: 0 8px 22px -6px rgba(45, 226, 208, .6); }
.mchat-new[hidden] { display: none; }
.mchat-foot { padding: 10px 14px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.mchat-foot b { color: var(--text); }
@keyframes mc-in { from { opacity: 0; transform: translateY(6px); } }
@media (hover: none) { .mc-reply { opacity: 1; } }
@media (max-width: 1100px) { .mchat { height: 460px; min-height: 0; } }
.mchat-form { display: flex; align-items: center; gap: 8px; margin: 10px 12px 0; padding: 4px 4px 4px 12px; border-radius: 12px;
  background: var(--card); border: 1px solid var(--line); transition: border-color .2s; }
.mchat-form[hidden] { display: none; }
.mchat-form:focus-within { border-color: rgba(45, 226, 208, .5); }
.mchat-as { flex: none; width: 16px; height: 16px; opacity: .7; }
.mchat-input { flex: 1; min-width: 0; padding: 8px 0; background: none; border: 0; outline: 0; color: var(--text); font: inherit; font-size: 14px; }
.mchat-input::placeholder { color: var(--muted); }
.mchat-send { flex: none; width: 34px; height: 34px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 9px;
  cursor: pointer; background: var(--teal); transition: opacity .2s, transform .15s; }
.mchat-send:hover { transform: scale(1.05); }
.mchat-send:disabled { opacity: .4; cursor: default; transform: none; }
.mchat-send svg { width: 17px; height: 17px; fill: none; stroke: #0b0918; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.mchat-form:not([hidden]) + .mchat-foot { border-top: 0; padding-top: 6px; font-size: 12px; }
.mchat-foot.err { color: #ff8a9a; }
.mc-pending { opacity: .5; }
/* suby, gifty, raidy: decentní řádek – menší, tlumený, jemný tyrkysový proužek vlevo */
.mc-event { font-size: 13px; color: var(--muted); background: rgba(45, 226, 208, .05); border-left: 2px solid rgba(45, 226, 208, .45);
  border-radius: 0 8px 8px 0; }
.mc-event .mc-name { font-weight: 600; margin-right: 4px; }
.mc-event .mc-name::after { content: " ·"; }
.mc-event .mc-text { color: var(--muted); }
.mc-ev-ico { display: inline-grid; vertical-align: -2px; margin-right: 3px; }
.mc-ev-ico svg { width: 13px; height: 13px; fill: var(--teal); opacity: .8; }
.ev-gift .mc-ev-ico svg { fill: #ffd56b; }
.mc-link { color: var(--teal); text-decoration: underline; text-underline-offset: 2px; word-break: break-all; }
.mc-link:hover { color: #fff; }
.mchat-link { color: var(--teal); font-weight: 600; }
.mchat-link:hover { text-decoration: underline; }

/* ---------- Cvičíme ---------- */
.ex-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.ex-card { position: relative; overflow: hidden; display: grid; gap: 4px; padding: 26px 28px 28px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--line); }
.ex-card::before { content: ""; position: absolute; inset: auto -30% -60% auto; width: 70%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, var(--ex, rgba(45, 226, 208, .22)), transparent 70%); pointer-events: none; }
.ex-drepy { --ex: rgba(255, 122, 217, .2); }
.ex-pas { --ex: rgba(169, 139, 255, .24); }
.ex-card h2 { font-size: 15px; font-weight: 600; text-transform: uppercase; letter-spacing: .18em; color: var(--muted); }
.ex-num { margin: 6px 0 0; font-size: clamp(56px, 7vw, 84px); font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.ex-num small { margin-left: .18em; font-size: .38em; font-weight: 700; color: var(--muted); letter-spacing: 0; }
.ex-sub { margin: 0; color: var(--muted); }
.ex-card.done .ex-num { color: var(--teal); }
.cmd p.cmd-ex { flex: none; font-size: 14px; }
.cmd-ex code { padding: 2px 7px; border-radius: 7px; font: 500 13.5px ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; color: var(--text); background: rgba(255, 255, 255, .06); }
.tag.plat { color: var(--brand); border-color: color-mix(in srgb, var(--brand) 35%, transparent); }

/* ---------- Žebříčky ---------- */
.lb-platforms { display: flex; gap: 8px; margin-bottom: 18px; }
.lb-plat { display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border-radius: 999px; font-weight: 600; color: var(--muted);
  background: var(--card); border: 1px solid var(--line); text-decoration: none; transition: color .2s, border-color .2s, background .2s; }
.lb-plat .ico { width: 18px; height: 18px; }
.lb-plat:hover { color: var(--text); }
.lb-plat.on { color: var(--text); border-color: color-mix(in srgb, var(--brand) 55%, transparent); background: color-mix(in srgb, var(--brand) 12%, transparent); }
.lb-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; align-items: stretch; }
/* všechny karty stejně vysoké: seznam má pevnou výšku (prázdný i plný), poznámka vždy dole */
.lb-period { display: flex; flex-direction: column; min-height: 300px; }
.lb-period[hidden] { display: none; }
.lb-period .empty { flex: 1; display: grid; place-items: center; margin: 0; }
.lb { display: flex; flex-direction: column; gap: 12px; }
.lb-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; min-height: 36px; }
.lb-head h2 { margin: 0; }
.seg { position: relative; isolation: isolate; display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(0, 0, 0, .25); border: 1px solid var(--line); }
.seg button { padding: 5px 12px; border: 0; border-radius: 999px; font: 600 13px Jost, sans-serif; color: var(--muted); background: none; cursor: pointer; transition: color .3s; }
.seg button.on { color: #0b0918; background: var(--teal); }
/* s JavaScriptem: pilulka je samostatná vrstva a plynule sjíždí (s lehkým „přeskočením“) */
.seg::before { content: ""; position: absolute; z-index: -1; top: 3px; bottom: 3px; left: 0; width: var(--seg-w, 0); translate: var(--seg-x, 0) 0;
  border-radius: 999px; background: var(--teal); box-shadow: 0 0 18px -6px var(--teal); opacity: 0; }
.seg.js::before { opacity: 1; transition: translate .45s cubic-bezier(.34, 1.4, .5, 1), width .45s cubic-bezier(.34, 1.4, .5, 1); }
.seg.js button.on { background: none; }
.lb-list { list-style: none; margin: 0; padding: 0; display: grid; align-content: start; gap: 4px; flex: 1; }
.lb-list li, p.lb-list { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px; background: rgba(0, 0, 0, .2); }
.lb-rank { color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; }
.lb-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.lb-list b { font-variant-numeric: tabular-nums; color: var(--teal); }
.lb-list .top1 { background: linear-gradient(90deg, rgba(255, 213, 107, .2), rgba(0, 0, 0, .2)); }
.lb-list .top1 .lb-rank, .lb-list .top1 b { color: var(--gold); }
.lb-list .top2 { background: linear-gradient(90deg, rgba(210, 214, 230, .16), rgba(0, 0, 0, .2)); }
.lb-list .top2 .lb-rank, .lb-list .top2 b { color: #dfe3f0; }
.lb-list .top3 { background: linear-gradient(90deg, rgba(222, 150, 96, .18), rgba(0, 0, 0, .2)); }
.lb-list .top3 .lb-rank, .lb-list .top3 b { color: #f0aa78; }
.lb-list .lb-me, p.lb-me { box-shadow: inset 0 0 0 1px rgba(45, 226, 208, .55); }
p.lb-mine { margin: 6px 0 0; flex: none; }
.lb .foot-note { margin: auto 0 0; }
.lb-list li.lb-extra { display: none; }  /* 11.–15. místo jen na vysoké obrazovce (2K) */
@media (min-height: 1250px) and (min-width: 1700px) {
  .lb-list li.lb-extra { display: grid; }
  p.lb-mine.in15 { display: none; }  /* jsem mezi 11.–15., řádek je vidět v seznamu */
}

/* ---------- administrace ---------- */
.admin-msg { padding: 12px 16px; border-radius: 12px; margin-bottom: 16px; font-weight: 600; }
.admin-msg.ok { background: rgba(45, 226, 208, .12); color: var(--teal); }
.admin-msg.err { background: rgba(255, 92, 122, .14); color: #ff8fa3; }
.admin-card { display: grid; gap: 14px; margin-bottom: 16px; }
.admin-card h2 { font-size: 20px; }
.admin-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 0; border-top: 1px solid var(--line); }
.admin-label { flex: 1 1 180px; min-width: 0; overflow-wrap: anywhere; }
.admin-label small { display: block; color: var(--muted); }
.admin-input { width: 100%; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(0, 0, 0, .25); color: var(--text); font: inherit; }
.admin-num { width: 110px; }
.admin-form { display: grid; gap: 10px; }
.admin-form label { display: grid; gap: 4px; font-size: 14px; color: var(--muted); }
.admin-form label.admin-check { display: flex; align-items: center; gap: 8px; color: var(--text); }
.admin-form textarea { min-height: 90px; resize: vertical; }
.admin-row details { flex-basis: 100%; }
.admin-row summary { cursor: pointer; color: var(--muted); font-size: 14px; }
.admin-row details[open] summary { margin-bottom: 10px; }
.admin-preview { max-width: 220px; max-height: 160px; border-radius: 12px; object-fit: cover; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table th, .admin-table td { text-align: left; padding: 8px 6px; border-top: 1px solid var(--line); vertical-align: top; overflow-wrap: anywhere; }
.admin-table th { color: var(--muted); font-weight: 600; }
@media (max-width: 600px) { .admin-table thead { display: none; } .admin-table tr { display: grid; padding: 8px 0; border-top: 1px solid var(--line); } .admin-table td { border: 0; padding: 2px 0; } }

/* ---------- Discord: vstupenka v levém panelu sítí (výřezy po stranách), na mobilu a při vysílání pod ikonami ---------- */
.dc-dot { display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: #3ba55d; vertical-align: 1px; animation: dc-pulse 2s infinite; }
@keyframes dc-pulse { 0% { box-shadow: 0 0 0 0 rgba(59, 165, 93, .6); } 70% { box-shadow: 0 0 0 7px rgba(59, 165, 93, 0); } 100% { box-shadow: 0 0 0 0 rgba(59, 165, 93, 0); } }
.dc-ticket { --cut: 8px; display: block; margin-top: 14px; color: var(--text); border-radius: 12px;
  background: linear-gradient(160deg, rgba(88, 101, 242, .22), rgba(88, 101, 242, .07)); border: 1px solid rgba(124, 136, 255, .35);
  -webkit-mask: radial-gradient(circle var(--cut) at 0 50%, transparent 98%, #000) left / 51% 100% no-repeat,
                radial-gradient(circle var(--cut) at 100% 50%, transparent 98%, #000) right / 51% 100% no-repeat;
          mask: radial-gradient(circle var(--cut) at 0 50%, transparent 98%, #000) left / 51% 100% no-repeat,
                radial-gradient(circle var(--cut) at 100% 50%, transparent 98%, #000) right / 51% 100% no-repeat;
  transition: transform .35s var(--ease-out), background .3s; }
.dc-ticket:hover { transform: rotate(-3deg) translateY(-2px); background: linear-gradient(160deg, rgba(88, 101, 242, .32), rgba(88, 101, 242, .1)); }
.dc-ticket .t-main { display: grid; gap: 4px; padding: 11px 16px; }
.t-name { display: flex; align-items: center; gap: 7px; font-weight: 800; font-size: 15px; }
.t-name .ico { width: 18px; height: 18px; background: #8ea1ff; }
.t-seats { font-size: 12px; color: var(--muted); }
@media (max-width: 800px) {
  .side-socials .dc-ticket { flex-basis: 100%; max-width: 240px; margin: 8px auto 0; }
  .side-socials .dc-ticket .t-main { justify-items: center; }
}

/* soubory jen pro suby pod Discordem (vidí je jen sub) */
.side-subfiles { display: grid; gap: 2px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.ssf-title { margin: 0 0 4px 10px; font-size: 10px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--pink); }
.ssf { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 10px; font-size: 13px; font-weight: 600; color: var(--muted); transition: color .2s, background .2s; }
.ssf svg { width: 16px; height: 16px; flex: none; fill: none; stroke: var(--pink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ssf span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ssf:hover { color: var(--text); background: rgba(255, 122, 217, .1); }
.ssf.locked { opacity: .6; }
.ssf.locked:hover { opacity: 1; }
@media (max-width: 800px) { .side-socials .side-subfiles { flex-basis: 100%; max-width: 320px; margin: 10px auto 0; } }

/* přehrávač až po kliknutí (cookies platforem) */
.player-consent { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px; padding: 20px; text-align: center;
  background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--brand, #5865f2) 18%, transparent), transparent 70%), #07060f; }
.player-consent[hidden] { display: none; }
.player-consent > .ico { width: 44px; height: 44px; }
.player-consent p { margin: 0; font-size: 13px; color: var(--muted); }
.player-consent a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.player-consent label { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); cursor: pointer; }
.player-video iframe[hidden] { display: none; }
.foot a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.foot a:hover { color: var(--text); }
.lead.wide { max-width: none; }
.privacy { display: grid; gap: 12px; max-width: 900px; }
.privacy .rules { gap: 8px; }
.privacy .card { padding: 20px 24px; }
.privacy .rules b { color: var(--text); }
.privacy a { color: var(--teal); }
.privacy .rules li { display: block; position: relative; padding-left: 20px; }
.privacy .rules li::before { position: absolute; left: 0; top: 0; }

/* soutěž ukončená: minulá výhra ztlumeně, výherce, pozvánka na další */
.prize-badge.off { color: var(--muted); border-color: var(--line); }
.prize-past { margin: 4px 0 -6px; color: var(--muted); font-weight: 600; letter-spacing: .04em; }
.prize.ended h1 { color: #b9b3d1; }
.prize-winner { color: var(--gold) !important; font-weight: 600; font-size: 18px; }
.prize-winner b { color: var(--text); }
/* výherci: karty po dvou vedle sebe, „výhra – nick“ */
.prize-winners { list-style: none; margin: -2px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; width: 100%; max-width: 620px; }
.prize-winners li { min-width: 0; padding: 12px 16px; border-radius: 16px; color: var(--muted); font-size: 15px; line-height: 1.3;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  background: linear-gradient(135deg, rgba(255, 213, 107, .13), rgba(169, 139, 255, .07) 60%, rgba(255, 255, 255, .02));
  border: 1px solid rgba(255, 213, 107, .28); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06); }
.prize-winners li span { color: var(--teal); }
.prize-winners li b { color: var(--text); font-size: 16px; }
@media (max-width: 420px) { .prize-winners { grid-template-columns: 1fr; } }
.winners-input { min-height: 96px; resize: vertical; }
.edit-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.prize-next { color: var(--text) !important; }
.prize.ended .prize-img { filter: grayscale(.6); opacity: .35; }
.teaser-note b { color: var(--text); }
.admin-note { margin: 0 0 12px; color: var(--muted); font-size: 14px; }
.admin-note b { color: var(--text); }
.teaser-contest.ended .teaser-bg { filter: grayscale(.6); opacity: .2; }

/* Top gifteři: období jako slova v nadpisu, platforma jako ikonky; přepnutí plynule */
.gift-switches { display: flex; align-items: center; gap: 8px; }
.gift-plats { display: flex; gap: 4px; }
.gift-plat { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border-radius: 10px; background: none; border: 1px solid transparent;
  cursor: pointer; opacity: .45; transition: opacity .2s, border-color .2s, background .2s; }
.gift-plat .ico { width: 18px; height: 18px; }
.gift-plat:hover { opacity: .8; }
.gift-plat.on { opacity: 1; border-color: color-mix(in srgb, var(--brand) 55%, transparent); background: color-mix(in srgb, var(--brand) 12%, transparent); }
.gift-pane.enter { animation: gift-in .4s var(--ease-out); }
.gift-pane.enter .mini-board li { animation: gift-in .4s var(--ease-out) both; }
.gift-pane.enter .mini-board li:nth-child(2) { animation-delay: .04s; } .gift-pane.enter .mini-board li:nth-child(3) { animation-delay: .08s; }
.gift-pane.enter .mini-board li:nth-child(4) { animation-delay: .12s; } .gift-pane.enter .mini-board li:nth-child(5) { animation-delay: .16s; }
@keyframes gift-in { from { opacity: 0; translate: 0 8px; } }

/* Domů při vysílání: stejný panel jako vlevo, jen naležato pod obsahem */
.bottom-panel { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 12px; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); }
/* přepážky stejně vysoké jako vstupenka Discordu, ať nevyčnívá */
.bottom-panel .soc-sep { width: 1px; height: 56px; margin: 0 18px; }
.bottom-panel .dc-ticket { margin: 0 6px; }
.bottom-panel .side-subfiles { display: grid; gap: 0; align-self: stretch; align-content: center; margin: 0; padding: 0 0 0 30px; border-top: 0; border-left: 1px solid var(--line); }
.bottom-panel .ssf-title { margin: 0 0 2px 10px; }  /* soubory pod nadpisem „Pro suby“ */
.bottom-panel .side-foot { align-self: stretch; display: flex; flex-direction: column; justify-content: center; margin: 0 0 0 18px; padding-left: 30px; border-left: 1px solid var(--line); }
@media (max-width: 800px) {
  .bottom-panel { gap: 8px; border-top: 0; }
  .bottom-panel .soc-sep, .bottom-panel .side-foot { display: none; }
  .bottom-panel .soc { padding: 10px; background: var(--card); border-color: var(--line); }
  .bottom-panel .soc.on { border-color: color-mix(in srgb, var(--brand) 55%, transparent); }
  .bottom-panel .soc-text { display: none; }
  .bottom-panel .soc .ico { width: 22px; height: 22px; }
  .bottom-panel .dc-ticket { flex-basis: 100%; max-width: 240px; margin: 8px auto 0; }
  .bottom-panel .dc-ticket .t-main { justify-items: center; }
  .bottom-panel .side-subfiles { flex-basis: 100%; max-width: 320px; flex-direction: column; align-items: stretch; margin: 10px auto 0; padding: 14px 0 0; border-left: 0; border-top: 1px solid var(--line); }
}

/* poloha obrázku výhry z administrace (zvlášť Full HD / 2K; na mobilu automaticky) */
@media (min-width: 801px) {
  .prize-art { --art-o: var(--fhd-o, .55); translate: var(--fhd-x, 0px) var(--fhd-y, 0px); scale: var(--fhd-s, 1); transform-origin: right top; }
}
@media (min-width: 2200px) {
  .prize-art { --art-o: var(--qhd-o, .55); translate: var(--qhd-x, 0px) var(--qhd-y, 0px); scale: var(--qhd-s, 1); }
}
.art-edit { position: absolute; z-index: 5; top: 0; right: 0; display: flex; gap: 8px; align-items: center; }
.art-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px 12px; border-radius: 14px; background: rgba(11, 9, 24, .85); border: 1px solid var(--line); backdrop-filter: blur(8px); }
.art-tools[hidden] { display: none; }
.art-tools label { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.art-tools small { flex-basis: 100%; font-size: 12px; color: var(--muted); }
.art-screen { font-size: 13px; font-weight: 700; color: var(--teal); }
.art-editing .prize-art { z-index: 4; pointer-events: auto; cursor: move; outline: 2px dashed var(--teal); outline-offset: 4px; }
.art-handle { display: none; position: absolute; left: -10px; bottom: -10px; width: 20px; height: 20px; border-radius: 50%; background: var(--teal); cursor: nesw-resize; }
.art-editing .art-handle { display: block; }
@media (max-width: 800px) { .art-edit { display: none; } }
.art-edit [hidden] { display: none; }

/* ---------- režim úprav (jen tým; divák nic z toho v HTML nedostane) ---------- */
.edit-bar { position: sticky; top: 0; z-index: 40; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 10px clamp(16px, 4vw, 64px);
  background: rgba(11, 9, 24, .92); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(45, 226, 208, .45); font-size: 14px; }
.edit-bar b { color: var(--teal); letter-spacing: .04em; }
.edit-role { padding: 3px 10px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.edit-msg { font-weight: 600; } .edit-msg.ok { color: var(--teal); } .edit-msg.err { color: #ff8fa3; }
.edit-bar-gap { flex: 1; }
.edit-history { position: relative; }
.edit-history > summary { list-style: none; } .edit-history > summary::-webkit-details-marker { display: none; }
.edit-close { position: sticky; top: 0; float: right; z-index: 1; width: 32px; height: 32px; margin: -6px -6px 0 8px; border-radius: 50%;
  border: 1px solid var(--line); background: #120f22; color: var(--text); font-size: 20px; line-height: 1; cursor: pointer; }
.edit-history-box { position: absolute; right: 0; top: calc(100% + 8px); width: min(720px, 92vw); max-height: 70vh; overflow: auto; padding: 14px;
  border-radius: var(--radius); background: #120f22; border: 1px solid var(--line); box-shadow: 0 20px 50px -10px rgba(0, 0, 0, .7); }
.visits-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 12px; }
.visits-pick .btn.on { border-color: var(--teal); color: var(--teal); }
.visits-pick input[type=date] { width: auto; padding: 5px 8px; color-scheme: dark; }
.visits-nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 6px; }
.visits-nums div { display: grid; gap: 2px; padding: 10px 12px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
.visits-nums b { font-size: 22px; color: var(--teal); font-variant-numeric: tabular-nums; }
.visits-nums span { font-size: 12px; color: var(--muted); }
.visits-table td:not(:first-child), .visits-table th:not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; }
.edit-pop { position: relative; display: inline-block; }
.edit-pop > summary { list-style: none; } .edit-pop > summary::-webkit-details-marker { display: none; }
.edit-btn { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; cursor: pointer;
  color: var(--teal); background: rgba(45, 226, 208, .1); border: 1px dashed rgba(45, 226, 208, .6); }
.edit-btn svg, .edit-icon svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.edit-box { position: absolute; z-index: 35; left: 0; top: calc(100% + 8px); width: min(460px, 86vw); padding: 16px; border-radius: var(--radius);
  background: #120f22; border: 1px solid rgba(45, 226, 208, .45); box-shadow: 0 20px 50px -10px rgba(0, 0, 0, .7); text-align: left; font-weight: 400; }
.edit-item { display: inline-flex; align-items: center; gap: 2px; margin-left: 8px; vertical-align: middle; }
.edit-item form { display: inline-flex; gap: 2px; }
.edit-icon { display: inline-grid; place-items: center; width: 26px; height: 26px; padding: 0; border-radius: 8px; font-size: 12px; cursor: pointer; color: var(--teal);
  background: rgba(45, 226, 208, .08); border: 1px solid rgba(45, 226, 208, .35); }
.edit-icon:disabled { opacity: .3; cursor: default; }
.edit-icon.danger { color: #ff8fa3; border-color: rgba(255, 92, 122, .4); background: rgba(255, 92, 122, .08); }
.edit-item .edit-box { left: auto; right: 0; }
.edit-add { margin-top: 10px; }
.edit-panel { margin: 20px 0; border: 1px dashed rgba(45, 226, 208, .55); background: rgba(45, 226, 208, .05); }
.edit-panel h2 { font-size: 18px; margin-bottom: 10px; }
.edit-tag { margin: 0 0 4px; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); }
.edit-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.edit-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; border-radius: 12px; background: rgba(0, 0, 0, .2); }
.edit-list small { display: block; color: var(--muted); font-size: 12px; }
.edit-inline { grid-template-columns: minmax(0, 320px) auto; align-items: end; }
.prize-body .edit-prize { margin-bottom: 6px; }
.live-edit { margin-bottom: 12px; }  /* během vysílání: úprava textů karty OFFLINE, která teď není vidět */
.edit-prize .edit-box { width: min(560px, 86vw); }
@media (max-width: 800px) { .edit-box { position: fixed; left: 8px !important; right: 8px !important; top: auto; bottom: 8px; width: auto; max-height: 80vh; overflow: auto; } .edit-inline { grid-template-columns: 1fr; } }
/* otevřené okýnko úprav vždy navrchu (i přes karty pod ním) */
.page-main > :has(details[open]), .contest-grid > :has(details[open]), .prize:has(details[open]), .setup-grid > :has(details[open]) { position: relative; z-index: 60; }
.prize:has(details[open]) .prize-art { z-index: -1; }
/* telefon: odpočet se nesmrskne, historie úprav přes celou šířku pod lištou */
.prize-foot .prize-end { white-space: nowrap; }
@media (max-width: 800px) {
  .card.how .prize-foot { margin: 0; gap: 20px; }
  /* okénko se měří od lišty (sticky = výchozí bod), ne od tlačítka: vždy těsně pod ní přes celou šířku,
     i když se lišta zalomí na 2 řádky – tlačítka zůstanou vidět */
  .edit-history { position: static; }
  .edit-history-box { position: absolute; left: 8px; right: 8px; top: calc(100% + 6px); width: auto; max-height: 75dvh; }
}
@media (max-width: 800px) {
  .edit-bar { gap: 8px; padding: 10px 12px; }
  .edit-role { display: none; }
  .edit-msg { order: 9; flex-basis: 100%; }  /* hláška pod tlačítky, Hotovo zůstane nahoře */
}
/* žebříčky (počítač): Celkem i Tento měsíc leží na sobě → karta má výšku delšího seznamu, přepnutí ji nemění */
@media (min-width: 801px) {
  .card.lb { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr auto; row-gap: 12px; }
  .card.lb > .lb-head { grid-row: 1; }
  .card.lb > .lb-period { grid-row: 2; grid-column: 1; }
  .card.lb > .lb-period[hidden] { display: flex; visibility: hidden; }
  .card.lb > .foot-note { grid-row: 3; }
}

/* okýnko Moderátoři v liště režimu úprav */
.mods-add { grid-template-columns: 110px minmax(0, 1fr) auto auto; align-items: center; }
.mods-title { margin: 16px 0 6px; font-size: 13px; color: var(--muted); font-weight: 600; }
.mods-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.mods-list li { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 10px; background: rgba(0, 0, 0, .2); font-weight: 600; }
.mods-list li form { margin-left: auto; }
.mods-list .ico { width: 16px; height: 16px; }
.mods-empty { color: var(--muted); font-weight: 400 !important; background: none !important; }
.mods-note { margin: 12px 0 0; font-size: 12px; color: var(--muted); }
@media (max-width: 800px) { .mods-add { grid-template-columns: 1fr 1fr; } .mods-add .admin-input[name="jmeno"] { grid-column: 1 / -1; } }

/* ---------- stránka /tracker (jen správce): soutěž vlevo, kolo štěstí + historie vpravo, na telefonu pod sebou ---------- */
.tr-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 20px; margin-bottom: 20px; }
.tr-badge { padding: 7px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--gold); background: rgba(255, 213, 107, .1); border: 1px solid rgba(255, 213, 107, .35); }
.tr-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.tr-msg { margin: 0 0 16px; padding: 10px 14px; border-radius: 12px; font-weight: 600; background: var(--card); border: 1px solid var(--line); }
.tr-msg.ok { color: var(--teal); border-color: rgba(45, 226, 208, .35); }
.tr-msg.err { color: #ff8fa3; border-color: rgba(255, 143, 163, .4); }
.tr-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
.tr-main, .tr-side { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.tr-main > .card, .tr-side > .card { min-width: 0; }
.tr-card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 16px; }
.card .tr-card-head h2 { margin: 0; }
.tr-note { margin: 0; font-size: 14px; color: var(--muted); }
.tr-wide { width: 100%; }

/* automatické počítání: vypínač, stav zdrojů, nastavení */
.tr-auto.is-running { border-color: rgba(45, 226, 208, .4); box-shadow: 0 0 0 1px rgba(45, 226, 208, .12); }
.tr-switch { position: relative; display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 8px; border-radius: 999px; cursor: pointer; user-select: none;
  font-size: 14px; font-weight: 600; color: var(--muted); background: rgba(0, 0, 0, .25); border: 1px solid var(--line); }
.tr-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tr-switch .track { position: relative; width: 38px; height: 22px; border-radius: 999px; background: rgba(255, 255, 255, .12); transition: background .2s; flex: none; }
.tr-switch .knob { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #cfc8dc; transition: transform .2s, background .2s; }
.tr-switch input:checked + .track { background: var(--violet); }
.tr-switch input:checked + .track .knob { transform: translateX(16px); background: #fff; }
.tr-switch input:focus-visible + .track { outline: 2px solid var(--teal); outline-offset: 2px; }
.tr-switch.running { color: var(--teal); border-color: rgba(45, 226, 208, .35); }
.tr-switch.running input:checked + .track { background: var(--teal); }
.tr-switch.before { color: var(--gold); }
.tr-switch.after { color: #ff8fa3; }
.tr-auto-grid { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 24px; }
.tr-sources { display: grid; gap: 14px; align-content: start; padding-right: 24px; border-right: 1px solid var(--line); }
.tr-src { display: grid; grid-template-columns: 12px minmax(0, 1fr); column-gap: 8px; align-items: center; font-size: 15px; font-weight: 600; }
.tr-src small { grid-column: 2; font-size: 12px; font-weight: 400; line-height: 1.35; color: var(--muted); overflow-wrap: anywhere; }
.tr-src i { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); }
.tr-src i.dot-ok { background: var(--teal); box-shadow: 0 0 8px var(--teal); }
.tr-src i.dot-error { background: #ff5d6c; }
.tr-src i.dot-stale { background: var(--gold); }
.tr-src i.dot-off { background: #4a4358; }
.tr-connect { grid-column: 2; justify-self: start; margin-top: 8px; }
.tr-auto-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: end; }
.tr-auto-form label, .tr-add label { display: grid; gap: 4px; font-size: 14px; color: var(--muted); }
.tr-suffix { position: relative; display: block; }
.tr-suffix input { padding-right: 42px; }
.tr-suffix em { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-style: normal; font-size: 13px; color: var(--muted); pointer-events: none; }
.admin-input[type="datetime-local"] { min-height: 46px; }

/* účastníci */
.tr-players-title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tr-players-title h2 { margin-right: 6px !important; }
.tr-pill { padding: 3px 11px; border-radius: 999px; font-size: 13px; color: var(--muted); background: rgba(0, 0, 0, .25); border: 1px solid var(--line); }
.tr-pill b { color: var(--text); }
.tr-add { display: flex; align-items: flex-end; gap: 10px; padding: 12px; border-radius: 16px; background: rgba(0, 0, 0, .2); border: 1px solid var(--line); }
.tr-add.is-edit { border-color: rgba(45, 226, 208, .45); box-shadow: 0 0 0 3px rgba(45, 226, 208, .1); }
.tr-add-nick { flex: 1; min-width: 0; }
.tr-add-num { width: 130px; }
.tr-add small { font-size: 12px; opacity: .8; }
.tr-add-actions { display: flex; gap: 8px; }
.tr-add .btn { min-height: 46px; }
.tr-hint { margin: 8px 2px 14px; font-size: 13px; color: var(--muted); }
.tr-table-wrap { overflow-x: auto; }
.tr-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.tr-table th { padding: 8px 10px; text-align: left; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.tr-table td { padding: 7px 10px; border-top: 1px solid var(--line); vertical-align: middle; }
.tr-table tr.editing td { background: rgba(45, 226, 208, .06); }
.tr-n { width: 36px; color: var(--muted); font-variant-numeric: tabular-nums; }
.tr-nick { font-weight: 600; overflow-wrap: anywhere; min-width: 90px; }
.tr-stepper { display: inline-flex; align-items: center; gap: 8px; }
.tr-stepper b { min-width: 14px; text-align: center; font-variant-numeric: tabular-nums; }
.tr-step { width: 30px; height: 30px; border-radius: 9px; border: 1px solid var(--line); background: var(--card); color: var(--text); font: 600 16px/1 Jost, sans-serif; cursor: pointer; }
.tr-step:hover:not([disabled]) { border-color: var(--teal); background: rgba(45, 226, 208, .1); }
.tr-step[disabled] { opacity: .3; cursor: default; }
.tr-chance { white-space: nowrap; }
.tr-bar { display: inline-block; vertical-align: middle; width: 80px; height: 6px; margin-right: 8px; border-radius: 3px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.tr-bar i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--teal), var(--violet)); }
.tr-pct { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.tr-actions { white-space: nowrap; text-align: right; }
.tr-actions a { font-size: 14px; color: var(--teal); }
.tr-actions form { display: inline; margin-left: 12px; }
.tr-link { padding: 0; border: 0; background: none; font: inherit; font-size: 14px; color: var(--muted); cursor: pointer; }
.tr-link.danger:hover { color: #ff8fa3; }
.tr-empty { padding: 18px 10px !important; color: var(--muted); }

/* pravý sloupec */
.tr-ext { font-size: 14px; color: var(--teal); }
.tr-wheel .tr-note { margin-bottom: 14px; }
.tr-wheel .btn[disabled] { opacity: .45; cursor: default; transform: none; box-shadow: none; }
.tr-events { list-style: none; margin: 0; padding: 0 6px 0 0; max-height: 520px; overflow-y: auto; font-size: 14px; }
.tr-events li { padding: 8px 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.tr-events li span { display: block; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.tr-events .lv-ok { color: var(--text); }
.tr-events .lv-info { color: var(--muted); }
.tr-events .lv-warn { color: var(--gold); }
.tr-events .lv-error { color: #ff8fa3; }
.tr-danger { border-color: rgba(255, 93, 108, .3); }
.tr-danger > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; }
.tr-danger > summary::-webkit-details-marker { display: none; }
.tr-danger > summary h2 { margin: 0; color: #ff8fa3; }
.tr-danger > summary::after { content: "▾"; margin-left: auto; color: var(--muted); }
.tr-danger[open] > summary { margin-bottom: 12px; }
.tr-danger[open] > summary::after { content: "▴"; }
.tr-danger .admin-form { margin-top: 12px; }
.tr-danger-btn { color: #fff; background: linear-gradient(90deg, #e2485a, #ff7a8a); }
.tr-danger-btn:hover { box-shadow: 0 10px 26px -10px #ff5d6c; }

/* Tracker: záložky Sub goal a Cvičení */
.tr-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.tr-cols > .card { min-width: 0; }
.tr-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.tr-stat { display: grid; gap: 2px; padding: 14px 16px; border-radius: 16px; background: rgba(0, 0, 0, .2); border: 1px solid var(--line); }
.tr-stat span { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.tr-stat b { font-size: 34px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.tr-stat small { font-size: 15px; color: var(--muted); }
.tr-stat-main { border-color: rgba(45, 226, 208, .35); }
.tr-stat-main b { color: var(--teal); }
.tr-gap { margin-bottom: 14px; }
.tr-inline { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 10px; }
.tr-inline label { display: grid; gap: 4px; flex: 1 1 120px; min-width: 0; font-size: 14px; color: var(--muted); }
.tr-inline .btn { min-height: 46px; }
.tr-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.tr-left { font-size: 14px; color: var(--muted); }
.tr-left b { font-size: 24px; color: var(--teal); font-variant-numeric: tabular-nums; }
.tr-cols .tr-history .tr-events { max-height: 560px; }

@media (max-width: 900px) {
  .tr-grid, .tr-cols { grid-template-columns: minmax(0, 1fr); }
  .tr-auto-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .tr-sources { padding: 0 0 16px; border-right: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 600px) {
  .tr-auto-form { grid-template-columns: minmax(0, 1fr); }
  .tr-players .search { flex-basis: 100%; max-width: none; }
  .tr-add { flex-wrap: wrap; }
  .tr-add-nick { flex: 1 1 100%; }
  .tr-add-num { flex: 1; width: auto; }
  .tr-bar { display: none; }
  .tr-table td, .tr-table th { padding-left: 6px; padding-right: 6px; }
  .tr-players { padding: 18px 14px; }
  .tr-table { font-size: 14px; }
  .tr-table th:first-child, .tr-n { display: none; }
  .tr-step { width: 28px; height: 28px; }
  .tr-stepper { gap: 6px; }
  .tr-actions { display: grid; justify-items: end; gap: 4px; }
  .tr-actions form { margin-left: 0; }
}

/* přepínač Web ↔ PomToy (jen správce v režimu úprav) – vzhled jako v panelu bota, ať je vidět, že je to jiná aplikace */
.appswitch { position: fixed; left: 20px; bottom: 20px; z-index: 60; display: flex; gap: 2px; padding: 4px;
  background: rgba(22, 19, 29, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, .13); border-radius: 999px; box-shadow: 0 10px 30px rgba(0, 0, 0, .45); }
.appswitch a { display: flex; align-items: center; gap: 7px; padding: 8px 15px; border-radius: 999px;
  font: 600 13px/1.5 Inter, "Segoe UI", system-ui, sans-serif; color: #9d96ad; text-decoration: none; }
.appswitch a:hover { color: #f2eff8; background: rgba(255, 255, 255, .06); }
.appswitch a.on { background: linear-gradient(135deg, #9b6bff, #ff6bc8); color: #fff; box-shadow: 0 4px 14px rgba(155, 107, 255, .35); }
.appswitch svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 800px) {  /* telefon: menší a úplně dole v rohu */
  .appswitch { left: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); padding: 3px; }
  .appswitch a { padding: 6px 11px; gap: 5px; font-size: 12px; }
  .appswitch svg { width: 14px; height: 14px; }
}
