/* Popups Leaflet neutralisees + animations de l'ecran titre.
   Extrait du <style> inline d'index.php (audit 2026-08-30). */
        /* === SUPPRESSION COMPLÈTE DES POPUPS LEAFLET === */
        .leaflet-popup, .leaflet-popup-content-wrapper, .leaflet-popup-tip-container {
            display: none !important;
            visibility: hidden !important;
            opacity: 0 !important;
            pointer-events: none !important;
        }
        /* === ANIMATIONS ÉCRAN TITRE === */
        @keyframes authTapCirclePulse {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.08); }
        }
        .auth-tap-circle-pulse {
            animation: authTapCirclePulse 1.8s ease-in-out infinite;
        }
        @keyframes authBgReveal {
            from { opacity: 0; transform: scale(1.1); }
            to { opacity: 1; transform: scale(1); }
        }
        @keyframes authTitleReveal {
            from { opacity: 0; transform: translateY(-30px); }
            to { opacity: 1; transform: translateY(0); }
        }
        @keyframes authBtnReveal {
            from { opacity: 0; transform: translateY(30px); }
            to { opacity: 1; transform: translateY(0); }
        }
        @keyframes authSyncPulse {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.5; }
        }
        .auth-sync-pulse {
            animation: authSyncPulse 2s cubic-bezier(0.4, 0, 0.6, 1) 2.8s infinite;
            opacity: 1;
        }

        /* auth-loading-log: scroll sans barre visible */
        #auth-loading-log::-webkit-scrollbar { display: none; }

        /* === LE LOGO NE SORT JAMAIS PAR LE HAUT ===
           #auth-screen empile son contenu depuis le bas (justify-end) et coupe ce qui
           dépasse : quand la modale de mise à jour grandissait (journal + boutons de
           l'étape MÉDIAS), tout remontait et le logo passait sous la phrase « Jeu en
           cours de développement », voire hors de l'écran (-25 px sur 375x812).
           Quand la place manque, seul le journal rétrécit (il défile) ; le logo
           reste sous le padding haut (32 px), sous la phrase (25 px, une ligne). */
        #auth-screen > * { flex-shrink: 0; }
        #auth-screen > #auth-loading-state { flex-shrink: 1; min-height: 0; }
        #auth-loading-state > * { flex-shrink: 0; }
        #auth-loading-state > #auth-loading-log { flex-shrink: 1; min-height: 0; }
        /* Boutons de l'étape MÉDIAS sur une seule ligne, même sur écran étroit. */
        #auth-loading-state .update-terminal-button { min-width: 0; flex: 1 1 0; padding-left: 8px; padding-right: 8px; }

        /* === MODE PAYSAGE: logo+titre plus petit en haut à gauche === */
        #auth-screen.is-landscape .auth-title-group {
            position: absolute !important;
            top: 16px;
            left: 16px;
            right: auto;
            bottom: auto;
            align-items: center !important;
            text-align: center;
            /* garder l'animation authTitleReveal (ne pas override transform/opacity/animation) */
            z-index: 2;
        }
        #auth-screen.is-landscape .auth-title-logo {
            width: 96px !important;
            margin-bottom: 2px !important;
        }
        #auth-screen.is-landscape .auth-title-sub {
            font-size: 0.7rem !important;
            margin-bottom: 0px !important;
        }
        #auth-screen.is-landscape .auth-title-main {
            font-size: 1.25rem !important;
            margin-bottom: 0 !important;
        }

        /* Animation vanish pour les monstres supprimés de la map */
        .vanish-effect-icon {
            background: none !important;
            border: none !important;
            box-shadow: none !important;
        }
        .perfect-banner-container {
            background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #1a1a2e 100%);
            border-bottom: 2px solid #FFD700;
            padding: 12px 16px;
            text-align: center;
            position: relative;
            overflow: hidden;
            animation: perfectSlideIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
        }
        .perfect-banner-container::before {
            content: '';
            position: absolute;
            top: 0; left: -100%;
            width: 200%; height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,215,0,0.15), transparent);
            animation: perfectShimmer 2s ease-in-out infinite;
        }
        .perfect-banner-text {
            font-size: 2rem;
            font-weight: 900;
            color: #FFD700;
            text-shadow: 0 0 20px rgba(255,215,0,0.8), 0 0 40px rgba(255,215,0,0.4), 0 2px 4px rgba(0,0,0,0.8);
            letter-spacing: 4px;
            animation: perfectPulse 1.5s ease-in-out infinite;
        }
        .perfect-banner-subtitle {
            font-size: 0.85rem;
            color: #fbbf24;
            font-weight: 600;
            margin-top: 2px;
            opacity: 0.9;
        }
        @keyframes perfectSlideIn {
            0% { transform: translateY(-100%); opacity: 0; }
            100% { transform: translateY(0); opacity: 1; }
        }
        @keyframes perfectPulse {
            0%, 100% { transform: scale(1); text-shadow: 0 0 20px rgba(255,215,0,0.8), 0 0 40px rgba(255,215,0,0.4); }
            50% { transform: scale(1.05); text-shadow: 0 0 30px rgba(255,215,0,1), 0 0 60px rgba(255,215,0,0.6); }
        }
        @keyframes perfectShimmer {
            0% { left: -100%; }
            100% { left: 100%; }
        }

        /* === Overlay recettes inventaire (Proposition 4) === */
        .inventory-recipe-overlay {
            position: absolute;
            top: 2px;
            left: 2px;
            width: 18px;
            height: 18px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 4px;
            font-size: 11px;
            line-height: 1;
            pointer-events: none;
            font-weight: bold;
        }
        .inventory-recipe-known {
            background: rgba(34, 197, 94, 0.9);
            color: #fff;
        }
        .inventory-recipe-to-learn {
            background: rgba(0, 0, 0, 0.75);
            font-size: 10px;
        }
        .inventory-recipe-unidentified {
            background: rgba(107, 114, 128, 0.9);
            color: #fff;
        }

        /* Badge « (e) » — item actuellement équipé (doublon encore en inventaire/shop) */
        .item-equipped-badge {
            position: absolute;
            bottom: 2px;
            right: 2px;
            font-size: 10px;
            font-weight: bold;
            line-height: 1;
            padding: 1px 3px;
            border-radius: 3px;
            background: rgba(34, 197, 94, 0.92);
            color: #000;
            pointer-events: none;
            z-index: 2;
        }

        /* Séparateurs par type dans l'inventaire (tri par type) */
        .inventory-type-separator {
            padding: 6px 8px;
            margin: 4px 0 2px 0;
            border-bottom: 1px solid rgba(34, 197, 94, 0.5);
            background: rgba(31, 41, 31, 0.6);
            color: #22c55e;
            font-weight: bold;
            font-size: 0.875rem;
        }
    
