html, body {
  margin: 0;
  padding: 0;
  width: 100vw;
  height: 100vh;
  background: #000;
  overflow: hidden;
}

#camera {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: 1;
}

/* 기존 UI 버튼 그대로 유지 */
.icon-btn {
  position: fixed;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  border: 4px solid rgba(255,255,255,0.9);
  background: rgba(0,0,0,0.45);
  color: #fff;
  font-size: 46px;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999; /* 귀신보다 위 */
}

#backBtn { top: 25px; left: 25px; }
#refreshBtn { top: 25px; left: 150px; }
#switchBtn { top: 25px; right: 25px; }

#recBtn {
  position: fixed;
  bottom: 45px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 110px;
  border-radius: 50%;
  border: 8px solid #fff;
  background: rgba(255,0,0,0.65);
  z-index: 9999; /* 귀신보다 위 */
}

#recBtn.active {
  border-radius: 20px;
  background: rgba(255,50,50,0.85);
  width: 120px;
  height: 120px;
  border-width: 10px;
}

/* =============================
      BUTTERFLY
============================= */
#butterfly {
  position: fixed;
  top: 40%;
  left: 20%;
  width: 150px;
  opacity: 0;
  display: none;
  pointer-events: none;
  z-index: 5; /* UI 가리지 않음 */
}

.butterfly-show {
  opacity: 1 !important;
  display: block !important;
}

.butterfly-hide {
  opacity: 0 !important;
  display: none !important;
}

#butterfly img {
  width: 100%;
  animation: fly 3s infinite ease-in-out;
}

@keyframes fly {
  0% { transform: translate(0,0); }
  50% { transform: translate(40px,-30px); }
  100% { transform: translate(0,0); }
}

/* =============================
      GHOST
============================= */#ghostJump {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  display: none;
  opacity: 0;
  pointer-events: none;
  z-index: 2000;
}

.ghost-show img {
  animation: ghostPop 0.08s ease-out forwards;
}

#ghostJump img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scale(0.05);
  opacity: 0.1;
}

@keyframes ghostPop {
  0% {
    transform: scale(0.05);
    opacity: 0.2;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}
