/*
 * 화면 안내(투어) (2026-10-23) — 스포트라이트·말풍선·하단 이동 막대·단계 목록·환영 창. 엔진 = Stimulus screen-tour. 색은 전부 테마 토큰.
 * z-index: 안내 레이어 9600 (rmm 모달 1500~8000·태스크바 9000 위, gem 확인창 10000 아래). 움직임 줄이기 설정이면 전환 없음.
 */
.st-layer { position: fixed; inset: 0; }
.st-shield { position: absolute; inset: 0; }
.st-spot { position: fixed; border-radius: 10px; box-shadow: 0 0 0 9999px rgba(8, 14, 24, .62); pointer-events: none;
  transition: top .35s ease, left .35s ease, width .35s ease, height .35s ease, opacity .2s ease; }
.st-spot::after { content: ""; position: absolute; inset: -4px; border-radius: 13px; border: 2px solid var(--ord-accent); animation: st-pulse 1.8s ease-out infinite; }
@keyframes st-pulse { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(1.06); } }
.st-card { position: fixed; width: 340px; max-width: calc(100vw - 24px); background: var(--ord-surface); color: var(--ord-text); border: 1px solid var(--ord-line-2); border-radius: 12px;
  box-shadow: var(--ord-shadow); padding: 14px 16px 12px; transition: top .35s ease, left .35s ease, opacity .2s ease; }
.st-card.is-swap { opacity: 0; }
.st-card-top { display: flex; align-items: center; font-size: 11.5px; color: var(--ord-text-3); margin-bottom: 4px; }
.st-x { margin-left: auto; border: 0; background: none; color: var(--ord-text-3); font-size: 18px; line-height: 1; padding: 0 2px; cursor: pointer; }
.st-title { margin: 0 0 6px; font-size: 15px; font-weight: 800; line-height: 1.35; }
.st-what { margin: 0 0 8px; font-size: 13px; line-height: 1.55; color: var(--ord-text-2); }
.st-why, .st-tip { margin: 0 0 6px; font-size: 12.5px; line-height: 1.5; color: var(--ord-text-2); }
.st-why b, .st-tip b { color: var(--ord-accent-strong); margin-right: 6px; }
.st-tip { padding: 6px 9px; border-radius: 8px; background: var(--ord-band); border: 1px solid var(--ord-line-soft); }
.st-act { margin-top: 10px; display: flex; justify-content: flex-end; }
.st-ghost { position: fixed; z-index: 2; pointer-events: none; border-radius: 2px; background: var(--ord-accent); opacity: .85; }
.st-ghost.is-h, .st-ghost.is-v { box-shadow: 0 0 0 2px var(--ord-focus-ring); }
.st-btn { padding: 5px 13px; border-radius: 999px; border: 1px solid var(--ord-line-2); background: var(--ord-surface); color: var(--ord-text-2); font-size: 12.5px; font-weight: 600; cursor: pointer; }
.st-btn.is-primary { background: var(--ord-accent); border-color: var(--ord-accent); color: var(--ord-on-accent); }
.st-btn.is-link { border: 0; background: none; color: var(--ord-text-3); padding: 5px 4px; }
.st-btn[disabled] { opacity: .4; cursor: default; }
/* 이전·다음은 말풍선을 따라다니지 않고 화면 하단 중앙에 고정 */
.st-nav { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 4; display: flex; align-items: center; gap: 10px; padding: 8px 12px; white-space: nowrap;
  background: var(--ord-surface); border: 1px solid var(--ord-line-2); border-radius: 999px; box-shadow: var(--ord-shadow); }
.st-nav[hidden], .st-toc[hidden], .st-cursor[hidden] { display: none; }
.st-nav-mid { display: flex; flex-direction: column; align-items: center; gap: 5px; min-width: 130px; }
.st-count { font-size: 11.5px; font-weight: 700; color: var(--ord-text-2); font-variant-numeric: tabular-nums; }
.st-dots { display: flex; gap: 5px; }
.st-dots button { width: 8px; height: 8px; padding: 0; border-radius: 50%; border: 0; background: var(--ord-line-2); cursor: pointer; transition: transform .2s, background .2s; }
.st-dots button.is-done { background: var(--ord-accent); opacity: .5; }
.st-dots button.is-on { background: var(--ord-accent); transform: scale(1.35); }
.st-sep { width: 1px; height: 20px; background: var(--ord-line-2); }
.st-toc { position: fixed; top: 0; right: 0; bottom: 0; width: 300px; max-width: 88vw; background: var(--ord-surface); border-left: 1px solid var(--ord-line-2); box-shadow: var(--ord-shadow);
  padding: 14px 12px; overflow: auto; z-index: 5; }
