/* FirePoop self-hosted pixel fonts — eliminates Google Fonts webfont-swap CLS (HAG-1087/1088).
   Latin subsets pulled from Google Fonts (Press Start 2P v16, VT323 v18). Absolute /fonts/ paths
   so the faces resolve identically from the root game and from SEO subdirectory pages. */

/* --- Real fonts --- */
@font-face {
  font-family: 'Press Start 2P';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/classic/fonts/press-start-2p-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'VT323';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/classic/fonts/vt323-latin.woff2') format('woff2');
}

/* --- Metric-adjusted fallbacks ---
   These override a system font's metrics so its glyph box ~matches the real pixel font,
   so no reflow (CLS) when the real font swaps in. Values are APPROXIMATE, hand-tuned:
   Press Start 2P is squarish/wide (size-adjust >100%); VT323 is tall/narrow (size-adjust ~55%). */
@font-face {
  font-family: 'PressStart2P-fallback';
  src: local('Arial');
  size-adjust: 120%;
  ascent-override: 90%;
  descent-override: 20%;
  line-gap-override: 0%;
}

@font-face {
  font-family: 'VT323-fallback';
  src: local('Courier New');
  size-adjust: 55%;
  ascent-override: 130%;
  descent-override: 30%;
  line-gap-override: 0%;
}
