:root {
  --forest: #172f17;
  --forest-2: #244522;
  --moss: #4d6d31;
  --gold: #b98935;
  --gold-soft: #d8b36d;
  --paper: #f6e8c6;
  --paper-2: #ead3a0;
  --ink: #132313;
  --muted: #5f4e2f;
  --danger: #8a3a26;
  --ok: #2f6d35;
  --shadow: 0 18px 42px rgba(19, 35, 19, .18);
  --radius: 24px;
  --nav-h: 92px;
  --fixed-header-h: 102px;
}


* { box-sizing: border-box; }

html {
  background: #172f17;
  min-height: 100%;
  scroll-padding-top: calc(var(--fixed-header-h, 102px) + 14px);
}


body {
  margin: 0;
  min-height: 100%;
  padding-top: calc(var(--fixed-header-h, 102px) + 10px);
  overflow-x: hidden;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 221, 145, .28), transparent 28rem),
    linear-gradient(180deg, rgba(19, 41, 18, .96), rgba(22, 46, 22, .92)),
    #183418;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .18;
  background-image: radial-gradient(circle, rgba(255,220,117,.22) 0 1px, transparent 2px);
  background-size: 34px 34px;
  z-index: -1;
}

a { color: inherit; }

.site-header-wrap {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  transform: translateZ(0);
  z-index: 10000;
  width: 100%;
  margin: 0;
  padding: max(8px, env(safe-area-inset-top)) 12px 9px;
  background:
    linear-gradient(180deg, rgba(7, 31, 15, .995), rgba(12, 49, 22, .992));
  box-shadow: 0 12px 28px rgba(0,0,0,.26);
  isolation: isolate;
}

.site-header {
  width: min(1240px, 100%);
  margin: 0 auto;
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px clamp(12px, 2.5vw, 20px);
  border-radius: 999px;
  border: 1px solid rgba(216, 179, 109, .55);
  background: linear-gradient(180deg, rgba(13,67,34,.97), rgba(8,37,20,.98));
  box-shadow: 0 14px 30px rgba(0,0,0,.30), inset 0 1px rgba(255,255,255,.08);
}

.brand-header {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--paper);
  padding: 0;
  text-align: left;
}

.brand-logo {
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 999px;
  border: 2px solid rgba(255,239,173,.82);
  box-shadow: 0 7px 14px rgba(0,0,0,.36);
  background: rgba(255, 239, 173, .05);
}

.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1;
  min-width: 0;
}

.brand-copy strong {
  color: #ffe7a7;
  font-size: clamp(1.38rem, 3.4vw, 2.65rem);
  font-weight: 900;
  letter-spacing: -.035em;
  white-space: nowrap;
  text-shadow: 0 2px 0 rgba(0,0,0,.34);
}

.brand-copy small {
  color: #ffe7a7;
  font-size: clamp(.82rem, 1.2vw, .98rem);
  font-weight: 800;
  white-space: nowrap;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-left: auto;
}

.top-nav button,
.top-nav a,
.mobile-menu button,
.mobile-menu a {
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  color: #ffe7a7;
  border-radius: 999px;
  padding: 10px 13px;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
}

