/* Příběh oddílu – z tmy do světla */
:root { --bg: #060912; --fg: #eef2ff; --muted: rgba(238,242,255,.66); --acc: #e8a000; --card: rgba(255,255,255,.06); --line: rgba(255,255,255,.14); }
* { box-sizing: border-box; }
html { scroll-snap-type: y proximity; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  transition: background-color .25s linear, color .25s linear; -webkit-font-smoothing: antialiased; }
a { color: inherit; }

.pb-top { position: fixed; inset: 0 0 auto 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: calc(12px + env(safe-area-inset-top)) 18px 12px; background: linear-gradient(var(--bg), transparent); }
.pb-back, .pb-sound, .pb-btn { font: 600 14px/1 inherit; font-family: inherit; color: var(--fg); text-decoration: none; padding: 10px 16px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card); backdrop-filter: blur(8px); cursor: pointer; transition: transform .15s, background .2s; }
.pb-back:hover, .pb-sound:hover, .pb-btn:hover { transform: translateY(-1px); }
.pb-sound[aria-pressed="true"] { background: var(--acc); color: #111; border-color: var(--acc); }
.pb-title { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); text-align: center; }
.pb-progress { position: fixed; left: 0; right: 0; bottom: 0; height: 3px; z-index: 20; background: transparent; }
.pb-progress span { display: block; height: 100%; width: 0; background: var(--acc); }

.pb-dots { position: fixed; right: 14px; top: 50%; transform: translateY(-50%); z-index: 15; display: flex; flex-direction: column; gap: 6px; }
.pb-dots a { display: flex; align-items: center; justify-content: flex-end; gap: 8px; text-decoration: none; font-size: 11px; color: var(--muted); }
.pb-dots a span { opacity: 0; transition: opacity .2s; }
.pb-dots a:hover span, .pb-dots a.on span { opacity: 1; }
.pb-dots a i { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--muted); display: block; transition: all .2s; }
.pb-dots a.on i { background: var(--acc); border-color: var(--acc); transform: scale(1.3); }

.pb-sec { min-height: 100vh; min-height: 100svh; scroll-snap-align: start; display: flex; align-items: center; justify-content: center;
  padding: 96px 24px 72px; position: relative; }
.pb-in { width: 100%; max-width: 980px; opacity: 0; transform: translateY(40px); transition: opacity .8s ease, transform .8s ease; }
.pb-sec.vis .pb-in { opacity: 1; transform: none; }
.pb-year { font-size: clamp(64px, 14vw, 168px); font-weight: 900; line-height: .9; letter-spacing: -.04em; color: var(--acc); margin: 0 0 8px;
  font-variant-numeric: tabular-nums; }
.pb-year small { display: inline-block; white-space: nowrap; font-size: .32em; letter-spacing: 0; color: var(--muted); font-weight: 700; margin-left: .3em; }
.pb-h { font-size: clamp(26px, 4vw, 44px); font-weight: 800; line-height: 1.12; margin: 0 0 18px; }
.pb-p { font-size: clamp(17px, 2vw, 20px); line-height: 1.65; max-width: 760px; margin: 0 0 14px; color: var(--fg); opacity: .92; }
.pb-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.pb-src { font-size: 12px; color: var(--muted); margin-top: 18px; }
.pb-src a { color: var(--muted); }

