.ribbon-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s;
}

.ribbon-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.ribbon-container {
    position: relative;
    width: 80%;
    max-width: 800px;
    height: 400px;
}

.ribbon {
    position: absolute;
    top: 50%;
    width: 50%;
    height: 100px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
    transform: translateY(-50%);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.ribbon::before {
    content: '';
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.3) 50%, 
        transparent 100%);
    animation: shimmer 2s infinite;
}

.left-ribbon {
    left: 0;
    border-radius: 0 50px 50px 0;
    animation: slideLeft 2s ease-in-out forwards;
}

.right-ribbon {
    right: 0;
    border-radius: 50px 0 0 50px;
    animation: slideRight 2s ease-in-out forwards;
}

.scissors {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(0deg);
    font-size: 4rem;
    animation: cutRibbon 2s ease-in-out forwards;
    z-index: 10;
    color: #ffffff;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.welcome-text {
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 2.5rem;
    text-align: center;
    opacity: 0;
    animation: fadeInText 1s 2s forwards;
}

@keyframes slideLeft {
    0% {
        left: 0;
    }
    50% {
        left: 0;
    }
    100% {
        left: -60%;
    }
}

@keyframes slideRight {
    0% {
        right: 0;
    }
    50% {
        right: 0;
    }
    100% {
        right: -60%;
    }
}

@keyframes cutRibbon {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    30% {
        transform: translate(-50%, -50%) rotate(-15deg);
    }
    50% {
        transform: translate(-50%, -50%) rotate(15deg) scale(1.2);
    }
    100% {
        transform: translate(-50%, -50%) rotate(0deg) scale(1);
    }
}

@keyframes fadeInText {
    to {
        opacity: 1;
    }
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

@media (max-width: 768px) {
    .welcome-text {
        font-size: 1.5rem;
    }
    
    .scissors {
        font-size: 2.5rem;
    }
    
    .ribbon {
        height: 60px;
    }
}
