:root {
    --radar-green: #00ff41;
    --radar-bg: rgba(0, 10, 0, 0.95);
    --scan-color: rgba(0, 255, 65, 0.5);
    --other-panel-border: #00d86a;
    --other-panel-bg: #060606;
    --other-panel-bg-soft: rgba(0, 40, 20, 0.85);
    --other-panel-text: #b5ffcf;
    --app-height: 100dvh;
}

body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, #001100 0%, #000 100%); /* ← même que auth/login */
    overflow: hidden;
    font-family: 'VT323', 'Courier New', monospace;
    font-size: 18px;
    color: var(--radar-green);
}

/* --- ÉCRAN DE BOOT --- */

#auth-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: -webkit-fill-available;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle, #001100 0%, #000 100%);
    z-index: 3000;
    overflow-y: auto;
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
    box-sizing: border-box;
    inset: 0
}



#login-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: -webkit-fill-available;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle, #001100 0%, #000 100%);
    z-index: 3000;
    overflow-y: auto;
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
    box-sizing: border-box;
}

#auth-screen .login-box,
#login-screen .login-box {
    width: 100%;
    max-width: 380px;
    min-height: 100vh;
    box-sizing: border-box;
    border: none;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 30px 80px;
    overflow-x: hidden;
}

input, textarea, select {
    background: #000 !important; /* Force le fond noir */
    border: 1px solid var(--radar-green);
    color: var(--radar-green);
    padding: 12px;
    margin: 8px 0;
    width: 100%;
    max-width: 340px;
    outline: none;
    font-family: inherit;
    box-sizing: border-box;
}

input, select {
    min-height: 44px;
}

.login-meta-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    align-items: stretch;
}

.login-meta-row input,
.login-meta-row select {
    width: 100%;
}

.login-meta-row select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

textarea {
    height: 60px;
    resize: none;
    text-transform: none; /* La bio garde les minuscules */
}

.btn-main {
    background: var(--radar-green);
    color: #000;
    border: none;
    padding: 15px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    margin-top: 10px;
    border-radius: 2px;
}

.btn-close {
        background: var(--radar-green);
    color: #000;
    border: none;
    padding: 15px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    margin-top: 10px;
    border-radius: 2px;

}

.public-zones {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 15px 0;
}

.btn-zone {
    padding: 4px 12px;
    background: transparent;
    border: 1px solid var(--radar-green);
    color: var(--radar-green);
    cursor: pointer;
    font-size: 0.7rem;   
}

.btn-zone:hover { background: rgba(0, 255, 65, 0.2); }


/* --- APPLICATION & CARTE --- */
#radar-app {
    display: none;
    width: 100%;
    min-height: 100vh;
    height: 100vh;
    position: relative;
    overflow: hidden;
}

#map {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: 100px;
    touch-action: none;
    background: #001100;
    filter: none;
    z-index: 0;
}

#sweep {
    position: absolute; top: 50%; left: 50%;
    width: 200vmax; height: 200vmax;
    background: conic-gradient(from 0deg, transparent 90%, var(--scan-color) 100%);
    z-index: 1000; pointer-events: none;
    animation: sweep-anim 5s linear infinite;
}

@keyframes sweep-anim {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}







/* --- PANNEAU LATÉRAL --- */




#side-panel {
    position: fixed; top: 0; right: -300px;
    width: 500px; height: 100vh;
    background: var(--radar-bg);
    border-left: 1px solid var(--radar-green);
    z-index: 4000; transition: 0.4s;
    padding: 25px;
    transform: translateX(230px); /* Cache le panneau à droite */
    transition: transform 0.8s ease;
}

#side-panel.open {
    display: block;
     transform: translateX(-230px);
    
    
    }

.bio-text {
    font-size: 12px;
    margin: 10px auto;
    color: var(--radar-green);
    background: rgba(0, 20, 0, 0.6);
    padding: 10px;
    border-left: 2px solid var(--radar-green);  
    /* AJUSTEMENTS CRUCIAUX */
    min-height: 60px;          /* Hauteur minimale */
    max-height: 150px;         /* Empêche le panneau de devenir trop long */
    overflow-y: auto;          /* Ajoute un scroll si le texte est très long */
    word-wrap: break-word;     /* Force le retour à la ligne des mots longs */
    white-space: pre-wrap;     /* Préserve les retours à la ligne de l'utilisateur */
    text-transform: uppercase; /* Garde le style tactical */
    word-break: break-all;
    width: 220px;
    max-width: 220px;
    min-width: 0;
    box-sizing: border-box;
    overflow: hidden;
}


