/* Poker Arena Styling - Apple Craftsmanship */

.poker-stage {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: radial-gradient(circle at 50% 50%, #0d131f 0%, #06090e 100%);
  overflow: hidden;
}

/* Luxury Poker Table */
.poker-table-wrapper {
  position: relative;
  width: min(94vw, 1020px);
  height: min(68vh, 560px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.poker-table-rail {
  position: absolute;
  inset: 0;
  border-radius: 260px;
  background: linear-gradient(135deg, #2b1f1d 0%, #150e0d 50%, #2f2220 100%);
  padding: 18px;
  box-shadow: 
    0 32px 80px rgba(0, 0, 0, 0.8),
    inset 0 2px 4px rgba(255, 255, 255, 0.15),
    inset 0 -4px 10px rgba(0, 0, 0, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.poker-table-felt {
  width: 100%;
  height: 100%;
  border-radius: 242px;
  background: var(--felt-green);
  position: relative;
  box-shadow: 
    inset 0 0 80px rgba(0, 0, 0, 0.65),
    inset 0 1px 2px rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 214, 10, 0.22);
}

/* Watermark & Felt Brand */
.felt-branding {
  position: absolute;
  text-align: center;
  pointer-events: none;
  opacity: 0.18;
  letter-spacing: 0.15em;
  font-weight: 800;
  font-size: 20px;
  text-transform: uppercase;
  color: #fff;
  transform: translateY(-50px);
}

/* Center Table Area (Pot & Community Cards) */
.table-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  z-index: 10;
}

.pot-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 214, 10, 0.4);
  border-radius: var(--radius-pill);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.pot-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #8e8e93;
  text-transform: uppercase;
}

.pot-amount {
  font-size: 16px;
  font-weight: 700;
  color: #ffd60a;
  font-family: var(--font-mono);
}

/* Community Cards */
.community-cards {
  display: flex;
  gap: 10px;
  min-height: 84px;
  align-items: center;
}

.card {
  width: 58px;
  height: 84px;
  background: #ffffff;
  border-radius: 8px;
  position: relative;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 4px 6px;
  color: #1c1c1e;
  font-weight: 700;
  cursor: default;
  transition: transform 220ms var(--spring-ease), box-shadow 220ms ease;
  transform-origin: center bottom;
}

.card:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.55);
}

.card.red {
  color: #e02424;
}

.card-corner {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
}

.card-rank {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.card-suit-sm {
  font-size: 10px;
}

.card-center-suit {
  align-self: center;
  font-size: 24px;
  line-height: 1;
  opacity: 0.9;
}

.card.card-back {
  background: linear-gradient(135deg, #0a84ff 0%, #0056b3 100%);
  border: 2px solid #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
}

.card.card-back::after {
  content: "RG";
  position: absolute;
  inset: 4px;
  border: 1px dashed rgba(255, 255, 255, 0.4);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.65);
}

/* Player Seats (6-max layout) */
.seat {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  z-index: 20;
  transition: all 260ms var(--spring-ease);
}

.seat-0 { bottom: -20px; left: 50%; transform: translateX(-50%); } /* Hero (User) */
.seat-1 { bottom: 25%; left: 4%; }
.seat-2 { top: 12%; left: 16%; }
.seat-3 { top: -20px; left: 50%; transform: translateX(-50%); }
.seat-4 { top: 12%; right: 16%; }
.seat-5 { bottom: 25%; right: 4%; }

/* Seat Avatar & Card Capsule */
.seat-card {
  background: rgba(18, 22, 32, 0.88);
  backdrop-filter: blur(18px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 8px 12px;
  min-width: 130px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--glass-shadow);
  transition: all var(--transition-fast);
}

.seat.active .seat-card {
  border-color: var(--apple-blue);
  box-shadow: 0 0 0 2px var(--apple-blue), 0 8px 24px rgba(10, 132, 255, 0.4);
  animation: pulse-active 1.6s infinite ease-in-out;
}

@keyframes pulse-active {
  0%, 100% { box-shadow: 0 0 0 2px var(--apple-blue), 0 8px 20px rgba(10, 132, 255, 0.3); }
  50% { box-shadow: 0 0 0 3px var(--apple-blue), 0 12px 28px rgba(10, 132, 255, 0.55); }
}

.avatar-wrapper {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-pill);
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  border: 1px solid var(--glass-border-specular);
}

