/* 움직이는 설명(모션) 창 · 단추 (11/11 대표: 스캔 · 지표가 무엇을 찾는지 움직이는 그림으로)
   radar.css 'AI티 빼기' 규칙을 따른다: 상자 속 상자 · 알약 · 파란 번호 없이 가는 선과 밑줄 탭. 차트 위 작은 번호 동그라미만 허용 */
:root {
  --mo-bg: #131722; --mo-grid: rgba(255, 255, 255, .045); --mo-up: var(--up); --mo-down: var(--down);
  --mo-gold: #f0b90b; --mo-brand: #5b7cff; --mo-violet: #b07cff; --mo-cyan: #22c3d6; --mo-gray: #8a93a6; --mo-text: #d1d4dc; --mo-catch: #2ebd85;
}
:root[data-theme="light"] {
  --mo-bg: #ffffff; --mo-grid: rgba(19, 23, 34, .06);
  --mo-gold: #b98900; --mo-brand: #2f55e0; --mo-violet: #7c4dff; --mo-cyan: #0a8fa1; --mo-gray: #687083; --mo-text: #131722; --mo-catch: #078a73;
}

/* ---- 차트 그림 ---- */
.mo-svg { display: block; width: 100%; height: auto; font-family: var(--font, inherit); user-select: none; }
.mo-bg { fill: var(--mo-bg); }
.mo-grid line { stroke: var(--mo-grid); stroke-width: 1; }
.mo-sep { stroke: var(--line); stroke-width: 1; }
.mo-c.up line { stroke: var(--mo-up); stroke-width: 1; } .mo-c.up rect { fill: var(--mo-up); }
.mo-c.dn line { stroke: var(--mo-down); stroke-width: 1; } .mo-c.dn rect { fill: var(--mo-down); }
.mo-c.aft line, .mo-c.aft rect { opacity: .38; }
.mo-aft-bg { fill: var(--mo-text); fill-opacity: .035; }
.mo-aft-t { fill: var(--mo-gray); font-size: 11.5px; font-weight: 600; }
.mo-vl { stroke: var(--mo-catch); stroke-width: 1.4; stroke-dasharray: 4 3; }
.mo-tag { fill: var(--mo-catch); }
.mo-tag-t { fill: #fff; font-size: 12px; font-weight: 700; }
.mo-lbl { font-size: 11.5px; font-weight: 600; paint-order: stroke; stroke: var(--mo-bg); stroke-width: 3px; stroke-linejoin: round; }
.mo-lbl.big { font-size: 13px; }
.mo-num { fill: #fff; font-size: 10.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.mo-mk { font-size: 10.5px; font-weight: 700; }
.mo-ax { fill: var(--mo-gray); font-size: 10.5px; font-variant-numeric: tabular-nums; }
.mo-alt { stroke: var(--mo-gray); stroke-width: 1.4; stroke-dasharray: 5 4; opacity: .9; }
.mo-oline { stroke: var(--mo-brand); stroke-width: 1.5; }
.mo-olv { stroke: var(--mo-gray); stroke-width: 1; stroke-dasharray: 3 3; opacity: .7; }
.mo-svg.mini .mo-c.aft line, .mo-svg.mini .mo-c.aft rect { opacity: .3; }

/* ---- 큰 창 ---- */
.mo-ov { position: fixed; inset: 0; z-index: 1200; display: flex; align-items: center; justify-content: center; background: rgba(5, 8, 14, .58); opacity: 0; transition: opacity .16s ease; }
.mo-ov.on { opacity: 1; }
.mo-win { width: min(1100px, calc(100vw - 32px)); max-height: calc(100vh - 40px); display: flex; flex-direction: column; background: var(--win); color: var(--text); border: 1px solid var(--line-2, var(--line)); border-radius: 10px; overflow: hidden; box-shadow: 0 18px 48px rgba(0, 0, 0, .35); }
.mo-h { display: flex; align-items: center; gap: 14px; padding: 12px 12px 12px 18px; border-bottom: 1px solid var(--line); }
.mo-tt { flex: 1; min-width: 0; }
.mo-tt small { display: block; font-size: 11.5px; color: var(--text-3); }
.mo-tt b { display: block; font-size: 16px; font-weight: 700; }
.mo-sw { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--text-2); cursor: pointer; }
.mo-sw input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.mo-sw i, .mo-swb i { position: relative; width: 26px; height: 14px; border-radius: 7px; background: var(--line-2, #2a2e39); flex: none; transition: background .15s; }
.mo-sw i::after, .mo-swb i::after { content: ''; position: absolute; left: 2px; top: 2px; width: 10px; height: 10px; border-radius: 50%; background: #fff; transition: transform .15s; }
.mo-sw input:checked + i, .mo-swb.on i { background: var(--up); }
.mo-sw input:checked + i::after, .mo-swb.on i::after { transform: translateX(12px); }
.mo-sw input:focus-visible + i { outline: 2px solid var(--text-2); outline-offset: 2px; }
.mo-tabs { display: flex; align-items: center; gap: 20px; padding: 0 18px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.mo-tabs button, .mo-one { position: relative; flex: none; padding: 10px 0 9px; background: none; border: 0; color: var(--text-3); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.mo-one { color: var(--text); cursor: default; }
.mo-tabs button:hover { color: var(--text-2); }
.mo-tabs button.on { color: var(--text); }
.mo-tabs button.on::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--text); }
.mo-tf { margin-left: auto; flex: none; font-size: 12px; color: var(--text-3); }
.mo-b { display: grid; grid-template-columns: minmax(0, 1fr) 310px; min-height: 0; flex: 1; }
.mo-cv { background: var(--mo-bg); display: flex; align-items: center; min-width: 0; }
.mo-cv .mo-svg { max-height: calc(100vh - 230px); }
.mo-side { border-left: 1px solid var(--line); padding: 14px 18px 16px; overflow: auto; font-size: 13px; line-height: 1.6; word-break: keep-all; }
.mo-intro { margin: 0 0 14px; color: var(--text-2); }
.mo-side h4 { margin: 0 0 4px; font-size: 12px; font-weight: 600; color: var(--text-3); }
.mo-steps { list-style: none; margin: 0; padding: 0; }
.mo-steps li { display: flex; gap: 10px; padding: 7px 0; color: var(--text-3); cursor: pointer; border-top: 1px solid var(--line); transition: color .15s; }
.mo-steps li:first-child { border-top: 0; }
.mo-steps li:hover { color: var(--text-2); }
.mo-steps li.on { color: var(--text); }
.mo-steps li b { font-weight: 700; }
.mo-steps li em { display: block; margin-top: 3px; font-style: normal; color: var(--text-3); }
.mo-n { flex: none; width: 14px; padding-top: 1px; font-size: 12px; font-weight: 600; text-align: center; color: var(--text-3); }
.mo-steps li.on .mo-n { color: var(--text); }
.mo-li-catch.on .mo-n, .mo-li-catch.on b { color: var(--mo-catch); }
.mo-ov.still .mo-steps li { color: var(--text-2); }
.mo-warn { margin: 14px 0 0; padding-top: 10px; border-top: 1px solid var(--line); font-size: 11.5px; line-height: 1.6; color: var(--text-3); }
.mo-f { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-top: 1px solid var(--line); }
.mo-pp { flex: none; width: 30px; height: 30px; display: grid; place-items: center; color: var(--text); }
.mo-prog { position: relative; flex: 1; min-width: 80px; height: 4px; border-radius: 2px; background: var(--line); cursor: pointer; }
.mo-prog::before { content: ''; position: absolute; left: 0; right: 0; top: -8px; bottom: -8px; } /* 누르기 쉬운 높이 */
.mo-prog i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 2px; background: var(--text-2); }
.mo-note { flex: none; font-size: 11.5px; color: var(--text-3); }
.mo-ov.still .mo-pp, .mo-ov.still .mo-prog, .mo-ov.still [data-mo-re] { display: none; }

/* ---- 레이더 카드 · 지표 설명 단추 ---- */
.card .about .mo-sk { position: relative; display: block; width: 100%; max-width: none; height: auto; border-radius: 0; padding: 0 0 18px; margin: 0 0 8px; background: none; border: 0; font: inherit; text-align: left; cursor: pointer; }
.card .about .mo-sk:hover svg { opacity: 1; }
.card .about .mo-sk .mo-play svg { display: inline; width: 11px; height: 11px; }
.mo-play { position: absolute; right: 0; bottom: 0; display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; color: var(--text-2); }
.mo-sk:hover .mo-play, .mo-open:hover { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }
.mo-open { display: inline-flex; align-items: center; gap: 5px; padding: 3px 0; background: none; border: 0; font: inherit; font-size: 12px; font-weight: 600; color: var(--text-2); cursor: pointer; }
.card .about > .mo-open { margin: 0 0 8px; }
.tvi-pv-f .mo-open { margin-left: auto; }
.ip-tags .mo-open { margin-left: auto; }
#view-scanner .mo-bar { display: flex; gap: 18px; padding: 8px 14px; border-bottom: 1px solid var(--line); }
.mo-swb { display: inline-flex; align-items: center; gap: 7px; padding: 0; background: none; border: 0; font: inherit; font-size: 12px; color: var(--text-3); cursor: pointer; }
.mo-swb.on { color: var(--text-2); }

/* ---- 휴대폰: 아래에서 올라오는 시트, 차트 위 · 단계 목록 아래 ---- */
@media (max-width: 640px) {
  .mo-ov { align-items: flex-end; }
  .mo-win { width: 100%; max-height: 92vh; max-height: 92dvh; border-radius: 14px 14px 0 0; border-bottom: 0; transform: translateY(24px); transition: transform .2s ease; }
  .mo-ov.on .mo-win { transform: none; }
  .mo-h { padding: 10px 8px 10px 16px; gap: 10px; }
  .mo-tt b { font-size: 15px; }
  .mo-sw span { font-size: 12px; }
  .mo-tabs { padding: 0 16px; gap: 16px; }
  .mo-b { display: flex; flex-direction: column; overflow: auto; }
  .mo-cv { flex: none; position: sticky; top: 0; z-index: 2; }
  .mo-cv .mo-svg { max-height: none; }
  .mo-side { border-left: 0; border-top: 1px solid var(--line); overflow: visible; padding: 12px 16px 14px; }
  .mo-f { flex-wrap: wrap; gap: 8px 10px; padding: 8px 12px calc(10px + env(safe-area-inset-bottom)); }
  .mo-note { order: 5; width: 100%; white-space: normal; }
  .mo-cta { margin-left: auto; }
}
@media (prefers-reduced-motion: reduce) { .mo-ov, .mo-win { transition: none; } }
