*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  margin: 0;
  height: 100%;
  height: 100dvh;
  height: -webkit-fill-available;
  max-height: 100%;
  max-height: 100dvh;
  max-height: -webkit-fill-available;
  overflow: hidden;
  overscroll-behavior: none;
  background: #000;
}

body {
  margin: 0;
  height: 100%;
  height: 100dvh;
  height: -webkit-fill-available;
  max-height: 100%;
  max-height: 100dvh;
  max-height: -webkit-fill-available;
  overflow: hidden;
  overscroll-behavior: none;
  background: #000;
}

.page {
  box-sizing: border-box;
  position: relative;
  height: 100vh;
  height: 100dvh;
  height: -webkit-fill-available;
  max-height: 100vh;
  max-height: 100dvh;
  max-height: -webkit-fill-available;
  min-height: 0;
  overflow: hidden;
  overscroll-behavior: none;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.page-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 40px;
  margin: 0;
  padding: 0 16px;
  box-sizing: border-box;
  width: 100%;
  max-width: min(720px, 100%);
  margin-left: auto;
  margin-right: auto;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10px;
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: 0.02em;
  text-align: center;
  color: rgba(255, 255, 255, 0.55);
  overflow-wrap: anywhere;
}

.stage {
  position: absolute;
  top: 0;
  bottom: 56px;
  left: 0;
  right: 0;
  width: min(1200px, 100%);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  contain: paint;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* width:100% + height:auto made the bitmap taller than the flex row when % max-height
   failed to resolve; auto + caps fits inside the stage without overflow */
.stage svg {
  display: block;
  flex: 0 1 auto;
  min-width: 0;
  min-height: 0;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 100%;
  aspect-ratio: 900 / 360;
  overflow: hidden;
  shape-rendering: geometricPrecision;
  text-rendering: geometricPrecision;
  color-rendering: optimizeQuality;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Promote own compositing layer for cleaner scaling / blend AA */
  transform: translateZ(0);
  backface-visibility: hidden;
}

.chroma-layer {
  mix-blend-mode: screen;
  pointer-events: none;
  shape-rendering: geometricPrecision;
}

.chroma-layer.chroma-r use {
  fill: rgba(255, 20, 85, 0.92);
}

.chroma-layer.chroma-o use {
  fill: rgba(255, 100, 70, 0.52);
}

.chroma-layer.chroma-y use {
  fill: rgba(255, 210, 120, 0.48);
}

.chroma-layer.chroma-g use {
  fill: rgba(0, 255, 195, 0.78);
}

.chroma-layer.chroma-c use {
  fill: rgba(0, 255, 238, 0.95);
}

.chroma-layer.chroma-b use {
  fill: rgba(45, 115, 255, 0.94);
}

.chroma-layer.chroma-v use {
  fill: rgba(90, 95, 255, 0.72);
}

.chroma-layer.chroma-m use {
  fill: rgba(190, 70, 255, 0.58);
}

.lens-mag {
  isolation: isolate;
  shape-rendering: geometricPrecision;
}

.lens-root {
  pointer-events: none;
  will-change: opacity;
}

.lens-shell {
  fill: #000;
  stroke: none;
  pointer-events: none;
  shape-rendering: geometricPrecision;
}