.social-btn.steam {
    display: flex; align-items: center;
    text-decoration: none; color: var(--radar-green);
    border: 1px solid var(--radar-green);
    padding: 10px; margin-top: 10px;
}

.social-btn.steam svg { width: 20px; margin-right: 10px; }

.profile-upload-container {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

#avatar-preview {
    width: 120px;
    height: 120px;
    border: 2px dashed var(--radar-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background-size: cover;
    background-position: center;
    transition: 0.3s;
}

#avatar-preview:hover {
    background: rgba(0, 255, 65, 0.1);
    box-shadow: 0 0 15px var(--radar-green);
}

#upload-text { font-size: 15px; font-weight: bold; }

/* Force the avatar images to fill and stay circular inside their containers */
#avatar-preview img,
#selected-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

/* Dans le panel latéral */
.panel-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
 }

 .separator {
    width: 100%;
    height: 1px;
    background: rgba(0, 255, 65, 0.2);
    margin: 15px 0;
 }

 #selected-name {
    color: rgba(0, 255, 200);
    font-size: 14px;
    font-weight: bold;
 }

 .container-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    padding: 0 12px;
    margin-bottom: 10px;
    max-width: 220px;
    box-sizing: border-box;
}


  .section-label {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 10px;
    background: rgba(0, 255, 65, 0.2);
    color: var(--radar-green);
    text-transform: uppercase;
 }




#selected-status {
    display: flex;
    justify-content: center;
    align-items: center;    
    gap: 10px;              
}



#selected-avatar {
    width: 120px; height: 120px;
    border-radius: 50%;
    border: 2px solid var(--radar-green);
    background-size: cover;
    background-position: center;
}

.account-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px;
    border: 1px solid rgba(0, 255, 65, 0.15);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.35);
    margin-bottom: 18px;
}

.account-info .account-name {
    font-size: 14px;
    font-weight: bold;
    color: #fff;
    text-transform: none;
}

.account-info .account-email {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.75);
    word-break: break-word;
}

/* Notification Toast */
.poke-toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background: rgba(0, 40, 0, 0.9);
    color: var(--radar-green);
    border: 2px solid var(--radar-green);
    padding: 15px 30px;
    font-family: 'Courier New', monospace;
    z-index: 9999;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.2);
}

.poke-toast.active {
    transform: translateX(-50%) translateY(0);
}

/* Bouton dans le profil */


.poke-item {
    padding: 8px;
    border-bottom: 1px solid rgba(0, 255, 0, 0.1);
    cursor: pointer;
    font-size: 0.9em;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.poke-item:hover {
    background: rgba(0, 255, 0, 0.05);
}

.poke-item-content {
    display: flex;
    align-items: center;
    flex: 1;
}

.poke-item-close {
    cursor: pointer;
    color: var(--radar-green);
    opacity: 0.6;
    font-size: 0.8em;
    margin-left: 10px;
}

.poke-item-close:hover {
    opacity: 1;
}

/* Style pour les items de chat dans la liste */
.poke-item.chat-session-item {
    background: rgba(0, 255, 65, 0.05);
}

.poke-item.chat-session-item:hover {
    background: rgba(0, 255, 65, 0.1);
}

.pulse-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--radar-green);
    border-radius: 50%;
    margin-right: 10px;
    animation: pulse-red 1.5s infinite;
}

.interaction-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}




/* Le conteneur du switch */
.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
  vertical-align: middle;
}

/* On cache l'input checkbox par défaut */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* Le rail du slider */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 255, 0, 0.2); /* Couleur quand c'est off */
  transition: .4s;
  border-radius: 34px;
}

/* Le petit cercle qui slide */
.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

/* Changement de couleur quand on clique (on) */
input:checked + .slider {
  background-color: #00ff41;
}

/* Mouvement du cercle vers la droite */
input:checked + .slider:before {
  transform: translateX(24px);
}

/* Optionnel : texte à côté */
.label-text {
  margin-left: 10px;
  font-family: sans-serif;
  font-size: 14px;
}


