/* Camera scanner frame shared by /scan and /admin/scan (see js/scanner.js). */

.camera {
    position: relative;
    background: #1f2430;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 4 / 3;
    max-height: 45vh;
    width: 100%;
    box-shadow: var(--shadow);
}

.camera video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.camera .guide {
    position: absolute;
    left: 12%;
    right: 12%;
    top: 32%;
    bottom: 32%;
    border: 3px solid rgba(255,255,255,0.85);
    border-radius: 12px;
    box-shadow: 0 0 0 999px rgba(0,0,0,0.25);
    transition: border-color 0.15s ease;
    pointer-events: none;
}

.camera:not(.live) .guide { display: none; }
.camera.hit .guide { border-color: var(--ok); }

.camera .start {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: white;
    text-align: center;
    padding: 1rem;
}

.scan-status {
    text-align: center;
    color: var(--muted);
    font-size: 0.9rem;
    margin: 0.6rem 0 1rem;
    min-height: 1.4em;
}
