/* ===== Welcome walkthrough: "How DialClient works" (web/js/welcome.js) ===== */
.wv-back { position: fixed; inset: 0; z-index: 1000; background: rgba(15, 12, 20, .62); backdrop-filter: blur(3px); display: grid; place-items: center; padding: 16px; opacity: 0; transition: opacity .25s; }
.wv-back.open { opacity: 1; }
.wv { position: relative; width: min(760px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: #fbfaff; color: #1f1a24; border-radius: 20px; box-shadow: 0 30px 80px rgba(0,0,0,.35); padding: 20px 22px 16px; transform: translateY(12px) scale(.98); transition: transform .25s; }
.wv-back.open .wv { transform: none; }
.wv-x { position: absolute; top: 10px; right: 12px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: #efe9f2; color: #4b4350; font-size: 22px; line-height: 1; cursor: pointer; }
.wv-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding-right: 40px; }
.wv-kicker { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #714b67; }
.wv-sound { margin-left: auto; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.wv-voice, .wv-music { border: 1.5px solid #714b67; background: #fff; color: #714b67; border-radius: 999px; padding: 5px 12px; font-weight: 700; font-size: 12.5px; cursor: pointer; white-space: nowrap; }
.wv-voice:hover, .wv-music:hover { background: #f3edf6; }
.wv-voice.on, .wv-music.on { background: #714b67; color: #fff; }
.wv-voice:disabled, .wv-music:disabled { opacity: .5; cursor: default; }
.wv-vol { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border: 1px solid #e0d8e5; border-radius: 999px; background: #fff; font-size: 13px; }
.wv-vol input { width: 80px; accent-color: #714b67; cursor: pointer; }
.wv-stage { position: relative; height: 300px; margin-top: 14px; border-radius: 16px; overflow: hidden; background: radial-gradient(500px 260px at 100% 0%, rgba(113,75,103,.14), transparent 70%), radial-gradient(420px 260px at 0% 100%, rgba(20,184,166,.12), transparent 70%), #f3f0f7; display: grid; place-items: center; }
.wv-scene { width: 100%; height: 100%; display: grid; place-items: center; padding: 18px; animation: wvIn .5s ease both; }
.wv-cap { min-height: 52px; margin: 14px 2px 6px; font-size: 17px; line-height: 1.5; font-weight: 600; color: #2a1f2b; text-align: center; }
.wv-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.wv-dots { display: flex; gap: 6px; }
.wv-dots i { width: 22px; height: 5px; border-radius: 3px; background: #ddd5e2; cursor: pointer; }
.wv-dots i.done { background: #b9a2b3; }
.wv-dots i.on { background: #714b67; }
.wv-nav { display: flex; gap: 8px; flex-wrap: wrap; }
.wv .btn { color: #2a1f2b; background: #fff; border: 1px solid #ddd5e2; }
.wv .btn-primary { color: #fff; background: #714b67; border-color: #714b67; }
/* scene pieces */
.wv-feed { display: grid; gap: 10px; width: min(520px, 100%); }
.wv-post { background: #fff; border: 1px solid #e6e1ea; border-radius: 12px; padding: 10px 12px; box-shadow: 0 6px 18px rgba(31,26,36,.06); animation: wvUp .5s ease both; }
.wv-p-b { animation-delay: .5s; } .wv-p-c { animation-delay: 1s; } .wv-p-d { animation-delay: 1.5s; }
.wv-ph { display: flex; align-items: center; gap: 8px; }
.wv-ph small { color: #6b6170; font-size: 12px; }
.wv-ph em { margin-left: auto; font-style: normal; font-size: 11px; font-weight: 800; color: #b42318; background: #fde8e7; padding: 2px 8px; border-radius: 999px; }
.wv-post p { margin: 6px 0 0; font-size: 14px; line-height: 1.45; }
.wv-post b { color: #714b67; }
.wv-av { width: 26px; height: 26px; border-radius: 50%; background: #714b67; color: #fff; font-size: 12px; font-weight: 800; display: grid; place-items: center; flex: none; }
.wv-noise .wv-bad { animation: wvUp .5s ease both, wvFade .6s ease 2.2s forwards; }
.wv-noise .wv-keep { animation: wvUp .5s ease both, wvGlow 1s ease 2.6s forwards; }
.wv-card { background: #fff; border: 1px solid #e6e1ea; border-radius: 14px; padding: 16px; width: min(520px, 100%); box-shadow: 0 12px 30px rgba(31,26,36,.08); }
.wv-type { margin: 8px 0 12px; padding: 10px; border: 1px dashed #c9bcd0; border-radius: 10px; font-size: 14px; color: #4b4350; overflow: hidden; white-space: nowrap; max-width: 0; animation: wvType 2.4s steps(60) .3s forwards; }
.wv-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.wv-chips span { font-size: 12.5px; padding: 5px 10px; border-radius: 999px; border: 1px solid #e0d8e5; color: #6b6170; opacity: .55; }
.wv-chips span.on { opacity: 0; background: #714b67; border-color: #714b67; color: #fff; animation: wvPop .35s ease forwards; }
.wv-chips span.on:nth-child(1) { animation-delay: 2.8s; } .wv-chips span.on:nth-child(2) { animation-delay: 3.3s; } .wv-chips span.on:nth-child(3) { animation-delay: 3.8s; }
.wv-profile small { display: block; margin-top: 10px; color: #0f766e; font-weight: 700; }
.wv-scan { display: flex; align-items: center; gap: 22px; width: min(600px, 100%); }
.wv-radar { position: relative; width: 120px; height: 120px; flex: none; border-radius: 50%; background: #714b67; display: grid; place-items: center; color: #fff; font-weight: 900; font-size: 22px; box-shadow: 0 10px 30px rgba(113,75,103,.4); }
.wv-radar i { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(113,75,103,.5); animation: wvRing 2.4s ease-out infinite; }
.wv-radar i:nth-child(2) { animation-delay: .8s; } .wv-radar i:nth-child(3) { animation-delay: 1.6s; }
.wv-scan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; flex: 1; }
.wv-scan li { background: #fff; border: 1px solid #e6e1ea; border-radius: 10px; padding: 8px 12px; font-size: 13.5px; font-weight: 600; animation: wvUp .4s ease both; }
.wv-scan li:nth-child(2) { animation-delay: .5s; } .wv-scan li:nth-child(3) { animation-delay: 1s; } .wv-scan li:nth-child(4) { animation-delay: 1.5s; } .wv-scan li:nth-child(5) { animation-delay: 2s; }
.wv-scan li.ok { color: #0f766e; border-color: #99e0d6; }
.wv-scan li.no { color: #9a8f9f; text-decoration: line-through; }
.wv-lh { display: flex; align-items: center; gap: 10px; }
.wv-lh small { display: block; color: #6b6170; font-size: 12px; }
.wv-score { margin-left: auto; background: #dcfce7; color: #15803d; font-weight: 800; border-radius: 8px; padding: 2px 8px; }
.wv-lead p { margin: 10px 0; font-size: 14.5px; }
.wv-fields { display: flex; flex-wrap: wrap; gap: 6px; }
.wv-fields span { font-size: 12.5px; padding: 5px 10px; border-radius: 8px; background: #f1ecf4; color: #4b2f44; font-weight: 600; opacity: 0; animation: wvPop .35s ease forwards; }
.wv-fields span:nth-child(1) { animation-delay: .8s; } .wv-fields span:nth-child(2) { animation-delay: 1.3s; } .wv-fields span:nth-child(3) { animation-delay: 1.8s; } .wv-fields span:nth-child(4) { animation-delay: 2.3s; }
.wv-mail { width: min(520px, 100%); background: #fff; border: 1px solid #e6e1ea; border-radius: 14px; padding: 14px 16px; box-shadow: 0 12px 30px rgba(31,26,36,.08); animation: wvUp .5s ease both; }
.wv-mail-h { font-weight: 800; color: #714b67; }
.wv-mail p { margin: 8px 0; }
.wv-reply { background: #f0fdfa; border-left: 3px solid #14b8a6; padding: 8px 10px; border-radius: 8px; font-size: 14px; opacity: 0; animation: wvPop .4s ease 1.2s forwards; }
.wv-won { display: inline-block; margin-top: 10px; background: #714b67; color: #fff; border-radius: 999px; padding: 6px 14px; font-weight: 800; opacity: 0; animation: wvPop .4s ease 2.6s forwards; }
.wv-cta { text-align: center; }
.wv-logo { font-size: 38px; font-weight: 900; color: #2a1f2b; } .wv-logo b { color: #714b67; }
.wv-cta p { font-size: 17px; margin: 6px 0 16px; }
.wv-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.wv-cta small { display: block; margin-top: 12px; color: #0f766e; font-weight: 700; }
@keyframes wvIn { from { opacity: 0; transform: scale(.98); } to { opacity: 1; transform: none; } }
@keyframes wvUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes wvPop { from { opacity: 0; transform: scale(.8); } to { opacity: 1; transform: none; } }
@keyframes wvFade { to { opacity: .28; filter: grayscale(1); } }
@keyframes wvGlow { to { box-shadow: 0 0 0 3px #14b8a6, 0 10px 26px rgba(20,184,166,.25); } }
@keyframes wvType { to { max-width: 100%; } }
@keyframes wvRing { from { transform: scale(1); opacity: .8; } to { transform: scale(1.9); opacity: 0; } }
@media (max-width: 600px) {
  .wv { padding: 16px 14px 12px; }
  .wv-stage { height: 340px; }
  .wv-scan { flex-direction: column; gap: 12px; }
  .wv-radar { width: 70px; height: 70px; font-size: 16px; }
  .wv-cap { font-size: 15px; }
  .wv-sound { margin-left: 0; width: 100%; } .wv-vol input { width: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  .wv *, .wv-back { animation: none !important; transition: none !important; }
  .wv-chips span.on, .wv-fields span, .wv-reply, .wv-won { opacity: 1; }
  .wv-type { max-width: 100%; }
}
