#scene {
  position: relative;
  margin: auto;
}

#scene-bg {
  position: absolute;
  top: 0;
  left: 0;
}

#nano,
#friend {
  position: absolute;
}

#nano img,
#friend img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ladder {
  position: absolute;
  border: 2px dashed white;
  background: rgba(255, 255, 255, 0.2);
  pointer-events: none;
}

/* colores distintos */
#ladder-up {
  border-color: lime;
}

#ladder-down {
  border-color: red;
}

/* apagar debug fácilmente */
.debug-off .ladder {
  display: none;
}

#hint {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.7);
  color: white;
  padding: 6px 10px;
  font-size: 14px;
}
.hidden {
  display: none;
}

#dialog {
  position: absolute;
  z-index: 20;
  pointer-events: none;
}

#dialog-content {
  position: relative;
  background: #ffffff;
  color: #000000;
  padding: 10px 14px;
  border-radius: 14px;
  border: 2px solid #000;
  max-width: 240px;
  font-size: 14px;
  line-height: 1.4;
}

/* Piquito */
#dialog-content::after {
  content: "";
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 12px 10px 0 10px;
  border-style: solid;
  border-color: #ffffff transparent transparent transparent;
}

/* Borde del piquito */
#dialog-content::before {
  content: "";
  position: absolute;
  bottom: -14px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 14px 12px 0 12px;
  border-style: solid;
  border-color: #000000 transparent transparent transparent;
}

.hidden {
  display: none;
}

#password-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.password-box {
  background: black;
  border: 2px solid white;
  padding: 20px;
  text-align: center;
  color: white;
  font-family: monospace;
}

.password-box input {
  margin-top: 10px;
  padding: 5px;
  font-family: monospace;
}

.password-box button {
  margin-top: 10px;
  padding: 5px 10px;
}

#password-modal.hidden {
  display: none;
}
