
:root { 
  --explore-drawer-width: 300px; 
  --explore-drawer-bg: #f7e3e3;
  --explore-drawer-border: rgba(255, 255, 255, 0.2);
  --explore-drawer-blur: 24px;

  --explore-glow: #fdeded;
  --explore-btn-bg: rgba(22, 23, 28, 0.95);
  --explore-btn-text: #FFFFFF;
  --explore-btn-border: rgba(255, 255, 255, 0.9);
  --explore-btn-radius: 3px;
  --explore-btn-padding: 10px 26px;
  --explore-btn-font-size: 15px;

  --category-btn-bg: #FFFFFF;
  --category-btn-text: #000000;
  --category-btn-border: rgba(255, 255, 255, 0.95);
  --category-active-bg: #FFFFFF;
  --category-active-text: #000000;
  --category-active-border: #FFFFFF;
  --category-active-glow: rgba(255, 255, 255, 0.4);

  --card-border: rgba(255, 255, 255, 0.2);
  --card-active-border: #fdeded;
  --card-active-glow: rgba(255, 255, 255, 0.5);
  --card-label-bg: rgba(0, 0, 0, 0.85);
  --card-label-text: #FFFFFF;

  --primary: #FF4444; 
}
body, html { margin: 0; padding: 0; width: 100%; height: 100%; overflow: hidden; background: #0A0B0D; font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
#viewer { width: 100%; height: 100%; }

/* Explore / Scenes Premium Accordion Drawer */
#explore-drawer { 
  position: fixed; top: 0; right: 0; width: var(--explore-drawer-width); height: 100%; 
  background: var(--explore-drawer-bg); 
  backdrop-filter: blur(var(--explore-drawer-blur)); -webkit-backdrop-filter: blur(var(--explore-drawer-blur)); 
  z-index: 2300; transform: translateX(100%); transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1); 
  overflow-y: auto; overflow-x: hidden; border-left: 1px solid var(--explore-drawer-border);
  box-shadow: -12px 0 45px rgba(0, 0, 0, 0.85); box-sizing: border-box;
  padding: 76px 16px 24px 16px; display: flex; flex-direction: column; gap: 10px;
}
#explore-drawer.open { transform: translateX(0); }

@media (max-width: 600px) {
  :root { --explore-drawer-width: 260px; }
}
@media (max-width: 400px) {
  :root { --explore-drawer-width: 210px; }
}

/* Explore / Exit Floating Button with Glowing Aura */
.explore-btn-container { 
  position: fixed; top: 16px; right: 16px; z-index: 2600; 
  display: inline-flex; align-items: center; justify-content: center;
}

.explore-glow-aura {
  position: absolute; inset: -4px; border-radius: calc(var(--explore-btn-radius) + 4px);
  background: radial-gradient(circle, var(--explore-glow) 0%, var(--explore-glow) 35%, transparent 75%);
  filter: blur(10px); opacity: 0.8; pointer-events: none;
  animation: explore-glow-pulse 2.4s infinite ease-in-out;
  transition: all 0.35s ease;
}

@keyframes explore-glow-pulse {
  0% { transform: scale(0.95); opacity: 0.65; filter: blur(8px); }
  50% { transform: scale(1.1); opacity: 1; filter: blur(14px); }
  100% { transform: scale(0.95); opacity: 0.65; filter: blur(8px); }
}

.explore-btn-container:hover .explore-glow-aura {
  opacity: 1; filter: blur(16px); transform: scale(1.18);
}

#explore-toggle-btn { 
  position: relative; z-index: 2;
  background: var(--explore-btn-bg); 
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); 
  color: var(--explore-btn-text); 
  border: 1.8px solid var(--explore-btn-border); 
  border-radius: var(--explore-btn-radius); 
  padding: var(--explore-btn-padding); 
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; 
  font-size: var(--explore-btn-font-size); 
  font-weight: 800; letter-spacing: 0.5px; cursor: pointer; 
  box-shadow: 0 4px 22px rgba(0, 0, 0, 0.7), 0 0 16px var(--explore-glow); 
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); 
  user-select: none; display: flex; align-items: center; justify-content: center; gap: 7px;
}
#explore-toggle-btn:hover { 
  transform: translateY(-1px);
  border-color: #FFFFFF; 
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.9), 0 0 24px var(--explore-glow); 
}
#explore-toggle-btn.active { 
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8), 0 0 18px var(--explore-glow);
}

