/* ==========================================================================
   PUZZLE LIBEREC — styly hry
   Doplněk k css/style.css (proměnné, .btn, .container, .section, .footer…).
   Všechny třídy mají prefix .pz- , aby se nemíchaly se zbytkem webu.
   ========================================================================== */

:root {
    --pz-radius: 20px;
    --pz-radius-sm: 12px;
    --pz-shadow: 0 16px 48px rgba(75, 16, 64, .12);
    --pz-shadow-sm: 0 6px 20px rgba(75, 16, 64, .08);
}

/* Skrytí jen pro čtečky */
.pz-visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
    white-space: nowrap; border: 0;
}

/* Přeskočit na obsah (viditelné až při fokusu klávesnicí) */
.pz-skip {
    position: absolute; left: -9999px; top: 0; z-index: 2000;
    background: var(--purple); color: var(--white);
    padding: 12px 20px; border-radius: 0 0 12px 0;
    font-weight: 600; font-size: 14px; text-decoration: none;
}
.pz-skip:focus { left: 0; }

/* Sjednocený viditelný fokus */
.pz-section-kod :focus-visible,
.pz-mapa-svg :focus-visible,
.pz-link-btn:focus-visible,
.pz-modal :focus-visible {
    outline: 3px solid var(--purple);
    outline-offset: 2px;
}

/* ── 1. HERO ─────────────────────────────────────────────────────────── */
.pz-hero {
    position: relative;
    background: var(--pink); color: var(--purple);
    padding: 132px 0 72px;
    overflow: hidden;
}
.pz-hero::before {
    content: ''; position: absolute; right: -6%; bottom: -25%;
    width: 46%; aspect-ratio: 28/22;
    background: url('../img/prvek_slk.svg') no-repeat center/contain;
    opacity: .12; pointer-events: none;
}
.pz-hero-inner {
    position: relative; z-index: 1;
    display: grid; grid-template-columns: 1.35fr 1fr;
    gap: 48px; align-items: center;
}
.pz-hero-kicker {
    font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
    color: var(--purple); opacity: .7; margin-bottom: 12px;
}
.pz-hero-title {
    color: var(--purple);
    font-size: clamp(2.6rem, 7vw, 5rem);
    font-weight: 800; letter-spacing: -.03em; line-height: .98;
    margin-bottom: 8px;
}
.pz-hero-title::after {
    content: ''; display: block; width: 76px; height: 6px;
    background: var(--cream); border-radius: 4px; margin: 18px 0 20px;
}
.pz-hero-lead {
    font-size: clamp(1rem, 1.5vw, 1.2rem); line-height: 1.6;
    color: rgba(75, 16, 64, .88); max-width: 620px;
}
.pz-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.pz-btn-big { font-size: 16px; padding: 16px 36px; }
.pz-hero .btn-primary { background: var(--purple); border-color: var(--purple); color: var(--white); }
.pz-hero .btn-primary:hover { background: var(--cream); border-color: var(--cream); color: var(--purple); box-shadow: 0 8px 24px rgba(75, 16, 64, .28); }
.pz-hero .btn-ghost { color: var(--purple); border-color: rgba(75, 16, 64, .45); background: rgba(255, 255, 255, .25); }
.pz-hero .btn-ghost:hover { background: rgba(255, 255, 255, .5); border-color: var(--purple); }

.pz-hero-countdown {
    background: rgba(255, 255, 255, .22);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, .45);
    border-radius: var(--pz-radius); padding: 24px 24px 20px; text-align: center;
}
.pz-countdown-label {
    font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
    opacity: .75; margin-bottom: 12px;
}
.pz-countdown { display: flex; align-items: flex-start; justify-content: center; gap: 6px; }
.pz-cd-item {
    display: flex; flex-direction: column; align-items: center;
    background: var(--white); border-radius: var(--pz-radius-sm);
    padding: 12px 10px; min-width: 78px;
}
.pz-cd-num { font-size: 2.1rem; font-weight: 800; line-height: 1; color: var(--pink); font-variant-numeric: tabular-nums; }
.pz-cd-unit { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--gray-500); margin-top: 6px; }
.pz-cd-sep { font-size: 1.6rem; font-weight: 800; color: rgba(75, 16, 64, .45); padding-top: 12px; }
.pz-countdown-note { font-size: 12.5px; line-height: 1.5; opacity: .8; margin-top: 14px; }

/* ── VIDEO FASÁDA ────────────────────────────────────────────────────
   Náhled bez jediného externího požadavku. Přehrávač (youtube-nocookie.com)
   se vloží teprve po klepnutí uživatele — kvůli rychlosti i cookie liště. */