.poke-btn {
    display: flex;
    justify-content: space-between;
    background: linear-gradient(135deg, #00ff41,#1e552c);
    color: white;
    padding: 10px 22px;
    border-radius: 50px; /* Bord arrondi style pilule */
    border: none;
    cursor: pointer;
    font-weight: 600;
    box-shadow: 0 4px 4px var(--radar-green);;
    transition: transform 0.1s;
}

.poke-btn:hover {
    filter: brightness(1.1);
}

/* Animation de "secousse" au clic */
.poke-btn:active {
    animation: shake 0.2s ease-in-out;
    transform: scale(0.95);
}

@keyframes shake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-3px); }
    75% { transform: translateX(3px); }
    100% { transform: translateX(0); }
}



#chat-panel {
    display: none;
    position: fixed;
    inset: 0;
    width: 100%;
    min-height: 100%;
    background: #000a00;
    border: none;
    border-radius: 0;
    flex-direction: column;
    z-index: 9000;
    overflow: hidden;
    padding-bottom: env(safe-area-inset-bottom);
}

#chat-sessions {
    display: none !important;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    background: rgba(0, 10, 0, 0.95);
    border-left: 1px solid var(--radar-green);
    padding: 14px 12px;
    z-index: 5000;
}

#chat-sessions.show-header {
    display: block;
}

.chat-sessions-header {
    display: none;
    font-size: 12px;
    margin-bottom: 12px;
    color: var(--radar-green);
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

#chat-sessions.show-header .chat-sessions-header {
    display: block;
}

#chat-session-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chat-session-box {
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(245, 240, 196, 0.705);
    padding: 10px 12px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s, transform 0.15s;
    font-size: 12px;
    border-radius: 8px;
}

.chat-session-box:hover {
    background: rgba(0, 255, 65, 0.08);
    transform: translateX(2px);
}

.chat-session-box.active {
    border-color: var(--radar-green);
    background: rgba(0, 255, 65, 0.1);
}

.chat-session-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.chat-session-name {
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.chat-session-close {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 255, 65, 0.12);
    color: var(--radar-green);
    border-radius: 50%;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.2s;
}

.chat-session-close:hover {
    background: rgba(0, 255, 65, 0.3);
}

.chat-session-unread {
    background: var(--radar-green);
    color: #000;
    min-width: 18px;
    text-align: center;
    padding: 0 6px;
    border-radius: 999px;
    font-size: 10px;
    display: none;
}



.chat-minimize,
.chat-close {
    cursor: pointer;
    margin-left: 10px;
    user-select: none;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.2s;
}

.chat-minimize:hover,
.chat-close:hover {
    background: rgba(0, 255, 65, 0.08);
}



.chat-messages div {
    line-height: 1.4;
}



@keyframes pulse-red {
    0% { opacity: 1; }
    50% { opacity: 0.3; }
    100% { opacity: 1; }
}


.app-header {
    display: flex !important; /* On force l'affichage sur mobile */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 50px;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
    background: rgba(0,0,0,0.8);
    border-bottom: 1px solid rgba(0,255,65,0.2);
    z-index: 4000;
    box-sizing: border-box;
    }


    .app-title-glow {
        position: absolute;
        top: 1.3%;
        left: 50%;
        transform: translate(-50%, -50%);
        font-size: 18px;
        color: var(--radar-green);
        text-shadow: 0 0 10px var(--radar-green), 0 0 20px var(--radar-green);

}

    /* 2. Transformer le menu de gauche en Drawer coulissant */
#main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 80% !important;
    max-width: 300px !important;
    height: 100dvh;
    background: #000a00;
    border-left: 3px solid var(--radar-green);
    z-index: 5000;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    min-width: 0;
    overflow: hidden;
}

