/* V143.58 팝업 여러 개 한꺼번에 */
#homepagePopupLayer.hmp-on.hmp-pc{display:block;padding:0;background:transparent;backdrop-filter:none;-webkit-backdrop-filter:none;pointer-events:none}
#homepagePopupLayer.hmp-pc .hmp-slot{position:absolute;left:24px;top:100px;width:max-content;max-width:calc(100vw - 16px);pointer-events:auto;opacity:0;transition:opacity .18s ease}
#homepagePopupLayer.hmp-pc .hmp-slot.hmp-ready{opacity:1}
#homepagePopupLayer.hmp-pc .hmp-slot .home-popup-card{width:min(var(--popup-width,520px),calc(100vw - 16px));max-height:calc(100dvh - 16px)}
#homepagePopupLayer.hmp-on.hmp-mobile{display:flex;align-items:center;justify-content:center}
#homepagePopupLayer.hmp-mobile .hmp-slot{position:relative;width:100%;display:flex;flex-direction:column;align-items:center}
#homepagePopupLayer.hmp-mobile .hmp-slot:not(:first-child){display:none}
#homepagePopupLayer.hmp-mobile .hmp-slot .home-popup-card{width:min(var(--popup-width,520px),100%)}
.hmp-count{margin-top:10px;padding:4px 12px;border-radius:999px;background:rgba(0,0,0,.55);color:#fff;font-size:12.5px;font-weight:700}
.hmp-measure{position:fixed;left:-99999px;top:0;visibility:hidden;pointer-events:none}
.hmp-measure .hmp-slot{position:absolute;left:0;top:0;width:max-content}
.hmp-measure .home-popup-card{width:var(--popup-width,520px)}

/* 관리자 배치 화면 */
.hmp-board{margin:0 0 18px;border:1px solid #e3e1da;border-radius:12px;background:#fff;overflow:hidden}
.hmp-board>summary{cursor:pointer;list-style:none;display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:14px 18px;background:#faf9f6;font-size:15px}
.hmp-board>summary::-webkit-details-marker{display:none}
.hmp-board>summary:before{content:"▸";color:#999;transition:transform .15s}
.hmp-board[open]>summary:before{transform:rotate(90deg)}
.hmp-board>summary .hmp-cnt{padding:3px 10px;border-radius:999px;background:#1f1f1f;color:#fff;font-size:12px;font-weight:700}
.hmp-board>summary small{color:#888;font-size:12.5px;margin-left:auto}
.hmp-board-body{padding:16px 18px 18px}
.hmp-screen{position:relative;width:100%;max-width:900px;margin:0 auto;border:1px solid #d5d5d5;border-radius:8px;background:linear-gradient(#f3f3f0,#e9e8e3);overflow:hidden;touch-action:none;user-select:none}
.hmp-header{position:absolute;left:0;right:0;top:0;height:6%;min-height:14px;background:rgba(255,255,255,.85);border-bottom:1px solid #ddd;font-size:11px;color:#999;display:flex;align-items:center;padding-left:10px}
.hmp-box{position:absolute;border:2px solid #1f1f1f;border-radius:6px;background:#fff;box-shadow:0 6px 18px rgba(0,0,0,.18);cursor:grab;overflow:hidden;display:flex;align-items:center;justify-content:center}
.hmp-box.is-auto{border-style:dashed;border-color:#8a6414}
.hmp-box.is-drag{cursor:grabbing;box-shadow:0 12px 30px rgba(0,0,0,.3);outline:3px solid rgba(199,154,60,.5)}
.hmp-box img{width:100%;height:100%;object-fit:cover;pointer-events:none;opacity:.92}
.hmp-box span{padding:6px;font-size:11px;font-weight:700;text-align:center;color:#444;word-break:keep-all}
.hmp-box em{position:absolute;left:0;right:0;bottom:0;padding:3px 6px;background:rgba(17,17,17,.78);color:#fff;font-size:11px;font-style:normal;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hmp-empty{margin:12px 0 0;font-size:14px;color:#666}
.hmp-tools{display:flex;align-items:center;gap:12px;margin-top:12px;flex-wrap:wrap}
.hmp-msg{font-size:13px;color:#17703a;font-weight:600}
.hmp-help{margin:10px 0 0;padding-left:18px;font-size:12.5px;color:#777;line-height:1.7}
#homepagePopupLayer.hmp-on.hmp-pc.hmp-bg{pointer-events:auto}
.hmp-bgset{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin:0 auto 12px;max-width:900px;padding:10px 14px;border:1px solid #ece9e1;border-radius:8px;background:#fcfbf8;font-size:13.5px}
.hmp-bgset b{font-size:14px}
.hmp-bgset label{display:flex;align-items:center;gap:8px;color:#444}
.hmp-bgset input[type=range]{width:140px;accent-color:#1f1f1f}
.hmp-bgset output{min-width:38px;font-weight:700;color:#1f1f1f}
.hmp-bg-none{height:32px;padding:0 12px;border:1px solid #cfcfcf;border-radius:6px;background:#fff;font-size:12.5px;cursor:pointer;font-family:inherit}
.hmp-fake{position:absolute;inset:8% 4% 4%;display:grid;grid-template-columns:repeat(3,1fr);gap:4%}
.hmp-fake i{display:block;border-radius:6px;background:linear-gradient(135deg,#c9a45c,#3b5b7a)}
.hmp-fake i:nth-child(2n){background:linear-gradient(135deg,#6a8f6b,#d7c5a0)}
.hmp-veil{position:absolute;inset:0;pointer-events:none}
/* "오늘 하루 보지 않기" 체크박스와 글자 줄 맞춤 */
html body .home-popup-footer .home-popup-today-label{display:inline-flex!important;align-items:center!important;gap:8px}
html body .home-popup-footer .home-popup-today-label input.home-popup-today-check{position:static!important;top:auto!important;align-self:center!important;margin:0!important;vertical-align:middle!important;width:17px!important;height:17px!important;flex:0 0 17px!important;transform:none!important}
html body .home-popup-footer .home-popup-today-label .home-popup-today-text{line-height:17px!important;display:inline-block!important;margin:0!important;padding:0!important}
/* V1120: 닫기(×) 아이콘을 원 정중앙에 — 글꼴에 따라 어긋나는 × 글자 대신 선 두 개로 그림 */
html body #homepagePopupLayer .home-popup-close{display:block!important;padding:0!important;font-size:0!important;line-height:0!important}
html body #homepagePopupLayer .home-popup-close::before,html body #homepagePopupLayer .home-popup-close::after{content:"";position:absolute;left:50%;top:50%;width:14px;height:2px;border-radius:2px;background:currentColor;transform:translate(-50%,-50%) rotate(45deg)}
html body #homepagePopupLayer .home-popup-close::after{transform:translate(-50%,-50%) rotate(-45deg)}
/* V1120: 이미지와 '오늘 하루 보지 않기·닫기' 줄 사이 여백 */
html body .hana-html-popup-card>.home-popup-footer{padding-top:14px!important}
