@font-face {
  font-family: 'PS2Sans';
  src: url('../assets/fonts/rodin-light.woff') format('woff');
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: 'PS2Sans';
  src: url('../assets/fonts/rodin-regular.woff') format('woff');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'PS2Sans';
  src: url('../assets/fonts/rodin-bold.woff') format('woff');
  font-weight: 700;
  font-display: swap;
}

:root {
  --font: 'PS2Sans', 'Trebuchet MS', 'Segoe UI', system-ui, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  background: #000;
  overflow: hidden;
}

body {
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

/* ---- Full-viewport stage ---- */
/* The canvas fills the viewport and carries the (in-scene) gradient background,
   the 3D content, the HUD text and the CRT post-process. */
.stage {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: #000;
}

#scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* ---- CRT scanline overlay (covers the whole frame; static, no flicker) ---- */
.stage::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 10;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.09) 0,
    rgba(0, 0, 0, 0.09) 1px,
    transparent 1px,
    transparent 3px
  );
}

[hidden] { display: none !important; }
