/* Opponents Area */
.opponents-area {
    display: flex;
    justify-content: center;
    gap: clamp(0.8rem, 2vw, 2rem);
    padding: var(--spacing-sm, 1rem);
    min-height: clamp(100px, 18vh, 140px);
    flex-wrap: wrap;
    /* Can shrink when space is limited */
    flex-shrink: 1;
}

.opponent {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: clamp(0.5rem, 1vw, 0.8rem);
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    min-width: clamp(80px, 12vw, 120px);
    transition: var(--transition-medium);
}

.opponent.active-attacker {
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
    border: 1px solid var(--gold);
}

.opponent.active-defender {
    box-shadow: 0 0 15px rgba(139, 0, 0, 0.5);
    border: 1px solid var(--crimson);
}

.opponent.disconnected {
    opacity: 0.5;
}

.opponent-name {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: var(--ivory);
}

.opponent-cards {
    display: flex;
    justify-content: center;
}

.card-back {
    width: clamp(20px, 3.5vw, 30px);
    height: clamp(28px, 5vw, 42px);
    background: linear-gradient(145deg, #2c3e50 0%, #1a252f 100%);
    border: 1px solid var(--gold-dark);
    border-radius: 4px;
    margin: 0 clamp(-6px, -1vw, -8px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.card-back::after {
    content: '✦';
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--gold);
    font-size: 0.8rem;
}

.opponent-card-count {
    font-size: 0.8rem;
    color: var(--gold);
    margin-top: 0.3rem;
}

/* Shown Trump Display */
.shown-trump-display {
    position: fixed;
    bottom: clamp(3px, 0.5vh + 3px, 15px);
    right: clamp(3px, 0.5vw + 3px, 15px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(0.2rem, 0.3vw + 0.1rem, 0.5rem);
    padding: clamp(0.4rem, 0.5vw + 0.2rem, 1rem);
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid var(--gold);
    border-radius: 10px;
    animation: pulse-gold 1.5s infinite;
    z-index: 100;
}

.shown-trump-display.hidden {
    display: none;
}

.shown-trump-label {
    font-size: clamp(0.55rem, 0.3vw + 0.4rem, 0.85rem);
    color: var(--gold);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Player Info */
.player-info {
    position: fixed;
    bottom: clamp(100px, 18vh, 140px);
    left: var(--spacing-sm, 1rem);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(10, 15, 26, 0.9);
    padding: clamp(0.3rem, 1vw, 0.5rem) clamp(0.6rem, 1.5vw, 1rem);
    border-radius: 8px;
    border: 1px solid var(--gold);
    font-size: clamp(0.75rem, 2vw, 1rem);
    z-index: 100;
}

#player-name-display {
    font-weight: 600;
    color: var(--gold);
}

.role-badge {
    font-size: 0.8rem;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    background: var(--crimson);
    color: white;
}

.role-badge.attacker {
    background: var(--gold-dark);
    color: var(--bg-dark);
}

.role-badge.defender {
    background: var(--crimson);
}

.role-badge.neighbor {
    background: #2980b9;
}

.role-badge.spectator {
    background: #7f8c8d;
}
