/* 소유: C1 · 하는 일: 동그라미 포인트 모양(검정 면 처리 + 옅은 딤, 라인 없음). js 는 expo/js/core/expo-spot.js
   expo-touch-49-ds 판(2026-10-13, 계획서 2.2). 조사 조각 $N/spot/expo-spot.css 를 그대로 옮김. 딤 세기는 tutorial.js 가 단계마다 넣는다(2026-10-13 오후 3차 번복: 첫 진입 16% · 창 안 12% · 휴대전화 안 10% · 결과 10% · 제품 모달 · 선택지 창 0%).
   2026-10-13 오후 번복(사용자 피드백): 테두리 선 + 라임 점을 없애고, 대상 자리에 흰 면을 더해 가장자리가 흐려지게 바꿈(선 대신 면 처리).
   ---------------------------------------------------------------- 동그라미 포인트 (박람회 시연 강조, 2026-10-12 제안)
   근거: 키오스크 카드1 이동식 스포트라이트(#s1spot, TEMPLATE-SSOT §2). 밝은 웍스 화면에 맞게 딤을 낮춤.
   2026-10-13 오후 3차 번복(사용자 캡처): 대상 위 흰 면보다 둘레를 어둡게 하는 쪽이 눈에 더 잘 띈다는 피드백 → 딤(둘레)을 강조의 중심으로 삼음.
   2026-10-13 오후 6차 번복(사용자 캡처 2장, 알림 목록 · 워키 질문 칩): 둘레 딤이 있어도 워키 대화창 · 알림함처럼 여러 줄이 함께 담긴 자리는
   「구멍」이 그 상자 전체를 밝혀 둘레 딤이 줄 하나하나를 가르지 못한다(제품 모달과 같은 처지). 그런 자리에서는 흰 면이 유일한 신호다.
   2026-10-13 오후 7차 번복(사용자 「진짜 너무 안보이는데」): 흰 면을 더 짙게 해도 여전히 안 보였던 까닭을 다시 봄. 이 목업 화면은 거의 다 흰 바탕이라,
   흰 면을 아무리 짙게 해도 흰 바탕 위에서는 밝기 차이가 거의 안 난다(흰색 + 흰색 = 흰색). 그래서 면의 색을 반대로 바꾼다: 짙은 바탕(딤)과 같은
   계열의 **검정 면**을 쓴다. 흰 바탕 위에서 밝게 띄우는 대신 살짝 그늘지게 해서 보이게 하는 방식이고, 둘레를 어둡게 하는 3차 번복과 같은 원리다.
   무대 좌표(1920×1080) 기준. 4K 는 무대 배율(2배)을 그대로 받는다. 색은 WDS 토큰만:
     딤 = --su-semantic-background-overlay 의 낮춘 값 · 대상 면 = 검정(text-default)의 옅은 투명도
   구조: .tour-spot(바깥 상자) 안에 구멍(.tour-spot__hole, 딤을 만듦)과 면(.tour-spot__ring, 대상을 그늘지게 하는 검정 면)이 따로 움직인다.
     구멍 = 밝게 남길 자리(대상 또는 대상이 든 창), 면 = 대상 둘레를 그늘지게 함. 둘이 같으면 같은 자리에 겹친다.
   2026-10-13 오후 8차 번복(사용자 「카나나처럼」, 카나나 키오스크 캡처): 첫 진입(entry, 각 시연의 맨 처음 누를 곳)만 지금처럼 대상 전체를 감싸고,
   그 밖 모든 누를 곳(워키 칩 · 알림 행 등 넓은 대상 포함)은 대상 크기와 상관없이 가운데에 작은 흰 점 하나 + 그 바로 뒤 옅은 검정 번짐만 둔다
   (.tour-spot__ring.is-compact, expo-spot.js COMPACT_R). 구멍(밝게 남는 자리)은 여전히 대상 전체라 글자 · 아이콘은 안 가려지고, 점만 작다
   2026-10-13 오후 9차 번복: 빈자리에는 반투명 원, 좁은 곳에는 속 빈 원을 놓고 도착 뒤 누름과 물결로 알린다 */
.tour-spot {
  --spot-dim: rgba(0, 0, 0, 0.16); /* expo-spot.js 가 단계마다 --spot-dim 을 다시 넣는다. 이 값은 그 전까지만 쓰는 기본값 */
  --spot-surface: rgba(19, 20, 22, 0.16); /* 대상 위 검정 면(라인 대신, 첫 진입 자리만 씀). 2026-10-13 오후 7차 번복: 흰 면 42% → 검정 면 16%(흰 바탕에서 흰 면은 안 보임) */
  --spot-surface-strong: rgba(19, 20, 22, 0.26); /* 숨쉬기 · 물결에서 한 번 더 짙게 */
  --spot-move: 0.7s;
  --spot-ease: cubic-bezier(0.3, 0, 0.2, 1);
  position: absolute;
  inset: 0;
  z-index: 9999990;
  overflow: hidden; /* 구멍 그림자가 무대 밖으로 나가지 않게 */
  pointer-events: none;
}
.tour-spot[hidden] { display: none; }
.tour-spot.is-over-booth { z-index: 10000001; } /* 누를 곳이 체험존 안일 때(지금 .tour-mark.is-over-booth 와 같은 층) */

