* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body, html {
  width: 100%;
  height: 100%;
  font-family: 'Inter', -apple-system, sans-serif;
  background-color: #000000;
  color: #ffffff;
  overflow: hidden;
}

.hidden { display: none !important; }

/* INTRO SPLASH OVERLAY PANEL */
#intro-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #000000;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99999;
  cursor: pointer;
}

.intro-content { text-align: center; }
.logo-text {
  font-family: 'Bangers', cursive;
  font-size: 5rem;
  color: #e1ac51;
  animation: pulse 1.8s infinite alternate;
}
.intro-subtext {
  font-family: 'Oooh Baby', cursive;
  font-size: 2.2rem;
  color: #ffffff;
  margin-top: 10px;
}

/* MAIN VIEW CANVASES */
#main-content {
  position: relative;
  width: 100%;
  height: 100%;
  background-color: #000000;
  display: block;
}

#bg-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  z-index: 1;
}

#ui-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.4);
  padding: 20px;
  z-index: 5;
}

.center-text-group {
  text-align: center;
  max-width: 500px;
  z-index: 6;
}

.main-body-text {
  font-family: 'Inter', sans-serif;
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1.6;
  color: #ffffff;
}

/* CONTROLS HUD BUTTON MODULES */
.audio-container {
  position: absolute;
  top: 30px;
  left: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 10;
}

#audio-toggle {
  background-color: #000000;
  border: 2px solid #e1ac51;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
  margin-bottom: 8px;
}
#audio-toggle img { width: 22px; height: 22px; }

/* 🟢 UNIFIED HUD GRAPHIC CAPTION LABELS CLASS */
.hud-label-text, .exit-message {
  font-family: 'Bangers', cursive;
  font-size: 1.2rem;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.05rem;
}

#audio-message {
  color: #e1ac51; /* Matches branding yellow metrics */
}

.exit-container {
  position: absolute;
  bottom: 40px;
  left: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 10;
}
.exit-container button {
  background-color: #000000;
  border: 2px solid #ffffff;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}
.exit-container button img { width: 20px; height: 20px; }

.arrow-container {
  position: absolute;
  bottom: 40px;
  right: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 10;
}
#interactive-icon {
  background-color: #000000;
  border: 3px solid #e1ac51;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 8px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.6);
}
#custom-arrow-img { width: 44px; height: 44px; }
.action-message {
  font-family: 'Bangers', cursive;
  font-size: 1.4rem;
  color: #e1ac51;
  text-transform: uppercase;
}

/* ==========================================================================
   🧭 5. WORLD MAP CAMERA SCANNERS (SMOOTH TRANSITIONING TIMELINE MATRIX)
   ========================================================================== */
#map-animation-screen {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background-color: #000000;
  z-index: 20;
  display: none; 
  place-items: center !important; 
  /* 🟢 NEW: Configures smooth fading out transitions during map zoom stages */
  transition: opacity 1.5s ease-in-out;
  opacity: 1;
}
#map-animation-screen.active {
  display: grid !important; 
  opacity: 1 !important;
}

#world-map-wrapper {
  position: relative !important;
  width: 100vw !important;
  height: 100vh !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  margin: 0 auto !important;
  /* 🟢 NEW: Preps layout for smooth, high-fidelity 4.5x zoom camera animations */
  transform: scale(1);
  transition: transform 1.5s cubic-bezier(0.45, 0, 0.55, 1);
}

#world-map-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important; 
  max-width: 100vw !important;
  max-height: 100vh !important;
  display: block !important;
  margin: 0 auto !important;
}

#scope-locator {
  position: absolute;
  width: 45px;
  height: 45px;
  border: 3px solid #ee3736;
  border-radius: 50%;
  transform: translate(-50%, -50%) !important;
  z-index: 25;
  box-shadow: 0 0 15px #ee3736;
  display: none; 
}
#scope-locator.active {
  display: block !important;
}

#scope-locator::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  background-color: #ee3736;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