/* Push Right Toolbar sideways when Explore drawer expands */
#right-toolbar-overlay {
  position: fixed; top: 50%; right: 12px; transform: translateY(-50%);
  z-index: 2000; pointer-events: auto; display: flex; flex-direction: column; align-items: flex-end;
  transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
body.explore-open #right-toolbar-overlay {
  right: calc(var(--explore-drawer-width) + 12px);
}

/* Tour Creator Floating Badge Overlay */
#creator-bar-overlay {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 2500;
  pointer-events: auto;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
@media (max-width: 680px), (max-height: 520px) {
  #creator-bar-overlay {
    bottom: 74px;
    right: 14px;
  }
}

/* Bottom Center Interactive Quick Controls Dock */
#quick-controls-overlay {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 2500; pointer-events: auto;
  display: flex; align-items: center; gap: 8px; padding: 6px 10px;
  background: rgba(14, 15, 19, 0.88);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 40px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.75), 0 0 20px rgba(0, 0, 0, 0.4);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  max-width: calc(100vw - 24px);
  box-sizing: border-box;
  user-select: none;
}
@media (max-width: 680px), (max-height: 520px) {
  #quick-controls-overlay {
    bottom: 12px;
    gap: 4px;
    padding: 4px 6px;
    max-width: calc(100vw - 16px);
    border-radius: 30px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    justify-content: center;
  }
  #quick-controls-overlay::-webkit-scrollbar {
    display: none;
  }
  .bottom-control-btn {
    padding: 7px 8px !important;
    font-size: 10px !important;
    min-width: 34px !important;
    height: 34px !important;
    justify-content: center !important;
    border-radius: 20px !important;
    gap: 4px !important;
    flex-shrink: 0 !important;
  }
  .bottom-control-btn .btn-text-label,
  #music-btn-text,
  #autorotate-text,
  #gyro-text,
  #vr-text,
  #fullscreen-text {
    display: none !important;
  }
  .gyro-btn-wrapper {
    border-radius: 20px !important;
    flex-shrink: 0 !important;
  }
  .gyro-btn-wrapper::before {
    border-radius: 20px !important;
  }
}

.bottom-control-btn {
  background: rgba(22, 23, 28, 0.9);
  color: #8E9299;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 7px 13px;
  border-radius: 24px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 14px rgba(0,0,0,0.4);
  white-space: nowrap;
  user-select: none;
}
.bottom-control-btn:hover {
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.6);
}
.bottom-control-btn.active-autorotate {
  background: rgba(59, 130, 246, 0.22);
  color: #60A5FA;
  border-color: #3B82F6;
  box-shadow: 0 0 16px rgba(59, 130, 246, 0.45);
}
.bottom-control-btn.active-gyro {
  background: rgba(16, 185, 129, 0.22);
  color: #34D399;
  border-color: #10B981;
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.45);
}
.bottom-control-btn.active-vr {
  background: rgba(168, 85, 247, 0.25);
  color: #C084FC;
  border-color: #A855F7;
  box-shadow: 0 0 18px rgba(168, 85, 247, 0.55);
}
.bottom-control-btn.active-music {
  background: rgba(255, 68, 68, 0.22);
  color: #FF6B6B;
  border-color: #FF4444;
  box-shadow: 0 0 16px rgba(255, 68, 68, 0.45);
}
.bottom-control-btn.active-fullscreen {
  background: rgba(0, 229, 255, 0.22);
  color: #00E5FF;
  border-color: #00E5FF;
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.45);
}

