/* ═══ Shelem (شلم) — the Hokm table plus bidding, widow and result ═══════════════════════════════════════════ */

.sh-wrap { position: relative; }
.sh-prompt { display: flex; flex-direction: column; align-items: center; gap: 6px; min-height: 0; }
.sh-bidrow { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.sh-bidrow .btn { min-height: 42px; display: inline-flex; align-items: center; gap: 6px; }
.sh-stepper { display: inline-flex; align-items: center; gap: 4px; padding: 3px; border-radius: 14px; background: var(--nx-surface-2, rgba(255, 255, 255, 0.06)); border: 1px solid var(--nx-border, rgba(255, 255, 255, 0.12)); }
.sh-stepper .btn { min-width: 46px; padding: 0 8px; font-weight: 800; justify-content: center; }
.sh-amount { min-width: 58px; text-align: center; font-weight: 900; font-size: 22px; font-variant-numeric: tabular-nums; }
.sh-hint { margin: 0; font-size: 12px; color: var(--text-muted, #8d98b8); text-align: center; max-width: 480px; direction: auto; }

/* what each seat bid, and the contract in the middle */
.sh-bidchip { position: absolute; z-index: 4; top: -8px; inset-inline-end: -12px; min-width: 34px; padding: 2px 8px; border-radius: 999px; background: #ffd54f; color: #1a1a1a; font-weight: 900; font-size: 12px; text-align: center; box-shadow: 0 3px 8px rgba(0, 0, 0, 0.45); animation: sh-pop 220ms cubic-bezier(0.23, 1, 0.32, 1); }
.sh-pass { background: #39445f; color: #cfd6e8; font-weight: 700; }
.sh-thinking { background: #fff; animation: sh-blink 1s ease-in-out infinite; }
.hk-seat-bottom .sh-bidchip, .hk-seat-top .sh-bidchip { inset-inline-end: -18px; }
.sh-contract { position: absolute; z-index: 2; top: 15%; inset-inline-end: 13%; padding: 6px 12px; border-radius: 12px; background: rgba(10, 14, 22, 0.78); border: 1px solid rgba(255, 255, 255, 0.18); color: #ffd54f; font-weight: 900; font-size: 13px; white-space: nowrap; }
.sh-taken { margin-inline-start: 8px; color: var(--text-muted, #8d98b8); font-size: 11.5px; }
@keyframes sh-pop { from { transform: scale(0.5); opacity: 0; } }
@keyframes sh-blink { 50% { opacity: 0.45; } }

/* the declarer picks four discards */
.hk-hand .pcard.sh-picked { transform: translateY(-16px); box-shadow: 0 0 0 3px #ff7043, 0 8px 14px rgba(0, 0, 0, 0.5); } /* lifted, not raised: a raised card would cover the edge of the next one you tap */

/* result of a hand */
.sh-over { position: absolute; left: 50%; top: 96px; transform: translateX(-50%); z-index: 8; width: min(94%, 460px); padding: 14px 16px; border-radius: 18px; background: rgba(10, 14, 22, 0.97); border: 1px solid rgba(255, 255, 255, 0.18); box-shadow: 0 18px 50px rgba(0, 0, 0, 0.6); color: #fff; animation: sh-in 260ms cubic-bezier(0.23, 1, 0.32, 1); }
.sh-over[hidden] { display: none; }
.sh-over h4 { margin: 0 0 8px; font-size: 17px; text-align: center; direction: auto; }
.sh-tbl { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 13px; }
.sh-tbl th, .sh-tbl td { padding: 6px 8px; text-align: center; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.sh-tbl td:first-child { text-align: start; font-weight: 700; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sh-mine td:first-child { color: #ffd54f; }
.sh-pos { color: #81c784; font-weight: 800; }
.sh-neg { color: #ef9a9a; font-weight: 800; }
@keyframes sh-in { from { opacity: 0; transform: translate(-50%, -8px); } }
@media (max-width: 560px) {
  .sh-over { top: 70px; padding: 10px 12px; }
  .sh-amount { font-size: 19px; min-width: 48px; }
  .sh-contract { font-size: 11.5px; padding: 4px 8px; top: 13%; inset-inline-end: 8%; }
}
@media (prefers-reduced-motion: reduce) { .sh-over, .sh-bidchip, .sh-thinking { animation: none; } }
