/* Map title card (public/js/maptitle.js) */
#mapTitle {
  position: fixed;
  left: 50%;
  top: 22%;
  transform: translate(-50%, 0);
  z-index: 40;
  pointer-events: none;
  text-align: center;
  width: max-content;
  max-width: calc(100vw - 32px);
  opacity: 0;
  color: #f4ecff;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.8);
}
#mapTitle.show {
  animation: mt-in 4.2s ease-out forwards;
}
#mapTitle .mt-round {
  font: 600 14px 'Fredoka', system-ui, sans-serif;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  opacity: 0.75;
}
#mapTitle .mt-name {
  font-family: 'Creepster', 'Fredoka', cursive;
  font-size: clamp(34px, 7vw, 68px);
  line-height: 1.05;
  margin: 4px 0 6px;
  color: #c9b4ff;
}
#mapTitle[data-map='library'] .mt-name {
  color: #7dffc4;
}
#mapTitle[data-map='foyer'] .mt-name {
  color: #ffb36b;
}
#mapTitle .mt-sub {
  font: 500 15px 'Fredoka', system-ui, sans-serif;
  opacity: 0.85;
  white-space: normal;
}
@keyframes mt-in {
  0% {
    opacity: 0;
    transform: translate(-50%, 18px) scale(0.96);
  }
  12% {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }
  80% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -10px);
  }
}
@media (prefers-reduced-motion: reduce) {
  #mapTitle.show {
    animation: none;
    opacity: 1;
  }
}
