/* HYBE 2025 BTS FESTA 상세 — 관람객 체험형 페이지. 라로슈포제·소원 아트카드 상세 문법 기준.
   색: 현장 사진 표본 기반(공식 브랜드 컬러 아님) — AR 포토존 부스 마젠타 조명 #db3879·붉은 벽 #bf2e37 → 라즈베리 #d81b60(A, 흰 글자 대비 4.6:1),
   보이스 존 파란 부스 #0a0b4b → 인디고 #1f2a80(B), 홀 바닥 보라 조명 #301b6d → 퍼플 #6a1b9a(C) */
:root{--accent:#d81b60;--navy:#1f2a80;--sky:#6a1b9a;--pale:#fbd3e2;--nav-height:66px}
body{background:#fff;color:#111;font-family:'Pretendard Variable',sans-serif}
.bts-page .wrap{width:min(1100px,calc(100% - 80px));margin-inline:auto}
.bts-page img{width:100%;height:auto;display:block}
.bts-page figure{margin:0;min-width:0}
.bts-page [data-view]{display:block;width:100%;padding:0;cursor:zoom-in}
.bts-page strong.k{font-weight:700;color:#111}

/* 상단 */
.bts-page .intro{padding:60px 0 42px}
.project-label{display:inline-block;background:#111;color:#fff;padding:10px 18px;font-size:21px;font-weight:650;margin:0 0 27px;letter-spacing:.01em}
.bts-page h1{font-size:clamp(40px,4.6vw,65px);font-weight:720;line-height:1.18;letter-spacing:-.055em;word-break:keep-all}
.project-place{font-size:18px;line-height:1.75;color:#555;margin-top:24px}
.bts-page .lead{font-size:21px;line-height:1.8;margin-top:22px;word-break:keep-all}
.project-meta{display:grid;grid-template-columns:1fr .6fr 2.1fr;gap:30px;border-top:1px solid #ddd;margin-top:40px;padding-top:26px}
.project-meta dt{font-size:16px;color:#777;margin-bottom:10px}
.project-meta dd{font-size:18px;line-height:1.8;margin:0}

/* 대표 사진 갤러리 */
.bts-page .hero{position:relative;display:block;height:auto;min-height:0;max-height:none;background:#000;padding:0;color:inherit;overflow:hidden}
.hero-slides{width:100%;aspect-ratio:3/2}
.hero-slide img{width:100%;height:auto}
.hero-arrow{position:absolute;top:50%;transform:translateY(-50%);width:52px;height:52px;border-radius:50%;background:#0000004d;border:1px solid #ffffffb3;color:#fff;display:grid;place-items:center;z-index:2;transition:background .2s}
.hero-arrow:hover{background:#00000080}
.hero-arrow svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.5}
.hero-prev{left:22px}.hero-next{right:22px}
.hero-status{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}

/* 공통 섹션 */
.bts-page .section{padding:76px 0;border-bottom:1px solid #ddd}
.bts-page h2{font-size:clamp(30px,3.2vw,43px);line-height:1.3;letter-spacing:-.045em;font-weight:680;margin:0;word-break:keep-all}
.bts-page h3{font-size:26px;line-height:1.4;letter-spacing:-.035em;font-weight:660;word-break:keep-all}
.section-copy{max-width:850px;font-size:20px;line-height:1.85;word-break:keep-all;margin:24px 0 0;color:#444}
.bts-page figcaption{font-size:16px;line-height:1.65;color:#777;margin-top:14px;text-align:center;word-break:keep-all}
.note{font-size:15px;line-height:1.6;color:#777;text-align:center;margin-top:18px;word-break:keep-all}
.contribution{font-size:25px;line-height:1.6;letter-spacing:-.025em;margin-top:44px;font-weight:650;word-break:keep-all}
.sub-block{margin-top:64px;padding-top:36px;border-top:1px solid #e2e2e2}

/* 사진·영상 행: 원본 비율에 비례한 열 너비 → 같은 행의 높이·캡션 시작선 일치 */
.media-row{display:flex;align-items:flex-start;gap:24px;margin-top:38px}
.media-row>figure{flex:var(--r) 1 0;min-width:0}
.media-row+.media-row{margin-top:30px}
.bts-page video{width:100%;height:auto;display:block;background:#05070d}

/* A·B·C 표식 */
.badge{display:inline-grid;place-items:center;flex:none;font-weight:800;line-height:1;color:#fff;background:var(--accent)}
.badge.b{background:var(--navy)}
.badge.c{background:var(--sky)}
.abc{display:flex;align-items:center;gap:16px;margin:0 0 26px}
.abc .badge{width:58px;height:58px;font-size:32px}
.abc span{font-size:19px;font-weight:650;letter-spacing:-.02em}

/* 행사 맥락: 홀 배치 개념도(공식 프로그램 목록 기준, 비례 아님) */
.halls{display:grid;grid-template-columns:1fr 1fr;gap:28px;margin-top:46px}
.hall{border:1.5px solid #111;padding:22px 24px 24px;position:relative}
.hall .eyebrow{display:block;font-size:15px;color:#666;letter-spacing:.08em;font-weight:600}
.hall strong.hname{display:block;font-size:24px;line-height:1.3;letter-spacing:-.03em;font-weight:680;margin-top:6px}
.hall ul{list-style:none;margin:18px 0 0;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:10px 14px}
.hall li{font-size:16px;line-height:1.45;color:#777;border:1px solid #ddd;border-radius:8px;padding:10px 12px;word-break:keep-all}
.hall li.ours{color:#111;border:1.5px solid #111;display:flex;align-items:center;gap:10px;font-weight:650}
.hall li.ours .badge{width:26px;height:26px;border-radius:50%;font-size:14px}
.hall li .sub{display:block;font-size:14px;color:#888;font-weight:400;margin-top:2px}
.hall-note{font-size:15px;color:#777;margin-top:16px;text-align:center;word-break:keep-all}

/* 공간 탑뷰 */
.topview{position:relative;margin-top:38px}
.pin{position:absolute;left:var(--x);top:var(--y);width:0;height:0;z-index:2}
.pin .badge{position:absolute;left:0;top:0;transform:translate(-50%,-50%);width:38px;height:38px;border-radius:50%;font-size:15px;border:2.5px solid #fff;box-shadow:0 2px 8px #0000004d}
.pin em{position:absolute;top:0;left:27px;transform:translateY(-50%);font-style:normal;font-size:15px;font-weight:650;line-height:1;background:#fff;border:1px solid #111;border-radius:999px;padding:7px 13px;white-space:nowrap}
.pin.left em{left:auto;right:27px}
.zone{position:absolute;left:var(--x);top:var(--y);transform:translate(-50%,-50%);font-size:14px;letter-spacing:.1em;color:#8b8b8b;font-weight:650;white-space:nowrap;z-index:1}
.zoom-frame,.topview-zoom,.zoom-cap{display:none}
.space-key{display:grid;grid-template-columns:repeat(3,1fr);gap:28px;margin-top:30px}
.space-key>div{display:flex;gap:14px;align-items:flex-start;border-top:2px solid #111;padding-top:18px}
.space-key .badge{width:42px;height:42px;font-size:23px}
.space-key strong{display:block;font-size:19px;line-height:1.4;letter-spacing:-.025em}
.space-key span{display:block;font-size:16px;line-height:1.6;color:#555;margin-top:4px;word-break:keep-all}
.context-photo{margin-top:46px}

/* 간략 체험 요약(작은 입체 모형) */
.ux-row{display:grid;gap:28px;margin-top:40px}
.ux-row.split{grid-template-columns:calc((100% - 56px)/3*2 + 28px) 1fr;margin-top:46px}
.ux-row.split.rev{grid-template-columns:1fr calc((100% - 56px)/3*2 + 28px)}
.ux-head{display:flex;align-items:center;gap:12px;border-top:2px solid #111;padding-top:16px;font-size:18px;font-weight:650;letter-spacing:-.02em}
.ux-head .badge{width:34px;height:34px;font-size:19px}
.ux-items{display:grid;gap:28px;list-style:none;margin:8px 0 0;padding:0}
.g3 .ux-items{grid-template-columns:repeat(3,1fr)}
.g2 .ux-items{grid-template-columns:repeat(2,1fr)}
.g1 .ux-items{grid-template-columns:1fr}
.ux-items li{text-align:center}
.ux-items img{width:min(100%,300px);margin-inline:auto}
.bubble-row{position:relative;margin-top:4px}
.bubble{display:inline-block;min-width:170px;border:1.5px solid #111;border-radius:999px;padding:10px 22px;font-size:17px;font-weight:650;line-height:1.2;background:#fff;word-break:keep-all}
li:not(:last-child)>.bubble-row::after{content:'';position:absolute;top:50%;right:-28px;width:28px;border-top:2px dotted #111}
li:not(:last-child)>.bubble-row::before{content:'›';position:absolute;top:50%;right:-31px;transform:translateY(-54%);font-size:20px;line-height:1;color:#111;z-index:1}

/* 큰 선화: 장면 하나 + 짧은 동작형 문구를 한 단위로 */
.stages{display:grid;grid-template-columns:repeat(3,1fr);gap:0 28px;list-style:none;padding:0;margin:40px 0 0}
.stages li{text-align:center}
.stages .bubble-row{margin-top:18px}
.stages .bubble{min-width:190px;font-size:18px}
.stages li:not(:last-child)>.bubble-row::after{border-top-style:solid;border-top-width:1.5px;border-color:var(--accent);right:-28px;width:28px;opacity:0}
.stages li:not(:last-child)>.bubble-row::before{content:'→';right:-14px;transform:translate(50%,-54%);color:var(--accent);font-size:23px}
.stages p{font-size:17px;line-height:1.65;color:#555;margin:14px auto 0;max-width:300px;word-break:keep-all}

/* 센서에서 화면까지 */
.signal{margin-top:42px;border-bottom:1px solid #ddd}
.signal-row{display:grid;grid-template-columns:58px 1.15fr 30px 1fr 30px 1.15fr;align-items:center;gap:18px;padding:26px 0;border-top:1px solid #ddd}
.signal-row:first-child{border-top:2px solid #111}
.signal-row .badge{width:46px;height:46px;font-size:25px}
.signal-cell{display:flex;align-items:center;gap:16px;min-width:0}
.signal-cell .icons{display:flex;gap:6px;flex:none;width:118px}
.signal-cell svg{flex:none;width:56px;height:56px}
.signal-cell small{display:block;font-size:14px;color:#777;letter-spacing:.02em;margin-bottom:3px}
.signal-cell strong{display:block;font-size:18px;line-height:1.45;letter-spacing:-.02em;font-weight:650;word-break:keep-all}
.signal-row>i{font-style:normal;color:var(--accent);font-size:22px;text-align:center}
.signal-mid strong{font-weight:600;color:#333}

/* 공식 스케치 영상(YouTube 임베드) + 구간 버튼 */
.embed{position:relative;aspect-ratio:16/9;background:#05070d;margin-top:38px}
.embed iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.chapters{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px;justify-content:center}
.chapters button{display:inline-flex;align-items:center;gap:10px;border:1.5px solid #111;border-radius:999px;background:#fff;padding:8px 18px 8px 8px;font-size:16px;font-weight:600;cursor:pointer;line-height:1.3}
.chapters button .badge{width:28px;height:28px;border-radius:50%;font-size:15px}
.chapters button:hover{background:#f4f4f4}
.embed-fallback{position:absolute;inset:0;display:block;color:#fff;text-decoration:none}
.embed-fallback img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.55}
.embed-fallback span{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:inline-flex;align-items:center;gap:12px;border:1.5px solid #fff;border-radius:999px;padding:12px 24px;font-size:17px;font-weight:650;background:#00000066;white-space:nowrap}
.embed-fallback b{font-size:14px}
.embed-note{font-size:15px;line-height:1.6;color:#777;text-align:center;margin-top:14px;word-break:keep-all}

/* 크레딧 · 이웃 */
.credits{display:grid;grid-template-columns:1fr 2fr;gap:45px}
.credits dl{margin:0}
.credits dl>div{display:grid;grid-template-columns:1.4fr 1fr;gap:24px;padding:18px 0;border-bottom:1px solid #eee;font-size:17px;line-height:1.8}
.credits dl>div:first-child{padding-top:0}
.credits dt{color:#777}.credits dd{margin:0}
.neighbors{display:flex;justify-content:space-between;gap:25px;padding:50px 0 70px;font-size:16px;line-height:2}
.neighbors>a:last-child{text-align:right}
.neighbors strong{font-size:20px}

/* 본문 사진 크게 보기 */
#viewer{width:min(1200px,96vw);max-height:95vh;padding:55px;background:#fff;border:0;margin:auto}
#viewer::backdrop{background:#000d}
#viewer img{width:100%;height:78vh;object-fit:contain}
#viewer button{position:absolute;background:#fff;color:#111;font-size:32px;width:44px;height:44px}
.viewer-close{right:8px;top:5px}.viewer-prev{left:4px;top:50%}.viewer-next{right:4px;top:50%}

@media(max-width:900px){
 .pin em{font-size:14px;padding:6px 10px}
 .signal-row{grid-template-columns:50px 1.2fr 22px .8fr 22px 1.2fr;gap:12px}
 .signal-cell{gap:12px}
 .signal-cell .icons{width:96px;gap:4px}
 .signal-cell svg{width:46px;height:46px}
 .signal-cell strong{font-size:16px}
}
@media(max-width:700px){
 .bts-page .wrap{width:calc(100% - 40px)}
 .bts-page .intro{padding:30px 0}
 .project-label{font-size:17px;margin-bottom:24px}
 .bts-page h1{font-size:36px}
 .project-place{font-size:16px;margin-top:20px}
 .bts-page .lead{font-size:18px}.lead br{display:none}
 .project-meta{grid-template-columns:1.5fr 1fr;gap:24px 16px;margin-top:28px}
 .project-meta>div:last-child{grid-column:1/-1}
 .project-meta dt{font-size:15px}.project-meta dd{font-size:17px}
 .hero-arrow{width:44px;height:44px}.hero-arrow svg{width:20px}
 .hero-prev{left:12px}.hero-next{right:12px}
 .bts-page .section{padding:48px 0}
 .bts-page h2{font-size:30px}.bts-page h3{font-size:23px}
 .section-copy{font-size:18px;line-height:1.8;margin-top:20px}
 .bts-page figcaption{font-size:15px;margin-top:10px}
 .note{font-size:14px}
 .contribution{font-size:21px;margin-top:32px}
 .contribution br{display:none}
 .sub-block{margin-top:44px;padding-top:28px}
 .media-row{flex-direction:column;gap:25px;margin-top:28px}
 .media-row>figure{flex:none;width:100%}
 .media-row+.media-row{margin-top:25px}
 .abc{margin-bottom:20px}.abc .badge{width:48px;height:48px;font-size:27px}.abc span{font-size:17px}
 /* 모바일: 전체 탑뷰(위치 틀만 표시) + 체험 구역 확대 창(핀·이름표) */
 .halls{grid-template-columns:1fr;gap:18px;margin-top:30px}
 .hall{padding:18px 18px 20px}.hall strong.hname{font-size:21px}.hall ul{grid-template-columns:1fr;gap:8px}.hall li{font-size:15px}
 .topview{margin-top:28px;margin-inline:-20px}
 .topview .pin,.topview .zone{display:none}
 .zoom-frame{display:block;position:absolute;border:2px solid var(--accent);border-radius:3px;pointer-events:none}
 .topview-zoom{display:block;position:relative;overflow:hidden;margin:6px -20px 0;background:#fff;border-top:2px solid var(--accent);border-bottom:2px solid var(--accent)}
 .tz-inner{position:absolute;left:0;top:0;width:calc(100% / var(--zw));transform:translate(calc(var(--zx) * -1),calc(var(--zy) * -1))}
 .tz-inner img{width:100%;height:auto}
 .topview-zoom .pin .badge{width:32px;height:32px;font-size:14px;border-width:2px}
 .topview-zoom .pin em{left:23px;font-size:14px;padding:6px 10px}
 .topview-zoom .pin.left em{left:auto;right:23px}
 .topview-zoom .zone{font-size:14px;letter-spacing:.06em}
 .zoom-cap{display:block;font-size:14px;color:#777;text-align:center;margin-top:10px}
 .space-key{grid-template-columns:1fr;gap:16px;margin-top:22px}
 .space-key>div{padding-top:14px}
 .context-photo{margin-top:32px}
 .ux-row,.ux-row.split,.ux-row.split.rev{grid-template-columns:1fr;gap:34px;margin-top:30px}
 .ux-items,.g3 .ux-items,.g2 .ux-items{grid-template-columns:1fr;gap:0}
 .ux-items img{width:min(100%,250px)}
 .ux-items li:not(:last-child)::after,.stages li:not(:last-child)::after{content:'↓';display:block;font-size:21px;line-height:1;color:var(--accent);margin:16px 0 8px}
 .ux-items li:not(:last-child)::after{color:#111;margin:14px 0 2px}
 li:not(:last-child)>.bubble-row::after,li:not(:last-child)>.bubble-row::before,.stages li:not(:last-child)>.bubble-row::before{display:none}
 .stages{grid-template-columns:1fr;gap:0;margin-top:26px}
 .stages img{width:min(100%,330px);margin-inline:auto}
 .stages .bubble-row{margin-top:10px}
 .stages p{font-size:16px;margin-top:10px}
 .signal{margin-top:28px}
 .signal-row{grid-template-columns:44px 1fr;gap:10px 14px;padding:22px 0;align-items:start}
 .signal-row .badge{width:40px;height:40px;font-size:22px;grid-row:1/6}
 .signal-row>i{grid-column:2;text-align:left;padding-left:14px;font-size:0;line-height:1}
 .signal-row>i::before{content:'↓';font-size:20px;color:var(--accent)}
 .signal-cell{grid-column:2}
 .signal-mid{padding-left:108px}
 .credits{grid-template-columns:1fr;gap:22px}
 .credits dl>div{font-size:15px;gap:20px}
 .neighbors{padding:36px 0 90px;flex-direction:column}
 .neighbors>a:last-child{text-align:left}
 .neighbors strong{font-size:18px}
 #viewer{padding:45px 35px}#viewer img{height:65vh}
}
@media(prefers-reduced-motion:reduce){.hero-arrow{transition:none}}
