import { chromium } from 'playwright';
const b = await chromium.launch({ executablePath:'/usr/bin/chromium-browser', args:['--no-sandbox'] });
const ctx = await b.newContext({ viewport:{ width:390, height:1200 }, deviceScaleFactor:2, serviceWorkers:'block' });
await ctx.addInitScript(()=>{localStorage.setItem('sz_theme','dark');localStorage.setItem('sz_accent','green');});
const p = await ctx.newPage();
await p.goto('https://poly-dev.szhub.space/', { waitUntil:'domcontentloaded', timeout:35000 });
await p.waitForTimeout(6000);
const f = await p.evaluate(()=>{const e=document.querySelector('.pk-leaders .pk-hh h1');return e?getComputedStyle(e).fontFamily:'none';});
const loaded = await p.evaluate(()=>document.fonts.check("16px Newsreader"));
await p.screenshot({ path:'_nr.png' });
console.log('title font-family:', f, '| Newsreader loaded:', loaded);
await b.close();