* {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -ms-text-size-adjust: none;
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  -ms-content-zooming: none;
  -webkit-tap-highlight-color: rgba(0,0,0,0);
}

html, body {
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  background-color: #000;
  color: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a, a:hover, a:active, a:visited {
  text-decoration: none;
  color: inherit;
}

#pano {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* Apple-style liquid glass title bar */
#titleBar {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 76px;
  height: 44px;
  text-align: center;
  z-index: 100;
}

.mobile #titleBar {
  top: 12px;
  left: 12px;
  right: 68px;
  height: 48px;
}

body.fullscreen-enabled #titleBar {
  right: 132px;
}

body.fullscreen-enabled.mobile #titleBar {
  right: 124px;
}

body.multiple-scenes #titleBar {
  left: 76px;
}

body.multiple-scenes.mobile #titleBar {
  left: 68px;
}

#titleBar .sceneName {
  width: 100%;
  height: 100%;
  line-height: 44px;
  padding: 0 20px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border: 0.5px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15),
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
  -moz-user-select: text;
  -webkit-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

.mobile #titleBar .sceneName {
  line-height: 48px;
  font-size: 15px;
}

/* Unified control button style - Apple minimalism */
.control-button,
#fullscreenToggle,
#autorotateToggle,
#sceneListToggle {
  position: absolute;
  top: 16px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border: 0.5px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15),
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
  z-index: 100;
}

.mobile .control-button,
.mobile #fullscreenToggle,
.mobile #autorotateToggle,
.mobile #sceneListToggle {
  top: 12px;
  width: 48px;
  height: 48px;
}

.control-button:hover,
#fullscreenToggle:hover,
#autorotateToggle:hover,
#sceneListToggle:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.25),
              inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.control-button:active,
#fullscreenToggle:active,
#autorotateToggle:active,
#sceneListToggle:active {
  transform: scale(0.95);
  transition: all 0.15s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Fullscreen Toggle */
#fullscreenToggle {
  display: none;
  right: 16px;
}

.mobile #fullscreenToggle {
  right: 12px;
}

body.fullscreen-enabled #fullscreenToggle {
  display: block;
}

#fullscreenToggle .icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.mobile #fullscreenToggle .icon {
  width: 22px;
  height: 22px;
}

#fullscreenToggle:hover .icon {
  opacity: 1;
}

#fullscreenToggle .icon.on {
  display: none;
}

#fullscreenToggle .icon.off {
  display: block;
}

#fullscreenToggle.enabled .icon.on {
  display: block;
}

#fullscreenToggle.enabled .icon.off {
  display: none;
}

#fullscreenToggle.enabled {
  background: rgba(10, 132, 255, 0.15);
  border-color: rgba(10, 132, 255, 0.3);
}

#fullscreenToggle.enabled:hover {
  background: rgba(10, 132, 255, 0.25);
  border-color: rgba(10, 132, 255, 0.4);
}

/* Autorotate Toggle */
#autorotateToggle {
  right: 16px;
}

.mobile #autorotateToggle {
  right: 12px;
}

body.fullscreen-enabled #autorotateToggle {
  right: 76px;
}

body.fullscreen-enabled.mobile #autorotateToggle {
  right: 68px;
}

#autorotateToggle .icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.mobile #autorotateToggle .icon {
  width: 22px;
  height: 22px;
}

#autorotateToggle:hover .icon {
  opacity: 1;
}

#autorotateToggle .icon.on {
  display: none;
}

#autorotateToggle .icon.off {
  display: block;
}

#autorotateToggle.enabled .icon.on {
  display: block;
  animation: rotateIcon 4s linear infinite;
}

#autorotateToggle.enabled .icon.off {
  display: none;
}

#autorotateToggle.enabled {
  background: rgba(52, 199, 89, 0.15);
  border-color: rgba(52, 199, 89, 0.3);
}

#autorotateToggle.enabled:hover {
  background: rgba(52, 199, 89, 0.25);
  border-color: rgba(52, 199, 89, 0.4);
}

