body {
  margin: 0;
  background: #1a1a1a;
  color: #eee;
  font-family: monospace;
  overflow: hidden;
}

.room {
  position: relative;
  width: 100vw;
  height: 100vh;
}

.object {
  position: absolute;
  cursor: pointer;
  transition: transform 0.2s;
}
.object:hover {
  transform: scale(1.05);
}

/* Объекты первой комнаты */
#table {
  bottom: 0;
  left: 30%;
  width: 40%;
  height: 30%;
  background: #333;
  border-top: 5px solid #555;
}
#box {
  bottom: 25%;
  left: 45%;
  width: 10%;
  height: 10%;
  background: #555;
  border: 3px solid #888;
}
#painting {
  top: 10%;
  left: 20%;
  width: 15%;
  height: 20%;
  background: #444;
  border: 4px solid #777;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2em;
}
#door1 {
  right: 10%;
  bottom: 0;
  width: 15%;
  height: 60%;
  background: #2b2b2b;
  border: 4px solid #555;
}

/* Вторая комната */
#door2 {
  left: 10%;
  bottom: 0;
  width: 15%;
  height: 60%;
  background: #2b2b2b;
  border: 4px solid #555;
}
#strange-object {
  top: 30%;
  left: 50%;
  width: 10%;
  height: 10%;
  background: #444;
  border: 2px solid #777;
}

/* оверлей */
#overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: #eee;
}

#lock input {
  width: 2em;
  font-size: 2em;
  text-align: center;
  margin: 0.2em;
}

button {
  margin-top: 1em;
  padding: 0.5em 1em;
  font-size: 1em;
  cursor: pointer;
}

/* инвентарь */
#inventory {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #111;
  border-top: 2px solid #444;
  padding: 0.5em;
  display: flex;
  align-items: center;
}
#inventory h3 {
  margin: 0;
  margin-right: 1em;
  font-size: 1em;
  color: #ccc;
}
#items {
  display: flex;
  gap: 0.5em;
}
.item {
  width: 40px;
  height: 40px;
  background: #666;
  border: 2px solid #999;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2em;
  cursor: pointer;
}
.item.selected {
  border-color: yellow;
}