/* 🔮 타로카페 (도련 10-31 · 시안 A · js/tarotroom.js) : 💻 📲 만 · 그림 1672 × 941 · 탁자 위 카드 다섯 장 = 메뉴 다섯 */
.tro-room { position: fixed; inset: 0; z-index: 1500; display: none; overflow: hidden; background: #221d4f; }
.tro-room.show { display: block; animation: crIn .25s ease both; }
.tro-room button { font-family: inherit; cursor: pointer; }
.tro-stage { position: absolute; left: 0; top: 0; width: 1672px; height: 941px; transform-origin: 0 0; }
.tro-bg { position: absolute; inset: 0; width: 1672px; height: 941px; pointer-events: none; user-select: none; }
.tro-ttl { position: absolute; transform-origin: 50% 0; translate: -50% 0; color: #ffe7b0; font-size: 30px; font-weight: 900; letter-spacing: 3px; text-shadow: 0 0 14px rgba(255, 214, 140, .7); pointer-events: none; white-space: nowrap; }
.tro-ttl small { display: block; text-align: center; font-size: 14px; letter-spacing: 1px; color: #e8d6ff; font-weight: 700; margin-top: 2px; }
.tro-go { position: absolute; right: 18px; top: 14px; z-index: 2; transform: scale(1.15); transform-origin: 100% 0; }   /* 화면 오른쪽 위 (그림이 잘려도) */
body.tarot-on .desk-top-r { display: none; }

/* 카드 = 누르는 자리 (그림 그대로 · 올리면 금빛) */
.tro-cards { position: absolute; inset: 0; width: 1672px; height: 941px; pointer-events: none; overflow: visible; }
.tro-card { fill: rgba(255, 230, 160, 0); stroke: transparent; stroke-width: 4; stroke-linejoin: round; pointer-events: all; cursor: pointer; transition: fill .2s, stroke .2s, filter .2s; }
.tro-card.hov { fill: rgba(255, 230, 160, .12); stroke: #ffe7a8; filter: drop-shadow(0 0 14px rgba(255, 214, 120, .9)) drop-shadow(0 0 30px rgba(255, 214, 120, .5)); }

/* 이름표 */
.tro-tag { position: absolute; transform-origin: 50% 0; translate: -50% 0; white-space: nowrap; padding: 6px 14px 7px; border-radius: 12px; background: linear-gradient(#fff8e8, #f5e3c0); border: 2px solid #b8894a; color: #5a3a5e; font-weight: 900; font-size: 19px; box-shadow: 0 4px 0 rgba(60, 20, 60, .45), 0 0 18px rgba(255, 220, 150, .35); transition: transform .15s, background .15s; }
.tro-tag small { display: block; font-size: 12px; font-weight: 700; color: #9a7a6a; text-align: center; margin-top: 1px; }
.tro-tag.hov { background: linear-gradient(#ffeec2, #ffd98a); transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { .tro-card, .tro-tag { transition: none; } }

/* ✨ 신비 연출 (도련 10-31 · 시안에서 고른 7가지 · 배경음악 없음) : 그림 위에 얹기만 해요 (누르는 것 없음) */
.tro-fx { position: absolute; pointer-events: none; }
.tro-vig { inset: 0; background: radial-gradient(ellipse at 50% 55%, transparent 55%, rgba(10, 5, 40, .55)); animation: troPulse 8s ease-in-out infinite; }   /* 🌌 가장자리 어둠 숨쉬기 */
.tro-moon { left: 740px; top: 40px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 220, 160, .35), transparent 62%); mix-blend-mode: screen; animation: troPulse 6s ease-in-out infinite; }   /* 🌙 달빛 */
.tro-stars { inset: 0; }
.tro-tw { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #fff6d8; box-shadow: 0 0 6px 2px rgba(255, 236, 170, .9); opacity: 0; animation: troTw var(--d) ease-in-out var(--l) infinite; }   /* ✨ 별 반짝 */
.tro-tw.x { width: 14px; height: 14px; background: none; box-shadow: none; }
.tro-tw.x::before, .tro-tw.x::after { content: ''; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; margin: -1px -7px; background: linear-gradient(90deg, transparent, #fff3c8, transparent); }
.tro-tw.x::after { transform: rotate(90deg); }
.tro-cglow { left: 340px; top: 40px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 200, 120, .28), transparent 65%); mix-blend-mode: screen; animation: troCg 3.1s ease-in-out infinite; }   /* 🕯️ 촛불 둘레 빛 */
.tro-flame { left: 478px; top: 150px; width: 48px; height: 80px; border-radius: 50%; background: radial-gradient(ellipse at 50% 60%, rgba(255, 240, 190, .9), rgba(255, 190, 90, .45) 35%, transparent 70%); mix-blend-mode: screen; transform-origin: 50% 90%; animation: troFl 2.4s ease-in-out infinite; }   /* 🕯️ 불꽃 일렁임 */
.tro-ball { left: 590px; top: 300px; width: 230px; height: 230px; border-radius: 50%; overflow: hidden; mix-blend-mode: screen; }   /* 🔮 수정구슬 속 소용돌이 */
.tro-ball i { position: absolute; inset: -30%; background: conic-gradient(from 0deg, transparent, rgba(190, 150, 255, .35), transparent 30%, rgba(140, 200, 255, .3), transparent 60%, rgba(255, 180, 230, .3), transparent 85%); filter: blur(14px); animation: troSpin 9s linear infinite; }
.tro-ball b { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 50% 55%, rgba(220, 200, 255, .35), transparent 60%); animation: troPulse 4s ease-in-out infinite; }
.tro-sheen { left: 300px; top: 610px; width: 1060px; height: 260px; overflow: hidden; mix-blend-mode: screen;   /* 🃏 카드 위 금빛 스침 (7초마다 · 가장자리는 흐리게) */
    -webkit-mask: radial-gradient(ellipse 50% 50% at 50% 50%, #000 60%, transparent 100%); mask: radial-gradient(ellipse 50% 50% at 50% 50%, #000 60%, transparent 100%); }
.tro-sheen i { position: absolute; top: -40px; left: -300px; width: 160px; height: 340px; background: linear-gradient(90deg, transparent, rgba(255, 235, 180, .28), transparent); transform: skewX(-20deg); animation: troSh 7s ease-in-out infinite; }
.tro-dusts { inset: 0; }
.tro-dust { position: absolute; width: 5px; height: 5px; border-radius: 50%; background: #ffe9b0; box-shadow: 0 0 8px 3px rgba(255, 220, 150, .7); opacity: 0; animation: troDust var(--d) linear var(--l) infinite; }   /* 💫 떠다니는 빛가루 */
@keyframes troPulse { 0%, 100% { opacity: .4; } 50% { opacity: 1; } }
@keyframes troTw { 0%, 100% { opacity: 0; transform: scale(.4); } 50% { opacity: 1; transform: scale(1); } }
@keyframes troFl { 0%, 100% { transform: scale(1, 1) rotate(0); } 20% { transform: scale(.92, 1.06) rotate(-3deg); } 45% { transform: scale(1.05, .95) rotate(2deg); } 70% { transform: scale(.96, 1.04) rotate(-1deg); } }
@keyframes troCg { 0%, 100% { opacity: .75; } 30% { opacity: 1; } 55% { opacity: .6; } 80% { opacity: .95; } }
@keyframes troSpin { to { transform: rotate(360deg); } }
@keyframes troSh { 0%, 55% { left: -300px; } 100% { left: 1200px; } }
@keyframes troDust { 0% { opacity: 0; transform: translate(0, 0); } 15% { opacity: .9; } 85% { opacity: .7; } 100% { opacity: 0; transform: translate(var(--x), -260px); } }
@media (prefers-reduced-motion: reduce) { .tro-fx, .tro-fx * { animation: none !important; } .tro-tw, .tro-dust, .tro-sheen { display: none; } }

/* 🚪 타로카페 문 (도련 10-31 · 기본상품 샵 들어갈 때처럼 · js/tarotroom.js troDoor) : 문 → 달 창 쪽으로 다가가며 보랏빛 · 금빛 → 타로카페 */
.tro-door { display: none; position: fixed; inset: 0; z-index: 1700; overflow: hidden; background: #241a3a; }
.tro-door.on { display: block; }   /* 처음부터 불투명 (뒤의 타로카페가 먼저 비치지 않게 · 도련 11-01) · 그림만 스르르 */
.tro-door.on .tro-door-in img, .tro-door.on .tro-door-sign { animation: troDoorIn .35s ease; }
.tro-door.leave { animation: troDoorOut .4s ease forwards; }
.tro-door-in { position: absolute; inset: 0; }
.tro-door-in img { position: absolute; user-select: none; -webkit-user-drag: none; }
.tro-door-in::after { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0;   /* 보랏빛 · 금빛 (그림 색) */
    background: radial-gradient(circle at 50% 38%, #fff1c9 0, #e9c27a 12%, #9b6fc9 34%, #4a2f7a 62%, #241a3a 88%); }
.tro-door-sign { position: absolute; translate: -50% -50%; white-space: nowrap; pointer-events: none; font-family: 'Song Myung', 'Nanum Myeongjo', serif; font-weight: 400; letter-spacing: .12em;
    color: #f1cf86; text-shadow: 0 2px 0 #3a2550, 0 0 18px rgba(241, 207, 134, .65); }
.tro-door.enter .tro-door-in { transition: transform 1.4s cubic-bezier(.4, 0, .8, .5) .15s, opacity .5s ease 1.15s; transform: scale(2.6); opacity: 0; }
.tro-door.enter .tro-door-in::after { transition: opacity .8s ease .45s; opacity: 1; }
.tro-door.enter .tro-door-sign { transition: opacity .3s ease; opacity: 0; }
@keyframes troDoorIn { from { opacity: 0; } } @keyframes troDoorOut { to { opacity: 0; } }

/* 📱 폰 = 세로 그림 941 × 1672 (도련 11-09 · js/tarotroom.js TRO_PH) : 그림은 화면 아래에 붙고 남는 위는 하늘색 · 연출 자리만 세로 그림에 맞춰요 */
.tro-room.ph { background: #201e55; }
.tro-room.ph .tro-stage, .tro-room.ph .tro-bg, .tro-room.ph .tro-cards { width: 941px; height: 1672px; }
.tro-room.ph .tro-moon { left: 360px; top: 185px; }
.tro-room.ph .tro-cglow { left: 124px; top: 405px; }
.tro-room.ph .tro-flame { left: 260px; top: 525px; }
.tro-room.ph .tro-ball { left: 323px; top: 705px; width: 220px; height: 220px; }
.tro-room.ph .tro-sheen { left: 30px; top: 1010px; width: 880px; height: 240px; }
.tro-room.ph .tro-ttl { font-size: 22px; letter-spacing: 2px; }
.tro-room.ph .tro-ttl small { font-size: 12px; }
.tro-room.ph .tro-tag { font-size: 14px; padding: 5px 10px 6px; border-radius: 10px; }
.tro-room.ph .tro-tag small { font-size: 10.5px; }
.tro-room.ph .tro-go { transform: none; right: 12px; top: 12px; }
.tro-room.ph .tro-tags { position: absolute; left: 50%; translate: -50% 0; width: min(340px, calc(100% - 12px)); display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 8px; }   /* 📱 이름표 = 줄 바꿈 상자 (폰 너비가 달라도 안 겹쳐요 · 도련 11-09) */
.tro-room.ph .tro-tags .tro-tag { position: static; translate: none; }
