/* /tools/code39-barcode-generator: How it works scene (an asset tag; a highlight walks the CODE39 bars one character block at a time, star to star). */
.hub-anim.ha-code39-barcode-generator { --m: 1.5px; }
.hub-anim.ha-code39-barcode-generator .ha-stage { min-height: 0; border: 1px solid #cbd5e1; background: radial-gradient(120% 100% at 50% 0%, #f8fafc 0%, #e2e8f0 70%, #cbd5e1 100%); }
.hub-anim.ha-code39-barcode-generator .sc { display: flex; align-items: center; justify-content: center; min-height: 250px; }
.hub-anim.ha-code39-barcode-generator .c3-tag { position: relative; width: calc(var(--m) * 192 + 44px); padding: 16px 22px 14px; border: 1px solid #94a3b8; border-radius: 12px; box-sizing: border-box; background: linear-gradient(135deg, #f1f5f9 0%, #ffffff 40%, #e2e8f0 70%, #f8fafc 100%); box-shadow: inset 0 1px 0 #fff, 0 18px 30px -20px rgba(15, 23, 42, .7); text-align: center; }
.hub-anim.ha-code39-barcode-generator .c3-tag::before, .hub-anim.ha-code39-barcode-generator .c3-tag::after { content: ""; position: absolute; top: 10px; width: 8px; height: 8px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff, #94a3b8); box-shadow: inset 0 0 0 1px #64748b; }
.hub-anim.ha-code39-barcode-generator .c3-tag::before { left: 10px; } .hub-anim.ha-code39-barcode-generator .c3-tag::after { right: 10px; }
.hub-anim.ha-code39-barcode-generator .c3-owner { margin: 0 0 10px; font: 800 .66rem/1 Manrope, Inter, sans-serif; letter-spacing: .1em; text-transform: uppercase; color: #334155; }
.hub-anim.ha-code39-barcode-generator .c3-sym { position: relative; height: 58px; padding: 0; background: #fff; }
.hub-anim.ha-code39-barcode-generator .c3-bars { display: block; width: 100%; height: 100%; fill: #0f172a; }
.hub-anim.ha-code39-barcode-generator .c3-hi { position: absolute; top: -4px; bottom: -4px; left: 0; width: calc(var(--m) * 15); border: 2px solid #2563eb; border-radius: 4px; background: rgba(37, 99, 235, .12); box-sizing: border-box; transform: translateX(calc(var(--m) * 176)); }
.hub-anim.ha-code39-barcode-generator .c3-chars { display: flex; margin: 6px 0 0; }
.hub-anim.ha-code39-barcode-generator .c3-chars i { width: calc(var(--m) * 16); font: 700 .66rem/1 ui-monospace, Menlo, monospace; font-style: normal; color: #0f172a; text-align: center; margin-right: 0; }
.hub-anim.ha-code39-barcode-generator .c3-chars i:last-child { width: calc(var(--m) * 15); }
.hub-anim.ha-code39-barcode-generator .c3-chars .c3-star { color: #2563eb; }
.hub-anim.ha-code39-barcode-generator .c3-ends { display: flex; justify-content: space-between; margin: 3px 0 0; font: 700 .52rem/1 Inter, system-ui, sans-serif; color: #2563eb; text-transform: uppercase; letter-spacing: .08em; }
.hub-anim.ha-code39-barcode-generator .c3-human { margin: 10px 0 0; padding-top: 8px; border-top: 1px solid #cbd5e1; font: 800 .86rem/1 ui-monospace, Menlo, monospace; letter-spacing: .12em; color: #0f172a; }
@media (max-width: 640px) {
 .hub-anim.ha-code39-barcode-generator { --m: 1.02px; } .hub-anim.ha-code39-barcode-generator .c3-tag { padding: 16px 16px 14px; width: calc(var(--m) * 192 + 32px); } .hub-anim.ha-code39-barcode-generator .c3-chars i { font-size: .5rem; } .hub-anim.ha-code39-barcode-generator .c3-owner { font-size: .56rem; }
}
/* Reduced motion: the finished scene (highlight on the stop star). */
@media (prefers-reduced-motion: no-preference) {
 .hub-anim.ha-code39-barcode-generator .c3-hi { animation: c3-walk 10s steps(12, jump-none) infinite both; }
 .hub-anim.ha-code39-barcode-generator .c3-human { animation: c3-human 10s ease infinite both; }
 @keyframes c3-walk { 0% { transform: translateX(0); } 80%, 100% { transform: translateX(calc(var(--m) * 176)); } }
 @keyframes c3-human { 0%, 76% { opacity: .25; } 82%, 100% { opacity: 1; } }
}
