
:root { --sidebar-width: 280px; --primary: #FF4444; }
body, html { margin: 0; padding: 0; width: 100%; height: 100%; overflow: hidden; background: #0A0B0D; font-family: system-ui, sans-serif; }
#viewer { width: 100%; height: 100%; }
#sidebar { 
  position: absolute; top: 0; left: 0; width: var(--sidebar-width); height: 100%; 
  background: rgba(15, 16, 19, 0.95); backdrop-filter: blur(20px); z-index: 2000; 
  transform: translateX(-100%); transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1); overflow: auto;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}
#sidebar.open { transform: translateX(0); }
@media (max-width: 600px) {
  #sidebar { width: 100%; border-right: none; }
}
.scene-item { display: flex; align-items: center; gap: 12px; padding: 16px 12px; cursor: pointer; color: #CED2D9; border-bottom: 1px solid rgba(255,255,255,0.03); transition: all 0.2s; }
.scene-item:hover { background: rgba(255,255,255,0.05); }
.scene-item.active { background: rgba(255,68,68,0.1); color: #FF4444; border-left: 3px solid #FF4444; }
.thumb { width: 60px; height: 40px; border-radius: 4px; object-fit: cover; }
@media (max-width: 600px) { .thumb { width: 80px; height: 50px; } }
#sidebar-toggle { 
  position: absolute; top: 15px; left: 15px; z-index: 2001; 
  padding: 10px 16px; background: #1A1B20; color: white; border: 1px solid #2A2B2F; 
  cursor: pointer; border-radius: 6px; font-size: 11px; font-weight: bold; 
  letter-spacing: 1px; transition: all 0.3s; box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}
#sidebar.open + #sidebar-toggle { left: calc(var(--sidebar-width) + 15px); background: #FF4444; border-color: #FF4444; }
@media (max-width: 600px) {
  #sidebar.open + #sidebar-toggle { left: auto; right: 15px; }
}
#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;
}

/* --- Motion Graphics HUD Callout --- */
@keyframes hud-glow {
  0%, 100% {
    filter: drop-shadow(0 0 4px rgba(255, 68, 68, 0.4)) drop-shadow(0 0 1px rgba(255, 68, 68, 0.2));
  }
  50% {
    filter: drop-shadow(0 0 8px rgba(255, 68, 68, 0.8)) drop-shadow(0 0 2px 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.8);
  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(11, 12, 15, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 68, 68, 0.45);
  border-left: 3px solid #FF4444;
  padding: 10px 14px;
  border-radius: 2px 8px 8px 2px;
  min-width: 200px;
  max-width: 280px;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.6), 0 0 15px rgba(255, 68, 68, 0.1);
  transform-origin: left top;
}

.hud-callout-corner-accent {
  position: absolute;
  width: 4px;
  height: 4px;
  border: 1px solid #FF4444;
}
.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;
}
