/* =========================
   RESET Y BASE
========================= */
html, body {
  margin: 0;
  width: 100%;
  height: 100%;
  background: #000;
  overflow: hidden;
  font-family: "EB Garamond", serif;
}

/* =========================
   STAGE (PANTALLA)
========================= */
.stage {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

/* =========================
   FONDO EXPANDIDO
========================= */
.scene-bg {
  position: absolute;
  inset: 0;
  background-image: url("/assets/background.png");
  background-size: cover;
  background-position: center;
  filter: blur(45px) brightness(0.4);
  transform: scale(1.15);
  z-index: 0;
}

/* =========================
   ESCENA PRINCIPAL
========================= */
.scene {
  position: relative;
  z-index: 1;

  /* Resolución base real de la imagen */
  width: 1920px;
  height: 1080px;

  background-image: url("/assets/background.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;

  image-rendering: pixelated;

  margin: auto;
}

/* =========================
   ESCALADO PROPORCIONAL
========================= */
@media (max-aspect-ratio: 16/9) {
  .scene {
    width: 100vw;
    height: calc(100vw * 9 / 16);
  }
}

@media (min-aspect-ratio: 16/9) {
  .scene {
    height: 100vh;
    width: calc(100vh * 16 / 9);
  }
}

/* =========================
   LUZ AMBIENTAL
========================= */
.lamp-light {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    circle at 60% 55%,
    rgba(255, 210, 140, 0.25),
    rgba(0, 0, 0, 0.9) 60%
  );
  animation: flicker 6s infinite;
}

@keyframes flicker {
  0%, 100% { opacity: 1; }
  45% { opacity: 0.96; }
  50% { opacity: 0.9; }
  55% { opacity: 0.97; }
}

/* =========================
   HOTSPOTS
========================= */
.hotspot {
  position: absolute;
  cursor: pointer;
  border-radius: 4px;
  background: transparent;
  transition: box-shadow 0.15s ease, outline 0.15s ease;
}

/* Relieve blanco sutil */
.hotspot:hover {
  outline: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow:
    inset 0 0 6px rgba(255, 255, 255, 0.25),
    0 0 8px rgba(255, 255, 255, 0.15);
}

/* =========================
   POSICIONES (AJUSTABLES)
========================= */
.board {
  top: 9%;
  left: 24%;
  width: 13.5%;
  height: 7%;
}

.typewriter {
  top: 9%;
  left: 44%;
  width: 14%;
  height: 7%;
}

.magnifier {
  top: 9%;
  left: 64%;
  width: 14%;
  height: 7%;
}

.drawer {
  top: 20%;
  left: 43%;
  width: 21%;
  height: 24%;
}


/* =========================
   TOOLTIP
========================= */
#tooltip {
  position: fixed;
  padding: 6px 10px;
  background: rgba(15, 15, 15, 0.95);
  color: #e6d8b5;
  font-size: 14px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
  z-index: 9999;
  white-space: nowrap;
}
