/* ===== How to use (tools/14-help.js) ===== */
.modal.help-modal{width:620px;max-height:88vh;overflow:auto}
.help-head{display:flex;align-items:center;justify-content:space-between}
.help-head h3{margin:0}
.help-note{color:var(--muted);font-size:.85rem;line-height:1.5;margin:.6rem 0}
.help-tabs{display:flex;gap:.4rem;flex-wrap:wrap;margin:.8rem 0 .4rem}
.help-tab{background:transparent;border:1px solid var(--border);color:var(--text);padding:.4rem .9rem;border-radius:999px;cursor:pointer;font-size:.82rem}
.help-tab.active{background:var(--accent);border-color:var(--accent);color:#121212;font-weight:600}
.help-body h4{margin:1.1rem 0 .4rem;font-size:.9rem;color:var(--accent)}
.help-list{margin:0;padding-left:1.1rem;display:flex;flex-direction:column;gap:.35rem;font-size:.86rem;line-height:1.5}
.help-table{width:100%;border-collapse:collapse;font-size:.86rem}
.help-table td{padding:.35rem .4rem;border-bottom:1px solid var(--border);vertical-align:top}
.help-keys{white-space:nowrap;width:9rem}
kbd{
  display:inline-block;min-width:1.4em;padding:.1rem .45rem;border-radius:6px;text-align:center;
  border:1px solid var(--border);border-bottom-width:2px;background:var(--bg);color:var(--text);
  font-family:ui-monospace,monospace;font-size:.78rem;
}

.help-open{width:100%}

/* ---------- Visual guide (infographic) ---------- */
.modal.help-modal{width:720px}
.hv-steps{display:grid;grid-template-columns:repeat(4, 1fr);gap:.55rem}
.hv-step{position:relative;display:flex;flex-direction:column;align-items:center;gap:.3rem;padding:.8rem .5rem .7rem;border-radius:16px;border:1px solid var(--border);
  background:linear-gradient(180deg, color-mix(in srgb, var(--accent) 9%, var(--bg)), var(--bg));text-align:center;animation:tourPop .35s calc(var(--i) * 90ms) both}
.hv-step b{font-size:.82rem}
.hv-step small{font-size:.72rem;color:var(--muted);line-height:1.35}
.hv-num{position:absolute;top:6px;left:8px;width:20px;height:20px;border-radius:50%;background:var(--accent);color:#111;font-size:.7rem;font-weight:900;display:grid;place-items:center}
.hv-art{position:relative;display:block;width:70px;height:56px}
.hv-flower i{position:absolute;left:50%;top:50%;width:26px;height:26px;margin:-13px;border-radius:50%;background:var(--accent);box-shadow:0 0 18px var(--accent);animation:coreBreath 3s ease-in-out infinite}
.hv-flower::before{content:'';position:absolute;left:50%;top:50%;width:44px;height:44px;margin:-22px;border-radius:50%;border:2px solid var(--accent);animation:coreRing 1.8s ease-out infinite}
.hv-pie i{position:absolute;left:50%;top:50%;width:14px;height:14px;margin:-7px;border-radius:50%;background:var(--accent)}
.hv-pie b{position:absolute;left:50%;top:50%;width:12px;height:12px;margin:-6px;border-radius:4px;border:1px solid var(--accent);background:color-mix(in srgb, var(--accent) 30%, var(--card))}
.hv-pie b:nth-of-type(1){transform:translate(0,-22px)}.hv-pie b:nth-of-type(2){transform:translate(21px,-7px)}.hv-pie b:nth-of-type(3){transform:translate(13px,18px)}
.hv-pie b:nth-of-type(4){transform:translate(-13px,18px)}.hv-pie b:nth-of-type(5){transform:translate(-21px,-7px)}
.hv-win em{position:absolute;left:8px;top:6px;width:44px;height:36px;border-radius:7px;border:2px solid var(--accent);border-top-width:7px;animation:hvGrow 2.4s ease-in-out infinite}
.hv-win u{position:absolute;left:44px;top:34px;width:12px;height:12px;border-right:3px solid var(--text);border-bottom:3px solid var(--text);animation:hvCorner 2.4s ease-in-out infinite}
@keyframes hvGrow{50%{width:54px;height:44px}}
@keyframes hvCorner{50%{transform:translate(10px,8px)}}
.hv-find{display:flex;align-items:center;justify-content:center;gap:.3rem}
.hv-find em{font-style:normal;font-size:1.7rem;color:var(--accent)}
.hv-neurons{display:grid;grid-template-columns:repeat(3, 1fr);gap:.45rem}
.hv-neuron{display:flex;align-items:center;gap:.5rem;padding:.5rem;border-radius:14px;border:1px solid var(--border);background:var(--bg);color:var(--text);font:inherit;text-align:left;cursor:pointer}
.hv-neuron:hover{border-color:var(--accent)}
.hv-neuron .me-ic{width:34px;height:34px;flex:none}
.hv-neuron b{display:block;font-size:.8rem}
.hv-neuron small{display:block;font-size:.66rem;color:var(--muted);line-height:1.25}
.hv-neuron kbd{margin-left:auto;font-size:.65rem}
.hv-tips{display:flex;flex-wrap:wrap;gap:.4rem}
.hv-tips span{padding:.4rem .7rem;border-radius:999px;border:1px solid var(--border);background:var(--bg);font-size:.76rem}
.help-body .ob-loop{margin-top:.2rem}
@media (max-width:640px){ .hv-steps{grid-template-columns:repeat(2, 1fr)} .hv-neurons{grid-template-columns:1fr 1fr} }
.help-head .help-tut{margin-left:auto;margin-right:.5rem;border:1px solid var(--accent);background:color-mix(in srgb, var(--accent) 12%, transparent);color:var(--accent);border-radius:999px;padding:.35rem .8rem;font-weight:800;font-size:.8rem;cursor:pointer}
