/* 자비(3D 마스코트) · 안내 말풍선 · 비스 — 공통 틀(layout) 화면과 무료 도구(하한선 계산기 · 미달 진단, 홈 디자인) 화면이 함께 쓴다.
   위치는 javi-roam.js · javi-guide.js 가 CSSOM 으로 정한다. 안내 버튼 말고는 클릭이 통과한다 */
.hbtn-javi.is-off { opacity: 0.36; }
.javi-canvas { position: fixed; left: 0; top: 0; z-index: 25; pointer-events: none; transition: opacity 0.3s; }
.javi-canvas.is-gone { opacity: 0; }
/* 자비 안내 말풍선(시안 `이츠자비스 자비 말풍선`) — 위치는 javi-guide.js 가 CSSOM 으로 정한다. 안내 버튼 말고는 클릭이 통과한다 */
.javi-spot { position: fixed; left: 0; top: 0; z-index: 24; border: 2px solid #0DC8FE; border-radius: 10px; box-shadow: 0 0 0 4px rgba(13, 200, 254, .22); pointer-events: none; transition: transform .2s, width .2s, height .2s; }
.javi-spot[hidden], .javi-bubble[hidden], .javi-bubble-act[hidden], .javi-bubble-src[hidden] { display: none; }
.javi-bubble { position: fixed; left: 0; top: 0; z-index: 27; display: flex; gap: 10px; width: max-content; max-width: 320px; padding: 10px 14px; border-radius: 10px; background: var(--c-ink, #141a24); color: #fff; font-size: 14px; line-height: 1.5; box-shadow: 0 6px 18px rgba(20, 26, 36, .22); pointer-events: none; }
.javi-bubble-img { display: none; }
.javi-bubble-col { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.javi-bubble-text { word-break: keep-all; overflow-wrap: anywhere; }
.javi-bubble-src { font-size: 12px; color: #cfd6e2; }
.javi-bubble-act { display: flex; justify-content: flex-end; gap: 6px; margin-top: 4px; pointer-events: auto; }
.javi-bubble-act button { min-height: 32px; padding: 0 10px; border-radius: 6px; font-family: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.javi-bubble-skip { border: 0; background: transparent; color: #cfd6e2; }
.javi-bubble-next { border: 0; background: #0DC8FE; color: var(--c-ink, #141a24); }
.javi-bubble-go { display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border-radius: 6px; background: #0DC8FE; color: var(--c-ink, #141a24); font-size: 13px; font-weight: 700; }
.javi-bubble-go[hidden], .javi-bubble-skip[hidden], .javi-bubble-next[hidden], .javi-bubble-fig[hidden], .javi-bubble-img[hidden], .vis-fly[hidden] { display: none; }
.javi-bubble.is-vis { background: #101a33; border: 1px solid rgba(13, 200, 254, .55); }
.javi-bubble-fig { display: none; }
.vis-fly { position: fixed; left: 0; top: 0; z-index: 26; width: 150px; height: 100px; pointer-events: none; }
/* 동그라미 설명(시안 `이츠자비스 자비 동그라미 설명`) — 자비 둘레 고리 · 위쪽 안내 줄 · 흐린 흔적 · 커서 옆 바퀴 원 · 반짝 닫히는 원. 위치는 스크립트 */
.javi-ring { position: fixed; left: 0; top: 0; z-index: 24; border: 3px solid #0DC8FE; border-radius: 50%; box-shadow: 0 0 0 6px rgba(13, 200, 254, .18); pointer-events: none; animation: javi-arm 1.2s ease-in-out infinite; }
.javi-ring[hidden], .javi-hint[hidden] { display: none; }
@keyframes javi-arm { 50% { box-shadow: 0 0 0 12px rgba(13, 200, 254, .06); } }
.javi-hint { position: fixed; left: 50%; top: 76px; z-index: 28; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: 999px; background: rgba(26, 45, 90, .92); color: #fff; font-size: 13.5px; font-weight: 700; white-space: nowrap; pointer-events: none; box-shadow: 0 6px 18px rgba(20, 26, 36, .22); }
.javi-hint i { font-style: normal; color: #7fe3ff; }
.javi-trail { position: fixed; inset: 0; z-index: 23; width: 100%; height: 100%; pointer-events: none; display: none; }
.javi-trail.is-on { display: block; }
.javi-trail polyline { fill: none; stroke: #0DC8FE; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; opacity: .55; }
.javi-shut { fill: rgba(13, 200, 254, .10); stroke: #0DC8FE; stroke-width: 3; opacity: 0; }
.javi-trail.is-shut .javi-shut { animation: javi-shut .6s ease-out both; }
.javi-trail.is-shut polyline { opacity: 0; transition: opacity .3s; }
@keyframes javi-shut { 40% { opacity: 1; } 100% { opacity: 0; } }
.javi-lap { position: fixed; left: 0; top: 0; z-index: 28; width: 34px; height: 34px; pointer-events: none; display: none; }
.javi-lap.is-on { display: block; }
.javi-lap circle { fill: none; stroke-width: 4; }
.javi-lap .bg { stroke: rgba(13, 200, 254, .18); }
.javi-lap .fg { stroke: #0DC8FE; stroke-linecap: round; transform: rotate(-90deg); transform-origin: 50% 50%; }
@media (prefers-reduced-motion: reduce) { .javi-ring, .javi-trail.is-shut .javi-shut { animation: none; } }

/* 휴대폰 · 자비를 숨긴 때 — 아래쪽 카드(하단 메뉴가 있으면 그 위, 없는 화면은 화면 바닥 위) */
@media (max-width: 1023px) {
  .javi-bubble.is-card { left: 12px; right: 12px; top: auto; bottom: calc(var(--m-tabbar, 0px) + env(safe-area-inset-bottom, 0px) + 8px); width: auto; max-width: 696px; margin: 0 auto; transform: none !important; }
  .javi-bubble.is-card .javi-bubble-img { display: block; flex: none; width: 46px; height: 59px; object-fit: contain; }
  .javi-bubble.is-card .javi-bubble-fig { display: block; flex: none; width: 54px; height: 66px; }
  .javi-bubble.is-card .javi-bubble-fig.is-wait { position: absolute; opacity: 0; }
  .javi-bubble.is-card .javi-bubble-col { flex: 1; }
  .javi-bubble-act button { min-height: 40px; padding: 0 14px; }
}
