:root {
    --main-bg-color: #1a1a2e;
    --primary-color: #16213e;
    --secondary-color: #0f3460;
    --highlight-color: #e94560;
    --text-color: #f0f0f0;
    --neon-pink: #ff00ff;
    --neon-blue: #00ffff;
    --win-color: #00ff7f;
    --lose-color: #ff4d4d;
}

body {
    background-color: var(--main-bg-color);
    color: var(--text-color);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    text-align: center;
}

header {
    background-color: var(--primary-color);
    padding: 1rem;
    border-bottom: 3px solid var(--neon-blue);
    box-shadow: 0 0 15px var(--neon-blue);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 a {
    color: var(--text-color);
    text-decoration: none;
    text-shadow: 0 0 10px var(--neon-pink);
}

#wallet {
    font-size: 1.5em;
    background: var(--secondary-color);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--neon-pink);
}

button {
    background-color: var(--highlight-color);
    color: var(--text-color);
    border: none;
    padding: 15px 30px;
    font-size: 1.2em;
    cursor: pointer;
    border-radius: 5px;
    text-shadow: 0 0 5px #000;
    transition: all 0.3s ease;
    margin: 10px;
}

button:hover:not(:disabled) {
    box-shadow: 0 0 15px var(--highlight-color);
    transform: translateY(-3px);
}

button:disabled {
    background-color: #555;
    cursor: not-allowed;
    transform: none;
}

#game-board { margin-top: 2rem; padding: 1rem; }
.welcome-text { font-size: 1.5rem; opacity: 0.7; }

/* Styles pour les jeux */
.game-area { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.hand { display: flex; gap: 10px; min-height: 125px; }
.card {
    width: 80px; height: 120px;
    background: white; color: black; border-radius: 8px;
    display: flex; justify-content: center; align-items: center;
    font-size: 2rem; font-weight: bold;
    border: 2px solid black;
    transform-style: preserve-3d;
    transition: transform 0.6s;
}
.card.hidden { background-color: #990000; color: #990000; }
.card.red { color: red; }
.game-controls, .betting-controls { margin-top: 20px; }
#game-result { font-size: 1.5em; font-weight: bold; min-height: 30px; }
.win-text { color: var(--win-color); text-shadow: 0 0 10px var(--win-color); }
.lose-text { color: var(--lose-color); text-shadow: 0 0 10px var(--lose-color); }

/* Roulette Styles */
.roulette-wheel {
    width: 150px; height: 150px;
    border: 5px solid #ccc; border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    font-size: 3em; font-weight: bold; margin-bottom: 20px;
}
.betting-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.bet-option { padding: 20px; background-color: var(--secondary-color); cursor: pointer; }
.bet-option.red { background-color: #c00; }
.bet-option.black { background-color: #333; }
.bet-option.green { background-color: #090; }
.bet-option.selected { box-shadow: 0 0 15px var(--neon-blue); }

/* Modal Styles */
.modal-hidden { display: none; }
#daily-bonus-modal {
    position: fixed; top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex; justify-content: center; align-items: center;
    z-index: 1000;
}
#daily-bonus-modal.modal-hidden { display: none; }
.modal-content {
    background: var(--primary-color);
    padding: 40px; border-radius: 10px;
    border: 2px solid var(--neon-pink);
    box-shadow: 0 0 20px var(--neon-pink);
}
/* Amélioration des boutons */
button {
    font-weight: bold;
    text-transform: uppercase;
}

/* Styles pour les jetons de mise */
.betting-chips {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}
.chip {
    border: 3px solid #fff;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}
.chip:hover { transform: scale(1.1); }
.chip.c10 { background: #d32f2f; }
.chip.c50 { background: #1976d2; }
.chip.c100 { background: #388e3c; }
.chip.clear { background: #757575; font-size: 0.8em; }

#current-bet-display {
    font-size: 1.5em;
    margin-bottom: 15px;
}

/* Animation de distribution de carte */
@keyframes deal-in {
    from {
        opacity: 0;
        transform: translateY(-50px) rotateY(90deg);
    }
    to {
        opacity: 1;
        transform: translateY(0) rotateY(0);
    }
}
.card.dealt {
    animation: deal-in 0.5s ease-out forwards;
}

/* Styles pour le Modal large des stats */
.modal-content.large {
    width: 80%;
    max-width: 900px;
}
.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}