#matrix-canvas,
#overview-matrix-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    z-index: -1;
    opacity: 0.6;
    /* Increased for better visibility, relying on text-shadow/cards for contrast */
    pointer-events: none;
}

/* Mobile optimization */
@media (max-width: 768px) {
    canvas {
        image-rendering: auto;
    }
}

/* Overview Page Background and Matrix Styles */
.dojo-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    background-image: url('../../assets/dojo-sanitar-transparent.png');
    /* background-image: radial-gradient(circle, rgba(0, 255, 157, 0.8) 0%, transparent 60%); */
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-color: transparent;
    opacity: 0;
    transition: opacity 3s ease;
    pointer-events: none;
}

.dojo-background.hidden {
    display: none;
}

.dojo-background.visible {
    opacity: 1;
}