/* ═══════════════ PASE TRUQUERO (lienzo de Mathi, filas 14 y 15) ═══════════════
   Pantalla del pase (#paseT), la carta 3D para reclamar (#paseRv) y la tarjeta
   del Inicio (#inPase). Medidas y colores del lienzo (Pase.dc.html, Revela2.dc.html
   e Inicio.dc.html). Íconos como <img>: nada de <svg> inline en listas. */

/* ── Tarjeta del Inicio ─────────────────────────────────────────────────── */
@keyframes bl-flota{0%,100%{transform:translateY(0)}50%{transform:translateY(-2px)}}
@keyframes bl-tiembla{0%,70%,100%{transform:rotate(0) scale(1)}74%{transform:rotate(-7deg) scale(1.08)}78%{transform:rotate(6deg) scale(1.1)}82%{transform:rotate(-5deg) scale(1.08)}86%{transform:rotate(3deg) scale(1.04)}90%{transform:rotate(0) scale(1)}}
@keyframes bl-halo{0%,100%{opacity:.55;transform:scale(.9)}50%{opacity:1;transform:scale(1.15)}}
@keyframes bl-rayos{to{transform:rotate(360deg)}}
@keyframes bl-chispa{0%{opacity:0;transform:translateY(4px) scale(.4)}40%{opacity:1}100%{opacity:0;transform:translateY(-16px) scale(1)}}
@keyframes bl-destello{0%,80%,100%{opacity:0;transform:scale(.3) rotate(0)}88%{opacity:1;transform:scale(1) rotate(45deg)}}
#vistaLobby .in-pase.listo {
  height: 60px; flex-shrink: 0; box-sizing: border-box; padding: 0 12px 0 10px; border-radius: 16px; margin: 0;
  display: flex; align-items: center; gap: 12px; text-align: left; cursor: pointer; width: 100%;
  font-family: 'Nunito', sans-serif; line-height: normal; background: #13301D; border: 1.5px solid #1D3F29;
}
#vistaLobby .in-pase.listo:hover { background: #13301D; }
#vistaLobby .in-pase.listo.con-premio { background: #2A1E0D; border: 1.5px solid #F2C14E; box-shadow: 0 0 18px rgba(242,193,78,0.3); }
#vistaLobby .in-pase.listo.con-premio:hover { background: #2A1E0D; }
#vistaLobby .ip-baul { position: relative; width: 54px; height: 54px; margin: -6px 0 -4px -4px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
#vistaLobby .ip-flota { position: relative; width: 50px; height: 46px; display: block; animation: bl-flota 3s ease-in-out infinite; }
#vistaLobby .ip-flota img { width: 50px; height: 46px; object-fit: contain; display: block; }
#vistaLobby .ip-destello { position: absolute; right: 4px; top: 6px; font-size: 10px; line-height: 1; color: #FFF2C2; text-shadow: 0 0 4px #FFD36B; animation: bl-destello 4s ease-in-out infinite; }
#vistaLobby .ip-rayos { position: absolute; left: -10px; top: -10px; width: 74px; height: 74px; border-radius: 50%; background: repeating-conic-gradient(rgba(255,210,90,0.45) 0deg 12deg, rgba(255,210,90,0) 12deg 30deg); -webkit-mask: radial-gradient(circle, #000 25%, transparent 68%); mask: radial-gradient(circle, #000 25%, transparent 68%); animation: bl-rayos 6s linear infinite; }
#vistaLobby .ip-halo { position: absolute; left: -4px; top: -4px; width: 62px; height: 62px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255,214,100,0.95), rgba(255,180,40,0.35) 55%, rgba(255,180,40,0) 100%); animation: bl-halo 1.1s ease-in-out infinite; }
#vistaLobby .ip-tiembla { position: relative; display: block; transform-origin: 50% 90%; animation: bl-tiembla 2.4s ease-in-out infinite; }
#vistaLobby .ip-tiembla img { width: 50px; height: 51px; object-fit: contain; display: block; }
#vistaLobby .ip-chispa { position: absolute; font-size: 9px; color: #FFE7A3; animation: bl-chispa 1.6s ease-out infinite; }
#vistaLobby .ip-punto { position: absolute; top: -2px; right: -2px; width: 14px; height: 14px; border-radius: 50%; background: #EF6A55; border: 2px solid #0A2310; box-sizing: border-box; }
#vistaLobby .ip-txt { flex-grow: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
#vistaLobby .ip-fila { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
#vistaLobby .ip-tit { font-size: 14px; font-weight: 800; color: #F4EFE3; }
#vistaLobby .ip-cuenta { font-size: 13px; font-weight: 800; color: #F2C14E; font-variant-numeric: tabular-nums; }
#vistaLobby .ip-barra { height: 6px; border-radius: 999px; background: #0A2310; display: block; }
#vistaLobby .ip-barra span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #C98A1B, #FFD36B); }
#vistaLobby .ip-sub { font-size: 12px; font-weight: 700; color: #B7C4B0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#vistaLobby .in-pase.con-premio .ip-sub { font-weight: 800; color: #F2C14E; }
#vistaLobby .ip-flecha { width: 18px; height: 18px; flex-shrink: 0; }