.top-nav button:hover,
.top-nav a:hover,
.top-nav button.active,
.mobile-menu button.active {
  background: rgba(216,179,109,.20);
  border-color: rgba(216,179,109,.34);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.header-progress {
  background: rgba(246, 232, 198, .08);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(217, 163, 59, .65);
  background: rgba(0,0,0,.16);
  color: #ffe7a7;
  font-size: 1.35rem;
  font-weight: 900;
}

.mobile-menu {
  width: min(1240px, 100%);
  margin: 8px auto 0;
  padding: 8px;
  border-radius: 22px;
  border: 1px solid rgba(216,179,109,.45);
  background: rgba(8,37,20,.98);
  box-shadow: 0 14px 26px rgba(0,0,0,.26);
}

.mobile-menu[hidden] { display: none; }

.mobile-menu button,
.mobile-menu a {
  display: block;
  width: 100%;
  text-align: left;
  padding: 13px 14px;
  border-radius: 15px;
}

.site-footer {
  width: min(1240px, calc(100% - 24px));
  margin: 10px auto 34px;
  padding: clamp(18px, 3vw, 28px);
  border-radius: 28px;
  color: #f8e6bd;
  background: rgba(4,18,8,.74);
  border: 1px solid rgba(219,174,73,.30);
  text-align: center;
  box-shadow: 0 18px 42px rgba(0,0,0,.20);
}

.footer-title h2 {
  margin: 0 0 6px;
  font-size: clamp(2rem, 5vw, 3.8rem);
  line-height: .96;
  color: #ffe7a7;
  letter-spacing: -.035em;
}

.footer-title p,
.footer-note {
  margin: 0;
  color: #f4dfb1;
  line-height: 1.4;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
}

.footer-link {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-height: 118px;
  padding: 15px 12px;
  border-radius: 18px;
  border: 1px solid rgba(229,194,106,.34);
  background: linear-gradient(135deg, rgba(255,242,197,.12), rgba(224,181,80,.08));
  color: #fff0bf;
  text-decoration: none;
  text-align: center;
}

.footer-link:hover,
.footer-link:focus-visible {
  transform: translateY(-2px);
  background: linear-gradient(135deg, rgba(255,242,197,.18), rgba(224,181,80,.12));
  outline: 3px solid rgba(239,198,92,.16);
}

.footer-link strong {
  color: #ffe8a4;
  font-size: 1.02rem;
  line-height: 1.05;
}

.footer-link span {
  color: #f4dfb1;
  font-size: .9rem;
  line-height: 1.28;
}

.footer-current {
  background: linear-gradient(135deg, rgba(255,232,164,.21), rgba(34,89,46,.20));
  border-color: rgba(255,232,164,.62);
}

button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .72; }

img {
  display: block;
  width: 100%;
  height: auto;
}

.app {
  width: min(100%, 1120px);
  margin: 0 auto;
  padding: 22px 12px 28px;
}


.noscript {
  max-width: 720px;
  margin: 30px auto;
  padding: 18px;
  color: var(--paper);
  background: #451f16;
  border: 2px solid var(--gold);
  border-radius: 16px;
}

.screen {
  animation: soft-in .22s ease-out;
}

@keyframes soft-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 8px 0 12px;
}

.brand-small {
  color: var(--paper);
  font-weight: 700;
  letter-spacing: .02em;
  text-shadow: 0 2px 8px rgba(0,0,0,.4);
}

.progress-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(216, 179, 109, .7);
  background: rgba(246, 232, 198, .1);
  color: var(--paper);
  border-radius: 999px;
  padding: 8px 11px;
  font-size: .92rem;
  white-space: nowrap;
}

.panel {
  position: relative;
  overflow: hidden;
  border: 2px solid #9f7430;
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255,255,255,.35), rgba(255,255,255,0)),
    radial-gradient(circle at 50% 0%, rgba(255, 229, 156, .72), transparent 24rem),
    var(--paper);
  box-shadow: var(--shadow);
}

.panel::before,
.panel::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(137, 91, 29, .38);
  border-radius: calc(var(--radius) - 8px);
  pointer-events: none;
}

.panel-inner {
  position: relative;
  z-index: 1;
  padding: 18px;
}

.hero-title {
  font-size: clamp(2.15rem, 9vw, 5.4rem);
  line-height: 1;
  margin: 4px 0 10px;
  color: var(--forest);
  text-align: center;
  letter-spacing: -.03em;
}

.title {
  font-size: clamp(1.8rem, 7vw, 4.1rem);
  line-height: 1;
  margin: 0 0 8px;
  color: var(--forest);
  letter-spacing: -.02em;
}

.subtitle,
.lead {
  margin: 0 auto 14px;
  max-width: 760px;
  font-size: clamp(1.02rem, 4vw, 1.35rem);
  line-height: 1.38;
  text-align: center;
  color: #25351e;
}

.text {
  font-size: 1.06rem;
  line-height: 1.48;
  color: #263820;
}

.muted { color: var(--muted); }
.center { text-align: center; }

.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 10px auto 16px;
  color: var(--gold);
}

.ornament::before,
.ornament::after {
  content: "";
  width: min(118px, 22vw);
  height: 1px;
  background: linear-gradient(90deg, transparent, currentColor, transparent);
}

.ornament span { font-size: 1.2rem; }

.hero-image {
  margin: 0 auto 8px;
}

.hero-image,
.location-image {
  border-radius: 18px;
  border: 2px solid rgba(143, 98, 36, .75);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.35), 0 10px 24px rgba(55,32,6,.14);
  background: #d8b36d;
  overflow: hidden;
}

.hero-image img,
.location-image img {
  width: 100%;
  height: auto;
  object-fit: contain;
  background: #ead3a0;
}


.hero-image--desktop-wide {
  max-width: 100%;
}

