:root {
  color-scheme: dark;
  background: #000;
  color: #e90;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  background: #000;
  overflow: hidden;
}

body {
  display: grid;
  place-items: start center;
}

#stage {
  position: relative;
  width: min(100vw, calc(100vh * 16 / 9));
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
}

#c {
  display: block;
  width: 100%;
  height: 100%;
  cursor: crosshair;
  image-rendering: pixelated;
  transition: opacity 1s;
}

#c.dimmed {
  opacity: 0.3;
}

#a {
  position: absolute;
  inset: 4% 2% auto;
  width: 94%;
  overflow: hidden;
  color: #c80;
  font-size: clamp(0.55rem, 1.6vw, 1.3rem);
  font-weight: 700;
  line-height: 1.15;
  white-space: nowrap;
  text-align: left;
  text-shadow: 0 0 7px #f70;
  transition: opacity 1s;
  pointer-events: none;
}

#a.faded {
  opacity: 0;
}

#a div:last-child {
  color: #e90;
}

#a b {
  animation: cursor-blink 1s infinite;
}

[hidden] {
  display: none !important;
}

@keyframes cursor-blink {
  50% {
    opacity: 0;
  }
}