.tour-spot__hole,
.tour-spot__ring {
  position: absolute;
  left: 0;
  top: 0;
  box-sizing: border-box;
  opacity: 0;
  pointer-events: none;
  transition:
    left var(--spot-move) var(--spot-ease),
    top var(--spot-move) var(--spot-ease),
    width var(--spot-move) var(--spot-ease),
    height var(--spot-move) var(--spot-ease),
    border-radius var(--spot-move) var(--spot-ease),
    opacity 0.25s ease;
  will-change: left, top, width, height;
}
/* 위치를 순간이동할 때(처음 나타날 자리 잡기) 움직임 없이 */
.tour-spot.is-snap .tour-spot__hole,
.tour-spot.is-snap .tour-spot__ring { transition: opacity 0.25s ease; }

/* 구멍: 바깥만 어둡게. 안쪽 가장자리를 같은 딤으로 살짝 번지게 해 경계가 칼선처럼 보이지 않게 */
.tour-spot__hole {
  box-shadow: 0 0 0 9999px var(--spot-dim), inset 0 0 18px 2px var(--spot-dim);
}
.tour-spot__hole.is-on { opacity: 1; }
/* 딤 세기는 expo-spot.js 가 구멍에 --spot-dim 으로 넣는다: 누를 곳 16% · 창 안 12% · 읽을 곳 10% · 휴대전화 틀 10% */

/* 면: 대상 자리 위에 검정 면을 덮고, 가장자리는 두 겹 흐림(가까운 쪽은 짙게 · 먼 쪽은 옅게)으로 번지게 해 테두리 선 없이도 또렷이 보이게 한다.
   흰 바탕이 거의 다인 화면이라 검정 면이라야 밝기 차이가 난다. 둘레 딤이 그 상자 전체(워키 대화창 · 알림함 등)를 밝히는 자리에서도 이 면 하나로
   또렷해야 하므로 딤 유무를 가리지 않고 세기를 하나로 쓴다 */
.tour-spot__ring {
  border: none;
  border-radius: inherit;
  background: var(--spot-surface);
  box-shadow:
    0 0 0 6px var(--spot-surface),
    0 0 44px 20px var(--spot-surface);
}
.tour-spot__ring.is-on { opacity: 1; }
.tour-spot__ring.is-read.is-on { opacity: 0.85; }
/* 2026-10-13 저녁 11차(사용자 「하이라이팅이 이상하게 … 전체적으로 딤 처리되어 있는 부분 어색해 … 그 부분이 잘 보일 수 있도록, 딤을 너무 세게 하지는 말고」):
   읽을 곳(결과 · 카드 · 위험요인 행)도 첫 진입처럼 그 자리를 검정 면 · 번짐으로 덮지 않고 밝게 비운 뒤 흰 빛 테두리로 짚는다(둘레 딤 18%, expo-spot.js) */
.tour-spot__ring.is-read {
  background: transparent;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.92), 0 0 18px 5px rgba(255, 255, 255, 0.5);
}
.tour-spot__ring.is-read.is-on { opacity: 1; }
.tour-spot.is-read-area .tour-spot__hole { box-shadow: 0 0 0 9999px var(--spot-dim), inset 0 0 4px 1px var(--spot-dim); }

/* 누를 곳: 숨쉬기(1.6초, 면이 살짝 짙어졌다 옅어짐). 읽을 곳은 숨쉬지 않는다 */
.tour-spot__ring.is-tap.is-on { animation: tour-spot-breathe 1.6s ease-in-out 0.7s infinite; }
@keyframes tour-spot-breathe {
  0%, 100% { background: var(--spot-surface); box-shadow: 0 0 0 6px var(--spot-surface), 0 0 44px 20px var(--spot-surface); }
  50% { background: var(--spot-surface-strong); box-shadow: 0 0 0 8px var(--spot-surface-strong), 0 0 48px 22px var(--spot-surface-strong); }
}

/* 2026-10-13 저녁 10차 번복(사용자 「처음 선택할 때 저 영역 너무 안 보이니까 잘 보이게 해줘」, 캡처: 워키 버튼 둘레가 회색 번짐으로만 보임):
   첫 누를 곳(entry)은 대상 자리를 검정 면으로 덮지 않고 비워 둘레 딤(30%, tutorial.js SPOT_ALPHA)보다 밝게 남긴다.
   둘레는 흰 빛 테두리(2px + 흐린 빛)로 짚고 1.6초마다 빛이 살짝 커진다. 검정 번짐 · 회색 면은 쓰지 않는다 */
