/*
 * player-strip.css — Horizontal strip of up to 7 seat badges + open slot.
 *
 * The strip sits just above the betting/decision/result panels. It must not
 * overlap the chip rail (handled via grid placement in the overlay).
 *
 * Seats render as small circular avatars with bet + status text below.
 * The local player is gold-ringed and slightly larger. The active turn seat
 * gets a pulsing gold ring.
 */

#bj-player-strip {
    /* Mounted into #bj-slot-rail — flow as a normal flex child. */
    position: relative;
    width: 100%;
    pointer-events: none;
}

.bj-strip-rail {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr)) 32px;
    gap: 4px;
    align-items: end;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--hairline);
    border-radius: var(--r-lg);
    padding: 6px 6px 4px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.bj-seat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    min-width: 0;
    position: relative;
    padding-top: 6px; /* room for hand value pill */
}

/* Short viewports — the rail is the least information-dense row, so it gives
   up height first. Avatar shrinks, the value pill overlaps it instead of
   reserving a band above it. */
@media (max-height: 800px) {
    .bj-seat { padding-top: 5px; gap: 0; }
    .bj-seat__avatar { width: 26px; height: 26px; font-size: 11px; }
    .bj-seat__name   { font-size: 9px; }
    .bj-seat__bet    { font-size: 9px; }
    .bj-seat__status { font-size: 8px; }
    .bj-strip-rail   { padding: 4px 6px 3px; }
    .bj-seat-open__plus { width: 24px; height: 24px; }
}

.bj-seat__avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-ui);
    font-weight: 800;
    font-size: 12px;
    color: #fff;
    border: 2px solid transparent;
    transition: transform var(--t-fast) var(--ease-out-quint),
                border-color var(--t-fast),
                box-shadow var(--t-fast);
    flex-shrink: 0;
}

.bj-seat--self .bj-seat__avatar {
    border-color: var(--gold);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.6),
                0 0 10px var(--gold-soft);
}

.bj-seat--active .bj-seat__avatar {
    border-color: var(--gold);
    animation: bj-seat-pulse 1.4s ease-in-out infinite;
}

@keyframes bj-seat-pulse {
    0%, 100% { box-shadow: 0 0 0 0 var(--gold-soft); }
    50%      { box-shadow: 0 0 0 6px rgba(201, 165, 106, 0.04); }
}

.bj-seat--disconnected {
    opacity: 0.4;
}

.bj-seat__name {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
    padding: 0 2px;
    line-height: 1.2;
}

.bj-seat--self .bj-seat__name {
    color: var(--gold);
}

.bj-seat__bet {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-tertiary);
    line-height: 1.1;
    /* 7 columns in a narrow rail: clip rather than run into the neighbour. */
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bj-seat__status {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--text-tertiary);
    line-height: 1.1;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bj-seat__status--win,
.bj-seat__status--bj  { color: var(--win); }
.bj-seat__status--lose,
.bj-seat__status--bust { color: var(--lose); }
.bj-seat__status--push { color: var(--push); }
.bj-seat__status--play { color: var(--gold); }
.bj-seat__status--bet  { color: var(--text-secondary); }

/* Tiny pill on top of avatar showing current hand value (for revealed hands) */
.bj-seat__value {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 700;
    color: #0a0a0d;
    background: var(--gold-strong);
    padding: 1px 4px;
    border-radius: var(--r-pill);
    line-height: 1.1;
    min-width: 18px;
    text-align: center;
    pointer-events: none;
    z-index: 1;
}

/* Open seat slot — the trailing "+" column */
.bj-seat-open {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 100%;
    color: var(--text-tertiary);
    font-size: 18px;
}

.bj-seat-open__plus {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px dashed var(--hairline-strong);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.bj-seat-open__label {
    font-size: 8px;
    letter-spacing: 0.8px;
    color: var(--text-tertiary);
    text-transform: uppercase;
    font-weight: 600;
}

/* Avatar color rotation (deterministic by seatId) */
.bj-seat__avatar--c0 { background: linear-gradient(135deg, #6b46c1, #4c1d95); }
.bj-seat__avatar--c1 { background: linear-gradient(135deg, #db4cb3, #8b1f6b); }
.bj-seat__avatar--c2 { background: linear-gradient(135deg, #d4a23a, #8a6712); }
.bj-seat__avatar--c3 { background: linear-gradient(135deg, #e25555, #7c1f1f); }
.bj-seat__avatar--c4 { background: linear-gradient(135deg, #3fb371, #1a6b3d); }
.bj-seat__avatar--c5 { background: linear-gradient(135deg, #4a7cc4, #1f4b85); }
.bj-seat__avatar--c6 { background: linear-gradient(135deg, #c4a04a, #8a6712); }
