* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #111;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: Arial, sans-serif;
}

.game {
  position: relative;
  width: 1200px;
  height: 850px;
  overflow: hidden;
  border: 4px solid #2a241d;
  border-radius: 16px;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.8);
}

.room {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* кликабельные зоны */
.hotspot {
  position: absolute;
  background: none;
  border: none;
  cursor: pointer;
}

/* .hotspot:hover {
  background: rgba(255, 220, 120, 0.18);
  border-color: rgba(255, 220, 120, 0.5);
  border-radius: 12px;
} */

.hotspot--door {
  left: 159px;
    top: 110px;
    width: 180px;
    height: 390px;
}

.hotspot--note {
  left: 548px;
    top: 404px;
    width: 68px;
    height: 49px;
}

.hotspot--picture {
  left: 453px;
    top: 146px;
    width: 208px;
    height: 190px;
}

.hotspot--chest {
  left: 2px;
    top: 529px;
    width: 212px;
    height: 177px;
}

.hotspot--mirror {
  right: 109px;
    top: 210px;
    width: 130px;
    height: 420px;
}

.hotspot--vent {
  right: 11px;
    top: 73px;
    width: 84px;
    height: 100px;
}

/* диалог */
.dialog {
  position: absolute;
  left: 24px;
  top: 24px;
  display: flex;
  gap: 16px;
  align-items: center;
  width: 430px;
  padding: 14px;
  background: rgba(18, 17, 15, 0.9);
  border: 2px solid #5b4b38;
  border-radius: 18px;
  color: #f3dfb8;
}

.dialog img {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  object-fit: cover;
}

.dialog h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.dialog p {
  margin: 0;
  font-size: 18px;
  line-height: 1.35;
}

/* инвентарь */
.inventory {
  position: absolute;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  display: flex;
  gap: 14px;
  padding: 14px;
  background: rgba(18, 17, 15, 0.88);
  border: 2px solid #5b4b38;
  border-radius: 18px;
}

.slot {
  width: 74px;
  height: 74px;
  border: 2px solid #5b4b38;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.35);
}

/* модалки */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
}

.hidden {
  display: none;
}

.modal__content {
  position: relative;
  max-width: 760px;
  padding: 20px;
  background: #1a1713;
  border: 3px solid #6b5438;
  border-radius: 18px;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.9);
}

.modal__content img {
  max-width: 100%;
  max-height: 80vh;
  display: block;
  border-radius: 12px;
}

.modal__content--lock {
  max-width: 850px;
}

.modal__close {
  position: absolute;
  right: 44px;
  top: 41px;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: #d4b37a;
  color: #21170f;
  font-size: 30px;
  cursor: pointer;
  z-index: 2;
}

.inventory-item {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
}

.lock {
  width: 320px;
  padding: 28px;
  background: #222;
  border: 4px solid #4b4033;
  border-radius: 18px;
}

.lock__display {
  margin-bottom: 24px;
  padding: 16px;
  background: #050805;
  color: #7cff55;
  font-size: 42px;
  text-align: center;
  letter-spacing: 8px;
  border-radius: 10px;
  font-family: monospace;
}

.lock__buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.lock__buttons button {
  height: 64px;
  border: none;
  border-radius: 10px;
  background: #3a342d;
  color: #f3dfb8;
  font-size: 26px;
  cursor: pointer;
}

.lock__buttons button:hover {
  background: #5a4a38;
}

.inventory-item {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
  cursor: pointer;
}

.inventory-item.selected {
  outline: 3px solid #f3df8b;
  border-radius: 10px;
  background: rgba(255, 230, 150, 0.2);
}