/* Level Transition Overlay */
.level-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}

.level-transition.active {
    display: flex;
}

.transition-content {
    text-align: center;
    padding: 2rem;
    max-width: 90%;
}

.transition-level {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    animation: slideDown 0.5s ease;
}

.transition-shape {
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
    animation: scaleIn 0.5s ease 0.2s both;
}

.transition-shape svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 8px 24px rgba(255, 255, 255, 0.3));
}

.transition-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    animation: slideUp 0.5s ease 0.3s both;
}

.transition-countdown {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #818cf8 0%, #c084fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: pulse 1s ease infinite;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@media (min-width: 768px) {
    .transition-level {
        font-size: 3rem;
    }
    
    .transition-shape {
        width: 150px;
        height: 150px;
    }
    
    .transition-text {
        font-size: 2rem;
    }
    
    .transition-countdown {
        font-size: 4rem;
    }
}
