html, body {
  margin: 0;
  height: 100%;
  background: #10141c;
  color: #e8eaef;
  font-family: system-ui, sans-serif;
  overflow: hidden;
}

#view,
#babylon-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
}

#pair {
  position: fixed;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  background: rgba(6, 8, 12, 0.55);
}

#card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 16px 16px 18px;
  background: #fff;
  color: #16181d;
  border: 3px solid #d7dbe3;
  border-radius: 12px;
}

#qr {
  display: block;
  background: #fff;
  image-rendering: pixelated;
}

#url {
  margin: 0;
  max-width: min(72vw, 640px);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: clamp(13px, 2vmin, 18px);
  line-height: 1.35;
  text-align: center;
  word-break: break-all;
  color: #16181d;
}

#hint {
  margin: 0;
  max-width: min(72vw, 520px);
  text-align: center;
  font-size: clamp(14px, 2.2vmin, 18px);
  line-height: 1.35;
  color: #333;
}

#ip-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #222;
}

#ip {
  font: inherit;
  color: inherit;
}

#paired {
  position: fixed;
  inset: 0;
  z-index: 3;
  margin: 0;
  display: grid;
  place-items: center;
  font-size: clamp(64px, 12vw, 180px);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #fff;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.65);
  pointer-events: none;
}

#status {
  position: fixed;
  left: 12px;
  bottom: 10px;
  z-index: 4;
  margin: 0;
  font-size: 13px;
  color: #c5cad6;
}

#fs {
  position: fixed;
  right: 12px;
  bottom: 10px;
  z-index: 4;
  padding: 8px 14px;
  border: 1px solid #3a4150;
  border-radius: 8px;
  background: #1c212b;
  color: #fff;
  font: inherit;
  font-size: 14px;
}

#debug {
  position: fixed;
  left: 12px;
  bottom: 34px;
  z-index: 4;
  margin: 0;
  padding: 8px 10px;
  background: rgba(0, 0, 0, 0.55);
  color: #d5d8e0;
  font: 12px/1.45 ui-monospace, SFMono-Regular, Menlo, monospace;
  white-space: pre;
  pointer-events: none;
}

#pair[hidden],
#paired[hidden],
#ip-wrap[hidden],
#debug[hidden],
#view[hidden],
#babylon-canvas[hidden] {
  display: none !important;
}

body.fs-idle,
body.fs-idle * {
  cursor: none !important;
}

body.fs-idle #pair {
  background: transparent;
}

body.fs-idle #card {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

body.fs-idle #status,
body.fs-idle #fs,
body.fs-idle #debug,
body.fs-idle #url,
body.fs-idle #hint,
body.fs-idle #ip-wrap {
  opacity: 0;
  pointer-events: none;
}
