.GameBoard {
    height: 100vh; 
    width: 100%;
    display: flex;
    flex-direction: column; 
    padding: 20px;
    box-sizing: border-box;
    overflow: hidden; 
}

.OtherPlayer {
    display: flex;
    flex-direction: row;
    justify-content: space-around; 
    align-items: flex-start;
    width: 100%;
    padding: 10px;
}

.Game {
    height: 100vh; 
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.OtherPlayerCards {
    display: flex;
    flex-direction: row;
    gap: 5px;
    transform: scale(0.8); 
    transform-origin: top center;
}

.PlayerHand {
    display: flex;
    flex-direction: row;
    justify-content: center; 
    align-items: flex-end; 
    flex-wrap: wrap;
    gap: 10px; 
    padding-bottom: 20px;
    position: relative;
}

.card-bg {
    background-image: var(--bg-url);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    
    height: 14em; 
    aspect-ratio: 319/622; 
    width: auto; 
    
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3); 
    
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), 
                border 0.2s ease;
    cursor: pointer;
    user-select: none;
}

.card-bg.disabled {
    opacity: 0.5;
    filter: grayscale(100%) brightness(0.8);
    cursor: not-allowed;
    transform: scale(0.95); 
    cursor: not-allowed; 
    pointer-events: none;
}

.card-bg.selected {
    border: 3px solid #ffd700;
    transform: translateY(-20px) scale(1.05); 
    box-shadow: 0 10px 20px rgba(0,0,0,0.5); 
    z-index: 10;
}

.PlayerHand button {
    margin-bottom: 20px; 
    padding: 8px 16px;
    border-radius: 5px;
    border: none;
    background-color: #333;
    color: white;
    cursor: pointer;
}

.OtherPlayerCards {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    height: 120px; 
    padding: 0 40px;
    transform: scale(0.8); 
}

.OtherPlayerCards .card-bg {
    width: 6em; 
    height: 9em; 
    transform-origin: top center;
    box-shadow: -2px 2px 5px rgba(0,0,0,0.3);
    transition: transform 0.4s ease-out;
}

.OtherPlayerCards .card-bg:first-child {
    margin-left: 0;
}