:root {
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  background: #ffffff;
  overflow: hidden;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

main {
  position: relative;
  width: min(100vw, 177.78vh);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: white;
}

body.inverted,
body.inverted main {
  background: #000000;
}

canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.caption {
  display: none;
}

.caption span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.caption strong {
  font-size: clamp(28px, 5vw, 76px);
  line-height: 0.9;
  letter-spacing: -0.05em;
}

.load-error {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 10;
  color: white;
  font: 16px/1.4 system-ui, sans-serif;
}
