/* Face reading — intro, scan overrides (extends palm-scan.css) */

.face-landing-wrap { padding-bottom: 40px; }

.face-intro {
    position: relative;
    text-align: center;
    padding: 34px 20px 34px;
    border-radius: 22px;
    color: #fff;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(18,0,42,0.80), rgba(26,0,51,0.80) 55%, rgba(7,0,21,0.94)),
        url('/assets/face/face-intro-bg.png') center/cover no-repeat,
        #1A0033;
}
.face-intro-inner { position: relative; z-index: 2; max-width: 560px; margin: 0 auto; }
.face-intro-title { font-size: 27px; font-weight: 800; margin: 0; color: #fff; }
.face-intro-sub { margin: 14px 0 4px; color: rgba(255,255,255,0.72); font-size: 15px; }
.face-intro-topics { margin: 0; color: rgba(255,255,255,0.9); font-size: 16px; font-weight: 600; }
.face-intro-note { margin: 14px 0 0; color: rgba(255,255,255,0.55); font-size: 12.5px; }

.face-intro-visual {
    position: relative;
    width: 280px;
    height: 280px;
    margin: 30px auto;
    cursor: pointer;
}
.face-intro-ring {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    animation: faceIntroSpin 12s linear infinite;
    filter: drop-shadow(0 0 22px rgba(168, 85, 247, 0.45));
}
.face-intro-face {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 70%;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: 2;
}
@keyframes faceIntroSpin { to { transform: rotate(360deg); } }

.face-intro-tips { list-style: none; padding: 0; margin: 6px 0 26px; display: flex; flex-direction: column; gap: 6px; }
.face-intro-tips li { color: rgba(255,255,255,0.72); font-size: 14px; }

/* Front camera — mirror preview like the app */
.face-cam-video { transform: scaleX(-1); }

.face-cam-oval {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(68vw, 260px);
    height: min(88vw, 340px);
    border: 2px solid rgba(255,255,255,0.45);
    border-radius: 50%;
    box-shadow:
        0 0 0 9999px rgba(0,0,0,0.35),
        0 0 40px rgba(168,85,247,0.25);
    pointer-events: none;
    z-index: 3;
}

/* Processing ritual */
.face-processing-stage {
    position: absolute;
    inset: 0;
    background: #0D0D16;
    overflow: hidden;
}
.face-processing-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
.face-proc-status {
    position: absolute;
    left: 0; right: 0;
    bottom: calc(80px + env(safe-area-inset-bottom));
    text-align: center;
    color: rgba(226,185,106,0.95);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    z-index: 5;
    padding: 0 20px;
}
.face-proc-zone {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    padding: 6px 14px;
    border-radius: 20px;
    background: rgba(226,185,106,0.15);
    border: 1px solid rgba(226,185,106,0.45);
    color: #FDE68A;
    font-size: 12px;
    font-weight: 800;
    z-index: 6;
    white-space: nowrap;
}
.face-proc-progress {
    position: absolute;
    left: 24px; right: 24px;
    bottom: calc(48px + env(safe-area-inset-bottom));
    height: 3px;
    background: rgba(255,255,255,0.12);
    border-radius: 2px;
    overflow: hidden;
    z-index: 5;
}
.face-proc-progress > span {
    display: block;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #E2B96A, #A855F7);
    transition: width 0.15s linear;
}

.face-result-scroll .face-report { margin-top: 0; }
