
        /* ========== TRANSICIÓN DE PORTAL / DIMENSIÓN ========== */
.portal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    pointer-events: none;
    visibility: hidden;
}

.portal-overlay.active {
    visibility: visible;
    pointer-events: all;
}

.portal-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, var(--accent-violet), var(--accent-blue));
    transform: scale(0);
    border-radius: 50%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.portal-overlay.active .portal-effect {
    transform: scale(3);
}

/* Efecto de ondas expansivas */
.portal-ripple {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100px;
    height: 100px;
    background: transparent;
    border: 3px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    animation: rippleExpand 0.8s ease-out forwards;
}

@keyframes rippleExpand {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0.8;
    }
    100% {
        transform: translate(-50%, -50%) scale(15);
        opacity: 0;
    }
}

/* Partículas durante la transición */
.portal-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    background: white;
    border-radius: 50%;
    opacity: 0;
    animation: particleFloat 0.8s ease-out forwards;
}

@keyframes particleFloat {
    0% {
        transform: translate(0, 0) scale(0);
        opacity: 1;
    }
    100% {
        transform: translate(var(--tx, 100px), var(--ty, -100px)) scale(1);
        opacity: 0;
    }
}

/* Efecto glitch en la pantalla durante la transición */
.portal-glitch {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(255, 255, 255, 0.1) 0px,
        rgba(255, 255, 255, 0.1) 2px,
        transparent 2px,
        transparent 6px
    );
    opacity: 0;
    animation: glitchFlash 0.3s ease-in-out 3;
}

@keyframes glitchFlash {
    0%, 100% { opacity: 0; }
    50% { opacity: 0.5; }
}

/* Versión mejorada para Game Mode (más neón) */
.game-mode .portal-effect {
    background: radial-gradient(circle, #ff2a6d, #00d4ff);
    box-shadow: 0 0 50px rgba(255, 42, 109, 0.8);
}

.game-mode .portal-ripple {
    border-color: #ff2a6d;
    box-shadow: 0 0 20px #ff2a6d;
}