/* pbguide — mobile-first shell
   Paleta: navy #0A2540, gold #C9A961, neutrály. Inter / Noto Sans. */

:root {
  --navy: #0A2540;
  --navy-soft: #16365a;
  --gold: #C9A961;
  --gold-dark: #b3924a;
  --gold-text: #7e6225; /* tmavší zlatá pro TEXT na světlém pozadí (WCAG AA) */
  --bg: #f7f8fa;
  --surface: #ffffff;
  --text: #1b2733;
  --text-muted: #5b6b7b;
  --border: #e3e8ee;
  --radius: 16px;
  --shadow: 0 2px 12px rgba(10, 37, 64, 0.08);
  --header-h: 56px;
  --maxw: 720px;
}

* { box-sizing: border-box; }

/* A11y: skip-to-content (skrytý, dokud nedostane fokus) */
.skip-link {
  position: absolute; left: 8px; top: -56px; z-index: 100;
  padding: 10px 16px;
  background: var(--navy); color: #fff;
  border-radius: 8px; text-decoration: none; font-weight: 600;
  transition: top 120ms ease;
}
.skip-link:focus { top: 8px; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: Inter, "Noto Sans", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

a { color: var(--navy); }

/* Header */
.app-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.app-logo { display: inline-flex; align-items: center; }
.app-logo img { display: block; height: 28px; width: auto; }

/* Language switcher */
.lang-switcher { position: relative; }
.lang-current {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  min-height: 44px;
  font: inherit;
  font-weight: 600;
  color: var(--navy);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
}
.lang-current .lang-code {
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--gold-text);
}
.lang-current .lang-name { font-size: 14px; }
.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  margin: 0;
  padding: 6px;
  list-style: none;
  min-width: 180px;
  max-height: 70vh;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.lang-menu[hidden] { display: none; }
.lang-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text);
  font-size: 15px;
}
.lang-menu a:hover { background: var(--bg); }
.lang-menu a.is-active { background: var(--navy); color: #fff; }
.lang-menu a.is-active .lang-code { color: var(--gold); }
.lang-menu .lang-code {
  font-size: 11px;
  font-weight: 700;
  color: var(--gold-text);
  min-width: 22px;
}

/* Main */
.app-main {
  flex: 1 0 auto;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 16px;
}

/* Hero — fotografický „poster" (Praha od řeky za soumraku) */
.hero {
  position: relative;
  isolation: isolate;
  margin: 20px 0 28px;
  border-radius: 20px;
  overflow: hidden;
  background: var(--navy);
  color: #fff;
  box-shadow: 0 14px 40px rgba(10, 37, 64, 0.30);
}
.hero::before {
  content: '';
  position: absolute; inset: 0; z-index: -2;
  background: url('/img/cruises/dinner-cruise.jpg') center 40% / cover no-repeat;
}
.hero::after {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(10, 37, 64, 0.94) 0%, rgba(10, 37, 64, 0.55) 46%, rgba(10, 37, 64, 0.42) 100%);
}
.hero-inner {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 400px;
  padding: 32px 28px;
}
.hero-title {
  margin: 0 0 12px;
  font-size: clamp(30px, 8vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-wrap: balance;
  text-shadow: 0 2px 18px rgba(10, 37, 64, 0.55);
}
.hero-subtitle {
  margin: 0 0 28px;
  font-size: clamp(16px, 4.4vw, 19px);
  line-height: 1.45;
  color: #eef2f7;
  max-width: 42ch;
  text-shadow: 0 1px 10px rgba(10, 37, 64, 0.55);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--gold);
  color: var(--navy);
}
.btn-primary:hover { background: var(--gold-dark); }

/* Home: primární CTA */
.hp-launch {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  padding: 22px 28px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--navy);
  border-radius: 18px;
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(201, 169, 97, 0.35);
  transition: transform 120ms ease, box-shadow 120ms ease;
}
.hp-launch:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(201, 169, 97, 0.45);
}
.hp-launch-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(10, 37, 64, 0.18);
  font-size: 15px;
  flex: 0 0 auto;
}

/* Home: sekundární karty */
.hp-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin: 0 0 32px;
}
.hp-card-cruises,
.hp-card-quiz {
  text-decoration: none;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
}
.hp-card-cruises:hover,
.hp-card-quiz:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(10, 37, 64, 0.18);
}

