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}
}
