.spades-table {
    position: relative;
    width: 100%;
    max-width: 1000px;
    height: 600px;
    margin: 0 auto;
    background: radial-gradient(circle at center, #064e3b, #022c22);
    border: 3px solid #10b981;
    border-radius: 200px;
    box-shadow: inset 0 0 50px rgba(0,0,0,0.8), 0 0 20px rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

@media (max-width: 800px) {
    .spades-table {
        border-radius: 40px;
        height: 700px;
    }
}

.player-station {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.top-station { top: 20px; }
.bottom-station { bottom: 20px; width: 100%; }
.left-station { left: 20px; top: 50%; transform: translateY(-50%); }
.right-station { right: 20px; top: 50%; transform: translateY(-50%); }

.info-badge {
    background: rgba(0, 0, 0, 0.6);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    min-width: 120px;
}
.info-badge span { color: #fff; font-weight: bold; }
.info-badge .bids { color: #94a3b8; font-size: 0.9rem; margin-top: 0.2rem; }

/* Hand UI */
.hand-container {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    height: 120px;
    position: relative;
}

/* Card Visuals */
.playing-card {
    width: 80px;
    height: 115px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    border: 1px solid #ccc;
    position: relative;
    cursor: pointer;
    transition: transform 0.2s, top 0.2s;
    user-select: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 5px;
    /* Fanning */
    margin-left: -40px; 
}
@media (max-width: 700px) {
    .playing-card { width: 60px; height: 90px; margin-left: -35px; }
}

.playing-card:first-child { margin-left: 0; }
.playing-card:hover { transform: translateY(-15px); z-index: 50 !important; }
.playing-card.disabled { filter: brightness(0.6); pointer-events: none; }

.card-top { font-size: 1.2rem; font-weight: bold; line-height: 1; text-align: left; }
.card-center { font-size: 2.5rem; text-align: center; flex-grow: 1; display: flex; align-items: center; justify-content: center; }
.card-bottom { font-size: 1.2rem; font-weight: bold; line-height: 1; text-align: right; transform: rotate(180deg); }

.suit-hearts, .suit-diamonds { color: #ef4444; }
.suit-spades, .suit-clubs { color: #111827; }

/* Trick Area Center */
.trick-area {
    position: relative;
    width: 200px;
    height: 200px;
}

.card-slot {
    position: absolute;
    width: 80px;
    height: 115px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.top-slot { top: 0; left: 50%; transform: translateX(-50%); z-index: 1; }
.bottom-slot { bottom: 0; left: 50%; transform: translateX(-50%); z-index: 4; }
.left-slot { left: 0; top: 50%; transform: translateY(-50%); z-index: 2; }
.right-slot { right: 0; top: 50%; transform: translateY(-50%); z-index: 3; }

/* Injected trick cards use absolute center overrides */
.trick-card {
    position: absolute;
    top: 0; left: 0;
    margin: 0;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    pointer-events: none;
}

.trick-banner {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(16, 185, 129, 0.9);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: bold;
    z-index: 10;
    animation: popIn 0.3s;
    white-space: nowrap;
}

@keyframes popIn {
    0% { transform: translate(-50%, -50%) scale(0); }
    100% { transform: translate(-50%, -50%) scale(1); }
}

.score-line {
    font-size: 1.2rem;
    padding: 0.5rem 0;
    color: #fff;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
