/* 1.2.100 홈 "새로 문 연 가게" 팝업북 (includes/v3-render.php aitop_v3_arrivals_html, arrivals.js, 사장님 2026-11-27 시안 승인).
   탁자 위 팝업 카드 세 권: 내리면 책이 펼쳐지며 종이 가게(간판·쇼윈도·문)가 서고, 문이 열리면 주인 인형이 나와 손을 흔든다.
   색은 사이트의 종이·먹·놋쇠, 가게마다 표지 색(--c) 하나. 사이트의 .door 같은 이름과 겹치지 않게 모두 ar- 로 시작한다 */
.aitop-v3 .sec-ar { --ar-ink-3: #8A8076; --ar-sheet: #FBF7EF; overflow: hidden; padding: 72px 0 80px; background: linear-gradient(180deg, var(--paper) 0%, #F1EADC 100%); }
.aitop-v3 .sec-ar .sec-head.e-con { margin-bottom: 6px; }
.aitop-v3 .ar-count { position: relative; z-index: 2; margin: 0 0 28px; color: var(--ink-2); }

.aitop-v3 .ar-shelf { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 32px; }
.aitop-v3 .ar-shelf.is-3d { padding-top: 72px; }
.aitop-v3 .ar-pop { min-width: 0; display: grid; gap: 4px; align-content: start; }
.aitop-v3 .ar-stage { position: relative; display: block; color: inherit; text-decoration: none; }
/* JS가 없을 때: 쇼윈도 사진 한 장 */
.aitop-v3 .ar-pic { display: block; width: 100%; max-width: 360px; height: auto; aspect-ratio: 4 / 3; margin: 0 auto 10px; object-fit: cover; object-position: top; border: 3px solid var(--ink); border-radius: 4px; }
.aitop-v3 .ar-pop.is-3d .ar-stage { height: 400px; perspective: 1700px; perspective-origin: 50% 10%; cursor: pointer; }
.aitop-v3 .ar-txt { position: relative; z-index: 2; padding-inline: 4px; text-align: center; }
.aitop-v3 .ar-kind { font-size: 13px; color: var(--ar-ink-3); }
.aitop-v3 .ar-kind b { color: var(--ink-2); font-weight: 600; }
.aitop-v3 .ar-pop h3 { font: 650 20px/1.35 var(--title); margin: 2px 0; color: var(--ink); text-wrap: balance; }
.aitop-v3 .ar-desc { margin: 0; color: var(--ink-2); font-size: 15px; }
.aitop-v3 .ar-go { display: inline-flex; align-items: center; min-height: 44px; color: var(--brass-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }

/* 종이 조각들: 모두 .ar-book 안에서 JS가 각도를 정한다 */
.aitop-v3 .ar-table { position: absolute; left: 50%; top: 132px; transform-style: preserve-3d; }
.aitop-v3 .ar-book { position: absolute; transform-style: preserve-3d; }
.aitop-v3 .ar-book > * { position: absolute; left: 0; top: 0; transform-origin: 0 0; transform-style: preserve-3d; }
.aitop-v3 .ar-face { position: absolute; inset: 0; backface-visibility: hidden; border-radius: 3px; overflow: hidden; }
.aitop-v3 .ar-flip { transform: rotateX(180deg); }
.aitop-v3 .ar-base { background: var(--ar-sheet); border-radius: 3px; box-shadow: 0 1px 0 #E6DCCB, 0 2px 0 #DCCFB8, 0 26px 40px -18px rgba(60, 40, 15, .45); }
.aitop-v3 .ar-print { position: absolute; left: 0; right: 0; bottom: 16px; text-align: center; font: 600 11px/1.5 var(--title); letter-spacing: .18em; color: var(--ar-ink-3); }
.aitop-v3 .ar-print b { display: block; font-size: 13px; letter-spacing: .2em; color: var(--ink-2); }
.aitop-v3 .ar-shade { background: linear-gradient(180deg, rgba(60, 40, 15, .32), rgba(60, 40, 15, 0)); pointer-events: none; }
.aitop-v3 .ar-cover { display: grid; place-content: center; gap: 6px; text-align: center; color: #FFF8EC; background: var(--c);
  background-image: linear-gradient(135deg, rgba(255, 255, 255, .08), rgba(0, 0, 0, .08)), repeating-linear-gradient(90deg, rgba(255, 255, 255, .03) 0 2px, transparent 2px 4px); }
.aitop-v3 .ar-cover small { font: 600 11px/1 var(--title); letter-spacing: .24em; opacity: .8; }
.aitop-v3 .ar-cover strong { padding-inline: 12px; font: 700 24px/1.2 var(--title); letter-spacing: -.01em; }
.aitop-v3 .ar-cover em { font-style: normal; font-size: 12px; opacity: .75; }
.aitop-v3 .ar-wall { background: linear-gradient(180deg, #EFE6D4, #F7F1E6 60%); }
.aitop-v3 .ar-fl { position: absolute; left: 14px; top: 14px; font: 700 12px/1 var(--title); letter-spacing: .16em; color: var(--ar-ink-3); }
.aitop-v3 .ar-fl i { font-style: normal; color: var(--brass); }
.aitop-v3 .ar-front { display: grid; grid-template-rows: auto 1fr; background: var(--card); box-shadow: inset 0 0 0 1px rgba(60, 40, 15, .12); }
.aitop-v3 .ar-sign { height: 34px; display: flex; align-items: center; justify-content: center; padding-inline: 8px; overflow: hidden; white-space: nowrap; background: var(--c); color: #FFF8EC; font: 700 14px/1 var(--title); letter-spacing: .04em; transition: filter 1s ease, box-shadow 1s ease; }
.aitop-v3 .ar-store { display: grid; grid-template-columns: 1fr 26%; gap: 8px; padding: 10px 10px 0; }
/* 사진이 없으면 불 켜진 가게 안(따뜻한 벽·선반 두 줄) */
.aitop-v3 .ar-window { position: relative; overflow: hidden; background: linear-gradient(180deg, transparent 38%, #C9A86F 38% 41%, transparent 41% 70%, #C9A86F 70% 73%, transparent 73%), linear-gradient(180deg, #FBEFD6, #EBD3A6); border: 3px solid var(--ink); border-bottom: 0; border-radius: 3px 3px 0 0; }
.aitop-v3 .ar-window .ar-pic { width: 100%; max-width: none; height: 100%; margin: 0; aspect-ratio: auto; border: 0; border-radius: 0; }
.aitop-v3 .ar-window::after { content: ""; position: absolute; inset: 0; background-size: 300% 100%, 100% 100%; background-position: 100% 0, 0 0;
  background-image: linear-gradient(110deg, rgba(255, 255, 255, 0) 38%, rgba(255, 255, 255, .22) 50%, rgba(255, 255, 255, 0) 62%), linear-gradient(120deg, rgba(255, 255, 255, .28), rgba(255, 255, 255, 0) 40%); }
.aitop-v3 .ar-doorway { position: relative; background: radial-gradient(ellipse at 50% 70%, #FFE3A6, #E8B866 60%, #B7843B); border: 3px solid var(--ink); border-bottom: 0; border-radius: 3px 3px 0 0; perspective: 400px; }
.aitop-v3 .ar-door { position: absolute; inset: 0; background: var(--c); transform-origin: 0 50%; border-right: 1px solid rgba(0, 0, 0, .2); transition: transform 1.4s cubic-bezier(.25, .6, .2, 1); }
.aitop-v3 .ar-door::after { content: ""; position: absolute; right: 5px; top: 52%; width: 4px; height: 4px; border-radius: 50%; background: #F2D49A; }
.aitop-v3 .ar-door.is-open { transform: rotateY(-105deg); }
.aitop-v3 .ar-roof { background: linear-gradient(90deg, #D9CDB8, #E9E0CF 50%, #D9CDB8); }
.aitop-v3 .ar-side { background: #E4D9C6; }
.aitop-v3 .ar-side.r { background: #D6C9B2; }

/* 가게 주인: 상자를 이어 붙인 입체 인형. 문 뒤에서 걸어 나와 손을 흔든다 (보이고 숨기는 것은 visibility: opacity를 쓰면 입체가 납작해진다) */
.aitop-v3 .ar-bot, .aitop-v3 .ar-bot div { transform-style: preserve-3d; }
.aitop-v3 .ar-cub { position: absolute; left: 0; top: 0; }
.aitop-v3 .ar-cub > i { position: absolute; left: 0; top: 0; backface-visibility: hidden; background: var(--k); box-shadow: inset 0 0 0 1px rgba(30, 26, 21, .28); }
.aitop-v3 .ar-cub > i.s { filter: brightness(.8); }
.aitop-v3 .ar-cub > i.t { filter: brightness(1.12); }
.aitop-v3 .ar-pv { position: absolute; left: 0; top: 0; width: 0; height: 0; }
@keyframes ar-wave { 0%, 100% { rotate: z -6deg; } 50% { rotate: z 26deg; } }
.aitop-v3 .ar-bot.is-greet .ar-wv { animation: ar-wave var(--wd, 1s) ease-in-out 3; }
.aitop-v3 .ar-pop.is-hi .ar-wv { animation: ar-wave calc(var(--wd, 1s) * 1.2) ease-in-out infinite; }
.aitop-v3 .ar-eye { position: absolute; width: 3.6px; height: 3.6px; border-radius: 50%; background: #1E1A15; }
.aitop-v3 .ar-smile { position: absolute; width: 9px; height: 5px; border: 1.6px solid #1E1A15; border-top: 0; border-radius: 0 0 6px 6px; }
.aitop-v3 .ar-cheek { position: absolute; width: 5px; height: 3px; border-radius: 50%; background: rgba(230, 120, 100, .45); }
.aitop-v3 .ar-apron { position: absolute; left: 5px; right: 5px; top: 12px; bottom: 0; border-radius: 2px 2px 0 0; box-shadow: inset 0 0 0 1px rgba(30, 26, 21, .3); }
.aitop-v3 .ar-panel { position: absolute; left: 8px; right: 8px; top: 8px; height: 12px; border-radius: 2px; background: #F2D49A; box-shadow: inset 0 0 0 1px rgba(30, 26, 21, .35); }
.aitop-v3 .ar-bubble { position: absolute; left: 0; top: 0; translate: -50% calc(-100% - 118px) 2px; padding: 5px 9px; white-space: nowrap; color: var(--ink); background: #fff; border: 1.5px solid var(--ink); border-radius: 12px;
  font: 700 11px/1.2 var(--title); opacity: 0; scale: .8; transition: opacity .6s ease, scale .6s ease; }
.aitop-v3 .ar-bubble::after { content: ""; position: absolute; left: 50%; bottom: -5px; width: 8px; height: 8px; background: #fff; border: 1.5px solid var(--ink); border-top: 0; border-left: 0; rotate: 45deg; translate: -50% 0; }
.aitop-v3 .ar-bot.is-greet .ar-bubble, .aitop-v3 .ar-pop.is-hi .ar-bubble { opacity: 1; scale: 1; }

/* 마우스를 올리면: 은은하게. 책이 천천히 살짝 기울고(JS), 간판이 조금 밝아지고, 유리에 빛이 느리게 스친다 */
.aitop-v3 .ar-pop.is-hi .ar-sign { filter: brightness(1.08); box-shadow: 0 0 12px color-mix(in srgb, var(--c) 40%, transparent); }
@keyframes ar-shine { from { background-position: 100% 0, 0 0; } to { background-position: -50% 0, 0 0; } }
.aitop-v3 .ar-pop.is-hi .ar-window::after { animation: ar-shine 2.4s ease-in-out; }
.aitop-v3 .ar-pop.is-hi .ar-door.is-open { transform: rotateY(-114deg); }
.aitop-v3 .ar-pop.is-hi .ar-go { color: var(--ink); }

/* 맨 아래 입주 안내 줄 (기본 요소: 제목·글·버튼). 책과 떨어진 조용한 띠 */
.aitop-v3 .ar-join.e-con { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; margin-top: 64px; padding: 28px 28px; background: var(--paper-2); border-radius: 6px; }
.aitop-v3 .ar-join .v3-cta-h .elementor-heading-title { font: 650 20px/1.4 var(--title); color: var(--ink); }
.aitop-v3 .ar-join .v3-cta-p { flex: 1; min-width: 16em; }
.aitop-v3 .ar-join .v3-cta-p p { margin: 0; color: var(--ink-2); }
.aitop-v3 .ar-join .v3-btn .elementor-button { min-height: 44px; border-radius: 8px; font-size: 15px; }

@media (max-width: 900px) {
  .aitop-v3 .sec-ar { padding: 48px 0 56px; }
  .aitop-v3 .ar-shelf { grid-template-columns: minmax(0, 1fr); gap: 84px; }
  .aitop-v3 .ar-pop { width: 100%; max-width: 420px; margin: 0 auto; }
  .aitop-v3 .ar-join.e-con { margin-top: 48px; padding: 22px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .aitop-v3 .ar-door, .aitop-v3 .ar-sign, .aitop-v3 .ar-bubble { transition: none; }
  .aitop-v3 .ar-wv, .aitop-v3 .ar-window::after { animation: none !important; }
}
