.blackjack-game {
    max-width: 900px;
    margin: 0 auto;
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.dealer-section, .player-section {
    margin-bottom: 3rem;
}

.dealer-section h3, .player-section h3 {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.score {
    color: var(--primary-color);
    font-weight: 700;
}

.card-container {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    min-height: 140px;
    padding: 1.5rem;
    background: var(--bg-dark);
    border-radius: 15px;
}

.card {
    width: 80px;
    height: 120px;
    background: white;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    animation: cardDeal 0.3s ease;
    position: relative;
}

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

.card.red {
    color: #C1121F;
}

.card.black {
    color: #1A1A2E;
}

.card.back {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.card-rank {
    font-size: 2rem;
}

.card-suit {
    font-size: 1.8rem;
}

.result-message {
    text-align: center;
    min-height: 50px;
    margin: 2rem 0;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.result-message.win {
    color: var(--success-color);
    animation: winPulse 0.5s ease-in-out;
}

.result-message.lose {
    color: var(--accent-color);
}

.result-message.push {
    color: var(--text-gray);
}

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

.betting-section {
    text-align: center;
}

.betting-section h3 {
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.chip-selector {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.chip-btn {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 4px solid var(--secondary-color);
    background: var(--bg-dark);
    color: var(--text-light);
    font-weight: 700;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.chip-btn:hover {
    transform: scale(1.1);
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.chip-btn.selected {
    background: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 0 25px rgba(255, 107, 53, 0.6);
    transform: scale(1.1);
}

.betting-section .btn {
    padding: 1.5rem 4rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.game-controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.game-controls .btn {
    flex: 1;
    max-width: 200px;
    padding: 1.2rem;
    font-size: 1.2rem;
    font-weight: 700;
}

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

.hidden {
    display: none;
}

#newGameBtn {
    width: 100%;
    padding: 1.5rem;
    margin-top: 2rem;
    font-size: 1.3rem;
    font-weight: 700;
}

.game-info {
    margin-top: 3rem;
    padding: 2rem;
    background: var(--bg-light);
    border-radius: 15px;
    border-left: 4px solid var(--accent-color);
}

.game-info h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.game-info ul {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    margin-left: 1.5rem;
    line-height: 1.8;
}

.game-info li {
    margin-bottom: 0.5rem;
}

.game-info p {
    color: var(--text-gray);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .blackjack-game {
        padding: 1.5rem;
    }

    .card-container {
        padding: 1rem;
        gap: 0.5rem;
    }

    .card {
        width: 60px;
        height: 90px;
        font-size: 1rem;
    }

    .card-rank {
        font-size: 1.5rem;
    }

    .card-suit {
        font-size: 1.3rem;
    }

    .chip-selector {
        gap: 0.5rem;
    }

    .chip-btn {
        width: 60px;
        height: 60px;
        font-size: 1rem;
    }

    .game-controls {
        flex-direction: column;
    }

    .game-controls .btn {
        max-width: 100%;
    }
}