@keyframes rotateIcon {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Scene List Toggle */
#sceneListToggle {
  left: 16px;
}

.mobile #sceneListToggle {
  left: 12px;
}

#sceneListToggle .text {
  display: none;
}

#sceneListToggle .icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.mobile #sceneListToggle .icon {
  width: 22px;
  height: 22px;
}

#sceneListToggle:hover .icon {
  opacity: 1;
}

#sceneListToggle .icon.on {
  display: none;
}

#sceneListToggle .icon.off {
  display: block;
}

#sceneListToggle.enabled .icon.on {
  display: block;
}

#sceneListToggle.enabled .icon.off {
  display: none;
}

#sceneListToggle.enabled {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

#sceneListToggle.enabled:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.4);
}

/* Scene List - Apple sidebar style */
#sceneList {
  position: absolute;
  top:7%;
  left: -260px;
  padding-top: 16px;
  width: 260px;
  max-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  margin-left: 0;
  transition: margin-left 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 99;
}

.mobile #sceneList {
  padding-top: 12px;
  width: 100%;
  height: 100%;
  left: -100%;
}

.mobile #sceneList.enabled {
  margin-left: 100%;
}

#sceneList.enabled {
  margin-left: 260px;
}

#sceneList .scenes {
  width: 100%;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border: 0.5px solid rgba(255, 255, 255, 0.18);
  border-left: none;
  border-top-right-radius: 12px;
  border-bottom-right-radius: 12px;
  box-shadow: 4px 0 30px rgba(0, 0, 0, 0.2),
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.mobile #sceneList .scenes {
  height: 100%;
  border: 0.5px solid rgba(255, 255, 255, 0.18);
  border-radius: 0;
  box-shadow: none;
}

/* Apple-style scrollbar */
#sceneList::-webkit-scrollbar {
  width: 4px;
}

#sceneList::-webkit-scrollbar-track {
  background: transparent;
}

#sceneList::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
}

#sceneList::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

#sceneList .scene {
  display: block;
  width: 100%;
  height: 44px;
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.06);
  transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
}

.mobile #sceneList .scene {
  height: 52px;
}

#sceneList .scene:last-child {
  border-bottom: none;
}

#sceneList .scene .text {
  width: 100%;
  height: 100%;
  padding: 0 20px;
  line-height: 44px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 400;
  font-size: 14px;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.85);
  transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.mobile #sceneList .scene .text {
  line-height: 52px;
  font-size: 15px;
}

.no-touch #sceneList .scene:hover {
  background: rgba(255, 255, 255, 0.06);
}

.no-touch #sceneList .scene:hover .text {
  color: rgba(255, 255, 255, 1);
  padding-left: 24px;
}

#sceneList .scene.current {
  background: rgba(10, 132, 255, 0.12);
}

#sceneList .scene.current::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #0a84ff;
  border-radius: 0 2px 2px 0;
}

#sceneList .scene.current .text {
  color: #0a84ff;
  font-weight: 500;
}

body.single-scene #sceneList, 
body.single-scene #sceneListToggle {
  display: none;
}

/* Credits - Minimal Apple style */
.credits {
  position: fixed;
  bottom: 16px;
  right: 16px;
  z-index: 9999;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  color: rgba(255, 255, 255, 0.7);
  padding: 6px 14px;
  border-radius: 20px;
  border: 0.5px solid rgba(255, 255, 255, 0.15);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: -0.01em;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15),
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Link Hotspot - Minimal and elegant */
.link-hotspot {
  width: 56px;
  height: 56px;
  margin-left: -28px;
  margin-top: -28px;
  opacity: 0.92;
  transition: opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.3));
}

.no-touch .link-hotspot:hover {
  opacity: 1;
  filter: drop-shadow(0 6px 30px rgba(0, 0, 0, 0.4));
}

.mobile .link-hotspot {
  width: 64px;
  height: 64px;
  margin-left: -32px;
  margin-top: -32px;
}

