/* Popup gamification D.Majin — PNG transparent, pas de fond noir */
.jeu-gamif-popup {
  position: fixed;
  inset: 0;
  z-index: 100500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(10px, env(safe-area-inset-top, 0px)) 12px max(10px, env(safe-area-inset-bottom, 0px));
  background: transparent;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.jeu-gamif-popup.is-open {
  opacity: 1;
  visibility: visible;
}

.jeu-gamif-popup__shell {
  position: relative;
  width: min(520px, 94vw);
  pointer-events: auto;
  background: transparent;
}

.jeu-gamif-popup__artboard {
  position: relative;
  line-height: 0;
  background: transparent;
}

.jeu-gamif-popup__art {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(88vh, 520px);
  object-fit: contain;
  background: transparent;
}

/* Zone clic sur [ Entrer dans l'univers D. Majin ] — le bouton reste visible sur le PNG */
.jeu-gamif-popup__cta-hit {
  position: absolute;
  left: 23.5%;
  width: 53%;
  bottom: 10.8%;
  height: 5.6%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  z-index: 2;
}

.jeu-gamif-popup__cta-hit:hover {
  background: rgba(0, 245, 212, 0.08);
}

.jeu-gamif-popup__cta-hit:focus-visible {
  outline: 2px solid rgba(0, 245, 212, 0.9);
  outline-offset: 1px;
  background: rgba(0, 245, 212, 0.1);
}

body.jeu-gamif-popup-open {
  overflow: hidden;
}

body.jeu-gamif-popup-open .quest-hall-intro {
  pointer-events: none;
}
