crt-screen-dpi.css.ts
const devicePixelRatio = 'var(--dpr, 1)';const snapToDevicePixels = (cssPixels: string) => [`calc(round(${cssPixels} * ${devicePixelRatio}, 1)`,`* 1px / ${devicePixelRatio})`,].join(' ');const scanLinePeriod = snapToDevicePixels('4');const scanLineOverlayStyles = {position: 'fixed',background: `repeating-linear-gradient(0deg, black, white ${scanLinePeriod})`,mixBlendMode: 'overlay',} as const;
ts