*::-webkit-scrollbar {
  width: 0;
  height: 0;
}

/* Firefox */
* {
  scrollbar-width: none;
}

/* IE / old Edge (safe fallback) */
* {
  -ms-overflow-style: none;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto; /* ✅ scrolling allowed */
}
#scene {
  position: relative;
  width: 100%;
  min-height: 100vh;
}
#transitionCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 20;
  display: none;
  pointer-events: none;
}

/* #transitionCanvas {

  position: absolute;
  inset: 0;
  z-index: 20;
  display: none;
} */
#landingImage {
  position: absolute;
  /* top: 0;
  left: 0; */
  width: 100%;
  /* z-index: 10; */
}
#mainImage {
  position: relative; /* 🔑 anchor for hotspots */
  width: 100%;
  z-index: 1;
  display: none;
}

.color {
  background-color: rgba(255, 192, 203, 0.695) !important;
}
/* #mainImage {
  position: absolute;
  inset: 0;
  width: 100%;

  z-index: 10;
  display: none;
} */

.hidden {
  display: none;
}

#enterBtn {
  position: absolute;
  z-index: 10;
  cursor: pointer;
  /* background-color: #902727; */
  /* place it where the ENTER sign is */
}
@media (max-width: 1020px) {
  #enterBtn {
    width: 20% !important; /* bigger tap area */
    height: 18% !important;
    left: 45% !important; /* re-center expanded area */
    top: 10% !important;
  }
}
.scene {
  position: relative; /* 🔑 anchor for hotspots */
  width: 100%;
}

.scene-img {
  width: 100%;
  height: auto; /* 🔑 natural height */
  display: block;
}
#screen-title {
  font-family: "Press Start 2P", monospace;
  position: absolute;
  background: rgba(255, 0, 0, 0);
  text-align: center;
  color: #e6d8a3;
  text-shadow:
    1px 1px 0 #000,
    2px 2px 0 #3a2f1d;
  letter-spacing: 1px;
  /* color: #d0ae99; */
  font-weight: 800;
  font-size: 16px;
  /* font-family: "Adobe Caslon Pro", "Garamond", "EB Garamond", serif; */
}

.hotspot {
  position: absolute;

  cursor: pointer;
  background: rgba(255, 0, 0, 0);
}
.hotspot.loading {
  cursor: wait;
}
.hotspot-white {
  position: absolute;
  cursor: pointer;
  /* invisible but clickable */
  background: rgba(249, 248, 248, 0);
}

.scene .hotspot,
.scene .hotspot-white,
.scene #screen-title {
  position: absolute;
}

/* optional debug mode */
.hotspot.debug {
  background: rgba(255, 0, 0, 0.3);
}

.loading {
  cursor: wait;
}

/* Popup */
.popup {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 520px;
  max-height: 70vh;
  transform: translate(-50%, -50%);
  background: #c9c2a3;
  border: 4px solid #5b4a2f;
  box-shadow: 6px 6px 0 #000;
  z-index: 1000;
}

.popup.large {
  width: 90vw;
  max-width: 1100px;
  height: 95vh;
  max-height: 95vh !important;
}

.hidden {
  display: none;
}

.popup-header {
  display: flex;
  justify-content: space-between;
  padding: 8px;
  background: #9a8c5d;
  font-weight: bold;
}

.popup-body {
  padding: 12px;
  overflow-y: auto;
  max-height: 55vh;
}

.popup.game .popup-body {
  max-height: none; /* remove 55vh limit */
  height: 95%; /* fill available space */
  padding: 0; /* no padding for game */
  overflow: auto; /* no scroll for iframe */
}

#popup-close {
  cursor: pointer;
  background: #7a1e1e;
  color: white;
  border: none;
}

/* Mobile popup adjustments */
@media (max-width: 768px) {
  .popup {
    width: 90vw;
    max-width: none;
    max-height: 75vh;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-width: 3px;
    box-shadow: 4px 4px 0 #000;
  }

  .popup.large {
    width: 96vw;
    height: 90vh;
    max-height: 90vh;
  }

  .popup-body {
    max-height: calc(75vh - 48px); /* header height approx */
  }

  .popup.large .popup-body {
    max-height: calc(90vh - 48px);
  }
}

.sound-hotspot {
  position: absolute;
  cursor: pointer;
}

/* close button on object */
.sound-hotspot .sound-close {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 20px;
  height: 20px;
  font-size: 12px;
  background: #7a1e1e;
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
}

.hidden {
  display: none;
}

/* zoom */
@keyframes zoomInFade {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  70% {
    transform: scale(1.15);
    opacity: 1;
  }
  100% {
    transform: scale(1.2);
    opacity: 0;
  }
}

.zoom-transition {
  animation: zoomInFade 1.2s ease-in-out forwards;
  transform-origin: center center;
}
