.map.main-level { container-type: inline-size; }
.map .map-pet {
  --pet-size: 3.85cqw;
  position: absolute;
  z-index: 1;
  left: 24.9%;
  top: 48.35%;
  width: max(var(--pet-size), 44px);
  min-height: 44px;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border: 0;
  border-radius: .4rem;
  appearance: none;
  padding: 0;
  background: transparent;
  cursor: pointer;
  touch-action: manipulation;
  display: grid;
  place-items: center;
}
.map.placing .map-pet { visibility: hidden; }
.map .map-pet img {
  width: auto;
  height: auto;
  max-width: var(--pet-size);
  max-height: var(--pet-size);
  pointer-events: none;
  filter: drop-shadow(1px 2px 1.5px #49332370);
}
.map .map-pet.miko { --pet-size: 2.55cqw; left: 31.3%; top: 40.24%; }
.map .map-pet.miko img { rotate: 61deg; }
.map .map-pet:focus-visible { outline: 3px solid #177797; outline-offset: 3px; }
#max-reveal {
  border: 0;
  border-radius: 1rem;
  background: #fff;
  color: #142b38;
  padding: 0;
  width: min(36rem, calc(100vw - 1.5rem));
  max-height: calc(100dvh - 1.5rem);
}
#max-reveal::backdrop { background: #091b26b0; }
#max-reveal header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .65rem;
  padding: .9rem 1rem;
}
#max-reveal h2 { margin: 0; font-size: 1.3rem; }
#max-reveal img {
  display: block;
  width: 100%;
  height: min(59dvh, 29rem);
  object-fit: contain;
  background: #102630;
}
@media (prefers-reduced-motion: no-preference) {
  #max-reveal[open] { animation: max-reveal .2s ease-out; }
  @keyframes max-reveal {
    from { opacity: .2; }
    to { opacity: 1; }
  }
}

.map .map-car {
  position: absolute;
  z-index: 1;
  left: 75.5%;
  top: 44%;
  width: max(5.6%, 44px);
  height: max(19%, 44px);
  transform: translate(-50%, -50%);
  border: 0;
  border-radius: .5rem;
  appearance: none;
  background: transparent;
  touch-action: manipulation;
  cursor: pointer;
}
.map.placing .map-car { visibility: hidden; }
.map .map-car:focus-visible { outline: 3px solid #177797; outline-offset: 2px; }