/* Mobile Rotate Screen Advisory Overlay */
#rotate-advisory-overlay {
  position: fixed;
  inset: 0;
  z-index: 6500;
  background: rgba(8, 9, 11, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 1;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: auto;
  box-sizing: border-box;
}
#rotate-advisory-overlay.fade-out {
  opacity: 0;
  transform: scale(0.96);
  pointer-events: none;
}
.rotate-advisory-card {
  max-width: 360px;
  width: 100%;
  background: #141518;
  border: 1px solid rgba(255, 68, 68, 0.45);
  border-radius: 20px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9), 0 0 30px rgba(255, 68, 68, 0.2);
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}
@keyframes phone-rotate-animation {
  0%, 15% { transform: rotate(0deg); }
  50%, 75% { transform: rotate(-90deg); }
  90%, 100% { transform: rotate(0deg); }
}
.rotate-phone-anim {
  animation: phone-rotate-animation 3.6s ease-in-out infinite;
  transform-origin: center center;
}
.rotate-advisory-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-top: 4px;
}
.rotate-fullscreen-btn {
  flex: 1;
  background: linear-gradient(135deg, #FF4444, #FF6B6B);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 10px 14px;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.3px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 4px 18px rgba(255, 68, 68, 0.4);
  transition: all 0.2s ease;
}
.rotate-fullscreen-btn:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}
.rotate-dismiss-btn {
  background: rgba(255, 255, 255, 0.1);
  color: #8E9299;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 10px 14px;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}
.rotate-dismiss-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #FFFFFF;
}

.control-status-badge {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #64748B;
  display: inline-block;
  transition: all 0.25s ease;
}
.control-status-badge.active-gyro-badge {
  background: #10B981;
  box-shadow: 0 0 8px #10B981, 0 0 14px #10B981;
  animation: pulse-badge 2s infinite ease-in-out;
}
.control-status-badge.active-vr-badge {
  background: #A855F7;
  box-shadow: 0 0 8px #A855F7, 0 0 14px #A855F7;
  animation: pulse-badge 2s infinite ease-in-out;
}
.control-status-badge.active-music-badge {
  background: #FF4444;
  box-shadow: 0 0 8px #FF4444, 0 0 14px #FF4444;
  animation: pulse-badge 1.8s infinite ease-in-out;
}

#snapshot-flash-overlay {
  position: fixed;
  inset: 0;
  background: #FFFFFF;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease-out;
}
#snapshot-flash-overlay.flash-active {
  opacity: 0.95;
  transition: none;
}

#share-tour-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 7000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
#share-tour-modal.share-open {
  display: flex;
}
.share-dialog-card {
  max-width: 440px;
  width: 100%;
  background: #151619;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.9), 0 0 30px rgba(0, 229, 255, 0.15);
  color: #FFFFFF;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, monospace;
}
.share-dialog-card input {
  background: #0A0B0D;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 8px 12px;
  font-family: monospace;
  font-size: 11px;
  color: #FFFFFF;
  width: 100%;
  outline: none;
}
.share-copy-btn {
  background: #2A2B2F;
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 11px;
  font-family: monospace;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}
.share-copy-btn:hover {
  background: #3A3B40;
  border-color: rgba(255, 255, 255, 0.3);
}
.share-copy-btn.copied {
  background: #10B981;
  border-color: #10B981;
  color: #FFFFFF;
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.5);
}

.music-bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
  margin: 0 2px;
}

.music-bar {
  width: 2.5px;
  background: currentColor;
  border-radius: 1.5px;
  display: inline-block;
  height: 100%;
}

.music-bars:not(.paused) .music-bar:nth-child(1) {
  animation: music-bar-dance 0.9s ease-in-out infinite alternate;
  animation-delay: 0.1s;
}
.music-bars:not(.paused) .music-bar:nth-child(2) {
  animation: music-bar-dance 0.7s ease-in-out infinite alternate;
  animation-delay: 0.3s;
}
.music-bars:not(.paused) .music-bar:nth-child(3) {
  animation: music-bar-dance 1.1s ease-in-out infinite alternate;
  animation-delay: 0.5s;
}
.music-bars:not(.paused) .music-bar:nth-child(4) {
  animation: music-bar-dance 0.8s ease-in-out infinite alternate;
  animation-delay: 0.2s;
}

.music-bars.paused .music-bar {
  animation: none !important;
  height: 30% !important;
  opacity: 0.5;
}

@keyframes music-bar-dance {
  0% { height: 20%; }
  50% { height: 100%; }
  100% { height: 35%; }
}

@keyframes pulse-badge {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.3); opacity: 1; }
}

