/* ==========================================================================
   LANYARD CARD STAGE & PHYSICS STYLING
   ========================================================================== */

.stage {
  position: relative;
  width: 100%;
  max-width: 420px;
  height: 800px;
  margin: 0 auto;
  perspective: 1400px;
  perspective-origin: 50% 0%;
  touch-action: none;
  overflow: visible;
}

svg.lanyard-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  z-index: 3;
  pointer-events: none;
}

/* Draggable ID Card */
.card {
  position: absolute;
  top: 0;
  left: 0;
  width: 300px;
  height: 350px;
  border-radius: 18px;
  cursor: grab;
  z-index: 10;
  will-change: transform;
  transform-style: preserve-3d;
  user-select: none;
  touch-action: none;
}

.card.dragging {
  cursor: grabbing;
}

.card-svg {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 18px;
  object-fit: contain;
  -webkit-user-drag: none;
  filter: drop-shadow(0 20px 32px rgba(0, 0, 0, 0.28)) drop-shadow(0 6px 12px rgba(0, 0, 0, 0.18));
}

/* Punch Hole */
.punch-hole {
  position: absolute;
  top: 14px;
  left: 50%;
  width: 34px;
  height: 9px;
  margin-left: -17px;
  border-radius: 6px;
  background: #050505;
  box-shadow: inset 0 2px 3px rgba(0, 0, 0, 0.8), 0 1px 0 rgba(255, 255, 255, 0.08);
  z-index: 4;
}

/* Connector Metal Clip */
.connector {
  position: absolute;
  top: -34px;
  left: 50%;
  width: 26px;
  height: 44px;
  margin-left: -13px;
  z-index: 9;
  pointer-events: none;
}

.connector svg {
  width: 100%;
  height: 100%;
  display: block;
}

.lanyard-hint {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  z-index: 2;
  pointer-events: none;
  user-select: none;
  display: flex;
  align-items: center;
  gap: 6px;
}

@media (max-width: 480px) {
  .stage {
    height: 420px;
  }

  .card {
    width: 220px;
    height: 330px;
  }
}