/* ========================================
   CASINO BLACKJACK STYLES
   ======================================== */
.game-section {
    padding: 40px 20px;
    display: flex;
    justify-content: center;
    min-height: 600px;
}

/* Start Screen styles moved to games.css */

.game-area {
    width: 100%;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.game-area.hidden,
.start-screen.hidden,
.controls-area.hidden,
.play-again-area.hidden {
    display: none;
}

.hands-container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.dealer-hand,
.player-hand {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 15px;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.dealer-hand h3,
.player-hand h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.score {
    background: var(--main-color);
    color: #000;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: bold;
}

.cards-area {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

/* Card Styling */
.game-area .card {
    width: 100px;
    height: 140px;
    background: white;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: dealCard 0.5s ease-out;
}

@keyframes dealCard {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.8);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.game-area .card.red {
    color: #ff4d4f;
}

.game-area .card.black {
    color: #333;
}

/* Specific fix to override the generic .card styles from earlier in CSS if needed, 
   but we used .game-area .card to be specific */
.game-area .card::before,
.game-area .card::after {
    display: none;
}

.game-area .card h2,
.game-area .card h3 {
    display: none;
    /* Hide conflicting headers from generic card style if any */
}

.game-area .card-hidden {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border: 2px solid #fff;
    color: transparent;
}

.game-area .card-hidden::before {
    content: '?';
    display: block !important;
    /* Force show ? for hidden card */
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.2);
    width: auto;
    height: auto;
    background: none;
    animation: none;
    position: static;
}

.message-area {
    text-align: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent-color);
    min-height: 40px;
    text-shadow: 0 0 10px rgba(0, 255, 157, 0.5);
}

.controls-area,
.play-again-area {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.action-btn {
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: bold;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: transform 0.2s, filter 0.2s;
    text-transform: uppercase;
    letter-spacing: 1px;
    min-width: 150px;
}

.action-btn:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

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

.action-btn.hit {
    background: #00ff9d;
    color: #050510;
    box-shadow: 0 0 15px rgba(0, 255, 157, 0.4);
}

.action-btn.stand {
    background: #ff4d4f;
    color: white;
    box-shadow: 0 0 15px rgba(255, 77, 79, 0.4);
}

/* Play Button Styles */
/* Play Button Styles moved to games.css */

@media (max-width: 600px) {
    .hands-container {
        flex-direction: column;
    }

    .game-area .card {
        width: 70px;
        height: 100px;
        font-size: 1.2rem;
    }
}