.dealer-button {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 16px;
  height: 16px;
  border-radius: var(--radius-pill);
  background: #ffffff;
  color: #000;
  font-size: 9px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.seat-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.seat-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.seat-name {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}

.seat-tell-indicator {
  width: 7px;
  height: 7px;
  border-radius: var(--radius-pill);
  background: var(--apple-green);
  transition: background 200ms ease;
}

.seat-tell-indicator.bluffing {
  background: var(--apple-red);
  box-shadow: 0 0 8px var(--apple-red);
  animation: pulse-tell 0.8s infinite alternate;
}

@keyframes pulse-tell {
  from { opacity: 0.6; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1.3); }
}

.seat-chips {
  font-size: 12px;
  font-family: var(--font-mono);
  color: #ffd60a;
  font-weight: 600;
}

.seat-action-tag {
  font-size: 10px;
  padding: 1px 6px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.12);
  color: #a1a1a6;
  font-weight: 600;
  text-transform: uppercase;
}

/* Hole Cards for Players */
.seat-cards {
  display: flex;
  gap: 4px;
  margin-top: 4px;
}

.seat-cards .card {
  width: 42px;
  height: 60px;
  padding: 3px 4px;
}

.seat-cards .card .card-rank { font-size: 11px; }
.seat-cards .card .card-suit-sm { font-size: 8px; }
.seat-cards .card .card-center-suit { font-size: 16px; }

/* Hero Interactive Hole Cards with Corner Peeker */
.hero-cards-container {
  display: flex;
  gap: 8px;
  position: relative;
  cursor: grab;
}

.hero-cards-container:active {
  cursor: grabbing;
}

.hero-cards-container .card {
  width: 68px;
  height: 98px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  transition: transform 180ms var(--spring-ease);
}

.peek-hint {
  position: absolute;
  bottom: -22px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  color: rgba(255, 255, 255, 0.5);
  white-space: nowrap;
  pointer-events: none;
}

/* Dynamic Live Equity HUD */
.equity-hud {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 12px 16px;
  min-width: 200px;
  box-shadow: var(--glass-shadow);
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 50;
}

.equity-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.equity-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #8e8e93;
}

.equity-rank-badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--apple-gold);
  background: rgba(255, 214, 10, 0.12);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

.equity-bar-track {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.equity-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #30d158 0%, #0a84ff 100%);
  border-radius: var(--radius-pill);
  transition: width 400ms var(--spring-ease);
}

.equity-stats {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-family: var(--font-mono);
}

/* Poker Bottom Action Dock */
.poker-action-dock {
  position: absolute;
  bottom: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 60;
}

.bet-slider-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(18, 22, 32, 0.9);
  backdrop-filter: blur(20px);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}

.bet-slider-bar input[type="range"] {
  width: 180px;
  accent-color: var(--apple-blue);
  cursor: pointer;
}

.bet-preset-btn {
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--glass-border);
  color: #f5f5f7;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.bet-preset-btn:hover { background: rgba(255, 255, 255, 0.18); }
.bet-preset-btn:active { transform: scale(0.92); }

.poker-btn-group {
  display: flex;
  gap: 12px;
}

.poker-btn {
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--glass-border-specular);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 95px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  transition: transform var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast);
}

.poker-btn:active {
  transform: scale(0.94);
}

.poker-btn.btn-fold {
  background: rgba(255, 69, 58, 0.16);
  border-color: rgba(255, 69, 58, 0.35);
  color: #ff453a;
}
.poker-btn.btn-fold:hover { background: rgba(255, 69, 58, 0.28); }

.poker-btn.btn-check, .poker-btn.btn-call {
  background: rgba(10, 132, 255, 0.18);
  border-color: rgba(10, 132, 255, 0.4);
  color: #0a84ff;
}
.poker-btn.btn-check:hover, .poker-btn.btn-call:hover { background: rgba(10, 132, 255, 0.3); }

.poker-btn.btn-raise {
  background: linear-gradient(135deg, #30d158 0%, #24a843 100%);
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
}
.poker-btn.btn-raise:hover { filter: brightness(1.1); }

.poker-btn.btn-allin {
  background: linear-gradient(135deg, #ff9f0a 0%, #ff453a 100%);
  border-color: rgba(255, 255, 255, 0.4);
  color: #ffffff;
  font-weight: 700;
}
.poker-btn.btn-allin:hover { filter: brightness(1.12); }

.poker-btn-sub {
  font-size: 11px;
  font-family: var(--font-mono);
  opacity: 0.85;
}