.link-hotspot-icon {
  width: 100%;
  height: 100%;
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.no-touch .link-hotspot:hover .link-hotspot-icon {
  transform: scale(1.12);
}

.link-hotspot-tooltip {
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%) translateX(-8px);
  margin-left: 12px;
  font-size: 13px;
  max-width: 280px;
  padding: 8px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border: 0.5px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.95);
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  cursor: pointer;
  opacity: 0;
  font-weight: 400;
  letter-spacing: -0.01em;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3),
              inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  pointer-events: none;
}

.no-touch .link-hotspot:hover .link-hotspot-tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
  pointer-events: all;
}

.tooltip-fallback .link-hotspot-tooltip {
  display: none;
}

.no-touch .tooltip-fallback .link-hotspot:hover .link-hotspot-tooltip {
  display: block;
}

/* Info Hotspot - Apple glass style */
.info-hotspot {
  line-height: 1.5em;
  opacity: 0.95;
  transition: opacity 0.25s ease;
  filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.3));
}

.no-touch .info-hotspot:hover {
  opacity: 1;
}

.info-hotspot.visible {
  opacity: 1;
}

.info-hotspot .info-hotspot-header {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border: 0.5px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2),
              inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s;
}

.mobile .info-hotspot .info-hotspot-header {
  width: 48px;
  height: 48px;
}

