body {
    font-family: sans-serif;
    background: #111;
    color: #fff;
    text-align: center;
    margin: 20px;
}

.box {
    position: relative;
    width: min(100%, 420px);
    height: 260px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 12px;
    background: #000;
}

#interactive,
#interactive video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.laser {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: red;
    box-shadow: 0 0 8px red;
    animation: scorri 1.8s infinite ease-in-out alternate;
}

@keyframes scorri {
    0% {
        top: 10%;
        opacity: 0.3;
    }

    100% {
        top: 90%;
        opacity: 1;
    }
}

#risultato,
#scheda {
    margin: 20px auto 0;
    max-width: 420px;
    font-size: 1.1rem;
}

#scheda,
.spiegazione {
    padding: 16px;
    border-radius: 12px;
    background: #222;
}

#scheda img {
    max-width: 100%;
    max-height: 260px;
    border-radius: 8px;
}

.spiegazione {
    max-width: 600px;
    margin: 28px auto 0;
    line-height: 1.6;
    text-align: left;
}

.spiegazione h2 {
    margin-top: 0;
    text-align: center;
}

button {
    margin-top: 10px;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    background: #2563eb;
    color: #fff;
    cursor: pointer;
}

[hidden] {
    display: none !important;
}
