/* Every word on the page is a picture (assets/text/). Their heights are fractions of the frame's, so the text keeps
   its place and size over the picture at any window size. */
html, body { margin: 0; height: 100%; background: #000; overflow: hidden; }
body { display: flex; align-items: center; justify-content: center; }
#frame { position: relative; width: min(100vw, 100vh * 16 / 9); aspect-ratio: 16 / 9; container-type: size; }
#picture { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; }
[hidden] { display: none !important; }

.art { display: block; width: auto; }
.art.title { height: auto; width: 64cqw; }
.art.heading { height: 15cqh; }
.art.line { height: 7.5cqh; }
.art.small { height: 5cqh; }
.art.hud { height: 7.5cqh; }
.art.rate { height: 4.4cqh; }
/* A run of figures: each picture is as tall as the run and they stand on one baseline, their rims just touching. */
.figures { display: inline-flex; align-items: flex-end; }
.figures img { height: 100%; width: auto; margin: 0 -0.25cqh; }
.figures.hud { height: 7.5cqh; }
.figures.line { height: 7.5cqh; }
.figures.rate { height: 4.4cqh; }

#status { position: absolute; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: flex-start; padding: 1cqh 1.2cqw; pointer-events: none; }
#clock { position: absolute; left: 50%; transform: translateX(-50%); }
#frame-rate { position: absolute; right: 1.2cqw; bottom: 1cqh; display: flex; align-items: flex-end; gap: 0.6cqw; pointer-events: none; }

#banner { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; pointer-events: none; }
#banner.middle { justify-content: center; gap: 1.2cqh; }
#banner.bottom { justify-content: flex-end; padding-bottom: 2cqh; gap: 0.2cqh; }
.line-of-art { display: flex; align-items: flex-end; justify-content: center; gap: 1.5cqw; }
.failure { font: 2.6cqh/1.4 Helvetica, Arial, sans-serif; color: #fff; margin: auto 8cqw; text-align: center; }
