: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;
}

.preview-base{position:absolute;inset:0;width:100%;height:100%;object-fit:fill}canvas{position:relative;opacity:0}canvas.ready{opacity:1}#load-status{position:fixed;bottom:24px;left:24px;color:#333;background:#fff;padding:12px 16px;font:13px system-ui;z-index:20}.load-error{color:#222;background:#fff;padding:12px}
