.tarjeta-auto {
    width: min(760px, 100%);
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
}

.marco-auto {
    --desenfoque-auto: 24px;
    --brillo-auto: 0.72;
    --escala-auto: 1.08;
    position: relative;
    display: grid;
    min-height: 0;
    padding: 0;
    border-radius: 12px;
    aspect-ratio: 16 / 9;
    background:
        radial-gradient(circle at center, rgb(255 255 255 / 9%), transparent 58%),
        #0b0c0f;
    box-shadow:
        inset 0 1px 0 rgb(255 255 255 / 5%),
        0 0 0 1px rgb(255 255 255 / 4%),
        0 24px 44px -26px rgb(0 0 0 / 75%);
    overflow: hidden;
    place-items: center;
}

#foto-auto {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    filter: blur(var(--desenfoque-auto)) brightness(var(--brillo-auto));
    transform: scale(var(--escala-auto));
    transition: filter 500ms ease, transform 500ms ease, opacity 220ms ease;
    will-change: filter, transform;
}

#foto-auto.foto-auto--preparada {
    opacity: 1;
}

#foto-auto.foto-auto--panoramica {
    width: 100%;
    height: 100%;
}

.intro-juego__imagen--auto {
    animation: auto-intro-desenfoque 3.2s ease-in-out infinite;
}

@keyframes auto-intro-desenfoque {
    0%, 100% { filter: blur(10px); }
    50% { filter: blur(0px); }
}

@media (prefers-reduced-motion: reduce) {
    .intro-juego__imagen--auto {
        animation: none;
        filter: blur(4px);
    }
}

.niveles-desenfoque {
    position: absolute;
    right: 18px;
    bottom: 18px;
    left: 18px;
    display: flex;
    gap: 5px;
}

.estado-final {
    display: flex;
    min-width: 0;
    padding: 0;
    color: #fff;
    background: transparent;
    text-align: left;
    align-items: center;
}

.estado-final span {
    color: #ff6071;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.estado-final--correcto span {
    color: #44d487;
}

.estado-final strong {
    margin-left: 8px;
    font-size: 1rem;
    line-height: 1.1;
    text-transform: uppercase;
}

.estado-final:focus {
    outline: none;
}

.tarjeta-auto .estado-diario {
    gap: 14px;
    border-top: none;
    justify-content: space-between;
}

.juego--auto .boton-intentar {
    box-shadow:
        inset 0 -3px 0 rgb(0 0 0 / 22%),
        0 10px 18px -12px rgb(242 13 34 / 45%);
    transition: background-color 150ms ease, border-color 150ms ease, transform 120ms ease, box-shadow 120ms ease;
}

.juego--auto .boton-intentar:active:not(:disabled) {
    box-shadow: inset 0 -1px 0 rgb(0 0 0 / 22%);
    transform: translateY(2px) scale(0.97);
}

.juego--auto .boton-intentar:disabled {
    box-shadow: none;
}

#intentos-restantes-auto {
    margin: 0 auto;
}

.tarjeta-auto .cuenta-regresiva {
    margin-left: auto;
    flex: 0 0 auto;
}

.intento-auto {
    position: relative;
    display: flex;
    min-height: 64px;
    padding: 8px 12px;
    border: 1px solid #4a2b33;
    border-left: 4px solid var(--color-incorrecto);
    border-radius: 3px;
    background: var(--color-superficie-clara);
    box-shadow: inset 0 -2px 0 rgb(0 0 0 / 22%);
    gap: 12px;
    align-items: center;
    animation: auto-intento-entrada 320ms ease both;
}

.intento-auto--correcto {
    border-color: #286b4a;
    border-left-color: var(--color-correcto);
}

.intento-auto--correcto::after {
    position: absolute;
    top: 50%;
    right: 12px;
    display: grid;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    color: #fff;
    background: var(--color-correcto);
    font-family: var(--fuente-titulos);
    font-size: 0.7rem;
    font-weight: 800;
    content: "✓";
    transform: translateY(-50%);
    animation: auto-check-aparecer 360ms ease 140ms both;
    place-items: center;
}

@keyframes auto-intento-entrada {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes auto-check-aparecer {
    from {
        opacity: 0;
        transform: translateY(-50%) scale(0);
    }

    to {
        opacity: 1;
        transform: translateY(-50%) scale(1);
    }
}

.intento-auto img {
    width: 52px;
    height: 48px;
    object-fit: contain;
    object-position: center bottom;
}

.intento-auto strong {
    font-family: var(--fuente-titulos);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.resultado-auto-modal__foto {
    display: block;
    width: 170px;
    height: 170px;
    margin: 20px auto 0;
    border-radius: 50%;
    background: #24252b;
    object-fit: contain;
    object-position: center bottom;
}

.resultado-modal--correcto .resultado-auto-modal__foto {
    box-shadow: 0 0 0 3px var(--color-correcto);
}

@media (max-width: 620px) {
    .marco-auto {
        min-height: 0;
        padding: 0;
    }

    #foto-auto {
        max-height: none;
    }

    .tarjeta-auto .estado-diario {
        min-height: 70px;
        gap: 5px;
        text-align: center;
        flex-direction: column;
    }

    .estado-final,
    .tarjeta-auto .cuenta-regresiva {
        margin: 0;
        justify-content: center;
    }

    .resultado-auto-modal__foto {
        width: 140px;
        height: 140px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .intento-auto,
    .intento-auto--correcto::after {
        animation: none;
    }
}
