/* ========================================
   game.css — componentes de partida
   ======================================== */

/* --- mesa central (mazo + descarte) --- */
.table-center {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: center;
}

.draw-pile {
  width: var(--card-w);
  height: var(--card-h);
  border-radius: var(--card-radius);
  background: linear-gradient(135deg, #2a1f3d, #1a1035);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 3px 12px rgba(0,0,0,0.4);
  font-size: 1.5rem;
  color: rgba(255,255,255,0.3);
  border: 2px solid rgba(255,255,255,0.08);
  transition: box-shadow 200ms ease, transform 200ms ease;
}

.draw-pile:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.5);
  transform: translateY(-2px);
}

.discard-slot {
  min-width: var(--card-w);
  min-height: var(--card-h);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- indicador de direccion (uno) --- */
.direction-indicator {
  font-size: 1.8rem;
  opacity: 0.4;
  font-family: var(--font-display);
}

/* --- virus bodies --- */
.virus-bodies {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.virus-body {
  padding: 14px;
  border: 2px solid rgba(128,128,128,0.2);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  min-width: 120px;
  transition: border-color 200ms ease;
}

.virus-body--active {
  border-color: var(--accent);
  box-shadow: 0 0 12px rgba(57,255,20,0.1);
}

.virus-body__name {
  width: 100%;
  text-align: center;
  font-weight: 700;
  font-size: 0.8rem;
  font-family: var(--font-ui);
  margin-bottom: 10px;
}

.virus-body__slots {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}

.virus-organ-slot {
  width: 52px;
  height: 72px;
  border: 2px dashed rgba(128,128,128,0.25);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  position: relative;
  cursor: pointer;
  transition: border-color 200ms ease, background 200ms ease;
  gap: 2px;
}

.virus-organ-slot:hover {
  border-color: var(--accent);
  background: var(--bg-surface);
}

.virus-organ-slot.targeted {
  border-color: var(--accent-secondary, #FF1493);
  border-style: solid;
  background: rgba(255,20,147,0.06);
}

.organ-emoji {
  font-size: 1.4rem;
  line-height: 1;
}

.organ-status {
  font-size: 0.6rem;
  line-height: 1;
}

.organ-placeholder {
  opacity: 0.15;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
}

/* --- rummikub sets --- */
.table-sets {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  min-height: 60px;
  align-items: center;
}

.rummikub-set {
  display: flex;
  gap: 2px;
  padding: 5px;
  background: var(--bg-surface);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(128,128,128,0.15);
}

/* --- poker --- */
.poker-info {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.pot-display {
  font-size: 1.1rem;
  font-weight: 900;
  font-family: var(--font-display);
}

.phase-badge {
  padding: 3px 12px;
  border-radius: var(--radius-xl);
  background: var(--bg-surface);
  font-size: 0.7rem;
  font-weight: 600;
  font-family: var(--font-ui);
  text-transform: lowercase;
  border: 1px solid rgba(128,128,128,0.2);
}

.community-cards {
  display: flex;
  gap: 8px;
  justify-content: center;
  min-height: var(--card-h);
  align-items: center;
}

.poker-players {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
  justify-content: center;
}

.poker-player {
  padding: 10px 14px;
  border: 1.5px solid rgba(128,128,128,0.2);
  border-radius: var(--radius-sm);
  text-align: center;
  min-width: 80px;
  transition: border-color 200ms ease;
}

.poker-player--active {
  border-color: var(--accent);
  background: var(--bg-surface);
}

.poker-player--folded {
  opacity: 0.4;
}

.poker-player__name {
  font-weight: 700;
  font-size: 0.8rem;
}

.poker-player__chips {
  font-size: 0.75rem;
}

.poker-player__status {
  color: #E74C3C;
  font-size: 0.65rem;
  font-weight: 700;
}

.poker-player__bet {
  font-size: 0.65rem;
  opacity: 0.7;
}

/* --- responsive --- */
@media (max-width: 600px) {
  .draw-pile {
    width: var(--card-w);
    height: var(--card-h);
    font-size: 1.2rem;
  }

  .virus-organ-slot {
    width: 44px;
    height: 60px;
  }

  .organ-emoji {
    font-size: 1.1rem;
  }

  .poker-player {
    padding: 8px 10px;
    min-width: 70px;
  }
}
