* =============================== */
/*   RADAR OVERLAY                 */
/* =============================== */



#radarGrid {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  width: 90%;
 
  aspect-ratio: 1 / 1;
  height: auto;

  z-index: 4;        /* your inline z-index:15 will still win, which is fine */
  pointer-events: none;
}

.radar {
  position: relative;
  overflow: hidden;
  /*width: 300px;*/
  top: 50%; 
  left: 50%;
  -webkit-transform: translateX(-50%) translateY(-50%);
  transform: translateX(-50%) translateY(-50%);
  
  z-index: 2;
  width: 50vh;
  aspect-ratio: 1;
  background:  url(/img/textures/vY6Tl-eye.png) center / cover;
  
  border-radius: 50%;
    
  
}

 .beam {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;  /* use height:100% instead of aspect-ratio here */

  background-image: url(/img/textures/GCbf1.png);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;

  animation: 5s radarRotate linear infinite;
}

@keyframes radarRotate {
  100% {
    rotate: 1turn;
  }
}

 .dot {
  position: absolute;
  left: calc(var(--x) * 100%);
  top: calc(var(--y) * 100%);
  width: 4px;
  height: 4px;
  margin: -2px;
  border-radius: 50%;
  background: #cf5;
  box-shadow: 0 0 10px 5px rgba(100, 255, 0, 0.5);
  opacity: 0;
}


/* =============================== */
/*   SEEKER CONTAINER STAGE        */
/* =============================== */

#seekerContainer {
  position: relative;
  width: 100%;
  height: 100%;          /* ← adjust later; fixed height keeps things sane */
  margin: 0 auto;
  overflow: hidden;
  background: transparent; /* or a debug color while testing */
}

/* All canvases fill the stage */
#seekerContainer canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* FaceFilter base */
#jeeFaceFilterProcessingCanvas.scr-center {
  z-index: 1;
  pointer-events: none;
}

/* 2D chakra grid */
#chakraGrid {
  z-index: 2;
}

/* 3D halves */
#chakraGridThree,
#chakraGridThreeMirror {
  z-index: 3;
}

#seekerContainer #seeker {
   z-index: 100;          /* higher than radar’s z-index */
}

/* =============================== */
/*   Top MENU CONTAINER            */
/* =============================== */

#btnBackToIndex {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 50;              /* above everything */
  padding: 4px 10px;
  opacity: 0.85;
}

#btnBackToIndex:hover {
  opacity: 1;
}
