/* ANGELBET 첫 화면 팝업(pages/popup.js, 2026-11-27) - 관리자 "팝업 관리"의 팝업을 첫 화면에서 띄운다. EVOL popup.css 짜임을 ANGELBET 밝은 하늘 색으로.
   창 바탕 · 선은 로그인 창(.sheet)과 같은 흰 카드 + 하늘색 선. 창 폭 · 카드 폭 · 한 쪽에 놓는 장 수는 스크립트가 정한다(--ab-pop-card · --ab-pop-cols).
   옆 여백(16px, 좁은 화면 10px)과 테두리 1px 은 스크립트의 창 폭 계산과 맞물려 있다 - 바꾸면 popup.js groupLayout 도 같이. */

/* ── 모아보기(한 창에서 넘겨 본다) ── */
.ab-pop { position: fixed; inset: 0; box-sizing: border-box; max-width: calc(100vw - 24px); max-height: calc(100dvh - 24px); margin: auto; padding: 0 16px; overflow: auto; overscroll-behavior: contain; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-2); }
.ab-pop[open] { display: grid; align-content: start; }
.ab-pop::backdrop { background: rgba(8, 29, 77, 0.62); }
.ab-pop:focus, .ab-pop:focus-visible { outline: none; }
.ab-pop-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; min-height: 60px; }
.ab-pop-brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ab-pop-brand img { flex: none; width: auto; height: 28px; }
.ab-pop-brand h2 { font-family: var(--display); font-size: 17px; font-weight: 700; line-height: 1; letter-spacing: 0.08em; color: var(--gold-600); }
.ab-pop-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ab-pop-x { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; color: var(--navy); transition: background 0.2s, color 0.2s; }
.ab-pop-x:hover { color: var(--blue); background: var(--sky-1); }
.ab-pop-x .ico { width: 22px; height: 22px; }
.ab-pop-view { width: 100%; min-width: 0; overflow: hidden; touch-action: pan-y pinch-zoom; border-radius: 12px; }
.ab-pop-track { display: flex; transition: transform 0.28s var(--ease); }
.ab-pop-slide { display: grid; grid-template-columns: repeat(var(--ab-pop-cols, 1), var(--ab-pop-card, 300px)); justify-content: center; gap: 12px; flex: 0 0 100%; min-width: 0; }
.ab-pop-card { width: var(--ab-pop-card, 300px); aspect-ratio: 941 / 1672; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--navy-900); }
.ab-pop-link { display: block; width: 100%; height: 100%; }
.ab-pop-card img { width: 100%; height: 100%; object-fit: contain; background: var(--navy-900); user-select: none; -webkit-user-select: none; -webkit-user-drag: none; }
.ab-pop-err { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 100%; min-height: 180px; padding: 20px; font-size: 14px; line-height: 1.6; text-align: center; color: var(--ink-3); background: var(--sky-0); }
.ab-pop-err strong { font-size: 16px; color: var(--navy); overflow-wrap: anywhere; }
.ab-pop-foot { position: relative; display: flex; align-items: center; justify-content: center; min-height: 68px; }
.ab-pop-nav { display: flex; align-items: center; justify-content: center; gap: 12px; min-width: 0; }
.ab-pop-arrow { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; color: var(--navy); background: #fff; border: 1.5px solid var(--sky-3); transition: color 0.2s, border-color 0.2s, background 0.2s; }
.ab-pop-arrow:hover:not(:disabled) { color: var(--blue); border-color: var(--blue); background: var(--sky-0); }
.ab-pop-arrow:disabled { opacity: 0.35; cursor: default; }
.ab-pop-arrow .ico { width: 20px; height: 20px; }
.ab-pop-dots { display: flex; max-width: 180px; overflow: hidden; }
.ab-pop-dots button { display: grid; place-items: center; flex: 0 0 24px; width: 24px; height: 44px; }
.ab-pop-dots span { width: 7px; height: 7px; border-radius: 50%; background: var(--sky-3); }
.ab-pop-dots button[aria-current] span { background: var(--gold); }
.ab-pop-count { min-width: 40px; text-align: center; white-space: nowrap; font-size: 13.5px; color: var(--ink-3); }
.ab-pop-count strong { font-weight: 700; color: var(--navy); }
.ab-pop-hint { position: absolute; right: 0; display: none; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-3); }
.ab-pop-hint .ico { width: 16px; height: 16px; color: var(--gold-600); }
.ab-pop.has-hint .ab-pop-hint { display: flex; }
.ab-pop-mute { position: absolute; top: 8px; right: 72px; display: flex; align-items: center; gap: 8px; min-height: 44px; font-size: 13.5px; color: var(--ink-2); cursor: pointer; }
.ab-pop-mute input { width: 17px; height: 17px; margin: 0; accent-color: var(--blue); cursor: pointer; }
.ab-pop-mute:hover { color: var(--navy); }
/* 한 장씩 보는 좁은 창: 점 대신 "1 / 3", 그만보기는 맨 아래 가운데 */
.ab-pop.is-compact .ab-pop-head { min-height: 52px; gap: 6px; }
.ab-pop.is-compact .ab-pop-brand { gap: 8px; }
.ab-pop.is-compact .ab-pop-brand img { height: 22px; }
.ab-pop.is-compact .ab-pop-brand h2 { font-size: 14px; }
.ab-pop.is-compact .ab-pop-foot { min-height: 58px; }
.ab-pop.is-compact .ab-pop-dots { display: none; }
.ab-pop.is-compact .ab-pop-mute { position: static; justify-content: center; padding-bottom: 6px; }
@media (max-width: 719px) {
  .ab-pop { padding: 0 10px; border-radius: 16px; }
}
@media (pointer: coarse) {
  .ab-pop-dots { display: none; }
}

