/* ===== HUD Styles styles ===== */


  /* Shared styles for both circles */
  #hudElement, #budElement {
    position: fixed;
    bottom: 6.2%;
    width: 15vw;
    height: 15vw;
    border-radius: 50%;
    z-index: 9999;
    opacity: 0.85;
    touch-action: none;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow:
      0 8px 32px rgba(0, 0, 0, 0.4),
      inset 0 -4px 12px rgba(0, 0, 0, 0.3),
      inset 0 4px 12px rgba(255, 255, 255, 0.2);
    border: 3px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(4px);
    cursor: pointer;
	display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* ✅ Clip canvas to circle */
  }

  #hudElement:hover, #budElement:hover {
    opacity: 1;
    transform: scale(1.05);
    box-shadow:
      0 12px 48px rgba(0, 0, 0, 0.5),
      inset 0 -6px 16px rgba(0, 0, 0, 0.4),
      inset 0 6px 16px rgba(255, 255, 255, 0.3);
  }

  #hudElement:active, #budElement:active {
    transform: scale(0.95);
  }

  /* Red circle (bottom right) - HUD */
  #hudElement {
    right: 2%;
    background: linear-gradient(135deg,
      rgba(239, 68, 68, 0.9) 0%,
      rgba(220, 38, 38, 0.95) 50%,
      rgba(185, 28, 28, 1) 100%);
    animation: hudPulse 3s ease-in-out infinite;
  }

  @keyframes hudPulse {
    0%, 100% {
      box-shadow:
        0 8px 32px rgba(239, 68, 68, 0.4),
        inset 0 -4px 12px rgba(0, 0, 0, 0.3),
        inset 0 4px 12px rgba(255, 255, 255, 0.2);
    }
    50% {
      box-shadow:
        0 8px 40px rgba(239, 68, 68, 0.6),
        0 0 60px rgba(239, 68, 68, 0.3),
        inset 0 -4px 12px rgba(0, 0, 0, 0.3),
        inset 0 4px 12px rgba(255, 255, 255, 0.2);
    }
  }

  /* Blue circle (bottom left) - BUD */
  #budElement {
    left: 2%;
    background: linear-gradient(135deg,
      rgba(59, 130, 246, 0.9) 0%,
      rgba(37, 99, 235, 0.95) 50%,
      rgba(29, 78, 216, 1) 100%);
    animation: budPulse 3s ease-in-out infinite 0.5s;
  }

  @keyframes budPulse {
    0%, 100% {
      box-shadow:
        0 8px 32px rgba(59, 130, 246, 0.4),
        inset 0 -4px 12px rgba(0, 0, 0, 0.3),
        inset 0 4px 12px rgba(255, 255, 255, 0.2);
    }
    50% {
      box-shadow:
        0 8px 40px rgba(59, 130, 246, 0.6),
        0 0 60px rgba(59, 130, 246, 0.3),
        inset 0 -4px 12px rgba(0, 0, 0, 0.3),
        inset 0 4px 12px rgba(255, 255, 255, 0.2);
    }
  }

 #hudElement.closed, #budElement.closed {
    display: none;
	opacity: 0;
    transform: scale(0);
  }

 #hudElement.open, #budElement.open {
    display: flex;
	opacity: 0.85;
    transform: scale(1);
  }

/* Directional morphing effects */
#hudElement.morphing-up, #budElement.morphing-up {
  border-radius: 50% 50% 40% 40%;
  transform: translateY(-5px) scale(1.02);
}

#hudElement.morphing-down, #budElement.morphing-down {
  border-radius: 40% 40% 50% 50%;
  transform: translateY(5px) scale(1.02);
}

#hudElement.morphing-left, #budElement.morphing-left {
  border-radius: 40% 50% 50% 40%;
  transform: translateX(-5px) scale(1.02);
}

#hudElement.morphing-right, #budElement.morphing-right {
  border-radius: 50% 40% 40% 50%;
  transform: translateX(5px) scale(1.02);
}

#hudElement canvas,
#budElement canvas {
  width: 100% !important;
  height: 100% !important;
  border-radius: 50%; /* ✅ Match parent circle */
}