#nav-scroll-inner {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-top: 80px;
    padding-bottom: max(env(safe-area-inset-bottom), 80px);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    overflow-x: hidden;
}
    

    #main-nav.self-panel {
        background: #000a00;
        border-left-color: var(--radar-green);
        color: var(--radar-green);
    }

    #main-nav.other-panel {
        background: var(--other-panel-bg);
        border-left-color: var(--other-panel-border);
        color: var(--other-panel-text);
    }

    #main-nav.other-panel .section-label,
    #main-nav.other-panel .panel-header h3,
    #main-nav.other-panel .interaction-controls span,
    #main-nav.other-panel .nav-item {
        color: var(--other-panel-text);
    }

    #main-nav.other-panel .section-label {
        background: rgba(0, 255, 65, 0.08);
    }

    #main-nav.other-panel #selected-avatar {
        border-color: var(--other-panel-border);
    }

    #main-nav.other-panel .bio-text {
        background: var(--other-panel-bg-soft);
        color: var(--other-panel-text);
        border-left: 2px solid var(--other-panel-border);
    }

    #main-nav.other-panel .poke-btn {
        background: linear-gradient(135deg, #00d86a, #073319);
        box-shadow: none;
        padding: 6px 14px;
        font-size: 0.88rem;
        min-width: 100px;
    }

    #main-nav.other-panel .interaction-controls {
        justify-content: space-between;
        width: 100%;
    }

    #main-nav.other-panel #other-actions {
        display: flex;
        flex-direction: column;
        gap: 18px;
        width: 90%;
        margin: 14px auto 0;
    }

    #main-nav.other-panel .switch .slider {
        background-color: rgba(0, 0, 0, 0.35);
    }

    #main-nav.other-panel .switch input:checked + .slider {
        background-color: #00ff41;
    }

    #main-nav.open {
        transform: translateX(0); /* Glisse vers la droite */
    }

    /* 3. Ajuster la position des infos radar pour ne pas chevaucher le header */
.hud-top-right {
    position: fixed;
    right: 0px;
    top: 50px;
    border-top: none;
    border-right: none;
    padding: 5px;
    font-size: 10px;
    z-index: 2000;
}

    /* 4. Adapter le Side Panel (Profil Joueur) pour qu'il prenne tout le bas sur mobile */
    #side-panel {
        width: 100% !important;
        height: 50vh !important;
        right: 0 !important;
        bottom: 0 !important;
        top: auto !important; /* Il monte depuis le bas */
        transform: translateY(100%);
        transition: transform 0.4s ease;
        border-left: none !important;
        border-top: 2px solid var(--radar-green);
    }

    #side-panel.open {
        transform: translateY(0);
    }

    /* 5. Masquer certains éléments inutiles sur mobile pour épurer */
    .section-label { 
        font-size: 11px; }


/* ── AUTH SCREEN ── */
.btn-guest {
    background: transparent;
    border: 1px dashed rgba(0,255,65,0.4);
    color: rgba(0,255,65,0.6);
}
.btn-guest:hover { border-color: var(--radar-green); color: var(--radar-green); }

.guest-warning {
    font-size: 0.7em;
    color: rgba(255,165,0,0.7);
    text-align: center;
    margin: -10px 0 15px;
}

.btn-google {
    background: #fff;
    color: #333;
    font-family: 'Arial', sans-serif;
    font-size: 0.85em;
    letter-spacing: 0;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 12px 0;
    color: rgba(0,255,65,0.3);
    font-size: 0.75em;
}
.auth-divider::before, .auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(0,255,65,0.2);
}

.auth-btn-row {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}
.btn-secondary {
    flex: 1;
    padding: 10px;
    background: transparent;
    border: 1px solid rgba(0,255,65,0.4);
    color: var(--radar-green);
    cursor: pointer;
    font-family: 'VT323', monospace;
    font-size: 1em;
    letter-spacing: 1px;
}
.btn-secondary:hover { background: rgba(0,255,65,0.1); }

/* Badge GUEST visible dans le radar */
#guest-badge {
    position: fixed;
    top: 10px;
    left: 37px;
    background: rgba(255,165,0,0.15);
    border: 1px solid rgba(255,165,0,0.4);
    color: rgba(255,165,0,0.8);
    font-family: 'VT323', monospace;
    font-size: 0.75em;
    padding: 3px 8px;
    z-index: 999;
    pointer-events: none;
}

/* Boutons désactivés pour les guests */
.feature-locked {
    opacity: 0.3;
    cursor: not-allowed !important;
    position: relative;
}
.feature-locked::after {
    content: '🔒';
    font-size: 0.8em;
    margin-left: 4px;
}

/* --- style du chat supplémentaire --- */

.chat-back {
    cursor: pointer;
    padding: 4px 10px;
    color: var(--radar-green);
    font-size: 1em;
    letter-spacing: 1px;
}

.chat-header {
    padding: 15px;
    border-bottom: 1px solid rgba(0, 255, 65, 0.15);
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(0, 10, 0, 0.98);
    height: 50px;
    box-sizing: border-box;
    flex-shrink: 0;
}

.chat-title {
    flex: 1;
    font-weight: bold;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    font-size: 0.9em;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 16px;
    font-size: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 0;
}

