/* Ly 채팅 위젯 · nullylab.com v3 토큰과 같은 색 체계 · 모바일 우선 */
.ly-root { --ly-bg: #0c0c14; --ly-surface: #12121c; --ly-surface-2: #181826; --ly-line: rgba(255,255,255,0.1); --ly-text: #f3f3f8; --ly-muted: #a9a9c2; --ly-dim: #7d7d96; --ly-blue: #5b8cff; --ly-purple: #b57cf2; --ly-user: #2a2f55; --ly-bot-bg: #ffe8a3; --ly-bot-text: #1a1a22; --ly-bot-link: #1d4ed8;
  font-family: 'Pretendard Variable', Pretendard, -apple-system, 'Segoe UI', sans-serif; font-size: 15px; line-height: 1.55; color: var(--ly-text); text-align: left; position: fixed; z-index: 9999; right: 16px; bottom: 16px; }
.ly-root * { box-sizing: border-box; }
/* r65 · 아이콘형 FAB = 아바타 원형 72px + 그라데이션 링 + 글로우 · 6초마다 넛지 · 말풍선 */
.ly-fab { position: relative; display: block; width: 72px; height: 72px; padding: 0; border: 0; border-radius: 50%; background: linear-gradient(135deg, var(--ly-blue), var(--ly-purple)); cursor: pointer; box-shadow: 0 10px 30px rgba(0,0,0,0.5), 0 0 0 4px rgba(181,124,242,0.22), 0 0 28px rgba(181,124,242,0.55); font: inherit; transform-origin: 50% 90%; transition: transform .25s ease, box-shadow .25s ease; }
.ly-fab:hover { transform: scale(1.06); box-shadow: 0 14px 34px rgba(0,0,0,0.55), 0 0 0 6px rgba(181,124,242,0.28), 0 0 36px rgba(181,124,242,0.7); }
.ly-fab img { position: absolute; inset: 3px; width: calc(100% - 6px); height: calc(100% - 6px); border-radius: 50%; object-fit: cover; border: 2px solid #0c0c14; }
.ly-fab span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.ly-fab::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid rgba(181,124,242,0.7); animation: lyPulse 2.4s ease-out infinite; pointer-events: none; }
.ly-fab.is-seen::after, .ly-fab.is-open::after { animation: none; opacity: 0; }
.ly-fab.is-nudge { animation: lyNudge .9s cubic-bezier(.34,1.56,.64,1) 1; }
@keyframes lyPulse { 0% { transform: scale(.9); opacity: .9; } 70% { transform: scale(1.35); opacity: 0; } 100% { transform: scale(1.35); opacity: 0; } }
@keyframes lyNudge { 0% { transform: translateY(0) rotate(0); } 25% { transform: translateY(-14px) rotate(-8deg) scale(1.08); } 50% { transform: translateY(0) rotate(6deg); } 70% { transform: translateY(-7px) rotate(-4deg); } 100% { transform: translateY(0) rotate(0); } }
.ly-bubble { position: absolute; right: 84px; bottom: 18px; padding: 9px 14px; border-radius: 16px 16px 4px 16px; background: var(--ly-bot-bg); color: var(--ly-bot-text); font-weight: 700; font-size: 14px; white-space: nowrap; box-shadow: 0 8px 24px rgba(0,0,0,0.4); opacity: 0; transform: translateX(10px) scale(.9); transition: opacity .25s ease, transform .25s cubic-bezier(.34,1.56,.64,1); pointer-events: none; }
.ly-bubble.is-show { opacity: 1; transform: translateX(0) scale(1); pointer-events: auto; cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .ly-fab::after, .ly-fab.is-nudge { animation: none; } .ly-bubble { transition: none; } }
.ly-panel { position: absolute; right: 0; bottom: 88px; width: 360px; max-width: calc(100vw - 32px); height: 560px; max-height: calc(100vh - 100px); display: flex; flex-direction: column; background: var(--ly-bg); border: 1px solid var(--ly-line); border-radius: 20px; overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,0.55); }
.ly-panel[hidden] { display: none; }
.ly-head { display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 14px; background: var(--ly-surface); border-bottom: 1px solid var(--ly-line); }
.ly-head img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid var(--ly-purple); cursor: zoom-in; }
.ly-head b { display: block; font-size: 16px; }
.ly-head small { display: block; color: var(--ly-muted); font-size: 12.5px; }
.ly-close { margin-left: auto; width: 34px; height: 34px; border: 0; border-radius: 50%; background: var(--ly-surface-2); color: var(--ly-muted); font-size: 22px; line-height: 1; cursor: pointer; }
.ly-msgs { flex: 1; overflow-y: auto; padding: 14px 12px 6px; display: flex; flex-direction: column; gap: 10px; -webkit-overflow-scrolling: touch; }
.ly-m { display: flex; gap: 8px; align-items: flex-end; max-width: 92%; }
.ly-m img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; flex: 0 0 28px; cursor: zoom-in; }
.ly-m p { margin: 0; text-align: left; padding: 10px 13px; border-radius: 16px; font-size: 14.5px; word-break: break-word; overflow-wrap: anywhere; }
.ly-bot p { background: var(--ly-bot-bg); color: var(--ly-bot-text); font-weight: 500; border-bottom-left-radius: 6px; }
.ly-bot p a { color: var(--ly-bot-link); }
.ly-user { align-self: flex-end; }
.ly-user p { background: var(--ly-user); border-bottom-right-radius: 6px; }
.ly-m a { color: var(--ly-blue); text-decoration: underline; }
.ly-typing p { display: flex; gap: 4px; padding: 12px 14px; }
.ly-typing i { width: 6px; height: 6px; border-radius: 50%; background: #6b5d2a; animation: lyb 1s infinite ease-in-out; }
.ly-typing i:nth-child(2) { animation-delay: .15s; } .ly-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes lyb { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.ly-chips { display: flex; gap: 6px; flex-wrap: wrap; padding: 4px 12px 8px; }
.ly-chips:empty { display: none; }
.ly-chips button { font: inherit; font-size: 12.5px; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--ly-line); background: var(--ly-surface); color: var(--ly-text); cursor: pointer; }
.ly-chips button:hover { border-color: var(--ly-purple); }
.ly-form { display: flex; gap: 8px; padding: 8px 10px; border-top: 1px solid var(--ly-line); background: var(--ly-surface); }
.ly-in { flex: 1; min-width: 0; font: inherit; font-size: 15px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--ly-line); background: var(--ly-bg); color: var(--ly-text); }
.ly-in:focus { outline: none; border-color: var(--ly-purple); }
.ly-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.ly-send { font: inherit; font-weight: 700; padding: 0 16px; border: 0; border-radius: 12px; background: linear-gradient(90deg, var(--ly-blue), var(--ly-purple)); color: #fff; cursor: pointer; }
.ly-send:disabled { opacity: .5; cursor: default; }
.ly-note { padding: 6px 12px 9px; font-size: 11px; color: var(--ly-dim); background: var(--ly-surface); text-align: center; }
@media (max-width: 600px) {
  .ly-root { right: 14px; bottom: 20px; }
  .ly-fab { width: 56px; height: 56px; transition: transform .25s ease, box-shadow .25s ease, opacity .2s ease; }
  .ly-root.is-typing .ly-fab, .ly-root.is-typing .ly-bubble { opacity: 0; pointer-events: none; } /* r66 · 폼 입력 중 숨김 */
  .ly-bubble { right: 66px; bottom: 12px; font-size: 13px; }
  .ly-panel { position: fixed; left: 0; right: 0; bottom: 0; width: 100vw; max-width: none; height: 88svh; max-height: 88svh; border-radius: 20px 20px 0 0; }
  .ly-fab.is-open { display: none; }
  .ly-in { font-size: 16px; }
}

/* 프로필 확대 팝업 */
.ly-lb { position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(6,6,12,0.86); backdrop-filter: blur(4px); cursor: zoom-out; margin: 0; }
.ly-lb[hidden] { display: none; }
.ly-lb img { max-width: min(92vw, 560px); max-height: 86vh; width: auto; height: auto; border-radius: 50%; background: transparent; filter: drop-shadow(0 24px 60px rgba(0,0,0,0.6)); }
.ly-lb figcaption { position: absolute; left: 0; right: 0; bottom: 18px; text-align: center; color: #f3f3f8; font-size: 14px; font-weight: 700; text-shadow: 0 1px 6px rgba(0,0,0,0.8); }
.ly-lb button { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255,255,255,0.12); color: #fff; font-size: 24px; line-height: 1; cursor: pointer; }
