/* ========================================= */
/* VARIABLES, COULEURS & RESET GLOBAL        */
/* ========================================= */
:root {
    --bg-deep: #0b0c10; 
    --text-main: #f8fafc; 
    --text-muted: #94a3b8;
    --accent: #00d2ff; 
    --danger: #ff0055; 
    --success: #00ff88;
    --glass-bg: #1e1e2f; 
    --glass-border: #000;
    --glass-glow: rgba(0, 210, 255, 0.4); 
    --xp-color: #ffaa00;
    --input-bg-base: #2a2a40; 
    --input-bg-hover: #ffaa00;
}

/* VERROUILLAGE DES HITBOXES (Précision des clics absolue) */
* { 
    box-sizing: border-box; 
    cursor: none !important; 
}

/* ========================================= */
/* GESTION DES CURSEURS ET DE LA VISÉE       */
/* ========================================= */
#custom-aim-cursor {
    position: fixed;
    top: -100px; 
    left: -100px;
    width: 50px; 
    height: 50px;
    transform: translate(-50%, -50%);
    pointer-events: none; 
    z-index: 10000;
    display: block;
    transition: transform 0.1s ease-out;
}

body.aiming #custom-aim-cursor {
    transform: translate(-50%, -50%) scale(0.8);
    filter: drop-shadow(0 0 5px var(--danger));
}

.glass-panel *, .bottom-bar-wrapper *, #top-nav *, .login-box *, .ad-banner-side *, #custom-aim-cursor, .landing-footer *, .btn-start, .constellation-star { 
    cursor: pointer !important; 
}

/* ========================================= */
/* CORPS DE PAGE ET ÉTOILES                  */
/* ========================================= */
body { background-color: var(--bg-deep); background-size: cover; background-position: center; color: var(--text-main); height: 100vh; overflow: hidden; user-select: none; transition: background-image 1s ease-in-out; font-weight: 500;}

