html,body{margin:0;width:100%;height:100%;overflow:hidden}
*{box-sizing:border-box}
body{background:#08101d;color:#edf3ff;font-family:Segoe UI,Arial,sans-serif}

.map-page{
  position:fixed;
  inset:0 0 var(--footer-h) 0;
  display:grid;
  place-items:center;
  overflow:hidden;
  background:radial-gradient(circle at 50% 38%,#17324e 0,#0c1c31 45%,#07111e 100%);
}

.map-frame{
  position:relative;
  width:min(100vw,calc((100dvh - var(--footer-h)) * 1.5));
  aspect-ratio:3/2;
  container-type:inline-size;
}

.map-image{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  display:block;
  object-fit:contain;
  user-select:none;
  -webkit-user-drag:none;
  pointer-events:none;
}

.map-hotspot{
  position:absolute;
  z-index:5;
  display:block;
  border-radius:30px;
  text-decoration:none;
  outline:none;
  cursor:pointer;
  -webkit-tap-highlight-color:transparent;
}

.map-hotspot::before{
  content:"";
  position:absolute;
  inset:4%;
  border-radius:inherit;
  background:radial-gradient(ellipse at center,rgba(255,226,126,.25) 0,rgba(255,187,52,.10) 48%,rgba(255,164,24,0) 76%);
  opacity:0;
  transform:scale(.92);
  transition:opacity .18s ease,transform .18s ease;
  filter:blur(5px);
  pointer-events:none;
}

.map-label{
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%) rotate(-3deg) scale(.96);
  opacity:.2;
  width:clamp(120px,15.5cqw,220px);
  padding:.42em .72em .5em;
  border-radius:999px;
  white-space:normal;
  text-align:center;
  line-height:1.08;
  color:#4b2506;
  background:linear-gradient(180deg,rgba(255,244,196,.78),rgba(224,174,83,.72));
  border:2px solid rgba(108,61,16,.46);
  box-shadow:0 2px 0 rgba(79,38,4,.36),0 4px 12px rgba(0,0,0,.22),0 0 12px rgba(255,199,74,.18);
  font-family:Georgia,"Times New Roman",serif;
  font-size:clamp(13px,1.55cqw,24px);
  font-weight:700;
  font-style:italic;
  letter-spacing:.01em;
  text-shadow:0 1px 0 rgba(255,255,255,.28);
  pointer-events:none;
  transition:opacity .18s ease,transform .18s ease,background .18s ease,border-color .18s ease,box-shadow .18s ease;
}

.map-hotspot:hover::before,
.map-hotspot:focus-visible::before,
.map-hotspot:active::before{opacity:1;transform:scale(1)}

.map-hotspot:hover .map-label,
.map-hotspot:focus-visible .map-label,
.map-hotspot:active .map-label{
  opacity:.98;
  background:linear-gradient(180deg,rgba(255,244,196,.97),rgba(224,174,83,.97));
  border-color:rgba(108,61,16,.72);
  box-shadow:0 3px 0 rgba(79,38,4,.52),0 5px 18px rgba(0,0,0,.32),0 0 18px rgba(255,199,74,.4);
  transform:translate(-50%,-50%) rotate(-3deg) scale(1);
}

/* Hrad – vstup do osobní části Oslíkova */
.hotspot-castle{left:41.5%;top:8%;width:28%;height:44%;z-index:6}
.hotspot-castle .map-label{left:51%;top:76%;transform:translate(-50%,-50%) rotate(1deg) scale(.92)}
.hotspot-castle:hover .map-label,.hotspot-castle:focus-visible .map-label,.hotspot-castle:active .map-label{transform:translate(-50%,-50%) rotate(1deg) scale(1)}

/* Loď vlevo dole */
.hotspot-navy{left:1.5%;top:75.5%;width:31%;height:22%}
.hotspot-navy .map-label{left:63%;top:31%;transform:translate(-50%,-50%) rotate(-5deg) scale(.92)}
.hotspot-navy:hover .map-label,.hotspot-navy:focus-visible .map-label,.hotspot-navy:active .map-label{transform:translate(-50%,-50%) rotate(-5deg) scale(1)}

/* Strom života vlevo nahoře */
.hotspot-tree{left:8.2%;top:13%;width:34%;height:43%}
.hotspot-tree .map-label{left:48%;top:83%}

/* Pobřežní vesnice / obchod */
.hotspot-market{left:12.7%;top:58%;width:28%;height:25%}
.hotspot-market .map-label{left:45%;top:17%;transform:translate(-50%,-50%) rotate(-2deg) scale(.92)}
.hotspot-market:hover .map-label,.hotspot-market:focus-visible .map-label,.hotspot-market:active .map-label{transform:translate(-50%,-50%) rotate(-2deg) scale(1)}

/* Úkolová tabule uprostřed */
.hotspot-wanted{left:41.2%;top:58.2%;width:9.4%;height:14.5%;z-index:9}


.hotspot-wanted .map-label{left:50%;top:-7%;transform:translate(-50%,-50%) rotate(-4deg) scale(.92)}
.hotspot-wanted:hover .map-label,.hotspot-wanted:focus-visible .map-label,.hotspot-wanted:active .map-label{transform:translate(-50%,-50%) rotate(-4deg) scale(1)}

/* OslíCamp – stan, oheň a hrdinové uprostřed */
.hotspot-camp{left:47.8%;top:55.5%;width:25%;height:27%}
.hotspot-camp .map-label{left:57%;top:18%}

/* Dungeon vpravo */
.hotspot-dungeon{left:69.3%;top:26%;width:29.5%;height:39%}
.hotspot-dungeon .map-label{left:53%;top:76%;transform:translate(-50%,-50%) rotate(2deg) scale(.92)}
.hotspot-dungeon:hover .map-label,.hotspot-dungeon:focus-visible .map-label,.hotspot-dungeon:active .map-label{transform:translate(-50%,-50%) rotate(2deg) scale(1)}

@media(max-width:760px){
  .map-frame{width:min(100vw,calc((100dvh - var(--footer-h)) * 1.5))}
  .map-label{width:clamp(110px,28vw,180px);font-size:clamp(10px,1.8cqw,16px);padding:.34em .62em .4em;border-width:1px}
}

@media(prefers-reduced-motion:reduce){
  .map-hotspot::before,.map-label{transition:none}
}

/* ===== Hudba Oslíkova: jen malá ikona za odkazem „O nás“ ===== */
/* Nezasahujeme do velikosti ani rozložení celé původní patičky. */
#paticka .osli-music-control {
  display: inline-flex;
  position: relative;
  vertical-align: middle;
  align-items: center;
  flex: 0 0 auto;
  margin-inline-start: 5px;
  color: inherit;
}
#paticka .osli-music-trigger {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 29px;
  height: 29px;
  min-width: 29px;
  min-height: 29px;
  padding: 5px;
  margin: 0;
  border: 1px solid rgba(236, 197, 122, .36);
  border-radius: 50%;
  background: rgba(20, 36, 55, .4);
  color: #eacb91;
  cursor: pointer;
  line-height: 1;
  transition: background .2s ease, border-color .2s ease;
}
#paticka .osli-music-trigger:hover,
#paticka .osli-music-trigger[aria-expanded="true"] {
  background: rgba(225, 184, 110, .17);
  border-color: rgba(236, 197, 122, .7);
}
#paticka .osli-music-trigger:focus-visible,
.osli-music-popover button:focus-visible,
.osli-music-popover input:focus-visible {
  outline: 2px solid #f3ca77;
  outline-offset: 2px;
}
#paticka .osli-music-trigger svg { display: block; width: 17px; height: 17px; }
#paticka .osli-music-trigger .osli-speaker-off { display: none; }
#paticka .osli-music-control[data-enabled="false"] .osli-speaker-on { display: none; }
#paticka .osli-music-control[data-enabled="false"] .osli-speaker-off { display: block; }