.chat-input-container {
    display: flex;
    position: sticky;
    bottom: 0;
    border-top: 1px solid rgba(0, 255, 65, 0.12);
    padding: 8px;
    gap: 8px;
    background: rgba(0, 10, 0, 0.98);
    flex-shrink: 0;
    z-index: 2;
}

.chat-input {
    flex: 1;
    margin: 0;
    border: 1px solid rgba(0, 255, 65, 0.3);
    border-radius: 20px;
    background: #010d01;
    color: var(--radar-green);
    padding: 10px 15px;
    font-family: inherit;
    outline: none;
}

.chat-send {
    background: var(--radar-green);
    color: #000;
    border: none;
    padding: 0 18px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 1.2em;
    font-family: inherit;
}

.teammate-container {
    background: transparent !important;
    border: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Ton point de géolocalisation stylisé */
.teammate-dot {
    width: 14px;
    height: 14px;
    background: #fff;
    border-radius: 50%;
    border: 3px solid #00ff41;
    box-shadow: 0 0 8px #00ff41;
    /* On lie l'animation ici */
    animation: pulse-me 2s infinite ease-in-out; 
    /* Prévient les bugs de rendu sur les navigateurs mobiles */
    will-change: box-shadow; 
}













@keyframes pulse-me {
    0% { 
        box-shadow: 0 0 6px #00ff41, 0 0 10px rgba(0, 255, 65, 0.4); 
    }
    50% { 
        box-shadow: 0 0 16px #00ff41, 0 0 28px rgba(0, 255, 65, 0.8); 
    }
    100% { 
        box-shadow: 0 0 6px #00ff41, 0 0 10px rgba(0, 255, 65, 0.4); 
    }
}



/* animation de match trouvé */

#match-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.85);
}

#matrix-canvas {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
}

.match-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-align: center;
    animation: match-appear 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes match-appear {
    from { transform: scale(0.5); opacity: 0; }
    to   { transform: scale(1);   opacity: 1; }
}

.match-label {
    font-size: 0.75em;
    letter-spacing: 4px;
    color: rgba(0,255,65,0.6);
    text-transform: uppercase;
}

.match-pseudo {
    font-size: 2.2em;
    color: #00ff41;
    text-shadow: 0 0 20px #00ff41, 0 0 40px rgba(0,255,65,0.5);
    letter-spacing: 3px;
    animation: flicker 1.5s infinite;
}

@keyframes flicker {
    0%, 95%, 100% { opacity: 1; }
    96%            { opacity: 0.4; }
    98%            { opacity: 0.8; }
}

.match-sub {
    font-size: 0.8em;
    color: rgba(0,255,65,0.5);
    letter-spacing: 2px;
}

.match-chat-btn {
    margin-top: 10px;
    background: #00ff41;
    color: #000;
    border: none;
    padding: 12px 28px;
    font-family: 'VT323', monospace;
    font-size: 1.1em;
    letter-spacing: 2px;
    cursor: pointer;
    border-radius: 2px;
    box-shadow: 0 0 20px rgba(0,255,65,0.4);
}

.match-close-btn {
    background: transparent;
    color: rgba(0,255,65,0.4);
    border: none;
    font-family: 'VT323', monospace;
    font-size: 0.85em;
    cursor: pointer;
    letter-spacing: 1px;
}



/* shop */ 

#shop-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    z-index: 99999;
    display: flex;
    align-items: flex-end;
    background: rgba(0,0,0,0.7);
}

.shop-content {
    width: 100%;
    background: #000d00;
    border-top: 1px solid rgba(255,215,0,0.3);
    padding: 20px;
    border-radius: 16px 16px 0 0;
    animation: slide-up 0.3s ease;
}

@keyframes slide-up {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
}

.shop-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.shop-title {
    color: #ffd700;
    font-size: 1.2em;
    letter-spacing: 2px;
}

#partner-form-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    z-index: 99999;
    display: flex;
    align-items: flex-end;
    background: rgba(0,0,0,0.7);
}

.shop-close {
    cursor: pointer;
    color: rgba(255,255,255,0.4);
    font-size: 1.2em;
}

.shop-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,215,0,0.1);
    gap: 10px;
}

.shop-item-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.shop-item-name {
    color: #ffd700;
    font-size: 1em;
    letter-spacing: 1px;
}

.shop-item-desc {
    color: rgba(255,255,255,0.4);
    font-size: 0.7em;
    letter-spacing: 0.5px;
}

