/* ============================================================
   첫 화면 알림창 — 네 장을 입체로 보여 주기 (2026-11-11 · 사용자 지시)
   ① "네 개가 있으니 확실히 불편 … 입체감 있는 도형으로 돌려가며" → cube(기둥)
   ② "하나만 띄우면 잘 안 보이고 하나하나 확인하기 어렵다. 한 눈에 보일 방법" → fan(부채꼴) · list(목록+카드)
   모양은 .pcm-fan / .pc-list / .pcm-cube (pop-cube.js 가 붙임 · 미리보기에서 ?pop= 로 바꿔 봄).
   ★ 카드 내용·문구·'오늘 하루 보지 않기' 열쇠는 그대로입니다. 이 파일과 pop-cube.js 두 줄을
     메인 3개 언어에서 빼면 예전처럼 한 줄 배치로 돌아갑니다. JS 가 없으면 예전 배치 그대로.
   ★ tk.css 의 '세 장을 한 줄로' 규칙은 .pop-back > .pop (직계) 에만 걸립니다. 카드를 옮기면
     그 규칙이 빠지므로, 카드 안 칸 늘리기 규칙을 아래에 다시 적었습니다.
   ============================================================ */
.pop-back.open.pc-on {
  display: flex; flex-direction: column; flex-wrap: nowrap; align-items: center; justify-content: center;
  gap: 14px; padding: 16px; overflow: hidden;
}
.pc-wrap { display: flex; align-items: center; justify-content: center; gap: 20px; max-width: 100%; }
.pc-stage { position: relative; width: var(--pc-w); height: var(--pc-h); perspective: 2000px; perspective-origin: 50% 40%;
  animation: popRise .32s cubic-bezier(.22,.61,.36,1); touch-action: pan-y; }
.pc-ring { position: absolute; inset: 0; transform-style: preserve-3d; }
.pc-ring > .pop {
  position: absolute; top: 0; left: 50%; width: var(--pc-w); margin: 0 0 0 calc(var(--pc-w) / -2);
  max-height: none; height: 100%; animation: none; display: flex; flex-direction: column;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.08), 0 30px 70px rgba(13,17,23,0.35);
}
.pc-ring > .pop:not(.pc-front) { cursor: pointer; }
.pc-stage::after { content: ""; position: absolute; left: 8%; right: 8%; bottom: -26px; height: 30px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0,0,0,0.38), rgba(0,0,0,0)); filter: blur(4px); pointer-events: none; }
.pc-list { display: none; }

/* ── fan · 부채꼴: 가운데 한 장 크게, 나머지는 양옆에 비스듬히 ── */
.pcm-fan .pc-stage { width: min(100vw - 32px, 1500px); perspective: 1800px; }
.pcm-fan .pc-ring > .pop {
  transform: translateX(var(--pc-x, 0)) translateZ(var(--pc-z, 0)) rotateY(var(--pc-ry, 0deg)) scale(var(--pc-s, 1));
  transition: transform .75s cubic-bezier(.3,.7,.2,1), filter .5s ease;
}
.pcm-fan .pc-ring > .pop:not(.pc-front) { filter: brightness(.7) saturate(.85); }
.pcm-fan .pc-ring > .pop:not(.pc-front):hover { filter: brightness(.88); }
.pcm-fan .pc-ring > .pop.pc-front { transform: none; }

/* ── list · 왼쪽 목록 + 오른쪽 한 장 ── */
.pc-list-on .pc-list { display: flex; }
.pc-list { flex-direction: column; gap: 10px; width: 300px; flex: none; }
.pc-li { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; cursor: pointer;
  border: 0; border-radius: 18px; padding: 10px 14px 10px 10px; background: rgba(246,243,236,0.14); color: #f6f3ec;
  font: inherit; transition: background .25s ease, transform .25s ease; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12); }
