/* Spades table (ui/spades.js). Builds on styles.css; every class here starts with sp-. */
.sp-teams { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-bottom: .75rem; }
.sp-team { margin: 0; padding: .6rem .7rem; border-left-width: 5px; }
.sp-team1 { border-left-color: #7fb7ff; }
.sp-team2 { border-left-color: #ff9f7f; }
.sp-team.sp-mine { background: rgba(227, 179, 65, .14); }
.sp-team-who { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-score { font-size: 1.6rem; font-weight: 800; line-height: 1.15; }
.sp-seats .seat { border-left-width: 5px; }
.sp-seats .seat.sp-team1:not(.turn) { border-left-color: #7fb7ff; }
.sp-seats .seat.sp-team2:not(.turn) { border-left-color: #ff9f7f; }
.sp-seats .sp-line { display: block; line-height: 1.35; }
.sp-status { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .6rem; margin: 0 0 .6rem; color: var(--muted); }
.sp-badge { display: inline-block; padding: .1rem .55rem; border-radius: 999px; background: rgba(255, 255, 255, .12); color: #fff; font-weight: 600; }
.sp-badge.on { background: #111; }
.sp-empty { margin: .5rem 0; min-height: 2rem; }
.sp-trick { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin: .25rem 0 .5rem; min-height: 6.4rem; }
.sp-play { margin: 0; display: flex; flex-direction: column; align-items: center; gap: .25rem; max-width: 4.6rem; }
.sp-play figcaption { max-width: 4.6rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: center; color: var(--muted); }
.sp-winning .card { outline: 3px solid var(--gold); outline-offset: 1px; }
.sp-winning figcaption { color: #fff; font-weight: 700; }
.sp-high { display: block; font-size: .75rem; color: var(--gold); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.sp-last { border-top: 1px solid var(--line); margin-top: .5rem; padding-top: .5rem; }
.sp-small { gap: .4rem; margin: .35rem 0 0; }
.sp-small .sp-play { max-width: 3.4rem; }
.sp-small figcaption { font-size: .75rem; max-width: 3.4rem; }
.sp-bids { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .35rem; }
.sp-bids .btn { min-width: 0; min-height: 44px; padding: .4rem 0; }
.sp-bids .btn.sp-picked { background: var(--gold); color: #1b1b1b; border-color: var(--gold); }
.sp-mine { margin-bottom: 1rem; }
.sp-mine h3 { margin-top: .25rem; }
.sp-hand { gap: .3rem; }
.sp-results { margin: 0 0 .6rem; padding-left: 1.1rem; display: grid; gap: .25rem; }
@media (max-width: 380px) {
  .sp-hand .card { width: 3.1rem; height: 4.4rem; }
  .sp-score { font-size: 1.35rem; }
}