.pb-tbl { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 14px 10px; backdrop-filter: blur(6px); }
.pb-tbl-h { font-size: 13px; font-weight: 700; color: var(--muted); margin: 0 4px 8px; letter-spacing: .02em; }
.pb-tbl table { width: 100%; border-collapse: collapse; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.pb-tbl td { padding: 5px 6px; border-top: 1px solid var(--line); white-space: nowrap; }
.pb-tbl td.t { white-space: normal; width: 100%; }
.pb-tbl td.n { text-align: right; color: var(--muted); }
.pb-tbl tr.ours td { color: var(--acc); font-weight: 800; }
.pb-tbl tr.ours td.n { color: var(--acc); }

.pb-hero .pb-in { text-align: center; }
.pb-hero img { width: 150px; height: auto; filter: invert(1); opacity: .95; margin-bottom: 22px; }
.pb-hero .pb-h { font-size: clamp(34px, 6vw, 68px); }
.pb-hint { margin-top: 40px; font-size: 14px; color: var(--muted); animation: pbBob 1.8s ease-in-out infinite; }
@keyframes pbBob { 50% { transform: translateY(8px); } }
.pb-ball { position: absolute; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 0 22px rgba(255,255,255,.7);
  left: 10%; top: 62%; animation: pbBall 2.4s cubic-bezier(.45,0,.55,1) infinite; }
@keyframes pbBall { 0% { left: 12%; top: 60%; } 25% { top: 70%; } 50% { left: 86%; top: 58%; } 75% { top: 70%; } 100% { left: 12%; top: 60%; } }

.pb-end .pb-in { text-align: center; }
.pb-end .pb-year { color: var(--acc); }
.pb-end .pb-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 30px; }
.pb-quote { font-size: clamp(20px, 2.6vw, 28px); font-weight: 700; line-height: 1.4; max-width: 760px; margin: 0 auto 10px; }

body.light .pb-hero img { filter: none; }
body.light .pb-ball { background: var(--acc); }