/* Plavby — featured karta s fotkou a badge */
.hp-card-cruises {
  position: relative;
  display: block;
  overflow: hidden;
  color: #fff;
  background: var(--navy);
  min-height: 200px;
}
.hp-card-cruises-img {
  position: absolute; inset: 0;
  background-image: url('/img/poi/karluv-most/1-m.jpg');
  background-size: cover;
  background-position: center 32%;
}
.hp-card-cruises::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10, 37, 64, 0.92), rgba(10, 37, 64, 0.35) 55%, rgba(10, 37, 64, 0.05));
}
.hp-card-cruises-content {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; gap: 4px;
  padding: 22px 20px;
  min-height: 200px;
  justify-content: flex-end;
}
.hp-card-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}
.hp-card-cruises .hp-card-title { font-size: 26px; color: #fff; }
.hp-card-cruises .hp-card-text { color: #d8e0e9; font-size: 15px; line-height: 1.5; }
.hp-badge {
  position: absolute; top: 14px; right: 14px;
  z-index: 2;
  background: var(--gold);
  color: var(--navy);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 12px rgba(10, 37, 64, 0.35);
}

/* Quiz — menší textová karta */
.hp-card-quiz {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px;
  background: linear-gradient(135deg, #ffffff 0%, #fbf5e8 100%);
  color: var(--navy);
  border: 1px solid #efe3c6;
}
.hp-card-quiz:hover { border-color: var(--gold); }
.hp-card-quiz-icon {
  flex: 0 0 auto;
  display: grid; place-items: center;
  width: 56px; height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--navy);
  font-size: 26px; font-weight: 800;
  box-shadow: 0 4px 14px rgba(201, 169, 97, 0.45);
}
.hp-card-quiz-body { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hp-card-quiz .hp-card-title { font-size: 18px; font-weight: 700; color: var(--navy); }
.hp-card-quiz .hp-card-text { font-size: 14px; color: var(--text-muted); line-height: 1.4; }
.hp-card-quiz-arrow {
  flex: 0 0 auto;
  color: var(--gold-text);
  font-size: 22px;
}

.hp-card-title { font-weight: 700; }
.hp-card-text { display: block; }

/* Error / 404 */
.error-page { text-align: center; padding: 64px 16px; }
.error-code { font-size: 64px; margin: 0; color: var(--navy); }
.error-message { color: var(--text-muted); margin: 8px 0 24px; }

/* Footer */
.app-footer {
  flex-shrink: 0;
  margin-top: 24px;
  padding: 24px 16px calc(24px + env(safe-area-inset-bottom));
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.app-footer p { margin: 4px 0; }

/* Static pages */
.static-page { margin: 16px 0 40px; }
.page-title { margin: 8px 0 16px; font-size: clamp(24px, 6vw, 32px); color: var(--navy); }
.page-body { line-height: 1.7; }
.page-body img { max-width: 100%; height: auto; border-radius: 12px; }
.page-body h2, .page-body h3 { color: var(--navy); }
.cruise-promo {
  margin-top: 28px; padding: 24px;
  background: linear-gradient(150deg, var(--navy), var(--navy-soft));
  color: #fff; border-radius: var(--radius); text-align: center;
}
.cruise-promo-text { font-size: 18px; font-weight: 600; margin: 0 0 8px; }

/* Cruise picker */
.cruises-intro {
  margin: 0 0 20px;
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.5;
}
.cruise-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 0 0 32px;
}
.cruise-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--navy);
  border: 1px solid var(--border);
  transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
}
.cruise-card:hover {
  transform: translateY(-2px);
  border-color: var(--gold);
  box-shadow: 0 8px 24px rgba(10, 37, 64, 0.18);
}
.cruise-card-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 425 / 240;
  object-fit: cover;
  background: var(--navy);
}
.cruise-card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; }
.cruise-card-title { margin: 0; font-size: 20px; color: var(--navy); }
.cruise-card-blurb { margin: 0; color: var(--text-muted); line-height: 1.5; font-size: 15px; }
.cruise-card-meta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 2px; font-size: 14px; color: var(--gold-text); }
.cruise-meta-item { white-space: nowrap; }
.cruise-card-cta {
  margin-top: 4px;
  font-weight: 700;
  color: var(--gold-text);
  font-size: 15px;
}
@media (min-width: 600px) {
  .cruise-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

/* Page head */
.page-head { margin: 24px 0 8px; }
.page-head h1 { margin: 0; font-size: 26px; color: var(--navy); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.muted { color: var(--text-muted); }

/* POI list */
.poi-list { list-style: none; margin: 16px 0 32px; padding: 0; }
.poi-item { margin-bottom: 12px; }
.poi-item-link {
  display: flex;
  gap: 14px;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  box-shadow: var(--shadow);
}
.poi-item-link:hover { border-color: var(--gold); }
.poi-thumb {
  flex: 0 0 auto;
  width: 88px; height: 88px;
  object-fit: cover;
  border-radius: 12px;
  background: #e9edf2;
}
.poi-thumb-empty { display: block; }
.poi-item-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.poi-item-title { font-weight: 600; color: var(--navy); }
.poi-item-text {
  font-size: 14px; color: var(--text-muted);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.poi-item-meta { font-size: 13px; color: var(--gold-text); }

/* POI detail */
.poi-detail { margin: 16px 0 40px; }
.poi-back { display: inline-block; margin: 8px 0 16px; color: var(--navy); text-decoration: none; font-weight: 600; }
.poi-title { margin: 0 0 16px; font-size: clamp(24px, 6vw, 32px); color: var(--navy); }
.poi-cover { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); margin-bottom: 16px; }
.poi-audio { margin: 0 0 20px; }
.poi-audio audio { width: 100%; }
.poi-short { font-size: 18px; font-weight: 500; }
.poi-body { line-height: 1.7; }
.poi-body img { max-width: 100%; height: auto; border-radius: 12px; }
.poi-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 8px;
  margin-top: 24px;
}
.poi-gallery-item img { width: 100%; height: 120px; object-fit: cover; border-radius: 12px; display: block; }

/* Map */
.map-page { margin: 16px 0 32px; }
.map-canvas {
  width: 100%;
  height: calc(100dvh - var(--header-h) - 120px);
  min-height: 360px;
  border-radius: var(--radius);
  overflow: hidden;
}
.map-popup { font-weight: 600; color: var(--navy); text-decoration: none; }

/* Marker jako kulatý náhled s fotkou */
.poi-marker {
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 3px solid var(--gold);
  background: var(--navy);
  box-shadow: 0 2px 8px rgba(10, 37, 64, 0.45);
  cursor: pointer; padding: 0; overflow: hidden;
}
.poi-marker img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.poi-marker-empty { background: var(--gold); }
.poi-marker:hover { transform: scale(1.08); }

/* Plný detail v modalu (klik na marker) */
.poi-modal {
  position: fixed; inset: 0; z-index: 90;
  display: grid; place-items: center;
  padding: 16px;
  background: rgba(10, 37, 64, 0.55);
}
.poi-modal-box {
  position: relative;
  width: 100%; max-width: 520px;
  max-height: 92dvh; overflow-y: auto;
  background: var(--surface);
  border-radius: 18px;
  box-shadow: 0 12px 40px rgba(10, 37, 64, 0.35);
}
.poi-modal-close {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  width: 44px; height: 44px; border: none; border-radius: 50%;
  background: rgba(255, 255, 255, 0.9); color: var(--navy);
  font-size: 22px; cursor: pointer;
}
.poi-modal-hero {
  position: relative;
  min-height: 200px;
  background: var(--navy) center/cover no-repeat;
  border-radius: 18px 18px 0 0;
  display: flex; align-items: flex-end;
  color: #fff;
}
.poi-modal-hero::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,37,64,0.85), rgba(10,37,64,0.05) 60%);
  border-radius: 18px 18px 0 0;
}
.poi-modal-hero-ov { position: relative; z-index: 1; padding: 20px; }
.poi-modal-title { margin: 0; font-size: clamp(22px, 6vw, 30px); }
.poi-modal-sub { margin: 4px 0 0; color: var(--gold); font-style: italic; }
.poi-modal-play {
  position: absolute; z-index: 1; right: 20px; bottom: -24px;
  width: 56px; height: 56px; border-radius: 50%; border: none;
  background: var(--gold); color: var(--navy); font-size: 20px; cursor: pointer;
  box-shadow: 0 4px 14px rgba(10, 37, 64, 0.4);
}
.poi-modal-tabs { display: flex; gap: 24px; padding: 16px 20px 0; border-bottom: 1px solid var(--border); }
.poi-modal-tabs button {
  background: none; border: none; padding: 8px 0 12px; font: inherit; font-weight: 600;
  color: var(--text-muted); cursor: pointer; border-bottom: 2px solid transparent;
}
.poi-modal-tabs button.is-active { color: var(--navy); border-bottom-color: var(--gold); }
.poi-modal-tabs button:disabled { opacity: 0.4; cursor: default; }
.poi-modal-content { padding: 18px 20px 24px; line-height: 1.7; }
.poi-modal-content .poi-body img { max-width: 100%; height: auto; border-radius: 10px; }

