/* La celebración de un match, en votar y en pedir.
 *
 * Salió de vote_jornada.html el 4 de octubre de 2026, cuando la invitación a
 * opinar de pedir empezó a celebrar igual (Jaime: «la misma celebración, no
 * algo pequeño»). La forma está en `includes/celebracion_match.html` y el
 * comportamiento en `js/celebracion-match.js`. Las clases conservan el
 * prefijo `vote-match-` de cuando era solo de votar.
 */
/* ---- El match: la escena bajo el arco ----
   La misma escena de la pestaña Matches de Mi música, que arma
   static/js/bajo-el-arco.js: dos discos bajo el arco del isotipo, la
   luz que sube un tercio, dos tercios o entero según el escalón, y las
   canciones que comparten cayendo por la ranura.

   Reemplaza a los discos con la ilustración de la pareja, el corazón,
   los haces dorados, la bola y el confeti (3 oct 2026). Un match puede
   ser amistad, y el momento que define a Wurlitzer se arma con sus
   propias piezas y su paleta. La firma va debajo de la acción, como
   pide la guía de marca, y ya no en una píldora con letras arriba.
   Lo escrito aparece cuando cae la primera canción. */
.vote-match-burst {
    position: fixed;
    inset: 0;
    z-index: 70;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.4rem;
    overflow: hidden;
    background: radial-gradient(120% 70% at 50% 38%, #15100e 0%, #090909 60%, #050405 100%);
    animation: vote-match-in .32s ease;
}
.vote-match-burst[hidden] { display: none !important; }
.vote-match-burst.is-closing { opacity: 0; transition: opacity .24s ease; }
.vote-match-burst.is-closing .vote-match-card { scale: .96; transition: scale .24s ease; }
@keyframes vote-match-in { from { opacity: 0; } }
.vote-match-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: min(100%, 26rem);
    text-align: center;
}
/* La escena es lo principal del momento: grande (Jaime, 3 oct 2026). */
.vote-match-arco { width: min(100%, 360px); }
/* Quién, el escalón y lo que comparten: las mismas medidas y colores
   de la tarjeta de Matches en Mi música, un poco más grandes porque
   acá la escena ocupa la pantalla. */
.vote-match-quien { display: grid; justify-items: center; gap: .3rem; margin-top: .8rem; }
.vote-match-title {
    margin: 0;
    color: #F6F1E8;
    font: 600 1.85rem/1.1 Sora, sans-serif;
    letter-spacing: -.02em;
    text-wrap: balance;
}
.vote-match-nivel {
    color: #e0b39b;
    font: 800 11.5px Manrope, sans-serif;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.vote-match-comun { display: grid; justify-items: center; gap: .55rem; margin-top: 1.1rem; }
.vote-match-comun[hidden] { display: none !important; }
.vote-match-comun-titulo {
    color: var(--copper-pale, #e1ab98);
    font: 800 .66rem Manrope, sans-serif;
    letter-spacing: .12em;
    text-transform: uppercase;
}
/* La pila de Mi música, quieta: unas carátulas chuecas encimadas. */
.vote-match-pila { display: flex; align-items: center; padding-left: 10px; }
.vote-match-pila img {
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    margin-left: -10px;
    border-radius: 9px;
    object-fit: cover;
    background: #151214;
    box-shadow: 0 0 0 2px #080708, 0 6px 14px rgba(0,0,0,.45);
}
.vote-match-pila img:nth-child(6n+1) { rotate: -4deg; }
.vote-match-pila img:nth-child(6n+2) { rotate: 3deg; }
.vote-match-pila img:nth-child(6n+3) { rotate: -2deg; }
.vote-match-pila img:nth-child(6n+4) { rotate: 4deg; }
.vote-match-pila img:nth-child(6n+5) { rotate: -3deg; }
.vote-match-pila img:nth-child(6n+6) { rotate: 2deg; }
.vote-match-pila span {
    flex-shrink: 0;
    margin-left: .7rem;
    padding: .4rem .7rem;
    border: 1px solid rgba(241,232,219,.12);
    border-radius: 999px;
    color: rgba(241,232,219,.72);
    font: 800 12.5px Manrope, sans-serif;
    font-variant-numeric: tabular-nums;
}
.vote-match-con {
    color: rgba(241,232,219,.62);
    font: 600 .82rem Manrope, sans-serif;
}
/* Compartir manda: es el botón de Mi música («Compartir el match»), en
   grande. Seguir votando queda debajo, discreto pero a la vista. Sin
   nada que compartir (la vista previa, un navegador sin la hoja),
   Seguir votando vuelve a ser el principal. */
.vote-match-acciones { display: grid; justify-items: center; gap: .35rem; margin-top: 1.4rem; }
.vote-match-compartir,
.vote-match-continue.is-principal {
    min-height: 3rem;
    padding: 0 1.8rem;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(105deg, #d78a63, #b86a4f);
    color: #1b0d07;
    font: 800 .95rem Manrope, sans-serif;
    cursor: pointer;
}
.vote-match-compartir[hidden] { display: none; }
.vote-match-continue {
    min-height: 2.75rem;
    padding: 0 1.4rem;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: rgba(241,232,219,.78);
    font: 800 .9rem Manrope, sans-serif;
    cursor: pointer;
}
/* El foco llega solo al abrir, para el lector de pantalla. El
   navegador lo pintaba como un aro grueso aunque nadie usara teclado;
   ahora el borde cobre aparece solo si se está usando el teclado. */
.vote-match-acciones button:focus, .vote-match-acciones button:focus-visible { outline: none; }
[data-con-teclado] .vote-match-acciones button:focus-visible { outline: 2px solid rgba(239,177,132,.75); outline-offset: 3px; }
.vote-match-firma { display: block; width: 44px; height: auto; margin-top: 1.15rem; opacity: .92; }
.vote-match-aparece { opacity: 0; translate: 0 8px; }
.vote-match-aparece.is-dentro {
    opacity: 1;
    translate: 0 0;
    transition: opacity .5s ease, translate .5s cubic-bezier(.2,.8,.2,1);
}
.is-dentro .vote-match-compartir:hover,
.is-dentro .vote-match-continue.is-principal:hover { translate: 0 -2px; filter: brightness(1.06); }

@media (min-width: 981px) {
    .vote-match-card { width: min(100%, 32rem); }
}

@media (max-height: 700px) {
    .vote-match-arco { width: min(100%, 260px); }
    .vote-match-title { margin-top: .7rem; font-size: 1.6rem; }
}

@media (prefers-reduced-motion: reduce) {
    .vote-match-burst { animation: none; }
    .vote-match-aparece.is-dentro { transition: none; }
}
