/* === 3D ROOM OVERLAY === */
#room3d-overlay {
  position: fixed;
  top: 56px;
  left: 0;
  right: 0;
  bottom: 0;
  background: #000;
  z-index: 50;
  display: none;
}

#room3d-overlay.active {
  display: block;
}

/* === 2D UI Overlay (close button + backdrop, on top of 3D) === */
#ui-overlay {
  position: fixed;
  top: 56px;
  right: 0;
  z-index: 90;
  display: none;
}

#ui-overlay.active {
  display: block;
}

#ui-overlay .ui-close-btn {
  position: fixed;
  top: 68px;
  right: 16px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 10px 20px;
  border: 1px solid var(--accent-gold);
  background: rgba(13, 13, 13, 0.9);
  color: var(--accent-gold);
  cursor: pointer;
  z-index: 95;
  transition: all 0.2s ease;
  backdrop-filter: blur(4px);
}

#ui-overlay .ui-close-btn:hover {
  background: var(--accent-gold);
  color: var(--bg);
}

.room3d-canvas-container {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.room3d-canvas-container canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* === 3D HUD === */
.room3d-hud {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 10;
}

.room3d-hud .crosshair {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 24px;
  color: rgba(200, 169, 110, 0.5);
  font-family: 'Courier New', monospace;
  text-shadow: 0 0 4px rgba(200, 169, 110, 0.3);
  transition: all 0.2s ease;
}

.room3d-hud .crosshair.active {
  color: var(--accent-gold);
  text-shadow: 0 0 12px var(--accent-gold);
  transform: translate(-50%, -50%) scale(1.3);
}

.room3d-hud .hotspot-label-3d {
  position: absolute;
  top: calc(50% + 30px);
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--accent-gold);
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.8);
  white-space: nowrap;
  transition: opacity 0.2s ease;
}

.room3d-hud .room3d-hint {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--text-secondary);
  opacity: 0.6;
  text-align: center;
  white-space: nowrap;
}

/* === 3D Toggle Button (on SVG room scenes) === */
.btn-3d-view {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 12px 24px;
  border: 1px solid var(--accent-gold);
  background: transparent;
  color: var(--accent-gold);
  cursor: pointer;
  letter-spacing: 0.08em;
  transition: all 0.2s ease;
  position: relative;
  z-index: 10;
  pointer-events: all;
}

.btn-3d-view:hover {
  background: var(--accent-gold);
  color: var(--bg);
}

.btn-3d-view:active {
  transform: scale(0.97);
}

.btn-3d-view::before {
  content: '◆';
  font-size: 0.7rem;
}
