:root {
  color-scheme: dark;
  --ink: #ffffff;
  --red: #ff2a1f;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  background: #000;
  color: var(--ink);
  font-family: "Bahnschrift", "DIN Alternate", "Arial Narrow", Arial, sans-serif;
  overflow: hidden;
  overscroll-behavior: none;
}

body {
  display: grid;
  place-items: center;
}

/* The stage fills the window. The script keeps the shape of the scene picture inside it. */
#stage {
  position: fixed;
  inset: 0;
  margin: 0;
  background: #000;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}

#view {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

#credits {
  position: absolute;
  left: 1.2vw;
  top: calc(var(--scene-top, 0px) + 1.6vh);
  max-width: 70vw;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4em 1em;
  align-items: baseline;
  font-size: clamp(11px, 1.15vw, 18px);
  letter-spacing: 0.04em;
  text-shadow: 0 1px 3px #000, 0 0 12px #000;
}

#credits .song { opacity: 0.72; }

#credits a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  opacity: 0.9;
}

#credits a:hover,
#credits a:focus-visible { color: var(--red); opacity: 1; }

#credits a:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

/* Screen readers get the game state from here; sighted players get it in the tracker. */
#status {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
}
