.room-stage-wrap {
  padding: 10px;
  min-width: 0;
}

.room-stage {
  position: relative;
  width: 100%;
  height: calc(100vh - 42px);
  min-height: 520px;
  overflow: hidden;
  border: 2px solid #6c5545;
  border-radius: 8px;
  background: #ead7c0;
  user-select: none;
}

.scene-bg,
.room-3d-root,
.placed-objects-layer,
.points-layer {
  position: absolute;
  inset: 0;
}

.scene-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  pointer-events: none;
}

.room-3d-root {
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.room-3d-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.room-3d-error {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: #fff7ed;
  color: #7c2d12;
  font-weight: 800;
  text-align: center;
}

.placed-objects-layer {
  z-index: 5;
  pointer-events: none;
}

.points-layer {
  z-index: 20;
  pointer-events: none;
}

.placement-point {
  position: absolute;
  width: 42px;
  height: 42px;
  min-height: 42px;
  padding: 0;
  border: 2px solid rgba(255,255,255,.72);
  border-radius: 50%;
  background: rgba(46, 111, 122, .42);
  box-shadow: 0 6px 16px rgba(47, 41, 35, .14), inset 0 0 0 6px rgba(255,255,255,.16);
  color: transparent;
  opacity: .82;
  pointer-events: auto;
  transform: translate(-50%, -50%);
  transition: opacity .16s ease, transform .16s ease, background-color .16s ease, box-shadow .16s ease;
}

.placement-point::after {
  content: "";
  position: absolute;
  inset: 13px;
  border-radius: 50%;
  background: rgba(255,255,255,.78);
}

.placement-point:hover,
.placement-point:focus-visible {
  opacity: 1;
  background: rgba(46, 111, 122, .64);
  box-shadow: 0 8px 18px rgba(47, 41, 35, .2), inset 0 0 0 6px rgba(255,255,255,.2);
}

.placement-point.is-target {
  background: rgba(194, 96, 112, .58);
  opacity: .95;
  transform: translate(-50%, -50%) scale(1.12);
}

.placement-point.is-3d-hit-area {
  width: 54px;
  height: 54px;
  min-height: 54px;
  border: 0;
  background: transparent;
  box-shadow: none;
  opacity: 1;
}

.placement-point.is-3d-hit-area::after {
  display: none;
}

.placement-point.is-3d-hit-area:focus-visible {
  outline: 2px solid rgba(47, 125, 134, .72);
  outline-offset: 2px;
}

.placed-object {
  position: absolute;
  width: var(--object-size, 82px);
  height: var(--object-size, 82px);
  transform: translate(-50%, -100%) scale(var(--object-scale, 1));
  transform-origin: 50% 100%;
  pointer-events: none;
}

.placed-object img,
.object-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.placed-object.is-selected::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -7px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(46, 111, 122, .88);
  transform: translateX(-50%);
}

.object-label {
  position: absolute;
  left: 50%;
  bottom: -28px;
  transform: translateX(-50%);
  min-width: max-content;
  max-width: 150px;
  padding: 3px 6px;
  border: 1px solid rgba(108, 85, 69, .35);
  border-radius: 8px;
  background: rgba(255, 253, 248, .94);
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.15;
  text-align: center;
}

.object-card {
  display: grid;
  place-items: center;
  min-height: 96px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  text-align: center;
}

.object-card img {
  width: auto;
  height: auto;
  max-width: 78px;
  max-height: 78px;
}

.object-card.is-selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(46, 111, 122, .2);
}

.object-card.is-placed {
  opacity: .58;
}

.object-card span {
  display: block;
  min-width: 0;
  line-height: 1.2;
}

.object-card .fr {
  color: var(--accent-strong);
  font-size: 14px;
  font-weight: 900;
}

.object-card .ru {
  color: var(--muted);
  font-size: 13px;
}
