/* Dueño de Curramba · estilos */
body.fondo-dc {
  background:
    radial-gradient(1000px 500px at 0% -10%, rgba(245,158,11,.35), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(239,68,68,.25), transparent 60%),
    radial-gradient(800px 500px at 50% 120%, rgba(20,184,166,.3), transparent 60%),
    #0b1a2b;
  background-attachment: fixed;
}
.logo-dc { font-family: 'Lilita One', 'Nunito', sans-serif; line-height: .95; letter-spacing: .01em; }
.logo-dc span { display: block; font-size: 1.3rem; color: #fde68a; letter-spacing: .3em; text-transform: uppercase; }
.logo-dc b { display: block; font-size: clamp(2.6rem, 11vw, 4rem); background: linear-gradient(90deg, #fbbf24, #f97316, #ef4444); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 4px 0 rgba(0,0,0,.35)); }

/* ── inicio ── */
.pestanas { display: flex; gap: 6px; background: rgba(0,0,0,.25); padding: 5px; border-radius: 14px; margin-bottom: 16px; }
.pestana { flex: 1; padding: 11px; border: 0; border-radius: 10px; background: transparent; color: var(--suave); font: inherit; font-weight: 800; cursor: pointer; }
.pestana.activa { background: rgba(255,255,255,.12); color: var(--texto); }
.opciones-modo { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
@media (max-width: 520px) { .opciones-modo { grid-template-columns: 1fr; } .opcion-modo { flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 10px; } .opcion-modo small { width: 100%; } }
.opciones-meta.rivales { grid-template-columns: repeat(5, 1fr); } .opciones-meta.rivales .opcion-meta { font-size: .8rem; padding: 8px 2px; }
.opcion-modo { display: flex; flex-direction: column; gap: 4px; text-align: left; padding: 14px; border-radius: 14px; border: 2px solid var(--panel-borde); background: rgba(0,0,0,.2); color: var(--texto); font: inherit; cursor: pointer; }
.opcion-modo .ico { font-size: 1.5rem; } .opcion-modo small { color: var(--suave); font-size: .78rem; line-height: 1.3; }
.opcion-modo.activa { border-color: #f59e0b; background: rgba(245,158,11,.15); }
.opciones-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.opcion-meta { padding: 10px 6px; border-radius: 12px; border: 2px solid var(--panel-borde); background: rgba(0,0,0,.2); color: var(--texto); font: inherit; font-weight: 800; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.opcion-meta small { color: var(--suave); font-weight: 700; font-size: .75rem; } .opcion-meta.activa { border-color: #f97316; background: rgba(249,115,22,.15); }
.lista-nombres { display: grid; gap: 8px; margin-bottom: 10px; } .fila-nombre { display: grid; grid-template-columns: 74px 1fr 38px; gap: 8px; align-items: center; }
.fila-nombre .quitar { height: 38px; border-radius: 10px; border: 1px solid var(--panel-borde); background: rgba(255,255,255,.06); color: var(--suave); cursor: pointer; }
.reglas p { margin: 0 0 8px; padding: 8px 10px; background: rgba(0,0,0,.2); border-radius: 10px; font-size: .92rem; }

/* ── partida ── */
.app-dc { max-width: 1240px; margin: 0 auto; padding: 8px 10px 30px; }
.barra { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 0 10px; flex-wrap: wrap; }
.barra .codigo-chip { font-size: 1rem; letter-spacing: .15em; font-weight: 900; padding: 6px 12px; border-radius: 10px; background: rgba(0,0,0,.3); border: 1px solid var(--panel-borde); cursor: pointer; }
.barra .info { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.dado-carga { font-size: 3rem; animation: girar 1s infinite linear; display: inline-block; } @keyframes girar { to { transform: rotate(360deg); } }
.diseno-dc { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 980px) { .diseno-dc { grid-template-columns: minmax(520px, 720px) minmax(340px, 1fr); align-items: start; } .col-tablero { position: sticky; top: 8px; } }

/* Tablero 11x11 */
.tablero-dc { --n: 11; aspect-ratio: 1; width: 100%; max-width: 720px; margin: 0 auto; display: grid; grid-template-columns: 1.55fr repeat(9, 1fr) 1.55fr; grid-template-rows: 1.55fr repeat(9, 1fr) 1.55fr; gap: 2px; background: #2a3a2a; padding: 4px; border-radius: 14px; box-shadow: 0 25px 60px rgba(0,0,0,.6), inset 0 0 0 3px #d9c58a; position: relative; user-select: none; }
.cas { background: #f3ecd8; border-radius: 4px; position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; color: #1f2937; font-size: .55rem; font-weight: 800; line-height: 1.05; text-align: center; }
.cas:hover { filter: brightness(1.05); }
.cas .banda { position: absolute; background: var(--g, #999); }
.cas.abajo .banda { top: 0; left: 0; right: 0; height: 22%; } .cas.izq .banda { top: 0; bottom: 0; right: 0; width: 22%; } .cas.arriba .banda { bottom: 0; left: 0; right: 0; height: 22%; } .cas.der .banda { top: 0; bottom: 0; left: 0; width: 22%; }
.cas.abajo .cuerpo { padding-top: 22%; } .cas.arriba .cuerpo { padding-bottom: 22%; } .cas.izq .cuerpo { padding-right: 22%; } .cas.der .cuerpo { padding-left: 22%; }
.cas .cuerpo { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; }
.cas .em { font-size: 1.05rem; line-height: 1; } .cas .nm { display: none; } .cas .pr { color: #6b7280; font-size: .5rem; }
.cas.esquina { font-size: .6rem; } .cas.esquina .em { font-size: 1.6rem; } .cas.esquina .nm { display: block; padding: 0 2px; }
.cas.especial { background: #ece4cc; }
.cas .dueno { position: absolute; width: 100%; height: 5px; bottom: 0; left: 0; background: var(--d); } .cas.abajo .dueno { top: 22%; bottom: auto; height: 4px; } .cas.arriba .dueno { bottom: 22%; height: 4px; } .cas.izq .dueno { width: 4px; height: 100%; right: 22%; left: auto; top: 0; } .cas.der .dueno { width: 4px; height: 100%; left: 22%; top: 0; }
.cas .casas { position: absolute; font-size: .55rem; line-height: 1; letter-spacing: -2px; } .cas.abajo .casas { top: 2px; } .cas.arriba .casas { bottom: 2px; } .cas.izq .casas { right: 2px; writing-mode: vertical-rl; } .cas.der .casas { left: 2px; writing-mode: vertical-rl; }
.cas.empenada .cuerpo { opacity: .35; } .cas.empenada::after { content: '🔒'; position: absolute; font-size: .8rem; }
.cas .fichas { position: absolute; inset: 0; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: center; gap: 0; padding: 1px; pointer-events: none; }
.cas.oferta-activa { box-shadow: inset 0 0 0 3px #f59e0b; animation: latido 1s infinite; } @keyframes latido { 50% { box-shadow: inset 0 0 0 3px #fde68a; } }
.cas.vendido::before { content: 'VENDIDO'; position: absolute; z-index: 5; inset: 0; display: grid; place-items: center; font-family: 'Lilita One'; color: #ef4444; font-size: .9rem; transform: rotate(-15deg); animation: sello .5s ease both; } @keyframes sello { from { transform: scale(3) rotate(-15deg); opacity: 0; } to { transform: scale(1) rotate(-15deg); opacity: 1; } }
@media (min-width: 560px) { .cas { font-size: .6rem; } .cas .nm { display: block; padding: 0 2px; } .cas .em { font-size: 1.25rem; } .cas .pr { font-size: .55rem; } .cas.esquina .em { font-size: 2rem; } .cas.esquina { font-size: .7rem; } }
@media (min-width: 900px) { .cas { font-size: .66rem; } .cas .em { font-size: 1.4rem; } .cas .pr { font-size: .6rem; } }

.ficha { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: .85rem; line-height: 1; background: var(--c); box-shadow: 0 2px 5px rgba(0,0,0,.5), 0 0 0 2px #fff; transition: transform .15s; overflow: hidden; }
.ficha img { width: 100%; height: 100%; object-fit: cover; } .ficha.activa { transform: scale(1.15); box-shadow: 0 0 0 2px #fff, 0 0 12px 4px #fde68a; z-index: 2; }
.ficha.brinco { animation: brinco .18s ease; } @keyframes brinco { 50% { transform: translateY(-8px) scale(1.2); } }
.ficha.presa { filter: grayscale(.6); } .ficha.presa::after { content: '🔒'; position: absolute; font-size: .6rem; bottom: -2px; right: -2px; }
@media (min-width: 560px) { .ficha { width: 26px; height: 26px; font-size: 1.05rem; } } @media (min-width: 900px) { .ficha { width: 30px; height: 30px; font-size: 1.2rem; } }

.centro-tab { grid-column: 2 / 11; grid-row: 2 / 11; border-radius: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; background: radial-gradient(circle at 50% 40%, #fff8e6, #f3e6c3 70%); position: relative; overflow: hidden; }
.centro-tab::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(45deg, rgba(245,158,11,.06) 0 12px, transparent 12px 24px); }
.centro-tab .titulo { position: relative; font-family: 'Lilita One'; font-size: clamp(1rem, 4.5vw, 2.2rem); line-height: .95; text-align: center; color: #b45309; text-shadow: 2px 2px 0 #fde68a; transform: rotate(-6deg); }
.centro-tab .titulo small { display: block; font-size: .45em; letter-spacing: .3em; color: #ef4444; }
.olla { position: relative; font-size: clamp(.6rem, 2.4vw, .95rem); font-weight: 900; color: #7c2d12; background: rgba(255,255,255,.7); padding: 3px 10px; border-radius: 999px; }
.estado-centro { position: relative; font-size: clamp(.6rem, 2.4vw, .95rem); font-weight: 800; color: #374151; text-align: center; padding: 0 8px; }

/* Panel derecho */
.panel-turno { padding: 16px; }
.turno-cab { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.turno-cab .av { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-size: 1.6rem; background: var(--c); box-shadow: 0 0 0 3px rgba(255,255,255,.2); overflow: hidden; } .turno-cab .av img { width: 100%; height: 100%; object-fit: cover; }
.turno-cab h2 { margin: 0; font-size: 1.15rem; } .turno-cab p { margin: 0; color: var(--suave); font-size: .85rem; }
.acciones-turno { display: grid; gap: 8px; } .acciones-turno .fila2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.aviso { padding: 10px 12px; border-radius: 12px; background: rgba(0,0,0,.25); font-weight: 700; font-size: .9rem; }
.aviso.rojo { background: rgba(239,68,68,.15); border: 1px solid rgba(239,68,68,.4); } .aviso.ambar { background: rgba(245,158,11,.15); border: 1px solid rgba(245,158,11,.4); }
.gestion { margin-top: 12px; border-top: 1px solid var(--panel-borde); padding-top: 10px; }
.gestion .titulo { font-size: .75rem; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; color: var(--suave); margin-bottom: 6px; }
.mis-props { display: flex; flex-wrap: wrap; gap: 5px; }
.prop-chip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px; border-radius: 8px; background: rgba(0,0,0,.25); border-left: 4px solid var(--g); font-size: .78rem; font-weight: 800; cursor: pointer; }
.prop-chip.emp { opacity: .5; text-decoration: line-through; }
.jugadores-dc { padding: 12px; display: grid; gap: 6px; }
.jug-fila { display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 12px; background: rgba(0,0,0,.22); border-left: 4px solid var(--c); }
.jug-fila .av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 1.2rem; background: var(--c); overflow: hidden; } .jug-fila .av img { width: 100%; height: 100%; object-fit: cover; }
.jug-fila b { display: block; font-size: .92rem; } .jug-fila small { color: var(--suave); font-size: .75rem; }
.jug-fila .dinero { font-weight: 900; font-size: 1rem; color: #86efac; text-align: right; } .jug-fila .dinero small { display: block; color: var(--suave); font-weight: 700; }
.jug-fila.activo { box-shadow: 0 0 0 2px #f59e0b; } .jug-fila.quebrado { opacity: .45; } .jug-fila.desconectado .av { filter: grayscale(1); }
.dinero.sube { animation: sube .8s ease; color: #4ade80; } .dinero.baja { animation: baja .8s ease; color: #f87171; }
@keyframes sube { 30% { transform: scale(1.3); } } @keyframes baja { 30% { transform: scale(1.3) rotate(-3deg); } }
.eventos { padding: 12px 14px; font-size: .82rem; color: var(--suave); } .eventos .titulo { font-weight: 900; text-transform: uppercase; letter-spacing: .06em; font-size: .72rem; margin-bottom: 6px; }
.eventos div + div { margin-top: 3px; } .eventos div:last-child { color: var(--texto); }

/* Lobby */
.codigo-grande { font-size: clamp(2.4rem, 12vw, 4rem); letter-spacing: .25em; font-weight: 900; text-align: center; margin: 6px 0; text-indent: .25em; font-family: 'Lilita One'; color: #fde68a; }
.compartir { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin: 10px 0 14px; }
.qr { display: block; margin: 8px auto; width: 140px; height: 140px; border-radius: 12px; background: #fff; padding: 6px; }
.lista-lobby { display: grid; gap: 6px; margin: 12px 0; }

/* Modal (detalle de casilla / tarjeta de propiedad) */
.modal-fondo { position: fixed; inset: 0; background: rgba(0,0,0,.6); display: grid; place-items: center; z-index: 60; padding: 16px; }
.modal-caja { width: 100%; max-width: 380px; background: #f8f1df; color: #1f2937; border-radius: 16px; overflow: hidden; box-shadow: var(--sombra); animation: aparecer .25s ease; }
.tarj-prop .cab { background: var(--g); color: #fff; text-align: center; padding: 14px 12px 10px; text-shadow: 0 1px 2px rgba(0,0,0,.4); }
.tarj-prop .cab small { display: block; font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; opacity: .9; } .tarj-prop .cab h3 { margin: 2px 0 0; font-family: 'Lilita One'; font-size: 1.5rem; font-weight: 400; }
.tarj-prop .img { width: 100%; aspect-ratio: 16/7; object-fit: cover; display: block; background: #e7dcc0; }
.tarj-prop .cuerpo { padding: 12px 16px; font-size: .9rem; } .tarj-prop .lema { font-style: italic; color: #6b7280; margin: 0 0 8px; }
.tarj-prop table { width: 100%; border-collapse: collapse; } .tarj-prop td { padding: 3px 0; border-bottom: 1px dashed #d6ccb0; } .tarj-prop td:last-child { text-align: right; font-weight: 900; }
.tarj-prop tr.actual td { color: #b45309; }
.tarj-prop .pie { padding: 10px 16px 16px; display: grid; gap: 6px; }
.tarj-prop .pie .fila2 { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.tarj-prop .btn { color: #fff; background: #1f2937; border: 0; } .tarj-prop .btn.primario { background: linear-gradient(135deg, #f59e0b, #ef4444); } .tarj-prop .btn.cerrar { background: transparent; color: #6b7280; border: 1px solid #d6ccb0; }
.tarj-prop .dueno-info { display: flex; align-items: center; gap: 6px; font-weight: 800; margin: 6px 0; }

/* Capa de animaciones a pantalla completa */
.capa { position: fixed; inset: 0; pointer-events: none; z-index: 55; display: grid; place-items: center; }
.anim { pointer-events: none; text-align: center; padding: 24px 28px; border-radius: 22px; color: #fff; max-width: 88vw; animation: anim-in .35s cubic-bezier(.2,1.4,.4,1) both; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.anim.saliendo { animation: anim-out .3s ease both; }
@keyframes anim-in { from { transform: scale(.5); opacity: 0; } to { transform: scale(1); opacity: 1; } } @keyframes anim-out { to { transform: scale(.8); opacity: 0; } }
.anim .gran { font-size: 3.4rem; line-height: 1; } .anim h2 { font-family: 'Lilita One'; font-weight: 400; font-size: 2rem; margin: 6px 0 2px; line-height: 1; } .anim p { margin: 4px 0 0; font-weight: 800; font-size: 1.05rem; }
.anim.guandoca { background: #111; border: 4px solid #fff; animation: anim-in .35s both, sirena .35s infinite alternate; }
@keyframes sirena { from { box-shadow: 0 0 0 8px rgba(239,68,68,.6), 0 0 80px 30px rgba(239,68,68,.6); } to { box-shadow: 0 0 0 8px rgba(59,130,246,.6), 0 0 80px 30px rgba(59,130,246,.6); } }
.anim.guandoca .rejas { position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 22px, rgba(255,255,255,.85) 22px 30px); border-radius: 18px; animation: rejas .5s .2s ease both; transform-origin: top; } @keyframes rejas { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.anim.guandoca { position: relative; overflow: hidden; } .anim.guandoca > *:not(.rejas) { position: relative; z-index: 2; } .anim.guandoca .rejas { opacity: .45; }
.anim.cobranza { background: linear-gradient(135deg, #7f1d1d, #b91c1c); border: 4px dashed #fecaca; }
.anim.cobrar { background: linear-gradient(135deg, #14532d, #16a34a); }
.anim.carta-suerte { background: linear-gradient(160deg, #065f46, #10b981); border: 4px solid #a7f3d0; transform-style: preserve-3d; animation: voltea .6s cubic-bezier(.2,1.2,.4,1) both; }
.anim.carta-vaca { background: linear-gradient(160deg, #78350f, #f59e0b); border: 4px solid #fde68a; animation: voltea .6s cubic-bezier(.2,1.2,.4,1) both; }
@keyframes voltea { from { transform: rotateY(90deg) scale(.8); opacity: 0; } to { transform: none; opacity: 1; } }
.anim.dian { background: #1e3a8a; border: 4px solid #93c5fd; } .anim.dian h2 { transform: rotate(-8deg); border: 3px solid #fff; display: inline-block; padding: 2px 12px; }
.anim.carnaval { background: linear-gradient(135deg, #db2777, #f59e0b, #10b981); }
.anim.pelao { background: #431407; border: 4px solid #f97316; } .anim.libre { background: linear-gradient(135deg, #0e7490, #22d3ee); }
.anim.pagadiario { background: #1c1917; border: 4px solid #a3e635; } .anim.quiebra { background: #000; border: 4px solid #ef4444; }
.anim.vendido { background: linear-gradient(135deg, #b45309, #f59e0b); } .anim.fin { background: linear-gradient(135deg, #7c3aed, #ec4899, #f59e0b); }
.flotante { position: absolute; font-weight: 900; font-size: 1rem; color: #4ade80; text-shadow: 0 2px 4px #000; animation: flota 1.2s ease both; pointer-events: none; z-index: 9; white-space: nowrap; }
.flotante.neg { color: #f87171; } @keyframes flota { from { transform: translateY(0); opacity: 1; } to { transform: translateY(-40px); opacity: 0; } }

.podio { display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: end; gap: 8px; margin: 16px 0; }
.podio .puesto { text-align: center; padding: 10px 6px; border-radius: 14px 14px 6px 6px; background: rgba(255,255,255,.08); } .podio .puesto .av { font-size: 2.2rem; }
.podio .puesto.p1 { background: linear-gradient(180deg, rgba(234,179,8,.35), rgba(234,179,8,.1)); min-height: 150px; } .podio .puesto.p2 { background: rgba(203,213,225,.15); min-height: 120px; } .podio .puesto.p3 { background: rgba(180,83,9,.2); min-height: 100px; }
.podio .puesto b { display: block; } .podio .medalla { font-size: 1.4rem; }

.toast { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); background: #111; color: #fff; padding: 10px 16px; border-radius: 12px; font-weight: 800; box-shadow: var(--sombra); z-index: 70; opacity: 0; transition: opacity .2s; pointer-events: none; max-width: 90vw; text-align: center; }
.toast.ver { opacity: 1; }
.confeti { position: fixed; inset: 0; pointer-events: none; z-index: 65; overflow: hidden; } .confeti i { position: absolute; top: -10px; width: 8px; height: 14px; border-radius: 2px; animation: caer linear forwards; } @keyframes caer { to { transform: translateY(110vh) rotate(720deg); opacity: .6; } }
.puntitos::after { content: '…'; animation: puntos 1.2s infinite; } @keyframes puntos { 0% { content: '.'; } 33% { content: '..'; } 66% { content: '...'; } }
body.pantalla .col-panel .acciones-turno { display: none; }

.logo-centro { position: relative; width: 60%; max-width: 320px; object-fit: contain; }

/* ── Dados 3D ── */
.dados { --ds: clamp(30px, 7.5vw, 56px); position: relative; display: flex; gap: calc(var(--ds) * .45); margin: 4px 0 2px; z-index: 3; }
.dado-escena { width: var(--ds); height: var(--ds); perspective: 500px; position: relative; }
.cubo { width: 100%; height: 100%; position: relative; transform-style: preserve-3d; transition: transform 1.2s cubic-bezier(.15,.75,.2,1); }
.cara { position: absolute; inset: 0; border-radius: 20%; background: linear-gradient(145deg, #ffffff 0%, #f3ede0 60%, #e2d9c2 100%); display: grid; grid-template: repeat(3, 1fr) / repeat(3, 1fr); padding: 13%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.06), inset -2px -3px 6px rgba(0,0,0,.12), inset 2px 2px 4px rgba(255,255,255,.9); backface-visibility: hidden; }
.cara i { display: block; }
.cara i.p { border-radius: 50%; margin: 14%; background: radial-gradient(circle at 35% 30%, #4b5563, #0b0b0b 70%); box-shadow: inset 0 1px 1px rgba(255,255,255,.25); }
.cara.c1 i.p { background: radial-gradient(circle at 35% 30%, #f87171, #b91c1c 70%); margin: 4%; }
.c1 { transform: translateZ(calc(var(--ds) / 2)); }
.c2 { transform: rotateY(90deg) translateZ(calc(var(--ds) / 2)); }
.c3 { transform: rotateX(90deg) translateZ(calc(var(--ds) / 2)); }
.c4 { transform: rotateX(-90deg) translateZ(calc(var(--ds) / 2)); }
.c5 { transform: rotateY(-90deg) translateZ(calc(var(--ds) / 2)); }
.c6 { transform: rotateY(180deg) translateZ(calc(var(--ds) / 2)); }
.sombra-dado { position: absolute; left: 10%; right: 10%; bottom: -14%; height: 18%; border-radius: 50%; background: radial-gradient(ellipse, rgba(0,0,0,.35), transparent 70%); z-index: -1; }
.dados.agitando { animation: agitar .09s infinite alternate; }
@keyframes agitar { from { transform: translate(-3px, -2px) rotate(-6deg); } to { transform: translate(3px, 2px) rotate(6deg); } }
.dados.lanzando .dado-escena { animation: lanzar 1.25s cubic-bezier(.3,.6,.4,1) both; }
.dados.lanzando .dado-escena + .dado-escena { animation-duration: 1.35s; animation-name: lanzar2; }
@keyframes lanzar { 0% { transform: translate(-170%, -260%) scale(1.5); } 40% { transform: translate(20%, 0) scale(1); } 55% { transform: translate(-6%, -55%) scale(1.05); } 70% { transform: translate(4%, 0); } 82% { transform: translate(-2%, -18%); } 92%, 100% { transform: none; } }
@keyframes lanzar2 { 0% { transform: translate(170%, -260%) scale(1.5); } 42% { transform: translate(-20%, 0) scale(1); } 57% { transform: translate(8%, -60%) scale(1.05); } 72% { transform: translate(-4%, 0); } 84% { transform: translate(2%, -15%); } 94%, 100% { transform: none; } }
.dados.lanzando .sombra-dado { animation: sombra 1.25s ease both; }
@keyframes sombra { 0% { opacity: .2; transform: scale(.5); } 40%, 70% { opacity: 1; transform: scale(1); } 55% { opacity: .5; transform: scale(.7); } 100% { opacity: 1; } }
.dados.dobles .cara { box-shadow: inset 0 0 0 2px #f59e0b, 0 0 18px 4px rgba(245,158,11,.7); }
.dados.dobles .cubo { animation: brilloDobles 1s ease-in-out 2; }
@keyframes brilloDobles { 50% { filter: brightness(1.15) drop-shadow(0 0 8px #fde68a); } }
.total-dados { position: relative; z-index: 3; min-height: 1em; font-family: 'Lilita One', sans-serif; font-size: clamp(.9rem, 3.4vw, 1.5rem); color: #b45309; opacity: 0; transform: scale(.4); transition: all .35s cubic-bezier(.2,1.6,.4,1); }
.total-dados.ver { opacity: 1; transform: scale(1); }

/* casilla pisada al avanzar */
.cas.pisada { animation: pisada .35s ease; }
@keyframes pisada { 40% { filter: brightness(1.25); box-shadow: inset 0 0 0 2px #fde68a; } }

/* Logo del centro */
.logo-centro { position: relative; width: 78%; max-width: 380px; border-radius: 12px; box-shadow: 0 8px 22px rgba(0,0,0,.35); animation: logoFlota 5s ease-in-out infinite; }
@keyframes logoFlota { 50% { transform: translateY(-3px) rotate(-.6deg); } }
.logo-inicio { width: 100%; max-width: 520px; border-radius: 18px; box-shadow: 0 20px 50px rgba(0,0,0,.55); display: block; margin: 0 auto; }

/* Animaciones extra */
.anim .gran.sacude { display: inline-block; animation: sacude .5s ease 3; }
@keyframes sacude { 25% { transform: rotate(-12deg) scale(1.1); } 75% { transform: rotate(12deg) scale(1.1); } }
.anim .gran.baila { display: inline-block; animation: baila .4s ease-in-out infinite alternate; }
@keyframes baila { from { transform: rotate(-15deg) translateY(0); } to { transform: rotate(15deg) translateY(-8px); } }
.anim.cobrar { position: relative; overflow: hidden; }
.billetes { position: absolute; inset: 0; pointer-events: none; }
.billetes i { position: absolute; top: -30px; font-style: normal; font-size: 1.4rem; animation: billete 1.4s ease-in both; }
@keyframes billete { to { transform: translateY(260px) rotate(200deg); opacity: 0; } }
.anim.vendido .sello-txt { display: inline-block; border: 4px solid #fff; padding: 2px 14px; border-radius: 8px; animation: selloTxt .45s .35s cubic-bezier(.2,1.8,.4,1) both; }
@keyframes selloTxt { from { transform: scale(2.6) rotate(-14deg); opacity: 0; } to { transform: scale(1) rotate(-8deg); opacity: 1; } }
.anim.cobro-pagadiario { background: linear-gradient(135deg, #1c1917, #3f6212); border: 4px solid #a3e635; position: relative; overflow: hidden; }
.moto-llega { font-size: 3.2rem; line-height: 1; display: block; width: fit-content; margin: 0 auto 6px; animation: motoLlega 1.3s cubic-bezier(.2,.9,.3,1) both; }
@keyframes motoLlega { 0% { transform: translateX(-120vw) rotate(-8deg); } 70% { transform: translateX(12px) rotate(6deg); } 85% { transform: translateX(-4px) rotate(-2deg); } 100% { transform: none; } }
.anim.cobro-pagadiario h2 { animation: aparecer .3s 1.2s both; } .anim.cobro-pagadiario p { animation: aparecer .3s 1.4s both; }

/* ═════════════ INTERFAZ 3D ═════════════ */

/* Botones con relieve (se hunden al tocarlos) */
.fondo-dc .btn { box-shadow: 0 4px 0 rgba(0,0,0,.4), 0 8px 18px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.18); transition: transform .08s, box-shadow .08s, filter .15s; background: linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,.05)); }
.fondo-dc .btn:hover { filter: brightness(1.12); }
.fondo-dc .btn:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 1px 0 rgba(0,0,0,.4), 0 3px 8px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.18); }
.fondo-dc .btn.primario { background: linear-gradient(180deg, #fcd34d 0%, #f97316 55%, #ea580c 100%); color: #fff; text-shadow: 0 2px 0 rgba(124,45,18,.55); box-shadow: 0 6px 0 #9a3412, 0 14px 28px rgba(249,115,22,.45), inset 0 2px 0 rgba(255,255,255,.55), inset 0 -3px 0 rgba(0,0,0,.12); letter-spacing: .01em; }
.fondo-dc .btn.primario:active:not(:disabled) { transform: translateY(5px); box-shadow: 0 1px 0 #9a3412, 0 4px 10px rgba(249,115,22,.4), inset 0 2px 0 rgba(255,255,255,.55); }
.fondo-dc .btn.primario.grande { font-family: 'Lilita One', 'Nunito', sans-serif; font-weight: 400; font-size: 1.3rem; }
.fondo-dc .btn.peligro { background: linear-gradient(180deg, #f87171, #b91c1c); border: 0; box-shadow: 0 5px 0 #7f1d1d, 0 10px 20px rgba(0,0,0,.3), inset 0 2px 0 rgba(255,255,255,.35); }
.fondo-dc .btn:disabled { filter: grayscale(.7); }

/* Paneles con profundidad */
.fondo-dc .tarjeta { background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.04) 40%, rgba(0,0,0,.08)); border: 1px solid rgba(255,255,255,.16); border-top-color: rgba(255,255,255,.3); box-shadow: 0 2px 0 rgba(255,255,255,.04) inset, 0 8px 0 rgba(0,0,0,.25), 0 24px 50px rgba(0,0,0,.5); }
.fondo-dc .pestana.activa { background: linear-gradient(180deg, #fbbf24, #f97316); color: #fff; box-shadow: 0 3px 0 #9a3412; text-shadow: 0 1px 0 rgba(0,0,0,.3); }
.fondo-dc .opcion-modo, .fondo-dc .opcion-meta { box-shadow: 0 4px 0 rgba(0,0,0,.35); transition: transform .12s, box-shadow .12s; }
.fondo-dc .opcion-modo.activa, .fondo-dc .opcion-meta.activa { transform: translateY(-3px); box-shadow: 0 7px 0 #9a3412, 0 12px 24px rgba(245,158,11,.25); }

/* ── Selector de personaje ── */
.sel-pj { --pc: #f59e0b; outline: none; }
.sel-pj .escenario { --rx: 0deg; --ry: 0deg; position: relative; height: clamp(300px, 72vw, 380px); border-radius: 22px; overflow: hidden; perspective: 900px; outline: none; touch-action: pan-y; user-select: none;
  background: radial-gradient(120% 90% at 50% 100%, color-mix(in srgb, var(--pc) 55%, #000) 0%, #0b1020 62%);
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--pc) 60%, transparent), inset 0 -40px 80px rgba(0,0,0,.6), 0 8px 0 rgba(0,0,0,.35), 0 20px 40px rgba(0,0,0,.5); transition: background .5s, box-shadow .5s; }
.sel-pj .escenario:focus-visible { box-shadow: inset 0 0 0 3px #fde68a, 0 8px 0 rgba(0,0,0,.35); }
.sel-pj .fondo-esc { position: absolute; inset: 0; background: linear-gradient(transparent 55%, rgba(0,0,0,.35)), repeating-linear-gradient(90deg, rgba(255,255,255,.03) 0 2px, transparent 2px 36px); }
.sel-pj .rayos { position: absolute; left: 50%; top: 42%; width: 900px; height: 900px; margin: -450px 0 0 -450px; background: repeating-conic-gradient(from 0deg, color-mix(in srgb, var(--pc) 45%, transparent) 0 8deg, transparent 8deg 22deg); -webkit-mask: radial-gradient(circle, #000 5%, transparent 55%); mask: radial-gradient(circle, #000 5%, transparent 55%); animation: rayosGiran 18s linear infinite; opacity: .75; }
@keyframes rayosGiran { to { transform: rotate(360deg); } }
.sel-pj .foco { position: absolute; left: 50%; top: -10%; width: 70%; height: 110%; transform: translateX(-50%); background: linear-gradient(180deg, rgba(255,255,255,.28), rgba(255,255,255,0) 85%); clip-path: polygon(40% 0, 60% 0, 100% 100%, 0 100%); filter: blur(6px); opacity: .7; }
.sel-pj .plataforma { position: absolute; left: 50%; bottom: 20%; width: 58%; max-width: 270px; aspect-ratio: 3.2; transform: translateX(-50%) rotateX(var(--rx)) ; }
.sel-pj .plataforma i:first-child { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(ellipse at 50% 40%, color-mix(in srgb, var(--pc) 70%, #fff) 0%, var(--pc) 40%, color-mix(in srgb, var(--pc) 40%, #000) 75%); box-shadow: 0 10px 0 color-mix(in srgb, var(--pc) 30%, #000), 0 0 50px 10px color-mix(in srgb, var(--pc) 60%, transparent); }
.sel-pj .plataforma i:last-child { position: absolute; inset: -14%; border-radius: 50%; border: 3px dashed color-mix(in srgb, var(--pc) 70%, #fff); opacity: .6; animation: anilloGira 6s linear infinite; }
@keyframes anilloGira { to { transform: rotate(360deg); } }
.sel-pj .heroe { position: absolute; left: 50%; bottom: 25%; width: min(62%, 250px); aspect-ratio: 1; transform: translateX(-50%); perspective: 700px; z-index: 3; }
.sel-pj .heroe-in { width: 100%; height: 100%; display: grid; place-items: center; transform: rotateX(var(--rx)) rotateY(var(--ry)); transform-style: preserve-3d; transition: transform .15s ease-out; animation: heroeFlota 3.2s ease-in-out infinite; }
.sel-pj .heroe-in img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 16px 12px rgba(0,0,0,.55)) drop-shadow(0 0 22px color-mix(in srgb, var(--pc) 70%, transparent)); pointer-events: none; }
.sel-pj .heroe-in .emo { font-size: 8rem; line-height: 1; filter: drop-shadow(0 12px 10px rgba(0,0,0,.5)); }
@keyframes heroeFlota { 0%, 100% { translate: 0 0; rotate: -1.5deg; } 50% { translate: 0 -10px; rotate: 1.5deg; } }
.sel-pj .escenario.entrando .heroe-in img, .sel-pj .escenario.entrando .heroe-in .emo { animation: heroeEntra .75s cubic-bezier(.2,1.35,.35,1) both; }
@keyframes heroeEntra { 0% { transform: translateY(-120%) scale(.25) rotateY(-540deg); opacity: 0; filter: brightness(4) drop-shadow(0 0 0 transparent); } 55% { transform: translateY(6%) scale(1.12, .9) rotateY(0); opacity: 1; filter: brightness(1.6); } 75% { transform: translateY(-4%) scale(.96, 1.05); } 100% { transform: none; } }
.sel-pj .destello { position: absolute; left: 50%; top: 55%; width: 20px; height: 20px; margin: -10px; border-radius: 50%; background: #fff; opacity: 0; pointer-events: none; z-index: 4; }
.sel-pj .escenario.entrando .destello { animation: destello .6s .32s ease-out both; }
@keyframes destello { 0% { opacity: .95; transform: scale(1); box-shadow: 0 0 60px 30px #fff, 0 0 120px 60px var(--pc); } 100% { opacity: 0; transform: scale(28); box-shadow: none; } }
.sel-pj .escenario.entrando .plataforma i:first-child { animation: plataformaGolpe .5s .36s ease-out both; }
@keyframes plataformaGolpe { 30% { transform: scale(1.18, .8); filter: brightness(1.8); } }
.sel-pj .chispas { position: absolute; left: 50%; top: 58%; z-index: 4; pointer-events: none; }
.sel-pj .chispas i { position: absolute; width: 8px; height: 8px; border-radius: 2px; opacity: 0; }
.sel-pj .escenario.entrando .chispas i { animation: chispa .9s .35s cubic-bezier(.1,.8,.3,1) both; }
@keyframes chispa { 0% { opacity: 1; transform: translate(0, 0) rotate(0) scale(1.4); } 100% { opacity: 0; transform: translate(var(--x), var(--y)) rotate(540deg) scale(.4); } }
.sel-pj .placa { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 14px 12px; text-align: center; z-index: 5; background: linear-gradient(transparent, rgba(0,0,0,.75) 45%); }
.sel-pj .placa small { display: block; font-size: .64rem; font-weight: 900; letter-spacing: .25em; color: color-mix(in srgb, var(--pc) 45%, #fff); }
.sel-pj .nombre-pj { margin: 0; font-family: 'Lilita One', sans-serif; font-weight: 400; font-size: clamp(1.7rem, 7.5vw, 2.4rem); line-height: 1; color: #fff; text-transform: uppercase; letter-spacing: .02em; text-shadow: 0 3px 0 color-mix(in srgb, var(--pc) 55%, #000), 0 6px 14px rgba(0,0,0,.6); }
.sel-pj .escenario.entrando .nombre-pj { animation: nombreGolpe .5s .3s cubic-bezier(.2,1.8,.4,1) both; }
@keyframes nombreGolpe { 0% { transform: scale(2.6) rotate(-6deg); opacity: 0; letter-spacing: .3em; } 100% { transform: none; opacity: 1; } }
.sel-pj .frase { margin: 3px 0 0; font-weight: 800; font-size: .9rem; color: #fde68a; min-height: 1.3em; }
.sel-pj .escenario.entrando .frase { animation: aparecer .4s .65s both; }
.sel-pj .flecha { position: absolute; top: 42%; z-index: 6; width: 44px; height: 54px; border-radius: 14px; border: 0; font-size: 2rem; font-weight: 900; line-height: 1; color: #fff; cursor: pointer; background: linear-gradient(180deg, rgba(255,255,255,.25), rgba(255,255,255,.08)); box-shadow: 0 4px 0 rgba(0,0,0,.4); backdrop-filter: blur(4px); }
.sel-pj .flecha:active { transform: translateY(3px); box-shadow: 0 1px 0 rgba(0,0,0,.4); }
.sel-pj .flecha.izq { left: 10px; } .sel-pj .flecha.der { right: 10px; }
.sel-pj .rejilla-pj { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 12px; perspective: 700px; }
.carta-pj { --pc: #f59e0b; position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 2px 5px; border-radius: 14px; border: 0; cursor: pointer; color: #fff; font: inherit; overflow: hidden;
  background: linear-gradient(160deg, color-mix(in srgb, var(--pc) 55%, #1f2937), #111827 80%); box-shadow: inset 0 0 0 2px rgba(255,255,255,.12), 0 5px 0 rgba(0,0,0,.45);
  transform: rotateX(14deg); transform-origin: bottom; transition: transform .2s cubic-bezier(.2,1.4,.4,1), box-shadow .2s; animation: cartaPjEntra .5s calc(var(--i) * 45ms) cubic-bezier(.2,1.4,.4,1) both; }
@keyframes cartaPjEntra { from { opacity: 0; transform: rotateX(80deg) translateY(20px); } }
.carta-pj .im { width: 100%; aspect-ratio: 1; display: grid; place-items: center; font-size: 1.8rem; }
.carta-pj .im img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 4px 3px rgba(0,0,0,.5)); transition: transform .2s; }
.carta-pj b { font-size: .6rem; font-weight: 900; text-transform: uppercase; letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.carta-pj .brillo-c { position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.35) 48%, transparent 60%); transform: translateX(-120%); pointer-events: none; }
.carta-pj:hover:not(:disabled) { transform: rotateX(0) translateY(-5px) scale(1.06); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--pc) 80%, #fff), 0 9px 0 rgba(0,0,0,.45), 0 0 20px color-mix(in srgb, var(--pc) 50%, transparent); }
.carta-pj:hover:not(:disabled) .brillo-c { transform: translateX(120%); transition: transform .6s; }
.carta-pj:hover:not(:disabled) .im img { transform: scale(1.1) rotate(-4deg); }
.carta-pj.activa { transform: rotateX(0) translateY(-7px) scale(1.08); z-index: 2; box-shadow: inset 0 0 0 3px #fde68a, 0 10px 0 color-mix(in srgb, var(--pc) 40%, #000), 0 0 26px 4px color-mix(in srgb, var(--pc) 75%, transparent); }
.carta-pj.activa::after { content: '▲'; position: absolute; top: -2px; left: 50%; transform: translateX(-50%) rotate(180deg); color: #fde68a; font-size: .6rem; animation: flechaSel .6s ease-in-out infinite alternate; }
@keyframes flechaSel { to { top: 3px; } }
.carta-pj.ocupada { filter: grayscale(1) brightness(.55); cursor: not-allowed; transform: rotateX(14deg) scale(.95); }
.carta-pj .dueno-c { position: absolute; left: 0; right: 0; top: 38%; font-style: normal; font-size: .58rem; font-weight: 900; background: rgba(0,0,0,.8); color: #fca5a5; transform: rotate(-12deg); padding: 1px 0; }
.carta-pj .dueno-c:empty { display: none; }
@media (max-width: 420px) { .sel-pj .rejilla-pj { gap: 6px; } .carta-pj b { font-size: .52rem; } }

/* botón de personaje en la lista (modo un dispositivo) */
.pj-mini { --pc: #f59e0b; height: 74px; border-radius: 14px; border: 0; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 3px; color: #fff; font: inherit; background: linear-gradient(160deg, color-mix(in srgb, var(--pc) 60%, #1f2937), #111827); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--pc) 70%, #fff), 0 4px 0 rgba(0,0,0,.45); transition: transform .12s; font-size: 1.8rem; line-height: 1; }
.pj-mini img { width: 50px; height: 50px; object-fit: contain; filter: drop-shadow(0 3px 2px rgba(0,0,0,.5)); }
.pj-mini small { font-size: .52rem; font-weight: 900; text-transform: uppercase; margin-top: 1px; white-space: nowrap; overflow: hidden; max-width: 68px; }
.pj-mini:hover { transform: translateY(-2px) rotate(-2deg); } .pj-mini:active { transform: translateY(3px); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--pc) 70%, #fff), 0 1px 0 rgba(0,0,0,.45); }
.modal-pj { position: fixed; inset: 0; z-index: 80; background: rgba(3,6,15,.85); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 14px; overflow-y: auto; }
.modal-pj:not(.oculto) .caja-pj { animation: cajaPj .45s cubic-bezier(.2,1.3,.4,1) both; }
@keyframes cajaPj { from { opacity: 0; transform: perspective(900px) rotateX(35deg) translateY(60px) scale(.85); } }
.caja-pj { width: 100%; max-width: 560px; display: grid; gap: 14px; }

/* ── Tablero en 3D ── */
.col-tablero { perspective: 1600px; }
.tablero-dc { transition: transform .6s cubic-bezier(.2,.9,.3,1); transform-origin: 50% 60%;
  box-shadow: inset 0 0 0 3px #d9c58a, 0 2px 0 #b89b55, 0 5px 0 #8a6d2f, 0 9px 0 #6b5220, 0 12px 0 #4a3813, 0 34px 60px rgba(0,0,0,.65);
  background: linear-gradient(145deg, #3b4d2e, #1f2c18); }
.vista3d .tablero-dc { transform: rotateX(20deg) scale(.96); }
@media (max-width: 560px) { .vista3d .tablero-dc { transform: rotateX(14deg) scale(.98); } }
.cas { background: linear-gradient(160deg, #fbf5e4, #efe4c6); box-shadow: inset 0 1px 0 #fff, inset 0 -2px 0 rgba(120,90,30,.18), 0 1px 1px rgba(0,0,0,.25); }
.cas.especial { background: linear-gradient(160deg, #f2e9cf, #e4d6ae); }
.cas .foto { position: absolute; inset: 0; background-position: center; background-size: cover; background-repeat: no-repeat; opacity: .5; transition: opacity .25s; }
.cas:hover .foto { opacity: .85; }
.cas .cuerpo, .cas .banda, .cas .dueno, .cas .casas { z-index: 1; }
.cas .banda { box-shadow: inset 0 1px 0 rgba(255,255,255,.4), inset 0 -2px 0 rgba(0,0,0,.2); }
.cas .nm, .cas .pr { text-shadow: 0 0 3px #fbf5e4, 0 0 3px #fbf5e4, 0 0 2px #fbf5e4; position: relative; }
.cas .fichas { z-index: 3; }
.cas:hover { filter: brightness(1.06); z-index: 4; }
.centro-tab { box-shadow: inset 0 0 0 2px rgba(180,140,60,.35), inset 0 6px 16px rgba(0,0,0,.15); }
.ficha { position: relative; background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--c) 60%, #fff), var(--c) 60%, color-mix(in srgb, var(--c) 60%, #000)); box-shadow: 0 0 0 2px #fff, 0 3px 0 color-mix(in srgb, var(--c) 50%, #000), 0 6px 8px rgba(0,0,0,.55); overflow: visible; }
.ficha img { object-fit: contain; transform: scale(1.25) translateY(-8%); filter: drop-shadow(0 2px 1px rgba(0,0,0,.5)); }
.ficha.activa { animation: fichaActiva 1s ease-in-out infinite; }
@keyframes fichaActiva { 50% { transform: translateY(-4px) scale(1.18); box-shadow: 0 0 0 2px #fff, 0 3px 0 color-mix(in srgb, var(--c) 50%, #000), 0 12px 14px rgba(0,0,0,.4), 0 0 14px 4px #fde68a; } }

/* ── Tarjeta de propiedad 3D ── */
.modal-fondo { perspective: 1200px; backdrop-filter: blur(4px); }
.modal-caja.carta3d { --rx: 0deg; --ry: 0deg; position: relative; transform: rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .12s ease-out; border: 6px solid #fbf5e4; outline: 2px solid #c9a24a; outline-offset: -10px;
  box-shadow: 0 1px 0 #e7dab5, 0 3px 0 #d8c48f, 0 5px 0 #c4ab6a, 0 7px 0 #a88c49, 0 30px 70px rgba(0,0,0,.7); animation: carta3dEntra .7s cubic-bezier(.2,1.15,.35,1) both; }
@keyframes carta3dEntra { 0% { transform: rotateY(-200deg) rotateX(25deg) translateY(120px) scale(.5); opacity: 0; } 60% { opacity: 1; } 100% { transform: rotateX(var(--rx)) rotateY(var(--ry)); } }
.modal-caja.carta3d::after { content: ''; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; background: radial-gradient(circle at var(--bx, 30%) var(--by, 20%), rgba(255,255,255,.45), transparent 45%); mix-blend-mode: soft-light; }
.modal-caja.carta3d .tarj-prop .cab { background: linear-gradient(180deg, color-mix(in srgb, var(--g) 80%, #fff), var(--g) 45%, color-mix(in srgb, var(--g) 70%, #000)); box-shadow: inset 0 -3px 0 rgba(0,0,0,.2); }
.modal-caja.carta3d .tarj-prop .cab h3 { text-shadow: 0 3px 0 rgba(0,0,0,.35); }
.modal-caja.carta3d .tarj-prop .img { box-shadow: inset 0 0 0 1px rgba(0,0,0,.1); animation: fotoEntra .9s .25s ease both; }
@keyframes fotoEntra { from { filter: brightness(2) saturate(0); } }
.tarj-prop .btn { box-shadow: 0 4px 0 #000; } .tarj-prop .btn.primario { box-shadow: 0 4px 0 #9a3412; } .tarj-prop .btn.cerrar { box-shadow: none; }

/* ── Cartas de suerte / La Vaca como cartas físicas ── */
.capa { perspective: 1100px; }
@keyframes anim-in { from { transform: rotateX(55deg) translateY(80px) scale(.5); opacity: 0; } 70% { transform: rotateX(-6deg) scale(1.03); opacity: 1; } to { transform: none; opacity: 1; } }
.anim.carta-fisica { background: none; box-shadow: none; padding: 0; width: min(330px, 86vw); aspect-ratio: 5/7; animation: none; position: relative; transform-style: preserve-3d; }
.carta-fisica .giro { position: absolute; inset: 0; transform-style: preserve-3d; animation: cartaGiro 1.1s cubic-bezier(.3,1.2,.4,1) both; }
@keyframes cartaGiro { 0% { transform: translateY(70vh) rotateY(0) rotateZ(-20deg) scale(.5); } 45% { transform: translateY(-10px) rotateY(0) rotateZ(4deg) scale(1.05); } 60% { transform: translateY(-10px) rotateY(0) rotateZ(0) scale(1.05); } 100% { transform: rotateY(180deg); } }
.carta-fisica .cara-c { position: absolute; inset: 0; border-radius: 20px; backface-visibility: hidden; -webkit-backface-visibility: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 22px; text-align: center; color: #fff;
  border: 6px solid #fff; box-shadow: 0 3px 0 #ddd, 0 6px 0 #bbb, 0 30px 70px rgba(0,0,0,.6); }
.carta-fisica .dorso { background: repeating-linear-gradient(45deg, rgba(255,255,255,.12) 0 10px, transparent 10px 20px), var(--fondo-c); }
.carta-fisica .dorso .marca-c { font-family: 'Lilita One'; font-size: 1.8rem; line-height: 1; text-shadow: 0 3px 0 rgba(0,0,0,.3); }
.carta-fisica .dorso .gran { font-size: 5rem; }
.carta-fisica .frente { transform: rotateY(180deg); background: radial-gradient(circle at 50% 20%, rgba(255,255,255,.25), transparent 60%), var(--fondo-c); }
.carta-fisica .frente::after { content: ''; position: absolute; inset: 0; border-radius: 14px; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.45) 45%, transparent 60%); background-size: 250% 100%; animation: brilloCarta 1.2s 1.1s ease both; pointer-events: none; }
@keyframes brilloCarta { from { background-position: 120% 0; } to { background-position: -60% 0; } }
.carta-fisica.suerte { --fondo-c: linear-gradient(160deg, #047857, #10b981 60%, #065f46); }
.carta-fisica.vaca { --fondo-c: linear-gradient(160deg, #92400e, #f59e0b 60%, #78350f); }
.carta-fisica .frente .gran { font-size: 3.4rem; line-height: 1; } .carta-fisica .frente h2 { font-family: 'Lilita One'; font-weight: 400; font-size: 1.7rem; margin: 8px 0 4px; line-height: 1.05; } .carta-fisica .frente p { margin: 0; font-weight: 800; }
.carta-fisica .frente small { letter-spacing: .2em; font-weight: 900; font-size: .7rem; opacity: .9; }
.anim.carta-fisica.saliendo { animation: cartaSale .3s ease both; } @keyframes cartaSale { to { transform: translateY(-40px) scale(.85); opacity: 0; } }

/* ── Jugadores / turno con volumen ── */
.jug-fila { background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(0,0,0,.25)); box-shadow: 0 3px 0 rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.08); transition: transform .2s; }
.jug-fila.activo { transform: translateX(4px) scale(1.02); box-shadow: 0 0 0 2px #f59e0b, 0 4px 0 #9a3412, 0 0 22px rgba(245,158,11,.35); }
.jug-fila .av, .turno-cab .av { background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--c) 55%, #fff), var(--c) 60%, color-mix(in srgb, var(--c) 55%, #000)); box-shadow: 0 0 0 2px rgba(255,255,255,.7), 0 3px 0 color-mix(in srgb, var(--c) 45%, #000); overflow: visible; }
.jug-fila .av img, .turno-cab .av img { object-fit: contain; transform: scale(1.25) translateY(-6%); filter: drop-shadow(0 2px 2px rgba(0,0,0,.5)); }
.turno-cab .av { width: 64px; height: 64px; font-size: 2.2rem; }
.turno-cab.nuevo .av { animation: turnoAv .7s cubic-bezier(.2,1.5,.4,1) both; } @keyframes turnoAv { from { transform: scale(.2) rotate(-200deg); } }
.turno-cab h2 { font-family: 'Lilita One', sans-serif; font-weight: 400; font-size: 1.4rem; }

/* ── Sala de espera: personajes en fila ── */
.lobby-pjs { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; margin: 14px 0; perspective: 800px; }
.lobby-pj { --c: #f59e0b; position: relative; border-radius: 16px; padding: 8px 6px 8px; text-align: center; background: linear-gradient(170deg, color-mix(in srgb, var(--c) 55%, #111827), #0b1020 85%); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--c) 60%, transparent), 0 6px 0 rgba(0,0,0,.45); transform: rotateX(8deg); }
.lobby-pj.nuevo { animation: lobbyEntra .8s cubic-bezier(.2,1.4,.4,1) both; }
@keyframes lobbyEntra { 0% { transform: translateY(-80px) rotateY(-360deg) scale(.3); opacity: 0; } 100% { transform: rotateX(8deg); opacity: 1; } }
.lobby-pj .im { width: 100%; aspect-ratio: 1; display: grid; place-items: center; font-size: 3rem; }
.lobby-pj .im img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 6px 5px rgba(0,0,0,.55)); animation: heroeFlota 3s ease-in-out infinite; animation-delay: calc(var(--i) * -.4s); }
.lobby-pj b { display: block; font-size: .85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lobby-pj small { display: block; font-size: .65rem; color: color-mix(in srgb, var(--c) 40%, #fff); font-weight: 800; text-transform: uppercase; }
.lobby-pj .x { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; cursor: pointer; font-size: .7rem; }
.lobby-pj.desconectado { filter: grayscale(.8); }
.lobby-pj.vacio { background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 2px rgba(255,255,255,.08); display: grid; place-items: center; min-height: 130px; color: var(--suave); font-size: 1.6rem; transform: rotateX(8deg); }

/* ── Narrador: subtítulo de lo que dice ── */
.globo-voz { position: fixed; left: 50%; top: 14px; z-index: 75; display: flex; align-items: center; gap: 10px; max-width: min(92vw, 560px); padding: 10px 16px 10px 12px; border-radius: 18px;
  background: linear-gradient(180deg, #fde68a, #f59e0b); color: #431407; font-weight: 900; font-size: .98rem; line-height: 1.25; box-shadow: 0 5px 0 #9a3412, 0 16px 34px rgba(0,0,0,.45);
  transform: translate(-50%, -140%) rotate(-2deg); opacity: 0; transition: transform .35s cubic-bezier(.2,1.5,.4,1), opacity .25s; pointer-events: none; }
.globo-voz.ver { transform: translate(-50%, 0) rotate(-1deg); opacity: 1; }
.globo-voz::after { content: ''; position: absolute; left: 34px; bottom: -9px; border: 10px solid transparent; border-top-color: #f59e0b; border-bottom: 0; }
.globo-voz .bocina { font-size: 1.5rem; animation: bocina .35s ease-in-out infinite alternate; }
@keyframes bocina { to { transform: scale(1.15) rotate(-8deg); } }

/* ═════════════ MÁQUINA, ¡SUÉLTALA! Y NEGOCIOS ═════════════ */
.aviso.bot-piensa { background: linear-gradient(90deg, rgba(34,211,238,.15), rgba(168,85,247,.15)); border: 1px solid rgba(34,211,238,.4); }
.insignia-bot { position: absolute; top: 4px; left: 6px; font-size: 1.1rem; filter: drop-shadow(0 2px 2px rgba(0,0,0,.5)); z-index: 2; }

/* ¡Suéltala, mi llave! */
.sueltala-caja { margin-top: 10px; padding: 10px 12px; border-radius: 14px; background: linear-gradient(135deg, rgba(239,68,68,.22), rgba(249,115,22,.18)); border: 1px solid rgba(249,115,22,.5); display: grid; gap: 6px; }
.sueltala-caja .titulo { margin: 0; color: #fed7aa; } .sueltala-caja p { margin: 0; font-size: .8rem; color: #fde68a; }
.fondo-dc .btn.btn-sueltala { background: linear-gradient(180deg, #f87171, #dc2626 60%, #991b1b); border: 0; color: #fff; box-shadow: 0 5px 0 #7f1d1d, 0 10px 20px rgba(220,38,38,.35), inset 0 2px 0 rgba(255,255,255,.35); font-size: .9rem; }
.tarj-prop .btn.btn-sueltala { background: linear-gradient(180deg, #f87171, #dc2626); box-shadow: 0 4px 0 #7f1d1d; }
.anim.sueltala { background: radial-gradient(circle at 50% 30%, #f97316, #b91c1c 55%, #450a0a); border: 4px solid #fde68a; position: relative; overflow: hidden; }
.anim.sueltala::before { content: ''; position: absolute; inset: -50%; background: repeating-conic-gradient(rgba(253,230,138,.18) 0 10deg, transparent 10deg 24deg); animation: rayosGiran 6s linear infinite; }
.anim.sueltala > * { position: relative; }
.anim.sueltala .gran { font-size: 4.2rem; }
.anim.sueltala h2 { font-size: 2.2rem; text-shadow: 0 4px 0 #7f1d1d; animation: nombreGolpe .5s .15s cubic-bezier(.2,1.8,.4,1) both; }
.anim .rotulo { display: block; letter-spacing: .25em; font-weight: 900; font-size: .7rem; color: #fde68a; }
.anim.negocio { background: linear-gradient(135deg, #0f766e, #14b8a6 60%, #22c55e); border: 4px solid #99f6e4; position: relative; overflow: hidden; }

/* Negociador */
.modal-caja.caja-neg { max-width: 560px; background: #0f172a; color: var(--texto); border: 1px solid rgba(255,255,255,.15); box-shadow: 0 8px 0 rgba(0,0,0,.4), 0 30px 70px rgba(0,0,0,.7); max-height: 92vh; overflow-y: auto; }
.negociar { padding: 16px; }
.cab-neg { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.cab-neg h3 { margin: 0; font-family: 'Lilita One', sans-serif; font-weight: 400; font-size: 1.5rem; }
.tabs-neg { display: flex; gap: 4px; background: rgba(0,0,0,.35); padding: 4px; border-radius: 12px; }
.tabs-neg button { border: 0; border-radius: 9px; padding: 7px 10px; font: inherit; font-weight: 800; font-size: .82rem; color: var(--suave); background: transparent; cursor: pointer; }
.tabs-neg button.activa { background: linear-gradient(180deg, #fbbf24, #f97316); color: #fff; box-shadow: 0 3px 0 #9a3412; }
.con-quien { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 8px; }
.quien { --c: #f59e0b; flex: 0 0 auto; display: flex; align-items: center; gap: 6px; padding: 5px 10px 5px 5px; border-radius: 999px; border: 2px solid transparent; background: rgba(255,255,255,.07); color: var(--texto); font: inherit; font-weight: 800; font-size: .85rem; cursor: pointer; }
.quien small { color: #86efac; margin-left: 2px; }
.quien .av { width: 30px; height: 30px; border-radius: 50%; background: var(--c); display: grid; place-items: center; overflow: visible; } .quien .av img { width: 100%; height: 100%; object-fit: contain; transform: scale(1.2); }
.quien.sel { border-color: #f59e0b; background: rgba(245,158,11,.18); }
.lados { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 480px) { .lados { grid-template-columns: 1fr; } }
.lado { padding: 10px; border-radius: 14px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); display: grid; gap: 8px; align-content: start; }
.lado h4 { margin: 0; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: #fde68a; }
.chips { display: flex; flex-wrap: wrap; gap: 5px; }
.chip-neg { --g: #999; display: inline-flex; align-items: center; gap: 4px; padding: 5px 8px; border-radius: 9px; border: 0; border-left: 5px solid var(--g); background: rgba(0,0,0,.35); color: var(--texto); font: inherit; font-size: .78rem; font-weight: 800; cursor: pointer; transition: transform .1s; }
.chip-neg.sel { background: linear-gradient(180deg, rgba(245,158,11,.4), rgba(245,158,11,.2)); box-shadow: inset 0 0 0 2px #f59e0b; transform: translateY(-1px); }
.chip-neg:disabled { opacity: .4; cursor: not-allowed; }
.chip-plata { display: inline-flex; padding: 5px 9px; border-radius: 9px; background: rgba(34,197,94,.2); color: #86efac; font-weight: 900; font-size: .85rem; }
.plata { display: grid; gap: 3px; font-weight: 800; font-size: .85rem; } .plata small { color: var(--suave); font-weight: 700; }
.plata input { width: 100%; padding: 8px 10px; border-radius: 10px; border: 1px solid rgba(255,255,255,.2); background: rgba(0,0,0,.35); color: #fff; font: inherit; font-size: 1rem; font-weight: 900; }
.resumen-neg { margin: 12px 0; padding: 10px 12px; border-radius: 12px; background: rgba(245,158,11,.12); border: 1px dashed rgba(245,158,11,.5); font-size: .9rem; }
.pie-neg { display: grid; grid-template-columns: 2fr 1fr; gap: 8px; }
.caja-neg .btn.cerrar { background: transparent; box-shadow: none; }

/* Ventana de oferta recibida */
.oferta-neg { position: fixed; inset: 0; z-index: 66; display: grid; place-items: center; padding: 16px; background: rgba(3,6,15,.72); backdrop-filter: blur(4px); perspective: 1000px; }
.oferta-caja { width: 100%; max-width: 420px; padding: 18px; border-radius: 20px; background: linear-gradient(180deg, #1e293b, #0f172a); border: 2px solid #f59e0b; box-shadow: 0 8px 0 #9a3412, 0 30px 70px rgba(0,0,0,.7); animation: cajaPj .5s cubic-bezier(.2,1.3,.4,1) both; }
.oferta-caja .pasa { text-align: center; padding: 8px; margin: -4px 0 12px; border-radius: 12px; background: rgba(245,158,11,.2); font-weight: 800; }
.oferta-cab { --c: #f59e0b; display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.oferta-cab .av { width: 58px; height: 58px; border-radius: 50%; background: var(--c); display: grid; place-items: center; overflow: visible; box-shadow: 0 0 0 3px #fff; } .oferta-cab .av img { width: 100%; height: 100%; object-fit: contain; transform: scale(1.25) translateY(-6%); }
.oferta-cab small { letter-spacing: .2em; font-weight: 900; font-size: .65rem; color: #fde68a; } .oferta-cab h3 { margin: 0; font-family: 'Lilita One', sans-serif; font-weight: 400; font-size: 1.5rem; }
.oferta-lados { display: grid; gap: 10px; } .oferta-lados > div { padding: 10px; border-radius: 12px; background: rgba(255,255,255,.05); display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.oferta-lados h4 { width: 100%; margin: 0 0 2px; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--suave); }
.oferta-caja .fila2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fondo-dc .tarj-prop .btn:not(.primario):not(.cerrar):not(.btn-sueltala) { background: linear-gradient(180deg, #374151, #1f2937); color: #fff; box-shadow: 0 4px 0 #000; }
