/*
  Van Wagner MCR — base reset and page shell.

  Generic enough to serve any station: the control room later, a standalone
  game page now. Station-specific layout lives in that station's own CSS.
*/

/*
  Self-hosted per the SIL OFL — see assets/fonts/OFL.txt, shipped alongside
  the font as the license requires. font-display: swap means the page is
  readable in the system-mono fallback immediately; document.fonts.ready
  (in each station's own script) gates the first canvas draw so in-game text
  doesn't visibly reflow mid-frame once the real font resolves.
*/
@font-face {
  font-family: 'Press Start 2P';
  src: url('../../assets/fonts/press-start-2p.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  background: var(--vw-charcoal);
  color: var(--vw-white);
  font-family: var(--vw-font-display);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: none;
  font-smooth: never;
}

img,
canvas,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--vw-white);
}

button {
  font-family: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

/* Generic centered page shell: wordmark, content, footer stacked and centered */
.vw-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--vw-space-4);
  min-height: 100vh;
  padding: var(--vw-space-4) var(--vw-space-2);
  text-align: center;
}

.footer {
  margin: 0;
  max-width: 480px;
  font-size: 10px;
  line-height: 1.8;
  color: var(--vw-gray);
}

:focus-visible {
  outline: 2px dashed var(--vw-focus-ring);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
