body {
  margin: 0;
  background: #000;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
  color: #fff;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}

#viewer {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.arrow {
  font-size: 3em;
  color: white;
  cursor: pointer;
  user-select: none;
  text-shadow: 2px 2px 4px black;
}

.arrow.inactive {
  visibility: hidden;
  cursor: default;
  text-shadow: none;
}

#imageContainer {
  position: relative;
}

#roomImage {
  max-width: 90vw;
  max-height: 80vh;
  display: block;
}

#left, #right {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

#left { left: 10px; }
#right { right: 10px; }

#up, #down {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

#up { top: 10px; }
#down { bottom: 10px; }

#overlays {
  margin-top: 1vh;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}

#overlays a {
  background: rgba(0,0,0,0.7);
  color: white;
  padding: 3px 6px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
  border: 1px solid white;
}

#inventory {
  margin-top: 2vh;
  display: flex;
  gap: 10px;
  max-width: 90vw;
  overflow-x: auto;
  padding: 0;
}

#inventory img {
  height: 52px;
  width: auto;
  border: 2px solid white;
  cursor: pointer;
  display: block;
}
