/* ---------- Font ---------- */
@font-face {
  font-family: "VCR OSD Mono";
  src: url("../fonts/VCR_OSD_MONO_1_001.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #06195a;
  --accent: #FE9F08;
  --text: #fff;
  --font: "VCR OSD Mono", "Courier New", monospace;
}

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

html {
  height: 100%;
  background: var(--navy);
}

/* avoids a white flash before WebGL starts */
body {
  min-height: 100%;
  margin: 0;
  color: var(--text);
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.1;
  /* 110% */
  letter-spacing: -0.04em;
  /* -4% */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---------- WebGL background ---------- */
#bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: -1;
  pointer-events: none;
}

body.no-gl {
  background: linear-gradient(160deg, #06195a 0%, #0a3f94 35%, #4aa8f0 55%, #06195a 80%) fixed;
}

/* ---------- Main CTA (bottom, text link) ---------- */
.page {
  min-height: 100svh;
}

.cta {
  position: fixed;
  left: 50%;
  bottom: max(32px, calc(env(safe-area-inset-bottom, 0px) + 24px));
  z-index: 10;
  transform: translateX(-50%);
  padding: 12px 16px;
  color: var(--accent);
  /* #FE9F08 */
  font-size: 18px;
  /* desktop; 14px on mobile (see media query) */
  cursor: pointer;
  white-space: nowrap;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  text-decoration-color: transparent;
  transition: text-decoration-color .4s ease, opacity .4s ease;
}

.cta:hover {
  text-decoration-color: currentColor;
}

.cta:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 8px;
}

.cta:active {
  opacity: .6;
}

/* ---------- Mobile type size ---------- */
@media (max-width: 768px) {
  .cta {
    font-size: 14px;
  }
}
