/* /tools/code128-barcode-generator: How it works scene (Bin a-12 typed, CODE128 bars grow, the check character is added, quiet zones open, a scanner reads it). */
.hub-anim.ha-code128-barcode-generator { --m: 1.6px; }
.hub-anim.ha-code128-barcode-generator .ha-stage { min-height: 0; border: 1px solid #bfdbfe; background: repeating-linear-gradient(90deg, transparent 0 23px, rgba(37, 99, 235, .05) 23px 24px), linear-gradient(180deg, #f8fbff, #eaf2ff); }
.hub-anim.ha-code128-barcode-generator .sc { display: flex; align-items: center; justify-content: center; gap: 1.2rem; min-height: 260px; }
.hub-anim.ha-code128-barcode-generator .sc-arrow { color: #1d4ed8; flex: 0 0 auto; } .hub-anim.ha-code128-barcode-generator .sc-arrow svg { width: 56px; height: 28px; display: block; }
.hub-anim.ha-code128-barcode-generator .c8-label { width: 300px; flex: 0 0 auto; padding: 14px 16px 26px; background: #fff; border: 1.5px solid #1e3a8a; border-radius: 9px; box-sizing: border-box; box-shadow: 0 16px 28px -20px rgba(30, 58, 138, .7); text-align: center; }
.hub-anim.ha-code128-barcode-generator .c8-type { margin: 0 0 30px; text-align: left; }
.hub-anim.ha-code128-barcode-generator .c8-type small { display: block; margin-bottom: 4px; font: 700 .6rem/1 Inter, system-ui, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: #1d4ed8; }
.hub-anim.ha-code128-barcode-generator .c8-type b { display: inline-block; overflow: hidden; white-space: nowrap; max-width: 100%; padding-right: 3px; border-right: 2px solid #1d4ed8; font: 700 .9rem/1.3 ui-monospace, Menlo, monospace; color: #0f172a; vertical-align: top; }
.hub-anim.ha-code128-barcode-generator .c8-sym { position: relative; display: flex; justify-content: center; align-items: stretch; height: 58px; }
.hub-anim.ha-code128-barcode-generator .c8-qz { position: relative; width: calc(var(--m) * 10); border: 1.5px dashed #60a5fa; border-radius: 4px; background: rgba(96, 165, 250, .08); font-size: 0; }
.hub-anim.ha-code128-barcode-generator .c8-qz em { position: absolute; top: 100%; left: 50%; margin-top: 4px; transform: translateX(-50%); font: 700 .52rem/1 Inter, system-ui, sans-serif; font-style: normal; color: #2563eb; white-space: nowrap; }
.hub-anim.ha-code128-barcode-generator .c8-wrap { position: relative; width: calc(var(--m) * 123); }
.hub-anim.ha-code128-barcode-generator .c8-bars { position: absolute; inset: 0; width: 100%; height: 100%; fill: #0f172a; }
.hub-anim.ha-code128-barcode-generator .c8-chk { fill: #ea580c; }
.hub-anim.ha-code128-barcode-generator .c8-tag { position: absolute; right: 0; bottom: 100%; margin-bottom: 5px; padding: 3px 6px; border-radius: 5px; background: #ea580c; color: #fff; font: 800 .54rem/1.1 Manrope, Inter, sans-serif; font-style: normal; white-space: nowrap; }
.hub-anim.ha-code128-barcode-generator .c8-tag::after { content: ""; position: absolute; right: 14px; top: 100%; border: 4px solid transparent; border-top-color: #ea580c; }
.hub-anim.ha-code128-barcode-generator .c8-human { display: block; margin-top: 5px; font: 600 .68rem/1 ui-monospace, Menlo, monospace; color: #0f172a; }
.hub-anim.ha-code128-barcode-generator .c8-gun { position: relative; width: 120px; height: 150px; flex: 0 0 auto; }
.hub-anim.ha-code128-barcode-generator .c8-screen { position: relative; z-index: 2; height: 80px; padding: 12px 10px; background: #1e293b; border: 3px solid #0f172a; border-radius: 16px 16px 10px 10px; box-sizing: border-box; text-align: center; }
.hub-anim.ha-code128-barcode-generator .c8-screen small { display: block; margin-bottom: 8px; font: 700 .56rem/1 Inter, system-ui, sans-serif; letter-spacing: .1em; text-transform: uppercase; color: #94a3b8; }
.hub-anim.ha-code128-barcode-generator .c8-screen b { display: block; padding: 6px 0; border-radius: 6px; background: #22c55e; color: #052e16; font: 800 .74rem/1 ui-monospace, Menlo, monospace; }
.hub-anim.ha-code128-barcode-generator .c8-gun > i { position: absolute; left: 42px; top: 70px; width: 36px; height: 76px; border-radius: 6px 6px 12px 12px; background: linear-gradient(90deg, #0f172a, #334155); }
@media (max-width: 640px) {
 .hub-anim.ha-code128-barcode-generator { --m: 1.2px; }
 .hub-anim.ha-code128-barcode-generator .sc { flex-direction: column; gap: .9rem; } .hub-anim.ha-code128-barcode-generator .sc-arrow { transform: rotate(90deg); } .hub-anim.ha-code128-barcode-generator .ha-stage { padding-bottom: 3.4rem; }
 .hub-anim.ha-code128-barcode-generator .c8-label { width: 100%; max-width: 236px; padding: 12px 10px 24px; } .hub-anim.ha-code128-barcode-generator .c8-gun { height: 130px; } .hub-anim.ha-code128-barcode-generator .c8-gun > i { height: 56px; }
}
/* Reduced motion: the finished scene (typed, check added, quiet zones shown, scanner read it). */
@media (prefers-reduced-motion: no-preference) {
 .hub-anim.ha-code128-barcode-generator .c8-type b { animation: c8-type 10s steps(8, end) infinite both; }
 .hub-anim.ha-code128-barcode-generator .c8-bars { animation: c8-grow 10s steps(8, end) infinite both; }
 .hub-anim.ha-code128-barcode-generator .c8-chk { animation: c8-chk 10s ease infinite both; } .hub-anim.ha-code128-barcode-generator .c8-stp { animation: c8-stp 10s ease infinite both; }
 .hub-anim.ha-code128-barcode-generator .c8-tag { animation: c8-tag 10s ease infinite both; }
 .hub-anim.ha-code128-barcode-generator .c8-qz { animation: c8-qz 10s ease infinite both; }
 .hub-anim.ha-code128-barcode-generator .c8-screen b { animation: c8-read 10s ease infinite both; }
 @keyframes c8-type { 0%, 4% { max-width: 0; } 30%, 100% { max-width: 100%; } }
 @keyframes c8-grow { 0%, 4% { clip-path: inset(0 100% 0 0); } 30%, 100% { clip-path: inset(0 0 0 0); } }
 @keyframes c8-chk { 0%, 34% { opacity: 0; transform: translateY(-8px); } 40%, 100% { opacity: 1; transform: none; } }
 @keyframes c8-stp { 0%, 42% { opacity: 0; } 46%, 100% { opacity: 1; } }
 @keyframes c8-tag { 0%, 36% { opacity: 0; } 41%, 92% { opacity: 1; } 97%, 100% { opacity: 0; } }
 @keyframes c8-qz { 0%, 50% { opacity: 0; transform: scaleY(.4); } 56%, 100% { opacity: 1; transform: none; } }
 @keyframes c8-read { 0%, 66% { opacity: 0; transform: scale(.8); } 71%, 95% { opacity: 1; transform: none; } 100% { opacity: 0; } }
}
