/* ── Bidding area ──────────────────────────────────── */
.bidding-area {
  display: none;
  flex-shrink: 0;
  padding: 8px;
  animation: fadeIn .3s ease;
}

.bidding-container {
  max-width: 500px;
  margin: 0 auto;
  padding: 4px 0 0;
}
/* When used outside modal (standalone) */
.bidding-area .bidding-container {
  background: rgba(0,0,0,.2);
  border: 1px solid rgba(255,215,0,.12);
  border-radius: 14px;
  padding: 14px 18px;
}
.bidding-title {
  font-size: .95rem;
  font-weight: 700;
  color: #ffd700;
  text-align: center;
  margin-bottom: 10px;
}

/* ── Declarer selection ────────────────────────────── */
.declarer-select {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.declarer-select label {
  font-size: .78rem;
  font-weight: 600;
  color: #aaa;
  margin-right: 4px;
}
.declarer-btn {
  padding: 4px 12px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 6px;
  background: rgba(255,255,255,.05);
  color: #ccc;
  font-size: .75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
  font-family: inherit;
}
.declarer-btn:hover { background: rgba(255,255,255,.12); color: #fff; }
.declarer-btn.selected {
  background: rgba(255,215,0,.15);
  border-color: rgba(255,215,0,.4);
  color: #ffd700;
}

/* ── Bidding table ─────────────────────────────────── */
.bidding-table {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 14px;
}
.bid-header-row, .bid-row {
  display: flex;
  justify-content: center;
  gap: 3px;
}
.bid-header {
  width: 56px;
  text-align: center;
  font-size: .72rem;
  font-weight: 700;
  padding: 3px 0;
  color: #aaa;
}
.bid-btn {
  width: 56px;
  padding: 5px 2px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 5px;
  background: rgba(255,255,255,.04);
  color: #ccc;
  font-size: .75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
  text-align: center;
  font-family: inherit;
}
.bid-btn:hover { background: rgba(255,255,255,.12); color: #fff; }
.bid-btn.selected {
  background: rgba(255,215,0,.2);
  border-color: rgba(255,215,0,.5);
  color: #ffd700;
  box-shadow: 0 0 8px rgba(255,215,0,.15);
}

/* Strain colours on bid buttons */
.bid-btn.strain-spades:hover, .bid-header.strain-spades { color: #ccc; }
.bid-btn.strain-hearts:hover, .bid-header.strain-hearts { color: #e74c5e; }
.bid-btn.strain-diamonds:hover, .bid-header.strain-diamonds { color: #e74c5e; }
.bid-btn.strain-clubs:hover, .bid-header.strain-clubs { color: #ccc; }
.bid-btn.strain-notrump:hover, .bid-header.strain-notrump { color: #eee; }

.bid-btn.selected.strain-spades   { color: #e0e0e0; }
.bid-btn.selected.strain-hearts   { color: #f06070; }
.bid-btn.selected.strain-diamonds { color: #f06070; }
.bid-btn.selected.strain-clubs    { color: #e0e0e0; }
.bid-btn.selected.strain-notrump  { color: #ffd700; }

/* ── Play button ───────────────────────────────────── */
.play-btn {
  display: block;
  margin: 0 auto;
  padding: 10px 44px;
  border: 2px solid rgba(46,204,113,.5);
  border-radius: 10px;
  background: rgba(46,204,113,.15);
  color: #6ff5a9;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s;
  font-family: inherit;
  letter-spacing: .06em;
}
.play-btn:hover {
  background: rgba(46,204,113,.25);
  border-color: rgba(46,204,113,.7);
  box-shadow: 0 0 20px rgba(46,204,113,.2);
  transform: scale(1.03);
}

/* ── Mobile bidding ────────────────────────────────── */
@media (max-width: 768px) {
  .bidding-container { padding: 2px 0 0; }
  .declarer-select { gap: 4px; margin-bottom: 8px; }
  .declarer-select label { font-size: .7rem; }
  .declarer-btn { padding: 4px 8px; font-size: .68rem; }

  .bidding-table { gap: 2px; margin-bottom: 10px; }
  .bid-header-row, .bid-row { gap: 2px; }
  .bid-header { width: 46px; font-size: .62rem; padding: 2px 0; }
  .bid-btn { width: 46px; padding: 4px 1px; font-size: .65rem; border-radius: 4px; }

  .play-btn { padding: 8px 32px; font-size: .88rem; }
}
