:root {
  color-scheme: dark;
  background: #05070a;
  font-family: Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body,
#stage {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
}

body {
  background: #05070a;
}

#image,
#video,
#frame,
.fallback {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #05070a;
  opacity: 0;
  transition: opacity 260ms ease;
}

#image,
#video {
  object-fit: contain;
}

#frame {
  display: block;
}

.visible {
  opacity: 1 !important;
  z-index: 2;
}

.fallback {
  display: grid;
  place-items: center;
  color: #f6f7f8;
  text-align: center;
  z-index: 1;
}

.fallback::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 24% 32%, rgba(46, 211, 183, 0.34), transparent 28%),
    radial-gradient(circle at 78% 64%, rgba(255, 176, 0, 0.28), transparent 24%),
    linear-gradient(135deg, #05070a 0%, #111820 100%);
}

.fallback > div {
  position: relative;
  padding: 32px;
}

.label {
  margin: 0 0 16px;
  font-size: 22px;
  letter-spacing: 0;
  text-transform: uppercase;
  color: #2ed3b7;
}

h1 {
  margin: 0;
  font-size: 56px;
  font-weight: 700;
}

.pairing-code {
  margin: 26px 0 0;
  color: #ffb000;
  font-size: 96px;
  font-weight: 800;
  letter-spacing: 0;
}