@media (min-width: 760px) {
  .hero-image--desktop-wide {
    max-width: min(100%, 860px);
    margin-bottom: 14px;
  }
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 16px;
}

.btn {
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  background: linear-gradient(180deg, #f7d98a, #b9852c);
  color: #1d2512;
  font-weight: 700;
  box-shadow: 0 5px 0 #7a541e, 0 12px 24px rgba(77, 44, 8, .22);
}

.btn:active { transform: translateY(2px); box-shadow: 0 3px 0 #7a541e, 0 7px 16px rgba(77,44,8,.18); }

.btn.secondary {
  background: linear-gradient(180deg, #fff6dc, #ddbf7d);
  box-shadow: 0 5px 0 #9f7831, 0 10px 22px rgba(77,44,8,.12);
}

.btn.ghost {
  background: rgba(255, 248, 225, .34);
  border: 1px solid rgba(111, 75, 29, .35);
  box-shadow: none;
}

.btn.danger {
  background: linear-gradient(180deg, #efc0a8, #a95035);
  color: #fffbe9;
  box-shadow: 0 5px 0 #692d1d, 0 10px 22px rgba(77,44,8,.12);
}

.card-grid {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.location-card,
.task-card,
.word-card,
.answer-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(137, 91, 29, .45);
  border-radius: 20px;
  background: rgba(255, 248, 225, .67);
  box-shadow: 0 10px 22px rgba(61, 38, 10, .11);
}

.location-card img,
.task-card img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.card-body { padding: 13px; }
.card-body h3 { margin: 0 0 6px; font-size: 1.35rem; color: var(--forest); }
.card-body p { margin: 0 0 10px; line-height: 1.35; color: #314125; }

.status {
  display: inline-flex;
  margin-bottom: 9px;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: .86rem;
  font-weight: 700;
  background: rgba(47, 109, 53, .14);
  color: #245227;
  border: 1px solid rgba(47, 109, 53, .22);
}
.status.locked { background: rgba(137, 91, 29, .13); color: #6e4c1b; }
.status.done { background: rgba(47, 109, 53, .18); }

.task-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.task-button {
  width: 100%;
  display: grid;
  grid-template-columns: 76px 1fr auto;
  align-items: center;
  gap: 12px;
  text-align: left;
  border: 1px solid rgba(137, 91, 29, .45);
  border-radius: 18px;
  background: rgba(255, 248, 225, .78);
  padding: 8px;
  color: var(--ink);
  box-shadow: 0 8px 18px rgba(61, 38, 10, .08);
}

.task-button img {
  width: 76px;
  height: 76px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid rgba(137, 91, 29, .38);
}

.task-button strong { display: block; font-size: 1.08rem; color: var(--forest); }
.task-button span { display: block; font-size: .93rem; color: var(--muted); margin-top: 2px; }
.task-button .mark { font-size: 1.35rem; color: var(--ok); }

.answers {
  display: grid;
  gap: 10px;
  margin: 14px 0;
}

.answer-card {
  width: 100%;
  text-align: left;
  padding: 14px 15px;
  color: var(--ink);
  font-weight: 700;
}

.answer-card.selected,
.answer-card:hover,
.task-button:hover,
.location-card:hover {
  outline: 3px solid rgba(184, 137, 53, .25);
}

.sequence-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  min-height: 44px;
  padding: 10px;
  border-radius: 16px;
  background: rgba(255,255,255,.34);
  border: 1px dashed rgba(137,91,29,.45);
}

.token {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 12px;
  border-radius: 14px;
  background: #fff4d6;
  border: 1px solid rgba(137, 91, 29, .45);
  font-weight: 700;
  color: var(--forest);
}

.word-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.word-slot {
  min-height: 54px;
  border-radius: 16px;
  border: 1px dashed rgba(137,91,29,.5);
  background: rgba(255,248,225,.48);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  font-weight: 700;
  color: var(--forest);
}

.word-slot.empty { color: rgba(95,78,47,.56); font-weight: 400; }

.phrase-output {
  min-height: 70px;
  margin: 14px 0;
  padding: 13px;
  border-radius: 18px;
  border: 1px solid rgba(137, 91, 29, .45);
  background: rgba(255,255,255,.37);
  text-align: center;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--forest);
}

.knock-counter {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 12px 0;
}

.knock-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid rgba(137,91,29,.55);
  background: rgba(255,255,255,.32);
}
.knock-dot.on { background: radial-gradient(circle, #fff6bc, #b98935); }


.toast {
  position: fixed;
  left: 50%;
  bottom: calc(18px + env(safe-area-inset-bottom));
  transform: translateX(-50%) translateY(18px);
  z-index: 20;
  width: min(calc(100% - 24px), 560px);
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(23, 47, 23, .96);
  color: #fff5d8;
  border: 1px solid rgba(216,179,109,.65);
  box-shadow: 0 14px 32px rgba(0,0,0,.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.bottom-nav {
  position: fixed;
  z-index: 10;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--nav-h);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  padding: 7px 8px calc(7px + env(safe-area-inset-bottom));
  background: rgba(18, 36, 17, .96);
  border-top: 1px solid rgba(216,179,109,.45);
  box-shadow: 0 -10px 28px rgba(0,0,0,.25);
}
.bottom-nav[hidden] { display: none; }
.bottom-nav button {
  border: 1px solid rgba(216,179,109,.24);
  border-radius: 14px;
  background: rgba(246,232,198,.1);
  color: var(--paper);
  font-size: .92rem;
  font-weight: 700;
}
.bottom-nav button.active { background: rgba(216,179,109,.26); color: #fff6da; }

.two-col { display: grid; gap: 14px; }
.chapter-two-col { display: grid; gap: 14px; }

.chapter-visual {
  width: 100%;
  max-width: 380px;
  justify-self: center;
}

.chapter-side { width: 100%; }

.help-box {
  margin-top: 12px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(137,91,29,.45);
  background: rgba(255,248,225,.56);
}


.help-steps {
  display: grid;
  gap: 8px;
}

.help-steps p {
  margin: 0;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .34);
  border: 1px solid rgba(137, 91, 29, .18);
}

@media (min-width: 760px) {
  .app { padding: 18px 20px 36px; }
  .hero-image { max-width: 430px; }
  .hero-image.hero-image--desktop-wide { max-width: min(100%, 860px); }
  .panel-inner { padding: 28px; }
  .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .task-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .word-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .two-col { grid-template-columns: .9fr 1.1fr; align-items: start; }
  .chapter-two-col {
    grid-template-columns: minmax(340px, 380px) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
  }
  .chapter-visual {
    max-width: 380px;
    justify-self: start;
    align-self: start;
  }
  .hero-image img,
  .location-image img { max-height: none; object-fit: contain; background: #ead3a0; }
}

@media (min-width: 1050px) {
  .bottom-nav {
    left: 50%;
    right: auto;
    bottom: 18px;
    width: min(760px, calc(100% - 36px));
    transform: translateX(-50%);
    border-radius: 22px;
    border: 1px solid rgba(216,179,109,.45);
  }
}


@media (max-width: 980px) {
  :root { --fixed-header-h: 82px; }
  html { scroll-padding-top: calc(var(--fixed-header-h, 82px) + 12px); }
  body { padding-top: calc(var(--fixed-header-h, 82px) + 8px); }
  .top-nav { display: none; }
  .menu-toggle { display: grid; }
  .site-header-wrap { width: 100%; padding: max(6px, env(safe-area-inset-top)) 6px 7px; }
  .site-header { min-height: 66px; padding: 8px 10px; border-radius: 26px; }
  .brand-logo { width: 46px; height: 46px; flex-basis: 46px; }
  .brand-copy strong { font-size: clamp(1.25rem, 6vw, 1.65rem); }
  .brand-copy small { font-size: .78rem; }
  .header-progress { padding: 7px 9px; font-size: .85rem; }
}

@media (max-width: 460px) {
  :root { --fixed-header-h: 76px; }
  html { scroll-padding-top: calc(var(--fixed-header-h, 76px) + 10px); }
  body { padding-top: calc(var(--fixed-header-h, 76px) + 8px); }
  .site-header { gap: 8px; }
  .brand-header { gap: 8px; }
  .brand-logo { width: 42px; height: 42px; flex-basis: 42px; }
  .brand-copy strong { font-size: 1.28rem; }
  .brand-copy small { font-size: .72rem; }
  .header-progress { font-size: .78rem; padding: 7px 8px; }
  .menu-toggle { width: 40px; height: 40px; font-size: 1.15rem; }
  .footer-links { grid-template-columns: 1fr; }
}

@media (min-width: 461px) and (max-width: 760px) {
  .footer-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 761px) and (max-width: 1100px) {
  .footer-links { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

.bottom-nav { display: none !important; }


.hotspot-scene {
  position: relative;
  overflow: hidden;
}

.hotspot-button {
  position: absolute;
  appearance: none;
  border: 0;
  background: transparent;
  border-radius: 18px;
  cursor: pointer;
}

/* v1.0.11 - presne korektury hledacich ukolu a diplomu */
.hotspot-button:hover,
.hotspot-button:focus-visible {
  outline: none !important;
  outline-offset: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.hotspot-found-mark {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #2f6d35;
  color: #fff9e8;
  font-size: 1.7rem;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(0,0,0,.25);
  pointer-events: none;
}

.simple-target-box {
  display: block;
  text-align: left;
}

.target-line {
  margin: 0;
  color: var(--forest);
  font-size: 1.08rem;
  line-height: 1.45;
}

.target-line span:not(.inline-found) {
  font-weight: 900;
}

.inline-found {
  display: inline-grid;
  place-items: center;
  margin-left: 8px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #2f6d35;
  color: #fff9e8;
  font-weight: 900;
}

.nickname-box {
  max-width: 720px;
  margin: 0 auto 18px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(137,91,29,.25);
  background: rgba(255,255,255,.26);
}

.nick-label {
  display: block;
  margin-bottom: 8px;
  color: var(--forest);
}

.nick-input {
  display: block;
  width: 100%;
  min-height: 54px;
  padding: 12px 15px;
  border-radius: 16px;
  border: 1px solid rgba(137,91,29,.42);
  background: #fff9eb;
  color: var(--ink);
  font: 700 1.07rem Georgia, "Times New Roman", serif;
  box-shadow: inset 0 2px 6px rgba(84,48,11,.08);
}

.diploma-preview {
  position: relative;
  width: min(720px, 100%);
  margin: 0 auto;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(84,48,11,.18);
}

.diploma-preview > img {
  display: block;
  width: 100%;
  height: auto;
}

.diploma-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.diploma-name {
  position: absolute;
  left: 50%;
  top: 46.8%;
  transform: translateX(-50%);
  width: 70%;
  text-align: center;
  color: #3b2810;
  font-weight: 900;
  font-size: clamp(1.6rem, 5vw, 3.2rem);
  line-height: 1.05;
  text-shadow: 0 1px 0 rgba(255,255,255,.45);
}

.diploma-copy-main {
  position: absolute;
  left: 50%;
  top: 54.5%;
  transform: translateX(-50%);
  width: 66%;
  text-align: center;
  color: #50361a;
  font-weight: 700;
  font-size: clamp(.82rem, 2.2vw, 1.15rem);
  line-height: 1.26;
}

.diploma-garant {
  position: absolute;
  left: 7.4%;
  bottom: 9.8%;
  width: 20%;
  max-width: 136px;
  border-radius: 14px;
  border: 2px solid rgba(139,94,36,.82);
  background: #f4dfad;
  box-shadow: 0 8px 18px rgba(55,32,6,.20);
}

.diploma-web {
  position: absolute;
  right: 9.5%;
  bottom: 8.2%;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(246,232,198,.92);
  color: #6f4818;
  font-weight: 900;
  font-size: clamp(.88rem, 2.2vw, 1.35rem);
  box-shadow: 0 0 0 1px rgba(137,91,29,.18);
}

@media (max-width: 560px) {
  .diploma-preview { border-radius: 14px; }
  .diploma-garant { width: 22%; left: 6%; bottom: 8.5%; }
  .diploma-web { right: 6.5%; bottom: 6.8%; font-size: .78rem; padding: 5px 8px; }
  .diploma-copy-main { width: 72%; font-size: .8rem; }
}

/* v1.0.18 – horní menu podle funkčního webu Spolku: je součástí toku stránky, ne fixní vrstva. */
html {
  scroll-padding-top: 12px !important;
}

body {
  padding-top: 0 !important;
}

.site-header-wrap {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  transform: none !important;
  z-index: 50 !important;
  width: min(1240px, calc(100% - 24px)) !important;
  margin: 0 auto !important;
  padding: 10px 0 8px !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  isolation: isolate;
  overflow: visible !important;
}

.site-header {
  position: relative !important;
  width: 100% !important;
  isolation: isolate;
}

.mobile-menu {
  position: relative;
  z-index: 80;
}

@media (max-width: 980px) {
  html {
    scroll-padding-top: 12px !important;
  }

  body {
    padding-top: 0 !important;
  }

  .site-header-wrap {
    width: min(100% - 16px, 1240px) !important;
    padding: 6px 0 8px !important;
  }

  .mobile-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    width: auto;
    margin: 0;
  }
}

/* v1.0.19 – Koruny: samostatne pergameny, lokalni postup a druha hra. */
.status.open {
  background: rgba(216, 179, 109, .22);
  color: #6d4714;
}

.chapter-progress {
  width: fit-content;
  max-width: 100%;
  margin: 10px auto 16px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(137, 91, 29, .36);
  background: rgba(255, 248, 225, .72);
  color: var(--forest);
  font-weight: 800;
  text-align: center;
  box-shadow: 0 7px 16px rgba(61, 38, 10, .08);
}

.local-tools {
  justify-content: flex-start;
}

.chapter-card-grid .location-card {
  min-height: 100%;
}

.egg-mark {
  width: 34px;
  height: 34px;
  font-size: 1.35rem;
}

.fixed-diploma img[src$="diplom-koruny-final.webp"] {
  background: #efd79f;
}

@media (max-width: 560px) {
  .chapter-progress {
    width: 100%;
    border-radius: 18px;
  }

  .local-tools {
    justify-content: center;
  }
}

/* v1.0.31 Koruny audio */
.audio-toggle {
  border: 1px solid rgba(106, 72, 26, .38);
  background: linear-gradient(180deg, #fff7df, #ead197);
  color: #183418;
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 800;
  font-family: inherit;
  font-size: .88rem;
  cursor: pointer;
  box-shadow: 0 2px 0 rgba(70, 41, 12, .14);
  white-space: nowrap;
}
.audio-toggle:hover,
.audio-toggle:focus-visible {
  transform: translateY(-1px);
  outline: 2px solid rgba(144, 96, 28, .28);
  outline-offset: 2px;
}
.audio-toggle.is-on {
  background: linear-gradient(180deg, #f5d985, #cf9f38);
  border-color: rgba(90, 61, 18, .52);
}
@media (max-width: 560px) {
  .audio-toggle {
    padding: 7px 10px;
    font-size: .78rem;
  }
}


/* v1.0.34 – Mýtina pravdy: třetí kapitola, více nalezených předmětů a pohádkové přání. */
.prani-preview {
  max-width: min(100%, 620px);
  margin: 0 auto;
}
.prani-preview img {
  width: 100%;
  height: auto;
  display: block;
}
.multi-hotspot-mark {
  width: 36px;
  height: 36px;
  font-size: 1.25rem;
}
@media (min-width: 760px) {
  .prani-preview { max-width: 560px; }
}


/* v1.0.36 – Mapa: velké mapy bez spodních náhledů, pouze klikací cedule. */
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.map-panel .panel-inner {
  padding: clamp(14px, 2.3vw, 26px);
}

.map-subtitle {
  margin-bottom: 16px;
}

.interactive-map {
  position: relative;
  margin: 0 auto;
  max-width: 100%;
}

.interactive-map picture,
.interactive-map img {
  display: block;
  width: 100%;
  height: auto;
}

.interactive-map .hero-image {
  margin-bottom: 0;
}

.map-hotspots {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.map-hotspots--desktop { display: none; }
.map-hotspots--mobile { display: block; }

.map-spot {
  position: absolute;
  border: 0;
  padding: 0;
  margin: 0;
  background: rgba(255, 215, 128, 0.01);
  cursor: pointer;
  border-radius: 16px;
}

.map-spot:hover,
.map-spot:focus-visible {
  outline: 3px solid rgba(245, 217, 133, .72);
  outline-offset: 2px;
  box-shadow: 0 0 0 6px rgba(83, 54, 17, .20);
  background: rgba(255, 230, 160, .08);
}

.map-spot--koruny-mobile { left: 31.5%; top: 8.4%; width: 22%; height: 6.8%; }
.map-spot--chaloupka-mobile { left: 45.2%; top: 39.9%; width: 23.3%; height: 5.8%; }
.map-spot--mytina-mobile { left: 72.8%; top: 49.2%; width: 21.5%; height: 5.7%; }

@media (min-width: 760px) {
  .map-hotspots--desktop { display: block; }
  .map-hotspots--mobile { display: none; }

  .map-spot--koruny-desktop { left: 15.0%; top: 16.0%; width: 10.3%; height: 5.2%; }
  .map-spot--chaloupka-desktop { left: 50.2%; top: 17.8%; width: 12.6%; height: 5.0%; }
  .map-spot--mytina-desktop { left: 85.0%; top: 50.0%; width: 10.6%; height: 5.9%; }
}


/* v1.0.37 – přesnější a větší klikací cedule na mapě. */
.map-panel .interactive-map {
  width: min(100%, 1120px);
}

.map-spot {
  min-width: 44px;
  min-height: 34px;
}

/* Mobilní dlouhá mapa – zóny jsou záměrně velkorysé, aby šlo klepat přímo na cedule. */
.map-spot--koruny-mobile { left: 26%; top: 7%; width: 31%; height: 9%; }
.map-spot--chaloupka-mobile { left: 39%; top: 33%; width: 34%; height: 9%; }
.map-spot--mytina-mobile { left: 67%; top: 50%; width: 30%; height: 10%; }

@media (min-width: 760px) {
  /* Desktopová široká mapa – klikací zóny sedí na cedulích v použité mapě. */
  .map-spot--koruny-desktop { left: 13%; top: 23%; width: 17%; height: 12%; }
  .map-spot--chaloupka-desktop { left: 47%; top: 22%; width: 19%; height: 12%; }
  .map-spot--mytina-desktop { left: 81%; top: 54%; width: 17%; height: 12%; }
}


/* v1.0.38 – Mapa: klikací zóny jsou neviditelné, bez obřího rámečku při najetí. */
.map-spot,
.map-spot:hover,
.map-spot:focus,
.map-spot:focus-visible,
.map-spot:active {
  outline: none !important;
  outline-offset: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  border: 0 !important;
}

.map-spot:hover,
.map-spot:focus-visible {
  cursor: pointer;
}

/* Zachová klávesovou dostupnost nenápadně: fokus je jen drobné podtržení ve statusu pro screenreadery není vidět v mapě. */
.map-spot span.sr-only {
  pointer-events: none;
}


/* v2.1.0 performance/mobile refinements */
.location-image, .hero-image, .diploma-preview, .prani-preview { contain: layout paint; }


/* v2.1.5 – univerzální patička podle nových textů a přesné ochranné známky */
.related-footer {
  padding: clamp(22px, 4vw, 40px);
  margin-top: 34px;
}
.related-footer .footer-title h2 {
  font-size: clamp(2.25rem, 5.8vw, 4.2rem);
}
.related-footer .footer-current {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: min(560px, 100%);
  gap: 8px;
  margin: 14px auto 24px;
  padding: 18px 22px;
  border-radius: 20px;
  border: 1px solid rgba(229, 194, 106, .45);
  background: linear-gradient(135deg, rgba(255, 242, 197, .16), rgba(39, 84, 45, .22));
  color: #fff0bf;
  text-align: center;
}
.related-footer .footer-current strong {
  color: #ffe8a4;
  font-size: clamp(1.3rem, 2.2vw, 1.6rem);
  line-height: 1.05;
}
.related-footer .footer-current span:not(.footer-pill) {
  color: #f4dfb1;
  font-size: 1rem;
  line-height: 1.35;
}
.related-footer .footer-links {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: stretch;
  margin: 18px 0;
}
.related-footer .footer-link {
  justify-content: flex-start;
  text-align: left;
  min-height: 190px;
  padding: 18px 16px;
  transition: .18s ease;
}
.related-footer .footer-link strong {
  font-size: 1.08rem;
}
.related-footer .footer-link span {
  font-size: .95rem;
}
.footer-pill,
.footer-link em {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  margin-top: auto;
  min-height: 34px;
  padding: 7px 16px;
  border-radius: 999px;
  background: linear-gradient(180deg, #f1c665, #cc9134);
  color: #162812;
  font-style: normal;
  font-weight: 950;
  box-shadow: 0 2px 0 rgba(94, 61, 16, .75);
}
.related-footer .footer-link em {
  background: linear-gradient(180deg, #1f7a37, #17602c);
  color: #fff3bd;
  border: 1px solid rgba(237, 206, 113, .28);
  box-shadow: none;
}
.copyright-box {
  max-width: 1120px;
  margin: 22px auto 0;
  padding: 14px 18px;
  border-radius: 20px;
  border: 1px solid rgba(229, 194, 106, .34);
  background: linear-gradient(135deg, rgba(255, 242, 197, .12), rgba(39, 84, 45, .10));
  text-align: left;
  color: #fff0bf;
}
.copyright-box h2 {
  margin: 0 0 7px;
  color: #fff0bf;
  font-size: .86rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.copyright-box p {
  margin: 0;
  color: #fff0bf;
  font-size: .78rem;
  line-height: 1.42;
  font-weight: 700;
}
.footer-note {
  display: none !important;
}
.map-seo-copy {
  margin: clamp(16px, 3vw, 26px) auto 0;
  padding: clamp(16px, 3vw, 26px);
  border-radius: 22px;
  border: 1px solid rgba(137, 91, 29, .30);
  background: linear-gradient(180deg, rgba(255, 248, 225, .76), rgba(248, 225, 176, .52));
  box-shadow: 0 10px 24px rgba(55, 32, 6, .10);
  color: #25351e;
  text-align: left;
}
.map-seo-copy h2 {
  margin: 0 0 12px;
  color: var(--forest);
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  line-height: 1.08;
  letter-spacing: -.025em;
  text-align: center;
}
.map-seo-copy p {
  max-width: 940px;
  margin: 0 auto 12px;
  color: #25351e;
  font-size: clamp(1rem, 1.6vw, 1.12rem);
  line-height: 1.55;
}
.map-seo-copy p:last-child {
  margin-bottom: 0;
}
.map-seo-copy a {
  color: #183f1d;
  font-weight: 900;
  text-decoration-thickness: .08em;
  text-underline-offset: .18em;
}
.map-adult-note {
  max-width: 940px;
  margin: clamp(14px, 2.4vw, 22px) auto 0;
  padding: clamp(14px, 2.4vw, 20px);
  border-radius: 18px;
  border: 1px solid rgba(137, 91, 29, .25);
  background: rgba(255, 248, 225, .46);
}
.map-adult-note h3 {
  margin: 0 auto 8px;
  color: var(--forest);
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  line-height: 1.15;
  text-align: left;
}
.map-adult-note p {
  margin-bottom: 10px;
  font-size: clamp(.95rem, 1.45vw, 1.04rem);
  line-height: 1.52;
}
.map-adult-note p:last-child {
  margin-bottom: 0;
}
@media (max-width: 980px) {
  .related-footer .footer-link {
    text-align: center;
    min-height: 150px;
  }
  .related-footer .footer-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .related-footer .footer-links {
    grid-template-columns: 1fr;
  }
  .copyright-box {
    padding: 15px 14px;
  }
  .copyright-box p {
    font-size: .9rem;
  }
  .map-seo-copy {
    padding: 15px 14px;
    border-radius: 18px;
  }
}

/* v2.1.5 - opticke zalomeni vybranych titulku v paticce na desktopu bez zmenseni pisma */
.related-footer .footer-link .footer-title-stack {
  display: block;
  font-size: 1.08rem;
  line-height: 1.05;
}
.related-footer .footer-link .footer-title-stack span {
  display: inline;
  font-size: inherit;
  line-height: inherit;
}
.related-footer .footer-link .footer-title-stack span + span::before { content: " "; }

@media (min-width: 761px) {
  .related-footer .footer-link .footer-title-stack span { display: block; }
  .related-footer .footer-link .footer-title-stack span + span::before { content: ""; }
}


/* v2.2.0 – sjednocení webové rodiny, logo, patička a produkční rámeček 44G Studio® */
.brand-logo img { object-fit: contain; }
.related-footer .footer-title h2 { font-size: clamp(2.05rem, 5vw, 3.6rem); }
.related-footer .footer-links { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.studio-panel {
  display: grid;
  grid-template-columns: minmax(180px, auto) minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  max-width: 1120px;
  margin: 20px auto 0;
  padding: 18px 22px;
  border-radius: 22px;
  border: 1px solid rgba(229, 194, 106, .34);
  background: linear-gradient(135deg, rgba(255, 242, 197, .13), rgba(39, 84, 45, .18));
  color: #fff0bf;
  text-align: left;
}
.studio-panel span {
  display: block;
  margin: 0 0 4px;
  color: #f3d88d;
  font-size: .82rem;
  font-weight: 950;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.studio-panel strong {
  display: block;
  color: #ffe8a4;
  font-size: clamp(1.45rem, 2.8vw, 2.05rem);
  line-height: 1;
}
.studio-panel p {
  margin: 0;
  color: #f4dfb1;
  font-weight: 800;
  line-height: 1.38;
}
.studio-panel a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(237, 206, 113, .28);
  background: linear-gradient(180deg, #1f7a37, #17602c);
  color: #fff3bd;
  text-decoration: none;
  font-weight: 950;
  white-space: nowrap;
}
@media (max-width: 820px) {
  .related-footer .footer-links { grid-template-columns: 1fr; }
  .studio-panel { grid-template-columns: 1fr; text-align: center; }
  .studio-panel a { justify-self: center; }
}
@media (min-width: 821px) and (max-width: 1120px) {
  .related-footer .footer-links { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