.pc-li:hover { background: rgba(246,243,236,0.24); }
.pc-li[aria-current="true"] { background: #f6f3ec; color: var(--ink, #14181f); transform: translateX(6px); box-shadow: 0 12px 30px rgba(0,0,0,0.3); }
.pc-li img, .pc-li .pc-li-art { width: 64px; height: 64px; flex: none; border-radius: 12px; object-fit: cover; background: #e8dfcb; }
.pc-li .pc-li-art { display: grid; place-items: center; color: var(--ink, #14181f); background: #f3ead8; }
.pc-li .pc-li-art svg { height: 50px; width: auto; }
.pc-li-t { min-width: 0; display: block; }
.pc-li-t small { display: block; font-family: var(--sans); font-size: 11.5px; letter-spacing: 0.08em; opacity: .75; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-li-t b { display: block; margin-top: 3px; font-family: var(--serif-ko, var(--serif)); font-size: 16.5px; line-height: 1.35; font-weight: 600;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pc-li[aria-current="true"] small { color: var(--gold-text, #78613e); opacity: 1; }
.pcm-list .pc-ring > .pop { transition: opacity .45s ease, transform .45s ease, visibility .45s; }
.pcm-list .pc-ring > .pop:not(.pc-front) { opacity: 0; visibility: hidden; transform: translateY(10px) scale(.98); }

/* ── cube · N면 기둥 ── */
.pcm-cube .pc-ring { transform: translateZ(calc(var(--pc-r) * -1)) rotateY(var(--pc-rot, 0deg));
  transition: transform .9s cubic-bezier(.65,.05,.25,1); }
.pcm-cube .pc-ring > .pop { backface-visibility: hidden; -webkit-backface-visibility: hidden;
  transform: rotateY(var(--pc-a)) translateZ(var(--pc-r)); transition: filter .9s ease; }
.pcm-cube .pc-ring > .pop:not(.pc-front) { filter: brightness(.82); }

/* 카드 안 — 남는 높이 나누기(tk.css '세 장을 한 줄로' 와 같은 규칙) */
.pc-ring > .pop > * { flex: none; }
.pc-ring > .pop > .pop-ctl { margin-top: auto; position: sticky; bottom: 0; z-index: 3; }
.pc-ring > .pop-bp > .pw-shots { flex: 1 1 auto; min-height: 180px;
  grid-template-columns: minmax(0, 150fr) minmax(0, 127fr); grid-template-rows: 1fr 1fr; }
.pc-ring > .pop-bp .pw-shots figure { aspect-ratio: auto; }
.pc-ring > .pop-bp .pw-shots figure:first-of-type { grid-row: 1 / span 2; }
.pc-ring > .pop-bp .pw-more { right: auto; left: 10px; top: 10px; }
.pc-ring > .pop-photo > .pop-foot { flex: 1 0 auto; }
.pc-ring > .pop-slim > .pop-reel { flex: 1000 1 auto; aspect-ratio: auto; min-height: 220px; max-height: 440px; }
.pc-ring > .pop-slim > .pop-go2 { flex: 1 1 auto; }
.pc-ring > .pop-kd > .kd-p-art { flex: 1 1 auto; }

/* 아래 조작 줄 — 이전 · 점 · 다음 · 멈춤 */
.pc-nav { display: flex; align-items: center; gap: 6px; padding: 6px; border-radius: 999px;
  background: rgba(246,243,236,0.94); box-shadow: 0 10px 28px rgba(0,0,0,0.25); position: relative; z-index: 2; }
.pc-nav button { border: 0; background: none; cursor: pointer; color: var(--ink, #14181f); font: inherit; }
.pc-nav .pc-arrow, .pc-nav .pc-play { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-size: 18px; }
.pc-nav .pc-arrow:hover, .pc-nav .pc-play:hover { background: rgba(20,24,31,0.08); }
.pc-dots { display: flex; gap: 4px; padding: 0 4px; }
.pc-dots button { min-width: 44px; height: 44px; display: grid; place-items: center; padding: 0 6px; border-radius: 999px; }
.pc-dots button span { display: block; width: 10px; height: 10px; border-radius: 999px; background: rgba(20,24,31,0.25); transition: width .3s ease, background .3s ease; }
.pc-dots button[aria-current="true"] span { width: 28px; background: var(--gold, #9f7e46); }
.pc-dots button:hover span { background: rgba(20,24,31,0.5); }
.pc-count { font-family: var(--sans); font-size: 13px; letter-spacing: 0.08em; color: #4e555d; padding: 0 6px 0 2px; min-width: 3.2em; text-align: center; }
.pc-nav button:focus-visible { outline: 2px solid var(--gold, #9f7e46); outline-offset: 2px; }
@media (max-width: 560px) {
  .pop-back.open.pc-on { padding: 10px 8px; gap: 10px; }
  .pc-nav { gap: 2px; padding: 4px; }
  .pc-dots button { min-width: 32px; }
  .pc-count { display: none; }
}
.pc-instant .pc-ring, .pc-instant .pc-ring > .pop { transition: none !important; }
@media (prefers-reduced-motion: reduce) {
  .pc-ring, .pc-ring > .pop, .pc-on .pc-ring > .pop { transition: none !important; }
  .pc-stage { animation: none; }
}
