:root {
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: #000;
  color: #fff;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  overflow: hidden;
  /* faint map grid, fading out toward the edges */
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: center center;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 35%, #000 85%);
}

#field {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
}

main {
  position: relative;
  z-index: 1;
  height: 100vh;
  height: 100svh;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
}

h1 {
  font-size: clamp(50px, 12vw, 160px);
  margin: 0;
  font-weight: bold;
  letter-spacing: 0.05em;
}

/* with WebGPU running, the particles draw the word; the text stays for screen readers and copy */
.gpu h1 {
  color: transparent;
}

footer {
  position: fixed;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0 16px max(32px, env(safe-area-inset-bottom));
  text-align: center;
}

footer a {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  font-size: 15px;
  letter-spacing: 0.12em;
  transition: color 0.2s;
}

footer a:hover,
footer a:focus-visible {
  color: #fff;
}

/* 404 */
.lost {
  height: 100vh;
  height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.lost a {
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.12em;
  text-decoration: none;
  font-size: 15px;
}

.lost a:hover,
.lost a:focus-visible {
  color: #fff;
}
