/* /tools/upc-ean-check-digit-calculator: How it works scene (3-1 weights from the right, the sums, the check digit dropping in). */
.hub-anim.ha-upc-ean-check-digit-calculator .ha-stage { min-height: 0; border: 1px solid #c9dfe6; background: repeating-linear-gradient(0deg, transparent 0 21px, rgba(14, 116, 144, .07) 21px 22px), repeating-linear-gradient(90deg, transparent 0 21px, rgba(14, 116, 144, .07) 21px 22px), #f6fbfc; }
.hub-anim.ha-upc-ean-check-digit-calculator .cd-sc { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; min-height: 260px; }
.hub-anim.ha-upc-ean-check-digit-calculator .cd-row { display: flex; gap: 4px; }
.hub-anim.ha-upc-ean-check-digit-calculator .cd-c { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.hub-anim.ha-upc-ean-check-digit-calculator .cd-c b { display: block; width: 26px; padding: 8px 0; background: #fff; border: 1.5px solid #164e63; border-radius: 6px; font: 800 .9rem/1 ui-monospace, Menlo, Consolas, monospace; color: #0c2f3a; text-align: center; }
.hub-anim.ha-upc-ean-check-digit-calculator .cd-c i { font: 800 .62rem/1 Manrope, Inter, sans-serif; font-style: normal; color: #0e7490; }
.hub-anim.ha-upc-ean-check-digit-calculator .cd-w3 b { background: #e0f2f7; } .hub-anim.ha-upc-ean-check-digit-calculator .cd-w1 i { color: #64748b; }
.hub-anim.ha-upc-ean-check-digit-calculator .cd-new b { background: #0e7490; border-color: #0e7490; color: #fff; } .hub-anim.ha-upc-ean-check-digit-calculator .cd-new i { color: #0e7490; }
.hub-anim.ha-upc-ean-check-digit-calculator .cd-sum { display: flex; gap: 8px; }
.hub-anim.ha-upc-ean-check-digit-calculator .cd-sum p { margin: 0; padding: 7px 10px; background: #fff; border: 1px solid #c9dfe6; border-radius: 8px; text-align: center; box-shadow: 0 6px 14px -12px rgba(12, 47, 58, .6); }
.hub-anim.ha-upc-ean-check-digit-calculator .cd-sum span { display: block; margin-bottom: 4px; font: 600 .6rem/1 Inter, system-ui, sans-serif; color: #475569; }
.hub-anim.ha-upc-ean-check-digit-calculator .cd-sum b { font: 800 1rem/1 Manrope, Inter, sans-serif; color: #0c2f3a; } .hub-anim.ha-upc-ean-check-digit-calculator .cd-s4 b { color: #0e7490; }
.hub-anim.ha-upc-ean-check-digit-calculator .cd-full { margin: 0; padding: 8px 14px; background: #0c2f3a; color: #cbe8ef; border-radius: 999px; font: 600 .74rem/1 Inter, system-ui, sans-serif; }
.hub-anim.ha-upc-ean-check-digit-calculator .cd-full b { margin-left: 6px; font: 800 .8rem/1 ui-monospace, Menlo, Consolas, monospace; color: #fff; letter-spacing: .08em; } .hub-anim.ha-upc-ean-check-digit-calculator .cd-full em { font-style: normal; color: #67e8f9; }
@media (max-width: 640px) {
 .hub-anim.ha-upc-ean-check-digit-calculator .cd-row { gap: 2px; } .hub-anim.ha-upc-ean-check-digit-calculator .cd-c b { width: 16px; padding: 5px 0; font-size: .68rem; border-radius: 4px; } .hub-anim.ha-upc-ean-check-digit-calculator .cd-c i { font-size: .46rem; }
 .hub-anim.ha-upc-ean-check-digit-calculator .cd-sum { flex-wrap: wrap; justify-content: center; max-width: 280px; } .hub-anim.ha-upc-ean-check-digit-calculator .ha-stage { padding-bottom: 3.4rem; }
}
/* Reduced motion: the finished scene (weights shown, sums done, check digit in place). */
@media (prefers-reduced-motion: no-preference) {
 .hub-anim.ha-upc-ean-check-digit-calculator .cd-c i { animation: cd-w 10s ease infinite both; }
 .hub-anim.ha-upc-ean-check-digit-calculator .cd-c:nth-child(1) i { animation-delay: 1.60s; }
 .hub-anim.ha-upc-ean-check-digit-calculator .cd-c:nth-child(2) i { animation-delay: 1.44s; }
 .hub-anim.ha-upc-ean-check-digit-calculator .cd-c:nth-child(3) i { animation-delay: 1.28s; }
 .hub-anim.ha-upc-ean-check-digit-calculator .cd-c:nth-child(4) i { animation-delay: 1.12s; }
 .hub-anim.ha-upc-ean-check-digit-calculator .cd-c:nth-child(5) i { animation-delay: 0.96s; }
 .hub-anim.ha-upc-ean-check-digit-calculator .cd-c:nth-child(6) i { animation-delay: 0.80s; }
 .hub-anim.ha-upc-ean-check-digit-calculator .cd-c:nth-child(7) i { animation-delay: 0.64s; }
 .hub-anim.ha-upc-ean-check-digit-calculator .cd-c:nth-child(8) i { animation-delay: 0.48s; }
 .hub-anim.ha-upc-ean-check-digit-calculator .cd-c:nth-child(9) i { animation-delay: 0.32s; }
 .hub-anim.ha-upc-ean-check-digit-calculator .cd-c:nth-child(10) i { animation-delay: 0.16s; }
 .hub-anim.ha-upc-ean-check-digit-calculator .cd-c:nth-child(11) i { animation-delay: 0.00s; }
 .hub-anim.ha-upc-ean-check-digit-calculator .cd-new { animation: cd-new 10s ease infinite both; } .hub-anim.ha-upc-ean-check-digit-calculator .cd-full { animation: cd-full 10s ease infinite both; }
 .hub-anim.ha-upc-ean-check-digit-calculator .cd-s1 { animation: cd-s1 10s ease infinite both; } @keyframes cd-s1 { 0%, 29% { opacity: 0; transform: translateY(8px); } 34%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
 .hub-anim.ha-upc-ean-check-digit-calculator .cd-s2 { animation: cd-s2 10s ease infinite both; } @keyframes cd-s2 { 0%, 38% { opacity: 0; transform: translateY(8px); } 43%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
 .hub-anim.ha-upc-ean-check-digit-calculator .cd-s3 { animation: cd-s3 10s ease infinite both; } @keyframes cd-s3 { 0%, 47% { opacity: 0; transform: translateY(8px); } 52%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
 .hub-anim.ha-upc-ean-check-digit-calculator .cd-s4 { animation: cd-s4 10s ease infinite both; } @keyframes cd-s4 { 0%, 56% { opacity: 0; transform: translateY(8px); } 61%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
 @keyframes cd-w { 0%, 2% { opacity: 0; transform: translateY(-6px); } 6%, 90% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }
 @keyframes cd-new { 0%, 66% { opacity: 0; transform: translateY(-30px); } 72%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
 @keyframes cd-full { 0%, 74% { opacity: 0; } 80%, 92% { opacity: 1; } 100% { opacity: 0; } }
}
