:root {
  color-scheme: dark;
  background: #000;
  color: #ebe5dd;
  font-family: ui-monospace, "Courier New", monospace;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100svh; display: grid; place-items: center; padding: 20px 10px; }
main { width: min(100%, 1390px); text-align: center; }
.cast { display: flex; justify-content: center; align-items: end; gap: clamp(0px, 1vw, 12px); margin-bottom: 0; }
.sprite {
  width: 50%;
  aspect-ratio: 3 / 2;
  background-repeat: no-repeat;
  background-position: 0 0;
  background-size: 400% 200%;
  image-rendering: pixelated;
  animation: idle 7s steps(1, end) infinite;
}
.guts { background-image: url("/guts-shadow.webp"); }
.caiman { background-image: url("/caiman-shadow.webp"); animation-delay: -2.7s; }
@keyframes idle {
  0%, 56%, 100% { background-position: 0 0; }
  19%, 51% { background-position: 33.333333% 0; }
  37% { background-position: 66.666667% 0; }
  39% { background-position: 100% 0; }
  72% { background-position: 0 100%; }
  80% { background-position: 33.333333% 100%; }
  82% { background-position: 66.666667% 100%; }
  87% { background-position: 100% 100%; }
}
.ascii { display: grid; justify-items: center; gap: clamp(9px, 2vw, 18px); }
.phrase { display: flex; align-items: flex-start; gap: 1.7em; font-size: clamp(4px, 1.36vw, 13px); }
.phrase:first-child { font-size: clamp(7px, 2.1vw, 17px); }
pre {
  margin: 0;
  font: inherit;
  line-height: 1;
  white-space: pre;
  text-align: left;
  font-variant-ligatures: none;
}
.signature { color: #8b50a8; font-size: clamp(19px, 3vw, 34px); font-weight: 800; letter-spacing: .13em; margin: .7em 0 0; }
.cursor { display: inline-block; font-size: .69em; margin-left: .58em; animation: caret 1.35s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) {
  .sprite, .cursor { animation: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .signature .signed { animation: sign-on 340ms steps(1, end) both; }
}
@keyframes sign-on {
  0% { opacity: 0; }
  35% { opacity: .65; }
  64% { opacity: .35; }
  100% { opacity: 1; }
}
main { position: relative; }
.wordmark {
  display: block;
  width: min(45%, 580px);
  height: auto;
  margin: 0 auto clamp(3px, 1.4vh, 17px);
}
.stage {
  display: grid;
  grid-template-columns: clamp(54px, 9vw, 130px) minmax(0, 1fr) clamp(54px, 9vw, 130px);
  align-items: center;
  gap: clamp(2px, 1vw, 14px);
}
.cast { gap: 0; min-width: 0; }
.sprite { flex: 0 0 50%; }
.emblem { display: block; width: min(96%, 116px); height: auto; margin: auto; image-rendering: pixelated; }
.ascii { margin-top: clamp(4px, 1vw, 10px); }
@media (max-width: 850px) {
  .stage { grid-template-columns: 1fr; }
  .wordmark { width: min(70%, 435px); }
  .emblem { position: absolute; top: clamp(28px, 11vw, 75px); width: clamp(29px, 9.5vw, 63px); }
  .emblem-left { left: 1px; }
  .emblem-right { right: 1px; }
}
@media (min-width: 851px) and (max-height: 810px) {
  main { max-width: 1050px; }
  .wordmark { width: 39%; }
  .phrase { font-size: 12px; }
  .phrase:first-child { font-size: 15px; }
  .signature { font-size: 27px; }
}
@media (min-width: 2200px) and (min-height: 1100px) {
  main { max-width: 1560px; }
  .wordmark { width: 620px; }
}
