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;
}

/* 공통 아이콘 버튼 (뒤로, 새로고침, 전환) */
.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: 20;
  cursor: pointer;
  transition: 0.2s;
  backdrop-filter: blur(10px);
  pointer-events: auto;
}

.icon-btn:active,
.icon-btn.active {
  background: rgba(255,255,255,0.95);
  color: #000;
  transform: scale(0.88);
}

/* 위치 */
#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);
  transition: all 0.25s ease;
  z-index: 20;
}

/* 버튼 활성화(녹화 중 → 네모) */
#recBtn.active {
  border-radius: 20px;                 /* 네모 */
  background: rgba(255, 50, 50, 0.85); /* 조금 더 강한 빨강 */
  width: 120px;
  height: 120px;
  border-width: 10px;
  transform: translateX(-50%) scale(0.9); /* 살짝 눌린 느낌 */
}


/* Three.js 캔버스는 클릭 막지 않게 */
canvas {
  position: fixed !important;
  top: 0;
  left: 0;
  width: 100vw !important;
  height: 100vh !important;

  pointer-events: none !important;
}
#camera {
    z-index: 1 !important;
}
canvas {
    z-index: 100 !important;
}

