#boxLid { transform-origin: 220px 122px; } /* bisagra: borde trasero del trapecio */

.reveal {
    position: fixed;
    inset: 0;
    z-index: 20;
    background: #000;
    opacity: 0;
    pointer-events: none;
    clip-path: circle(0% at 50% 55%);
}
.reveal.open { pointer-events: auto; }

.reveal video {
    width: 100%;
    height: 100%;
    object-fit: contain;   /* cover contain */
}

#closeBtn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 4px solid #e8b65c;
    background: rgba(20, 13, 28, 0.7);
    color: #f5d9a4;
    cursor: pointer;
    opacity: 0;
}
#closeBtn {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flash {
    position: fixed;
    inset: 0;
    z-index: 30;
    background: radial-gradient(circle, #fff3c4, #e9a84c);
    opacity: 0;
    pointer-events: none;
}
.handle-halo {
    transform-box: fill-box;
    transform-origin: center;
    animation: haloPulse 1.8s ease-out infinite;
    pointer-events: none;
}

#crankHandle {
    animation: handleGlow 1.8s ease-in-out infinite;
}

/* Onda que se expande y se desvanece */
@keyframes haloPulse {
    0%   { transform: scale(1);   opacity: 0.75; }
    100% { transform: scale(2.8); opacity: 0; }
}

/* El mango se ilumina un poco */
@keyframes handleGlow {
    0%, 100% { fill: #783b24; filter: drop-shadow(0 0 0 rgba(255, 190, 90, 0)); }
    50%      { fill: #a0502c; filter: drop-shadow(0 0 6px rgba(255, 190, 90, 0.95)); }
}

/* Tras el primer toque, se calma */
#crank.touched .handle-halo { animation: none; opacity: 0; }
#crank.touched #crankHandle { animation: none; }

@media (prefers-reduced-motion: reduce) {
    .handle-halo, #crankHandle { animation: none; }
    .handle-halo { opacity: 0; }
}