#twinkling-stars-layer { position: absolute; top:0; left:0; width:100%; height:100%; z-index: 0; pointer-events: none; overflow: hidden; }
.twinkle-star { position: absolute; background: #fff; border-radius: 50%; animation: twinkle var(--duration) infinite ease-in-out alternate; opacity: 0; }
@keyframes twinkle { 0% { opacity: 0; transform: scale(0.5); } 100% { opacity: 0.9; transform: scale(1.3); box-shadow: 0 0 6px #fff; } }

/* ========================================= */
/* PAGE VITRINE (LANDING PAGE)               */
/* ========================================= */
#landing-page { position: absolute; top:0; left:0; width: 100%; height: 100%; z-index: 5000; display: flex; flex-direction: column; align-items: center; background: rgba(11, 12, 16, 0.4); backdrop-filter: blur(5px); overflow-y: auto; padding: 40px 20px; transition: opacity 0.8s ease-out; pointer-events: auto; }
.landing-content { max-width: 1000px; background: rgba(30, 30, 47, 0.9); border: 4px solid var(--accent); border-radius: 20px; padding: 50px; box-shadow: 0 0 40px rgba(0, 210, 255, 0.3); text-align: left; margin-bottom: 50px;}
.hero-section { text-align: center; margin-bottom: 40px; border-bottom: 2px solid var(--text-muted); padding-bottom: 30px;}
.hero-section h1 { font-size: 65px; color: #fff; letter-spacing: 4px; margin-bottom: 10px; text-shadow: 3px 3px 0px #000; font-weight: 700; }
.hero-section h1 strong { color: var(--accent); }
.hero-section h2 { color: var(--xp-color); font-size: 26px; text-transform: uppercase; margin-bottom: 20px; text-shadow: 2px 2px 0px #000; font-weight: 600;}
.article-section { margin-bottom: 35px; }
.article-section h3 { color: var(--accent); font-size: 28px; margin-bottom: 15px; border-left: 5px solid var(--accent); padding-left: 15px; }
.article-section p { font-size: 18px; color: var(--text-main); line-height: 1.7; margin-bottom: 15px; text-align: justify; }
.article-section strong { color: #00ff88; font-weight: 700;}
.article-section ul { margin-left: 40px; margin-bottom: 15px; font-size: 18px; line-height: 1.7; }
.article-section li { margin-bottom: 10px; }
.faq-box { background: var(--input-bg-base); border: 2px solid #000; padding: 20px; border-radius: 12px; margin-bottom: 15px; }
.faq-box h4 { color: var(--xp-color); font-size: 20px; margin-bottom: 5px; }
.faq-box p { margin-bottom: 0; font-size: 16px; }
.landing-footer { display: flex; justify-content: center; gap: 30px; margin-top: 40px; font-size: 16px; border-top: 2px solid var(--text-muted); padding-top: 20px;}
.legal-link { color: var(--text-muted); text-decoration: none; transition: 0.2s; font-weight: 600;}
.legal-link:hover { color: #fff; text-shadow: 0 0 10px #fff; }
.btn-start-wrapper { position: sticky; bottom: 20px; text-align: center; margin-top: 30px; z-index: 100; pointer-events: auto;}
.btn-start { background: var(--success); color: #000; border: 4px solid #000; padding: 20px 50px; font-size: 28px; font-weight: 700; border-radius: 15px; text-transform: uppercase; box-shadow: 0 0 30px rgba(0, 255, 136, 0.6); transition: 0.2s; letter-spacing: 2px;}
.btn-start:hover { transform: scale(1.05) translateY(-5px); box-shadow: 0 0 40px rgba(0, 255, 136, 1); }

.legal-modal { display: none; position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 800px; max-width: 90vw; height: 80vh; background: var(--glass-bg); border: 5px solid #000; border-radius: 20px; z-index: 6000; flex-direction: column; box-shadow: 0 0 40px rgba(0,0,0,0.8); pointer-events: auto;}
.legal-header { padding: 20px; border-bottom: 3px solid #000; display: flex; justify-content: space-between; align-items: center; background: rgba(0,0,0,0.5); }
.legal-content { padding: 30px; overflow-y: auto; flex: 1; color: #fff; line-height: 1.6; font-size: 16px; text-align: justify;}
.legal-content h3 { color: var(--accent); margin: 20px 0 10px 0; }

/* ========================================= */
/* NOTIFICATIONS ET TEXTES FLOTTANTS         */
/* ========================================= */
#notification-container { position: fixed; bottom: 40px; left: 40px; display: flex; flex-direction: column-reverse; gap: 10px; z-index: 10000; pointer-events: none; }
.notification { padding: 15px 25px; background: var(--glass-bg); border: 3px solid #000; border-radius: 12px; color: #fff; animation: slideInLeft 0.3s ease-out; box-shadow: 0 0 15px rgba(0, 210, 255, 0.6); font-size: 16px; font-weight: bold; pointer-events: auto;}
.notification.error { border-color: var(--danger); background: rgba(255, 0, 85, 0.9); box-shadow: 0 0 15px rgba(255, 0, 85, 0.6); }
.notification.success { border-color: var(--success); background: rgba(0, 255, 136, 0.9); box-shadow: 0 0 15px rgba(0, 255, 136, 0.6); color: #000; }
.notification-welcome { position: fixed; top: 50% !important; left: 50% !important; bottom: auto !important; right: auto !important; transform: translate(-50%, -50%) !important; font-size: 32px; padding: 40px 60px; box-shadow: 0 0 40px rgba(0, 210, 255, 0.8); border-width: 5px; animation: popInCenter 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards !important; z-index: 10001; pointer-events: none; }
@keyframes slideInLeft { from { transform: translateX(-150%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes popInCenter { 0% { opacity: 0; transform: translate(-50%, -50%) scale(0.5); } 100% { opacity: 1; transform: translate(-50%, -50%) scale(1); } }

.float-text { position: fixed; color: #00ffff; font-weight: bold; font-size: 50px; text-shadow: 0 0 10px #ff00ff, 0 0 20px #ff00ff; z-index: 9999; pointer-events: none; animation: floatUp 1.5s ease-out forwards; transform: translate(-50%, -50%); }
@keyframes floatUp { 0% { opacity: 1; transform: translate(-50%, 0) scale(0.5); } 100% { opacity: 0; transform: translate(-50%, -100px) scale(1.2); } }

/* ========================================= */
/* ÉCRAN DE CONNEXION                        */
/* ========================================= */
#login-screen { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: none; justify-content: center; align-items: center; z-index: 2000; background: rgba(0,0,0,0.6); backdrop-filter: blur(5px); padding: 20px; pointer-events: auto; }
.login-box { background: var(--glass-bg); border: 5px solid var(--glass-border); padding: 40px; border-radius: 20px; width: 750px; max-height: 95vh; overflow-y: auto; box-shadow: 0 0 30px rgba(0, 210, 255, 0.5); } 
::-webkit-scrollbar { width: 8px; } ::-webkit-scrollbar-thumb { background: #ffaa00; border: 2px solid #000; border-radius: 10px; }
.login-header { text-align: center; margin-bottom: 30px; text-shadow: 3px 3px 0px #000; } 
.login-header h1 { font-size: 55px; letter-spacing: 2px; margin-bottom: 5px; color: #fff; font-weight: 700;} 
.login-header h1 strong { color: var(--accent); } 
.login-header .subtitle { color: #ffaa00; font-size: 20px; text-transform: uppercase; letter-spacing: 1px; font-weight: bold;}

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.input-group { margin-bottom: 5px; } 
.input-group label { display: block; font-size: 15px; color: var(--accent); margin-bottom: 5px; text-shadow: 1px 1px 0px #000; letter-spacing: 1px; font-weight: bold;}
input[type="text"], input[type="password"], input[type="number"], .custom-select, .radar-input, textarea { width: 100%; padding: 12px; background: var(--input-bg-base); color: #fff; border: 3px solid #000; outline: none; border-radius: 12px; font-size: 16px; font-weight: bold; transition: 0.2s; box-sizing: border-box; box-shadow: 0 0 10px rgba(0, 210, 255, 0.2); }
textarea { height: 60px; resize: none; }
.custom-select option { background: var(--glass-bg); color: #fff; font-weight: bold;}
input[type="text"]:focus, input[type="password"]:focus, input[type="number"]:focus, .custom-select:focus, textarea:focus { border-color: var(--accent); background: var(--input-bg-hover); color: #000; transform: translate(-2px, -2px); box-shadow: 0 0 15px rgba(0, 210, 255, 0.6); }
.select-wrapper { position: relative; } .custom-select { appearance: none; } 
.select-wrapper::after { content: '▼'; position: absolute; right: 15px; top: 50%; transform: translateY(-50%); color: #fff; font-size: 14px; pointer-events: none; }

.btn-main { width: 100%; padding: 15px; margin-top: 25px; background: var(--input-bg-base); color: #fff; border: 4px solid #000; border-radius: 15px; font-size: 22px; font-weight: bold; transition: 0.1s; text-transform: uppercase; letter-spacing: 1px; box-shadow: 0 0 15px rgba(0, 210, 255, 0.4); } 
.btn-main:hover { background: var(--input-bg-hover); color: #000; transform: translate(-2px, -2px); box-shadow: 0 0 20px rgba(0, 210, 255, 0.8);} 
.btn-main:active { background: var(--input-bg-hover); color: #000; transform: translate(4px, 4px); box-shadow: 0 0 10px rgba(0, 210, 255, 1);}

/* ========================================= */
/* UNIVERS 3D ET OBJETS SPATIAUX             */
/* ========================================= */
#app-container { display: none; width: 100%; height: 100%; position: relative; }
#constellation-canvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
#universe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; perspective: 1000px; overflow: hidden; z-index: 2; pointer-events: none; display: flex; justify-content: center; align-items: center; }
#galaxy { position: relative; transform-style: preserve-3d; } 
#starfield { position: absolute; transform-style: preserve-3d; }
.star { position: absolute; border-radius: 50%; background: #fff; transform-style: preserve-3d; pointer-events: none; box-shadow: 0 0 6px rgba(255,255,255,0.8); }

.space-object { position: fixed; width: 90px; height: 90px; background-size: contain; background-repeat: no-repeat; background-position: center; z-index: 1000; display: none; user-select: none; pointer-events: auto; }

.fixed-star { font-size: 0; color: transparent; background-image: url('etoile_spot.png'); background-size: contain; background-repeat: no-repeat; background-position: center; z-index: 2000; filter: drop-shadow(0 0 25px rgba(255, 170, 0, 1)); animation: pulseStar 0.8s infinite alternate; text-align: center; cursor: pointer;}
.fixed-star-red { font-size: 0; color: transparent; background-image: url('etoile_rouge.png'); background-size: contain; background-repeat: no-repeat; background-position: center; z-index: 2000; filter: drop-shadow(0 0 25px rgba(255, 0, 85, 1)); animation: pulseStarRed 0.8s infinite alternate; text-align: center; cursor: pointer;}
@keyframes pulseStar { 0% { opacity: 0.8; } 100% { opacity: 1; filter: drop-shadow(0 0 40px rgba(255, 170, 0, 1)); } }
@keyframes pulseStarRed { 0% { opacity: 0.8; } 100% { opacity: 1; filter: drop-shadow(0 0 40px rgba(255, 0, 85, 1)); } }

.node { position: absolute; top: -32px; left: -32px; width: 64px; height: 64px; transform-style: preserve-3d; pointer-events: auto; transition: opacity 0.4s;}
.node-scaler { position: absolute; width: 256px; height: 256px; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0.2); transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); transform-style: preserve-3d;}
.node:hover .node-scaler { transform: translate(-50%, -50%) scale(0.4); z-index: 100;}

.node-visual { width: 100%; height: 100%; position: absolute; top: 0; left: 0; transform-style: preserve-3d; background-size: contain; background-repeat: no-repeat; background-position: center; background-color: transparent; border: none; --halo-color: transparent; transform: scale(var(--planet-size, 1)); filter: drop-shadow(0 0 20px var(--halo-color)) drop-shadow(0 0 40px var(--halo-color)); transition: filter 0.5s, transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275); }

.node.me .node-scaler { transform: translate(-50%, -50%) scale(0.35); z-index: 100;}
.node.is-admin .node-scaler { transform: translate(-50%, -50%) scale(0.8) !important; z-index: 200; }
.node.is-admin:hover .node-scaler { transform: translate(-50%, -50%) scale(1.0) !important; }
.node.is-admin .node-visual { --halo-color: rgba(255, 170, 0, 1); filter: drop-shadow(0 0 40px var(--halo-color)) drop-shadow(0 0 80px var(--halo-color)) drop-shadow(0 0 120px var(--halo-color)) !important; }
.node.selected-partner .node-scaler { transform: translate(-50%, -50%) scale(0.5); z-index: 150;}
.node.selected-partner .node-visual { --halo-color: rgba(255, 255, 255, 1); filter: drop-shadow(0 0 30px var(--halo-color)) drop-shadow(0 0 60px var(--halo-color)) drop-shadow(0 0 90px var(--halo-color)) !important; }
.node.dimmed { opacity: 0.05 !important; pointer-events: none !important; }
.node.banned-planet .node-visual { --halo-color: rgba(255, 0, 85, 1); filter: grayscale(100%) drop-shadow(0 0 40px var(--halo-color)) drop-shadow(0 0 80px var(--halo-color)) !important; animation: none !important; }
.node.dnd-mode .node-visual { filter: grayscale(100%) drop-shadow(0 0 20px rgba(0,0,0,0.8)) !important; }

.zzz-anim { position: absolute; top: -30px; left: 50%; transform: translateX(-50%); font-size: 28px; color: #fff; text-shadow: 2px 2px 0px #000; pointer-events: none; z-index: 200; animation: floatZzz 2s infinite linear; font-weight: bold;}
@keyframes floatZzz { 0% { opacity: 0; transform: translate(-50%, 0px) scale(0.8); } 50% { opacity: 1; transform: translate(-30%, -20px) scale(1.2); } 100% { opacity: 0; transform: translate(-50%, -40px) scale(0.8); } }

.satellite-node { position: absolute; width: 150px; height: 150px; transform-style: preserve-3d; pointer-events: auto; z-index: 100;}
.satellite-visual { width: 100%; height: 100%; background-size: contain; background-repeat: no-repeat; background-position: center; animation: float-sat 4s ease-in-out infinite alternate; filter: drop-shadow(4px 4px 0px rgba(0,0,0,0.8)); cursor: pointer; pointer-events: auto;}
@keyframes float-sat { 0% { transform: translateY(0) rotate(-10deg); } 100% { transform: translateY(-20px) rotate(10deg); } }

/* ANIMATIONS DES TIRS LASERS & SAUT */
@keyframes shot-flash-fade { 0% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(2); } }
@keyframes implode-shot { 0% { transform: scale(2); opacity: 0;} 50% { transform: scale(0.1); opacity: 1;} 100% { transform: scale(0); opacity: 0; } }

@keyframes hyper-flash-fade { 0% { opacity: 0; } 10% { opacity: 1; } 100% { opacity: 0; } }
.flash-bang { position: absolute; top:0; left:0; width:100%; height:100%; background:#fff; z-index: 10000; opacity: 0; pointer-events: none; animation: hyper-flash-fade 2.5s ease-out forwards; display: none; }


/* ========================================= */
/* INTERFACE UTILISATEUR DU JEU (LA BIO)     */
/* ========================================= */
#tooltip { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 420px; 
    background: rgba(30, 30, 47, 0.95); 
    border: 4px solid #000; 
    border-radius: 16px; 
    padding: 15px; 
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.5); 
    pointer-events: none; 
    opacity: 0; 
    transition: opacity 0.2s; 
    z-index: 9000; 
    max-height: 85vh; 
    overflow-y: auto; 
}
#tooltip::-webkit-scrollbar { width: 6px; } 
#tooltip::-webkit-scrollbar-thumb { background: #00d2ff; border-radius: 10px; }

#tooltip.visible { opacity: 1; } 
.tt-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 15px; border-bottom: 2px solid #000; padding-bottom: 10px;} 
.tt-pseudo { color: #fff; font-size: 26px; font-weight: bold; text-shadow: 2px 2px 0px #000;} 
.tt-niveau-label { font-size: 14px; font-weight: bold; background: #ffaa00; border: 2px solid #000; color: #000; padding: 4px 10px; border-radius: 10px; text-transform: uppercase;}
.tt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tt-item { background: var(--input-bg-base); color: #fff; padding: 8px 12px; border-radius: 10px; border: 3px solid #000; box-shadow: 0 0 10px rgba(0, 210, 255, 0.3); }
.tt-item span { display: block; font-size: 12px; font-weight: bold; color: var(--accent); text-transform: uppercase; margin-bottom: 2px; text-shadow: 1px 1px 0px #000;}
.tt-item div { font-size: 15px; font-weight: 500; color: #fff; }

/* MINI-CARTES DE BADGES DANS LA BIO */
.tt-badges, .tt-hf { 
    grid-column: span 2; 
    display: flex; 
    flex-wrap: wrap; 
    gap: 15px; 
    margin-top: 10px; 
    justify-content: center;
}

.bio-badge-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 110px;
    gap: 5px;
    cursor: help !important;
}

.bio-badge-card .tt-badge-icon,
.bio-badge-card .tt-hf-icon {
    width: 90px !important;
    height: 90px !important;
    object-fit: contain;
    background: rgba(0,0,0,0.5);
    border: 2px solid var(--accent);
    border-radius: 10px;
    padding: 5px; 
    box-shadow: 0 0 15px rgba(0,210,255,0.4);
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 60px !important;
    color: var(--accent);
    text-shadow: 0 0 10px var(--accent);
}

.bio-badge-name {
    font-size: 12px;
    color: #fff;
    text-align: center;
    font-weight: bold;
    line-height: 1.2;
    text-shadow: 1px 1px 0px #000;
    text-transform: uppercase;
    word-break: normal; 
    overflow-wrap: normal;
    width: 100%;
}


/* ========================================= */
/* NOUVEAU TABLEAU DE BORD (BOTTOM BAR)      */
/* ========================================= */
.bottom-bar-wrapper {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 1400px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end; 
    z-index: 500;
    pointer-events: none; 
}

.bb-left, .bb-center, .bb-right {
    pointer-events: auto; 
    display: flex;
}

.bb-left {
    flex: 1;
    justify-content: flex-start;
    gap: 15px;
}

.bb-center {
    flex: 1;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.bb-right {
    flex: 1;
    justify-content: flex-end;
    gap: 15px;
}

.control-row { 
    display: flex; 
    gap: 15px; 
    align-items: center;
}

.btn-side { 
    background: var(--input-bg-base); 
    border: 4px solid #000; 
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.5); 
    padding: 12px 25px; 
    border-radius: 20px; 
    color: #fff; 
    font-size: 16px; 
    font-weight: bold; 
    transition: 0.1s; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    cursor: pointer; 
    white-space: nowrap; 
} 
.btn-side:hover { 
    background: var(--input-bg-hover); 
    color: #000; 
    transform: translate(-2px, -2px); 
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.9);
} 
.btn-side.active { 
    background: var(--accent); 
    color: #000; 
}

.circle-btn { width: 70px; height: 70px; border-radius: 50%; background: var(--input-bg-base); border: 4px solid #000; color: #fff; display: flex; justify-content: center; align-items: center; transition: 0.1s; box-shadow: 0 0 15px rgba(0, 210, 255, 0.5); outline: none; cursor: pointer; } 
.circle-btn:hover { background: var(--input-bg-hover); color: #000; transform: translate(-2px, -2px); box-shadow: 0 0 20px rgba(0, 210, 255, 0.9); } 
.circle-btn:active { background: var(--input-bg-hover); color: #000; transform: translate(4px, 4px); box-shadow: 0 0 10px rgba(0, 210, 255, 1); }
.circle-btn svg { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

#btn-mute.muted { background: var(--danger); color: #fff; box-shadow: 0 0 15px rgba(255, 0, 85, 0.6); } 
#btn-dnd.dnd-active { background: #ffaa00; color: #000; box-shadow: 0 0 15px rgba(255, 170, 0, 0.8); }
#btn-block { display: none; background: var(--danger); color: #fff; width: 60px; height: 60px;} 
#btn-admin-kick { display: none; background: #000; color: var(--danger); width: 60px; height: 60px;}

#record-status { 
    font-size: 15px; 
    font-weight: bold; 
    color: #fff; 
    text-transform: uppercase; 
    background: #000; 
    padding: 8px 20px; 
    border-radius: 15px; 
    border: 3px solid #000; 
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.6); 
    transition: 0.3s;
    white-space: nowrap;
}

/* ========================================= */
/* PANNEAUX LATERAUX                         */
/* ========================================= */
.glass-panel { position: absolute; top: 120px; right: -500px; width: 450px; height: calc(100vh - 160px); background: #1a1a2e; border: 4px solid #000; border-radius: 20px; box-shadow: 0 0 25px rgba(0, 210, 255, 0.4); color: #fff; pointer-events: auto; z-index: 1500; transition: right 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); display: flex; flex-direction: column; overflow: hidden;}
.glass-panel.active { right: 40px; }
.panel-header { display: flex; justify-content: space-between; align-items: center; padding: 20px; border-bottom: 3px solid #000; background: rgba(26, 26, 46, 0.95); z-index: 10; position: sticky; top: 0;} 
.panel-header h3 { font-size: 26px; font-weight: bold; text-shadow: 2px 2px 0px #000; color: #ffaa00;} 
.panel-close { background: var(--input-bg-base); border: 3px solid #000; border-radius: 50%; width: 40px; height: 40px; color: #fff; font-size: 20px; transition: 0.1s; box-shadow: 0 0 10px rgba(0, 210, 255, 0.4); display: flex; justify-content: center; align-items: center; cursor: pointer;} 
.panel-close:hover { background: var(--input-bg-hover); color: #000; transform: translate(-2px, -2px); box-shadow: 0 0 15px rgba(0, 210, 255, 0.8);}
.panel-content { padding: 0 20px 20px 20px; overflow-y: auto; flex: 1; position: relative;}
.panel-content::-webkit-scrollbar { width: 8px; } .panel-content::-webkit-scrollbar-thumb { background: #ffaa00; border: 2px solid #000; border-radius: 10px; }

.sticky-top-bar { position: sticky; top: 0; background: rgba(26, 26, 46, 0.98); z-index: 100; padding: 15px; margin: 0 -20px 20px -20px; border-bottom: 3px solid #000; display: flex; flex-direction: column; align-items: center; box-shadow: 0 5px 15px rgba(0,0,0,0.5); }
.shop-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.shop-item { background: var(--input-bg-base); border: 3px solid #000; border-radius: 15px; padding: 15px; text-align: center; box-shadow: 0 0 10px rgba(0, 210, 255, 0.3); transition: 0.2s; position: relative; overflow: hidden; }
.shop-item:hover { transform: translateY(-5px); box-shadow: 0 0 15px rgba(0, 210, 255, 0.7); border-color: var(--accent);}
.shop-item img { width: 90px; height: 90px; margin-bottom: 10px; object-fit: contain; background-color: transparent;}
.shop-item h4 { color: #ffaa00; margin-bottom: 5px; font-size: 18px; font-weight: bold; line-height: 1.1;}
.shop-lore { font-size: 13px; color: var(--text-muted); margin-bottom: 5px; font-style: italic; line-height: 1.1; min-height: 28px; display: flex; align-items: center; justify-content: center;}
.shop-stats { font-size: 14px; color: #00d2ff; margin-bottom: 10px; font-weight: bold;}
.stars { color: #ffaa00; letter-spacing: 2px;}

.halo-preview { width: 60px; height: 60px; border-radius: 50%; background: #333; border: 2px solid #fff; margin: 10px auto; }
.laser-preview { width: 100%; height: 30px; margin: 20px 0; position: relative; }
.shot-preview { width: 40px; height: 40px; border-radius: 50%; margin: 20px auto; }

.shop-detail { display: none; flex-direction: column; animation: slideInRight 0.3s ease; }
@keyframes slideInRight { from { transform: translateX(50px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
.detail-back { cursor: pointer; color: var(--accent); font-weight: bold; font-size: 18px; display: inline-block; transition: 0.2s; padding: 10px; background: var(--input-bg-base); border: 2px solid #000; border-radius: 10px; margin-top: 10px;}
.detail-back:hover { background: var(--input-bg-hover); color: #000; }
.detail-img-wrapper { text-align: center; margin-bottom: 20px; }
.detail-img-wrapper img { width: 160px; height: 160px; object-fit: contain; filter: drop-shadow(0 0 20px rgba(0, 210, 255, 0.4)); background-color: transparent;}
.detail-title { font-size: 36px; color: #ffaa00; text-align: center; margin-bottom: 5px; text-shadow: 2px 2px 0px #000; font-weight: bold; line-height: 1.1;}
.detail-desc { font-size: 18px; text-align: center; margin-bottom: 25px; font-style: italic; color: var(--text-muted); padding: 0 10px;}
.detail-section { background: var(--input-bg-base); border: 2px solid #000; border-radius: 12px; padding: 20px; margin-bottom: 15px; box-shadow: inset 0 0 10px rgba(0,0,0,0.5); }
.detail-section h4 { color: var(--accent); margin-bottom: 10px; font-size: 20px; border-bottom: 1px solid var(--text-muted); padding-bottom: 5px; text-transform: uppercase;}
.detail-section p { font-size: 16px; line-height: 1.6; color: #fff; text-align: justify; margin: 0; }
.detail-action-bar { display: flex; justify-content: space-between; align-items: center; background: rgba(0,0,0,0.5); padding: 20px; border-radius: 15px; border: 3px solid #000; margin-top: 10px;}
.detail-price { font-size: 30px; color: #00ff88; font-weight: bold; text-shadow: 2px 2px 0px #000;}

.radar-group { margin-bottom: 25px; } 
.radar-group label { display: block; font-size: 16px; font-weight: bold; color: var(--accent); text-transform: uppercase; margin-bottom: 10px; text-shadow: 1px 1px 0px #000;}
.radar-chips { display: flex; flex-wrap: wrap; gap: 10px; } 
.r-chip { padding: 8px 15px; background: var(--input-bg-base); border: 3px solid #000; border-radius: 12px; font-size: 15px; font-weight: bold; color: #fff; transition: 0.1s; box-shadow: 0 0 10px rgba(0, 210, 255, 0.3); cursor: pointer;} 
.r-chip:hover { background: var(--input-bg-hover); color: #000; transform: translate(-2px, -2px); box-shadow: 0 0 15px rgba(0, 210, 255, 0.7);} 
.r-chip.selected { background: #ffaa00; color: #000; font-size: 17px; }

.emoji-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; text-align: center; margin-top: 10px; }
.emoji-btn { font-size: 45px; background: var(--glass-bg); border: 3px solid #000; border-radius: 15px; transition: 0.2s; filter: drop-shadow(2px 2px 0px #000); padding: 10px; box-shadow: 0 0 10px rgba(0, 210, 255, 0.3); display: flex; align-items: center; justify-content: center; height: 75px; cursor: pointer;}
.emoji-btn:hover { transform: scale(1.1) translateY(-5px); background: var(--input-bg-hover); box-shadow: 0 0 15px rgba(0, 210, 255, 0.8);}

.overlay-instruction { position: absolute; bottom: 130px; left: 50%; transform: translateX(-50%); z-index: 500; background: rgba(26, 26, 46, 0.9); border: 3px solid #00d2ff; box-shadow: 0 0 15px rgba(0, 210, 255, 0.6); padding: 10px 30px; border-radius: 20px; font-size: 16px; font-weight: bold; color: #fff; text-transform: uppercase; pointer-events: none; opacity: 1; transition: opacity 0.5s ease-in-out; display: none; text-align: center;}
#admin-badge { position: absolute; top: 35px; left: 20px; background: #fff; border: 4px solid #000; color: #000; padding: 15px 20px; border-radius: 15px; display: none; z-index: 2000; box-shadow: 0 0 20px rgba(0, 210, 255, 0.6); font-weight: bold;}

#call-modal, #outgoing-call-modal { display: none; position: fixed; top: 120px; left: 50%; transform: translateX(-50%); z-index: 4000; padding: 25px; text-align: center; background: #fff; border: 5px solid #000; box-shadow: 0 0 25px rgba(0, 210, 255, 0.6); border-radius: 20px; color: #000; }
#call-msg, #outgoing-call-msg { margin-bottom: 10px; font-size: 22px; font-weight: bold; }
.btn-call { padding: 12px 25px; margin: 0 10px; border: 3px solid #000; border-radius: 12px; font-size: 18px; font-weight: bold; transition: 0.1s; box-shadow: 0 0 10px rgba(0, 210, 255, 0.4); cursor: pointer;}
.btn-accept { background: var(--success); color: #000; } .btn-accept:hover { transform: translate(-2px, -2px); box-shadow: 0 0 15px rgba(0, 210, 255, 0.8); }
.btn-decline { background: var(--danger); color: #fff; } .btn-decline:hover { transform: translate(-2px, -2px); box-shadow: 0 0 15px rgba(0, 210, 255, 0.8); }

#top-nav { display: none; position: absolute; top: 35px; left: 50%; transform: translateX(-50%); z-index: 1500; padding: 10px 20px; border-radius: 15px; align-items: center; gap: 15px; width: max-content; background: #1a1a2e; border: 3px solid #000; box-shadow: 0 0 20px rgba(0, 210, 255, 0.4); }
.xp-container-block { display: flex; flex-direction: column; width: 180px; } 
.xp-text-group { display: flex; justify-content: space-between; font-size: 15px; font-weight: bold; margin-bottom: 4px; text-shadow: 1px 1px 0px #000; } 
.xp-bar-container { width: 100%; height: 12px; background: #000; border-radius: 6px; border: 2px solid #fff; overflow: hidden; position: relative; }
.xp-bar-fill { height: 100%; background: var(--xp-color); width: 0%; transition: width 0.5s ease; }
.nav-divider { width: 2px; height: 30px; background: #000; }

#warp-canvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 9000; display: none; }

/* ========================================= */
/* DESIGN DE L'ÉVÉNEMENT CONSTELLATION       */
/* ========================================= */
#constellation-event-container {
    position: fixed;
    z-index: 4500;
    pointer-events: none; 
    transition: opacity 1s, filter 0.5s;
}

.constellation-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    color: #ffd700; 
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 5px;
    -webkit-text-stroke: 2px #000; 
    text-shadow: 2px 2px 5px rgba(0,0,0,0.9), 0 0 25px rgba(255, 215, 0, 0.8); 
    white-space: nowrap;
    pointer-events: none;
    z-index: 10;
}

.constellation-lines {
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 1;
}

.constellation-star {
    position: absolute;
    width: 90px;
    height: 90px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    cursor: pointer !important;
    pointer-events: auto; 
    z-index: 2;
    transition: transform 0.2s, filter 0.2s;
    filter: drop-shadow(0 0 5px rgba(0, 210, 255, 0.5));
}

.constellation-star:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 0 10px #fff);
}

.constellation-star.active {
    filter: sepia(1) saturate(5) hue-rotate(10deg) drop-shadow(0 0 15px #ffaa00) !important;
    transform: scale(1.1);
    pointer-events: none; 
}

/* ========================================= */
/* DESIGN DU PANNEAU ET DE LA VITRINE HAUTS FAITS */
/* ========================================= */

.glass-panel.panel-wide {
    width: 650px; 
    right: -700px;
}
.glass-panel.panel-wide.active {
    right: 40px;
}

.ach-list { 
    display: grid; 
    grid-template-columns: repeat(2, 1fr); 
    gap: 15px; 
}

.ach-card { 
    background: var(--input-bg-base); 
    border: 3px solid #000; 
    border-radius: 12px; 
    padding: 15px; 
    display: flex; 
    flex-direction: column;
    align-items: center; 
    text-align: center;
    transition: 0.3s; 
    position: relative;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.ach-card.locked { 
    filter: grayscale(100%); 
    opacity: 0.5; 
}

.ach-card.unlocked { 
    border-color: var(--success); 
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.4); 
    background: rgba(0, 255, 136, 0.1);
}

.ach-card img { 
    width: 110px !important; 
    height: 110px !important; 
    object-fit: contain; 
    margin-bottom: 15px;
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.2));
}

.ach-name { 
    font-size: 18px; 
    font-weight: bold; 
    color: var(--accent); 
    margin-bottom: 5px; 
    text-transform: uppercase;
    line-height: 1.1;
    min-height: 33px; 
}

.ach-desc { 
    font-size: 14px; 
    color: var(--text-main); 
    margin-bottom: 10px; 
    line-height: 1.2;
    min-height: 42px;
}

.ach-bar-bg { 
    width: 100%; 
    height: 8px; 
    background: #000; 
    border: 1px solid #333;
    border-radius: 4px; 
    overflow: hidden; 
}

.ach-bar-fill { 
    height: 100%; 
    background: linear-gradient(90deg, #ffaa00, #ff0055); 
    transition: width 0.5s ease; 
}

/* ========================================= */
/* NOUVEAU : BANNIERES PUBLICITAIRES LATERALES */
/* ========================================= */
.ad-banner-side {
    position: fixed;
    top: 120px; 
    width: 160px;
    height: calc(100vh - 160px);
    background: rgba(30, 30, 47, 0.85);
    border: 4px solid #000;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.3);
    backdrop-filter: blur(4px);
    z-index: 1200;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: opacity 0.5s;
    pointer-events: auto;
    color: #fff;
}

#ad-banner-left {
    left: 20px;
}

#ad-banner-right {
    right: 20px;
}

.ad-close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--input-bg-base);
    border: 3px solid #000;
    border-radius: 50%;
    color: #fff;
    width: 30px;
    height: 30px;
    font-size: 16px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.2s;
    box-shadow: 0 0 10px rgba(0, 210, 255, 0.3);
}

.ad-close-btn:hover {
    background: var(--danger);
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(255, 0, 85, 0.6);
}

.banner-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    text-align: center;
    font-weight: bold;
    font-size: 16px;
    text-transform: uppercase;
    color: var(--accent);
    text-shadow: 1px 1px 0px #000;
    padding: 20px 0;
}

.banner-content p {
    margin: 5px 0;
}

/* ========================================= */
/* MODALE PUBLICITAIRE (FLOATING)            */
/* ========================================= */
#ad-modal {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 5000 !important;
    width: 450px !important;
    height: auto !important;
    right: auto !important;
    bottom: auto !important;
    flex-direction: column !important;
    background: #1a1a2e;
    border: 4px solid #000;
    border-radius: 20px;
    box-shadow: 0 0 40px rgba(0, 210, 255, 0.6);
    color: #fff;
    pointer-events: auto;
    display: none;
    overflow: hidden;
}

#ad-modal .panel-header {
    background: rgba(26, 26, 46, 0.95);
    border-bottom: 3px solid #000;
}

#ad-modal .panel-content {
    padding: 20px;
    text-align: center;
    overflow-y: auto;
}

#ad-modal .btn-main {
    margin-top: 15px;
}