html,
body {
  margin: 0;
  min-height: 100%;
  background: #000;
  color: #aaaaaa;
}

body {
  min-height: 100vh;
  /* faint warm glow where the fire sits */
  background:
    radial-gradient(ellipse at 50% 45%, rgba(170, 60, 0, 0.10), transparent 55%),
    #000;
}

#embers {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

main {
  position: relative;
  z-index: 1;
  /* 63 ≈ banner width in columns (~102) × 0.6em per Courier New character, plus slack.
     Raise it if the banner overflows on narrow screens. */
  --fs: min(14px, calc((100vw - 2rem) / 63));

  min-height: 100vh;
  box-sizing: border-box;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;      /* centers each block horizontally */
  justify-content: center;  /* centers the stack vertically */
  text-align: center;
}

.ascii {
  font-family: "Courier New", Courier, monospace;
  font-size: var(--fs);
  line-height: 1.17;
  white-space: pre;
  text-align: left;         /* keep the art's own columns intact */
  width: max-content;       /* box hugs the art, so the box can be centered */
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
}

#fire {
  font-size: calc(var(--fs) * 1.5); /* the flame is only 8 columns wide, so it scales up from the banner size */
  user-select: none;
  text-shadow: 0 0 1em rgba(255, 120, 40, 0.35);
}