/* Teen Patti */
.pot-bar {
  font-size: 22px; font-weight: 900; color: var(--gold-deep);
  background: var(--card-bg); border: 2px solid var(--gold);
  border-radius: 999px; padding: 8px 24px; margin: 12px;
  box-shadow: 0 0 16px rgba(255,176,32,.3);
}
#table { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; padding: 10px; max-width: 600px; }
.player-seat {
  background: var(--card-bg); border: 2px solid var(--line);
  border-radius: 14px; padding: 10px 14px; min-width: 130px; text-align: center;
  position: relative;
}
.player-seat.active { border-color: var(--gold); box-shadow: 0 0 12px rgba(255,176,32,.4); animation: urgentPulse .8s ease-in-out infinite; }
.player-seat.folded { opacity: .45; }
.player-seat .nm { font-weight: 800; }
.player-seat .bet { color: var(--gold-deep); font-size: 13px; font-weight: 800; }
.player-seat .status { font-size: 12px; color: var(--text-dim); }
@keyframes urgentPulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.04); } }

#my-area { margin: 12px; max-width: 520px; }
.cards { display: flex; gap: 10px; justify-content: center; margin: 12px 0; }
.pcard {
  width: 64px; height: 90px; border-radius: 10px;
  background: linear-gradient(145deg, #fffefb, #f3eee1);
  color: #1a1a1a; font-weight: 900; font-size: 20px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(120,80,20,.18);
  animation: cardIn .4s cubic-bezier(.34,1.56,.64,1);
}
.pcard.red { color: #d1342c; }
.pcard.back { background: linear-gradient(145deg, #2b1a5f, #12103a); border: 2px solid var(--gold); color: var(--gold); font-size: 28px; }
@keyframes cardIn { from { transform: translateY(-20px) rotate(-6deg); opacity: 0; } to { transform: none; opacity: 1; } }
.rank-label { text-align: center; color: var(--gold-deep); font-weight: 800; margin-bottom: 8px; }

#over-hands { display: flex; flex-direction: column; gap: 8px; margin: 16px 0; }
.hand-row { display: flex; align-items: center; gap: 10px; justify-content: space-between; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; }
.hand-row .hcards { font-weight: 800; }

/* === Teen Patti signature theme: casino green + gold, chip stacks === */
body[data-bgfx="teenpatti"] {
  --felt-green: #0b6e4f;
  --felt-deep: #0a4f36;
}
body[data-bgfx="teenpatti"] #screen-lobby .lobby-card {
  background:
    radial-gradient(26px 26px at 90% 12%, #e6352b 0 10px, rgba(0,0,0,.4) 11px, transparent 13px),
    radial-gradient(26px 26px at 82% 9%, #2d6cdf 0 10px, rgba(0,0,0,.4) 11px, transparent 13px),
    radial-gradient(26px 26px at 74% 12%, #1f9d55 0 10px, rgba(0,0,0,.4) 11px, transparent 13px),
    radial-gradient(26px 26px at 66% 9%, #f2b705 0 10px, rgba(0,0,0,.4) 11px, transparent 13px),
    radial-gradient(700px 240px at 50% 120%, rgba(11,110,79,.35) 0%, transparent 60%),
    var(--card-bg);
  border-color: rgba(255,176,32,.55);
}
body[data-bgfx="teenpatti"] .pot-bar {
  background: radial-gradient(circle at 50% 30%, #147a56, var(--felt-deep));
  border-color: var(--gold);
  box-shadow: 0 0 22px rgba(255,176,32,.45), inset 0 0 18px rgba(0,0,0,.35);
  color: #ffe9b8;
}
body[data-bgfx="teenpatti"] #my-area {
  border-color: rgba(11,110,79,.85);
  box-shadow: 0 8px 32px rgba(120,80,20,.18), inset 0 0 40px rgba(11,110,79,.25);
}
body[data-bgfx="teenpatti"] .pcard.back {
  background: linear-gradient(145deg, #0f7a55, var(--felt-deep));
  border: 2px dashed var(--gold);
}
body[data-bgfx="teenpatti"] .player-seat.active {
  border-color: var(--gold);
  box-shadow: 0 0 14px rgba(255,176,32,.55);
}
body[data-bgfx="teenpatti"] .player-seat .bet { color: var(--gold-deep); font-weight: 900; }
