/* Celebración de un récord (js/24p-record.js): tarjeta dorada sobre el reproductor */
.iq-rec { position: fixed; inset: 0; z-index: 9600; display: flex; align-items: flex-start; justify-content: center;
  padding-top: calc(env(safe-area-inset-top, 0px) + 92px); pointer-events: auto; }
.iq-rec-rayos { position: absolute; left: 50%; top: calc(env(safe-area-inset-top, 0px) + 160px); width: 520px; height: 520px; margin-left: -260px; margin-top: -260px;
  border-radius: 50%; opacity: 0; background: repeating-conic-gradient(from 0deg, rgba(246,221,140,.26) 0deg 6deg, transparent 6deg 22deg);
  -webkit-mask-image: radial-gradient(circle, #000 18%, transparent 68%); mask-image: radial-gradient(circle, #000 18%, transparent 68%); }
.iq-rec-onda { position: absolute; left: 50%; top: calc(env(safe-area-inset-top, 0px) + 160px); width: 180px; height: 180px; margin: -90px 0 0 -90px;
  border-radius: 50%; border: 4px solid rgba(255,226,140,.95); box-shadow: 0 0 30px rgba(242,203,104,.8); opacity: 0; }
.iq-rec-card { position: relative; width: min(92vw, 380px); display: flex; align-items: center; gap: 14px; padding: 18px 18px 18px 14px; border-radius: 24px; overflow: hidden;
  background: linear-gradient(160deg, #28200e, #0c0b09 55%, #1e180a);
  box-shadow: 0 24px 60px rgba(0,0,0,.75), 0 0 0 1.5px rgba(226,192,99,.75), 0 0 46px rgba(226,192,99,.4), inset 0 1px 0 rgba(255,241,191,.3);
  opacity: 0; transform: translateY(40px) scale(.55); }
.iq-rec-trofeo { flex: 0 0 auto; width: 74px; height: 80px; filter: drop-shadow(0 0 14px rgba(242,203,104,.6)); transform: scale(.2) rotate(-25deg); }
.iq-rec-trofeo svg { width: 100%; height: 100%; }
.iq-rec-txt { min-width: 0; flex: 1; }
.iq-rec-kick { font: 400 12px/1 "Michroma", sans-serif; letter-spacing: .2em; text-transform: uppercase; color: #e2c063; }
.iq-rec-num { display: flex; align-items: baseline; gap: 4px; margin-top: 4px; }
.iq-rec-num b, .iq-rec-num small { font-family: "Barlow Condensed", sans-serif; font-weight: 900;
  background: linear-gradient(180deg, #fff1bf 0%, #f2cf6d 38%, #c9a84c 70%, #8c6a22 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.iq-rec-num b { font-size: 62px; line-height: .95; font-variant-numeric: tabular-nums; }
.iq-rec-num small { font-size: 26px; }
.iq-rec-mas { margin-left: auto; align-self: center; padding: 5px 10px; border-radius: 999px; background: rgba(74,222,128,.16); border: 1px solid rgba(74,222,128,.6);
  font: 800 15px/1 "Barlow Condensed", sans-serif; color: #4ade80; opacity: 0; transform: scale(.5); }
.iq-rec-ej { margin-top: 6px; font: 600 14px/1.25 "Barlow", sans-serif; color: rgba(244,244,246,.9); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.iq-rec-brillo { position: absolute; top: -40%; bottom: -40%; width: 70px; left: -90px; transform: skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255,250,225,.5), transparent); }

.iq-rec.is-on .iq-rec-card { opacity: 1; transform: none; transition: transform .7s cubic-bezier(.34,1.56,.64,1), opacity .25s ease; }
.iq-rec.is-on .iq-rec-trofeo { transform: none; transition: transform .7s .12s cubic-bezier(.34,1.8,.64,1); }
.iq-rec.is-on .iq-rec-mas { opacity: 1; transform: none; transition: transform .4s .8s cubic-bezier(.34,2,.64,1), opacity .2s .8s; }
.iq-rec.is-on .iq-rec-rayos { animation: iqRecRayos 2.6s ease-out forwards; }
.iq-rec.is-on .iq-rec-onda { animation: iqRecOnda .9s .05s cubic-bezier(.16,1,.3,1) forwards; }
.iq-rec.is-on .iq-rec-brillo { animation: iqRecBrillo .8s .85s ease-in-out forwards; }
.iq-rec.is-off .iq-rec-card { opacity: 0; transform: translateY(-16px) scale(.96); transition: all .28s ease-in; }
.iq-rec.is-off .iq-rec-rayos { opacity: 0; transition: opacity .25s; }
@keyframes iqRecRayos { 0% { opacity: 0; transform: scale(.5) rotate(0); } 30% { opacity: 1; } 100% { opacity: .55; transform: scale(1.15) rotate(40deg); } }
@keyframes iqRecOnda { 0% { opacity: 1; transform: scale(.2); } 100% { opacity: 0; transform: scale(3.4); } }
@keyframes iqRecBrillo { from { transform: translateX(0) skewX(-20deg); } to { transform: translateX(560px) skewX(-20deg); } }
@media (prefers-reduced-motion: reduce) {
  .iq-rec-card, .iq-rec-trofeo, .iq-rec-mas { transform: none !important; transition: opacity .2s !important; }
  .iq-rec-rayos, .iq-rec-onda, .iq-rec-brillo { display: none; }
}
