/* Lanyard Scene Container - Completely Transparent & Seamless (No Border / No Box) */
#profile-header {
  position: relative;
  z-index: 30;
  overflow: visible !important;
  pointer-events: none;
}

.lanyard-scene-wrapper {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: visible !important;
  pointer-events: none;
}

/* Metal Wall Mount Pin aligned with the strap anchor (7% from top) */
.lanyard-top-pin {
  position: absolute;
  top: 7%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffffff 0%, #d2d6df 35%, #7e8391 75%, #3e4149 100%);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6), inset 0 1px 2px rgba(255, 255, 255, 0.9);
  z-index: 35;
  pointer-events: none;
}

.lanyard-top-pin::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #14171f;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.9);
}

/* Full-bleed WebGL Stage so dragging the lanyard never clips at any frame border */
.lanyard-wrapper {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: max(840px, 100vh);
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  overflow: visible !important;
  pointer-events: none;
  z-index: 30;
}

.lanyard {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: visible !important;
  background: transparent !important;
  pointer-events: none;
}

.lanyard-canvas {
  display: block;
  width: 100%;
  height: 100%;
  background: transparent !important;
  pointer-events: none;
}

/* Caption under the card like Image 2 */
.lanyard-caption {
  margin-top: -20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-body, #b6cbce);
  text-align: center;
  pointer-events: none;
  opacity: 0.85;
  letter-spacing: 0.3px;
  z-index: 5;
}

@media (min-width: 768px) {
  #profile-header {
    position: relative;
    height: clamp(500px, calc(100vh - 90px), 740px);
  }

  /* Extends full from the very top of the window down */
  .lanyard-scene-wrapper {
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    max-width: 100%;
  }

  .lanyard-wrapper {
    left: -10vw;
    transform: none;
    width: 100vw;
    height: max(100%, 100vh);
  }

  .lanyard-top-pin {
    top: 7%;
  }

  .lanyard-caption {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 0;
    white-space: nowrap;
  }
}

@media (max-width: 767px) {
  .lanyard-scene-wrapper {
    max-width: 400px;
    height: 360px;
    margin-bottom: 0;
  }
  .lanyard-wrapper {
    top: -15vh;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: max(900px, 115vh);
  }
}

@media (max-width: 480px) {
  .lanyard-scene-wrapper {
    height: 345px;
  }
  .lanyard-caption {
    font-size: 13px;
  }
}
