.poker-table {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 30px;
}

.dealer-section,
.player-section,
.community-cards {
    text-align: center;
}

.dealer-section h3,
.player-section h3,
.community-cards h3 {
    margin-bottom: 15px;
    color: var(--primary-light);
}

.card-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    min-height: 120px;
    align-items: center;
}

.card {
    width: 70px;
    height: 100px;
    background: white;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: cardDeal 0.3s ease;
}

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

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

.card.back::before {
    content: '🂠';
    font-size: 40px;
}

.card .rank {
    font-size: 28px;
}

.card .suit {
    font-size: 32px;
    margin-top: -5px;
}

.card.red {
    color: #dc2626;
}

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

.hand-result {
    margin-top: 15px;
    font-size: 16px;
    font-weight: 600;
    color: var(--gold);
    min-height: 24px;
}

.bet-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.bet-controls label {
    font-weight: 600;
}

#bet-amount {
    width: 200px;
    height: 8px;
    background: var(--border-color);
    border-radius: 5px;
    outline: none;
    cursor: pointer;
}

#bet-amount::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
}

#bet-amount::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

#bet-display {
    font-size: 20px;
    font-weight: 700;
    color: var(--gold);
}

.game-message {
    margin-top: 30px;
    padding: 20px;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 10px;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-message.win {
    background: rgba(34, 197, 94, 0.1);
    color: var(--success);
}

.game-message.lose {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
}

.game-rules {
    background: var(--dark-card);
    border-radius: 15px;
    padding: 30px;
    margin-top: 30px;
    border: 1px solid var(--border-color);
}

.game-rules h2 {
    margin-bottom: 20px;
    color: var(--primary-light);
}

.game-rules ol {
    margin: 20px 0;
    padding-left: 30px;
    color: var(--text-secondary);
}

.game-rules li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.game-rules .disclaimer {
    margin-top: 20px;
    padding: 15px;
    background: rgba(245, 158, 11, 0.1);
    border-left: 4px solid var(--secondary-color);
    border-radius: 5px;
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .card {
        width: 60px;
        height: 85px;
        font-size: 20px;
    }

    .card .rank {
        font-size: 24px;
    }

    .card .suit {
        font-size: 28px;
    }

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

    #bet-amount {
        width: 100%;
        max-width: 300px;
    }
}
