.simple-map .map-wrap { transition: opacity .15s ease; }
.simple-map .map-wrap.road-passage { opacity: 0; }
.district-treasure {
  position: absolute;
  z-index: 7;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  padding: 0;
  background: transparent;
  transform: translate(-50%, -50%);
}
.district-treasure[hidden] { display: none; }
.district-treasure img {
  filter: drop-shadow(0 0 7px #d997ff);
  animation: treasure-glimmer 1.9s ease-in-out infinite;
  pointer-events: none;
}
@keyframes treasure-glimmer {
  0%, 100% { opacity: .65; transform: scale(.85); }
  48% { opacity: 1; transform: scale(1.16); }
}
.treasure-reveal { text-align: center; }
.treasure-reveal .treasure-illustration {
  position: relative;
  display: block;
  width: min(154px, 40vw);
  aspect-ratio: 1;
  margin: 0 auto 6px;
  background: radial-gradient(ellipse, #ae62e457, transparent 68%);
}
.treasure-illustration img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.treasure-illustration .treasure-shut { animation: treasure-shut .55s both; }
.treasure-illustration .treasure-open { animation: treasure-open .55s both; }
.treasure-reveal h2 { margin: 0; }
.treasure-reveal p { margin: 5px 0 12px; }
@keyframes treasure-shut { 0%, 41% { opacity: 1; } 52%, 100% { opacity: 0; } }
@keyframes treasure-open { 0%, 42% { opacity: 0; transform: scale(.94); } 74% { opacity: 1; transform: scale(1.09); } 100% { opacity: 1; transform: scale(1); } }
.reduce-motion .treasure-shut { display: none; }
.reduce-motion .treasure-open, .reduce-motion .district-treasure img { animation: none; }
@media (prefers-reduced-motion: reduce) {
  .treasure-shut { display: none; }
  .treasure-illustration .treasure-open, .district-treasure img { animation: none; }
}

#modal:has(.map-sheet-background) { isolation: isolate; background: #231a34; backdrop-filter: none; }
.map-sheet-background {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(.84) saturate(.88);
  pointer-events: none;
}
