.demo-face__qr { margin: 18px 0 0; max-width: 144px; }
.demo-face__collection {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: clamp(6px, 1.3vw, 20px);
  padding: clamp(24px, 5vw, 80px) clamp(12px, 2.2vw, 30px);
  border-radius: var(--r-panel);
  background: #eadfcf;
}
.demo-face__collection figure { margin: 0; text-align: center; }
.demo-face__collection img { width: 100%; height: auto; filter: drop-shadow(0 8px 5px #4c2c181f); }
.demo-face__collection figcaption { margin-top: 12px; color: #493529; font: 700 15px/1.4 var(--font-display); }
.demo-face__ar { display: none; }
.demo-face__ar:target {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: grid;
  place-items: center;
  background: #10141b;
  color: white;
  overscroll-behavior: contain;
}
body:has(.demo-face__ar:target) { overflow: hidden; }
body:has(.demo-face__ar:target) :is(.tds-header, #tbd-menu, .tds-footer, .demo-camera-back, .demo-skip, .demo-face__collection, .demo-camera__copy) { display: none; }
.demo-face__stage { position: absolute; inset: 0; }
.demo-face__stage canvas { display: block; width: 100%; height: 100%; object-fit: contain; }
.demo-face__feedback {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 10px;
  width: min(400px, calc(100% - 24px));
  text-align: center;
}
.demo-face__status {
  margin: 0;
  padding: 6px 14px;
  border-radius: 12px;
  background: #10141bd9;
  color: white;
  font-size: 14px;
  line-height: 1.6;
}
.demo-face[data-face-active] .demo-face__feedback {
  position: absolute;
  top: max(12px, env(safe-area-inset-top));
  pointer-events: none;
}
.demo-face[data-face-tracking] .demo-face__status {
  position: absolute;
  clip-path: inset(50%);
}
.demo-face__controls {
  display: none;
  position: absolute;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100% - 16px);
}
.demo-face[data-face-active] .demo-face__controls {
  display: grid;
  justify-items: center;
  gap: 12px;
}
.demo-face__choices { display: flex; justify-content: center; gap: 6px; }
.demo-face__choices button {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  padding: 4px 10px 4px 6px;
  border: 1px solid #ffffff70;
  border-radius: 22px;
  background: #10141bdc;
  color: white;
  font: 700 14px/1.3 var(--font-display);
  white-space: nowrap;
  cursor: pointer;
}
.demo-face__choices button[aria-pressed="true"] { background: white; border-color: white; color: #10141b; }
.demo-face__choices button:disabled { opacity: .6; }
.demo-face__choices img { width: 28px; height: 28px; object-fit: contain; }
.demo-face__ar :focus-visible { outline: 3px solid #ffd694; outline-offset: 3px; }
@media (max-width: 720px) { .demo-face__qr { display: none; } }
@media (orientation: landscape) and (max-height: 520px) {
  .demo-face__controls {
    left: auto;
    right: max(12px, env(safe-area-inset-right));
    bottom: 50%;
    transform: translateY(50%);
  }
  .demo-face__choices { flex-direction: column; }
}