.shop-buy-btn {
    background: #ffd700;
    color: #000;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-family: 'VT323', monospace;
    font-size: 1em;
    cursor: pointer;
    white-space: nowrap;
    font-weight: bold;
}

.distance-settings {
    width: 100%;
    max-width: 300px;
    margin: 4px auto 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: center;
}

.distance-settings > div {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
}

.distance-settings input[type="range"] {
    flex: 1;
    min-width: 0;
}

.distance-settings #distance-value {
    width: 48px;
    text-align: right;
}

.distance-settings .shop-buy-btn {
    width: auto;
    max-width: 200px;
    align-self: center;
    box-sizing: border-box;
    padding: 10px 20px;
    margin: 0;
}

.shop-footer {
    text-align: center;
    font-size: 0.65em;
    color: rgba(255,255,255,0.2);
    margin-top: 16px;
    letter-spacing: 1px;
}








/* autre */

.leaflet-div-icon {
    background: transparent !important;
    border: none !important;
}



/* ─── BARRE POKES EN BAS ─── */
#poke-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: rgba(0, 8, 0, 0.92);
    border-top: 1px solid rgba(0, 255, 65, 0.25);
    z-index: 3000;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 10px;
    box-sizing: border-box;
    overflow: hidden;
}

#poke-bar .label-tiny {
    font-size: 9px;
    color: rgba(0, 255, 65, 0.4);
    letter-spacing: 1px;
    white-space: nowrap;
    margin: 0;
}

#poke-bar-list {
    display: flex;
    flex-direction: row;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    flex: 1;
}

#poke-bar-list::-webkit-scrollbar { display: none; }

.poke-bar-item {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 255, 65, 0.07);
    border: 1px solid rgba(0, 255, 65, 0.2);
    border-radius: 20px;
    padding: 4px 12px;
    white-space: nowrap;
    cursor: pointer;
    font-size: 13px;
    transition: background 0.2s;
}

.poke-bar-item:hover {
    background: rgba(0, 255, 65, 0.15);
}

.poke-bar-item.is-chat {
    border-color: rgba(0, 255, 65, 0.5);
    background: rgba(0, 255, 65, 0.12);
}

.poke-bar-unread {
    background: var(--radar-green);
    color: #000;
    font-size: 10px;
    padding: 1px 5px;
    border-radius: 50%;
    font-weight: bold;
}

/* ─── PANEL MESSAGES (slide depuis droite) ─── */
#chat-list-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 85%;
    max-width: 320px;
    height: 100vh;
    background: #000a00;
    border-left: 1px solid rgba(0, 255, 65, 0.3);
    z-index: 6000;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    padding-top: 50px;
    box-sizing: border-box;
}

#chat-list-panel.open {
    transform: translateX(0);
}

.chat-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid rgba(0, 255, 65, 0.15);
    font-size: 0.9em;
    letter-spacing: 2px;
}

#chat-list-content {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.chat-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    border: 1px solid rgba(0, 255, 65, 0.15);
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.chat-list-item:hover {
    background: rgba(0, 255, 65, 0.07);
}

.chat-list-item-name {
    font-size: 1em;
    letter-spacing: 1px;
}

.chat-list-item-preview {
    font-size: 0.7em;
    color: rgba(0, 255, 65, 0.4);
    margin-top: 3px;
}

.chat-list-unread {
    background: var(--radar-green);
    color: #000;
    font-size: 11px;
    padding: 2px 7px;
    border-radius: 50%;
    font-weight: bold;
}

/* Badge sur l'icône message */
#msg-icon {
    position: relative;
}

#msg-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--radar-green);
    color: #000;
    font-size: 10px;
    padding: 1px 5px;
    border-radius: 50%;
    font-weight: bold;
}

.header-btn {
    position: relative;
    cursor: pointer;
    font-size: 1.2em;
    color: var(--radar-green);
    padding: 8px;
}

/* Ajuster la carte pour laisser place à la barre du bas */
#map {
    height: 100% !important;
}

/* Hide Leaflet zoom controls (we use pinch gestures on mobile)
   Keeps UI clean while retaining zoom functionality via touch */
.leaflet-control-zoom {
    display: none !important;
}
.leaflet-control-zoom-in,
.leaflet-control-zoom-out {
    display: none !important;
}

#userBio {
    resize: none;
    overflow-y: auto;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}






