/* /tools/vcard-qr-code-generator: How it works scene (a lanyard name badge with a contact QR, a phone scans it, a contact card pops up and is saved). */
.hub-anim.ha-vcard-qr-code-generator .ha-stage { min-height: 0; border: 1px solid #1e3a8a; background: radial-gradient(120% 100% at 20% 0%, #1e40af 0%, #172554 60%, #0b1437 100%); }
.hub-anim.ha-vcard-qr-code-generator .sc { display: flex; align-items: center; justify-content: center; gap: 1.6rem; min-height: 270px; }
.hub-anim.ha-vcard-qr-code-generator .sc-arrow { color: #bfdbfe; flex: 0 0 auto; } .hub-anim.ha-vcard-qr-code-generator .sc-arrow svg { width: 64px; height: 32px; display: block; }
.hub-anim.ha-vcard-qr-code-generator .vc-badge { position: relative; width: 250px; padding-top: 46px; flex: 0 0 auto; transform-origin: 50% 0; }
.hub-anim.ha-vcard-qr-code-generator .vc-badge::before { content: ""; position: absolute; left: 50%; top: -40px; width: 70px; height: 70px; margin-left: -35px; border: 7px solid #f59e0b; border-bottom: 0; border-radius: 50% 50% 0 0 / 100% 100% 0 0; box-sizing: border-box; }
.hub-anim.ha-vcard-qr-code-generator .vc-clip { position: absolute; left: 50%; top: 24px; width: 26px; height: 26px; margin-left: -13px; background: linear-gradient(180deg, #e5e7eb, #9ca3af); border-radius: 6px 6px 4px 4px; z-index: 1; }
.hub-anim.ha-vcard-qr-code-generator .vc-card { position: relative; display: flex; align-items: center; gap: 12px; padding: 18px 16px 16px; background: #fff; border-radius: 12px; border-top: 9px solid #2563eb; box-shadow: 0 18px 28px -16px rgba(0, 0, 0, .7); }
.hub-anim.ha-vcard-qr-code-generator .vc-card::before { content: ""; position: absolute; left: 50%; top: 6px; width: 30px; height: 5px; margin-left: -15px; border-radius: 3px; background: #cbd5e1; }
.hub-anim.ha-vcard-qr-code-generator .vc-txt { flex: 1; min-width: 0; text-align: left; }
.hub-anim.ha-vcard-qr-code-generator .vc-txt small { display: block; font: 800 .54rem/1 Manrope, Inter, sans-serif; letter-spacing: .14em; color: #2563eb; }
.hub-anim.ha-vcard-qr-code-generator .vc-txt b { display: block; margin: 6px 0 10px; font: 800 1.02rem/1.1 Manrope, Inter, sans-serif; color: #0f172a; }
.hub-anim.ha-vcard-qr-code-generator .vc-txt i { display: block; height: 5px; margin-bottom: 6px; border-radius: 3px; background: #cbd5e1; } .hub-anim.ha-vcard-qr-code-generator .vc-txt i + i { width: 66%; }
.hub-anim.ha-vcard-qr-code-generator .vc-code { width: 84px; height: 84px; flex: 0 0 auto; fill: #0f172a; }
.hub-anim.ha-vcard-qr-code-generator .vc-phone { width: 168px; height: 250px; padding: 9px; flex: 0 0 auto; background: #0f172a; border: 2px solid #334155; border-radius: 28px; box-sizing: border-box; box-shadow: 0 20px 30px -16px rgba(0, 0, 0, .8); }
.hub-anim.ha-vcard-qr-code-generator .vc-screen { position: relative; height: 100%; overflow: hidden; border-radius: 20px; background: linear-gradient(180deg, #334155, #1e293b); }
.hub-anim.ha-vcard-qr-code-generator .vc-beam { position: absolute; left: 12px; right: 12px; top: 30%; height: 3px; border-radius: 2px; background: #60a5fa; box-shadow: 0 0 12px 3px rgba(96, 165, 250, .7); opacity: 0; }
.hub-anim.ha-vcard-qr-code-generator .vc-sheet { position: absolute; left: 6px; right: 6px; bottom: 6px; padding: 14px 10px 10px; background: #fff; border-radius: 16px; text-align: center; box-sizing: border-box; }
.hub-anim.ha-vcard-qr-code-generator .vc-av { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; margin: 0 auto 6px; border-radius: 50%; background: #dbeafe; color: #1d4ed8; font: 800 .8rem/1 Manrope, Inter, sans-serif; }
.hub-anim.ha-vcard-qr-code-generator .vc-sheet > b { display: block; margin-bottom: 8px; font: 800 .82rem/1.1 Manrope, Inter, sans-serif; color: #0f172a; }
.hub-anim.ha-vcard-qr-code-generator .vc-sheet p { margin: 0 0 5px; padding: 5px 7px; background: #f1f5f9; border-radius: 7px; font: 600 .6rem/1.25 Inter, system-ui, sans-serif; color: #0f172a; text-align: left; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.hub-anim.ha-vcard-qr-code-generator .vc-sheet p small { display: block; font-size: .5rem; font-weight: 600; color: #64748b; }
.hub-anim.ha-vcard-qr-code-generator .vc-save { position: relative; display: block; margin-top: 8px; height: 26px; border-radius: 999px; background: #16a34a; color: #fff; font: 700 .66rem/26px Manrope, Inter, sans-serif; font-style: normal; overflow: hidden; }
.hub-anim.ha-vcard-qr-code-generator .vc-s1 { display: none; } .hub-anim.ha-vcard-qr-code-generator .vc-s2 { display: block; }
@media (max-width: 640px) {
 .hub-anim.ha-vcard-qr-code-generator .sc { flex-direction: column; gap: .9rem; } .hub-anim.ha-vcard-qr-code-generator .sc-arrow { transform: rotate(90deg); } .hub-anim.ha-vcard-qr-code-generator .ha-stage { padding-bottom: 3.4rem; }
 .hub-anim.ha-vcard-qr-code-generator .vc-badge { width: 212px; margin-top: 34px; } .hub-anim.ha-vcard-qr-code-generator .vc-card { padding: 16px 12px 14px; gap: 8px; } .hub-anim.ha-vcard-qr-code-generator .vc-code { width: 72px; height: 72px; } .hub-anim.ha-vcard-qr-code-generator .vc-txt b { font-size: .9rem; }
}
/* Reduced motion: the finished scene (contact on screen, saved). */
@media (prefers-reduced-motion: no-preference) {
 .hub-anim.ha-vcard-qr-code-generator .vc-badge { animation: vc-sway 10s ease-in-out infinite both; }
 .hub-anim.ha-vcard-qr-code-generator .vc-beam { animation: vc-beam 10s ease infinite both; }
 .hub-anim.ha-vcard-qr-code-generator .vc-sheet { animation: vc-sheet 10s cubic-bezier(.2, .9, .3, 1.15) infinite both; }
 .hub-anim.ha-vcard-qr-code-generator .vc-save { animation: vc-save 10s ease infinite both; }
 .hub-anim.ha-vcard-qr-code-generator .vc-s1 { display: block; animation: vc-s1 10s step-end infinite both; } .hub-anim.ha-vcard-qr-code-generator .vc-s2 { display: block; position: absolute; inset: 0; animation: vc-s2 10s step-end infinite both; }
 @keyframes vc-sway { 0% { transform: rotate(-2deg); } 12% { transform: rotate(2deg); } 22%, 100% { transform: none; } }
 @keyframes vc-beam { 0%, 20% { opacity: 0; top: 18%; } 24% { opacity: 1; top: 18%; } 34% { opacity: 1; top: 70%; } 38% { opacity: 1; top: 30%; } 42%, 100% { opacity: 0; top: 30%; } }
 @keyframes vc-sheet { 0%, 42% { transform: translateY(110%); } 52%, 92% { transform: none; } 98%, 100% { transform: translateY(110%); } }
 @keyframes vc-save { 0%, 64% { background: #2563eb; transform: none; } 66% { background: #1d4ed8; transform: scale(.94); } 69%, 100% { background: #16a34a; transform: none; } }
 @keyframes vc-s1 { 0%, 68% { opacity: 1; } 69%, 100% { opacity: 0; } }
 @keyframes vc-s2 { 0%, 68% { opacity: 0; } 69%, 100% { opacity: 1; } }
}
