/* Foto do rosto do prestador (câmera ao vivo) */
.fr-open { overflow: hidden; }
.fr, .fr * { box-sizing: border-box; }
.fr { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 16px; background: rgba(8, 6, 14, .82); font-family: "Onest", system-ui, sans-serif; color: #f4f1fb; }
.fr__panel { position: relative; box-sizing: border-box; width: min(440px, 100%); max-height: calc(100dvh - 32px); overflow-y: auto; padding: 24px 20px 20px; border-radius: 24px; background: #19142a; }
.fr__close { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border: 0; border-radius: 50%; display: grid; place-items: center; background: #241d3a; color: #fff; cursor: pointer; }
.fr__body { display: grid; gap: 14px; }
.fr__title { margin: 0 44px 0 0; font-size: 22px; line-height: 1.25; font-weight: 800; letter-spacing: -.01em; }
.fr__lead { margin: 0; font-size: 15px; line-height: 1.5; color: #cfc6e2; }
.fr__rules { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.fr__rules li { display: flex; align-items: center; gap: 12px; font-size: 15px; line-height: 1.4; }
.fr__rules .material-symbols-rounded { flex-shrink: 0; width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: #241d3a; color: #FCBA04; font-size: 20px; }
.fr__note { margin: 0; display: flex; gap: 10px; padding: 12px 14px; border-radius: 14px; background: #241d3a; font-size: 13px; line-height: 1.5; color: #ada6c2; }
.fr__note .material-symbols-rounded { font-size: 18px; color: #FCBA04; }
.fr__stage { position: relative; width: 100%; aspect-ratio: 4 / 5; border-radius: 20px; overflow: hidden; background: #0d0a16; }
.fr__video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
/* Moldura oval: escurece em volta do rosto */
.fr__mask { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 34% 40% at 50% 44%, transparent 98%, rgba(8, 6, 14, .62) 100%); }
.fr__mask::after { content: ""; position: absolute; left: 16%; right: 16%; top: 4%; bottom: 16%; border: 3px solid #FCBA04; border-radius: 50%; transition: border-color .2s ease; }
.fr__stage.is-ok .fr__mask::after { border-color: #4ade80; }
.fr__hint { margin: 0; min-height: 2.6em; text-align: center; font-size: 15px; font-weight: 600; color: #cfc6e2; }
.fr__stage.is-ok + .fr__hint { color: #4ade80; }
.fr__preview { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 20px; background: #0d0a16; }
.fr__feedback { margin: 0; min-height: 1.4em; font-size: 14px; color: #FCBA04; text-align: center; }
.fr__feedback:empty { display: none; }
.fr-btn { min-height: 52px; width: 100%; border: 0; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; }
.fr-btn--primary { background: #FCBA04; color: #1a1300; }
.fr-btn--ghost { background: #241d3a; color: #fff; }
.fr-btn:disabled { opacity: .6; cursor: default; }
.fr-btn:focus-visible, .fr__close:focus-visible { outline: 3px solid #c6b2ff; outline-offset: 2px; }
@media (max-width: 480px) {
    .fr { padding: 0; align-items: end; }
    .fr__panel { width: 100%; max-height: 100dvh; border-radius: 24px 24px 0 0; padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
}
/* Continuar pelo celular */
.fr__qr { justify-self: center; padding: 12px; border-radius: 18px; background: #fff; line-height: 0; }
.fr__qr img { width: 220px; height: 220px; image-rendering: pixelated; }
.fr__qr:empty { display: none; }
.fr__steps { margin: 0; padding-left: 22px; display: grid; gap: 6px; font-size: 15px; line-height: 1.45; color: #cfc6e2; }
.fr__link { margin: 0; font-size: 14px; color: #ada6c2; text-align: center; overflow-wrap: anywhere; }
.fr__link strong { color: #fff; }
.fr__wait { margin: 0; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 12px; border-radius: 14px; background: #241d3a; font-size: 15px; font-weight: 600; color: #FCBA04; }
.fr__wait::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: fr-spin .8s linear infinite; }
@keyframes fr-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .fr__wait::before { animation-duration: 2.4s; } }
/* Página do celular */
.fr-page { min-height: 70vh; display: grid; place-items: center; padding: 32px 20px; font-family: "Onest", system-ui, sans-serif; color: #f4f1fb; }
.fr-page__card { width: min(440px, 100%); display: grid; gap: 14px; justify-items: center; padding: 32px 22px; border-radius: 24px; background: #19142a; text-align: center; }
.fr-page__card h1 { margin: 0; font-size: 24px; font-weight: 800; }
.fr-page__card p { margin: 0; font-size: 15px; line-height: 1.5; color: #cfc6e2; }
.fr-page__icon.material-symbols-rounded { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: #241d3a; color: #FCBA04; font-size: 34px; }
.fr-page__icon.is-ok { color: #4ade80; }
.fr-page .fr-btn { max-width: 320px; }
.fr__note a { color: #FCBA04; font-weight: 700; }
