/* /tools/thermal-label-dpi-calculator: How it works scene (a 4 inch ruler, a label filling with dots at 203, 300, 600 dpi). */
.hub-anim.ha-thermal-label-dpi-calculator .ha-stage { min-height: 0; border: 1px solid #c7d2fe; background: radial-gradient(120% 100% at 50% 0%, #eef2ff 0%, #e0e7ff 70%, #c7d2fe 100%); }
.hub-anim.ha-thermal-label-dpi-calculator .sc { display: flex; align-items: center; justify-content: center; min-height: 250px; }
.hub-anim.ha-thermal-label-dpi-calculator .dp-box { width: 380px; max-width: 100%; }
.hub-anim.ha-thermal-label-dpi-calculator .dp-ruler { display: flex; justify-content: space-between; height: 30px; padding: 0 2px; background: repeating-linear-gradient(90deg, #78350f 0 1.5px, transparent 1.5px 25%) 0 0 / 100% 10px no-repeat, repeating-linear-gradient(90deg, #b45309 0 1px, transparent 1px 12.5%) 0 0 / 100% 5px no-repeat, #fde68a; border: 1.5px solid #78350f; border-radius: 4px; box-sizing: border-box; }
.hub-anim.ha-thermal-label-dpi-calculator .dp-ruler span { align-self: flex-end; padding-bottom: 3px; font: 800 .62rem/1 Manrope, Inter, sans-serif; color: #78350f; }
.hub-anim.ha-thermal-label-dpi-calculator .dp-lab { position: relative; height: 150px; margin-top: 10px; background: #fff; border: 2px solid #1e1b4b; border-radius: 10px; overflow: hidden; box-shadow: 0 14px 26px -16px rgba(30, 27, 75, .55); }
.hub-anim.ha-thermal-label-dpi-calculator .dp-g { position: absolute; inset: 0; opacity: 0; }
.hub-anim.ha-thermal-label-dpi-calculator .dp-g1 { background: radial-gradient(circle, #312e81 1.6px, transparent 2px) 0 0 / 16px 16px; }
.hub-anim.ha-thermal-label-dpi-calculator .dp-g2 { background: radial-gradient(circle, #312e81 1.1px, transparent 1.5px) 0 0 / 11px 11px; }
.hub-anim.ha-thermal-label-dpi-calculator .dp-g3 { background: radial-gradient(circle, #312e81 .7px, transparent 1px) 0 0 / 5.5px 5.5px; }
.hub-anim.ha-thermal-label-dpi-calculator .dp-read { position: relative; height: 40px; margin-top: 10px; }
.hub-anim.ha-thermal-label-dpi-calculator .dp-r { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 10px; margin: 0; padding: 0 12px; background: #1e1b4b; color: #e0e7ff; border-radius: 999px; font: 600 .82rem/1 Inter, system-ui, sans-serif; opacity: 0; }
.hub-anim.ha-thermal-label-dpi-calculator .dp-r b { padding: 4px 8px; background: #818cf8; color: #1e1b4b; border-radius: 999px; font: 800 .68rem/1 Manrope, Inter, sans-serif; }
.hub-anim.ha-thermal-label-dpi-calculator .dp-r strong { color: #fff; }
@media (max-width: 640px) {
 .hub-anim.ha-thermal-label-dpi-calculator .dp-box { width: 270px; } .hub-anim.ha-thermal-label-dpi-calculator .dp-lab { height: 110px; }
 .hub-anim.ha-thermal-label-dpi-calculator .dp-r { gap: 6px; font-size: .72rem; padding: 0 8px; }
}
/* Reduced motion: the finished scene (203 dpi grid and its reading). */
.hub-anim.ha-thermal-label-dpi-calculator .dp-g1, .hub-anim.ha-thermal-label-dpi-calculator .dp-r1 { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
 .hub-anim.ha-thermal-label-dpi-calculator .dp-g1, .hub-anim.ha-thermal-label-dpi-calculator .dp-r1 { animation: dp-s1 10s ease infinite both; }
 .hub-anim.ha-thermal-label-dpi-calculator .dp-g2, .hub-anim.ha-thermal-label-dpi-calculator .dp-r2 { animation: dp-s2 10s ease infinite both; }
 .hub-anim.ha-thermal-label-dpi-calculator .dp-g3, .hub-anim.ha-thermal-label-dpi-calculator .dp-r3 { animation: dp-s3 10s ease infinite both; }
 .hub-anim.ha-thermal-label-dpi-calculator .dp-g { clip-path: inset(0 100% 0 0); }
 @keyframes dp-s1 { 0%, 3% { opacity: 1; clip-path: inset(0 100% 0 0); } 14%, 30% { opacity: 1; clip-path: inset(0 0 0 0); } 34%, 100% { opacity: 0; clip-path: inset(0 0 0 0); } }
 @keyframes dp-s2 { 0%, 33% { opacity: 0; clip-path: inset(0 100% 0 0); } 34% { opacity: 1; clip-path: inset(0 100% 0 0); } 46%, 63% { opacity: 1; clip-path: inset(0 0 0 0); } 67%, 100% { opacity: 0; clip-path: inset(0 0 0 0); } }
 @keyframes dp-s3 { 0%, 66% { opacity: 0; clip-path: inset(0 100% 0 0); } 67% { opacity: 1; clip-path: inset(0 100% 0 0); } 79%, 96% { opacity: 1; clip-path: inset(0 0 0 0); } 100% { opacity: 0; clip-path: inset(0 0 0 0); } }
}