/* DETECTIVE LOADING CLUES SPINNER */
#db-loading-spinner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 99;
}
.spinner-ring {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(255,255,255,0.1);
  border-top: 4px solid #e1ac51;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 15px;
}
.spinner-text {
  font-family: 'Bangers', cursive;
  font-size: 1.4rem;
  color: #e1ac51;
  text-transform: uppercase;
}

/* SOLID FULL SCREEN OPAQUE BOX BACKDROP SLATE */
#data-page-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #000000 !important; 
  z-index: 100; 
  display: none;
  justify-content: center;
  align-items: center;
  padding: 30px;
  /* 🟢 NEW: Staggers data card card entry transitions elegantly */
  opacity: 0;
  transition: opacity 0.8s ease-out;
}
#data-page-screen.active {
  display: flex !important;
  opacity: 1 !important;
}

.data-card-grid {
  width: 100%;
  max-width: 700px;
  background: #111111; 
  border: 2px solid rgba(255,255,255,0.05);
  border-radius: 20px;
  padding: 35px;
  display: flex;
  flex-direction: column;
  gap: 30px;
  text-align: center;
}

.data-row { display: flex; justify-content: center; align-items: center; width: 100%; }
.row-one { gap: 20px; }
.flag-img { width: 70px; height: 46px; object-fit: cover; border-radius: 4px; box-shadow: 0 4px 10px rgba(0,0,0,0.5); }
.data-highlight-text { font-family: 'Inter', sans-serif; font-size: 2.8rem; font-weight: 500; color: #ffffff; }

.row-two { gap: 12px; }
.label-prefix { font-family: 'Bangers', cursive; font-size: 1.8rem; color: #ccdc30; letter-spacing: 0.05rem; }
.data-normal-text { font-family: 'Inter', sans-serif; font-size: 1.8rem; font-weight: 500; }

.gallery-images-flex { display: flex; gap: 20px; width: 100%; justify-content: center; }
.gallery-thumb { width: calc(50% - 10px); max-width: 260px; height: 160px; object-fit: cover; border-radius: 10px; border: 1px solid rgba(255,255,255,0.08); }

.factoids-box { width: 100%; background: #161616; border: 1px dashed rgba(225, 172, 81, 0.25); border-radius: 12px; padding: 18px; text-align: left; }
.factoids-title { font-family: 'Bangers', cursive; font-size: 1.4rem; color: #e1ac51; margin-bottom: 10px; text-transform: uppercase; }
#factoids-list-wrapper { list-style-type: none; display: flex; flex-direction: column; gap: 8px; }
.factoid-item { font-family: 'Inter', sans-serif; font-size: 1rem; color: #ffffff; opacity: 0.9; position: relative; padding-left: 18px; line-height: 1.4; }
.factoid-item::before { content: "♦"; position: absolute; left: 0; top: 0; color: #ee3736; font-size: 0.9rem; }

.return-home-group { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.control-btn-home { background-color: #000000; border: 2px solid #e1ac51; border-radius: 50%; width: 60px; height: 60px; display: flex; justify-content: center; align-items: center; cursor: pointer; }
.home-icon-svg { width: 28px; height: 28px; }
.return-label-text { font-family: 'Inter', sans-serif; font-size: 1.1rem; font-weight: 500; color: #ffffff; opacity: 0.8; }

/* KID-FRIENDLY TRACKING RADAR BLINKING TIMELINES */
@keyframes kidsBlink {
  0% { opacity: 0.2; transform: translate(-50%, -50%) scale(0.8); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.25); border-color: #ccdc30; box-shadow: 0 0 25px #ccdc30; }
  100% { opacity: 0.2; transform: translate(-50%, -50%) scale(0.8); }
}

@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
@keyframes pulse { 0% { transform: scale(0.97); opacity: 0.7; } 100% { transform: scale(1.03); opacity: 1; } }

@media (max-width: 768px) {
  #data-page-screen { padding: 15px; overflow-y: auto; }
  .data-card-grid { padding: 20px; gap: 20px; }
  .data-highlight-text { font-size: 2rem; }
  .data-normal-text { font-size: 1.4rem; }
  .gallery-images-flex { flex-direction: column; align-items: center; gap: 15px; }
  .gallery-thumb { width: 100%; max-width: 100%; height: 140px; }
}