/* 공통 온보딩 코치마크(tour.js). 사이트 테마 토큰(var(--card-hi) 등)을 그대로 쓰고,
   반투명 딤드 배경 색만 라이트/다크에 따라 뒤집는다(다른 곳에 없는 값이라 직접 정의한다). */
:root { --tour-dim: rgba(6, 8, 12, .68); }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) { --tour-dim: rgba(255, 255, 255, .7); }
}
:root[data-theme="light"] { --tour-dim: rgba(255, 255, 255, .7); }

/* top-button(16px)·page-share(68px) 위에 이어서 쌓는 세 번째 플로팅 버튼. */
.tour-help {
  position: fixed; right: 16px; bottom: calc(120px + env(safe-area-inset-bottom, 0px)); z-index: 50;
  width: 44px; height: 44px; margin: 0; padding: 0;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line, #262D38); border-radius: 50%;
  background: var(--card-hi, #1D232C); color: var(--text, #F2F4F7);
  font-size: 16px; font-weight: 800; line-height: 1; cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .2);
  transition: border-color .2s, background .2s, transform .15s;
}
.tour-help:hover { border-color: var(--accent, #4C8DFF); background: var(--card, #171B22); }
.tour-help:active { transform: scale(.94); }
.tour-help:focus-visible { outline: 2px solid var(--accent, #4C8DFF); outline-offset: 2px; }

.tour-skip {
  position: fixed; z-index: 1001; top: max(58px, calc(58px + env(safe-area-inset-top, 0px))); right: 14px;
  border: 0; background: transparent; color: rgba(255, 255, 255, .85);
  font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; padding: 8px 6px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .6);
}
.tour-skip:focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-radius: 6px; }

/* 강조 사각형을 둘러싼 네 조각. 사각형 자리 자체는 비워 두어 실제 요소가 평소처럼 클릭된다. */
.tour-scrim-band { position: fixed; z-index: 999; cursor: pointer; background: transparent; }

.tour-spot {
  position: fixed; z-index: 1000; pointer-events: none;
  border: 2px solid var(--accent, #4C8DFF);
  box-shadow: 0 0 0 9999px var(--tour-dim);
  transition: left .25s ease, top .25s ease, width .25s ease, height .25s ease;
}

.tour-caption {
  position: fixed; z-index: 1001; left: 16px; max-width: min(320px, calc(100% - 32px));
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 8px 8px 14px; border-radius: 999px;
  background: var(--card-hi, #1D232C); border: 1px solid var(--line, #262D38);
  box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .5);
  transition: top .25s ease;
}
.tour-caption .tour-badge {
  flex: none; width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent, #4C8DFF); color: var(--accent-ink, #fff);
  font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center;
}
.tour-caption .tour-text { font-size: 13px; font-weight: 700; color: var(--text, #F2F4F7); }
.tour-caption .tour-next {
  flex: none; width: 28px; height: 28px; border: 0; border-radius: 50%;
  background: var(--card, #171B22); color: var(--text, #F2F4F7); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.tour-caption .tour-next:hover { background: var(--accent, #4C8DFF); color: var(--accent-ink, #fff); }
.tour-caption .tour-next:focus-visible { outline: 2px solid var(--accent, #4C8DFF); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  .tour-spot, .tour-caption { transition: none; }
}