.pz-facade {
    position: relative; display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 12px;
    width: 100%; padding: 18px; overflow: hidden; cursor: pointer;
    border: 0; border-radius: var(--pz-radius);
    background: linear-gradient(135deg, var(--purple) 0%, #6a1b5c 100%);
    color: var(--white); text-align: center;
    font-family: var(--font);
    box-shadow: var(--pz-shadow);
}
.pz-facade::before {
    content: ''; position: absolute; right: -16%; bottom: -24%;
    width: 64%; aspect-ratio: 28/22;
    background: url('../img/prvek_slk.svg') no-repeat center/contain;
    opacity: .16; filter: brightness(0) invert(1); pointer-events: none;
}
.pz-facade--16x9 { aspect-ratio: 16/9; }
.pz-facade--9x16 { aspect-ratio: 9/16; }
.pz-facade-play {
    position: relative; z-index: 1; flex: 0 0 auto;
    width: 66px; height: 66px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--pink); color: var(--white);
    box-shadow: 0 10px 26px rgba(0, 0, 0, .35);
    transition: transform .2s var(--ease), background .2s var(--ease), color .2s var(--ease);
}
.pz-facade:hover .pz-facade-play,
.pz-facade:focus-visible .pz-facade-play { transform: scale(1.08); background: var(--cream); color: var(--purple); }
.pz-facade:focus-visible { outline: 3px solid var(--cream); outline-offset: 3px; }
.pz-facade-popis {
    position: relative; z-index: 1;
    font-size: 14px; font-weight: 700; line-height: 1.45; max-width: 34ch;
}
.pz-facade-pozn { position: relative; z-index: 1; font-size: 11.5px; font-weight: 500; opacity: .72; line-height: 1.45; max-width: 32ch; }

.pz-prehravac {
    position: relative; width: 100%; background: #000;
    border-radius: var(--pz-radius); overflow: hidden; box-shadow: var(--pz-shadow);
}
.pz-prehravac--16x9 { aspect-ratio: 16/9; }
.pz-prehravac--9x16 { aspect-ratio: 9/16; }
.pz-prehravac iframe { position: absolute; inset: 0; display: block; width: 100%; height: 100%; border: 0; }

/* ── 3. VIDEO ────────────────────────────────────────────────────────── */
.pz-section-video { background: var(--gray-50); padding-bottom: 72px; }
.pz-video-wrap { max-width: 860px; margin: 0 auto; }
.pz-video-placeholder {
    position: relative; overflow: hidden;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 16px; text-align: center;
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, var(--purple) 0%, #6a1b5c 100%);
    color: var(--white); border-radius: var(--pz-radius);
    box-shadow: var(--pz-shadow); padding: 24px;
}
.pz-video-symbol { width: min(38%, 220px); opacity: .18; filter: brightness(0) invert(1); }
.pz-video-placeholder-text { display: flex; flex-direction: column; gap: 6px; }
.pz-video-placeholder-text strong { font-size: clamp(1.1rem, 2.4vw, 1.6rem); }
.pz-video-placeholder-text span { font-size: 14px; opacity: .8; max-width: 420px; }

/* ── 2. ZADÁNÍ KÓDU ──────────────────────────────────────────────────── */
/* Sekce jde hned po hero — lidé sem chodí přímo z QR na dílku, takže musí být
   nepřehlédnutelná. */
.pz-section-kod { background: var(--white); scroll-margin-top: 84px; }
.pz-form {
    max-width: 720px; margin: 0 auto;
    background: var(--white); border: 2px solid var(--pink);
    border-radius: var(--pz-radius); padding: 32px;
    box-shadow: 0 22px 60px rgba(255, 54, 156, .18);
}
.pz-form-main { text-align: center; }
.pz-label {
    display: block; font-size: 14px; font-weight: 700; color: var(--purple);
    margin-bottom: 8px; text-align: left;
}
.pz-form-main .pz-label { text-align: center; }
.pz-kod-label { font-size: 15px; }
.pz-optional { font-weight: 500; color: var(--gray-500); }

