/* 3D 투어 베타 배너 장식 (2026-11-12, W2 사이트 노출)
   includes/_fx_tour3d.php 의 마크업 — 홈 메인 슬라이드(home_slides.auto_key 'deco:tour3d')의 사진(.bwh-slide__media) 안, 글자 그늘 아래.
   _hero_slides.php bwh_head() 가 이 장식이 있는 슬라이드가 있을 때만 이 파일을 붙인다. 브랜드 주황(#FF5A1F)은 위치 점에만. */

#bw-hero .bwfx3d { position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; }

/* 바다 위 원근 격자 — 오른쪽(스카이라인 아래 물) 쪽, 위·왼쪽으로 흐려짐 */
#bw-hero .bwfx3d__grid {
  position: absolute; right: 0; bottom: 0; width: 66%; height: 40%;
  fill: none; stroke: #9BE7FF; stroke-width: 1; opacity: .26;
  -webkit-mask-image: radial-gradient(110% 120% at 70% 100%, #000 0%, #000 38%, transparent 78%);
          mask-image: radial-gradient(110% 120% at 70% 100%, #000 0%, #000 38%, transparent 78%);
}
#bw-hero .bwfx3d__grid path { vector-effect: non-scaling-stroke; }

/* 화면을 훑는 빛(스캔) — 7초마다 왼쪽→오른쪽 한 번 */
#bw-hero .bwfx3d__scan {
  position: absolute; top: 0; bottom: 0; left: 0; width: 18%;
  background: linear-gradient(90deg, rgba(150, 230, 255, 0) 0%, rgba(150, 230, 255, .14) 55%, rgba(210, 245, 255, .26) 62%, rgba(150, 230, 255, 0) 100%);
  transform: translateX(-110%);
  animation: bwfx3d-scan 7s cubic-bezier(.5, 0, .3, 1) 1.2s infinite;
}
@keyframes bwfx3d-scan { 0% { transform: translateX(-110%); } 55%, 100% { transform: translateX(620%); } }

/* 모서리 틀 — 스카이라인 쪽(오른쪽 절반), 헤더 아래 ~ 사진 출처 줄 위(출처 줄은 막대 + 58px 에서 시작) */
#bw-hero .bwfx3d__frame {
  position: absolute; left: 54%; right: var(--bwh-gut, 24px);
  top: calc(var(--bwh-hdr, 72px) + 14px); bottom: calc(var(--bwh-bar-b, 48px) + 84px);
}
#bw-hero .bwfx3d__frame i { position: absolute; width: 22px; height: 22px; border: 0 solid rgba(255, 255, 255, .62); }
#bw-hero .bwfx3d__frame i:nth-child(1) { left: 0; top: 0; border-left-width: 2px; border-top-width: 2px; border-top-left-radius: 4px; }
#bw-hero .bwfx3d__frame i:nth-child(2) { right: 0; top: 0; border-right-width: 2px; border-top-width: 2px; border-top-right-radius: 4px; }
#bw-hero .bwfx3d__frame i:nth-child(3) { left: 0; bottom: 0; border-left-width: 2px; border-bottom-width: 2px; border-bottom-left-radius: 4px; }
#bw-hero .bwfx3d__frame i:nth-child(4) { right: 0; bottom: 0; border-right-width: 2px; border-bottom-width: 2px; border-bottom-right-radius: 4px; }

/* 위치 점(다른 접속자) — 물가 쪽, 퍼지는 고리 */
#bw-hero .bwfx3d__pin {
  position: absolute; left: var(--x); top: var(--y); width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%;
  background: #FF5A1F; box-shadow: 0 0 0 2px rgba(255, 255, 255, .9), 0 0 14px 2px rgba(255, 90, 31, .85);
}
#bw-hero .bwfx3d__pin::after {
  content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid rgba(255, 150, 105, .95); opacity: 0;
  animation: bwfx3d-ping 2.8s ease-out var(--d, 0s) infinite;
}
@keyframes bwfx3d-ping { 0% { transform: scale(.55); opacity: .95; } 80%, 100% { transform: scale(3.1); opacity: 0; } }

/* 보이지 않는 슬라이드는 멈춤(배터리) */
#bw-hero .bwh-slide:not(.is-active) .bwfx3d__scan,
#bw-hero .bwh-slide:not(.is-active) .bwfx3d__pin::after { animation: none; }

/* 태블릿 이하: 글자가 화면 폭을 거의 다 쓰므로 틀·점은 빼고 격자·빛만 */
@media (max-width: 1023px) {
  #bw-hero .bwfx3d__frame, #bw-hero .bwfx3d__pin { display: none; }
  #bw-hero .bwfx3d__grid { width: 100%; height: 34%; opacity: .2; }
  #bw-hero .bwfx3d__scan { width: 30%; }
}

@media (prefers-reduced-motion: reduce) {
  #bw-hero .bwfx3d__scan { animation: none; transform: translateX(-110%); }
  #bw-hero .bwfx3d__pin::after { animation: none; opacity: .5; transform: scale(1.8); }
}
@media print { #bw-hero .bwfx3d { display: none; } }