.desktop.no-touch .info-hotspot .info-hotspot-header:hover {
  width: 260px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(10, 132, 255, 0.3);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.desktop .info-hotspot.visible .info-hotspot-header,
.desktop.no-touch .info-hotspot.visible .info-hotspot-header:hover {
  width: 260px;
  border-radius: 10px;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(10, 132, 255, 0.35);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.info-hotspot .info-hotspot-icon-wrapper {
  width: 40px;
  height: 40px;
}

.mobile .info-hotspot .info-hotspot-icon-wrapper {
  width: 48px;
  height: 48px;
}

.info-hotspot .info-hotspot-icon {
  width: 50%;
  height: 50%;
  margin: 25%;
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.no-touch .info-hotspot .info-hotspot-header:hover .info-hotspot-icon {
  opacity: 1;
}

.info-hotspot .info-hotspot-title-wrapper {
  position: absolute;
  left: 40px;
  top: 0;
  width: 0;
  height: 40px;
  padding: 0;
  overflow: hidden;
  transition: width 0s 0.4s, padding 0s 0.4s;
}

.mobile .info-hotspot .info-hotspot-title-wrapper {
  left: 48px;
  height: 48px;
}

.desktop .info-hotspot.visible .info-hotspot-title-wrapper,
.desktop.no-touch .info-hotspot .info-hotspot-header:hover .info-hotspot-title-wrapper {
  width: 220px;
  padding: 0 12px;
  transition: width 0s 0.4s, padding 0s 0.4s;
}

.info-hotspot .info-hotspot-title-wrapper:before {
  content: '';
  display: inline-block;
  vertical-align: middle;
  height: 100%;
}

.info-hotspot .info-hotspot-title {
  display: inline-block;
  vertical-align: middle;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.95);
  -moz-user-select: text;
  -webkit-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

.info-hotspot .info-hotspot-close-wrapper {
  position: absolute;
  left: 260px;
  top: 0;
  height: 40px;
  width: 40px;
  border-top-right-radius: 10px;
  background: rgba(255, 59, 48, 0.15);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border: 0.5px solid rgba(255, 59, 48, 0.3);
  visibility: hidden;
  transform: perspective(200px) rotateY(90deg);
  transform-origin: 0 50% 0;
  transition: transform 0.35s 0.3s, visibility 0s 0.65s;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.mobile .info-hotspot .info-hotspot-close-wrapper {
  height: 48px;
  width: 48px;
}

.info-hotspot .info-hotspot-close-wrapper:hover {
  background: rgba(255, 59, 48, 0.25);
  border-color: rgba(255, 59, 48, 0.4);
}

.desktop .info-hotspot.visible .info-hotspot-close-wrapper {
  visibility: visible;
  transform: perspective(200px) rotateY(0deg);
  transition: transform 0.35s, visibility 0s 0s;
}

.info-hotspot .info-hotspot-close-icon {
  width: 40%;
  height: 40%;
  margin: 30%;
  opacity: 0.9;
}

.info-hotspot .info-hotspot-text {
  position: absolute;
  width: 300px;
  height: auto;
  max-height: 240px;
  top: 40px;
  left: 0;
  padding: 14px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border: 0.5px solid rgba(255, 255, 255, 0.18);
  border-top: none;
  border-bottom-right-radius: 10px;
  border-bottom-left-radius: 10px;
  overflow-y: auto;
  visibility: hidden;
  transform: perspective(200px) rotateX(-89.999deg);
  transform-origin: 50% 0 0;
  transition: transform 0.35s, visibility 0s 0.35s;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.85);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25),
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
  -moz-user-select: text;
  -webkit-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

.mobile .info-hotspot .info-hotspot-text {
  top: 48px;
}

.info-hotspot .info-hotspot-text::-webkit-scrollbar {
  width: 4px;
}

.info-hotspot .info-hotspot-text::-webkit-scrollbar-track {
  background: transparent;
}

.info-hotspot .info-hotspot-text::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
}

.desktop .info-hotspot.visible .info-hotspot-text {
  visibility: visible;
  transform: perspective(200px) rotateX(0deg);
  transition: transform 0.35s 0.3s, visibility 0s 0s;
}

/* Info Hotspot Modal */
.desktop .info-hotspot-modal {
  display: none;
}

.info-hotspot-modal {
  top: 0;
  left: 0;
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 11000 !important;
  background-color: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  line-height: 1.5em;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease-in-out 0.5s, visibility 0s 0.85s;
}

.info-hotspot-modal.visible {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.35s ease-in-out, visibility 0s 0s;
}

.info-hotspot-modal .info-hotspot-header {
  position: absolute;
  top: 60px;
  left: 16px;
  right: 16px;
  width: auto;
  height: 56px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border: 0.5px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2),
              inset 0 1px 0 rgba(255, 255, 255, 0.15);
  opacity: 0;
  transition: opacity 0.35s ease-in-out 0.2s;
}

.info-hotspot-modal.visible .info-hotspot-header {
  opacity: 1;
  transition: opacity 0.35s ease-in-out 0.2s;
}

.info-hotspot-modal .info-hotspot-icon-wrapper {
  width: 56px;
  height: 56px;
}

.info-hotspot-modal .info-hotspot-icon {
  width: 50%;
  height: 50%;
  margin: 25%;
  opacity: 0.9;
}

.info-hotspot-modal .info-hotspot-title-wrapper {
  position: absolute;
  top: 0;
  left: 56px;
  right: 56px;
  width: auto;
  height: 56px;
  padding: 0 16px;
}

.info-hotspot-modal .info-hotspot-title-wrapper:before {
  content: '';
  display: inline-block;
  vertical-align: middle;
  height: 100%;
}

.info-hotspot-modal .info-hotspot-title {
  display: inline-block;
  vertical-align: middle;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.95);
  -moz-user-select: text;
  -webkit-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

.info-hotspot-modal .info-hotspot-close-wrapper {
  position: absolute;
  top: 0;
  right: 0;
  width: 56px;
  height: 56px;
  background: rgba(255, 59, 48, 0.15);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border: 0.5px solid rgba(255, 59, 48, 0.3);
  border-top-right-radius: 14px;
  border-bottom-right-radius: 14px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.info-hotspot-modal .info-hotspot-close-wrapper:hover {
  background: rgba(255, 59, 48, 0.25);
  border-color: rgba(255, 59, 48, 0.4);
}

.info-hotspot-modal .info-hotspot-close-icon {
  width: 40%;
  height: 40%;
  margin: 30%;
  opacity: 0.9;
}

.info-hotspot-modal .info-hotspot-text {
  position: absolute;
  top: 132px;
  bottom: 16px;
  left: 16px;
  right: 16px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border: 0.5px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  overflow-y: auto;
  opacity: 0;
  transition: opacity 0.35s ease-in-out;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.85);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2),
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
  -moz-user-select: text;
  -webkit-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

.info-hotspot-modal .info-hotspot-text::-webkit-scrollbar {
  width: 6px;
}

.info-hotspot-modal .info-hotspot-text::-webkit-scrollbar-track {
  background: transparent;
}

.info-hotspot-modal .info-hotspot-text::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

.info-hotspot-modal.visible .info-hotspot-text {
  opacity: 1;
  transition: opacity 0.35s ease-in-out 0.4s;
}

/* View Control Buttons */
.viewControlButton {
  display: none;
  position: absolute;
  bottom: 20px;
  left: 50%;
  width: 44px;
  height: 44px;
  padding: 0;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border: 0.5px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15),
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

body.view-control-buttons .viewControlButton {
  display: block;
}

@media (max-width: 600px) {
  body.view-control-buttons .viewControlButton {
    display: none;
  }
}

.viewControlButton:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.25),
              inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.viewControlButton:active {
  transform: scale(0.95);
  transition: all 0.15s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.viewControlButton .icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.viewControlButton:hover .icon {
  opacity: 1;
}

.viewControlButton-1 { margin-left: -154px; }
.viewControlButton-2 { margin-left: -98px; }
.viewControlButton-3 { margin-left: -42px; }
.viewControlButton-4 { margin-left: 14px; }
.viewControlButton-5 { margin-left: 70px; }
.viewControlButton-6 { margin-left: 126px; }

/* Accessibility */
.control-button:focus-visible,
#fullscreenToggle:focus-visible,
#autorotateToggle:focus-visible,
#sceneListToggle:focus-visible,
.viewControlButton:focus-visible,
#sceneList .scene:focus-visible {
  outline: 2px solid rgba(10, 132, 255, 0.6);
  outline-offset: 2px;
}