.tour-spot.is-entry .tour-spot__hole {
  box-shadow: 0 0 0 9999px var(--spot-dim), inset 0 0 4px 1px var(--spot-dim);
}
.tour-spot__ring.is-tap:not(.is-compact) {
  background: transparent;
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.92),
    0 0 18px 5px rgba(255, 255, 255, 0.55);
}
.tour-spot__ring.is-tap:not(.is-compact).is-on { animation: tour-spot-breathe-entry 1.6s ease-in-out 0.7s infinite; }
@keyframes tour-spot-breathe-entry {
  0%, 100% { box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.92), 0 0 18px 5px rgba(255, 255, 255, 0.55); }
  50% { box-shadow: 0 0 0 3px rgba(255, 255, 255, 1), 0 0 28px 9px rgba(255, 255, 255, 0.75); }
}
.tour-spot__ring.is-tap:not(.is-compact) > b {
  background: transparent;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9);
}

/* 헤맬 때 한 번 퍼지는 물결 (엉뚱한 곳 누름 · 6초 무누름 뒤 도착 순간). 면과 같은 자리에서 옅게 커졌다 사라짐. 1 → 1.4, 0.7초 × 2번 */
.tour-spot__ring > b {
  position: absolute;
  inset: -3px;
  border-radius: inherit;
  background: var(--spot-surface-strong);
  opacity: 0;
}
.tour-spot__ring.is-nudge > b { animation: tour-spot-ripple 0.7s ease-out 2; }
@keyframes tour-spot-ripple {
  0% { transform: scale(1); opacity: 0.85; }
  100% { transform: scale(1.4); opacity: 0; }
}

/* 맞는 곳을 누른 순간: 면이 살짝 눌렸다가 사라진다 */
.tour-spot__ring.is-tap.is-on.is-press,
.tour-spot__ring.is-press { animation: tour-spot-press 0.22s ease-out forwards; }
@keyframes tour-spot-press {
  0% { transform: scale(1); }
  100% { transform: scale(0.92); opacity: 0; }
}

/* 일시정지: 숨쉬기 · 물결을 그 자리에 멈춘다(미끄러짐 0.7초는 짧은 전환이라 끝 모양으로 둔다, 2026-10-06 규칙) */
.tour-spot.is-paused .tour-spot__ring,
.tour-spot.is-paused .tour-spot__ring > b { animation-play-state: paused; }

@media (prefers-reduced-motion: reduce) {
  .tour-spot__hole, .tour-spot__ring { transition: opacity 0.2s ease; }
  .tour-spot__ring.is-tap.is-on, .tour-spot__ring.is-nudge > b { animation: none; }
}

/* 2026-10-13 오후 9차 번복: 원의 실제 상자는 고정하고 안쪽 면만 눌린다. */
.tour-spot * { pointer-events: none; }
.tour-spot__surface { display: none; }
.tour-spot__ring.is-compact { background: transparent; border: 0; box-shadow: none; transform: none; }
.tour-spot__ring.is-compact.is-tap.is-on { animation: none; }
/* 2026-10-13 저녁 11차(사용자 「살짝 라임 묻은 색 … 흰색이라서 모니터에서 안 보일 수 있을 거 같은데 그런 거까지 고려해서」):
   흰 반투명 면 → 옅은 라임 면(WDS lime-500 #EDFF00 35%) + 라임 테두리(lime-600 #C1D000) + 바깥 얇은 검정 선 1px.
   흰 바탕 · 밝은 모니터에서는 검정 선과 라임 테두리가 둘레를 잡고, 검정 버튼 위에서는 라임 면 · 테두리가 보인다. 첫 진입 · 읽을 곳은 흰 빛 그대로
   2026-10-16 PO 08:02 「선 색상을 사아아알짝만 연하게」: 라임 테두리 lime-600 100% → 85%, 바깥 검정 선 38% → 32%(같은 0.85배). 면 · 두께 · 첫 진입 · 읽을 곳은 그대로.
   원 크기 1.3배는 expo-spot.js POINTER_D 등(57 · 47 · 42 · 36) */
