.poker-table {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 800px;
    height: 440px;
    padding: 20px;
    position: relative;
}

.cards-fan {
    display: flex;
    justify-content: center;
    height: 120px;
    width: 100%;
    position: relative;
}

.cards-fan .card {
    position: absolute;
    width: 80px;
    height: 120px;
    transition: transform 0.5s cubic-bezier(0.17, 0.67, 0.83, 0.67);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    background: #fff;
    border-radius: 8px;
    color: #000;
}

/* Fan positioning for 5 cards */
.cards-fan .card:nth-child(1) {
    transform: translateX(-100px) rotate(-15deg);
}

.cards-fan .card:nth-child(2) {
    transform: translateX(-50px) rotate(-7deg);
}

.cards-fan .card:nth-child(3) {
    transform: translateX(0) rotate(0);
}

.cards-fan .card:nth-child(4) {
    transform: translateX(50px) rotate(7deg);
}

.cards-fan .card:nth-child(5) {
    transform: translateX(100px) rotate(15deg);
}

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

.bet-area {
    display: flex;
    gap: 40px;
}

.chip-slot {
    width: 70px;
    height: 70px;
    border: 2px dashed rgba(255, 215, 0, 0.3);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
}

.slot-label {
    font-size: 0.6rem;
    color: var(--gold);
    font-weight: 800;
}

.slot-value {
    font-size: 0.8rem;
    font-weight: 700;
}

.rank-badge {
    background: var(--gold);
    color: #000;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
    margin-left: 10px;
    font-weight: 800;
}

.action-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    backdrop-filter: blur(5px);
    border-radius: 20px;
    animation: fadeIn 0.3s ease;
}

.action-overlay.hidden {
    display: none;
}

.action-content {
    background: #111;
    padding: 30px;
    border-radius: 20px;
    border: 2px solid var(--gold);
    text-align: center;
    max-width: 300px;
}

.action-content h3 {
    color: var(--gold);
    margin-bottom: 10px;
}

.action-content p {
    font-size: 0.85rem;
    color: #aaa;
    margin-bottom: 25px;
}

.action-btns {
    display: flex;
    gap: 15px;
}

.fold-btn {
    flex: 1;
    padding: 12px;
    background: var(--neon-red);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 800;
    cursor: pointer;
}

.call-btn {
    flex: 1;
    padding: 12px;
    background: #2196f3;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 800;
    cursor: pointer;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@media (max-width: 600px) {
    .cards-fan .card {
        width: 60px;
        height: 90px;
    }

    .cards-fan .card:nth-child(1) {
        transform: translateX(-60px) rotate(-15deg);
    }

    .cards-fan .card:nth-child(2) {
        transform: translateX(-30px) rotate(-7deg);
    }

    .cards-fan .card:nth-child(3) {
        transform: translateX(0) rotate(0);
    }

    .cards-fan .card:nth-child(4) {
        transform: translateX(30px) rotate(7deg);
    }

    .cards-fan .card:nth-child(5) {
        transform: translateX(60px) rotate(15deg);
    }

    .action-btns {
        flex-direction: column;
    }
}