/* VYGENEROVANÉ z less/chyba.less (scripts/css.sh) - needitovať, upravuj .less */
/* Chybové stavy webu (29. 11. 2026): stránka 404 (`404.html`), „server / team sa nenašiel“ a výpadok API
   (šablóny `_stav_nenajdeny.html`, `_stav_vypadok.html` - vkladá ich `scripts/jazyky.py` riadkom `<!-- stav ... -->`),
   lišta „Si offline“ (`chyba.js`). Farby len z farby.less. */
/* ---- stav v karte (server / team nenájdený, výpadok) ---- */
.zs-stav.zs-stav {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 560px;
  margin: 28px auto 8px;
  padding: 36px 24px 32px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
}
.zs-stav.zs-stav .zs-stav-ik {
  width: 60px;
  height: 60px;
  padding: 15px;
  box-sizing: border-box;
  border-radius: 50%;
  margin-bottom: 16px;
  background: var(--acc-soft);
  color: var(--acc-text);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.zs-stav.zs-stav.zs-stav-chyba .zs-stav-ik {
  background: var(--warn-soft);
  color: var(--warn);
}
.zs-stav.zs-stav h2 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 780;
  letter-spacing: -0.015em;
  color: var(--zu-ink);
}
.zs-stav.zs-stav p {
  margin: 0 0 22px;
  max-width: 46ch;
  color: var(--zu-muted);
  font-size: 15px;
  line-height: 1.55;
}
.zs-stav.zs-stav .zs-stav-tl .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
  height: 44px;
  padding: 0 20px;
  font-size: 15px;
  border-radius: 14px;
}
.zs-stav.zs-stav .zs-stav-tl {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
/* ---- stránka 404 ---- */
.ch404 {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(28px, 7vh, 72px) 20px calc(72px + env(safe-area-inset-bottom));
  text-align: center;
}
.ch404-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}
.ch404-cislo {
  font-size: clamp(110px, 24vw, 190px);
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.05em;
  color: var(--line);
  user-select: none;
}
.ch404-ik {
  position: absolute;
  width: 88px;
  height: 88px;
  padding: 21px;
  box-sizing: border-box;
  border-radius: 50%;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--lift);
  color: var(--acc-text);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ch404 h1 {
  margin: 6px 0 10px;
  font-size: clamp(26px, 5vw, 34px);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--zu-ink);
}
.ch404-text {
  margin: 0 auto 18px;
  max-width: 52ch;
  color: var(--zu-muted);
  font-size: 16px;
  line-height: 1.6;
}
.ch404 .ch404-cesta {
  display: inline-block;
  max-width: 100%;
  margin: 0 0 22px;
  padding: 6px 12px;
  border-radius: 10px;
  background: var(--surf-hi);
  color: var(--muted);
  font: 13px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace;
  overflow-wrap: anywhere;
}
.ch404-mysleli {
  margin: 0 0 22px;
  font-size: 15px;
  color: var(--zu-muted);
}
.ch404-mysleli a {
  font-weight: 700;
  color: var(--acc-text);
  text-decoration: none;
}
.ch404-mysleli a:hover {
  text-decoration: underline;
}
.ch404 .ch404-dalej {
  margin: 30px 0 12px;
  font-size: 13px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dim);
}
.ch404-tl {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.ch404-tl a.ch404-karta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 18px 10px 14px;
  border-radius: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--zu-ink);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.15s ease;
}
.ch404-tl a.ch404-karta svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--acc-text);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ch404-tl a.ch404-karta:hover {
  border-color: var(--line-strong);
  background: var(--karta-hover);
  transform: translateY(-2px);
}
.ch404-presmeruj {
  margin: 0;
  font-size: 16px;
  color: var(--zu-muted);
}
@media (max-width: 640px) {
  .ch404-tl {
    grid-template-columns: repeat(2, 1fr);
  }
  .ch404-ik {
    width: 72px;
    height: 72px;
    padding: 17px;
  }
}
/* ---- lišta „Si offline“ (chyba.js) ---- */
.zs-offline {
  position: fixed;
  left: 50%;
  bottom: calc(18px + env(safe-area-inset-bottom));
  z-index: 6500;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: min(92vw, 460px);
  padding: 11px 18px 11px 14px;
  border-radius: 999px;
  background: var(--tt-bg);
  color: var(--tt-ink);
  font: 600 14px/1.35 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  box-shadow: var(--lift);
}
.zs-offline[hidden] {
  display: none;
}
.zs-offline svg {
  flex: none;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.zs-offline.zs-online svg {
  stroke: var(--acc);
}