.st-toc-h { display: flex; align-items: center; font-weight: 800; margin-bottom: 8px; }
.st-toc-ch { margin: 10px 6px 4px; font-size: 11.5px; font-weight: 700; color: var(--ord-text-3); }
.st-toc-it { display: flex; gap: 9px; width: 100%; text-align: left; padding: 7px 8px; border: 0; background: none; border-radius: 8px; color: var(--ord-text); font-size: 12.5px; align-items: flex-start; cursor: pointer; }
.st-toc-it:hover { background: var(--ord-surface-2); }
.st-toc-it.is-on { background: var(--ord-band); font-weight: 700; }
.st-toc-it .n { flex: none; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--ord-band); color: var(--ord-text-3); font-size: 11px; font-weight: 700; border: 1px solid var(--ord-line); }
.st-toc-it.is-seen .n { background: var(--ord-accent); color: var(--ord-on-accent); border-color: var(--ord-accent); }
.st-toc-f { margin-top: 12px; display: flex; gap: 6px; }
.st-cursor { position: fixed; z-index: 3; pointer-events: none; transition: left .7s cubic-bezier(.4, 0, .2, 1), top .7s cubic-bezier(.4, 0, .2, 1); filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .35)); }
.st-ripple { position: absolute; left: 2px; top: 2px; width: 22px; height: 22px; margin: -9px 0 0 -9px; border-radius: 50%; border: 2px solid var(--ord-accent); opacity: 0; }
.st-cursor.is-click .st-ripple { animation: st-click .45s ease-out; }
@keyframes st-click { 0% { opacity: 1; transform: scale(.3); } 100% { opacity: 0; transform: scale(1.6); } }
/* 첫 진입 환영 창 */
.st-welcome { position: fixed; inset: 0; z-index: 9650; background: rgba(8, 14, 24, .55); display: grid; place-items: center; padding: 16px; }
.st-w-box { width: min(440px, 100%); background: var(--ord-surface); color: var(--ord-text); border-radius: 14px; padding: 20px 22px 16px; box-shadow: var(--ord-shadow); animation: st-pop .3s ease; }
@keyframes st-pop { from { transform: translateY(8px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
.st-w-box h3 { margin: 0 0 6px; font-size: 17px; line-height: 1.35; }
.st-w-lead { margin: 0 0 10px; color: var(--ord-text-2); font-size: 13px; }
.st-w-box ul { margin: 0 0 12px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.st-w-box li { display: flex; gap: 8px; font-size: 12.5px; color: var(--ord-text-2); }
.st-w-box li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: 6px; border-radius: 50%; background: var(--ord-accent); }
.st-w-foot { display: flex; align-items: center; gap: 8px; }
.st-w-foot label { margin-right: auto; display: inline-flex; gap: 5px; align-items: center; font-size: 12px; color: var(--ord-text-3); }
/* 런처(제목줄의 «화면 안내» 버튼 + 메뉴) */
.st-launch { position: relative; margin-left: auto; }
.st-launch-btn { display: inline-flex; align-items: center; gap: 6px; padding: 5px 13px; border: 1px solid var(--ord-accent); border-radius: 999px; background: var(--ord-surface); color: var(--ord-accent-strong); font-weight: 700; font-size: 12.5px; cursor: pointer; }
.st-launch-btn b { display: inline-grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; background: var(--ord-accent); color: var(--ord-on-accent); font-size: 11px; }
.st-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 60; width: 250px; padding: 6px; background: var(--ord-surface); border: 1px solid var(--ord-line); border-radius: 10px; box-shadow: var(--ord-shadow); }
.st-menu[hidden] { display: none; }
.st-menu hr { border: 0; border-top: 1px solid var(--ord-line-soft); margin: 4px 0; }
.st-menu-item { display: flex; flex-direction: column; width: 100%; text-align: left; padding: 8px 10px; border: 0; background: none; border-radius: 7px; font-size: 12.5px; color: var(--ord-text); cursor: pointer; }
.st-menu-item small { color: var(--ord-text-3); font-size: 11.5px; }
.st-menu-item:hover { background: var(--ord-surface-2); }
.st-menu-item.is-soon { opacity: .5; cursor: default; }
@media (max-width: 640px) {
  .st-card { left: 12px !important; right: 12px; width: auto; top: auto !important; bottom: 76px; }
  .st-nav { left: 12px; right: 12px; transform: none; justify-content: space-between; gap: 6px; padding: 8px; }
  .st-sep, .st-nav .st-btn.is-link[data-t="close"] { display: none; }
  .st-nav-mid { min-width: 0; }
}
@media (prefers-reduced-motion: reduce) { .st-spot, .st-card, .st-cursor, .st-w-box, .st-dots button { transition: none !important; animation: none !important; } .st-spot::after { animation: none; } }

/* ── PC 전용 (2026-10-24) — 모바일·태블릿(폭 ≤768px 이거나 손가락 입력)엔 런처·환영 창·안내 레이어를 아예 그리지 않는다.
   서버(ScreenToursHelper#screen_tour_pc?)가 모바일 UA·앱을 걸러 마크업을 빼고, 이 규칙은 «PC 브라우저를 좁게 줄였을 때/터치 기기»의 깜빡임을 막는다. 엔진도 같은 조건(PC_QUERY)으로 닫는다. */
@media (max-width: 768px), (hover: none), (pointer: coarse) {
  .st-launch, .st-welcome, .st-layer { display: none !important; }
}

/* 보조 런처(같은 화면의 별도 안내) — 엔진만 붙고 눈에는 보이지 않는다 */
.st-launch.is-secondary { display: none !important; }