/* Otevřený panel patří do BODY (nepřekryje a neroztáhne patičku). */
.osli-music-popover {
  position: fixed;
  z-index: 2147483000;
  width: 224px;
  max-width: calc(100vw - 18px);
  padding: 12px 13px 11px;
  box-sizing: border-box;
  background: #102139;
  color: #f2e4c8;
  border: 1px solid rgba(232, 195, 124, .6);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,.4);
  font: 12px/1.35 'Segoe UI', Arial, sans-serif;
}
.osli-music-popover[hidden] { display: none !important; }
.osli-music-head { display: flex; align-items: center; justify-content: space-between; gap: 9px; margin-bottom: 12px; }
.osli-music-head strong { font-size: 12px; font-weight: 650; }
.osli-music-power {
  appearance: none;
  background: #263f58;
  border: 1px solid #6c8197;
  border-radius: 7px;
  color: #fff0d0;
  font: inherit;
  min-width: 59px;
  padding: 5px 8px;
  cursor: pointer;
}
.osli-music-volume-row { display: flex; align-items: center; gap: 6px; }
.osli-music-volume-row label { flex: 0 0 auto; }
.osli-music-volume-row input { flex: 1 1 auto; width: 100%; min-width: 40px; margin: 0; accent-color: #e8c17a; cursor: pointer; }
.osli-music-percent { flex: 0 0 36px; color: #e6d4ad; text-align: right; font-variant-numeric: tabular-nums; }
.osli-music-status { margin: 8px 0 0; font-size: 11px; color: #c2cad2; }
@media (prefers-reduced-motion: reduce) { #paticka .osli-music-trigger { transition: none; } }

/* ===== OSLÍKOVO — POUZE TEXTOVÉ BUBLINY PĚTI HRDINŮ ===== */
.osli-dialogue-layer {
  position: absolute;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  overflow: visible;
}
.osli-dialogue {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, calc(-100% - .8cqw));
  visibility: hidden;
  width: max-content;
  max-width: min(26cqw, 285px);
  padding: clamp(6px, .75cqw, 12px) clamp(9px, 1cqw, 15px);
  border: 1px solid #8b663c;
  border-radius: 12px;
  background: linear-gradient(165deg,#fff9e2,#f4dfb7);
  color: #4c2e14;
  font: 600 clamp(11px, 1.12cqw, 16px)/1.28 Georgia, 'Times New Roman', serif;
  text-align: center;
  text-wrap: balance;
  box-shadow: 0 3px 9px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.85);
  pointer-events: none;
}
.osli-dialogue.is-visible { visibility: visible; }
.osli-dialogue::after {
  content: "";
  position: absolute;
  left: calc(50% - 6px);
  bottom: -7px;
  width: 12px;
  height: 12px;
  background: #f4dfb7;
  border-right: 1px solid #8b663c;
  border-bottom: 1px solid #8b663c;
  transform: rotate(45deg);
}
@media (max-width:760px) {
  .osli-dialogue {
    max-width: 36cqw;
    padding: 5px 7px;
    border-radius: 8px;
    font-size: clamp(9px, 2.35cqw, 13px);
  }
}
