body {
  margin: 0;
  background-image: url("https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQ3G4VtkLmUST_5hzAMTpmTPPMwa0hkbbldp5MUHOIhNw&s=10");
  background-repeat: repeat;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(10,10,15,0.65);
  pointer-events: none;
}

#scene {
  position: relative;
  width: 100vw;
  height: 56.25vw;
}

#painting {
  position: absolute;
  width: 320px;
  height: 420px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: url("https://static.boredpanda.com/blog/wp-content/uploads/2019/12/47693137_1838245459618198_5701545794225180157_n-5e0b20ec13c79__700.jpg") center/cover;
  cursor: pointer;
  transition: left 0.8s ease;
  z-index: 10;
}

#painting.shifted {
  left: 5%;
  top: 70%;
  transform: translate(0, -50%) rotate(-8deg);
  pointer-events: none;
}

#lockBox {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 260px;
  background: rgba(10,10,15,0.9);
  border: 1px solid #333;
  padding: 20px;
  display: none;
  z-index: 5;
  box-shadow: inset 0 0 20px rgba(0,0,0,0.8);
  justify-content: center;
}

#lockBox.visible {
  display: block;
}

.lock {
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid #222;
  justify-content: space-between;
  display: flex;
  color: white;
}

.lock h4 {
  font-size: 12px;
  opacity: 0.7;
  margin-bottom: 6px;
}

#lockmessage {
  margin-top: 10px;
  font-size: 12px;
  opacity: 0.8;
}


.digits {
  display: flex;
  gap: 4px;
  justify-content: center;
}

.digit {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 30px;
}

.digit div {
  background: #1a1a1a;
  padding: 6px;
  width: 28px;
  text-align: center;
  margin: 3px 0;
}

button {
  background: #222;
  color: #ddd;
  border: 1px solid #444;
  cursor: pointer;
}

#drawer {
  position: absolute;
  bottom: 15%;
  left: 50%;
  transform: translateX(-50%);
  background: #1a1a22;
  padding: 20px;
  border: 1px solid #333;
}

.hidden {
  display: none;
}

#inventory {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60px;

  background: rgba(10,10,15,0.9);
  border-top: 1px solid #333;

  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;

  z-index: 999;
}

.inv-item {
  padding: 5px 10px;
  background: #1a1a1a;
  border: 1px solid #444;
  font-size: 12px;
  cursor: pointer;
}


#noteModal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
}

#noteContent {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #111;
  padding: 20px;
  width: 300px;
  border: 1px solid #444;
}

#closeNote {
  position: absolute;
  top: 5px;
  right: 10px;
  cursor: pointer;
}