/* Active POI bottom card (geolokace) */
.active-card {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  z-index: 60;
  width: min(100%, var(--maxw));
  display: flex;
  gap: 14px;
  padding: 16px 16px calc(16px + env(safe-area-inset-bottom));
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -6px 24px rgba(10, 37, 64, 0.16);
  animation: card-up 0.22s ease-out;
}
@keyframes card-up { from { transform: translate(-50%, 100%); } to { transform: translate(-50%, 0); } }
.active-card[hidden] { display: none; }
body.has-player .active-card { bottom: 72px; border-radius: 18px; }
.active-card-close {
  position: absolute;
  top: 6px; right: 8px;
  width: 44px; height: 44px;
  border: none; border-radius: 50%;
  background: var(--bg); color: var(--text);
  font-size: 22px; line-height: 1; cursor: pointer;
}
.active-card-cover {
  flex: 0 0 auto;
  width: 84px; height: 84px;
  object-fit: cover; border-radius: 12px; background: #e9edf2;
}
.active-card-cover[hidden] { display: none; }
.active-card-body { min-width: 0; flex: 1; padding-right: 44px; }
.active-card-title { margin: 0 0 4px; font-size: 17px; color: var(--navy); }
.active-card-text {
  margin: 0 0 10px; font-size: 14px; color: var(--text-muted);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.active-card-actions { display: flex; align-items: center; gap: 14px; }
.active-card-play {
  border: none; border-radius: 999px;
  padding: 9px 18px;
  background: var(--gold); color: var(--navy);
  font: inherit; font-weight: 600; cursor: pointer;
}
.active-card-play[hidden] { display: none; }
.active-card-more { font-weight: 600; color: var(--navy); text-decoration: none; }

/* Geolocation fallback banner */
.geo-banner {
  position: fixed;
  left: 50%; transform: translateX(-50%);
  top: calc(var(--header-h) + 8px);
  z-index: 55;
  width: min(100% - 24px, var(--maxw));
  padding: 10px 14px;
  background: var(--navy); color: #fff;
  border-radius: 10px;
  font-size: 13px;
  box-shadow: var(--shadow);
}
.geo-banner[hidden] { display: none; }

/* Privacy banner */
.privacy-banner {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; z-index: 75;
  width: min(100%, var(--maxw));
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: var(--navy); color: #fff; font-size: 13px;
  border-radius: 14px 14px 0 0; box-shadow: 0 -4px 18px rgba(10,37,64,0.25);
}
/* Když hraje audio, banner musí uhnout nad přehrávač — oba jsou fixed na bottom:0
   a banner má vyšší z-index, takže by jinak zakryl ovládání. */
body.has-player .privacy-banner { bottom: calc(72px + env(safe-area-inset-bottom)); }
.privacy-banner button {
  flex: 0 0 auto; border: none; border-radius: 999px;
  padding: 8px 16px; background: var(--gold); color: var(--navy);
  font: inherit; font-weight: 600; cursor: pointer;
}

/* Quiz */
.quiz { margin: 24px 0 40px; }
.quiz-intro h1 { color: var(--navy); margin: 0 0 8px; }

/* Hlavička hry: progress + počítadlo + body/série (v3) */
.quiz-play-head { margin-bottom: 14px; }
.quiz-progress { height: 8px; background: var(--border); border-radius: 999px; overflow: hidden; margin-bottom: 10px; }
.quiz-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-dark)); border-radius: 999px; transition: width 360ms cubic-bezier(0.22, 1, 0.36, 1); }
.quiz-play-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.quiz-count { color: var(--text-muted); font-size: 13px; margin: 0; }
.quiz-play-right { display: flex; align-items: center; gap: 8px; }
.quiz-points { font-size: 13px; font-weight: 700; color: var(--navy); background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 3px 10px; }
.quiz-streak { margin: 0; font-size: 13px; font-weight: 700; color: var(--gold-text); background: #fff7e6; border: 1px solid #f0e0b8; border-radius: 999px; padding: 3px 10px; animation: quiz-pop 300ms ease; }

/* Otázková karta */
.quiz-qcard {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 18px;
  animation: quiz-slide-in 320ms cubic-bezier(0.22, 1, 0.36, 1);
}
.quiz-qcard.is-shake { animation: quiz-shake 420ms ease; }
.quiz-qcard-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.quiz-question { font-size: 20px; color: var(--navy); margin: 0; flex: 1; }

/* Časový kroužek — jen bonus za rychlost, odpovídat lze i po vypršení */
.quiz-timer { position: relative; flex: 0 0 auto; width: 44px; height: 44px; }
.quiz-timer svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.quiz-timer-bg { fill: none; stroke: var(--border); stroke-width: 3; }
.quiz-timer-fg { fill: none; stroke: var(--gold); stroke-width: 3; stroke-linecap: round; }
.quiz-timer-num { position: absolute; inset: 0; display: grid; place-items: center; font-size: 13px; font-weight: 700; color: var(--navy); }
.quiz-timer.is-low .quiz-timer-fg { stroke: #c0392b; }
.quiz-timer.is-low .quiz-timer-num { color: #c0392b; animation: quiz-pulse 1s ease infinite; }
.quiz-timer.is-out { opacity: 0.45; }

.quiz-answers { display: flex; flex-direction: column; gap: 10px; }
.quiz-answer {
  text-align: left; padding: 14px 16px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  font: inherit; font-size: 16px; cursor: pointer;
  transition: transform 120ms ease, border-color 120ms ease;
  animation: quiz-rise 280ms cubic-bezier(0.22, 1, 0.36, 1) backwards;
  animation-delay: calc(var(--i, 0) * 60ms);
}
.quiz-answer:hover { border-color: var(--gold); }
.quiz-answer:active { transform: scale(0.98); }
.quiz-result { padding: 14px 16px; border-radius: 12px; margin-bottom: 10px; border-left: 4px solid; }
.quiz-result.is-correct { background: #eaf6ee; border-color: #2e8b57; }
.quiz-result.is-wrong { background: #fdecec; border-color: #c0392b; }
.quiz-result-q { font-weight: 600; margin: 0 0 6px; }
.quiz-result-correct { margin: 0 0 6px; color: #2e8b57; font-weight: 600; }
.quiz-result-exp { margin: 0; font-size: 14px; color: var(--text-muted); }

/* Quiz v2 — rozcestník sad */
.quiz-hub-head { margin: 24px 0 16px; }
.quiz-hub-head h1 { margin: 0 0 4px; color: var(--navy); }
.quiz-hub { display: grid; grid-template-columns: 1fr; gap: 14px; margin-bottom: 20px; }
@media (min-width: 600px) { .quiz-hub { grid-template-columns: repeat(2, 1fr); } }
.quiz-card {
  display: flex; align-items: center; gap: 16px;
  text-align: left; padding: 16px 18px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
  font: inherit; color: var(--text); cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
  animation: quiz-rise 300ms cubic-bezier(0.22, 1, 0.36, 1) backwards;
  animation-delay: calc(var(--i, 0) * 50ms);
}
.quiz-card:hover { transform: translateY(-2px); border-color: var(--gold); box-shadow: 0 8px 24px rgba(10, 37, 64, 0.16); }
.quiz-card-icon {
  flex: 0 0 auto; width: 56px; height: 56px;
  display: grid; place-items: center;
  font-size: 32px; line-height: 1;
  background: var(--bg); border-radius: 14px;
}
.quiz-card-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.quiz-card-titlerow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.quiz-card-title { font-size: 18px; font-weight: 700; color: var(--navy); }
.quiz-card-diff { display: inline-flex; gap: 3px; }
.quiz-card-diff i { width: 6px; height: 6px; border-radius: 50%; background: var(--border); }
.quiz-card-diff i.is-on { background: var(--gold); }
.quiz-card-desc { font-size: 14px; color: var(--text-muted); line-height: 1.4; }
.quiz-card-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; font-size: 13px; color: var(--text-muted); }
.quiz-card-best { color: var(--gold-text); font-weight: 600; }
.quiz-card.is-kids { background: linear-gradient(135deg, #ffffff, #fff7e6); border-color: #f0e0b8; }
.quiz-card.is-kids .quiz-card-icon { background: #fff0cc; }
.quiz-pool-note { font-size: 13px; margin: 0 0 32px; }

/* Okamžitá zpětná vazba na odpovědích */
.quiz-answer:disabled { cursor: default; }
.quiz-answer.is-correct { border-color: #2e8b57; background: #eaf6ee; color: #1c5f3a; font-weight: 600; animation: quiz-correct-pop 350ms ease; }
.quiz-answer.is-wrong { border-color: #c0392b; background: #fdecec; color: #8a2620; }
.quiz-feedback { margin: 16px 0 0; padding: 12px 16px; border-radius: 12px; border-left: 4px solid; animation: quiz-rise 260ms cubic-bezier(0.22, 1, 0.36, 1); }
.quiz-feedback.is-correct { background: #eaf6ee; border-color: #2e8b57; }
.quiz-feedback.is-wrong { background: #fdecec; border-color: #c0392b; }
.quiz-feedback-label { margin: 0 0 4px; font-weight: 700; color: var(--navy); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.quiz-feedback-pts { color: var(--gold-text); font-size: 15px; animation: quiz-pop 400ms ease; }
.quiz-feedback-exp { margin: 0; font-size: 14px; color: var(--text-muted); }
.quiz-feedback + .btn, .quiz-answers + .btn { margin-top: 16px; }
.quiz-next { display: block; margin-left: auto; margin-right: auto; min-width: 60%; }

/* Toast pro milníky série */
.quiz-toast {
  position: fixed; left: 50%; bottom: 28px;
  transform: translateX(-50%) translateY(16px);
  z-index: 90; padding: 10px 20px; border-radius: 999px;
  background: var(--navy); color: #fff; font-weight: 700; font-size: 15px;
  box-shadow: 0 8px 24px rgba(10, 37, 64, 0.35);
  opacity: 0; pointer-events: none;
  transition: opacity 250ms ease, transform 250ms ease;
}
.quiz-toast.is-in { opacity: 1; transform: translateX(-50%) translateY(0); }
.quiz-toast.is-big { font-size: 17px; padding: 14px 26px; border: 1px solid var(--gold); }

/* Konfety (canvas přes celou obrazovku) */
.quiz-confetti { position: fixed; inset: 0; z-index: 95; pointer-events: none; }

/* Obrázkové odpovědi (dětská sada) */
.quiz-answers-img { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.quiz-answers-img .quiz-answer {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 8px; text-align: center;
}
.quiz-answer-img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 12px; display: block; background: var(--bg); }
.quiz-answer-cap { font-size: 13px; color: var(--text-muted); }

/* Výsledek */
.quiz-result-top { text-align: center; margin-bottom: 18px; }
.quiz-rank { text-align: center; font-size: 22px; font-weight: 700; color: var(--navy); margin: 8px 0 14px; }
.quiz-ring { position: relative; width: 150px; height: 150px; margin: 0 auto; }
.quiz-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.quiz-ring-bg { fill: none; stroke: var(--border); stroke-width: 9; }
.quiz-ring-fg { fill: none; stroke: var(--gold); stroke-width: 9; stroke-linecap: round; transition: stroke-dashoffset 900ms cubic-bezier(0.22, 1, 0.36, 1); }
.quiz-ring-num { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; }
.quiz-score { font-size: 40px; font-weight: 800; color: var(--navy); line-height: 1; outline: none; }
.quiz-score-total { font-size: 15px; color: var(--text-muted); }
.quiz-newbest { margin: 12px 0 0; font-weight: 700; color: var(--gold-text); animation: quiz-pop 400ms ease; }
.quiz-emoji-grid { margin: 10px 0 0; font-size: 17px; letter-spacing: 2px; }
.quiz-stats { display: flex; justify-content: center; gap: 10px; margin: 16px 0 4px; flex-wrap: wrap; }
.quiz-stat {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  min-width: 88px; padding: 10px 12px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
}
.quiz-stat-emoji { font-size: 18px; }
.quiz-stat-value { font-size: 17px; font-weight: 700; color: var(--navy); }
.quiz-stat-label { font-size: 12px; color: var(--text-muted); }
.quiz-best { text-align: center; color: var(--gold-text); font-weight: 600; margin: 4px 0 16px; }
.quiz-result-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 20px 0; }
.btn-secondary { background: var(--surface); color: var(--navy); border: 1px solid var(--border); font: inherit; font-weight: 600; }
.btn-secondary:hover { border-color: var(--gold); }

/* Dětský režim — hravější a větší */
.quiz-kids .quiz-question { font-size: 24px; text-align: center; }
.quiz-kids .quiz-count { text-align: center; }
.quiz-kids .quiz-answers-img { gap: 14px; }
.quiz-kids .quiz-answer-img { border-radius: 16px; }
.quiz-kids .quiz-feedback { text-align: center; border-left: none; border: 2px solid; }
.quiz-kids .quiz-feedback.is-correct { border-color: #2e8b57; }
.quiz-kids .quiz-feedback.is-wrong { border-color: var(--gold); background: #fff7e6; }
.quiz-kids .quiz-feedback-label { justify-content: center; }
.quiz-kids .quiz-rank { font-size: 26px; }
.quiz-kids .quiz-qcard-head { justify-content: center; }
.quiz-stars { margin: 0; font-size: 16px; letter-spacing: 2px; color: var(--gold-text); }
.quiz-stars .is-new { display: inline-block; animation: quiz-star 500ms cubic-bezier(0.34, 1.56, 0.64, 1); }

/* Animace kvízu */
@keyframes quiz-slide-in { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
@keyframes quiz-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes quiz-shake {
  10%, 90% { transform: translateX(-2px); }
  20%, 80% { transform: translateX(4px); }
  30%, 50%, 70% { transform: translateX(-6px); }
  40%, 60% { transform: translateX(6px); }
}
@keyframes quiz-pop { from { transform: scale(0.6); } 60% { transform: scale(1.15); } to { transform: scale(1); } }
@keyframes quiz-pulse { 50% { transform: scale(1.15); } }
@keyframes quiz-star { from { transform: scale(0) rotate(-40deg); } 70% { transform: scale(1.4) rotate(10deg); } to { transform: scale(1); } }
@keyframes quiz-correct-pop { 40% { transform: scale(1.02); } }

@media (prefers-reduced-motion: reduce) {
  .quiz-qcard, .quiz-answer, .quiz-card, .quiz-streak, .quiz-feedback,
  .quiz-feedback-pts, .quiz-newbest, .quiz-stars .is-new { animation: none !important; }
  .quiz-ring-fg, .quiz-progress span, .quiz-toast { transition: none !important; }
}

/* Pre-cache consent dialog */
.precache {
  position: fixed; inset: 0; z-index: 80;
  display: grid; place-items: center;
  padding: 24px;
  background: rgba(10, 37, 64, 0.55);
}
.precache-box {
  position: relative;
  width: 100%; max-width: 360px;
  background: var(--surface);
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 8px 32px rgba(10, 37, 64, 0.3);
}
.precache-close {
  position: absolute; top: 10px; right: 10px;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border: none; border-radius: 50%;
  background: none; color: var(--text-muted);
  font-size: 24px; line-height: 1; cursor: pointer;
}
.precache-close:hover { background: var(--bg); color: var(--navy); }
.precache-status {
  margin: 0 0 16px; padding: 10px 12px;
  background: #fff7e6; border: 1px solid #f0e0b8; border-radius: 10px;
  color: var(--text); font-size: 14px;
}
.precache-title { margin: 0 0 8px; font-size: 19px; color: var(--navy); }
.precache-body { margin: 0 0 20px; color: var(--text-muted); font-size: 15px; }
.precache-progress { margin-bottom: 16px; }
.precache-bar { height: 8px; background: var(--bg); border-radius: 999px; overflow: hidden; }
.precache-bar span { display: block; width: 0; height: 100%; background: var(--gold); transition: width 0.2s; }
.precache-pct { display: block; margin-top: 6px; font-size: 13px; color: var(--text-muted); }
.precache-actions { display: flex; justify-content: flex-end; gap: 12px; align-items: center; }
.btn-text { background: none; border: none; color: var(--text-muted); font: inherit; cursor: pointer; padding: 10px; }

/* Mini audio player */
.player {
  position: fixed; left: 50%; bottom: 0; transform: translateX(-50%);
  z-index: 70;
  width: min(100%, var(--maxw));
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: var(--navy); color: #fff;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -6px 24px rgba(10, 37, 64, 0.28);
}
.player[hidden] { display: none; }
.player-cover { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; background: #16365a; flex: 0 0 auto; }
.player-cover[hidden] { display: none; }
.player-main { flex: 1; min-width: 0; }
.player-title { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-scrub { width: 100%; margin: 6px 0 0; accent-color: var(--gold); }
.player-btn {
  flex: 0 0 auto;
  width: 40px; height: 40px;
  border: none; border-radius: 50%;
  background: var(--gold); color: var(--navy);
  font-size: 16px; cursor: pointer;
}
.player-btn.player-back { background: transparent; color: #fff; font-size: 13px; width: auto; padding: 0 6px; }
.player-lang { font-size: 11px; font-weight: 700; color: var(--gold); }
.player-close { background: transparent; border: none; color: #cdd6e0; font-size: 18px; cursor: pointer; min-width: 44px; min-height: 44px; flex: 0 0 auto; }


/* Lightbox (prohlížeč fotek) */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(10, 37, 64, 0.94);
  display: grid;
  grid-template-rows: 1fr auto auto;
  align-items: stretch;
  animation: lightbox-in 160ms ease-out;
  touch-action: pan-y;
  user-select: none;
}
@keyframes lightbox-in { from { opacity: 0; } to { opacity: 1; } }
.lightbox-stage {
  position: relative;
  grid-row: 1;
  grid-column: 1 / -1;
  display: grid; place-items: center;
  padding: 56px 16px 8px;
  overflow: hidden;
}
.lightbox-img {
  max-width: 100%;
  max-height: 100%;
  width: auto; height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 160ms ease-out;
}
.lightbox-img.is-loaded { opacity: 1; }
.lightbox-spinner {
  position: absolute;
  width: 36px; height: 36px;
  border: 3px solid rgba(255, 255, 255, 0.25);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: lightbox-spin 0.8s linear infinite;
}
@keyframes lightbox-spin { to { transform: rotate(360deg); } }
.lightbox-caption {
  grid-row: 2;
  padding: 8px 16px 4px;
  color: #fff;
  text-align: center;
  font-size: 15px;
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}
.lightbox-counter {
  grid-row: 3;
  padding: 0 16px 16px;
  color: var(--gold);
  text-align: center;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.lightbox-close,
.lightbox-nav {
  position: absolute;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  border-radius: 50%;
  display: grid; place-items: center;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background 120ms ease;
}
.lightbox-close:hover,
.lightbox-nav:hover { background: rgba(255, 255, 255, 0.22); }
.lightbox-close:active,
.lightbox-nav:active { background: rgba(255, 255, 255, 0.32); }
.lightbox-close {
  top: 12px; right: 12px;
  width: 40px; height: 40px;
  font-size: 24px; line-height: 1;
}
.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 48px; height: 48px;
  font-size: 32px; line-height: 1;
}
.lightbox-prev { left: 12px; }
.lightbox-next { right: 12px; }
@media (max-width: 480px) {
  .lightbox-nav { width: 40px; height: 40px; font-size: 26px; }
  .lightbox-prev { left: 6px; }
  .lightbox-next { right: 6px; }
}
@media (hover: none) and (pointer: coarse) {
  /* Na touch zařízeních se naviguje swipem — šipky jsou jen vizuální nápověda. */
  .lightbox-nav { opacity: 0.55; }
}

/* A11y: viditelný focus ring pro klávesnici (web neměl žádné focus pravidlo) */
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}
/* Na tmavých plochách bílý ring (zlatý by zanikl) */
.hero :focus-visible,
.player :focus-visible,
.geo-banner :focus-visible,
.privacy-banner :focus-visible,
.poi-modal :focus-visible,
.lightbox :focus-visible,
.hp-card-cruises:focus-visible { outline-color: #fff; }
/* Na zlatých plochách tmavě modrý ring */
.btn-primary:focus-visible,
.hp-launch:focus-visible,
.hp-badge:focus-visible,
.active-card-play:focus-visible,
.poi-modal-play:focus-visible,
.player-btn:focus-visible { outline-color: var(--navy); }

/* A11y: respektuj prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
