.mission-map{
  padding:clamp(12px,3vw,30px);
  color:#283c58;
  background:#fff0c9;
  border:4px solid #7999c2;
  box-shadow:inset 0 0 0 3px #f5dca6,0 6px #a6bedc;
}
.map-heading{
  display:flex;
  flex-wrap:wrap;
  justify-content:space-between;
  align-items:center;
  gap:10px 18px;
  margin-bottom:14px;
}
.map-heading h2{margin:0;color:#295c59;font:700 clamp(1.8rem,4vw,3.2rem) Pixelify,monospace}
.map-heading p{margin:3px 0 0}
.map-progress{
  display:flex;
  align-items:center;
  gap:9px;
  padding:5px 10px;
  border:2px solid #739b9e;
  box-shadow:0 3px #c9c398;
  background:#d7f3e1;
  font-weight:800;
}
.map-progress img{width:33px;height:auto;image-rendering:pixelated}
.map-field{
  overflow:hidden;
  padding:clamp(24px,5vw,51px) clamp(12px,5vw,66px);
  border:3px solid #466749;
  box-shadow:inset 0 0 0 3px #e4c486;
  background:linear-gradient(#244b3359,#264d3938),url(courtyard.png) center/cover no-repeat #789247;
  image-rendering:pixelated;
}
.map-track{
  --col-gap:clamp(5px,2vw,28px);
  --row-gap:clamp(14px,3.2vh,34px);
  display:grid;
  grid-template-columns:repeat(6,minmax(0,1fr));
  gap:var(--row-gap) var(--col-gap);
  isolation:isolate;
  max-width:760px;
  padding:0;
  margin:0 auto;
  list-style:none;
}
.map-stop{position:relative;display:grid;place-items:center}
.map-stop:not(:last-child)::before{
  content:"";
  position:absolute;
  z-index:-1;
  background:#efcd86;
  box-shadow:0 3px #5a633d,inset 0 2px #fff1bf;
}
.map-stop.east::before,.map-stop.west::before{top:calc(50% - 5px);width:calc(100% + var(--col-gap));height:10px}
.map-stop.east::before{left:50%}.map-stop.west::before{right:50%}
.map-stop.end-of-row::before{top:50%;left:calc(50% - 5px);width:10px;height:calc(100% + var(--row-gap))}
.map-stop button{
  position:relative;
  width:min(100%,58px);
  aspect-ratio:1;
  padding:0;
  border:2px solid #2d5570;
  border-radius:5px;
  color:#173851;
  background:#bde6fa;
  box-shadow:inset 3px 3px #edfaff,inset -3px -3px #76a9d2,0 4px #325e6e;
  font:700 clamp(1.12rem,3vw,1.85rem) Pixelify,monospace;
}
.map-stop button:hover:not(:disabled){transform:translateY(-3px)}
.map-stop button:focus-visible{outline-color:#fff3bb;outline-offset:4px}
.map-stop.rescued button{
  border-color:#3b6445;
  color:#254c34;
  background:#b9e991;
  box-shadow:inset 3px 3px #edffca,inset -3px -3px #81b76c,0 4px #406a43;
}
.map-stop.rescued button::after{
  content:"✓";
  position:absolute;
  right:-6px;
  top:-7px;
  padding:0 3px;
  background:#f6ffd0;
  border:1px solid #416d48;
  color:#345838;
  font:800 .78rem system-ui,sans-serif;
}
.map-stop.level-locked button{opacity:1;background:#ddd2ad;color:#534e43;border-color:#625e44;box-shadow:inset 3px 3px #f1e7c8,inset -3px -3px #b5a987,0 4px #605e41}
.map-stop.level-locked button::after,.map-key.locked::after{
  content:"";
  position:absolute;
  top:-5px;
  right:-4px;
  width:9px;
  height:7px;
  background:#655840;
  box-shadow:0 0 0 1px #fff1c5,0 -4px 0 -1px #655840;
}
.map-stop:last-child::after{
  content:"";
  position:absolute;
  width:28px;
  height:28px;
  top:-27px;
  left:calc(50% - 14px);
  background:url(dash.png) center/contain no-repeat;
  pointer-events:none;
}
.map-legend{display:flex;flex-wrap:wrap;justify-content:center;gap:9px 20px;list-style:none;padding:0;margin:14px 0 0;font-size:.86rem}
.map-legend li{display:flex;align-items:center;gap:7px}
.map-key{position:relative;display:grid;place-items:center;width:16px;height:16px;border:1px solid #49617b;border-radius:3px;color:#254c34;font:800 .68rem system-ui,sans-serif}
.map-key.available{background:#bde6fa}.map-key.rescued{background:#b9e991}.map-key.locked{background:#ddd2ad;border-color:#625e44}
.map-key.locked::after{right:-2px;width:7px;height:5px}
@media(max-width:420px){.map-field{padding-inline:8px}.map-stop:last-child::after{width:21px;height:21px;top:-20px;left:calc(50% - 10px)}.map-stop button{font-size:1.14rem}}
