@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css');
#requestingCameraPermissions {
  display: none !important;
  /* 또는 완전히 안 보이게 하려면 */
  opacity: 0 !important;
  visibility: hidden !important;
}

#requestingCameraIcon {
  display: none !important;
}
/*
*, *::before, *::after {
  box-sizing: border-box; margin: 0; padding: 0; font-family: "Pretendard Variable", Pretendard, sans-serif;
}
*/
#container {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%; min-height: 100vh;
  background-color: #edf6f5; z-index: 999999; pointer-events: auto; overflow-y: auto;
  -webkit-overflow-scrolling: touch; display: flex; justify-content: center; align-items: flex-start;
  box-sizing: border-box; transition: opacity 0.4s ease, visibility 0.4s ease;
}


#start_area {
  width: 100%; max-width: 450px; text-align: center; background: #ffffff;
  padding: 70px 25px; border-radius: 20px; box-shadow: 0 10px 30px rgba(65, 156, 146, 0.06);
  border: 1px solid #d3eae7; margin-bottom: 20px;
  max-height: 100vh; /* 화면 높이의 85% 이상 길어지지 않도록 제한 */
  overflow-y: auto; /* 박스 내부에서 상하 스크롤 허용 */
}

.main-guide-img { margin-bottom: 15px; display: inline-block; height: auto; max-width: 100%; }
.guide-text { display: none; color: #245752; font-weight: 700; font-size: 15px; line-height: 1.6; margin-bottom: 25px; word-break: keep-all; }
.photozone-container { display: flex; flex-direction: column; gap: 20px; margin-top: 5px; }

.photozone-card {
  background: #fafdfd; border: 1px solid #e1f0ee; border-radius: 16px; padding: 20px;
  display: flex; flex-direction: column; align-items: center; transition: transform 0.2s ease, border-color 0.2s ease;
}
.photozone-card:active { transform: scale(0.98); border-color: #419c92; }
.photozone-card img { width: 80%; height: auto; margin-bottom: 15px; border-radius: 8px; }
.photozone-title { font-size: 16px; font-weight: 700; color: #35877e; margin-bottom: 12px; }

.start-zone-btn {
  width: 100%; max-width: 200px; height: 44px; background: linear-gradient(to right, rgba(44,62,80,1) 0%, rgba(28,40,51,0.8) 50%, rgba(11,12,16,1) 100%);
  color: #ffffff; border: none; border-radius: 22px; font-size: 1.2rem; font-weight: 700;
  cursor: pointer; box-shadow: 0 4px 10px rgba(60, 168, 158, 0.2); transition: opacity 0.2s;
}
.start-zone-btn:hover { opacity: 0.95; }

/* === 8th Wall 커스텀 UI === */
/* xrextras-capture-button { bottom: 120px !important; }   
#recorder:not(.hidden) { bottom: 3rem !important; } */ 
#recorder.hidden { display: none !important; }

#custom-ui-layer { position: absolute; top: 0; left: 0; width: 100%; height: 82%; z-index: 1000001 !important; pointer-events: auto; }
.hidden { display: none !important; }
/*.screen { position: relative; width: 100%; height: 98%; background: #ffff; display: flex; flex-direction: column; } */
.media-container { flex: 1; display: flex; justify-content: center; align-items: center;}
.media-content {width: 95%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 16px; box-shadow: 0 8px 20px rgba(0, 0, 0, .25); }
.info-overlay { position: absolute; bottom: 20px; left: 20px; color: white; text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8); }
.info-overlay h3 { margin: 0; font-size: 1.5rem; }
.info-overlay p { margin: 5px 0 0 0; font-size: 1rem; opacity: 0.9; }

.action-btn, .cancel-btn { 
  flex: 1; padding: 15px; font-size: 1.2rem; font-weight: bold; color: white; 
  border: none; /* 추가: 테두리 확실히 제거 */
  border-radius: 8px; cursor: pointer; 
}
.action-btn { background-color: #0056b3; }
.cancel-btn { background-color: #0056b3; }

.btn-cancel { 
  color: #3D4759; font-size: 14.5px; padding: 13px 10px; border-radius: 13px; 
  background: #EEF1F6; 
  border: none; /* 추가 */
}
.btm-button {
  display: block; width: 100%; text-align: center; padding: 16px 18px; 
  border-radius: 15px; font-weight: 800; font-size: 1.1rem; 
  letter-spacing: -.03em; transition: transform .12s, filter .18s;
  border: none; /* 추가 */
}

.bottom-action { padding: 0px 18px 18px; display: grid; gap: 9px; }

.modal { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.6); display: flex; justify-content: center; align-items: center; z-index: 1000; }
.modal-content { position: relative; background-image: url('../img/popup-std-1.png'); background-size: cover; background-position: center; background-repeat: no-repeat; width: 90%; max-width: 340px; min-height: 300px; border-radius: 12px; padding: 25px 20px; text-align: center; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3); border: 3px solid #3d6353; overflow: hidden; }
.modal-content p { font-size: 1.1rem; line-height: 1.7; margin-bottom: 25px; color: #333; position: absolute; top: 50%; left: 50%; width: 80%; transform: translate(-50%, -95%); }
.share-text { font-size: 0.95rem !important; word-break: keep-all; }
.modal-buttons { display: flex; gap: 10px; position: absolute; top: 50%; left: 50%; width: 75%; transform: translate(-50%, 20%); }
.modal-buttons button { flex: 1; padding: 12px; font-size: 1rem; font-weight: bold; border: none; border-radius: 6px; cursor: pointer; }
.btn-cancel { color: #3D4759; font-size: 14.5px; padding: 13px 10px; border-radius: 13px; background: #EEF1F6;}
.btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 9px;}
#btn-share-sns {color: #4A0B45; padding: 13px 10px; border-radius: 13px;}

@media (max-width: 480px) {
  .btn-row {
    flex-direction: column; /* 작은 화면에서는 세로 배치 */
  }
  .btn-row .btm-button {
    width: 100%;
  }
}
/*.btn-primary { background: #d46a6a; color: white; } */
.btn-secondary { background: #3b3b3b; color: white; }
.modal-close { width: 28px; height: 28px; position: absolute; top: 15px; right: 15px; background-color: #3B2A1E; color: white; border: none; border-radius: 50%; font-size: 20px; font-weight: bold; cursor: pointer; display: flex; justify-content: center; align-items: center; z-index: 10; }

.input-container { width: 100%; padding: 10px; }
.input-container input { position: fixed; top: 67%; left: 2%; width: 90%; padding: 12px 8px; font-size: 16px; border: 1px solid #ddd; border-radius: 8px; outline: none; transition: all 0.3s ease; box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05); }
.input-container input:focus { border-color: #4a90e2; box-shadow: 0 0 6px rgba(74, 144, 226, 0.4); }
.input-container input::placeholder { color: #aaa; font-size: 15px; }

/* === AR 공통 뒤로가기 및 정보 버튼 === */
.arNavi-back-btn, .arNavi-info-btn { position: fixed; top: 25px; z-index: 1000001 !important; background: none; border: none; padding: 0; cursor: pointer; pointer-events: auto !important; }
.arNavi-back-btn { left: 20px; }
.arNavi-info-btn { right: 20px; }
.arNavi-back-btn img, .arNavi-info-btn img { width: 45px; height: 45px; display: block; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5)); }

/* === 팝업 공통 === */
.arNavi-popup-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 99999 !important;
    background-color: rgba(0, 0, 0, 0.6) !important;
  }
.arNavi-popup-box { 
  position: relative; width: 75vw; height: 68vh; max-width: 90vw; margin: 0 auto; 
  background-color: #fff;
  background-image: none;
  background-attachment: fixed;
  padding: 0px 20px 80px 20px; display: flex; flex-direction: column; align-items: center; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); border-radius: 15px; pointer-events: auto !important; }
.arNavi-popup-title { margin: 20px 0 10px 0; color: #3b5f5f; font-size: 20px; font-weight: 700; text-align: center; }
.arNavi-content-img { width: 97%; border-radius: 8px; box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1); margin-top: 1vh; margin-bottom: 1vh; max-height: 180px; object-fit: contain; }
.arNavi-info-list { list-style-type: disc; padding-left: 1rem; margin: 0; color: #222; font-size: 16px; line-height: 1.5; width: 100%; box-sizing: border-box; }
.arNavi-info-list li { margin-bottom: 8px; word-break: keep-all; }

.arNavi-btn-transparent { position: absolute; background: transparent; border: none; cursor: pointer; outline: none; }
.arNavi-close-btn { color: white; top: 2rem; right: 15px; width: 35px; height: 35px; border-radius: 50%; font-size: 26px; font-weight: bold; background-color: #3B2A1E; display: flex; align-items: center; justify-content: center; padding-bottom: 4px; transition: opacity 0.2s; }
.arNavi-ok-btn {  background: linear-gradient(to right, rgba(44,62,80,1) 0%, rgba(28,40,51,0.8) 50%, rgba(11,12,16,1) 100%); color: white; bottom: 1rem; left: 50%; transform: translateX(-50%); width: 200px; height: 45px; border-radius: 25px; font-size: 1.2rem; font-weight: 700; cursor: pointer; transition: opacity 0.2s;}

/* 오디오 및 리셋 버튼 공통 스타일 */
#audio-toggle-btn
{
  position: fixed;
  z-index: 99998 !important; /* 화면 최상단으로 끌어올림 */
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  background-color: #ffffff;
  font-size: 24px;
  cursor: pointer;
  
  /* 자바스크립트에서 flex로 켜기 전까지는 숨겨둠 */
  display: none; 
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* 각각의 버튼 위치 지정 */
#audio-toggle-btn {
  bottom: 10rem;
  left: 1.5rem;
}
#ar-reset-btn
{
  position: fixed;
  z-index: 99998 !important; /* 화면 최상단으로 끌어올림 */
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  background-color: #ffffff;
  font-size: 24px;
  cursor: pointer;
  
  /* 자바스크립트에서 flex로 켜기 전까지는 숨겨둠 */
  display: none; 
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* 각각의 버튼 위치 지정 */
#ar-reset-btn {
  bottom: 3rem;
  left: 1.5rem;
}
#reset-tooltip {
    position: fixed;
    /* 버튼 위치에 따라 bottom과 left 수치를 살짝씩 조절해 주세요 */
    bottom: 7rem; 
    left: 1.8rem;   
    background: white;
    color: black;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 1rem;
    font-weight: bold;
    pointer-events: none; /* 터치 방해 금지 */
    z-index: 100;
    animation: bounce 1.5s infinite;
  }
  
  /* 말풍선 아래쪽 뾰족한 꼬리 */
  #reset-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 20px; 
    border-width: 6px;
    border-style: solid;
    border-color: white transparent transparent transparent;
  }

  /* 둥둥 애니메이션 */
  @keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
  }