/* Base Styles */
body {
    margin: 0;
    padding: 0;
    background-color: #121212;
    font-family: 'Roboto', sans-serif;
    color: white;
    overflow: hidden;
    /* Full screen tv feel */
}

/* Poker Table */
.poker-table {
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle, #35654d 0%, #1e3c2e 70%, #0f1f18 100%);
}

.table-felt {
    width: 90%;
    height: 80%;
    border: 15px solid #2c1a12;
    border-radius: 100px;
    position: relative;
    box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
}

.logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 5rem;
    color: rgba(255, 255, 255, 0.05);
    /* Softer blend */
    font-weight: bold;
    pointer-events: none;
    user-select: none;
    z-index: 0;
    white-space: nowrap;
}

/* ... */

/* Hand Description */
.hand-desc {
    font-size: 0.9em;
    color: #ffd700;
    margin-top: 5px;
    font-style: italic;
    min-height: 1.2em;
}


/* Board Area */
.board-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
}

.board-label {
    margin-bottom: 10px;
    font-weight: bold;
    letter-spacing: 2px;
    color: #aaddcc;
}

.cards-container {
    display: flex;
    gap: 10px;
}

/* Player Interface */
.players-container {
    display: flex;
    justify-content: space-around;
    width: 100%;
    flex-wrap: wrap;
    z-index: 10;
}

.player-slot {
    background: rgba(0, 0, 0, 0.6);
    padding: 15px;
    border-radius: 10px;
    border: 2px solid #444;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    min-width: 180px;
    transition: all 0.3s;
}

.player-slot.winner {
    border-color: #ffd700;
    box-shadow: 0 0 15px #ffd700;
}

.player-info {
    width: 100%;
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.player-name {
    font-weight: bold;
}

.win-prob {
    font-weight: bold;
    color: #ffd700;
}

.player-cards {
    display: flex;
    gap: 5px;
    margin-bottom: 10px;
}

/* Card Visuals */
.card-slot {
    width: 60px;
    height: 84px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 1.5em;
    color: #333;
    position: relative;
    transition: transform 0.2s;
}

.card-slot:hover {
    transform: scale(1.05);
    background-color: rgba(255, 255, 255, 0.2);
}

.card-slot.filled {
    border: 2px solid #000;
    background-color: white;
}

.card-suit {
    font-size: 1.2em;
}

.red {
    color: #d00000;
}

.black {
    color: #000000;
}

/* Win Bar */
.win-bar-bg {
    width: 100%;
    height: 6px;
    background: #333;
    border-radius: 3px;
    overflow: hidden;
}

.win-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #ffd700, #ffaa00);
    transition: width 0.5s ease-out;
}

/* Controls */
.controls {
    position: absolute;
    bottom: 20px;
    display: flex;
    gap: 15px;
}

button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
}

.btn-primary {
    background: #007bff;
    color: white;
}

.btn-primary:hover {
    background: #0056b3;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #545b62;
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.remove-player-btn {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: #dc3545;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    font-size: 12px;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hidden {
    display: none;
}

.modal-content {
    background: #222;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #444;
    text-align: center;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.close-btn {
    background: none;
    font-size: 1.5em;
    color: #aaa;
}

.suits-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.suit-row {
    display: flex;
    gap: 5px;
}

.selector-card {
    width: 40px;
    height: 56px;
    background: white;
    border-radius: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: black;
    /* Default hook, overridden below */
    cursor: pointer;
    font-weight: bold;
}

.selector-card:hover {
    transform: scale(1.1);
}

.selector-card.selected-in-game {
    opacity: 0.3;
    cursor: not-allowed;
    background: #888;
}

.selector-card.red {
    color: #d00000;
}

.selector-card.black {
    color: #000000;
}