/* Mystery Box Animations & Modal Styles */

#mystery-reveal-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(20px);
}

.mystery-container {
    text-align: center;
    max-width: 400px;
    width: 90%;
    position: relative;
}

/* The Box */
.big-box {
    font-size: 8rem;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    user-select: none;
}

.big-box:hover {
    transform: scale(1.1);
}

/* Shake Animation */
.box-shake {
    animation: box-shake-anim 0.5s cubic-bezier(.36,.07,.19,.97) infinite;
}

@keyframes box-shake-anim {
    10%, 90% { transform: translate3d(-1px, 0, 0); }
    20%, 80% { transform: translate3d(2px, 0, 0); }
    30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
    40%, 60% { transform: translate3d(4px, 0, 0); }
}

/* Open/Reveal Animation */
.box-open {
    animation: box-open-anim 0.8s forwards;
}

@keyframes box-open-anim {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; filter: blur(5px); }
    100% { transform: scale(3); opacity: 0; visibility: hidden; }
}

/* Revealed Product Card */
.revealed-product {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 2rem;
    padding: 2rem;
    opacity: 0;
    transform: translateY(50px) scale(0.9);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    display: none;
}

.revealed-product.show {
    opacity: 1;
    transform: translateY(0) scale(1);
    display: block;
}

.product-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    z-index: -1;
    opacity: 0;
    transition: opacity 1s;
}

.product-glow.active {
    opacity: 1;
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.3; }
    50% { transform: translate(-50%, -50%) scale(1.5); opacity: 0.5; }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 0.3; }
}

/* Particles/Confetti placeholder */
.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
    pointer-events: none;
}
