/* Hokm (حکم) Table Styles */
.hokm-table {
    background: radial-gradient(circle, #0e5c2f 0%, #06381a 100%);
    border: 8px solid #3d2314;
    border-radius: 24px;
    height: 480px;
    position: relative;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.6);
    overflow: hidden;
}

.table-center-info {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    pointer-events: none;
}

.trump-display {
    background: rgba(0,0,0,0.4);
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 13px;
    color: #ffc107;
}

/* Seats around table */
.seat {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 11px;
}

.seat.active-turn .seat-player {
    border: 2px solid #ffc107;
    box-shadow: 0 0 10px #ffc107;
}

.seat-player {
    background: rgba(0,0,0,0.6);
    padding: 4px 8px;
    border-radius: 8px;
    margin-bottom: 4px;
}

.seat-top { top: 10px; left: 50%; transform: translateX(-50%); }
.seat-bottom { bottom: 10px; left: 50%; transform: translateX(-50%); }
.seat-left { left: 10px; top: 40%; transform: translateY(-50%); }
.seat-right { right: 10px; top: 40%; transform: translateY(-50%); }

/* Playing Cards */
.card {
    width: 48px;
    height: 70px;
    background: #ffffff;
    color: #000000;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.4);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.15s ease;
}

.card.red {
    color: #d32f2f;
}

.card:hover, .card:active {
    transform: translateY(-8px);
}

.card-back {
    background: repeating-linear-gradient(45deg, #1976d2, #1976d2 5px, #0d47a1 5px, #0d47a1 10px);
    border: 2px solid #ffffff;
}

/* Player Hand (Bottom) */
.player-hand {
    display: flex;
    justify-content: center;
    gap: -14px;
    margin-top: 6px;
    overflow-x: auto;
    padding: 6px;
}

.player-hand .card {
    margin: 0 -8px;
}

/* Center Trick */
.center-trick {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.trick-card {
    position: absolute;
}

.trick-top { top: 0; }
.trick-bottom { bottom: 0; }
.trick-left { left: 0; }
.trick-right { right: 0; }

/* Trump Selection Dialog */
.trump-selector {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.85);
    padding: 16px;
    border-radius: 16px;
    text-align: center;
    z-index: 10;
}

.trump-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.btn-trump {
    font-size: 24px;
    padding: 8px 14px;
    background: #ffffff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}