/* Čtyři samostatná okénka jako u ověřovacího kódu z banky */
.pz-kod-boxy {
    display: flex; justify-content: center; align-items: center;
    gap: clamp(8px, 3vw, 16px); margin: 6px 0 20px;
}
.pz-kod-znak {
    font-family: var(--font);
    width: clamp(56px, 18vw, 86px); height: clamp(68px, 22vw, 102px); padding: 0;
    font-size: clamp(1.9rem, 8vw, 2.9rem); font-weight: 800; line-height: 1;
    text-align: center; text-transform: uppercase;
    color: var(--purple); background: var(--pink-bg);
    border: 2px solid var(--gray-200); border-radius: 14px;
    caret-color: var(--pink);
    transition: border-color .18s var(--ease), box-shadow .18s var(--ease),
                background .18s var(--ease), transform .18s var(--ease);
}
.pz-kod-znak:focus {
    outline: none; border-color: var(--pink); background: var(--white);
    box-shadow: 0 0 0 4px rgba(255, 54, 156, .2);
    transform: translateY(-2px);
}
.pz-kod-znak:focus-visible { outline: 3px solid var(--purple); outline-offset: 2px; }
.pz-kod-znak.pz-vyplneno { border-color: var(--pink-light); background: var(--white); }
.pz-kod-boxy.pz-chyba .pz-kod-znak { border-color: #d92020; background: #fff3f3; }

.pz-submit { font-size: 17px; padding: 17px 34px; width: min(100%, 360px); }
.pz-submit[disabled] { opacity: .6; cursor: progress; transform: none; }
.pz-hint { font-size: 13px; color: var(--gray-500); line-height: 1.5; margin-top: 10px; }
.pz-form-main .pz-hint { text-align: center; max-width: 52ch; margin-left: auto; margin-right: auto; }

.pz-details { margin-top: 24px; border-top: 1px solid var(--gray-200); }
.pz-details-summary {
    list-style: none; cursor: pointer;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 16px 2px 14px; font-weight: 700; font-size: 15px; color: var(--purple);
}
.pz-details-summary::-webkit-details-marker { display: none; }
.pz-details-summary:hover { color: var(--pink-dark); }
.pz-details-summary--small { font-size: 14px; font-weight: 600; color: var(--gray-600); }
.pz-details-arrow {
    flex: 0 0 auto; width: 10px; height: 10px;
    border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translate(-2px, -2px);
    transition: transform .2s var(--ease);
}
.pz-details[open] > .pz-details-summary .pz-details-arrow { transform: rotate(-135deg) translate(-2px, -2px); }
.pz-details-body { padding-bottom: 8px; }
.pz-udaje-lead { font-size: 14px; color: var(--gray-600); line-height: 1.6; margin-bottom: 20px; }

.pz-field { margin-bottom: 22px; }
.pz-input {
    font-family: var(--font); font-size: 16px; width: 100%;
    padding: 13px 16px; color: var(--gray-800);
    background: var(--white); border: 2px solid var(--gray-200); border-radius: var(--pz-radius-sm);
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.pz-input:focus { outline: none; border-color: var(--pink); box-shadow: 0 0 0 4px rgba(255, 54, 156, .15); }
.pz-input.pz-chyba { border-color: #d92020; background: #fff3f3; }

.pz-prezdivky { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.pz-prezdivky-loading { margin: 0; }
.pz-chip {
    font-family: var(--font); font-size: 14px; font-weight: 600;
    padding: 9px 16px; cursor: pointer;
    color: var(--purple); background: var(--gray-100);
    border: 2px solid transparent; border-radius: 50px;
    transition: all .2s var(--ease);
}
.pz-chip:hover { background: var(--pink-bg); border-color: var(--pink-light); }
.pz-chip[aria-checked="true"] { background: var(--pink); border-color: var(--pink); color: var(--white); }
.pz-prezdivky-akce { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.pz-btn-small { padding: 8px 18px; font-size: 13px; }
.pz-link-btn {
    background: none; border: none; padding: 4px 2px; cursor: pointer;
    font-family: var(--font); font-size: 13px; font-weight: 600;
    color: var(--pink-dark); text-decoration: underline;
}
.pz-link-btn:hover { color: var(--purple); }

.pz-souhlas-field { padding-top: 4px; }
.pz-checkbox { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; font-size: 14px; line-height: 1.55; color: var(--gray-700); }
.pz-checkbox input[type="checkbox"] { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--pink); flex-shrink: 0; cursor: pointer; }
.pz-checkbox.pz-chyba { color: #b31414; }

.pz-gdpr { border-top: 1px dashed var(--gray-300); margin-top: 8px; }
.pz-gdpr-body p { font-size: 13.5px; line-height: 1.7; color: var(--gray-600); margin-bottom: 12px; }
.pz-gdpr-body strong { color: var(--purple); }
.pz-gdpr-body a { color: var(--pink-dark); }

/* Výsledek zadání kódu */
.pz-vysledek { margin-top: 20px; }
.pz-vysledek:empty { margin-top: 0; }
.pz-zprava {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 16px 18px; border-radius: var(--pz-radius-sm);
    font-size: 15px; line-height: 1.55; font-weight: 600;
}
.pz-zprava-ikona { flex: 0 0 auto; font-size: 20px; line-height: 1.2; }
.pz-zprava--ok { background: #e9f9ef; color: #15653a; border: 1px solid #b6e6c8; }
.pz-zprava--chyba { background: #fdeceb; color: #a01b1b; border: 1px solid #f4c2bf; }
.pz-zprava--info { background: var(--pink-bg); color: var(--purple); border: 1px solid #f9cfe3; }
.pz-zprava small { display: block; font-weight: 500; opacity: .85; margin-top: 4px; }

/* ── 4. MAPA ─────────────────────────────────────────────────────────── */
.pz-section-mapa { background: var(--gray-50); }
.pz-mapa-layout { display: grid; grid-template-columns: 1fr 300px; gap: 28px; align-items: start; }
.pz-mapa-box {
    position: relative;
    background: var(--white); border: 1px solid var(--gray-200);
    border-radius: var(--pz-radius); padding: 16px;
    box-shadow: var(--pz-shadow-sm);
}
.pz-mapa-svg { position: relative; }
.pz-mapa-svg svg { display: block; width: 100%; height: auto; overflow: visible; }
.pz-mapa-loading { text-align: center; padding: 60px 0; color: var(--gray-500); font-size: 14px; }
.pz-mapa-chyba { text-align: center; padding: 16px 0 0; color: var(--gray-500); font-size: 13px; }

.pz-mapa-svg .ctvrt {
    fill: var(--gray-100);
    stroke: var(--white); stroke-width: 2.5; stroke-linejoin: round;
    cursor: pointer;
    transition: fill .35s var(--ease), transform .25s var(--ease), filter .25s var(--ease);
    transform-box: fill-box; transform-origin: center;
}
/*
 * Zvýraznění čtvrti (najetí, fokus, vybraná, právě nalezená) mění jen BARVU
 * obrysu a přidává stín — tloušťka zůstává u všech čtvrtí pořád stejná (2,5).
 * Dřív se při najetí měnila na 3,5 a čtvrť najednou vystupovala z mřížky.
 */
.pz-mapa-svg .ctvrt:hover,
.pz-mapa-svg .ctvrt:focus-visible {
    stroke: var(--pink); stroke-width: 2.5;
    filter: drop-shadow(0 4px 10px rgba(255, 54, 156, .45));
    outline: none;
}
/*
 * Po kliknutí myší zůstává na čtvrti fokus a prohlížeč kolem ní vykreslí
 * výchozí rámeček — a protože jde o nepravidelný tvar, nakreslí ho podle
 * opsaného obdélníku. Na mapě to vypadá jako zapomenutý rámeček přes půl
 * Liberce. Rušíme ho i pro obyčejný :focus; klávesnicoví uživatelé o nic
 * nepřijdou, ten stav je vidět přes :focus-visible výš (růžový obrys).
 */
.pz-mapa-svg .ctvrt:focus { outline: none; }
.pz-mapa-svg .ctvrt.pz-aktivni {
    stroke: var(--pink); stroke-width: 2.5;
    filter: drop-shadow(0 4px 10px rgba(255, 54, 156, .45));
}
.pz-mapa-svg .ctvrt.pz-moje { stroke: var(--cream); stroke-width: 2.5; }

/* animace „zapadnutí dílku“ po úspěšném zadání */
.pz-mapa-svg .ctvrt.pz-nalezeno {
    animation: pzZapadnuti 1.1s var(--ease) both;
    stroke: var(--pink); stroke-width: 2.5;
}
@keyframes pzZapadnuti {
    0%   { transform: scale(1.55) rotate(-7deg); opacity: .25; }
    45%  { transform: scale(1.14) rotate(2deg);  opacity: 1; }
    70%  { transform: scale(.97) rotate(0deg); }
    100% { transform: scale(1) rotate(0deg); }
}

.pz-tooltip {
    position: absolute; z-index: 5; pointer-events: none;
    transform: translate(-50%, -115%);
    background: var(--purple); color: var(--white);
    padding: 8px 12px; border-radius: 10px;
    font-size: 13px; line-height: 1.35; white-space: nowrap;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
}
.pz-tooltip strong { display: block; font-size: 14px; }
.pz-tooltip::after {
    content: ''; position: absolute; left: 50%; top: 100%;
    transform: translateX(-50%);
    border: 6px solid transparent; border-top-color: var(--purple);
}

.pz-mapa-panel {
    background: var(--white); border: 1px solid var(--gray-200);
    border-radius: var(--pz-radius); padding: 22px;
    box-shadow: var(--pz-shadow-sm);
    position: sticky; top: 96px;
}
.pz-panel-hint { font-size: 14px; color: var(--gray-500); line-height: 1.6; }
.pz-panel-nazev { font-size: 1.35rem; font-weight: 800; color: var(--purple); line-height: 1.2; margin-bottom: 6px; }
.pz-panel-cislo { font-size: 2.6rem; font-weight: 800; color: var(--pink); line-height: 1; }
.pz-panel-popis { font-size: 13px; color: var(--gray-500); margin-top: 4px; }
.pz-panel-znacka {
    display: inline-block; margin-top: 14px; padding: 5px 12px; border-radius: 50px;
    font-size: 12px; font-weight: 700; letter-spacing: .04em;
}
.pz-panel-znacka--moje { background: var(--cream); color: var(--purple); }
.pz-panel-znacka--prazdna { background: var(--gray-100); color: var(--gray-600); }
.pz-panel-znacka--objevena { background: var(--pink-bg); color: var(--pink-dark); }

/* Nápověda ke konkrétní čtvrti (v panelu vedle mapy) */
.pz-panel-napoveda {
    margin-top: 18px; padding-top: 16px;
    border-top: 1px dashed var(--gray-300); text-align: left;
}
.pz-panel-napoveda-nadpis {
    font-size: 11.5px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase;
    color: var(--pink-dark); margin-bottom: 8px;
}
.pz-panel-napoveda-text { font-size: 14px; line-height: 1.6; color: var(--gray-700); }
.pz-panel-napoveda-text + .pz-panel-video { margin-top: 12px; }
.pz-panel-napoveda-ceka,
.pz-panel-napoveda-zadna {
    font-size: 13px; line-height: 1.55; color: var(--gray-600);
    background: var(--gray-50); border: 1px dashed var(--gray-300);
    border-radius: var(--pz-radius-sm); padding: 10px 12px;
}
.pz-panel-napoveda-ceka strong { color: var(--purple); }
/* Shorts jsou na výšku (9:16) — v úzkém panelu je ještě zúžíme, ať nejsou přes celou obrazovku */
.pz-panel-video { max-width: 230px; margin: 0 auto; }

.pz-legenda { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 24px; }
.pz-legenda-popis { font-size: 12px; color: var(--gray-500); }
.pz-legenda-skala {
    width: min(280px, 46vw); height: 10px; border-radius: 50px;
    background: linear-gradient(90deg, #f4f4f5 0%, #ffc2e0 35%, #ff69b6 70%, #ff369c 100%);
    border: 1px solid var(--gray-200);
}

.pz-mapa-alt { text-align: center; margin-top: 20px; }
.pz-seznam-wrap { margin-top: 16px; overflow-x: auto; }
.pz-tabulka { width: 100%; border-collapse: collapse; font-size: 14px; text-align: left; background: var(--white); border-radius: var(--pz-radius-sm); overflow: hidden; }
.pz-tabulka th, .pz-tabulka td { padding: 10px 14px; border-bottom: 1px solid var(--gray-200); }
.pz-tabulka th { background: var(--gray-100); color: var(--purple); font-size: 13px; }
.pz-tabulka td:nth-child(2) { font-weight: 700; color: var(--pink-dark); font-variant-numeric: tabular-nums; }

/* ── 5. POKROK ───────────────────────────────────────────────────────── */
.pz-section-pokrok { background: var(--pink); color: var(--purple); position: relative; overflow: hidden; }
.pz-section-pokrok::before {
    content: ''; position: absolute; left: -8%; top: -30%;
    width: 40%; aspect-ratio: 28/22;
    background: url('../img/prvek_slk.svg') no-repeat center/contain;
    opacity: .1; pointer-events: none;
}
.pz-pokrok-box { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; text-align: center; }
.pz-pokrok-nadpis { font-size: clamp(1.1rem, 2.4vw, 1.5rem); font-weight: 700; }
.pz-pokrok-cislo {
    font-size: clamp(4.5rem, 18vw, 9rem); font-weight: 800; line-height: 1;
    letter-spacing: -.04em; color: var(--purple); font-variant-numeric: tabular-nums;
}
.pz-pokrok-znak { font-size: .45em; }
.pz-pokrok-bar {
    height: 20px; border-radius: 50px; margin: 22px auto 18px;
    background: rgba(75, 16, 64, .18); overflow: hidden;
}
.pz-pokrok-fill {
    display: block; height: 100%; width: 0;
    background: linear-gradient(90deg, var(--cream), var(--white));
    border-radius: 50px; transition: width .9s var(--ease);
}
.pz-pokrok-detail { font-size: 16px; color: rgba(75, 16, 64, .85); }
.pz-pokrok-detail strong { color: var(--purple); }

/* ── 6. + 7. ŽEBŘÍČKY ────────────────────────────────────────────────── */
.pz-section-zebricky { background: var(--white); }
.pz-zebricky-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.pz-zebricek-nadpis { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-bottom: 6px; }
.pz-zebricek-podnadpis { font-size: 14px; color: var(--gray-500); margin-bottom: 22px; line-height: 1.55; }
.pz-zebricek-list { list-style: none; counter-reset: pzPoradi; }
.pz-zebricek-item {
    counter-increment: pzPoradi;
    position: relative; display: grid; grid-template-columns: 34px 1fr auto; align-items: center;
    gap: 12px; padding: 12px 14px; margin-bottom: 8px;
    background: var(--gray-50); border-radius: var(--pz-radius-sm);
    overflow: hidden;
}
.pz-zebricek-item::before {
    content: counter(pzPoradi) ".";
    font-weight: 800; font-size: 15px; color: var(--gray-400); text-align: right;
    position: relative; z-index: 1;
}
.pz-zebricek-item:nth-child(1)::before { color: var(--pink); }
.pz-zebricek-item:nth-child(2)::before,
.pz-zebricek-item:nth-child(3)::before { color: var(--pink-light); }
.pz-zebricek-pruh {
    position: absolute; left: 0; top: 0; bottom: 0;
    background: var(--pink-bg); border-radius: var(--pz-radius-sm);
    width: 0; transition: width .8s var(--ease);
}
.pz-zebricek-nazev { position: relative; z-index: 1; font-weight: 700; color: var(--purple); font-size: 15px; }
.pz-zebricek-hodnota { position: relative; z-index: 1; font-weight: 800; color: var(--pink-dark); font-size: 15px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pz-zebricek-item.pz-zebricek-moje { background: var(--cream); }
.pz-zebricek-empty { font-size: 14px; color: var(--gray-500); padding: 12px 0; }

/* ── 8. MOJE SBÍRKA ──────────────────────────────────────────────────── */
.pz-section-moje { background: var(--gray-50); }
.pz-moje-layout { display: grid; grid-template-columns: 1fr 360px; gap: 40px; align-items: center; }
.pz-moje-pocet { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 700; color: var(--purple); margin-bottom: 18px; }
.pz-moje-pocet strong { color: var(--pink); font-weight: 800; }
.pz-moje-seznam { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.pz-moje-seznam li {
    background: var(--white); border: 1px solid var(--gray-200); border-radius: 50px;
    padding: 7px 15px; font-size: 14px; font-weight: 600; color: var(--purple);
}
.pz-moje-seznam li.pz-moje-empty { border-style: dashed; color: var(--gray-500); font-weight: 500; }
.pz-moje-mapa {
    background: var(--white); border: 1px solid var(--gray-200);
    border-radius: var(--pz-radius); padding: 14px; box-shadow: var(--pz-shadow-sm);
}
.pz-moje-mapa svg { display: block; width: 100%; height: auto; }
.pz-moje-mapa .ctvrt { fill: var(--gray-100); stroke: var(--white); stroke-width: 2.5; pointer-events: none; transition: fill .4s var(--ease); }
.pz-moje-mapa .ctvrt.pz-moje { fill: var(--pink); }

/* ── 9. NÁPOVĚDA + FEED ──────────────────────────────────────────────── */
.pz-section-napoveda { background: var(--white); }
.pz-napoveda-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 28px; align-items: start; }
.pz-box-nadpis { font-size: 1.3rem; margin-bottom: 16px; }
.pz-napoveda-box {
    background: linear-gradient(135deg, var(--purple) 0%, #6a1b5c 100%);
    color: var(--white); border-radius: var(--pz-radius); padding: 30px;
    box-shadow: var(--pz-shadow);
}
.pz-napoveda-box .pz-box-nadpis { color: var(--cream); }
.pz-napoveda-datum { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; opacity: .7; margin-bottom: 8px; }
.pz-napoveda-text { font-size: clamp(1rem, 2vw, 1.25rem); line-height: 1.6; }
.pz-napoveda-odkaz { margin-top: 18px; font-size: 13px; line-height: 1.6; color: rgba(255, 255, 255, .82); }
.pz-napoveda-odkaz a { color: var(--cream); font-weight: 700; }
.pz-feed-box {
    background: var(--gray-50); border: 1px solid var(--gray-200);
    border-radius: var(--pz-radius); padding: 26px;
}
.pz-feed { list-style: none; }
.pz-feed li {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 0; border-bottom: 1px dashed var(--gray-200);
    font-size: 14px; color: var(--gray-700);
}
.pz-feed li:last-child { border-bottom: none; }
.pz-feed-tecka { width: 8px; height: 8px; border-radius: 50%; background: var(--pink); flex-shrink: 0; }
.pz-feed li:first-child .pz-feed-tecka { animation: pzPing 1.8s ease-out infinite; }
@keyframes pzPing {
    0%   { box-shadow: 0 0 0 0 rgba(255, 54, 156, .55); }
    100% { box-shadow: 0 0 0 10px rgba(255, 54, 156, 0); }
}
.pz-feed-ctvrt { font-weight: 700; color: var(--purple); }
.pz-feed-cas { margin-left: auto; font-size: 12.5px; color: var(--gray-500); white-space: nowrap; }
.pz-feed-empty { color: var(--gray-500); }

/* ── ODSAZENÍ SEKCÍ ──────────────────────────────────────────────────── */
/*
 * Hlavní web má --section-py: 100px, což u něj sedí — má sekcí málo.
 * Tady jich je devět za sebou, takže 100 px dole + 100 px nahoře dělalo mezi
 * nimi dvousetpixelové díry a stránka působila rozsypaně. Držíme je u sebe.
 */
[class*="pz-section-"] { padding: 60px 0; }
[class*="pz-section-"] .section-header { margin-bottom: 34px; }
@media (max-width: 700px) {
    [class*="pz-section-"] { padding: 44px 0; }
    [class*="pz-section-"] .section-header { margin-bottom: 26px; }
}

/* ── TŘI KROKY NAD MAPOU ─────────────────────────────────────────────── */
/* Úzký proužek místo tří velkých karet — patří k mapě, ne na vlastní obrazovku. */
.pz-kroky-radek {
    list-style: none; display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 10px 26px; margin: 0 0 26px; padding: 0;
}
.pz-kroky-radek li { display: flex; align-items: baseline; gap: 10px; }
.pz-kr-cislo {
    flex: none; width: 24px; height: 24px; border-radius: 50%;
    background: var(--pink); color: #fff; font-weight: 800; font-size: 13px;
    display: inline-flex; align-items: center; justify-content: center;
    transform: translateY(3px);
}
.pz-kr-text { font-size: 15px; line-height: 1.55; color: var(--gray-600); }
.pz-kr-text strong { color: var(--purple); }
@media (max-width: 800px) {
    .pz-kroky-radek { grid-template-columns: 1fr; gap: 12px; margin-bottom: 22px; }
}

/* ── JAK NA TO (sekce O co se hraje používá stejné karty) ────────────── */
.pz-section-jak { background: var(--gray-50); }
.pz-kroky { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.pz-krok {
    position: relative; background: var(--white); border: 1px solid var(--gray-200);
    border-radius: var(--pz-radius); padding: 28px 24px 24px;
    box-shadow: var(--pz-shadow-sm);
}
.pz-krok-cislo {
    position: absolute; top: -14px; left: 24px;
    width: 34px; height: 34px; border-radius: 50%;
    background: var(--pink); color: var(--white);
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 15px;
}
.pz-krok-ikona { display: block; color: var(--pink); margin: 6px 0 14px; }
.pz-krok h3 { font-size: 1.05rem; margin-bottom: 8px; color: var(--purple); }
.pz-krok p { font-size: 14px; line-height: 1.6; color: var(--gray-600); }
.pz-ceny {
    margin-top: 40px; text-align: center;
    background: var(--white); border: 2px dashed var(--pink-light);
    border-radius: var(--pz-radius); padding: 34px 28px;
}
.pz-ceny-nadpis { color: var(--purple); margin-bottom: 12px; }
.pz-ceny p { max-width: 640px; margin: 0 auto 22px; font-size: 15px; line-height: 1.7; color: var(--gray-600); }

/* Instrukce mají tři kroky, ne čtyři */
.pz-kroky--tri { grid-template-columns: repeat(3, 1fr); }
.pz-jak-pozn {
    margin: 20px auto 0; max-width: 620px; text-align: center;
    font-size: 14px; line-height: 1.6; color: var(--gray-600);
}
/* Video z výroby uvnitř sekce o cenách */
.pz-ceny-video { max-width: 640px; margin: 0 auto 24px; }
.pz-ceny-video[hidden] { display: none; }
.pz-ceny-nadpis + .pz-video-obal, .pz-ceny-video .pz-video-obal { margin-top: 12px; }
@media (max-width: 900px) { .pz-kroky--tri { grid-template-columns: 1fr; } }

/* ── KONFETY ─────────────────────────────────────────────────────────── */
/* nad modálem, ať oslava zůstane vidět i po otevření sdílecí karty */
.pz-konfety {
    position: fixed; inset: 0; z-index: 1700;
    width: 100%; height: 100%; pointer-events: none; display: none;
}
.pz-konfety.pz-bezi { display: block; }

/* ── SDÍLECÍ MODÁL ───────────────────────────────────────────────────── */
.pz-modal { position: fixed; inset: 0; z-index: 1600; display: flex; align-items: center; justify-content: center; padding: 20px; }
.pz-modal[hidden] { display: none; }
.pz-modal-backdrop { position: absolute; inset: 0; background: rgba(30, 6, 26, .72); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.pz-modal-box {
    position: relative; z-index: 1; width: min(460px, 100%);
    max-height: calc(100dvh - 40px); overflow-y: auto;
    background: var(--white); border-radius: var(--pz-radius);
    padding: 28px 26px 24px; text-align: center;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
    animation: pzModalIn .3s var(--ease) both;
}
@keyframes pzModalIn {
    from { opacity: 0; transform: translateY(20px) scale(.96); }
    to   { opacity: 1; transform: none; }
}
.pz-modal-close {
    position: absolute; top: 10px; right: 12px;
    width: 36px; height: 36px; border: none; border-radius: 50%;
    background: var(--gray-100); color: var(--gray-600);
    font-size: 24px; line-height: 1; cursor: pointer;
}
.pz-modal-close:hover { background: var(--pink); color: var(--white); }
.pz-modal-nadpis { font-size: 1.5rem; color: var(--purple); margin-bottom: 6px; padding: 0 24px; }
.pz-modal-text { font-size: 14.5px; color: var(--gray-600); line-height: 1.55; margin-bottom: 18px; }
.pz-modal-karta { border-radius: var(--pz-radius-sm); overflow: hidden; background: var(--gray-100); }
.pz-modal-karta canvas { display: block; width: 100%; height: auto; }
.pz-modal-akce { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 18px; }
/* display:flex výš přebíjí výchozí chování atributu hidden — bez tohohle
   by se tlačítko schovat nedalo. */
.pz-modal-akce[hidden] { display: none; }
.pz-modal-akce .btn { padding: 12px 24px; font-size: 14px; }

/* Sdílení na konkrétní sítě — záloha i doplněk k systémovému dialogu,
   který na počítačích často chybí nebo neumí poslat obrázek. */
.pz-site { margin-top: 18px; padding-top: 16px; border-top: 1px solid #ececec; }
.pz-site-popis { display: block; font-size: 13px; color: #6b6b6b; margin-bottom: 10px; }
.pz-site-tlacitka { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.pz-sit {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 9px 15px; border-radius: 999px;
    font: 700 13px/1 'Bricolage Grotesque', sans-serif;
    color: #fff; background: var(--purple); border: none; cursor: pointer;
    text-decoration: none; transition: transform .15s var(--ease), filter .15s var(--ease);
}
.pz-sit svg { width: 16px; height: 16px; flex: none; }
.pz-sit:hover, .pz-sit:focus-visible { transform: translateY(-2px); filter: brightness(1.12); color: #fff; }
.pz-sit--fb { background: #1877f2; }
.pz-sit--wa { background: #25d366; }
.pz-sit--x  { background: #14171a; }
.pz-sit--ig { background: linear-gradient(45deg, #f9ce34, #ee2a7b 55%, #6228d7); }
.pz-site-hint { margin-top: 12px; font-size: 13px; line-height: 1.5; color: var(--purple); background: var(--cream); padding: 10px 14px; border-radius: 10px; }
/* Stažení obrázku je drobný odkaz — potřebný pro Instagram a ruční příspěvek
   na Facebooku, ale nemá soupeřit s tlačítky sítí. */
.pz-stahnout-odkaz {
    display: inline-block; margin-top: 14px; padding: 4px 2px;
    background: none; border: none; cursor: pointer;
    font: 600 13px/1.4 'Bricolage Grotesque', sans-serif;
    color: #6b6b6b; text-decoration: underline; text-underline-offset: 3px;
}
.pz-stahnout-odkaz:hover, .pz-stahnout-odkaz:focus-visible { color: var(--pink); }
@media (max-width: 480px) { .pz-sit { flex: 1 1 calc(50% - 8px); justify-content: center; } }
.pz-modal-pozn { font-size: 12.5px; color: var(--gray-500); line-height: 1.5; margin-top: 14px; }
body.pz-modal-otevren { overflow: hidden; }

/* ── RESPONZIVITA ────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .pz-hero-inner { grid-template-columns: 1fr; gap: 32px; }
    .pz-hero-countdown { max-width: 460px; }
    .pz-mapa-layout { grid-template-columns: 1fr; }
    .pz-mapa-panel { position: static; }
    .pz-moje-layout { grid-template-columns: 1fr 300px; gap: 28px; }
    .pz-kroky { grid-template-columns: 1fr 1fr; gap: 24px 20px; }
    .pz-napoveda-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .pz-hero { padding: 104px 0 52px; }
    .pz-hero::before { width: 80%; right: -22%; bottom: -18%; opacity: .1; }
    .pz-hero-actions .btn { flex: 1 1 100%; }
    .pz-cd-item { min-width: 0; flex: 1; padding: 10px 4px; }
    .pz-cd-num { font-size: 1.7rem; }
    .pz-countdown { gap: 4px; }
    .pz-form { padding: 24px 16px; }
    .pz-kod-boxy { gap: 10px; }
    .pz-submit { width: 100%; }
    .pz-zebricky-grid { grid-template-columns: 1fr; gap: 36px; }
    .pz-moje-layout { grid-template-columns: 1fr; }
    .pz-moje-mapa { max-width: 340px; margin: 0 auto; }
    .pz-mapa-box { padding: 10px; }
    /* na dotyku je tooltip zbytečný — informace jsou v panelu pod mapou */
    .pz-tooltip { display: none; }
}

@media (max-width: 560px) {
    .pz-kroky { grid-template-columns: 1fr; }
    .pz-legenda-skala { width: 40vw; }
    .pz-modal-box { padding: 22px 16px 18px; }
    .pz-modal-akce .btn { flex: 1 1 100%; }
}

/* ── OMEZENÍ POHYBU ──────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .pz-mapa-svg .ctvrt,
    .pz-pokrok-fill,
    .pz-zebricek-pruh,
    .pz-modal-box,
    .pz-kod-znak,
    .pz-facade-play,
    .pz-input { transition: none !important; animation: none !important; }
    .pz-mapa-svg .ctvrt.pz-nalezeno { animation: none !important; }
    .pz-feed li:first-child .pz-feed-tecka { animation: none !important; }
    .pz-konfety { display: none !important; }
}

/* ── TISK ────────────────────────────────────────────────────────────── */
@media print {
    .navbar, .pz-konfety, .pz-modal, .cookie-banner, .pz-hero-actions, .pz-form { display: none !important; }
}