.tour-spot__ring.is-compact > .tour-spot__surface {
  display: block; position: absolute; inset: 0; box-sizing: border-box; border-radius: 50%;
  background: rgba(237,255,0,.35); border: 2px solid rgba(193,208,0,.85);
  box-shadow: 0 0 0 1px rgba(19,20,22,.32), 0 2px 8px rgba(19,20,22,.22), inset 0 0 0 1px rgba(255,255,255,.5);
  transform-origin: center;
}
.tour-spot__ring.is-compact.is-hollow > .tour-spot__surface {
  background: transparent; border: 2.5px solid rgba(193,208,0,.85);
  box-shadow: 0 0 0 1px rgba(19,20,22,.32), inset 0 0 0 1px rgba(19,20,22,.25), 0 1px 5px rgba(19,20,22,.18);
}
.tour-spot__ring.is-compact > b {
  inset: 0; box-sizing: border-box; border-radius: 50%; background: transparent;
  border: 2px solid rgba(193,208,0,.85); box-shadow: 0 0 0 1px rgba(19,20,22,.25); opacity: 0;
}
.tour-spot__ring.is-compact.is-idle > .tour-spot__surface { animation: tour-spot-idle-press 2.4s ease-in-out infinite; }
.tour-spot__ring.is-compact.is-idle > b { animation: tour-spot-idle-ripple 2.4s ease-out infinite; }
@keyframes tour-spot-idle-press { 0%, 24%, 100% { transform: scale(1); } 10% { transform: scale(.92); } }
@keyframes tour-spot-idle-ripple { 0% { transform: scale(1); opacity: .45; } 32%, 100% { transform: scale(1.45); opacity: 0; } }
.tour-spot__ring.is-compact.is-moving > .tour-spot__surface {
  background: rgba(237,255,0,.35); opacity: .7; border: 2px solid rgba(193,208,0,.85);
  box-shadow: 0 0 0 1px rgba(19,20,22,.32), 0 2px 8px rgba(19,20,22,.22), inset 0 0 0 1px rgba(255,255,255,.5);
}
.tour-spot__ring.is-compact.is-nudge > b { animation: tour-spot-nudge-compact .6s ease-out 2; }
@keyframes tour-spot-nudge-compact { from { transform: scale(1); opacity: .45; } to { transform: scale(1.5); opacity: 0; } }
.tour-spot__ring.is-compact.is-tap.is-on.is-press { animation: tour-spot-compact-fade .22s ease-out forwards; }
.tour-spot__ring.is-compact.is-press > .tour-spot__surface { animation: tour-spot-compact-press .22s ease-out forwards; }
.tour-spot__ring.is-compact.is-press > b { animation: none; opacity: 0; }
@keyframes tour-spot-compact-fade { to { opacity: 0; } }
@keyframes tour-spot-compact-press { to { transform: scale(.88); } }
.tour-spot.is-paused .tour-spot__ring.is-compact,
.tour-spot.is-paused .tour-spot__ring.is-compact > .tour-spot__surface,
.tour-spot.is-paused .tour-spot__ring > b { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .tour-spot__hole, .tour-spot__ring,
  .tour-spot.is-snap .tour-spot__hole, .tour-spot.is-snap .tour-spot__ring { transition: opacity .16s ease; }
  .tour-spot__ring.is-compact.is-idle > .tour-spot__surface,
  .tour-spot__ring.is-compact.is-idle > b,
  .tour-spot__ring.is-compact.is-nudge > b,
  .tour-spot__ring.is-compact.is-press > .tour-spot__surface { animation: none; transform: none; }
  .tour-spot__ring.is-compact.is-tap.is-on.is-press { animation: tour-spot-compact-fade .12s linear forwards; }
}

/* 11/17 P6 덧붙임(대표 「여긴 왜... 가려져있어」 · 로그인 가이드 2단계 아이디 라벨이 첫 누를 곳 빛에 덮임):
   첫 누를 곳이 입력 필드면 build-mine 이 알약 대신 입력 필드에 딱 맞춘 둥근 네모(바깥 4px · 둥근 12px)로 그리고 is-field 를 붙인다.
   흰 테두리 2px 는 그대로 두고, 바깥 빛은 번짐 6px · 퍼짐 1px 안에서만 숨쉬어 위아래 라벨 · 글자를 덮지 않게 한다. 위 규칙은 고치지 않는다 */
.tour-spot__ring.is-tap.is-field:not(.is-compact) {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.92), 0 0 4px 0 rgba(255, 255, 255, 0.5);
}
.tour-spot__ring.is-tap.is-field:not(.is-compact).is-on { animation: tour-spot-breathe-field 1.6s ease-in-out 0.7s infinite; }
@keyframes tour-spot-breathe-field {
  0%, 100% { box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.92), 0 0 4px 0 rgba(255, 255, 255, 0.5); }
  50% { box-shadow: 0 0 0 2px rgba(255, 255, 255, 1), 0 0 6px 1px rgba(255, 255, 255, 0.75); }
}
.tour-spot__ring.is-tap.is-field.is-on.is-press { animation: tour-spot-press 0.22s ease-out forwards; }
@media (prefers-reduced-motion: reduce) {
  .tour-spot__ring.is-tap.is-field:not(.is-compact).is-on { animation: none; }
}
