/* 혼디모당 방문 팝업 (inc/popup.php, assets/js/popup.js). 크기는 팝업 가로폭 기준(cqw)이라 화면에 맞춰 통째로 줄고 늘어납니다 */
.hp-root { position:fixed; inset:0; z-index:9000; display:flex; align-items:center; justify-content:center; opacity:0; transition:opacity .25s ease; font-family:'Pretendard','Noto Sans KR','Malgun Gothic',sans-serif; }
.hp-root[hidden], .hp-root [hidden] { display:none !important; }   /* 사이트 공통 img{display:block} 이 hidden 을 이기지 못하게 */
.hp-root.on { opacity:1; }
.hp-back { position:absolute; inset:0; background:rgba(6,8,18,.62); }
.hp-box { position:relative; container-type:inline-size; width:min(940px, 94vw, calc((100vh - 28px) * 1.356)); aspect-ratio:1345 / 992; transform:translateY(14px) scale(.97); transition:transform .3s cubic-bezier(.2,.8,.2,1); }
.hp-root.on .hp-box { transform:none; }
.hp-frame { position:absolute; inset:0; width:100%; height:100%; z-index:3; pointer-events:none; user-select:none; -webkit-user-drag:none; }
.hp-title { display:none; }

/* 틀 안쪽(구멍)에 들어가는 내용: 왼쪽 탭 2칸 + 오른쪽 이벤트 화면 */
.hp-body { position:absolute; z-index:1; left:2.53%; top:13.61%; width:94.94%; height:77.92%; display:grid; grid-template-columns:21.4% 1fr; background:#07112b; overflow:hidden; border-radius:2.6cqw; }
.hp-tabs { display:grid; grid-template-rows:1fr 1fr; gap:1.1cqw; padding:.9cqw .5cqw .9cqw .9cqw; }
.hp-tab { position:relative; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:1.3cqw; padding:0 1cqw; min-width:0; border:.26cqw solid #ffc21a; border-radius:3.1cqw; cursor:pointer; font:inherit; transition:transform .18s ease, box-shadow .18s ease, background .18s ease, filter .18s ease; background:radial-gradient(ellipse at 50% 30%, #fff8ea 0%, #fdeacb 100%); color:#2b1408; box-shadow:0 0 1.1cqw rgba(255,190,0,.55), inset 0 0 1.8cqw rgba(255,196,60,.45); }
.hp-tab.on { background:radial-gradient(ellipse at 50% 20%, #0f2556 0%, #07163a 55%, #040d26 100%); color:#fff; box-shadow:0 0 1.3cqw rgba(255,190,0,.8), inset 0 0 2.2cqw rgba(255,180,0,.4); }
.hp-tab:hover { transform:translateY(-.35cqw) scale(1.03); box-shadow:0 0 1.9cqw rgba(255,200,40,.95), inset 0 0 2.2cqw rgba(255,196,60,.55); filter:brightness(1.05); }
.hp-tab:focus-visible { outline:.3cqw solid #fff; outline-offset:.2cqw; }
.hp-tab:active { transform:scale(.99); }
.hp-rib { width:15.5cqw; height:auto; flex:none; overflow:visible; }
.hp-lab { font-size:2.25cqw; font-weight:800; line-height:1.25; text-align:center; word-break:keep-all; }
.hp-chev { position:absolute; right:1.1cqw; top:63%; width:1.5cqw; height:1.5cqw; border-top:.3cqw solid currentColor; border-right:.3cqw solid currentColor; transform:rotate(45deg); opacity:.9; }
.hp-tab.on .hp-chev { color:#ffd54a; }

.hp-panels { position:relative; min-width:0; overflow:hidden; background:#07112b; }
.hp-panel { display:none; height:100%; width:100%; align-items:center; justify-content:center; }
.hp-panel.on { display:flex; }
.hp-art { position:relative; height:100%; aspect-ratio:1448 / 1086; flex:none; }
.hp-main { display:block; width:100%; height:100%; user-select:none; -webkit-user-drag:none; }
.hp-stamp { color:transparent; font-size:0; position:absolute; transform:translate(-50%,-50%) rotate(-16deg) scale(1,1.22); height:auto; pointer-events:none; opacity:0; filter:drop-shadow(0 0 .22cqw rgba(255,255,255,.85)); animation:hpstamp .55s cubic-bezier(.2,1.5,.4,1) both; }
@keyframes hpstamp { 0% { opacity:0; transform:translate(-50%,-50%) rotate(-34deg) scale(2.6,3); } 100% { opacity:1; transform:translate(-50%,-50%) rotate(-16deg) scale(1,1.22); } }
.hp-band { position:absolute; display:block; pointer-events:none; user-select:none; color:transparent; font-size:0; }
.hp-sold { color:transparent; font-size:0; position:absolute; display:none; left:47%; top:50%; width:62%; height:auto; z-index:3; pointer-events:none; transform:translate(-50%,-50%) rotate(-12deg); filter:drop-shadow(0 0 .3cqw rgba(255,255,255,.7)); }
.hp-art.is-sold .hp-sold { display:block; animation:hpsold .6s cubic-bezier(.2,1.4,.4,1) both; }
@keyframes hpsold { 0% { opacity:0; transform:translate(-50%,-50%) rotate(-30deg) scale(2.2); } 100% { opacity:1; transform:translate(-50%,-50%) rotate(-12deg) scale(1); } }
.hp-art.is-sold .hp-main, .hp-art.is-sold .hp-band { filter:grayscale(.6) brightness(.6); }
.hp-art.is-sold .hp-go { pointer-events:none; cursor:default; filter:grayscale(1) opacity(.4); }.hp-go { z-index:2; position:absolute; left:68.1%; top:83.9%; width:44.8%; transform:translate(-50%,-50%); display:block; line-height:0; transition:transform .18s ease, filter .18s ease; border-radius:999px; }
.hp-go img { width:100%; height:auto; display:block; }
.hp-go:hover { transform:translate(-50%,-50%) scale(1.07); filter:brightness(1.1) drop-shadow(0 0 1cqw rgba(255,205,60,.9)); }
.hp-go:focus-visible { outline:.3cqw solid #fff; outline-offset:.3cqw; }
.hp-go:active { transform:translate(-50%,-50%) scale(1.02); }

/* 아래 막대: 틀 그림에 그려진 체크박스·닫기 위에 눌리는 영역을 겹침 */
.hp-skip { position:absolute; z-index:4; left:4.98%; top:93.15%; width:17.84%; height:4.44%; cursor:pointer; display:block; }
.hp-skip input { position:absolute; opacity:0; width:100%; height:100%; margin:0; cursor:pointer; }
.hp-chk { position:absolute; left:1.7%; top:16%; width:12%; height:66%; border-radius:.5cqw; pointer-events:none; }
.hp-skip input:checked + .hp-chk::after { content:""; position:absolute; inset:8%; background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12.5l5 5L20 6.5' fill='none' stroke='%23ffd54a' stroke-width='3.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; }
.hp-skip input:focus-visible + .hp-chk { outline:.25cqw solid #ffd54a; outline-offset:.2cqw; }
.hp-skip:hover .hp-chk { box-shadow:0 0 1cqw rgba(255,210,90,.9); }
.hp-close { position:absolute; z-index:4; left:84.69%; top:93.15%; width:11.6%; height:4.44%; padding:0; border:0; border-radius:999px; background:transparent; cursor:pointer; transition:background .15s ease, box-shadow .15s ease; }
.hp-close:hover { background:rgba(255,222,120,.34); box-shadow:0 0 0 .22cqw #ffe27a, 0 0 2.6cqw rgba(255,200,40,1), inset 0 0 1.4cqw rgba(255,235,150,.55); transform:scale(1.07); }
.hp-close:focus-visible { outline:.25cqw solid #ffd54a; }
.hp-skiptxt, .hp-closetxt { position:absolute; width:1px; height:1px; margin:-1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }

/* 높이가 낮은 화면 + 좁은 화면(휴대폰·작은 태블릿): 틀 그림 대신 코드로 만든 테두리, 탭은 위쪽에 가로 2칸 */
@media (max-width:760px) {
  .hp-box { width:min(94vw, 480px); aspect-ratio:auto; max-height:calc(100vh - 20px); overflow-y:auto; padding:3cqw 2.6cqw 2.4cqw; background:linear-gradient(180deg,#0c1d46 0%,#06102b 60%,#040a1f 100%); border:.55cqw solid #e0aa2c; border-radius:5.4cqw; box-shadow:0 0 5cqw rgba(255,190,0,.35), inset 0 0 6cqw rgba(255,180,0,.12); overscroll-behavior:contain; }
  .hp-frame { display:none; }
  .hp-title { display:block; text-align:center; padding:.6cqw 0 3cqw; }
  .hp-title b { display:block; font-size:5.7cqw; font-weight:900; letter-spacing:-.01em; background:linear-gradient(180deg,#fff0b0,#f7b928 80%); -webkit-background-clip:text; background-clip:text; color:transparent; }
  .hp-title small { display:block; margin-top:.8cqw; font-size:2.7cqw; letter-spacing:.32em; color:#e9d9a4; }
  .hp-body { position:static; display:block; width:auto; height:auto; background:transparent; border-radius:0; overflow:visible; }
  .hp-tabs { grid-template-rows:none; grid-template-columns:1fr 1fr; gap:2.4cqw; padding:.8cqw .8cqw 3.2cqw; }
  .hp-tab { flex-direction:column; gap:.8cqw; padding:1.8cqw 1cqw; border-width:.5cqw; border-radius:3.6cqw; }
  .hp-rib { width:24cqw; }
  .hp-lab { font-size:3.5cqw; }
  .hp-chev { display:none; }
  .hp-panels { border-radius:3cqw; background:#07112b; }
  .hp-panel { height:auto; }
  .hp-art { width:100%; height:auto; }
  .hp-main { height:auto; }
  .hp-foot { display:flex; align-items:center; justify-content:space-between; padding-top:2.8cqw; }
  .hp-skip { position:static; width:auto; height:auto; display:flex; align-items:center; gap:2.2cqw; color:#f5e7bf; font-size:3.6cqw; }
  .hp-skip input { position:absolute; width:5.2cqw; height:5.2cqw; }
  .hp-chk { position:relative; left:auto; top:auto; width:5.2cqw; height:5.2cqw; flex:none; border:.45cqw solid #e6b43a; border-radius:1.1cqw; background:rgba(255,255,255,.04); }
  .hp-skiptxt, .hp-closetxt { position:static; width:auto; height:auto; margin:0; overflow:visible; clip:auto; white-space:nowrap; }
  .hp-close { position:static; width:auto; height:auto; padding:2cqw 5cqw; border:.45cqw solid #e6b43a; border-radius:999px; color:#fff1c8; font-size:3.7cqw; font-weight:800; font-family:inherit; }
  .hp-go:hover { transform:translate(-50%,-50%) scale(1.04); }
}
@media (prefers-reduced-motion:reduce) { .hp-root, .hp-box, .hp-tab, .hp-go, .hp-stamp { transition:none; animation:none; opacity:1; } .hp-stamp { opacity:1; } }
@media print { .hp-root { display:none !important; } }
