/* ==========================================================================
   TRUCO — NOWEY
   ========================================================================= */

.titulo-juego {
  text-align: center;
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  color: #ff2b5e;
  text-shadow: 0 0 12px rgba(255, 43, 94, 0.6);
  letter-spacing: 2px;
  margin: 20px 0 10px 0;
}

.trc-container { display: flex; flex-direction: column; align-items: center; padding: 0 10px 30px 10px; }
.trc-viewport { width: 100%; max-width: 640px; position: relative; }

.overlay-modo, .overlay-sala, .overlay-fin {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; background: #04080c; border: 1px solid rgba(255,43,94,0.25);
  border-radius: 10px; padding: 30px 20px; min-height: 320px;
}
.oculto { display: none !important; }

.overlay-modo h2, .overlay-sala h2, .overlay-fin h2 {
  font-family: 'Orbitron', sans-serif; font-weight: 900; font-size: 1.5rem;
  color: #ff2b5e; text-shadow: 0 0 12px rgba(255,43,94,0.6); margin-bottom: 12px;
}
.overlay-modo p, .overlay-sala p, .overlay-fin p {
  font-family: 'Chakra Petch', monospace; color: #94a3b8; font-size: 0.85rem; margin-bottom: 18px;
}

.btn-mate {
  font-family: 'Chakra Petch', monospace; font-weight: 700; letter-spacing: 1px;
  background: linear-gradient(135deg, #ff2b5e, #b3193f); color: #1a0209;
  border: none; padding: 12px 28px; border-radius: 8px; font-size: 0.95rem;
  cursor: pointer; box-shadow: 0 0 16px rgba(255,43,94,0.4); margin-bottom: 10px; width: 220px;
}
.btn-mate.btn-multi { background: linear-gradient(135deg, #00b7ff, #0080b3); color: #021018; box-shadow: 0 0 16px rgba(0,183,255,0.4); }
.btn-mate:active { transform: scale(0.96); }
.btn-salir { display: inline-block; color: #94a3b8; text-decoration: none; font-family: 'Chakra Petch', monospace; font-size: 0.8rem; }
.btn-volver { background: none; border: none; color: #64748b; font-family: 'Chakra Petch', monospace; margin-top: 8px; cursor: pointer; }

.overlay-sala input {
  width: 220px; padding: 10px 14px; margin-bottom: 10px; border-radius: 8px;
  border: 1px solid rgba(255,43,94,0.3); background: #0a0f14; color: #e2e8f0;
  font-family: 'Chakra Petch', monospace; text-align: center;
}
.sala-o-divisor { color: #64748b; font-family: 'Chakra Petch', monospace; margin: 6px 0; }
.sala-estado { min-height: 18px; color: #ffe94d !important; }

.trc-mesa {
  position: relative; background: radial-gradient(ellipse at center, #0a2818, #04080c 75%);
  border: 1px solid rgba(255,43,94,0.25); border-radius: 14px; min-height: 520px;
  display: flex; flex-direction: column; padding: 10px; box-sizing: border-box;
}

.btn-fullscreen-mate {
  position: absolute; top: 8px; right: 8px; z-index: 25;
  background: rgba(4,8,12,0.7); border: 1px solid rgba(255,43,94,0.35); color: #ff2b5e;
  width: 34px; height: 34px; border-radius: 8px; font-size: 1rem; cursor: pointer;
}

.trc-marcador { display: flex; justify-content: center; gap: 24px; padding: 6px; }
.marcador-eq { font-family: 'Chakra Petch', monospace; text-align: center; color: #94a3b8; font-size: 0.7rem; }
.marcador-eq b { display: block; font-family: 'Orbitron', sans-serif; font-size: 1.6rem; }
.marcador-nos b { color: #39ff14; text-shadow: 0 0 8px rgba(57,255,20,0.5); }
.marcador-ellos b { color: #ff7b00; text-shadow: 0 0 8px rgba(255,123,0,0.5); }

.trc-zona-rival { display: flex; justify-content: center; gap: 6px; padding: 10px 0; min-height: 70px; }
.trc-zona-mano { display: flex; justify-content: center; gap: 6px; padding: 10px 0; min-height: 100px; }

.carta {
  width: 58px; height: 88px; border-radius: 6px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.15); display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: transform 0.15s ease; user-select: none; position: relative;
  overflow: hidden; padding: 0;
}
.carta:active { transform: translateY(-6px); }
.carta.jugable:hover { transform: translateY(-8px); border-color: rgba(255,43,94,0.6); }
.carta.dorso {
  background: repeating-linear-gradient(45deg, #1a0209, #1a0209 4px, #2b0512 4px, #2b0512 8px);
}
.carta.jugada-pequena { width: 46px; height: 68px; font-size: 0.7rem; }

.trc-centro { position: relative; flex: 1; display: flex; align-items: center; justify-content: center; min-height: 100px; }
.trc-jugadas { display: flex; gap: 10px; align-items: center; justify-content: center; flex-wrap: wrap; }

.trc-canto-flotante {
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  font-family: 'Orbitron', sans-serif; font-weight: 900; font-size: 1.1rem;
  color: #ffe94d; text-shadow: 0 0 10px rgba(255,233,77,0.8); animation: canto-pop 1.4s ease forwards;
  white-space: nowrap;
}
@keyframes canto-pop {
  0% { opacity: 0; transform: translateX(-50%) scale(0.5); }
  15% { opacity: 1; transform: translateX(-50%) scale(1.1); }
  25% { transform: translateX(-50%) scale(1); }
  85% { opacity: 1; }
  100% { opacity: 0; }
}

.trc-acciones, .trc-respuesta { display: flex; justify-content: center; gap: 8px; padding: 10px 0; flex-wrap: wrap; }
.btn-accion {
  font-family: 'Chakra Petch', monospace; font-weight: 700; letter-spacing: 0.5px;
  background: rgba(255,43,94,0.1); border: 1px solid rgba(255,43,94,0.4); color: #ff2b5e;
  padding: 10px 16px; border-radius: 8px; font-size: 0.8rem; cursor: pointer;
}
.btn-accion.btn-quiero { border-color: rgba(57,255,20,0.5); color: #39ff14; background: rgba(57,255,20,0.1); }
.btn-accion.btn-nomequiero { border-color: rgba(148,163,184,0.5); color: #94a3b8; }
.btn-accion:disabled { opacity: 0.35; cursor: default; }
.btn-accion:active { transform: scale(0.95); }

.turno-activo { box-shadow: 0 0 0 2px #ffe94d; border-radius: 8px; }

.staff-footer-note { margin-top: 18px; text-align: center; }
.staff-footer-note a { color: #64748b; text-decoration: none; font-family: 'Chakra Petch', monospace; font-size: 0.8rem; }
