/* Shared, readable hand layout for Practice and Classic. */
.mesa-stage-frame .jugador-bottom .ordenar-mano-control {
  width: 154px !important;
  left: -168px !important;
  right: auto !important;
  bottom: 0 !important;
  align-items: stretch !important;
}
.mesa-stage-frame .jugador-bottom .ordenar-mano-select-wrap,
.mesa-stage-frame .jugador-bottom .btn-ordenar-mano-mesa {
  box-sizing: border-box !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
}
.mesa-stage-frame .jugador-bottom .ordenar-mano-select {
  box-sizing: border-box !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
}
.mesa-stage-frame .jugador-bottom .baraja-horizontal .carta-img-btn {
  margin-left: var(--recovery-hand-spacing, -26px) !important;
  transition: margin-left .28s ease !important;
}
.mesa-stage-frame .jugador-bottom .baraja-horizontal .carta-img-btn:first-child { margin-left: 0 !important; }
@media (min-width: 760px) {
  .mesa-stage-frame .jugador-bottom .carta-img-humana {
    width: clamp(108px, 8.2vw, 128px) !important;
    border-radius: 12px !important;
    box-shadow: 0 18px 34px rgba(0,0,0,.58), 0 2px 0 rgba(255,246,214,.72) inset !important;
  }
  .mesa-stage-frame .jugador-bottom .zona-cartas-wrapper-humano-horizontal,
  .mesa-stage-frame .jugador-bottom .baraja-horizontal,
  .mesa-stage-frame .jugador-bottom .mano-fila {
    width: min(780px, 72vw) !important;
    max-width: min(780px, 72vw) !important;
    height: 156px !important;
  }
  .mesa-stage-frame .jugador-bottom .ordenar-mano-control {
    left: -168px !important;
    right: auto !important;
    bottom: 0 !important;
  }
}
@media (max-width: 759px) {
  .mesa-stage-frame .jugador-bottom .carta-img-humana { width: 82px !important; }
  .mesa-stage-frame .jugador-bottom .baraja-horizontal .carta-img-btn {
    margin-left: var(--recovery-hand-spacing, -30px) !important;
  }
  .mesa-stage-frame .jugador-bottom .baraja-horizontal .carta-img-btn:first-child { margin-left: 0 !important; }
  .mesa-stage-frame .jugador-bottom .ordenar-mano-control { left: -168px !important; }
}
@media (prefers-reduced-motion: reduce) {
  .mesa-stage-frame .jugador-bottom .baraja-horizontal .carta-img-btn { transition: none !important; }
}
/* Stable hit areas: only the picture lifts, never its button. */
.jugador-bottom button[data-card-id] .carta-img-humana {
  pointer-events: none !important;
  transition: transform .16s ease !important;
  transform-origin: 50% 100% !important;
}
:root .mesa-stage-frame .jugador-bottom button.carta-img-btn.carta-hoverable[data-card-id]:not(.carta-img-btn-dragging):not(.carta-img-btn-exchange-out),
:root .mesa-stage-frame .jugador-bottom button.carta-img-btn.carta-hoverable[data-card-id]:not(.carta-img-btn-dragging):not(.carta-img-btn-exchange-out):hover {
  transform: none !important;
}
:root .mesa-stage-frame .jugador-bottom button.carta-img-btn.carta-hoverable[data-card-id]:not(.carta-img-btn-dragging):not(.carta-img-btn-exchange-out):not(.carta-img-btn-seleccionada):not([data-recovery-preview]),
:root .mesa-stage-frame .jugador-bottom button.carta-img-btn.carta-hoverable[data-card-id]:not(.carta-img-btn-dragging):not(.carta-img-btn-exchange-out):not(.carta-img-btn-seleccionada):not([data-recovery-preview]):hover {
  z-index: auto !important;
}
:root .mesa-stage-frame .jugador-bottom button.carta-img-btn.carta-hoverable[data-card-id]:not(.carta-img-btn-dragging):not(.carta-img-btn-exchange-out):not(.carta-img-btn-seleccionada):not([data-recovery-preview]) .carta-img-humana,
:root .mesa-stage-frame .jugador-bottom button.carta-img-btn.carta-hoverable[data-card-id]:not(.carta-img-btn-dragging):not(.carta-img-btn-exchange-out):not(.carta-img-btn-seleccionada):not([data-recovery-preview]):hover .carta-img-humana {
  pointer-events: none !important;
  transform: none !important;
  transition: transform .16s ease !important;
  transform-origin: 50% 100% !important;
}
:root .mesa-stage-frame .jugador-bottom button.carta-img-btn.carta-hoverable[data-card-id].carta-img-btn-seleccionada {
  z-index: 2000 !important;
}
:root .mesa-stage-frame .jugador-bottom button.carta-img-btn.carta-hoverable[data-card-id].carta-img-btn-seleccionada .carta-img-humana {
  transform: translateY(-24px) scale(1.08) !important;
}
@media (hover: hover) {
  :root .mesa-stage-frame .jugador-bottom button.carta-img-btn.carta-hoverable[data-card-id][data-recovery-preview] { z-index: 2100 !important; }
  :root .mesa-stage-frame .jugador-bottom button.carta-img-btn.carta-hoverable[data-card-id][data-recovery-preview]:not(.carta-img-btn-seleccionada) .carta-img-humana {
    transform: translateY(-34px) scale(1.24) !important;
  }
}
