/* Face check (js/face.js): the sign-in card's look, over everything, with the camera in a circle. */
.fg { position: fixed; inset: 0; z-index: 400; overflow-y: auto; background: var(--bg); -webkit-overflow-scrolling: touch; }
body.fg-open { overflow: hidden; }
.fg-wrap { padding-top: max(28px, env(safe-area-inset-top)); padding-bottom: max(28px, env(safe-area-inset-bottom)); }
.fg-card { text-align: left; }

.fg-points { margin: -8px 0 16px; padding-left: 18px; font-size: 13px; line-height: 1.55; color: var(--text-2); }
.fg-points li + li { margin-top: 4px; }
.fg-fine { margin: 0 0 18px; font-size: 12px; line-height: 1.5; color: var(--text-3); }
.fg-fine a { color: var(--accent); font-weight: 600; }
.fg-note { margin: 0 0 16px; }

.fg-stage { display: grid; place-items: center; margin: 4px 0 16px; }
.fg-ring {
  position: relative; width: min(64vw, 236px); aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  background: #0C0E18; isolation: isolate;
}
/* the picture is mirrored on screen, as a mirror is, so "turn to your left" moves the face to the left */
.fg-video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); display: block; }
.fg-progress { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); pointer-events: none; }
.fg-track, .fg-bar { fill: none; stroke-width: 3.5; }
.fg-track { stroke: rgba(255, 255, 255, .22); }
.fg-bar { stroke: var(--accent); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset .35s var(--ease-out); }

.fg-cue {
  position: absolute; width: 40px; height: 40px; border-radius: 50%; display: none; place-items: center;
  background: rgba(12, 14, 24, .62); color: #fff; z-index: 1;
}
.fg-cue svg { width: 22px; height: 22px; }
.fg-cue.is-left, .fg-cue.is-right, .fg-cue.is-blink, .fg-cue.is-ok { display: grid; }
.fg-cue.is-left { left: 10px; top: calc(50% - 20px); }
.fg-cue.is-right { right: 10px; top: calc(50% - 20px); }
.fg-cue.is-blink { left: calc(50% - 20px); top: 12px; }
.fg-cue.is-ok { inset: 0; width: auto; height: auto; border-radius: 0; background: color-mix(in srgb, var(--success) 72%, transparent); }
.fg-cue.is-ok svg { width: 56px; height: 56px; }
@media (prefers-reduced-motion: no-preference) {
  .fg-cue.is-left svg { animation: fgNudgeL 1.1s var(--ease-in-out) infinite; }
  .fg-cue.is-right svg { animation: fgNudgeR 1.1s var(--ease-in-out) infinite; }
  .fg-cue.is-ok { animation: fadeIn .2s var(--ease-out); }
}
@keyframes fgNudgeL { 50% { transform: translateX(-3px); } }
@keyframes fgNudgeR { 50% { transform: translateX(3px); } }
@media (prefers-reduced-motion: reduce) { .fg-bar { transition: none; } }

.fg-say { margin: 0 0 10px; min-height: 2.8em; text-align: center; font-size: 15px; font-weight: 650; line-height: 1.4; color: var(--text); }
.fg-steps { display: flex; justify-content: center; gap: 6px; min-height: 6px; margin: 0 0 6px; }
.fg-steps i { width: 6px; height: 6px; border-radius: 50%; background: var(--line-strong); transition: background var(--t); }
.fg-steps i.on { background: var(--accent); }
.fg-foot { text-align: center; }
.fg-card.is-done .fg-ring { box-shadow: 0 0 0 3px var(--success); }

/* Manage › Face check (js/pages/admin-face.js) */
.fc-admin .card + .card { margin-top: 16px; }
.fc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 4px 16px; margin-top: 10px; }
.fc-filters { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 12px; }
.fc-filter { border: 1px solid transparent; cursor: pointer; font: inherit; padding: 4px 10px; border-radius: var(--r-pill); background: var(--fill); font-size: 12px; color: var(--text-2); }
.fc-filter.is-on { background: var(--accent-tint); color: var(--accent); border-color: var(--accent-ring); }
.fc-search { width: 100%; max-width: 360px; margin: 0 0 12px; }
.fc-row { cursor: pointer; }
.fc-row:hover td, .fc-row:focus-visible td { background: var(--fill); }
.fc-pages { justify-content: space-between; margin-top: 10px; }
.fc-head { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.fc-head > div { flex: 1 1 200px; display: grid; gap: 6px; }
.fc-photo { width: 132px; height: 132px; object-fit: cover; border-radius: var(--r-sm); background: var(--fill); flex: none; }
.fc-none { display: grid; place-items: center; text-align: center; font-size: 11.5px; color: var(--text-3); }
.fc-actions { margin-top: 4px; }
.fc-h { margin: 18px 0 8px; font-size: 13px; }
.fc-checks { display: grid; gap: 8px; max-height: 46vh; overflow-y: auto; }
.fc-check { display: flex; gap: 10px; align-items: center; }
.fc-thumb { width: 44px; height: 44px; border-radius: var(--r-xs); object-fit: cover; background: var(--fill); display: block; flex: none; }

/* Face-check consent (js/face.js introThenScan): tick before the camera opens. */
.fg-consent { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 16px; font-size: 13px; line-height: 1.45; color: var(--text-2); cursor: pointer; }
.fg-consent input { margin-top: 2px; width: 18px; height: 18px; flex: none; accent-color: var(--accent); }
