* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  width: 100%;
  height: 100%;
  background: #000;
  color: #fff;
  overflow: hidden;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}
.stage {
  width: 100%;
  height: 100dvh;
  display: grid;
  place-items: center;
  background: #000;
  outline: none;
  cursor: pointer;
}
#eyes {
  width: min(92vw, 900px);
  aspect-ratio: 2 / 1;
  height: auto;
  max-height: 70vh;
  background: #000;
  display: block;
  pointer-events: none;
}
.dock {
  position: fixed;
  left: 50%;
  bottom: calc(1.1rem + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  appearance: none;
  border: 1px solid #fff;
  background: #000;
  color: #fff;
  border-radius: 999px;
  padding: 0.45rem 0.85rem 0.45rem 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  line-height: 1;
  white-space: nowrap;
}
.pill:hover { background: #111; }
.pill:active { transform: scale(0.98); }
.pill.active {
  background: #fff;
  color: #000;
  border-color: #fff;
}
.pill:disabled { opacity: 0.55; cursor: wait; }
.pill-icon {
  display: inline-grid;
  place-items: center;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 999px;
  border: 1px solid currentColor;
}
.pill-icon svg { display: block; }
.cam {
  appearance: none;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 999px;
  border: 1px solid #fff;
  background: #000;
  color: #fff;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
}
.cam:hover { background: #111; }
.cam.off { opacity: 0.45; }
.cam[hidden] { display: none; }
.widget-fallback {
  position: fixed;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  opacity: 0;
  pointer-events: none;
  bottom: 0;
  right: 0;
}

.debug {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 40;
  margin: 0;
  padding: 8px 10px;
  max-width: min(420px, 92vw);
  font: 11px/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: #e8e8e8;
  background: rgba(0, 0, 0, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  white-space: pre-wrap;
  pointer-events: none;
  user-select: none;
}
