/* ========================================
   CHOUPI v2.1 - STYLES PRINCIPAUX - AMÉLIORÉS
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=VT323&display=swap');

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'VT323', monospace;
    background: linear-gradient(145deg, #1a1a2e, #16213e, #0f3460);
    color: #c9d1d9;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ========================================
   HEADER
   ======================================== */

.header {
    background: #0d1117;
    border-bottom: 3px solid #21262d;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.header-left, .header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    font-family: 'Press Start 2P', monospace;
    font-size: 18px;
    color: #58a6ff;
    text-decoration: none;
    text-shadow: 0 0 10px #58a6ff;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { text-shadow: 0 0 10px #58a6ff; }
    to { text-shadow: 0 0 20px #58a6ff, 0 0 30px #58a6ff; }
}

.stat-badge {
    background: linear-gradient(135deg, #1e3a8a, #1e40af);
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 16px;
    border: 2px solid #3b82f6;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.stat-badge strong {
    color: #fbbf24;
    font-size: 18px;
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.6);
}

.username-badge {
    background: linear-gradient(135deg, #7c3aed, #a78bfa);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    color: white;
    font-weight: bold;
}

/* ========================================
   BANDEAU TICKER - NOUVEAU !
   ======================================== */

.ticker-banner {
    background: linear-gradient(90deg, #1e3a8a, #1e40af, #3b82f6, #1e40af, #1e3a8a);
    background-size: 200% 100%;
    animation: gradientShift 8s ease infinite;
    border-bottom: 2px solid #3b82f6;
    overflow: hidden;
    height: 48px;
    position: relative;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.ticker-content {
    display: flex;
    align-items: center;
    height: 100%;
    animation: ticker 60s linear infinite;
    white-space: nowrap;
}

@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 24px;
    color: white;
    font-size: 16px;
    font-weight: bold;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.ticker-item:last-child {
    border-right: none;
}

.ticker-avatar {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    border: 2px solid #fbbf24;
    box-shadow: 0 0 8px rgba(251, 191, 36, 0.5);
}

.ticker-welcome {
    color: #fbbf24;
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.8);
}

.ticker-loading {
    padding: 0 20px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

/* ========================================
   BUTTONS
   ======================================== */

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-family: 'VT323', monospace;
    font-size: 16px;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 14px;
}

.btn-block {
    width: 100%;
    display: block;
}

.btn-primary {
    background: linear-gradient(135deg, #7c3aed, #a78bfa);
    color: white;
    border: 2px solid #7c3aed;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #a78bfa, #7c3aed);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, #21262d, #30363d);
    color: #c9d1d9;
    border: 2px solid #30363d;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #30363d, #21262d);
    border-color: #58a6ff;
}

.btn-success {
    background: linear-gradient(135deg, #238636, #2ea043);
    color: white;
    border: 2px solid #238636;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ========================================
   MAIN CONTENT - ✅ CORRIGÉ !
   ======================================== */

.game-container, .dashboard-container {
    display: flex;
    flex-direction: column;
    height: 100vh; /* ✅ Hauteur fixe au lieu de min-height */
}

.main-content {
    flex: 1;
    display: flex;
    overflow: hidden;
    min-height: 0; /* ✅ Important pour forcer le flex child à respecter la contrainte */
}

/* Carte */
.map-container {
    flex: 1;
    position: relative;
    background: linear-gradient(135deg, #134e4a, #064e3b, #1e3a8a);
    overflow: hidden;
}

#mapCanvas {
    position: absolute;
    top: 0;
    left: 0;
    cursor: grab;
}

#mapCanvas:active {
    cursor: grabbing;
}

#mapOverlay {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(13, 17, 23, 0.9);
    padding: 10px;
    border-radius: 6px;
    font-size: 14px;
    pointer-events: none;
    display: none; /* Caché par défaut - à afficher uniquement si nécessaire */
}

/* Sidebar - ✅ CORRIGÉ ! */
.sidebar {
    width: 320px;
    background: linear-gradient(180deg, #21262d, #161b22);
    border-left: 2px solid #30363d;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0; /* ✅ Permet au flex child de scroller correctement */
}

.sidebar-header {
    background: linear-gradient(135deg, #1e1b4b, #312e81);
    padding: 16px;
    border-bottom: 2px solid #30363d;
    text-align: center;
    flex-shrink: 0; /* ✅ Empêche le header de se compresser */
}

.sidebar-header h2 {
    font-family: 'Press Start 2P', monospace;
    font-size: 14px;
    color: #7c3aed;
    margin-bottom: 8px;
}

.sidebar-subtitle {
    font-size: 12px;
    opacity: 0.8;
}

.search-box {
    padding: 12px;
    border-bottom: 1px solid #30363d;
    flex-shrink: 0; /* ✅ Empêche la search box de se compresser */
}

.search-box input {
    width: 100%;
    background: #0d1117;
    border: 2px solid #21262d;
    color: #c9d1d9;
    padding: 8px 12px;
    border-radius: 4px;
    font-family: 'VT323', monospace;
    font-size: 16px;
}

.search-box input:focus {
    outline: none;
    border-color: #58a6ff;
}

/* Leaderboard - ✅ CORRIGÉ ! */
.leaderboard {
    flex: 1;
    overflow-y: auto; /* ✅ Scroll vertical activé */
    overflow-x: hidden; /* ✅ Empêche le scroll horizontal */
    padding: 8px;
    min-height: 0; /* ✅ Permet au conteneur de scroller */
}

.leaderboard::-webkit-scrollbar {
    width: 8px;
}

.leaderboard::-webkit-scrollbar-track {
    background: #161b22;
}

.leaderboard::-webkit-scrollbar-thumb {
    background: #58a6ff;
    border-radius: 4px;
}

.leaderboard-item {
    background: #161b22;
    border: 1px solid #21262d;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.leaderboard-item:hover {
    background: #21262d;
    border-color: #58a6ff;
    transform: translateX(4px);
}

.rank-badge {
    font-family: 'Press Start 2P', monospace;
    font-size: 12px;
    font-weight: bold;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid;
}

.rank-1 {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #7c2d12;
    border-color: #f59e0b;
}

.rank-2 {
    background: linear-gradient(135deg, #c0c0c0, #e5e7eb);
    color: #374151;
    border-color: #9ca3af;
}

.rank-3 {
    background: linear-gradient(135deg, #cd7f32, #d97706);
    color: #fef3c7;
    border-color: #f59e0b;
}

.choupi-avatar {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    border: 1px solid #30363d;
}

.choupi-info {
    flex: 1;
}

.choupi-name {
    font-size: 16px;
    font-weight: bold;
    color: #58a6ff;
    margin-bottom: 4px;
}

.choupi-stats {
    font-size: 14px;
    color: #8b949e;
    display: flex;
    gap: 8px;
}

.choupi-value {
    font-family: 'Press Start 2P', monospace;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #000;
    border: 1px solid #f59e0b;
}

/* ========================================
   MODAL - AMÉLIORÉE !
   ======================================== */

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: linear-gradient(145deg, #161b22, #21262d);
    border: 3px solid #30363d;
    border-radius: 12px;
    padding: 24px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideIn 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.modal-small {
    max-width: 400px;
}

@keyframes slideIn {
    from { transform: scale(0.7) translateY(-50px); opacity: 0; }
    to { transform: scale(1) translateY(0); opacity: 1; }
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 28px;
    font-weight: bold;
    color: #f85149;
    cursor: pointer;
    line-height: 1;
}

.modal-close:hover {
    color: #ff7b72;
}

.modal-header {
    text-align: center;
    margin-bottom: 20px;
}

.modal-avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto 12px;
    border-radius: 8px;
    border: 2px solid #30363d;
}

.modal-header h2 {
    color: #58a6ff;
    font-size: 24px;
    margin-bottom: 8px;
}

/* NOUVEAU: Affichage valeur en gros */
.modal-value-display {
    background: linear-gradient(135deg, #1e3a8a, #1e40af);
    border: 2px solid #3b82f6;
    border-radius: 8px;
    padding: 16px;
    margin: 16px 0;
    text-align: center;
}

.value-label {
    font-size: 14px;
    color: #93c5fd;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.value-amount {
    font-family: 'Press Start 2P', monospace;
    font-size: 32px;
    color: #fbbf24;
    text-shadow: 0 0 20px rgba(251, 191, 36, 0.8);
    margin-bottom: 8px;
    animation: valueGlow 2s ease-in-out infinite alternate;
}

@keyframes valueGlow {
    from { text-shadow: 0 0 10px rgba(251, 191, 36, 0.5); }
    to { text-shadow: 0 0 20px rgba(251, 191, 36, 1); }
}

.value-info {
    font-size: 12px;
    color: #fbbf24;
    opacity: 0.9;
    font-style: italic;
}

.stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.stat-item {
    background: #0d1117;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #21262d;
    text-align: center;
}

.stat-label {
    display: block;
    font-size: 12px;
    color: #8b949e;
    margin-bottom: 4px;
}

.stat-value {
    display: block;
    font-size: 20px;
    color: #c9d1d9;
    font-weight: bold;
}

.hp-bar, .xp-bar {
    margin-bottom: 16px;
}

.bar-label {
    font-size: 14px;
    margin-bottom: 6px;
}

.bar {
    background: #21262d;
    border: 1px solid #30363d;
    border-radius: 10px;
    height: 24px;
    position: relative;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    transition: width 0.5s ease;
}

.bar-hp {
    background: linear-gradient(90deg, #f85149, #da3633);
}

.bar-xp {
    background: linear-gradient(90deg, #3fb950, #238636);
}

.bar-text {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: white;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0,0,0,0.7);
}

.traits {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.trait-tag {
    background: linear-gradient(135deg, #7c3aed, #a78bfa);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    border: 1px solid #7c3aed;
}

.cooldown-text, .cooldown-info {
    font-size: 12px;
    color: #8b949e;
    text-align: center;
    margin-top: 8px;
}

/* ========================================
   DASHBOARD
   ======================================== */

.dashboard-content {
    flex: 1;
    display: flex;
    gap: 20px;
    padding: 20px;
}

.dashboard-sidebar {
    width: 320px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.choupi-card, .actions-card, .referral-card {
    background: linear-gradient(145deg, #161b22, #21262d);
    border: 2px solid #30363d;
    border-radius: 12px;
    padding: 20px;
}

.choupi-card h3, .actions-card h3, .referral-card h3 {
    color: #58a6ff;
    margin-bottom: 12px;
    font-size: 18px;
}

.referral-input {
    width: 100%;
    background: #0d1117;
    border: 2px solid #21262d;
    color: #c9d1d9;
    padding: 8px;
    border-radius: 4px;
    font-family: 'VT323', monospace;
    font-size: 14px;
    margin-bottom: 8px;
}

.enclos-container {
    flex: 1;
    background: linear-gradient(145deg, #161b22, #21262d);
    border: 2px solid #30363d;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

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

/* ✅ CORRECTION : Canvas responsive avec taille fixe */
#enclosCanvas {
    width: 100%;
    max-width: 512px;
    height: auto;
    aspect-ratio: 4/3;
    border-radius: 8px;
    background: linear-gradient(135deg, #134e4a, #064e3b);
    margin: 0 auto;
    display: block;
}

.enclos-footer {
    margin-top: 12px;
    text-align: center;
}

.info-text {
    font-size: 14px;
    color: #8b949e;
}

/* ========================================
   AUTH PAGES
   ======================================== */

.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.auth-container {
    width: 100%;
    max-width: 450px;
}

.auth-card {
    background: linear-gradient(145deg, #161b22, #21262d);
    border: 3px solid #30363d;
    border-radius: 12px;
    padding: 32px;
}

.auth-header {
    text-align: center;
    margin-bottom: 24px;
}

.auth-header h1 {
    color: #58a6ff;
    font-size: 28px;
    margin-bottom: 8px;
}

.auth-form {
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 14px;
    margin-bottom: 6px;
    color: #8b949e;
}

.form-group input {
    width: 100%;
    background: #0d1117;
    border: 2px solid #21262d;
    color: #c9d1d9;
    padding: 10px 12px;
    border-radius: 6px;
    font-family: 'VT323', monospace;
    font-size: 16px;
}

.form-group input:focus {
    outline: none;
    border-color: #58a6ff;
}

.form-group small {
    display: block;
    font-size: 12px;
    color: #6e7681;
    margin-top: 4px;
}

/* CHECKBOX CORRIGÉE - NOUVEAU ! */
.checkbox-group {
    margin: 20px 0;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
    margin-top: 2px;
    cursor: pointer;
    flex-shrink: 0;
}

.checkbox-text {
    font-size: 13px;
    color: #8b949e;
    line-height: 1.5;
}

.checkbox-text a {
    color: #58a6ff;
    text-decoration: none;
}

.checkbox-text a:hover {
    text-decoration: underline;
}

.cf-turnstile {
    margin: 16px 0;
}

.auth-footer {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #30363d;
}

.auth-footer p {
    margin-bottom: 8px;
    font-size: 14px;
}

.auth-footer a {
    color: #58a6ff;
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Alerts */
.alert {
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 16px;
    font-size: 14px;
}

.alert-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert-success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

/* Footer */
.footer {
    background: #0d1117;
    border-top: 2px solid #21262d;
    padding: 16px 20px;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.footer-links a {
    color: #8b949e;
    text-decoration: none;
    font-size: 14px;
}

.footer-links a:hover {
    color: #58a6ff;
}

/* Loader */
.loader {
    text-align: center;
    padding: 20px;
    color: #8b949e;
}

/* ========================================
   NAME TAGS - Pour carte et enclos
   ======================================== */

.choupi-nametag {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, rgba(13, 17, 23, 0.95), rgba(33, 38, 45, 0.95));
    border: 2px solid rgba(88, 166, 255, 0.6);
    border-radius: 8px;
    padding: 4px 10px;
    font-family: 'VT323', monospace;
    font-size: 16px;
    color: #58a6ff;
    font-weight: bold;
    white-space: nowrap;
    pointer-events: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5), 
                0 0 12px rgba(88, 166, 255, 0.3);
    backdrop-filter: blur(4px);
    transform: translateX(-50%);
    z-index: 10;
}

/* Badges top 3 */
.rank-crown {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
    flex-shrink: 0;
}

.rank-crown.gold {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #7c2d12;
    border: 2px solid #f59e0b;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
    animation: crownGlow 2s ease-in-out infinite alternate;
}

.rank-crown.silver {
    background: linear-gradient(135deg, #c0c0c0, #e5e7eb);
    color: #374151;
    border: 2px solid #9ca3af;
    box-shadow: 0 0 10px rgba(192, 192, 192, 0.6);
}

.rank-crown.bronze {
    background: linear-gradient(135deg, #cd7f32, #d97706);
    color: #fef3c7;
    border: 2px solid #f59e0b;
    box-shadow: 0 0 10px rgba(205, 127, 50, 0.6);
}

@keyframes crownGlow {
    from { box-shadow: 0 0 10px rgba(255, 215, 0, 0.4); }
    to { box-shadow: 0 0 20px rgba(255, 215, 0, 0.8), 0 0 30px rgba(255, 215, 0, 0.4); }
}

/* Version pour l'enclos (plus petit) */
.enclos-nametag {
    text-align: center;
    margin-top: 8px;
}

.enclos-nametag .choupi-nametag {
    position: relative;
    transform: none;
    display: inline-flex;
    font-size: 14px;
    padding: 3px 8px;
}

.enclos-nametag .rank-crown {
    width: 18px;
    height: 18px;
    font-size: 10px;
}

/* ========================================
   RESPONSIVE MOBILE
   ======================================== */

@media (max-width: 1024px) {
    .dashboard-content {
        flex-direction: column;
        gap: 16px;
    }
    
    .dashboard-sidebar {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
    
    .referral-card {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 10px 12px;
        flex-direction: column;
        gap: 10px;
        position: relative;
    }
    
    .header-left {
        width: 100%;
        justify-content: space-between;
    }
    
    .header-right {
        width: 100%;
        justify-content: space-around;
    }
    
    .logo {
        font-size: 14px;
    }
    
    .stat-badge {
        font-size: 11px;
        padding: 4px 8px;
        display: none;
    }
    
    .ticker-banner {
        height: 40px;
    }
    
    .ticker-item {
        font-size: 14px;
        padding: 0 16px;
    }
    
    .ticker-avatar {
        width: 28px;
        height: 28px;
    }
    
    .main-content {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        height: 50vh;
        max-height: 400px;
        border-left: none;
        border-top: 2px solid #30363d;
        order: 2;
    }
    
    .map-container {
        height: 50vh;
        order: 1;
    }
    
    .modal-content {
        padding: 16px;
        width: 95%;
    }
    
    .modal-avatar {
        width: 60px;
        height: 60px;
    }
    
    .value-amount {
        font-size: 24px;
    }
    
    .stat-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .dashboard-content {
        padding: 12px;
    }
    
    .dashboard-sidebar {
        grid-template-columns: 1fr;
    }
    
    .enclos-container {
        padding: 12px;
    }
    
    .enclos-header {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .ticker-banner {
        height: 36px;
    }
    
    .ticker-item {
        font-size: 12px;
        padding: 0 12px;
    }
    
    .ticker-avatar {
        width: 24px;
        height: 24px;
    }
    
    .value-amount {
        font-size: 20px;
    }
    
    .choupi-card, .actions-card, .referral-card {
        padding: 16px;
    }
}

/* ========================================
   SYSTÈME DE PENSÉES CHOUPI - DESIGN IMMERSIF
   ======================================== */

/* Layout dashboard avec journal */
.main-dashboard-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Bouton pensée */
.btn-thought {
    background: linear-gradient(135deg, #6366f1, #8b5cf6, #a78bfa);
    color: white;
    border: 2px solid #6366f1;
    font-weight: bold;
    position: relative;
    overflow: hidden;
}

.btn-thought:hover:not(:disabled) {
    background: linear-gradient(135deg, #8b5cf6, #a78bfa, #6366f1);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
}

.btn-thought::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-thought:hover:not(:disabled)::before {
    width: 300px;
    height: 300px;
}

/* Bouton premium (disabled) */
.btn-premium {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    border: 2px solid #f59e0b;
    opacity: 0.6;
    cursor: not-allowed;
    position: relative;
}

.premium-badge {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: bold;
    margin-left: 6px;
    animation: premiumGlow 2s ease-in-out infinite;
}

@keyframes premiumGlow {
    0%, 100% { box-shadow: 0 0 5px rgba(251, 191, 36, 0.5); }
    50% { box-shadow: 0 0 15px rgba(251, 191, 36, 0.8); }
}

/* ========================================
   MODAL PENSÉE - ULTRA IMMERSIVE
   ======================================== */

.modal-thought {
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
}

.modal-thought-content {
    max-width: 600px;
    background: linear-gradient(145deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    border: 3px solid #6366f1;
    box-shadow: 0 0 40px rgba(99, 102, 241, 0.5),
                0 0 80px rgba(99, 102, 241, 0.3),
                inset 0 0 60px rgba(99, 102, 241, 0.1);
    animation: thoughtModalAppear 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

@keyframes thoughtModalAppear {
    0% {
        transform: scale(0.5) rotateX(90deg);
        opacity: 0;
    }
    100% {
        transform: scale(1) rotateX(0deg);
        opacity: 1;
    }
}

/* Header de la modal */
.thought-header {
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(99, 102, 241, 0.3);
    position: relative;
}

.thought-avatar-container {
    position: relative;
    display: inline-block;
    margin-bottom: 12px;
}

.thought-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid #6366f1;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.6);
    animation: thoughtAvatarFloat 3s ease-in-out infinite;
}

@keyframes thoughtAvatarFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.thought-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid #6366f1;
    transform: translate(-50%, -50%);
    animation: thoughtPulse 2s ease-out infinite;
}

@keyframes thoughtPulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
}

.thought-subtitle {
    font-size: 14px;
    color: #a78bfa;
    margin-top: 8px;
    opacity: 0.9;
}

/* Bulle de pensée */
.thought-bubble {
    margin: 24px 0;
    padding: 24px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    border-radius: 20px;
    border: 2px solid rgba(99, 102, 241, 0.3);
    position: relative;
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.thought-bubble::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-bottom: 20px solid rgba(99, 102, 241, 0.3);
}

.thought-text {
    font-size: 18px;
    line-height: 1.8;
    color: #e0e7ff;
    text-align: center;
    font-family: 'VT323', monospace;
    font-style: italic;
}

.thought-text p {
    margin: 0;
}

/* Animation typewriter */
.thought-typing::after {
    content: '▮';
    animation: thoughtBlink 1s step-end infinite;
    margin-left: 2px;
}

@keyframes thoughtBlink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.thought-complete {
    animation: thoughtFadeIn 0.5s ease-in;
}

@keyframes thoughtFadeIn {
    from { opacity: 0.5; }
    to { opacity: 1; }
}

/* Loader de connexion */
.thought-connecting {
    text-align: center;
    color: #a78bfa;
}

.thought-dots {
    margin-top: 12px;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.thought-dots span {
    width: 8px;
    height: 8px;
    background: #6366f1;
    border-radius: 50%;
    animation: thoughtDotPulse 1.4s ease-in-out infinite;
}

.thought-dots span:nth-child(1) { animation-delay: 0s; }
.thought-dots span:nth-child(2) { animation-delay: 0.2s; }
.thought-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes thoughtDotPulse {
    0%, 80%, 100% {
        transform: scale(0);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Footer modal */
.thought-footer {
    padding-top: 20px;
    border-top: 2px solid rgba(99, 102, 241, 0.3);
    text-align: center;
}

.thought-meta {
    font-size: 12px;
    color: #8b949e;
    margin-bottom: 12px;
    display: block;
}

/* ========================================
   JOURNAL DES PENSÉES
   ======================================== */

.thoughts-journal {
    background: linear-gradient(145deg, #161b22, #21262d);
    border: 2px solid #30363d;
    border-radius: 12px;
    padding: 20px;
    max-height: 500px;
    display: flex;
    flex-direction: column;
}

.journal-header {
    margin-bottom: 16px;
    border-bottom: 2px solid #30363d;
    padding-bottom: 12px;
}

.journal-header h3 {
    color: #6366f1;
    margin-bottom: 4px;
    font-size: 18px;
}

.journal-subtitle {
    font-size: 13px;
    color: #8b949e;
    font-style: italic;
}

.thoughts-list {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 8px;
}

.thoughts-list::-webkit-scrollbar {
    width: 6px;
}

.thoughts-list::-webkit-scrollbar-track {
    background: #161b22;
    border-radius: 3px;
}

.thoughts-list::-webkit-scrollbar-thumb {
    background: #6366f1;
    border-radius: 3px;
}

/* Item de pensée dans le journal */
.thought-item {
    background: #0d1117;
    border: 1px solid #21262d;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.thought-item:hover {
    background: #161b22;
    border-color: #6366f1;
    transform: translateX(4px);
    box-shadow: -4px 0 0 #6366f1;
}

.thought-item-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.thought-item-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #6366f1;
}

.thought-item-meta {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.thought-item-level {
    font-size: 12px;
    color: #a78bfa;
    font-weight: bold;
}

.thought-item-date {
    font-size: 11px;
    color: #8b949e;
}

.thought-item-text {
    font-size: 14px;
    line-height: 1.6;
    color: #c9d1d9;
    font-style: italic;
    padding: 8px;
    background: rgba(99, 102, 241, 0.05);
    border-left: 3px solid #6366f1;
    border-radius: 4px;
    margin-bottom: 8px;
}

.thought-item-footer {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #6e7681;
}

/* Animation pulse au clic */
.thought-item-pulse {
    animation: itemPulse 0.6s ease;
}

@keyframes itemPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

/* État vide */
.journal-empty {
    text-align: center;
    padding: 40px 20px;
    color: #8b949e;
}

.journal-empty p:first-child {
    font-size: 24px;
    margin-bottom: 8px;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1024px) {
    .main-dashboard-area {
        gap: 12px;
    }
    
    .thoughts-journal {
        max-height: 400px;
    }
}

@media (max-width: 768px) {
    .modal-thought-content {
        width: 95%;
        padding: 20px;
    }
    
    .thought-avatar {
        width: 60px;
        height: 60px;
    }
    
    .thought-text {
        font-size: 16px;
    }
    
    .thoughts-journal {
        max-height: 300px;
        padding: 16px;
    }
    
    .thought-item {
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .thought-bubble {
        padding: 16px;
        min-height: 120px;
    }
    
    .thought-text {
        font-size: 15px;
        line-height: 1.6;
    }
}

/* ========================================
   LAYOUT AMÉLIORÉ - BOUTONS DANS JOURNAL + RESPONSIVE MOBILE
   ======================================== */

/* Section actions mentales dans le journal */
.mental-connection-actions {
    padding: 16px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    border-radius: 8px;
    border: 2px solid rgba(99, 102, 241, 0.3);
    margin-bottom: 16px;
}

.mental-connection-actions .btn {
    margin-bottom: 8px;
}

.mental-connection-actions .cooldown-info {
    margin-bottom: 12px;
}

/* Avatar canvas dans la modal */
.thought-avatar {
    border-radius: 50%;
    border: 3px solid #6366f1;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.6);
    animation: thoughtAvatarFloat 3s ease-in-out infinite;
    image-rendering: pixelated;
    -ms-interpolation-mode: nearest-neighbor;
}

/* Avatar canvas dans les items de pensée */
.thought-item-avatar {
    border-radius: 50%;
    border: 2px solid #6366f1;
    image-rendering: pixelated;
    -ms-interpolation-mode: nearest-neighbor;
}

/* ========================================
   RESPONSIVE MOBILE - ENCLOS EN HAUT
   ======================================== */

@media (max-width: 768px) {
    /* Réorganiser le layout sur mobile */
    .dashboard-content {
        flex-direction: column;
    }
    
    .dashboard-sidebar {
        width: 100%;
        order: 2; /* Sidebar en 2ème */
    }
    
    .main-dashboard-area {
        width: 100%;
        order: 1; /* Zone principale (enclos + journal) en 1er */
    }
    
    /* Enclos en haut sur mobile */
    .enclos-container {
        order: 1;
        margin-bottom: 16px;
    }
    
    /* Journal en dessous */
    .thoughts-journal {
        order: 2;
        max-height: 400px;
    }
    
    /* Sidebar avec grille sur mobile */
    .dashboard-sidebar {
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .choupi-card {
        grid-column: 1 / -1;
    }
    
    /* Actions mentales plus compactes sur mobile */
    .mental-connection-actions {
        padding: 12px;
    }
    
    .mental-connection-actions .btn {
        font-size: 14px;
        padding: 8px 12px;
    }
    
    /* Modal plus petite sur mobile */
    .modal-thought-content {
        width: 95%;
        padding: 16px;
        margin: 10px;
    }
    
    .thought-avatar {
        width: 60px;
        height: 60px;
    }
    
    .thought-bubble {
        padding: 16px;
        min-height: 120px;
    }
    
    .thought-text {
        font-size: 15px;
    }
    
    /* Journal des pensées plus compact */
    .thoughts-list {
        max-height: 300px;
    }
    
    .thought-item {
        padding: 8px;
        margin-bottom: 8px;
    }
    
    .thought-item-text {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    /* Encore plus compact sur très petit écran */
    .mental-connection-actions {
        padding: 10px;
    }
    
    .thought-bubble {
        padding: 12px;
        min-height: 100px;
    }
    
    .thought-text {
        font-size: 14px;
        line-height: 1.5;
    }
    
    .thoughts-list {
        max-height: 250px;
    }
    
    .thought-item-avatar {
        width: 28px;
        height: 28px;
    }
}

/* ========================================
   AMÉLIORATIONS VISUELLES
   ======================================== */

/* Meilleur espacement pour le journal */
.thoughts-journal {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.journal-header {
    flex-shrink: 0;
}

.mental-connection-actions {
    flex-shrink: 0;
}

.thoughts-list {
    flex: 1;
    min-height: 0;
}

/* Animation d'entrée pour les pensées */
.thought-item {
    animation: slideInLeft 0.3s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Amélioration du canvas avatar */
canvas.thought-avatar,
canvas.thought-item-avatar {
    display: block;
}

/* Fix pour les emojis dans les boutons sur mobile */
@media (max-width: 480px) {
    .btn {
        white-space: normal;
        line-height: 1.4;
    }
}

/* ========================================
   MODIFICATIONS CSS À AJOUTER/MODIFIER
   ======================================== */

/* ⭐ AMÉLIORATION : Centrer le canvas du Choupi dans la bulle */
.thought-avatar-container {
    position: relative;
    display: inline-block;
    margin: 0 auto 12px; /* ⭐ Ajout du auto pour centrer */
}

.thought-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid #6366f1;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.6);
    animation: thoughtAvatarFloat 3s ease-in-out infinite;
    image-rendering: pixelated;
    -ms-interpolation-mode: nearest-neighbor;
    display: block; /* ⭐ Important pour le centrage */
    margin: 0 auto; /* ⭐ Centrer le canvas */
}

/* ⭐ AMÉLIORATION : Header de la modal mieux centré */
.thought-header {
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(99, 102, 241, 0.3);
    position: relative;
    display: flex; /* ⭐ Nouveau */
    flex-direction: column; /* ⭐ Nouveau */
    align-items: center; /* ⭐ Centrer tous les enfants */
}

/* ⭐ Avatar canvas dans les items de pensée */
.thought-item-avatar {
    border-radius: 50%;
    border: 2px solid #6366f1;
    image-rendering: pixelated;
    -ms-interpolation-mode: nearest-neighbor;
    display: block; /* ⭐ Important */
}

/* ⭐ AMÉLIORATION : Bulle de pensée */
.thought-bubble {
    margin: 24px 0;
    padding: 24px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    border-radius: 20px;
    border: 2px solid rgba(99, 102, 241, 0.3);
    position: relative;
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center; /* ⭐ Important pour centrer le contenu */
}

/* ⭐ AMÉLIORATION : Curseur pointer sur les pensées cliquables */
.thought-item {
    background: #0d1117;
    border: 1px solid #21262d;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 12px;
    cursor: pointer; /* ⭐ Déjà présent, mais important */
    transition: all 0.3s ease;
}

.thought-item:hover {
    background: #161b22;
    border-color: #6366f1;
    transform: translateX(4px);
    box-shadow: -4px 0 0 #6366f1;
}

/* ⭐ NOUVEAU : Style pour le bouton de partage dans la modal */
#shareThoughtBtn {
    transition: all 0.3s ease;
}

#shareThoughtBtn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.4);
}

/* ========================================
   WARNING BOX - ALT ACCOUNTS
   ======================================== */

.warning-box {
    background: linear-gradient(135deg, rgba(217, 119, 6, 0.1), rgba(234, 88, 12, 0.1));
    border: 2px solid rgba(234, 88, 12, 0.5);
    border-radius: 8px;
    padding: 12px 16px;
    margin: 16px 0;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.warning-box-icon {
    font-size: 20px;
    flex-shrink: 0;
    line-height: 1;
}

.warning-box-content {
    flex: 1;
}

.warning-box-title {
    color: #fb923c;
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 4px;
}

.warning-box-text {
    color: #fdba74;
    font-size: 13px;
    line-height: 1.5;
}

@media (max-width: 480px) {
    .warning-box {
        padding: 10px 12px;
        font-size: 12px;
    }
    
    .warning-box-icon {
        font-size: 18px;
    }
}

/* ========================================
   MODALE DE BIENVENUE - VERSION OPTIMISÉE
   ======================================== */

.modal-welcome {
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(8px);
}

.modal-welcome-content {
    max-width: 550px;
    background: linear-gradient(145deg, #161b22, #21262d);
    border: 3px solid #58a6ff;
    box-shadow: 0 0 30px rgba(88, 166, 255, 0.4);
    animation: welcomeSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

@keyframes welcomeSlideIn {
    from {
        transform: scale(0.8) translateY(-30px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

/* Header simplifié */
.welcome-header {
    text-align: center;
    padding: 24px 20px 20px;
    border-bottom: 2px solid #30363d;
}

.welcome-avatar-container {
    position: relative;
    display: inline-block;
    margin-bottom: 16px;
}

.welcome-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid #58a6ff;
    box-shadow: 0 0 20px rgba(88, 166, 255, 0.5);
    animation: welcomeBounce 2s ease-in-out infinite;
    image-rendering: pixelated;
    -ms-interpolation-mode: nearest-neighbor;
}

@keyframes welcomeBounce {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

/* Effet sparkle simplifié */
.welcome-sparkle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid #58a6ff;
    transform: translate(-50%, -50%);
    animation: sparkle 2s ease-out infinite;
}

@keyframes sparkle {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }
    100% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
}

.welcome-title {
    font-size: 20px;
    color: #58a6ff;
    margin-bottom: 6px;
}

.welcome-subtitle {
    font-size: 14px;
    color: #8b949e;
}

/* Corps compact */
.welcome-body {
    padding: 16px 20px;
}

/* Intro financière */
.welcome-intro {
    text-align: center;
    margin-bottom: 16px;
    padding: 12px;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(16, 185, 129, 0.1));
    border-radius: 6px;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.welcome-intro p {
    font-size: 14px;
    line-height: 1.4;
    color: #c9d1d9;
    margin: 0;
}

.welcome-intro strong {
    color: #22c55e;
    font-size: 16px;
    display: block;
    margin-bottom: 4px;
}

.welcome-value {
    font-size: 13px;
    color: #22c55e;
    font-weight: bold;
    margin-top: 4px;
}

/* Traits compacts */
.welcome-traits {
    margin-bottom: 16px;
}

.welcome-traits-list {
    display: flex;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}

.welcome-trait-tag {
    background: linear-gradient(135deg, #7c3aed, #a78bfa);
    color: white;
    padding: 4px 10px;
    border-radius: 10px;
    font-size: 12px;
    border: 1px solid #7c3aed;
    font-weight: bold;
}

/* Actions avec checkmarks */
.welcome-actions {
    margin-bottom: 0;
}

.welcome-actions h3 {
    color: #58a6ff;
    font-size: 14px;
    margin-bottom: 8px;
    text-align: center;
}

.welcome-action-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.welcome-action-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: rgba(88, 166, 255, 0.05);
    border-radius: 4px;
    margin-bottom: 6px;
    transition: all 0.2s;
}

.welcome-action-item:hover {
    background: rgba(88, 166, 255, 0.1);
    transform: translateX(4px);
}

.action-check {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #22c55e, #10b981);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.action-content {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.action-name {
    font-size: 14px;
    color: #c9d1d9;
}

.action-reward {
    font-size: 12px;
    color: #22c55e;
    font-weight: bold;
}

/* Footer compact */
.welcome-footer {
    padding: 12px 20px;
    border-top: 2px solid #30363d;
}

.btn-glow {
    font-size: 15px;
    padding: 10px 18px;
    font-weight: bold;
}

.btn-glow:hover {
    transform: translateY(-2px);
}

/* Confettis légers (seulement 5 au lieu de 10) */
.welcome-confetti {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    opacity: 0.6;
}

.confetti {
    position: absolute;
    width: 8px;
    height: 8px;
    top: -10px;
    animation: confettiFall 4s linear infinite;
}

.confetti:nth-child(1) { left: 15%; animation-delay: 0s; background: #58a6ff; }
.confetti:nth-child(2) { left: 35%; animation-delay: 0.8s; background: #7c3aed; }
.confetti:nth-child(3) { left: 55%; animation-delay: 1.6s; background: #3b82f6; }
.confetti:nth-child(4) { left: 75%; animation-delay: 2.4s; background: #a78bfa; }
.confetti:nth-child(5) { left: 90%; animation-delay: 3.2s; background: #6366f1; }

@keyframes confettiFall {
    0% {
        transform: translateY(0) rotateZ(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotateZ(360deg);
        opacity: 0;
    }
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
    .modal-welcome-content {
        width: 95%;
        padding: 16px;
        margin: 15px;
    }
    
    .welcome-title {
        font-size: 18px;
    }
    
    .welcome-subtitle {
        font-size: 13px;
    }
    
    .welcome-avatar {
        width: 70px;
        height: 70px;
    }
    
    .welcome-body {
        padding: 14px 16px;
    }
    
    .btn-glow {
        font-size: 14px;
        padding: 10px 16px;
    }
}

@media (max-width: 480px) {
    .welcome-title {
        font-size: 16px;
    }
    
    .welcome-avatar {
        width: 60px;
        height: 60px;
    }
    
    .welcome-intro {
        padding: 10px;
        font-size: 13px;
    }
    
    .welcome-intro strong {
        font-size: 15px;
    }
    
    .welcome-trait-tag {
        font-size: 11px;
        padding: 3px 8px;
    }
    
    .welcome-action-item {
        padding: 6px 10px;
    }
    
    .action-check {
        width: 18px;
        height: 18px;
        font-size: 11px;
    }
    
    .action-name {
        font-size: 13px;
    }
    
    .action-reward {
        font-size: 11px;
    }
}

/* ===================================================================
   🥚 CHOOPY WELCOME MODAL - VERSION ULTRA SIMPLE
   Copiez ce code à la fin de votre main.css
   =================================================================== */

/* ========================================
   WELCOME MODAL - FIRST VISIT (ULTRA SIMPLE)
   ======================================== */

.modal-small {
    max-width: 400px;
}

.welcome-intro {
    text-align: center;
    padding: 20px;
}

.welcome-avatar-wrapper {
    margin-bottom: 24px;
}

.welcome-avatar-wrapper canvas {
    image-rendering: pixelated;
    -ms-interpolation-mode: nearest-neighbor;
}

.welcome-title {
    font-family: 'Press Start 2P', monospace;
    font-size: 20px;
    color: #58a6ff;
    margin-bottom: 20px;
}

.welcome-message {
    font-size: 16px;
    line-height: 1.6;
    color: #c9d1d9;
    margin-bottom: 36px;
    padding: 0 10px;
}

.btn-glow {
    background: linear-gradient(135deg, #7c3aed, #a78bfa);
    color: white;
    border: 2px solid #7c3aed;
    font-weight: bold;
    font-size: 16px;
    margin-top: 20px;
}

.btn-glow:hover {
    background: linear-gradient(135deg, #a78bfa, #7c3aed);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.4);
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .welcome-title {
        font-size: 16px;
    }
    
    .welcome-message {
        font-size: 15px;
    }
    
    .btn-glow {
        font-size: 15px;
    }
}