:root {
  --bg-inner: #3e1d6c;
  --bg-outer: #12012b;
  /* The gif is 768 x 860; its "SLOTHMAN" text starts around 670px down, so only the top 660px is shown. */
  --gif-w: 768;
  --gif-shown-h: 660;
}

html,
body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: var(--bg-outer) radial-gradient(ellipse at center, var(--bg-inner), var(--bg-outer)) no-repeat fixed;
}

/* The window onto the gif: sits on the bottom edge, centred, and hides everything below the cut line. */
.sloth {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  margin: 0;
  overflow: hidden;
  aspect-ratio: var(--gif-w) / var(--gif-shown-h);
  /* About 4/5 of the screen height, but never wider than a narrow phone screen. */
  height: min(82vh, 100vw * 660 / 768);
}

@supports (height: 1dvh) {
  .sloth { height: min(82dvh, 100vw * 660 / 768); }
}

.sloth img {
  display: block;
  width: 100%;
  height: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
