
.leitor {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: var(--raio-cartao);
    background: #1c1d21;
    display: grid;
    place-items: center;
}

@supports not (aspect-ratio: 1) {
    .leitor { padding-top: 100%; }
    .leitor__mira { position: absolute; }
}

.leitor__palco {
    position: absolute;
    inset: 0;
}

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


.leitor__mira {
    position: relative;
    width: 62%;
    aspect-ratio: 1;
    border-radius: 14px;
    box-shadow: 0 0 0 2000px rgba(20, 21, 25, .55);
    pointer-events: none;
}

.leitor__canto {
    position: absolute;
    width: 26px;
    height: 26px;
    border: 3px solid #fff;
    border-radius: 4px;
}

.leitor__canto--se { top: -2px;    left: -2px;  border-right: none; border-bottom: none; border-radius: 8px 0 0 0; }
.leitor__canto--sd { top: -2px;    right: -2px; border-left: none;  border-bottom: none; border-radius: 0 8px 0 0; }
.leitor__canto--ie { bottom: -2px; left: -2px;  border-right: none; border-top: none;    border-radius: 0 0 0 8px; }
.leitor__canto--id { bottom: -2px; right: -2px; border-left: none;  border-top: none;    border-radius: 0 0 8px 0; }

@keyframes leitorVarrer {
    0%, 100% { transform: translateY(-46%); }
         50% { transform: translateY(46%); }
}

.leitor__linha {
    position: absolute;
    left: 6%;
    right: 6%;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    animation: leitorVarrer var(--t-marca-laco) var(--ease-suave) infinite;
}

.leitor__dica {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 14px;
    margin: 0;
    padding: 0 20px;
    text-align: center;
    font-size: 12.5px;
    color: rgba(255, 255, 255, .86);
}


.leitor__leitura {
    margin: 12px 0 0;
    font-size: 14px;
    font-weight: 620;
    text-align: center;
    color: var(--success);
}

@media (prefers-reduced-motion: reduce) {
    .leitor__linha { animation-duration: calc(var(--t-marca-laco) * 1.6); }
}
