/* ========================================
   Mobile Overlay Styles
   ======================================== */
.mobile-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #000000;
    display: none;
    /* Hidden on Desktop */

    text-align: center;
    padding: 2rem;
    width: 100%;
    height: 100%;
}

.mobile-content {
    /* Container for text elements */
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    /* Space between text elements */
    animation: fadeIn 0.8s ease;
}

.mobile-icon {
    font-size: 4rem;
    opacity: 0.8;
}

.mobile-overlay h2 {
    font-size: 1.5rem;
    font-weight: 300;
    margin: 0;
    /* Handled by gap */
    background: linear-gradient(135deg, #a78bfa, #60a5fa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 0.05em;
    width: 100%;
}

.mobile-overlay p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
    font-weight: 300;
    width: 100%;
}

.mobile-hint {
    font-size: 0.85rem;
    opacity: 0.6;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    width: 100%;
}

.mobile-logo {
    /* Logo at bottom of stack */
    width: 120px;
    /* Slightly smaller for better fit */
    height: auto;
    opacity: 0.9;
    pointer-events: none;
    flex-shrink: 0;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Show on Mobile Devices */
@media (max-width: 768px) {
    .mobile-overlay {
        display: flex !important;
        flex-direction: column !important;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        height: 100dvh;
        /* Mobile viewport fix */
    }

    .landing-screen,
    .controls-overlay,
    .menu-bar,
    .pattern-label,
    .pattern-selector,
    #visualizer-canvas {
        display: none !important;
    }
}