/* ---------- Projekt: 3D-Zimmer ---------- */
.room{ margin-top: 18px; }

.room-stage{
  position: relative;
  height: min(72vh, 640px);
  min-height: 380px;
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  overflow: hidden;
  background: radial-gradient(120% 90% at 50% 0%, #fdf3e3 0%, #f2e6d3 60%, #e9dcc6 100%);
  box-shadow: var(--shadow-lg);
}
html[data-theme="dark"] .room-stage{
  background: radial-gradient(120% 90% at 50% 0%, #1c2440 0%, #0f1528 60%, #0a0f1d 100%);
}
.room-stage:fullscreen{ height: 100%; border-radius: 0; border: 0; }

.room-stage canvas{
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
  outline: none;
}
.room-stage canvas.is-hover{ cursor: pointer; }

.room-loading{
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  margin: 0;
  color: var(--muted);
  pointer-events: none;
}

.room-tip{
  position: absolute;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, .85);
  color: #fff;
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
  pointer-events: none;
  transform: translate(-50%, calc(-100% - 14px));
}

.room-toolbar{
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  gap: 8px;
}
.room-btn{
  padding: 8px 14px;
  background: var(--surface);
  backdrop-filter: blur(8px);
}

.room-panel{
  position: absolute;
  left: 16px;
  bottom: 16px;
  width: min(340px, calc(100% - 32px));
  padding: 18px 20px;
  background: var(--surface);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-lg);
  animation: room-pop .25s ease;
}
.room-panel[hidden]{ display: none; }
.room-panel-title{ margin: 0 28px 6px 0; font-size: 19px; }
.room-panel-text{ margin: 0 0 14px; color: var(--muted); font-size: 15px; }
.room-panel .btn[hidden]{ display: none; }

.room-close{
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 999px;
  background: var(--soft);
  color: var(--text);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

@keyframes room-pop{
  from{ opacity: 0; transform: translateY(8px); }
  to{ opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce){
  .room-panel{ animation: none; }
}

.room-hint{ margin: 10px 2px 0; font-size: 14px; }

.room-nowebgl{ margin: 14px 0 0; }

.room-items{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.room-chip{
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--soft);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
.room-chip:hover{ border-color: var(--border-strong); }
.room-chip[aria-pressed="true"]{
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}

@media (max-width: 560px){
  .room-stage{ height: 60vh; min-height: 400px; }
  .room-panel{ left: 10px; right: 10px; bottom: 10px; width: auto; }
  .room-toolbar{ top: 10px; right: 10px; }
}
.room-loading[hidden]{ display: none; }
