.scene-tools {
  position: absolute;
  top: 88px;
  right: 27px;
  z-index: 6;
  pointer-events: auto;
}

.scene-tools .look-around {
  min-width: 112px;
  min-height: 46px;
  padding: 9px 16px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 24px;
  color: #173d58;
  background: rgba(249, 250, 243, 0.94);
  box-shadow: 0 7px 24px rgba(4, 28, 47, 0.28);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  backdrop-filter: blur(10px);
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.scene-tools .look-around:hover,
.scene-tools .look-around.active {
  color: #fff;
  background: rgba(21, 82, 119, 0.96);
  transform: translateY(-1px);
}

.scene-tools .look-around.active {
  box-shadow: 0 0 0 3px rgba(199, 227, 239, 0.45), 0 7px 24px rgba(4, 28, 47, 0.34);
}

.hotspot.door {
  isolation: isolate;
  overflow: visible;
  border: 2px solid rgba(239, 222, 179, 0.94);
  box-shadow: 0 0 0 4px rgba(15, 61, 88, 0.35), 0 10px 30px rgba(2, 22, 37, 0.46);
}

.hotspot.door .door-frame,
.hotspot.door .door-floor-guide {
  position: absolute;
  left: 50%;
  z-index: -2;
  display: block;
  pointer-events: none;
}

.hotspot.door .door-frame {
  bottom: -18px;
  width: 132px;
  height: 136px;
  border: 3px solid rgba(231, 220, 185, 0.95);
  border-bottom: 0;
  border-radius: 9px 9px 0 0;
  box-shadow: 0 0 0 2px rgba(11, 58, 89, 0.76), inset 0 0 22px rgba(228, 239, 239, 0.18);
  transform: translateX(-50%);
}

.hotspot.door .door-frame::before {
  position: absolute;
  top: -8px;
  right: -8px;
  bottom: 0;
  left: -8px;
  border: 1px solid rgba(211, 233, 238, 0.64);
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
  content: "";
}

.hotspot.door .door-floor-guide {
  top: calc(100% + 19px);
  width: 172px;
  height: 76px;
  clip-path: polygon(30% 0, 70% 0, 100% 100%, 0 100%);
  background: repeating-linear-gradient(90deg, rgba(233, 218, 173, 0.68) 0 3px, transparent 3px 22px);
  border-bottom: 2px solid rgba(235, 221, 181, 0.8);
  opacity: 0.78;
  transform: translateX(-50%);
}

.hotspot.door.is-view-centered .door-frame {
  border-color: #fff0bc;
  box-shadow: 0 0 0 2px rgba(11, 58, 89, 0.86), 0 0 28px rgba(255, 236, 172, 0.52);
}

.experience.scene-door-approach .hotspot:not(.door),
.experience.scene-door-approach .lesson-nav,
.experience.scene-door-approach .scene-tools,
.experience.scene-door-approach .guide-dock {
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.experience.scene-door-approach .hotspot.door {
  box-shadow: 0 0 0 5px rgba(236, 217, 164, 0.5), 0 0 44px rgba(252, 234, 181, 0.62);
}

.transition.door-transition {
  color: #f8ecd0;
  background:
    radial-gradient(ellipse at center, rgba(31, 76, 100, 0.4) 0 20%, rgba(6, 25, 38, 0.94) 64%),
    linear-gradient(90deg, #071c2b, #133e57 48%, #071c2b);
  animation: door-cover-in 240ms ease-out both;
}

.transition.door-transition::before,
.transition.door-transition::after {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 24%;
  border: 1px solid rgba(223, 213, 180, 0.2);
  background: linear-gradient(90deg, rgba(3, 18, 29, 0.62), rgba(35, 76, 94, 0.28));
  content: "";
  pointer-events: none;
}

.transition.door-transition::before {
  left: 0;
}

.transition.door-transition::after {
  right: 0;
  transform: scaleX(-1);
}

.transition.door-transition .brand-mark,
.transition.door-transition p {
  position: relative;
  z-index: 1;
}

.transition.door-transition.door-opening {
  animation: door-cover-out 480ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.experience.scene-arriving .panorama canvas {
  animation: room-arrive 600ms ease-out both;
}

@keyframes door-cover-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes door-cover-out {
  from { opacity: 1; clip-path: inset(0 0 0 0); }
  to { opacity: 0; clip-path: inset(0 48% 0 48%); }
}

@keyframes room-arrive {
  from { opacity: 0.3; transform: scale(1.025); }
  to { opacity: 1; transform: scale(1); }
}

@media (max-width: 800px) {
  .scene-tools {
    top: 112px;
    right: 15px;
  }

  .scene-tools .look-around {
    min-width: 104px;
    min-height: 44px;
    padding: 8px 13px;
    font-size: 12px;
  }

  .hotspot.door .door-frame {
    width: 116px;
    height: 118px;
  }

  .hotspot.door .door-floor-guide {
    width: 146px;
    height: 62px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scene-tools .look-around,
  .experience.scene-door-approach *,
  .transition.door-transition,
  .transition.door-transition.door-opening,
  .experience.scene-arriving .panorama canvas {
    animation: none !important;
    transition: none !important;
  }
}