/* ── Pantalla del pase ──────────────────────────────────────────────────── */
@keyframes ps-glow{0%,100%{box-shadow:0 0 0 0 rgba(242,193,78,.7),0 4px 0 #7A4A2A}50%{box-shadow:0 0 0 7px rgba(242,193,78,0),0 4px 0 #7A4A2A}}
@keyframes ps-fill{from{width:0}}
@keyframes ps-in{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
@keyframes ps-pop{0%{opacity:0;transform:scale(.3)}65%{opacity:1;transform:scale(1.12)}100%{opacity:1;transform:scale(1)}}
@keyframes ps-halo{0%,100%{opacity:.55;transform:scale(.9)}50%{opacity:1;transform:scale(1.12)}}
@keyframes ps-tiembla{0%,70%,100%{transform:rotate(0) scale(1)}74%{transform:rotate(-7deg) scale(1.08)}78%{transform:rotate(6deg) scale(1.1)}82%{transform:rotate(-5deg) scale(1.08)}86%{transform:rotate(3deg) scale(1.04)}90%{transform:rotate(0) scale(1)}}
#paseT {
  position: fixed; inset: 0; z-index: 900; background: #0A2310; color: #F4EFE3; font-family: 'Nunito', sans-serif; line-height: normal;
  display: flex; flex-direction: column; overflow: hidden;
}
#paseT.oculto { display: none; }
#paseT button { font-family: inherit; line-height: normal; }
#paseT .ps-cab { display: flex; align-items: center; gap: 10px; padding: calc(16px + env(safe-area-inset-top, 0px)) 16px 10px; flex-shrink: 0; }
#paseT .ps-volver { width: 44px; height: 44px; margin: 0; padding: 0; border: none; border-radius: 12px; background: #13301D; display: flex; align-items: center; justify-content: center; flex-shrink: 0; cursor: pointer; }
#paseT .ps-volver:hover { background: #13301D; }
#paseT .ps-volver img { width: 20px; height: 20px; }
#paseT .ps-cab__txt { flex-grow: 1; min-width: 0; display: flex; flex-direction: column; }
#paseT .ps-cab__tit { font-family: 'Bitter', serif; font-weight: 800; font-size: 20px; line-height: 1.1; }
#paseT .ps-cab__temp { font-size: 12px; font-weight: 800; color: #F2C14E; }
#paseT .ps-quedan { height: 30px; padding: 0 10px; border-radius: 999px; border: 1px solid #2C5539; background: #13301D; font-size: 12px; font-weight: 800; color: #E6D3A8; display: flex; align-items: center; gap: 5px; flex-shrink: 0; box-sizing: border-box; white-space: nowrap; }
#paseT .ps-quedan img { width: 13px; height: 13px; }
#paseT .ps-lista { flex-grow: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 0 16px calc(64px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 12px; }
#paseT .ps-lista > * { flex-shrink: 0; }
#paseT .ps-incentivo { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 12px; border-radius: 14px; background: linear-gradient(90deg, rgba(242,193,78,0) 0%, rgba(242,193,78,0.16) 50%, rgba(242,193,78,0) 100%); font-family: 'Bitter', serif; font-size: 17px; font-weight: 800; color: #FFE7A3; text-align: center; }
#paseT .ps-todo { border-radius: 18px; background: linear-gradient(90deg, #3B2A12 0%, #2A1E0D 100%); border: 1.5px solid #F2C14E; padding: 12px 12px 12px 14px; display: flex; align-items: center; gap: 12px; box-shadow: 0 0 20px rgba(242,193,78,0.25); animation: ps-in .4s ease-out both; }
#paseT .ps-todo__txt { flex-grow: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
#paseT .ps-todo__tit { font-size: 15px; font-weight: 800; color: #FFE7A3; }
#paseT .ps-todo__sub { font-size: 12px; color: #E6D3A8; }
#paseT .ps-btn-oro { height: 42px; margin: 0; padding: 0 14px; border: none; border-radius: 12px; background: linear-gradient(180deg, #FFD36B 0%, #F2C14E 45%, #C98A1B 100%); color: #2B1A00; font-size: 14px; font-weight: 800; cursor: pointer; flex-shrink: 0; white-space: nowrap; animation: ps-glow 1.4s ease-in-out infinite; }
#paseT .ps-btn-oro:hover { background: linear-gradient(180deg, #FFD36B 0%, #F2C14E 45%, #C98A1B 100%); }
#paseT .ps-btn-oro:disabled { opacity: .6; cursor: default; animation: none; }
#paseT .ps-etapa { position: relative; border-radius: 22px; background: linear-gradient(160deg, #1C4A2B 0%, #13301D 55%, #0E2716 100%); border: 1.5px solid #C9A44A; padding: 16px; display: flex; flex-direction: column; gap: 12px; overflow: hidden; }
#paseT .ps-nueva { align-self: stretch; height: 30px; border-radius: 10px; background: linear-gradient(90deg, #C98A1B 0%, #FFD36B 50%, #C98A1B 100%); color: #2B1A00; font-size: 13px; font-weight: 800; letter-spacing: 0.06em; display: flex; align-items: center; justify-content: center; gap: 6px; animation: ps-pop .55s cubic-bezier(.2,.9,.3,1.3) both; }
#paseT .ps-nueva img { width: 14px; height: 14px; }
#paseT .ps-etapa__fila { display: flex; align-items: center; gap: 12px; }
#paseT .ps-baul { width: 62px; height: 56px; object-fit: contain; flex-shrink: 0; filter: drop-shadow(0 4px 8px rgba(0,0,0,0.4)); }
#paseT .ps-baul-abierto { position: relative; width: 62px; height: 60px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
#paseT .ps-baul-abierto .ps-halo { position: absolute; left: -6px; top: -6px; width: 74px; height: 72px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255,214,100,0.95), rgba(255,180,40,0.3) 55%, rgba(255,180,40,0) 100%); animation: ps-halo 1.1s ease-in-out infinite; }
#paseT .ps-baul-abierto .ps-tiembla { position: relative; display: block; transform-origin: 50% 90%; animation: ps-tiembla 2.4s ease-in-out infinite; }
#paseT .ps-baul-abierto img { width: 58px; height: 59px; object-fit: contain; display: block; }
#paseT .ps-rotulo { font-size: 11px; font-weight: 800; letter-spacing: 0.08em; color: #F2C14E; }
#paseT .ps-partidas { display: flex; align-items: baseline; gap: 6px; }
#paseT .ps-partidas b { font-family: 'Bitter', serif; font-weight: 800; font-size: 32px; line-height: 1.1; }
#paseT .ps-partidas span { font-size: 15px; font-weight: 700; color: #B7C4B0; }
#paseT .ps-barra { position: relative; height: 26px; }
#paseT .ps-barra__fondo { position: absolute; left: 0; right: 0; top: 9px; height: 8px; border-radius: 999px; background: #0A2310; }
#paseT .ps-barra__lleno { position: absolute; left: 0; top: 9px; height: 8px; border-radius: 999px; background: linear-gradient(90deg, #C98A1B, #FFD36B); animation: ps-fill .9s cubic-bezier(.3,.8,.3,1) both; }
#paseT .ps-marca { position: absolute; top: 4px; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; box-sizing: border-box; border: 3px solid #0E2716; background: #2C5539; }
#paseT .ps-marca.llego { background: #FFD36B; }
#paseT .ps-nums { position: relative; height: 14px; margin-top: -8px; font-size: 11px; font-weight: 800; color: #8FA08A; }
#paseT .ps-nums span { position: absolute; top: 0; width: 34px; margin-left: -17px; text-align: center; }
#paseT .ps-nums span.llego { color: #F2C14E; }
#paseT .ps-cierre { font-size: 13px; line-height: 1.4; color: #B7C4B0; }
#paseT .ps-completas { display: flex; flex-wrap: wrap; gap: 6px; }
#paseT .ps-completa { height: 24px; padding: 0 9px; border-radius: 999px; background: rgba(91,213,138,0.12); color: #5BD58A; font-size: 11px; font-weight: 800; display: flex; align-items: center; gap: 4px; }
#paseT .ps-completa img { width: 12px; height: 12px; }
#paseT .ps-titulo { font-size: 12px; font-weight: 800; letter-spacing: 0.06em; color: #8FA08A; margin-top: 2px; }
#paseT .ps-leyenda-txt { margin-top: -6px; font-size: 13px; line-height: 1.4; color: #B7C4B0; }
#paseT .ps-hitos { display: flex; flex-direction: column; gap: 8px; }
#paseT .ps-hito { display: flex; align-items: center; gap: 10px; padding: 10px 12px 10px 4px; border-radius: 16px; background: #13301D; border: 1.5px solid #13301D; }
#paseT .ps-hito.disponible { background: #2A1E0D; border: 1.5px solid #F2C14E; box-shadow: 0 0 18px rgba(242,193,78,0.25); }
#paseT .ps-hito.cobrado { background: #0E2716; border: 1.5px solid #1D3F29; }
#paseT .ps-hito__n { width: 54px; flex-shrink: 0; display: flex; flex-direction: column; align-items: center; color: #F2C14E; }
#paseT .ps-hito.bloqueado .ps-hito__n { color: #6E8069; }
#paseT .ps-hito__n small { font-size: 9px; font-weight: 800; letter-spacing: 0.04em; line-height: 1; }
#paseT .ps-hito__n b { font-family: 'Bitter', serif; font-size: 18px; font-weight: 800; line-height: 1.1; }
#paseT .ps-hito__ic { position: relative; width: 52px; height: 52px; flex-shrink: 0; border-radius: 14px; background: #0A2310; display: flex; align-items: center; justify-content: center; }
#paseT .ps-hito__ic > img { display: block; }
#paseT .ps-hito__emote { width: 48px; height: 48px; }
#paseT .ps-hito__emote > div { width: 100%; height: 100%; }
#paseT .ps-misterio { position: absolute; font-family: 'Bitter', serif; font-size: 26px; font-weight: 800; color: #F2C14E; text-shadow: 0 2px 6px rgba(0,0,0,0.6); }
#paseT .ps-misterio.violeta { color: #C9A2FF; }
#paseT .ps-hito__txt { flex-grow: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
#paseT .ps-hito__tit { font-size: 15px; font-weight: 800; }
/* el texto chico puede ir en dos líneas: nunca se corta con "..." */
#paseT .ps-hito__sub { font-size: 12px; line-height: 1.3; color: #8FA08A; }
#paseT .ps-hito.disponible .ps-hito__sub { color: #F2C14E; }
#paseT .ps-hito__estado { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; font-weight: 800; flex-shrink: 0; width: 64px; text-align: center; color: #8FA08A; }
#paseT .ps-hito__estado.ok { color: #5BD58A; }
#paseT .ps-hito__estado img { width: 18px; height: 18px; }
#paseT .ps-hito__estado.ok img { width: 20px; height: 20px; }
#paseT .ps-hito .ps-btn-oro { height: 40px; }
#paseT .ps-marco-mes { border-radius: 14px; background: #170E26; border: 1px solid #3E2A5E; padding: 10px 12px; display: flex; align-items: center; gap: 10px; }
#paseT .ps-marco-mes__img { position: relative; width: 40px; height: 40px; flex-shrink: 0; }
#paseT .ps-marco-mes__img .cara { position: absolute; left: 4px; top: 4px; width: 32px; height: 32px; border-radius: 50%; object-fit: cover; object-position: 50% 30%; background: #4A301E; filter: grayscale(.85) brightness(.7); }
#paseT .ps-marco-mes__img .aro { position: absolute; inset: 0; width: 40px; height: 40px; }
#paseT .ps-marco-mes__txt { min-width: 0; display: flex; flex-direction: column; gap: 3px; flex-grow: 1; }
#paseT .ps-marco-mes__fila { display: flex; justify-content: space-between; gap: 8px; }
#paseT .ps-marco-mes__fila b { font-size: 13px; font-weight: 800; }
#paseT .ps-marco-mes__fila span { font-size: 11px; color: #CDBBE6; white-space: nowrap; }
#paseT .ps-marco-mes__barra { height: 4px; border-radius: 999px; background: #120A1E; }
#paseT .ps-marco-mes__barra div { height: 100%; border-radius: 999px; background: linear-gradient(90deg, #8E5BD8, #C9A2FF); }
#paseT .ps-sigue { border-radius: 16px; border: 1.5px dashed #2C5539; padding: 12px 14px; display: flex; align-items: center; gap: 12px; color: #8FA08A; }
#paseT .ps-sigue img { width: 22px; height: 22px; flex-shrink: 0; }
#paseT .ps-sigue b { display: block; font-size: 14px; font-weight: 800; color: #B7C4B0; }
#paseT .ps-sigue span { font-size: 12px; }
#paseT .ps-vacio { padding: 40px 10px; text-align: center; color: #8FA08A; font-size: 14px; }
#paseT .ps-toast { position: absolute; left: 0; right: 0; top: 80px; display: flex; justify-content: center; pointer-events: none; z-index: 5; }
#paseT .ps-toast span { padding: 10px 16px; border-radius: 14px; background: #123C24; border: 2px solid #5BD58A; color: #F4EFE3; font-size: 14px; font-weight: 800; box-shadow: 0 8px 20px rgba(0,0,0,0.5); animation: ps-pop .55s cubic-bezier(.2,.9,.3,1.3) both; max-width: calc(100% - 32px); text-align: center; }
#paseT .ps-toast.error span { background: #3A1512; border-color: #EF6A55; }
@media (prefers-reduced-motion: reduce) {
  #paseT *, #vistaLobby .in-pase.listo * { animation: none !important; }
}

/* ── La carta 3D (Revela2) ──────────────────────────────────────────────── */
@keyframes rv-entra{0%{transform:translateY(560px) rotate(-28deg) scale(.55);opacity:0}60%{opacity:1}82%{transform:translateY(-14px) rotate(3deg) scale(1.04)}100%{transform:none;opacity:1}}
@keyframes rv-flota{0%,100%{transform:translateY(0)}50%{transform:translateY(-8px)}}
@keyframes rv-sacude{0%{transform:none}15%{transform:rotate(-3deg) scale(1.02)}30%{transform:rotate(3deg) scale(1.03)}45%{transform:rotate(-4deg) scale(1.04)}60%{transform:rotate(4deg) scale(1.05)}75%{transform:rotate(-5deg) scale(1.06)}90%{transform:rotate(5deg) scale(1.07)}100%{transform:scale(1.08)}}
@keyframes rv-pulso{0%,100%{opacity:.55;transform:scale(1)}50%{opacity:.9;transform:scale(1.08)}}
@keyframes rv-rayos{to{transform:rotate(360deg)}}
@keyframes rv-flash{0%{opacity:0}30%{opacity:.95}100%{opacity:0}}
@keyframes rv-in{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
@keyframes rv-mano{0%,100%{transform:translateY(0)}50%{transform:translateY(-6px)}}
@keyframes rv-brilla{0%{background-position:115% 0}55%,100%{background-position:-15% 0}}
@keyframes rv-suspenso{0%{transform:none}8%{transform:rotate(-1deg)}16%{transform:rotate(1deg)}24%{transform:rotate(-1.5deg) scale(1.01)}32%{transform:rotate(1.5deg) scale(1.02)}40%{transform:rotate(-2.5deg) scale(1.03)}48%{transform:rotate(2.5deg) scale(1.04)}56%{transform:rotate(-3.5deg) scale(1.06)}64%{transform:rotate(3.5deg) scale(1.08)}72%{transform:rotate(-5deg) scale(1.1)}80%{transform:rotate(5deg) scale(1.12)}88%{transform:rotate(-6deg) scale(1.14)}100%{transform:scale(1.18)}}
@keyframes rv-latido{0%,100%{box-shadow:0 0 18px 2px rgba(201,162,255,.35)}50%{box-shadow:0 0 60px 18px rgba(201,162,255,.85)}}
@keyframes rv-oscurece{from{opacity:0}to{opacity:1}}
@keyframes rv-temblor{0%,100%{transform:none}20%{transform:translate(-6px,3px)}40%{transform:translate(5px,-4px)}60%{transform:translate(-4px,2px)}80%{transform:translate(3px,-2px)}}
/* Arriba de todo (también de la barra de abajo, que con Clan o Carreras
   abiertos sube a 1001): con la carta abierta solo se toca la carta. */
#paseRv {
  position: fixed; inset: 0; z-index: 1050; overflow: hidden; touch-action: none; color: #F4EFE3; font-family: 'Nunito', sans-serif; line-height: normal;
  background: radial-gradient(120% 70% at 50% 38%, #163F24 0%, #0A2310 45%, #030A05 100%);
}
#paseRv.oculto { display: none; }
#paseRv button { font-family: inherit; line-height: normal; }
#paseRv.rv-temblor { animation: rv-temblor .45s ease-out; }
#paseRv canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
#paseRv .rv-cab { position: absolute; left: 16px; right: 16px; top: calc(18px + env(safe-area-inset-top, 0px)); display: flex; align-items: center; justify-content: space-between; z-index: 3; }
#paseRv .rv-cab > span:first-child { width: 40px; }
#paseRv .rv-de { flex-grow: 1; min-width: 0; padding: 0 6px; font-size: 12px; font-weight: 800; letter-spacing: 0.1em; color: #B7C4B0; text-align: center; white-space: nowrap; overflow: hidden; }
#paseRv .rv-saldo { height: 34px; padding: 0 10px 0 6px; border-radius: 999px; border: 1.5px solid #C98A1B; background: #2A1E0D; font-size: 14px; font-weight: 800; display: flex; align-items: center; gap: 5px; box-sizing: border-box; visibility: hidden; font-variant-numeric: tabular-nums; }
#paseRv .rv-saldo.visible { visibility: visible; }
#paseRv .rv-saldo img { width: 20px; height: 20px; border-radius: 5px; }
#paseRv .rv-oscuro { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 50% 37%, rgba(0,0,0,0) 0%, rgba(0,0,0,0.25) 22%, rgba(2,4,3,0.92) 55%); animation: rv-oscurece .8s ease-out both; }
#paseRv .rv-centro { position: absolute; left: 0; right: 0; top: calc(64px + env(safe-area-inset-top, 0px)); bottom: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 30px; padding: 0 24px 24px; box-sizing: border-box; }
#paseRv .rv-zona { position: relative; width: 220px; height: 330px; flex-shrink: 0; }
#paseRv .rv-aura { position: absolute; left: -40px; top: -30px; width: 300px; height: 390px; border-radius: 50%; pointer-events: none; animation: rv-pulso 1.8s ease-in-out infinite; }
#paseRv .rv-rayos { position: absolute; left: -190px; top: -135px; width: 600px; height: 600px; border-radius: 50%; pointer-events: none; -webkit-mask: radial-gradient(circle, #000 18%, transparent 62%); mask: radial-gradient(circle, #000 18%, transparent 62%); animation: rv-rayos 16s linear infinite; will-change: transform, opacity; }
/* Los rayos, el brillo y el flash se arman (y se pintan) mientras entra la
   carta, escondidos: al darla vuelta solo se prenden, sin trabarse. */
#paseRv .rv-rayos.espera { opacity: 0; }
#paseRv.rv-epico .rv-rayos { animation-duration: 7s; }
#paseRv .rv-carta { position: absolute; inset: 0; perspective: 1100px; }
#paseRv .rv-brillo { position: absolute; inset: 0; border-radius: 18px; pointer-events: none; transition: opacity .4s ease; opacity: 0; will-change: opacity; }
#paseRv .rv-brillo.latido { animation: rv-latido .6s ease-in-out infinite; }
#paseRv .rv-entra { width: 220px; height: 330px; animation: rv-entra .9s cubic-bezier(.2,.8,.25,1) both; }
#paseRv .rv-flota { width: 220px; height: 330px; }
#paseRv .rv-flota.on { animation: rv-flota 3s ease-in-out 1s infinite; }
#paseRv .rv-sacude { width: 220px; height: 330px; }
#paseRv .rv-sacude.sacude { animation: rv-sacude .55s ease-in both; }
#paseRv .rv-sacude.suspenso { animation: rv-suspenso 2.4s cubic-bezier(.55,0,.85,.6) both; }
#paseRv .rv-inclina { width: 220px; height: 330px; transform-style: preserve-3d; transform: rotateX(var(--ry, 0deg)) rotateY(var(--rx, 0deg)); transition: transform .25s ease-out; }
#paseRv .rv-gira { position: relative; width: 220px; height: 330px; transform-style: preserve-3d; transition: transform .9s cubic-bezier(.3,1.35,.45,1); }
#paseRv .rv-gira.abierta { transform: rotateY(180deg) scale(1.06); }
#paseRv.rv-rapido .rv-gira { transition-duration: .4s; }
#paseRv .rv-cara { position: absolute; inset: 0; border-radius: 18px; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
/* Chrome no hereda backface-visibility: lo que está adentro de cada cara también se oculta de espaldas. */
#paseRv .rv-cara > * { backface-visibility: hidden; -webkit-backface-visibility: hidden; }
#paseRv .rv-dorso { background: #0E2B5C; box-shadow: 0 20px 50px rgba(0,0,0,0.6); }
#paseRv .rv-dorso img { width: 100%; height: 100%; object-fit: cover; display: block; }
#paseRv .rv-reflejo { position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.55) 50%, transparent 65%); background-size: 250% 100%; background-repeat: no-repeat; background-position: 115% 0; animation: rv-brilla 2.4s ease-in-out 1.2s 3 both; }
#paseRv .rv-frente { transform: rotateY(180deg); box-sizing: border-box; background: radial-gradient(circle at 50% 38%, #2C5539 0%, #13301D 55%, #0A2310 100%); }
#paseRv .rv-frente__filo { position: absolute; inset: 8px; border-radius: 12px; box-shadow: inset 0 0 24px rgba(0,0,0,0.5); }
#paseRv .rv-frente__rotulo { position: absolute; left: 0; right: 0; top: 18px; display: flex; justify-content: center; }
#paseRv .rv-frente__rotulo span { padding: 3px 12px; border-radius: 999px; color: #1B1206; font-size: 11px; font-weight: 800; letter-spacing: 0.12em; }
#paseRv .rv-frente__premio { position: absolute; left: 20px; right: 20px; top: 56px; height: 190px; display: flex; align-items: center; justify-content: center; }
#paseRv .rv-lottie { width: 190px; height: 190px; }
#paseRv .rv-lottie.cargando { position: absolute; opacity: 0; }
#paseRv .rv-lottie > div { width: 100%; height: 100%; }
#paseRv .rv-frente__nombre { position: absolute; left: 14px; right: 14px; bottom: 18px; padding: 8px 6px; border-radius: 10px; background: rgba(0,0,0,0.35); text-align: center; font-family: 'Bitter', serif; font-size: 20px; font-weight: 800; color: #FFE7A3; }
/* Brillo de color FIJO, como queda con la carta quieta, en todas las cartas
   (personaje, emotes, exclusivo, marco): si se corría al mover el celu, el
   borde donde se repite el degradé entraba en la carta y parecía un error
   (pedido de Niko 31/10). */
#paseRv .rv-foil { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: color-dodge; background: linear-gradient(115deg, transparent 15%, rgba(255,0,170,0.55) 32%, rgba(0,220,255,0.55) 45%, rgba(255,240,0,0.55) 58%, rgba(0,255,150,0.45) 70%, transparent 85%); background-size: 260% 260%; background-position: 50% 50%; }
#paseRv .rv-tocar { position: absolute; inset: 0; margin: 0; padding: 0; border: none; background: transparent; border-radius: 18px; cursor: pointer; }
#paseRv .rv-tocar:hover { background: transparent; }
#paseRv .rv-flash { position: absolute; inset: 0; background: radial-gradient(circle at 50% 38%, #FFFFFF 0%, rgba(255,255,255,0) 60%); pointer-events: none; opacity: 0; will-change: opacity; }
#paseRv .rv-flash.on { animation: rv-flash .6s ease-out both; }
#paseRv .rv-abajo { width: 100%; max-width: 342px; min-height: 196px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
#paseRv .rv-pista__tit { font-family: 'Bitter', serif; font-size: 24px; font-weight: 800; }
#paseRv .rv-pista__mano { display: flex; align-items: center; gap: 8px; margin-top: 2px; font-size: 15px; font-weight: 800; color: #F2C14E; animation: rv-mano 1.1s ease-in-out infinite; }
#paseRv .rv-pista__mano img { width: 22px; height: 22px; }
#paseRv .rv-in { opacity: 0; animation: rv-in .45s ease-out both; }
#paseRv.rv-rapido .rv-in { animation-duration: .25s !important; animation-delay: .15s !important; }
#paseRv .rv-rareza { font-size: 12px; font-weight: 800; letter-spacing: 0.14em; animation-delay: .5s; }
#paseRv .rv-titulo { font-family: 'Bitter', serif; font-size: 28px; font-weight: 800; line-height: 1.1; color: #FFE7A3; animation-delay: .6s; }
#paseRv .rv-texto { font-size: 14px; line-height: 1.45; color: #B7C4B0; animation-delay: .7s; }
#paseRv .rv-ok { align-self: stretch; height: 56px; margin: 10px 0 0; border: none; border-radius: 16px; background: linear-gradient(180deg, #FFD36B 0%, #F2C14E 45%, #C98A1B 100%); color: #2B1A00; font-size: 17px; font-weight: 800; box-shadow: 0 5px 0 #7A4A2A; cursor: pointer; animation-delay: .85s; }
#paseRv .rv-ok:hover { background: linear-gradient(180deg, #FFD36B 0%, #F2C14E 45%, #C98A1B 100%); }
#paseRv .rv-saltar { position: absolute; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); height: 38px; margin: 0; padding: 0 16px; border-radius: 19px; border: 1px solid rgba(244,239,227,0.35); background: rgba(6,21,8,0.85); color: #F4EFE3; font-size: 13px; font-weight: 800; white-space: nowrap; cursor: pointer; z-index: 4; }
#paseRv .rv-saltar:hover { background: rgba(6,21,8,0.85); }
/* marco del mes en la carta: tu cara, la trenza y la chapita */
#paseRv .rv-marco { position: relative; width: 170px; height: 170px; filter: drop-shadow(0 0 18px rgba(201,162,255,0.6)); }
#paseRv .rv-marco .cara { position: absolute; left: 15px; top: 15px; width: 140px; height: 140px; border-radius: 50%; object-fit: cover; object-position: 50% 30%; background: #4A301E; }
#paseRv .rv-marco .aro { position: absolute; inset: 0; width: 170px; height: 170px; }
/* chapita del marco (Marco.dc.html): grande en el Perfil y la carta, chica en la mesa */
.marco-chapa { position: absolute; left: 50%; transform: translateX(-50%); z-index: 3; pointer-events: none; white-space: nowrap;
  background: linear-gradient(180deg, #E2A866, #B07434 50%, #7A4A20); font-family: 'Bitter', serif; font-weight: 800; color: #FFF2D6; }
.marco-chapa.grande { bottom: 0; padding: 4px 12px; border-radius: 9px; border: 1.5px solid #FFD9A0; font-size: 14px; text-shadow: 0 1px 0 #3A1E08; box-shadow: 0 3px 8px rgba(0,0,0,0.5); }
.marco-chapa.media { bottom: -2px; padding: 2px 8px; border-radius: 6px; border: 1px solid #FFD9A0; font-size: 10px; }
.marco-chapa.chica { bottom: -2px; padding: 1px 6px; border-radius: 5px; border: 1px solid #FFD9A0; font-size: 9px; }
@keyframes mc-aura{0%,100%{opacity:.35;transform:scale(1)}50%{opacity:.75;transform:scale(1.06)}}
.marco-aura { position: absolute; inset: -6px; border-radius: 50%; pointer-events: none; z-index: 0;
  background: radial-gradient(closest-side, rgba(201,162,255,0.7), rgba(201,162,255,0) 75%); animation: mc-aura 2.6s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .marco-aura { animation: none; } }
@media (prefers-reduced-motion: reduce) {
  #paseRv .rv-flota.on, #paseRv .rv-aura, #paseRv .rv-rayos, #paseRv .rv-pista__mano, #paseRv .rv-reflejo,
  #paseRv .rv-sacude.suspenso, #paseRv .rv-brillo.latido, #paseRv.rv-temblor { animation: none; }
}

/* ── Marco del Pase alrededor de una foto (lobby, chat, clan, mesa, perfil) ──
   La trenza sobresale de la foto: el contenedor deja de recortar y la foto
   se redondea sola. */
.con-marco { position: relative; overflow: visible !important; }
.con-marco > img:not(.marco-aro) { border-radius: 50%; }
.marco-aro { position: absolute; pointer-events: none; z-index: 2; max-width: none; }

/* ==========================================================================
   MARCO DE DICIEMBRE (trenza dorada de fin de año)
   La imagen del marco (512x512, fondo transparente) va encima de todo, en la caja.
   Adentro: un círculo de fondo (.md-fondo, 76% de la caja, color liso, justo debajo del aro)
   y el personaje ENTERO (.md-avatar, la cabeza con fondo transparente), centrado
   al 73%, para que se vea grande pero sin tocar el aro ni recortarse.

   Movimiento (todo en CSS, sin Lottie):
   - .md-entra   -> entrada: aparece girando y rebota. En la mesa va UNA vez al
                    empezar la partida; en el perfil, al abrirlo; al ganarlo, más grande.
   - .md-brillo  -> un brillo que recorre el aro. En el perfil se repite solo
                    (.md-brillo-loop). En la mesa se dispara cuando ese jugador gana
                    una mano o canta truco: agregar la clase .md-brilla un momento.
   - .md-chispas -> tres estrellitas que titilan arriba, junto al brillo.
   Lobby y chat: el marco quieto (sin clases de movimiento).
   Con "reducir movimiento" activado en el celu, no se anima nada.
   ========================================================================== */

.md-caja { position: relative; display: inline-block; }
.md-caja .md-fondo { position: absolute; left: 12%; top: 12%; width: 76%; height: 76%; border-radius: 50%; background: #3F2A1A; }
.md-caja .md-avatar { position: absolute; left: 13.5%; top: 13.5%; width: 73%; height: 73%; object-fit: contain; object-position: 50% 50%; }
.md-caja .md-marco { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

/* --- entrada --- */
@keyframes md-entra {
  0%   { transform: scale(.55) rotate(-35deg); opacity: 0; }
  55%  { transform: scale(1.1) rotate(6deg);   opacity: 1; }
  75%  { transform: scale(.96) rotate(-2deg); }
  100% { transform: scale(1) rotate(0); }
}
.md-entra .md-marco { animation: md-entra .9s cubic-bezier(.2,.7,.3,1) both; }

/* --- brillo que recorre el aro (recortado con la forma del marco) --- */
.md-brillo {
  position: absolute; inset: 0; pointer-events: none;
  -webkit-mask: var(--md-marco) center / 100% 100% no-repeat;
          mask: var(--md-marco) center / 100% 100% no-repeat;
  background: linear-gradient(115deg, transparent 38%, rgba(255,250,220,.95) 48%, rgba(255,255,255,1) 50%, rgba(255,250,220,.95) 52%, transparent 62%) no-repeat;
  background-size: 300% 300%;
  background-position: 110% 110%;
  opacity: 0;
}
@keyframes md-brillo {
  0%   { background-position: 110% 110%; opacity: 0; }
  10%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { background-position: -10% -10%; opacity: 0; }
}
/* ciclo de 7 s: brilla en el primer segundo y después descansa */
@keyframes md-brillo-ciclo {
  0%   { background-position: 110% 110%; opacity: 0; }
  2%   { opacity: 1; }
  12%  { opacity: 1; }
  16%  { background-position: -10% -10%; opacity: 0; }
  100% { background-position: -10% -10%; opacity: 0; }
}
.md-brilla .md-brillo { animation: md-brillo 1.1s ease-in-out 1; }
.md-brillo-loop .md-brillo { animation: md-brillo-ciclo 7s ease-in-out .9s infinite; }

/* --- chispitas arriba, donde están las estrellas del marco --- */
.md-chispa {
  position: absolute; width: 9%; aspect-ratio: 1; pointer-events: none; opacity: 0;
  background: radial-gradient(circle, #FFF8D6 0 18%, #FFD36B 40%, transparent 70%);
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
}
.md-chispa.c1 { left: 30%; top: 3%; }
.md-chispa.c2 { left: 62%; top: 1%;  width: 7%; }
.md-chispa.c3 { left: 46%; top: -4%; width: 11%; }
@keyframes md-titila { 0% { opacity: 0; transform: scale(.2) rotate(0); } 40% { opacity: 1; transform: scale(1) rotate(30deg); } 100% { opacity: 0; transform: scale(.4) rotate(60deg); } }
.md-brilla .md-chispa { animation: md-titila .9s ease-out 1; }
.md-brilla .md-chispa.c2 { animation-delay: .15s; }
.md-brilla .md-chispa.c3 { animation-delay: .3s; }
@keyframes md-titila-ciclo { 0% { opacity: 0; transform: scale(.2) rotate(0); } 5% { opacity: 1; transform: scale(1) rotate(30deg); } 13% { opacity: 0; transform: scale(.4) rotate(60deg); } 100% { opacity: 0; } }
.md-brillo-loop .md-chispa { animation: md-titila-ciclo 7s ease-out 1.1s infinite; }
.md-brillo-loop .md-chispa.c2 { animation-delay: 1.25s; }
.md-brillo-loop .md-chispa.c3 { animation-delay: 1.4s; }

@media (prefers-reduced-motion: reduce) {
  .md-entra .md-marco, .md-brillo, .md-chispa { animation: none !important; }
}

/* Cómo va en el juego (pase.js: ponerMarco y htmlMarco). Mismo armado que la
   vista previa de Mathi; la capa se pone sobre la foto que ya había. */
.md-caja.mc-capa { position: absolute; display: block; pointer-events: none; z-index: 2; }
.md-caja.mc-capa.mc-mesa { z-index: 0; }   /* en la mesa: arriba de la foto, abajo de las cartas y del emote del rival */
.md-caja .md-marco { max-width: none; }
/* Las imágenes del marco no toman los estilos de las fotos de cada lugar (perfil,
   Inicio, barra de abajo: padding, borde, fondo, redondeo). Tamaño y lugar van
   escritos en cada pieza (pase.js, ubicar). */
.mc-capa img { padding: 0 !important; margin: 0 !important; border: 0 !important; border-radius: 0 !important;
  background: none !important; box-sizing: content-box !important; max-width: none !important; max-height: none !important; }
/* Barra de abajo: la pestaña activa flota más grande; el marco flota entero, junto con la foto. */
.bottom-nav .bn-btn.activo .mc-capa img { animation: none; filter: none; }
.bottom-nav .bn-btn.activo .mc-capa { animation: bn-flota 2.6s ease-in-out infinite;
  filter: drop-shadow(0 7px 5px rgba(0,0,0,.5)) drop-shadow(0 0 10px rgba(242,193,78,.45)); }
@media (prefers-reduced-motion: reduce) { .bottom-nav .bn-btn.activo .mc-capa { animation: none; transform: translateY(-9px) scale(1.3); } }
.foto-oculta + .mc-capa .md-avatar { opacity: 0; transition: opacity .18s ease; }   /* emote encima de la foto: como la foto */
.md-caja.mc-suelto { display: block; width: 100%; height: 100%; }
#paseT .ps-marco-mes__img .md-avatar { filter: grayscale(.85) brightness(.7); }
#paseRv .rv-marco.rv-marco--md { filter: drop-shadow(0 0 18px rgba(242,193,78,0.55)); }

/* 081: el navideño se ve apagado hasta que llegás; hoja para elegir el emote. */
#paseT .ps-hito__emote.apagado { filter: grayscale(1) brightness(.55); }
#paseT .ps-elegir { position: absolute; inset: 0; z-index: 8; display: flex; align-items: flex-end; }
#paseT .ps-elegir__fondo { position: absolute; inset: 0; background: rgba(4, 14, 8, 0.72); }
#paseT .ps-elegir__hoja { position: relative; width: 100%; max-height: 86%; overflow-y: auto; box-sizing: border-box; padding: 20px 16px calc(18px + env(safe-area-inset-bottom)); border-radius: 22px 22px 0 0; background: #0F2417; border-top: 2px solid #2C5539; display: flex; flex-direction: column; gap: 12px; animation: ps-subir .3s ease-out both; }
#paseT .ps-elegir__tit { font-family: 'Bitter', serif; font-size: 20px; font-weight: 800; color: #F4EFE3; text-align: center; }
#paseT .ps-elegir__sub { font-size: 13px; color: #B7C4B0; text-align: center; margin-top: -6px; }
#paseT .ps-elegir__grilla { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
#paseT .ps-elegir__op { margin: 0; padding: 10px 6px 8px; border-radius: 16px; border: 2px solid #2C5539; background: #13301D; display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: pointer; color: #F4EFE3; }
#paseT .ps-elegir__op.sel { border-color: #F2C14E; background: #2A2410; box-shadow: 0 0 0 3px rgba(242, 193, 78, 0.25); }
#paseT .ps-elegir--exclusivo .ps-elegir__op.sel { border-color: #C9A2FF; background: #251A33; box-shadow: 0 0 0 3px rgba(201, 162, 255, 0.25); }
#paseT .ps-elegir__emote { width: 64px; height: 64px; }
#paseT .ps-elegir__emote > div { width: 100%; height: 100%; }
#paseT .ps-elegir__nom { font-size: 12px; font-weight: 800; line-height: 1.2; text-align: center; }
#paseT .ps-elegir__ok { width: 100%; height: 48px; font-size: 15px; }
#paseT .ps-elegir__ok:disabled { animation: none; opacity: .55; cursor: default; }
#paseT .ps-elegir__no { margin: 0; height: 40px; border: none; background: transparent; color: #B7C4B0; font-size: 14px; font-weight: 800; cursor: pointer; }
@keyframes ps-subir{from{opacity:0;transform:translateY(40px)}to{opacity:1;transform:none}}
