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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0a3a0a 0%, #1a1a2e 100%);
    color: #fff;
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    text-align: center;
    margin-bottom: 30px;
}

h1 {
    font-size: 3em;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    color: #ffd700;
}

.header-info {
    display: flex;
    justify-content: center;
    gap: 40px;
    font-size: 1.2em;
    padding: 10px;
}

.chip-stack, .pot {
    background: rgba(0,0,0,0.4);
    padding: 10px 20px;
    border-radius: 5px;
    border: 2px solid #ffd700;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Table */
.table {
    background: radial-gradient(ellipse at center, #0d5a0d 0%, #051a05 100%);
    border: 3px solid #8b7355;
    border-radius: 50%;
    padding: 40px;
    position: relative;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 30px rgba(0,0,0,0.7), 0 0 30px rgba(0,0,0,0.5);
}

/* Community Cards */
.community-cards {
    text-align: center;
    margin-bottom: 30px;
}

.cards-label {
    font-size: 1.1em;
    margin-bottom: 10px;
    color: #ffd700;
    font-weight: bold;
}

.cards-container {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Card Styling */
.card {
    width: 70px;
    height: 100px;
    background: white;
    border: 2px solid #000;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9em;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    text-align: center;
    padding: 5px;
    line-height: 1.2;
}

.card.empty {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
    color: transparent;
}

.card.bot-card {
    background: #1a5c1a;
    border-color: #ffd700;
    color: transparent;
}

.card.red {
    color: #e41e3f;
}

.card.black {
    color: #000;
}

/* Players Container */
.players-container {
    position: relative;
    width: 100%;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.player-seat {
    position: absolute;
    width: 140px;
    text-align: center;
    background: rgba(0,0,0,0.5);
    border: 2px solid #666;
    border-radius: 10px;
    padding: 15px;
    transition: all 0.3s;
}

.player-seat:hover {
    border-color: #ffd700;
    box-shadow: 0 0 10px rgba(255,215,0,0.3);
}

.player-seat.player-human {
    border-color: #00ff00;
    bottom: -50px;
}

#player1 {
    left: 20px;
    top: 50px;
}

#player2 {
    top: -80px;
    left: 50%;
    transform: translateX(-50%);
}

#player3 {
    right: 20px;
    top: 50px;
}

#player0 {
    bottom: -200px;
    left: 50%;
    transform: translateX(-50%);
}

.player-seat.active {
    border-color: #ffd700;
    box-shadow: 0 0 20px rgba(255,215,0,0.6);
}

.player-info {
    margin-bottom: 10px;
    font-size: 0.9em;
}

.player-name {
    font-weight: bold;
    margin-bottom: 5px;
}

.player-chips {
    color: #ffd700;
    font-size: 0.9em;
}

.player-cards {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 8px;
}

.player-cards .card {
    width: 50px;
    height: 75px;
    font-size: 0.8em;
}

.player-action {
    font-size: 0.85em;
    color: #ffd700;
    min-height: 20px;
}

.player-action.fold {
    color: #ff6b6b;
}

/* Dealer Button */
.dealer-button {
    position: absolute;
    width: 40px;
    height: 40px;
    background: #ffd700;
    border: 3px solid #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    top: 20px;
    right: 30px;
    box-shadow: 0 0 10px rgba(255,215,0,0.5);
}

.dealer-button::after {
    content: 'D';
    font-size: 1.5em;
    color: #000;
}

/* Game Status */
.game-status {
    background: rgba(0,0,0,0.6);
    border-left: 5px solid #ffd700;
    padding: 15px;
    border-radius: 5px;
    font-size: 1.1em;
    text-align: center;
}

/* Hand Display */
.hand-display {
    background: rgba(0,0,0,0.4);
    padding: 12px;
    border-radius: 5px;
    text-align: center;
    color: #ffd700;
    font-size: 0.95em;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    padding: 20px 0;
}

.btn {
    padding: 12px 24px;
    font-size: 1em;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #000;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255,215,0,0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: linear-gradient(135deg, #666 0%, #888 100%);
    color: #fff;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #777 0%, #999 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

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

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: #1a1a2e;
    border: 3px solid #ffd700;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 0 30px rgba(255,215,0,0.3);
}

.modal-content h3 {
    margin-bottom: 20px;
    color: #ffd700;
    font-size: 1.5em;
}

.modal-content input {
    width: 200px;
    padding: 10px;
    margin-bottom: 20px;
    border: 2px solid #ffd700;
    border-radius: 5px;
    background: #222;
    color: #fff;
    font-size: 1em;
}

.modal-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

/* Game History */
.game-history {
    background: rgba(0,0,0,0.6);
    border: 2px solid #666;
    border-radius: 5px;
    padding: 15px;
    max-height: 200px;
    overflow-y: auto;
}

.game-history h3 {
    color: #ffd700;
    margin-bottom: 10px;
}

.log-content {
    font-size: 0.9em;
    line-height: 1.5;
}

.log-entry {
    padding: 5px 0;
    border-bottom: 1px solid #444;
    color: #ccc;
}

.log-entry:last-child {
    border-bottom: none;
}

/* Footer */
footer {
    display: flex;
    gap: 10px;
    justify-content: center;
    padding: 20px 0;
    margin-top: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2em;
    }

    .table {
        padding: 20px;
        min-height: 400px;
    }

    .card {
        width: 60px;
        height: 90px;
    }

    .players-container {
        height: 300px;
    }

    .btn {
        padding: 10px 16px;
        font-size: 0.9em;
    }
}
