/* face capture field */
.fcap { display: flex; align-items: center; gap: 16px; width: 100%; text-align: left; }
.fcap-prev { flex: 0 0 auto; position: relative; width: 96px; height: 128px; padding: 0; border-radius: 14px; overflow: hidden; cursor: pointer; display: grid; place-items: center;
  background: #f7f3ea; border: 1.5px dashed #cdb67a; color: #b8964a; }
.fcap.is-done .fcap-prev { border-style: solid; border-color: #b8891f; }
.fcap-prev img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fcap-prev img[hidden], .fcap-ph[hidden] { display: none; }
.fcap-txt { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }
.fcap-txt > span { font-weight: 700; color: #12204a; font-size: .95rem; }
.fcap-txt > small { color: #5b6478; font-size: .84rem; line-height: 1.4; }
.fcap-btn { display: inline-flex; align-items: center; gap: 7px; margin-top: 6px; min-height: 40px; padding: 0 16px; border-radius: 999px; cursor: pointer;
  background: linear-gradient(180deg, #d4a73c 0%, #b8891f 50%, #a67c1e 100%); border: 1px solid #c99a35; color: #fff; font: 700 .9rem/1 Inter, system-ui, sans-serif; }
.fcap-btn b { font-weight: inherit; }
.fcap-file { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.fcap--round { flex-direction: column; text-align: center; gap: 10px; }
.fcap--round .fcap-prev { width: 112px; height: 112px; border-radius: 50%; }
.fcap--round .fcap-txt { align-items: center; }
.fcap.is-err .fcap-prev { border-color: #c0392b; animation: fcapShake .35s; }
.fcap.is-err .fcap-txt > small { color: #c0392b; }
@keyframes fcapShake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

/* camera screen */
html.fcam-lock, html.fcam-lock body { overflow: hidden; }
.fcam { position: fixed; inset: 0; z-index: 6000; display: flex; flex-direction: column; background: #05070d; color: #fff; }
.fcam-stage { position: relative; flex: 1; overflow: hidden; display: grid; place-items: center; }
.fcam-stage video, .fcam-still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fcam-stage video.is-mirror { transform: scaleX(-1); }
.fcam-still { object-fit: contain; background: #05070d; }
.fcam-still[hidden], .fcam video[hidden] { display: none; }
.fcam-mask { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.fcam-ring { stroke: rgba(255,255,255,.85); stroke-dasharray: 8 6; transition: stroke .2s; }
.fcam.is-ok .fcam-ring { stroke: #e9c862; stroke-dasharray: none; }
.fcam-still:not([hidden]) ~ .fcam-mask { display: none; }
.fcam-msg { position: absolute; left: 16px; right: 16px; top: max(18px, env(safe-area-inset-top)); margin: 0 auto; max-width: 420px; padding: 10px 14px; border-radius: 12px; text-align: center;
  background: rgba(5,8,16,.7); font: 600 .95rem/1.35 Inter, system-ui, sans-serif; }
.fcam.is-ok .fcam-msg { color: #f1d06a; }
.fcam-bar { display: flex; align-items: center; justify-content: space-around; gap: 16px; padding: 18px 20px max(22px, env(safe-area-inset-bottom)); background: #05070d; }
.fcam-bar[hidden] { display: none; }
.fcam-sm { width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; display: grid; place-items: center; cursor: pointer; }
.fcam-shut { width: 76px; height: 76px; border-radius: 50%; border: 4px solid #fff; background: transparent; padding: 5px; cursor: pointer; }
.fcam-shut i { display: block; width: 100%; height: 100%; border-radius: 50%; background: linear-gradient(180deg, #f3d67c, #c99a2e); transition: transform .12s; }
.fcam-shut:active i { transform: scale(.9); }
.fcam-shut:disabled { opacity: .45; cursor: default; }
.fcam-txt { min-height: 50px; padding: 0 22px; border-radius: 999px; border: 1px solid rgba(255,255,255,.4); background: transparent; color: #fff; font: 700 1rem/1 Inter, system-ui, sans-serif; cursor: pointer; }
.fcam-use { min-height: 50px; padding: 0 26px; border-radius: 999px; border: 1px solid #c99a35; background: linear-gradient(180deg, #d4a73c 0%, #b8891f 50%, #a67c1e 100%); color: #fff; font: 800 1rem/1 Inter, system-ui, sans-serif; cursor: pointer; }
.fcam.is-flash .fcam-stage::after { content: ""; position: absolute; inset: 0; background: #fff; animation: fcamFlash .26s ease-out forwards; }
@keyframes fcamFlash { from { opacity: .85; } to { opacity: 0; } }
/* live face check: progress dots under the message */
.fcam-steps { position: absolute; left: 0; right: 0; top: calc(max(18px, env(safe-area-inset-top)) + 58px); display: flex; justify-content: center; gap: 8px; }
.fcam-steps[hidden] { display: none; }
.fcam-steps i { width: 26px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.3); transition: background .3s; }
.fcam-steps i.on { background: linear-gradient(90deg, #e9c862, #f3d67c); }
.fcam .fcam-sm[hidden], .fcam .fcam-shut[hidden], .fcam .fcam-use[hidden] { display: none; }
.fcam.is-live .fcam-bar:not(.fcam-bar--after) { justify-content: flex-start; }
