:root {
    --primary-color: #1a472a;
    --secondary-color: #2d5a3f;
    --text-color: #ffffff;
    --card-color: #ffffff;
    --button-color: #4a90e2;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: var(--primary-color);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.game-container {
    width: 100%;
    max-width: 1200px;
    padding: 20px;
}

.score-board {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.game-table {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    background-color: var(--secondary-color);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.side {
    flex: 1;
    text-align: center;
}

.center-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.cards-area {
    min-height: 200px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.card {
    width: 70px;
    height: 100px;
    background: var(--card-color);
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.card.dealt {
    animation: dealCard 0.5s ease-out;
}

.joker-card {
    width: 100px;
    height: 140px;
    background: var(--card-color);
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.controls {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.bet-btn, .new-game-btn {
    padding: 10px 20px;
    font-size: 1rem;
    border: none;
    border-radius: 5px;
    background-color: var(--button-color);
    color: white;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.bet-btn:hover, .new-game-btn:hover {
    transform: scale(1.05);
}

.bet-btn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

.game-status {
    font-size: 1.5rem;
    text-align: center;
    min-height: 2rem;
}

@keyframes dealCard {
    from {
        transform: translateY(-100px) rotate(-10deg);
        opacity: 0;
    }
    to {
        transform: translateY(0) rotate(0);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .game-table {
        flex-direction: column;
    }

    .side {
        order: 2;
    }

    .center-area {
        order: 1;
    }

    .card {
        width: 50px;
        height: 70px;
        font-size: 1rem;
    }

    .joker-card {
        width: 80px;
        height: 112px;
    }

    .controls {
        width: 100%;
    }

    .bet-btn, .new-game-btn {
        flex: 1;
        min-width: 120px;
    }
}