@media (max-width: 760px) {
  .pb-grid { grid-template-columns: 1fr; gap: 22px; }
  .pb-dots { display: none; }
  .pb-title { display: none; }
  .pb-sec { padding: 84px 16px 56px; }
  .pb-tbl table { font-size: 12.5px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pb-in { transition: none; opacity: 1; transform: none; }
  .pb-ball, .pb-hint { animation: none; }
}

/* konec – skromněji */
.pb-year-s { font-size: clamp(40px, 7vw, 84px); }
.pb-end .pb-p { font-size: clamp(16px, 1.8vw, 19px); }

/* oddíl v číslech – pevná světlá karta, ať graf funguje na každém pozadí */
.pb-statcard { position: relative; background: #fff; color: #1a2340; border-radius: 18px; padding: 18px 18px 14px; box-shadow: 0 10px 40px rgba(10,20,60,.18); margin-top: 18px; }
.pb-ch-h { font-weight: 700; font-size: 14px; margin: 6px 4px 4px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; color: #1a2340; }
.pb-leg { font-weight: 500; color: #5b6476; font-size: 12.5px; display: inline-flex; align-items: center; gap: 6px; }
.pb-leg i { width: 11px; height: 11px; border-radius: 3px; display: inline-block; margin-left: 8px; }
.pb-leg i.cm, .pb-chart .cm { background: #2b52b3; fill: #2b52b3; }
.pb-leg i.cj, .pb-chart .cj { background: #d98e00; fill: #d98e00; }
.pb-leg i.na, .pb-chart .na { background: #d9dee8; fill: #d9dee8; }
.pb-chart { width: 100%; height: auto; display: block; margin-bottom: 8px; }
.pb-chart .g { stroke: #e9ecf3; stroke-width: 1; }
.pb-chart .ax { fill: #6b7385; font-size: 11px; }
.pb-chart .lb { fill: #1a2340; font-size: 11px; font-weight: 700; }
.pb-chart .hit { fill: transparent; cursor: crosshair; }
.pb-chart .hit:hover { fill: rgba(43,82,179,.07); }
.pb-tip { position: absolute; z-index: 3; pointer-events: none; background: #1a2340; color: #fff; font-size: 12.5px; line-height: 1.45; padding: 7px 10px; border-radius: 8px; min-width: 120px; }
.pb-tbtoggle { margin-top: 6px; font-size: 13px; }
.pb-tbtoggle summary { cursor: pointer; color: #2b52b3; font-weight: 600; }
.pb-stbl { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.pb-stbl th, .pb-stbl td { padding: 4px 6px; border-bottom: 1px solid #eef0f5; text-align: right; }
.pb-stbl th:first-child, .pb-stbl td:first-child { text-align: left; }
.pb-statcard .pb-src, .pb-statcard .pb-src a { color: #6b7385; }

/* mapa hráčů (sdílená třída .hm) */
.hm { background: #fff; color: #1a2340; border-radius: 18px; padding: 12px; box-shadow: 0 10px 40px rgba(10,20,60,.18); margin-top: 18px; }
.hm-wrap { position: relative; }
.hm-svg { width: 100%; height: auto; display: block; border-radius: 12px; touch-action: manipulation; }
.hm-bg { fill: #f3f5f9; } .hm-kraj { fill: #eceff5; stroke: #cfd6e4; stroke-width: 1; }
.hm-obec { fill: #fbfcfe; stroke: #c3cbdb; stroke-width: .7; stroke-linejoin: round; cursor: pointer; transition: fill .15s; }
.hm-obec.s1 { fill: #cdd9f3; stroke: #9fb3e0; } .hm-obec.s2 { fill: #7f9de0; stroke: #5f80cf; } .hm-obec.s3 { fill: #2b52b3; stroke: #1f3f94; }
.hm-obec.home { fill: #f0b43c; stroke: #b97b06; stroke-width: 1.2; }
.hm-obec:hover, .hm-obec.hov { stroke: #0f1a3a; stroke-width: 2; }
.hm-obec.hov:not(.s1):not(.s2):not(.s3):not(.home) { fill: #e6ebf5; }
.hm-okres { fill: none; stroke: #1a2340; stroke-width: 1.6; stroke-dasharray: 6 4; stroke-opacity: .55; pointer-events: none; }
.hm-river-b { fill: none; stroke: #fff; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; stroke-opacity: .9; pointer-events: none; }
.hm-river { fill: none; stroke: #3d8fd1; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.hm-rlab { font-size: 13px; font-style: italic; font-weight: 600; fill: #2f78b5; letter-spacing: .08em; paint-order: stroke; stroke: #f3f5f9; stroke-width: 3px; pointer-events: none; }
.hm-home { pointer-events: none; } .hm-home circle { fill: #1a2340; stroke: #fff; stroke-width: 1.5; }
.hm-home text { font-size: 15px; font-weight: 800; fill: #1a2340; paint-order: stroke; stroke: #fff; stroke-width: 4px; stroke-linejoin: round; }
.hm-cap { font-size: 12px; fill: #6b7385; pointer-events: none; }
.hm-tip { position: absolute; z-index: 3; pointer-events: none; background: #0f1a3a; color: #fff; border-radius: 8px; padding: 6px 10px; font-size: 13px; line-height: 1.3;
  white-space: nowrap; box-shadow: 0 6px 18px rgba(10,20,60,.25); }
.hm-tip b { display: block; font-size: 14px; } .hm-tip span { color: #ffd27a; font-weight: 600; } .hm-tip span.no { color: #b8c2dc; font-weight: 400; }
.hm-leg { font-size: 13px; color: #4b5468; margin: 8px 4px 2px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.hm-tot { margin-top: 0; }
.hm-k { display: inline-block; width: 16px; height: 11px; border-radius: 3px; margin-left: 8px; } .hm-k:first-child { margin-left: 0; }
.hm-k.home { background: #f0b43c; } .hm-k.s1 { background: #cdd9f3; } .hm-k.s2 { background: #7f9de0; } .hm-k.s3 { background: #2b52b3; }
.hm-k.riv { height: 3px; background: #3d8fd1; }
.hm-src { font-size: 11.5px; color: #6b7385; margin: 2px 4px; }

.pb-tbl small { opacity: .72; font-size: 12px; }
.pb-tbl tr.pb-gone b { opacity: .7; }

.pb-btn-pri { background: var(--acc) !important; color: #fff !important; border-color: transparent !important; }
.pb-next { font-size: 14px; color: var(--muted); margin: 14px auto 0; }
.pb-skip { display: inline-block; margin-top: 14px; font-size: 13px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.pb-skip:hover { color: var(--fg); }

.pb-join { max-width: 560px; margin: 26px auto 6px; padding: 18px 20px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; align-items: center; text-align: center; }
.pb-join b { font-size: 19px; } .pb-join span { font-size: 14.5px; color: var(--muted); line-height: 1.5; }
.pb-join .pb-btn { margin-top: 6px; }
.pb-nabor { position: fixed; z-index: 30; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); transform: translateX(-50%); padding: 12px 20px; border-radius: 999px;
  background: #e8a000; color: #1a1200; font-weight: 800; font-size: 14.5px; text-decoration: none; box-shadow: 0 10px 28px rgba(0,0,0,.35); white-space: nowrap; }
.pb-nabor:hover { background: #ffb820; }

.pb-future { max-width: 620px; margin: 30px auto 0; padding: 22px 24px; border-radius: 18px; text-align: left;
  background: linear-gradient(135deg, rgba(232,160,0,.14), rgba(30,58,123,.08)); border: 1px solid rgba(232,160,0,.45); }
.pb-future-k { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--acc); }
.pb-future h3 { margin: 4px 0 10px; font-size: clamp(22px, 3vw, 28px); line-height: 1.2; }
.pb-future p { margin: 0 0 8px; font-size: 16px; line-height: 1.6; } .pb-future p:last-child { margin: 0; color: var(--muted); }
.pb-future b { color: var(--acc); }

/* fotky – v přirozeném poměru stran (nic se neořízne), nejvýš ve své skutečné velikosti, popisek pod fotkou */
.hf { margin: 0 auto; width: 100%; max-width: 520px; }
.hf-frame { position: relative; display: grid; border-radius: 14px; overflow: hidden; }
.hf[data-n]:not([data-n="1"]) .hf-frame { cursor: pointer; }
.hf-s { grid-area: 1 / 1; width: 100%; height: auto; max-height: 460px; object-fit: contain; align-self: center; opacity: 0; transition: opacity 1.1s ease; display: block; }
.hf-s.on { opacity: 1; }
.hf-dots { position: absolute; left: 0; right: 0; bottom: 8px; display: flex; justify-content: center; gap: 5px; }
.hf-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.6); box-shadow: 0 0 3px rgba(0,0,0,.5); transition: width .3s, background .3s; }
.hf-dots i.on { background: #fff; width: 16px; border-radius: 3px; }
.hf-c { display: none; font-size: 12.5px; line-height: 1.45; margin-top: 7px; } .hf-c.on { display: block; }
.hf-a { opacity: .75; white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .hf-s { transition: none; } }

.hf-frame { box-shadow: 0 14px 40px rgba(0,0,0,.32); }
.hf-c { color: var(--muted); } .hf-c b { color: var(--fg); }
.pb-side { display: flex; flex-direction: column; gap: 18px; }
/* jemný podkres kapitoly fotkou */
.pb-hasbg { position: relative; isolation: isolate; }
.pb-hasbg::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--pbbg) center / cover no-repeat; opacity: .1; filter: blur(16px); transform: scale(1.08);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent); mask-image: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent); pointer-events: none; }

.pb-in { max-width: 1120px; }
.hf-s { max-height: 520px; cursor: zoom-in; }

/* rozkliknutá fotka */
.hf-dots i { cursor: pointer; }
.hf-lb { position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center; background: rgba(4,7,16,.92); padding: 56px 64px 24px; }
.hf-lb.on { display: flex; }
.hf-lb figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.hf-lb img { max-width: min(1100px, 100%); max-height: calc(100vh - 150px); width: auto; height: auto; min-width: min(640px, 100%); object-fit: contain; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.5); background: #111; }
.hf-lb figcaption { color: #e8ecf8; font-size: 14px; line-height: 1.5; margin-top: 12px; max-width: 760px; text-align: center; }
.hf-lb figcaption b { color: #ffd27a; } .hf-lb-n { opacity: .6; margin-left: 6px; }
.hf-lb button { position: absolute; border: 0; background: rgba(255,255,255,.12); color: #fff; width: 48px; height: 48px; border-radius: 50%; font-size: 30px; line-height: 1; cursor: pointer; }
.hf-lb button:hover { background: rgba(255,255,255,.24); }
.hf-lb-x { top: 14px; right: 14px; } .hf-lb-p { left: 14px; top: 50%; transform: translateY(-50%); } .hf-lb-nx { right: 14px; top: 50%; transform: translateY(-50%); }
.hf-lb:not(.multi) .hf-lb-p, .hf-lb:not(.multi) .hf-lb-nx { display: none; }
html.hf-lock { overflow: hidden; }
@media (max-width: 640px) { .hf-lb { padding: 56px 8px 16px; } .hf-lb img { min-width: 0; max-height: calc(100vh - 190px); } .hf-lb-p, .hf-lb-nx { top: auto; bottom: 14px; transform: none; } }