/* Category Accordion Header Buttons */
.explore-cat-item {
  width: 100%; display: flex; flex-direction: column;
}
.explore-cat-btn {
  width: 100%; background: var(--category-btn-bg); color: var(--category-btn-text);
  border: 1px solid var(--category-btn-border); border-radius: 4px;
  padding: 10px 14px; font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 13px; font-weight: 800; letter-spacing: 0.3px; text-transform: uppercase;
  text-align: center; cursor: pointer; transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3); display: flex; align-items: center; justify-content: center;
  user-select: none;
}
.explore-cat-btn:hover {
  filter: brightness(1.08); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}
.explore-cat-btn.active {
  background: var(--category-active-bg); color: var(--category-active-text);
  border-color: var(--category-active-border);
  box-shadow: 0 0 14px var(--category-active-glow);
}

.explore-cat-scenes {
  display: none; flex-direction: column; gap: 8px; padding: 8px 0 10px 0;
}
.explore-cat-scenes.open {
  display: flex;
}

/* Scene Thumbnail Cards */
.explore-scene-card {
  position: relative; width: 100%; aspect-ratio: 16/9; border-radius: 4px;
  overflow: hidden; cursor: pointer; border: 1.5px solid var(--card-border);
  background: #151619; transition: all 0.2s ease; box-sizing: border-box;
}
.explore-scene-card:hover {
  border-color: #FFFFFF; transform: scale(1.02);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6);
}
.explore-scene-card.active {
  border-color: var(--card-active-border); 
  box-shadow: 0 0 16px var(--card-active-glow);
}
.explore-scene-card img {
  width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.35s ease;
}
.explore-scene-card:hover img {
  transform: scale(1.06);
}
.explore-scene-card-label {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 6px 8px;
  background: var(--card-label-bg);
  color: var(--card-label-text); 
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 11px; font-weight: 700; text-align: center; letter-spacing: 0.2px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
#caption { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); background: rgba(0,0,0,0.8); color: white; padding: 8px 16px; border-radius: 20px; z-index: 10; font-size: 14px; }
@keyframes slow-blink {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.2; transform: scale(0.95); }
}
.animate-slow-blink {
    animation: slow-blink 2s ease-in-out infinite;
}
@keyframes runway-pulse {
    0% {
        opacity: 0.15;
        transform: scale(0.7) translateZ(0);
    }
    40% {
        opacity: 1;
        transform: scale(1.3) translateZ(0);
    }
    80%, 100% {
        opacity: 0.15;
        transform: scale(0.7) translateZ(0);
    }
}
.animate-runway-pulse {
    animation: runway-pulse 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
@keyframes pulse-glow {
    0%, 100% {
        filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.45)) drop-shadow(0 0 10px rgba(255, 255, 255, 0.25));
    }
    50% {
        filter: drop-shadow(0 0 14px rgba(255, 255, 255, 0.9)) drop-shadow(0 0 22px rgba(255, 255, 255, 0.5));
    }
}
.animate-pulse-glow {
    animation: pulse-glow 2.5s ease-in-out infinite;
    transition: filter 0.3s ease-in-out;
}
.animate-slow-blink.animate-pulse-glow {
    animation: slow-blink 2s ease-in-out infinite, pulse-glow 2.5s ease-in-out infinite;
}
.animate-pulse-glow:hover {
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 1)) drop-shadow(0 0 32px rgba(255, 255, 255, 0.8)) !important;
}
.hotspot-tooltip {
    background: #1A1B20;
    color: white;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #2A2B2F;
    max-width: 200px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}