/* ── 개별 창(끌어 옮길 수 있다) ── */
.ab-popw { position: fixed; inset: 0; z-index: 500; pointer-events: none; background: rgba(8, 29, 77, 0.55); }
.ab-popw-ctl { position: fixed; top: max(12px, env(safe-area-inset-top)); right: max(12px, env(safe-area-inset-right)); z-index: 100000; pointer-events: auto; }
.ab-popw-all { height: 44px; padding: 0 14px; gap: 6px; font-size: 14px; box-shadow: var(--shadow-1); }
.ab-popw-all .ico { width: 18px; height: 18px; }
.ab-popw-all b { display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; font-size: 12.5px; font-weight: 800; color: var(--navy-900); background: var(--gold); }
.ab-popw-win { position: fixed; inset: 0 auto auto 0; max-height: calc(100dvh - 24px); overflow: hidden; pointer-events: auto; background: #fff; border: 1px solid var(--sky-3); border-radius: 14px; box-shadow: 0 24px 52px rgba(8, 29, 77, 0.45); }
.ab-popw-win:focus-within { border-color: var(--blue); }
.ab-popw-bar { display: grid; grid-template-columns: auto minmax(0, 1fr) 44px; align-items: center; min-height: 44px; color: var(--navy); background: #fff; border-bottom: 1px solid var(--line); cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; }
.ab-popw-bar:active { cursor: grabbing; }
.ab-popw-mute, .ab-popw-x { min-width: 44px; min-height: 44px; transition: color 0.2s, background 0.2s; }
.ab-popw-mute { padding: 0 14px; font-size: 13.5px; font-weight: 700; white-space: nowrap; }
.ab-popw-x { display: grid; place-items: center; }
.ab-popw-x .ico { width: 20px; height: 20px; }
.ab-popw-mute:hover, .ab-popw-x:hover { color: var(--blue); background: var(--sky-1); }
.ab-popw-drag { align-self: stretch; min-width: 0; }
.ab-popw-media { max-height: calc(100dvh - 68px); overflow: auto; overscroll-behavior: contain; scrollbar-width: none; }
.ab-popw-media::-webkit-scrollbar { display: none; }
.ab-popw-media .ab-pop-link { height: auto; }
.ab-popw-media img { width: 100%; height: auto; background: var(--navy-900); user-select: none; -webkit-user-select: none; -webkit-user-drag: none; }
