/* 따라 하기(guide.js): 눌러야 할 곳만 밝고 나머지는 어둡게 눌리지 않는 안내. 공동체 앱과 기도 노트가 함께 쓴다 */
.kg { position: fixed; z-index: 100; pointer-events: none; overflow: hidden; }
/* 구멍 둘레: 어둡게 하는 일은 구멍의 그림자가 맡고(모서리가 둥글게 뚫린다), 아래 막이 판들이 눌림만 막는다 */
.kg-ring { position: absolute; border-radius: 14px; pointer-events: none; box-shadow: 0 0 0 2.5px var(--accent), 0 0 0 9999px rgb(0 0 0 / .6); }
.kg-ring[hidden] { display: none; }
.kg-anim .kg-ring { transition: left .28s ease, top .28s ease, width .28s ease, height .28s ease; }
.kg-b, .kg-shield, .kg-full { position: absolute; pointer-events: auto; touch-action: none; }
.kg-full { inset: 0; background: rgb(0 0 0 / .6); }
.kg-full[hidden], .kg-shield[hidden] { display: none; }
.kg-full.kg-clear { background: transparent; } /* 띠만 보일 때: 어둡지 않고 눌림만 막는 투명한 판 */
.kg-inert { background: transparent; }
.kg-bubble { position: absolute; pointer-events: auto; box-sizing: border-box; width: min(380px, calc(100% - 32px)); max-height: calc(100% - 24px); overflow-y: auto; background: var(--surface); color: var(--ink); border: 1px solid var(--line-strong); border-radius: 18px; padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; box-shadow: 0 10px 34px var(--shadow); outline: none; }
.kg-anim .kg-bubble { transition: left .28s ease, top .28s ease; }
.kg-tight { padding: 8px 12px 10px; gap: 4px; }
.kg-tight .kg-text { line-height: 1.45; }
.kg-tight .kg-head { min-height: 0; }
.kg-tight .kg-act .btn { min-height: 40px; }
.kg-head { display: flex; justify-content: space-between; align-items: center; min-height: 28px; gap: 8px; }
.kg-count { font-size: .8em; font-weight: 600; color: var(--ink-2); }
.kg-title { font-family: var(--f-display); font-size: 1.15em; line-height: 1.35; margin: 0; word-break: keep-all; }
.kg-text { margin: 0; font-size: 1.08em; line-height: 1.6; word-break: keep-all; }
.kg-act { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; justify-content: flex-end; }
.kg-act .btn { min-height: 48px; padding: 0 1.4em; }
/* 마지막 [시작하기]: 말풍선 가로를 가득 채운 큰 단추 */
.kg-act.kg-final .btn { flex: 1 1 100%; min-height: 56px; font-size: 1.12em; font-weight: 700; }
.kg-tight .kg-act.kg-final .btn { min-height: 48px; }
/* 말풍선이 구멍을 가리키는 작은 마름모(말풍선 바깥에 따로 둔다: 말풍선이 길면 안에서 스크롤되어 잘리므로). 구멍과 겹치면 감춘다 */
.kg-arrow { position: absolute; pointer-events: none; width: 14px; height: 14px; background: var(--surface); border: 1px solid var(--line-strong); transform: rotate(45deg); }
.kg-arrow[hidden] { display: none; }
.kg-arrow.up { border-right: 0; border-bottom: 0; }
.kg-arrow.down { border-left: 0; border-top: 0; }
@media (prefers-reduced-motion: reduce) { .kg-anim .kg-ring, .kg-anim .kg-bubble { transition: none; } }
/* 쓰는 중 알약: 글 칸에 커서가 있는 동안 막과 눌림 막는 판은 모두 걷히고, 말풍선이 보이는 화면 맨 위의 얇은 알약으로 줄어든다.
   알약의 세로 자리는 guide.js가 보이는 화면이 움직일 때만 transform으로 맞춘다(스크롤이나 칸 크기는 건드리지 않는다) */
.kg.kg-typing { left: 0 !important; top: 0 !important; width: 100% !important; height: 0 !important; overflow: visible; }
.kg-bar { left: 8px; top: calc(env(safe-area-inset-top, 0px) + 8px); min-height: 54px; width: calc(100% - 16px); flex-direction: row; align-items: center; gap: 10px; padding: 6px 8px 6px 14px; border-radius: 14px; max-height: none; overflow: visible; will-change: transform; }
.kg-bar .kg-text { flex: 1; min-width: 0; margin: 0; font-size: .95em; line-height: 1.4; }
.kg-bar .kg-act { flex: none; }
.kg-bar .kg-act .btn { min-height: 40px; padding: 0 1.1em; white-space: nowrap; }
/* 이전·다음: 둘러보기에서는 [이전]이 왼쪽 끝, 누르는 단계에서는 머리 줄 오른쪽의 작은 글자 단추 */
.kg-act .kg-prev { margin-right: auto; }
.kg-act .btn.ghost { min-height: 48px; }
.kg-head .kg-prev { margin-left: auto; min-height: 28px; padding: 0 .2em; }
