/* onboard.css — 첫 실행 안내(스포트라이트 코치마크, js/onboard.js · 2026-11-20 밤)
   앱 색·글꼴·모서리 그대로(cinema.css 토큰). 덮개는 body 바로 아래(홈을 다시 그려도 지워지지 않게) — .cine 밖이라 토큰만 쓴다. */
.ob-root {
  position: fixed; inset: 0; z-index: 2147482000; /* 창·탭 막대·알림 위, 필름 그레인(2147483000) 아래 */
  touch-action: none; -webkit-tap-highlight-color: transparent;
  font-family: var(--f-ui), sans-serif; color: var(--c-text);
  opacity: 0; transition: opacity 220ms cubic-bezier(.23, 1, .32, 1);
}
.ob-root.is-on { opacity: 1; }
.ob-root.is-closing { opacity: 0; transition-duration: 180ms; }
/* 노치·홈 막대를 뺀 화면(자리 계산용, 보이지 않음) */
.ob-safe {
  position: fixed; pointer-events: none; visibility: hidden;
  top: env(safe-area-inset-top, 0px); right: env(safe-area-inset-right, 0px);
  bottom: env(safe-area-inset-bottom, 0px); left: env(safe-area-inset-left, 0px);
}
/* 비추는 구멍: 나머지는 큰 그림자로 어둡게 + 금색 테두리 */
.ob-hole {
  position: fixed; pointer-events: none; border-radius: 14px;
  box-shadow: 0 0 0 200vmax rgba(5, 4, 3, .74), 0 0 0 2px var(--c-gold), 0 0 22px 2px rgba(232, 181, 77, .45);
  transition: left 320ms cubic-bezier(.23, 1, .32, 1), top 320ms cubic-bezier(.23, 1, .32, 1), width 320ms cubic-bezier(.23, 1, .32, 1), height 320ms cubic-bezier(.23, 1, .32, 1), border-radius 320ms;
}
/* 말풍선 */
.ob-bubble {
  position: fixed; box-sizing: border-box; padding: 16px 16px 12px;
  border-radius: var(--r-card, 14px); background: var(--c-surface, #1c1814); /* 불투명: 뒤 그림이 글 밑에 비치지 않게 */
  box-shadow: inset 0 0 0 1px var(--c-line2), 0 18px 40px rgba(0, 0, 0, .6);
  transition: left 320ms cubic-bezier(.23, 1, .32, 1), top 320ms cubic-bezier(.23, 1, .32, 1);
}
.ob-bubble::before { /* 꼬리: 비춘 곳 쪽 */
  content: ""; position: absolute; left: var(--ob-tail, 50%); width: 12px; height: 12px; margin-left: -6px;
  background: inherit; transform: rotate(45deg); box-shadow: inset 1px 1px 0 0 var(--c-line2);
}
.ob-bubble[data-side='below']::before { top: -6px; }
.ob-bubble[data-side='above']::before { bottom: -6px; transform: rotate(225deg); }
.ob-text {
  margin: 0 0 12px; font-size: 15px; line-height: 1.55; font-weight: 500; letter-spacing: .01em;
  color: var(--c-text); text-wrap: balance; overflow-wrap: anywhere;
}
html[data-lang='ko'] .ob-text { word-break: keep-all; }
.ob-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ob-dots { display: inline-flex; gap: 6px; flex: none; padding-left: 2px; }
.ob-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(244, 237, 225, .22); transition: background-color 200ms, transform 200ms; }
.ob-dots i.is-past { background: rgba(232, 181, 77, .45); }
.ob-dots i.is-on { background: var(--c-gold); transform: scale(1.15); }
.ob-btns { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.ob-root .ob-btns .btn { min-height: 44px; padding: 0 16px; font-size: 14px; letter-spacing: .03em; white-space: nowrap; }
.ob-root .ob-skip { color: var(--c-text2); box-shadow: none; padding: 0 10px; }
.ob-root .ob-next { min-width: 92px; }
/* 안내 중엔 뒤 홈이 굴러가지 않게 */
html.ob-open .app { overscroll-behavior: contain; }
/* 움직임 줄이기: 애니메이션 없음 */
.ob-still, .ob-still .ob-hole, .ob-still .ob-bubble, .ob-still .ob-dots i { transition: none !important; }
@media (prefers-reduced-motion: reduce) {
  .ob-root, .ob-hole, .ob-bubble, .ob-dots i { transition: none !important; }
}
