/* ============================ MÓVIL ============================ */
body.movil {
  overflow-y: auto;
  overflow-x: hidden;
  background: radial-gradient(circle at 50% 10%, #0d6842 0%, var(--feltror) 60%, var(--feltror-dark) 100%);
}
.vista-movil {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 16px 16px 96px;
  gap: 14px;
  max-width: 540px;
  margin: 0 auto;
}
.cab-movil {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  padding: 4px 0 2px;
}
.cab-movil .logo-monopoly { font-size: 26px; }
.sub-movil {
  text-align: center;
  color: #fde68a;
  font-weight: 700;
  font-size: 15px;
  margin: -4px 0 2px;
}

/* Tarjeta estándar */
.tarjeta {
  background: #ffffff;
  border-radius: var(--radio);
  box-shadow: 0 10px 25px rgba(0,0,0,.35);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border: 2.5px solid var(--crema-borde);
}
.tarjeta h2 { margin: 0; color: #064e3b; font-size: 22px; font-weight: 900; }
.tarjeta h3 { margin: 6px 0 0; color: #1e293b; font-size: 15px; text-transform: uppercase; font-weight: 800; }

#in-nombre {
  font: inherit;
  font-size: 22px;
  font-weight: 900;
  text-align: center;
  padding: 16px;
  border-radius: 14px;
  border: 2.5px solid #cbd5e1;
  background: #f8fafc;
  color: #0f172a;
  width: 100%;
  box-shadow: inset 0 2px 4px rgba(0,0,0,.08);
}
#in-nombre:focus {
  outline: none;
  border-color: var(--oro);
  background: #ffffff;
}

/* Rejilla de selección de fichas */
.rejilla-fichas {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.ficha-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 12px 6px;
  background: #ffffff;
  border: 2.5px solid #e2e8f0;
  border-radius: 14px;
  cursor: pointer;
  transition: transform .12s, border-color .12s, box-shadow .12s;
  box-shadow: 0 4px 8px rgba(0,0,0,.08);
}
.ficha-btn .f-tok { font-size: 34px; line-height: 1; }
.ficha-btn .f-nom { font-size: 11px; font-weight: 800; color: #475569; }
.ficha-btn.sel {
  border-color: var(--oro);
  background: #fef3c7;
  transform: scale(1.08);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, .45);
}
.ficha-btn.sel .f-nom { color: #92400e; font-weight: 900; }
.ficha-btn.taken {
  opacity: .3;
  pointer-events: none;
  filter: grayscale(.9);
}

.ficha-sala-m {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: 14px;
  padding: 12px 16px;
  font-weight: 900;
  font-size: 18px;
  box-shadow: 0 4px 10px rgba(0,0,0,.08);
}
.ficha-sala-m .tok { font-size: 30px; }

.puntos-carga { display: inline-flex; gap: 4px; }
.puntos-carga span {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--oro); animation: pulso 1.2s infinite;
}
.puntos-carga span:nth-child(2) { animation-delay: .2s; }
.puntos-carga span:nth-child(3) { animation-delay: .4s; }

/* Cabecera del jugador en juego */
.hdr-juego {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(180deg, #fef08a 0%, var(--oro) 65%, var(--oro-oscuro) 100%);
  border-radius: 16px;
  padding: 12px 16px;
  box-shadow: 0 10px 25px rgba(0,0,0,.4);
  border: 2px solid #ffffff;
}
.hdr-juego .tok {
  font-size: 38px;
  background: #ffffff;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid #0f172a;
  box-shadow: 0 4px 8px rgba(0,0,0,.25);
}
.hdr-juego .quien { flex: 1; line-height: 1.2; }
.hdr-juego .quien b { font-size: 19px; color: #451a03; display: block; font-weight: 900; }
.hdr-juego .quien .din { font-weight: 900; color: #14532d; font-size: 24px; text-shadow: 0 1px 1px rgba(255,255,255,.6); }
.pildora {
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 900;
  font-size: 14px;
  white-space: nowrap;
  letter-spacing: .5px;
  box-shadow: 0 4px 10px rgba(0,0,0,.25);
}
.pildora.toca {
  background: #16a34a;
  color: #ffffff;
  animation: pulso 1.3s infinite;
  border: 2px solid #bbf7d0;
}
.pildora.espera {
  background: #334155;
  color: #f1f5f9;
}

/* Zona de Acciones */
.zona-acciones {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 120px;
}
.accion-tarjeta {
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 10px 25px rgba(0,0,0,.35);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border: 3px solid #cbd5e1;
}
.accion-tarjeta .titulo {
  font-weight: 900;
  font-size: 22px;
  color: #064e3b;
  text-align: center;
}
.accion-tarjeta .detalle {
  text-align: center;
  color: #334155;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.4;
}
.accion-tarjeta .fila-botones {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Tarjeta Mini Deed en Compra Móvil */
.mini-deed {
  border-radius: 14px;
  border: 2.5px solid #1e293b;
  overflow: hidden;
  box-shadow: 0 6px 14px rgba(0,0,0,.15);
  margin-bottom: 4px;
}
.mini-deed-header {
  padding: 8px;
  color: #ffffff;
  font-weight: 900;
  font-size: 16px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.mini-deed-body {
  padding: 12px;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.mini-deed-nom { font-size: 18px; font-weight: 900; color: #0f172a; }
.mini-deed-precio { font-size: 22px; font-weight: 900; color: #15803d; }

/* Botones Gigantes de Acción */
.btn-gigante {
  font-size: 22px;
  padding: 20px 24px;
  border-radius: 18px;
  width: 100%;
  letter-spacing: .5px;
}
.btn-gigante.pulso-roll {
  animation: pulso 1.3s infinite;
  box-shadow: 0 8px 0 #14532d, 0 12px 25px rgba(0,0,0,.4);
}
.btn-mediano {
  font-size: 17px;
  padding: 14px 18px;
  border-radius: 14px;
}

/* Pestañas */
.tabs {
  display: flex;
  gap: 8px;
  position: sticky;
  bottom: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(6, 52, 33, .9) 40%, rgba(6, 52, 33, 1) 100%);
  padding: 12px 0 10px;
  z-index: 20;
}
.tabs button {
  flex: 1;
  background: rgba(255,255,255,.2);
  color: #ffffff;
  border-radius: 999px;
  padding: 12px 8px;
  font-size: 14px;
  font-weight: 900;
  border: 1.5px solid rgba(255,255,255,.35);
  backdrop-filter: blur(4px);
}
.tabs button.activo {
  background: var(--oro);
  color: #451a03;
  border-color: #ffffff;
  box-shadow: 0 4px 12px rgba(0,0,0,.35);
}

.tab-contenido {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.grupo-titulo {
  color: #fde68a;
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin: 10px 4px 2px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.prop-fila {
  background: #ffffff;
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,.2);
  border: 2px solid #e2e8f0;
  cursor: pointer;
}
.prop-fila .punto {
  width: 14px;
  height: 40px;
  border-radius: 6px;
  flex: none;
  box-shadow: 0 2px 4px rgba(0,0,0,.2);
}
.prop-fila .info { flex: 1; line-height: 1.25; min-width: 0; }
.prop-fila .info b { font-size: 15px; display: block; color: #0f172a; }
.prop-fila .info span { font-size: 13px; color: #475569; font-weight: 700; }
.prop-fila .dueno { font-size: 26px; }
.prop-fila.mia {
  border-color: var(--oro);
  background: #fefce8;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, .4);
}

.prop-acciones {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 12px 12px;
  background: #f8fafc;
  border-radius: 0 0 14px 14px;
  margin-top: -6px;
  border: 2px solid #e2e8f0;
  border-top: none;
}
.mini-b {
  font-size: 13px;
  padding: 8px 12px;
  border-radius: 10px;
}

/* Modales */
.modal {
  position: fixed; inset: 0; background: rgba(0,0,0,.65); z-index: 50;
  display: flex; align-items: flex-end; justify-content: center; backdrop-filter: blur(2px);
}
.modal-cuerpo {
  width: 100%; max-width: 540px; max-height: 85vh; overflow-y: auto;
  border-radius: 24px 24px 0 0; animation: sube .25s ease;
  padding: 24px;
}
@keyframes sube { from { transform: translateY(60px); opacity: .4; } to { transform: translateY(0); opacity: 1; } }
.modal-cuerpo h2 { display: flex; align-items: center; gap: 10px; font-size: 22px; }
.modal-cuerpo .cerrar { align-self: flex-end; background: #e2e8f0; border-radius: 999px; padding: 8px 16px; font-weight: 800; font-size: 14px; }
.tabla-alquileres { width: 100%; border-collapse: collapse; font-size: 14px; }
.tabla-alquileres td { padding: 6px 8px; border-bottom: 1px solid #e2e8f0; }
.tabla-alquileres td:last-child { text-align: right; font-weight: 800; color: #15803d; }

.carta-movil {
  position: fixed; left: 50%; top: 40%; transform: translate(-50%, -50%); z-index: 60;
  width: min(88vw, 400px); background: linear-gradient(160deg, #fffdf7 0%, #fef3c7 100%);
  border: 4.5px solid var(--oro); border-radius: 20px; box-shadow: 0 20px 45px rgba(0,0,0,.6);
  padding: 24px; text-align: center; display: flex; flex-direction: column; gap: 16px;
  animation: carta-entra .4s cubic-bezier(.2, 1.4, .4, 1);
}
.carta-movil .carta-texto { font-size: 19px; font-weight: 800; color: #0f172a; line-height: 1.4; }

.ganador-movil {
  position: fixed; inset: 0; z-index: 70;
  background: radial-gradient(circle, rgba(10,79,50,.96), rgba(0,0,0,.95));
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.ganador-movil .tarjeta { text-align: center; align-items: center; max-width: 420px; }
.ganador-movil .emoji { font-size: 80px; }
.aviso-superior {
  background: #dc2626; color: #ffffff; text-align: center;
  font-weight: 900; padding: 10px; border-radius: 12px; font-size: 15px;
}


/* Acciones de perfil en movil */
.sala-mis-acciones {
  display: flex;
  gap: 10px;
  margin-top: 6px;
  flex-wrap: wrap;
}
.sala-mis-acciones button {
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 800;
  border-radius: 12px;
}
#btn-editar-perfil {
  flex: 1;
  min-width: 170px;
}
.btn-yo-edit {
  background: rgba(255, 255, 255, .85);
  border: 2px solid rgba(0, 0, 0, .15);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 2px 5px rgba(0,0,0,.15);
  transition: transform .12s ease;
}
.btn-yo-edit:active {
  transform: scale(.92);
}