.hotspot-tooltip-title {
    font-weight: bold;
    font-size: 13px;
    margin-bottom: 4px;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.hotspot-tooltip-content {
    font-size: 11px;
    color: #8E9299;
    line-height: 1.4;
}
.hotspot-tooltip-image {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 8px;
    background: #000;
}
.hotspot-tooltip-action {
    margin-top: 8px;
    padding: 6px;
    background: #FF4444;
    color: white;
    text-align: center;
    border-radius: 4px;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
}
.psv-tooltip {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}
.psv-tooltip-content {
    background: transparent !important;
    padding: 0 !important;
}
.psv-tooltip-arrow {
    display: none !important;
}

/* --- Interactive Beacon/Ripple Hotspot --- */
@keyframes beacon-ripple {
  0% {
    transform: scale(0.9) translateZ(0);
    opacity: 0.95;
    border-color: rgba(255, 255, 255, 0.85);
  }
  100% {
    transform: scale(2.2) translateZ(0);
    opacity: 0;
    border-color: rgba(255, 255, 255, 0);
  }
}

.beacon-core {
  position: relative;
  width: 100%;
  height: 100%;
  background: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.8), inset 0 0 4px rgba(0, 0, 0, 0.2);
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.beacon-core:hover {
  transform: scale(1.1);
  box-shadow: 0 0 18px rgba(255, 255, 255, 1.0), inset 0 0 6px rgba(0, 0, 0, 0.25);
}

.beacon-ripple-ring {
  position: absolute;
  inset: -1px;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  pointer-events: none;
  animation: beacon-ripple 2s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
}

.beacon-ripple-ring-1 {
  animation-delay: 0s;
}

.beacon-ripple-ring-2 {
  animation-delay: 0.66s;
}

.beacon-ripple-ring-3 {
  animation-delay: 1.33s;
}

/* --- Subtle Pulsating Navigation Ripple Wave Animation --- */
@keyframes nav-ripple-wave {
  0% {
    transform: scale(0.3) translateZ(0);
    opacity: 0.85;
  }
  50% {
    opacity: 0.45;
  }
  100% {
    transform: scale(2.8) translateZ(0);
    opacity: 0;
  }
}

.nav-ripple-container {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-ripple-ring {
  position: absolute;
  width: 70%;
  height: 70%;
  border-radius: 50%;
  border-width: 2px;
  border-style: solid;
  border-color: var(--nav-ripple-color, #FF4444);
  background: radial-gradient(circle, transparent 40%, var(--nav-ripple-color, #FF4444) 100%);
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
  animation: nav-ripple-wave 3s cubic-bezier(0.2, 0.6, 0.35, 1) infinite;
}

.nav-ripple-ring-1 {
  animation-delay: 0s;
}

.nav-ripple-ring-2 {
  animation-delay: 1s;
}

.nav-ripple-ring-3 {
  animation-delay: 2s;
}

/* --- Motion Graphics HUD Callout --- */
@keyframes hud-glow {
  0%, 100% {
    filter: drop-shadow(0 0 4px var(--hud-accent-glow, rgba(255, 68, 68, 0.4))) drop-shadow(0 0 1px var(--hud-accent-glow, rgba(255, 68, 68, 0.2)));
  }
  50% {
    filter: drop-shadow(0 0 9px var(--hud-accent-glow, rgba(255, 68, 68, 0.8))) drop-shadow(0 0 2px var(--hud-accent-glow, rgba(255, 68, 68, 0.4)));
  }
}

.hud-callout-container {
  animation: hud-glow 3s ease-in-out infinite;
}

.hud-leader-line {
  stroke: rgba(255, 68, 68, 0.85);
  stroke-width: 1.5;
  stroke-dasharray: 4 4;
  animation: stroke-march 10s linear infinite;
}

@keyframes stroke-march {
  to {
    stroke-dashoffset: -100;
  }
}

.hud-callout-box {
  background: rgba(14, 15, 19, 0.92) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-left: 3px solid #FF4444;
  padding: 10px 14px;
  border-radius: 2px 8px 8px 2px;
  box-sizing: border-box;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.8), 0 0 18px rgba(255, 68, 68, 0.15);
  transform-origin: left top;
  overflow: visible;
  color: #FFFFFF !important;
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  text-align: left;
}

.hud-callout-corner-accent {
  position: absolute;
  width: 5px;
  height: 5px;
  border: 1.5px solid #FF4444;
  pointer-events: none;
}
.hud-callout-tr {
  top: -1px;
  right: -1px;
  border-bottom: none;
  border-left: none;
}
.hud-callout-br {
  bottom: -1px;
  right: -1px;
  border-top: none;
  border-left: none;
}

.hud-callout-title {
  font-family: 'Space Grotesk', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  color: #FFFFFF !important;
  letter-spacing: 0.8px !important;
  text-transform: uppercase !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.3 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.95);
}

.hud-callout-badge {
  display: inline-flex !important;
  align-items: center !important;
  margin-top: 5px !important;
  padding: 2px 6px !important;
  border-radius: 4px !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
  font-weight: 700 !important;
  font-size: 9px !important;
  letter-spacing: 0.5px !important;
  border-width: 1px !important;
  border-style: solid !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.hud-callout-desc {
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  font-size: 10px !important;
  color: #CBD5E1 !important;
  margin-top: 6px !important;
  margin-bottom: 0 !important;
  line-height: 1.45 !important;
  white-space: normal !important;
  word-break: break-word !important;
  overflow-wrap: break-word !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.spin-icon {
  animation: spin 8s linear infinite !important;
}

/* Gyro Button Glowing Ring Accents & Indicator Badge Styles */
@keyframes gyro-rainbow-pulse {
  0% {
    background-position: 0% 50%;
    opacity: 0.75;
    filter: blur(6px);
    transform: scale(0.98);
  }
  50% {
    background-position: 100% 50%;
    opacity: 1;
    filter: blur(10px);
    transform: scale(1.03);
  }
  100% {
    background-position: 0% 50%;
    opacity: 0.75;
    filter: blur(6px);
    transform: scale(0.98);
  }
}

.gyro-btn-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  border-radius: 24px;
}

.gyro-btn-wrapper::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 24px;
  background: linear-gradient(120deg, #10B981, #06B6D4, #3B82F6, #EC4899, #F59E0B, #10B981);
  background-size: 300% 300%;
  opacity: 0.85;
  filter: blur(6px);
  pointer-events: none;
  animation: gyro-rainbow-pulse 3s ease-in-out infinite;
  z-index: 0;
}

.gyro-btn-wrapper:hover::before {
  opacity: 1;
  filter: blur(12px);
}

.gyro-btn-wrapper .bottom-control-btn {
  position: relative;
  z-index: 1;
}

/* Creator Circle Badge Styles */
.creator-badge-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
}

.creator-badge-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FF4444, #10B981, #3B82F6);
  opacity: 0;
  filter: blur(8px);
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.creator-badge-container:hover .creator-badge-ring {
  opacity: 1;
}

.creator-badge-circle {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(21, 22, 25, 0.95);
  border: 2px solid #2A2B2F;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 8px;
  transition: border-color 0.3s ease, transform 0.3s ease;
  box-sizing: border-box;
}

.creator-badge-container:hover .creator-badge-circle {
  border-color: #FF4444;
  transform: scale(1.05);
}

.creator-badge-dot {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #151619;
  border: 1px solid #2A2B2F;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

.creator-badge-dot-inner {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 8px #10B981;
  animation: pulse 2s infinite;
}

.creator-badge-tooltip {
  position: absolute;
  bottom: 68px;
  right: 0;
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s ease;
  transform: translateY(4px);
  white-space: nowrap;
  background: rgba(21, 22, 25, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid #2A2B2F;
  color: white;
  font-family: monospace;
  font-size: 10px;
  font-weight: bold;
  padding: 4px 10px;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  gap: 6px;
}

.creator-badge-container:hover .creator-badge-tooltip {
  opacity: 1;
  transform: translateY(0);
}

@keyframes pulse {
  0%, 100% { transform: scale(0.95); opacity: 0.85; }
  50% { transform: scale(1.05); opacity: 1; }
}

/* Feature Guide Tip Popup */
#feature-tips-popup {
  position: fixed;
  bottom: 64px;
  left: 50%;
  transform: translateX(-50%) translateY(0);
  z-index: 2600;
  max-width: calc(100vw - 28px);
  width: auto;
  min-width: 260px;
  background: rgba(14, 15, 19, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  padding: 8px 12px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.85), 0 0 20px rgba(0, 229, 255, 0.15);
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 1;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: auto;
  user-select: none;
}
#feature-tips-popup.hidden-tip {
  opacity: 0;
  transform: translateX(-50%) translateY(14px) scale(0.94);
  pointer-events: none;
}
.feature-tip-icon-box {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.feature-tip-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}
.feature-tip-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
}
.feature-tip-title {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: white;
}
.feature-tip-badge {
  font-family: monospace;
  font-size: 9px;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  color: #CBD5E1;
}
.feature-tip-desc {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 11px;
  color: #CBD5E1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.feature-tip-dots {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-left: 2px;
}
.feature-tip-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transition: all 0.25s ease;
}
.feature-tip-dot.active {
  width: 12px;
  border-radius: 2px;
  background: var(--active-tip-color, #00E5FF);
}
.feature-tip-close-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #8E9299;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s ease;
}
.feature-tip-close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}
