/* --- OPTYMALIZACJA MOBILNA Z HAMBURGER MENU --- */
@media (max-width: 900px) { 
    .elite-card-content { grid-template-columns: 1fr; padding: 40px 20px; } 
    .elite-logo { margin: 0 auto 20px; display: block; } 
    .elite-title { text-align: center; } 
    .photo-gallery-grid { grid-template-columns: repeat(3, 1fr); }
    .achievements-grid { grid-template-columns: 1fr; }
    .intro-container { flex-direction: column; text-align: center; }
    .setup-hud-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .navbar {
        padding: 15px 20px;
        flex-direction: row;
        align-items: center;
        background: rgba(8, 5, 12, 0.98);
    }
    
    .logo-link { order: 1; margin-right: auto; }
    
    .menu-toggle {
        display: flex;
        font-size: 24px;
        color: #fff;
        cursor: pointer;
        order: 2;
    }
    
    .mobile-menu-container {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(8, 5, 12, 0.98);
        border-bottom: 2px solid rgba(139, 61, 227, 0.5);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-in-out;
        flex-direction: column;
        padding: 0 20px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.9);
        z-index: 1000;
    }
    
    .navbar.menu-open .mobile-menu-container {
        max-height: 480px;
        padding: 20px;
    }
    
    .nav-links {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        align-items: center;
        text-align: center;
    }
    
    .nav-links a { font-size: 15px; margin: 0; padding-bottom: 5px !important; }
    
    .status-wrapper {
        flex-direction: row;
        width: 100%;
        justify-content: center;
        margin-top: 20px;
        padding-top: 15px;
        border-top: 1px solid rgba(255,255,255,0.08);
        gap: 15px;
    }
    
    .setup-wrapper, .gear-page-wrapper, .video-container, .collab-wrapper, .about-wrapper { 
        padding: 130px 15px 80px !important; 
    }
    
    .hero-title { font-size: 3rem !important; text-align: center !important; }
    .hero-container { justify-content: center !important; text-align: center !important; padding: 0 15px; }
    .hero-content { display: flex; flex-direction: column; align-items: center; text-align: center !important; }
    .hero-cta { justify-content: center !important; flex-wrap: wrap; gap: 10px; }
    .hero-avatar { display: none; }
    
    .hero-bg { filter: brightness(0.4); }
    .hero::after { background: rgba(5,5,5,0.5); }
    
    .intro-siema { font-size: 2rem; }
    .champ-title { font-size: 2.2rem; }
    .setup-main-title, .gear-main-title { font-size: 2.2rem; flex-direction: column; gap: 10px; }
    .setup-main-title::before, .setup-main-title::after, .gear-main-title::before, .gear-main-title::after { display: none; }
    .page-header-divider h1 { font-size: 2.2rem; white-space: normal; text-align: center; }
    .business-title { font-size: 1.8rem; }
    .business-email-link { font-size: 1.1rem; }
    
    .intro-container { padding: 25px 15px; }
    .elite-card-content { padding: 30px 15px; }
    .ticket-code-btn { font-size: 2rem; padding: 10px; }
    .business-content-box { padding: 30px 15px; }
    .hud-card-inner { padding: 30px 15px; }
    
    .gear-grid, .video-grid { grid-template-columns: 1fr; gap: 15px; }
    .photo-gallery-grid { grid-template-columns: repeat(2, 1fr); }
    
    .footer-socials { display: flex; flex-direction: column; text-align: center; padding: 15px; padding-bottom: calc(15px + env(safe-area-inset-bottom, 0px)); gap: 10px; }
    .music-controls-container { bottom: calc(130px + env(safe-area-inset-bottom, 0px)); right: 20px; }

    .instruction-modal-content { padding: 25px 20px; max-height: 80vh; max-height: 80dvh; }
    .inst-title { font-size: 1.6rem; margin-bottom: 18px; }
    .instruction-modal-content .lightbox-close { top: 15px; right: 18px; font-size: 30px; }
    .inst-join-btn { font-size: 1.3rem; padding: 14px; }

    .lightbox-arrow { width: 44px; height: 44px; font-size: 22px; }
    .lightbox-arrow.left { left: 10px; } .lightbox-arrow.right { right: 10px; }
    .lightbox-close { top: 15px; right: 20px; font-size: 32px; }
}

@media (max-width: 400px) {
    .ticket-code-btn { font-size: 1.5rem; }
    .elite-title { font-size: 1.5rem; }
    .hero-title { font-size: 2.5rem !important; }
    .photo-gallery-grid { grid-template-columns: 1fr; }
}
