:root {
  --night: #1b1532;
  --purple: #662483;
  --pink: #e94076;
  --yellow: #fdc549;
  --blue: #009ecf;
  --text: #f4eefa;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  background: var(--night);
  color: var(--text);
  font: 16px/1.4 system-ui, sans-serif;
}

body {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#stage {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

main {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
  pointer-events: none;
}

h1 {
  margin: 0;
  font: 900 clamp(2rem, 7vw, 4rem)/1 Impact, 'Arial Black', sans-serif;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

h1 a {
  pointer-events: auto;
  color: var(--yellow);
  text-decoration: none;
  -webkit-text-stroke: 2px var(--purple);
  paint-order: stroke fill;
}

h1 a:hover, h1 a:focus-visible { color: var(--pink); }

/* Without the animation (no script, or reduced motion): the two of them, standing still. */
.still {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-end;
  gap: 16px;
  margin: 24px 0 0;
}

.still img {
  width: min(42vw, 280px);
  height: auto;
}

.live .still { display: none; }
.live h1 { position: absolute; top: 4vh; }

/* Pause and play, for everything that moves (WCAG 2.2.2); P does the same. */
.pause {
  position: fixed;
  left: 16px;
  bottom: 10px;
  z-index: 1;
  min-height: 24px;
  padding: 2px 12px;
  border: 1px solid rgba(244, 238, 250, 0.5);
  border-radius: 999px;
  background: rgba(27, 21, 50, 0.7);
  color: var(--text);
  font: inherit;
  font-size: 0.75rem;
  cursor: pointer;
}
.pause:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }

footer {
  position: relative;
  pointer-events: none;   /* clicks go through to the badgers, but not past its links */
  padding: 8px 16px 12px;
  font-size: 0.75rem;
  text-align: center;
  opacity: 0.7;
}

footer a { color: inherit; pointer-events: auto; }