/* Responsive refinements */
@media (max-width: 768px) {
  #titleBar {
    top: 12px;
    left: 12px;
    right: 62px;
  }
  
  body.multiple-scenes #titleBar {
    left: 62px;
  }
}

/* Dark mode for browsers that do not support backdrop-filter */

.link-hotspot-icon {
  display: none !important;   /* removes arrow.png */
}

/* ===== Pure CSS Glass Arrow Hotspot (No PNG) ===== */

.link-hotspot {
  width: 70px;
  height: 70px;
  margin-left: -35px;
  margin-top: -35px;
  border-radius: 50%;

  /* Glass effect */
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);

  border: 1px solid rgba(255,255,255,0.25);
  box-shadow:
    0 10px 35px rgba(0,0,0,0.45),
    inset 0 1px 0 rgba(255,255,255,0.5);

  display: flex;
  align-items: center;
  justify-content: center;

  transition: none;   /* no hover animation */
}

/* Draw arrow using CSS */
/* .link-hotspot::after {
  content: '';
  width: 18px;
  height: 18px;

  border-right: 10px solid white;
  border-bottom: 10px solid white;

  transform: rotate(-45deg);
} */
/* .minimap {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 200px;
  height: 200px;
  z-index: 9999;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid white;
}

.minimap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#playerDot {
  position: absolute;
  width: 12px;
  height: 12px;
  background: red;
  border-radius: 50%;
  transform: translate(-50%, -50%);
} */
/* ===== Minimap (glassy) ===== */
#minimap{
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 200px;
  height: 200px;
  border-radius: 18px;
  overflow: hidden;

  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(255,255,255,0.25);
  box-shadow: 0 10px 30px rgba(0,0,0,0.45);
  z-index: 9999;
}

#mapImage{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#playerDot{
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ff3b30;         /* red dot */
  border: 3px solid #fff;

  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: top .6s ease, left .6s ease, transform .1s linear;
}


#minimap { background: red !important; }

