/* Film VS Film — célébration cinéma, uniquement au déblocage d'un nouveau badge. */
.fvf-burst {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 24px;
  pointer-events: none;
  isolation: isolate;
  color: #fffaf0;
  font-family: Arial, Helvetica, sans-serif;
  text-align: center;
  animation: fvf-burst-visibility 3.45s both;
}
.fvf-burst, .fvf-burst * { box-sizing: border-box; }
.fvf-burst__backdrop {
  position: absolute;
  inset: 0;
  z-index: -3;
  background: radial-gradient(circle at 50% 49%, #a35e1b8a 0, #1c1824e8 29%, #040d1bee 72%);
  animation: fvf-backdrop 3.35s both;
}
.fvf-burst__flash {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: radial-gradient(ellipse at center, #fff2c6d6, #fbb64c63 18%, transparent 53%);
  opacity: 0;
  animation: fvf-flash 3.35s ease-out both;
}
.fvf-burst__rays {
  position: absolute;
  width: min(115vmax, 1200px);
  aspect-ratio: 1;
  left: 50%; top: 50%;
  z-index: -1;
  background: repeating-conic-gradient(from 12deg, #ffeab30d 0deg 6deg, transparent 7deg 17deg, #ffb65c1c 18deg 23deg, transparent 24deg 35deg);
  -webkit-mask: radial-gradient(circle, transparent 0 19%, #000 30% 65%, transparent 76%);
  mask: radial-gradient(circle, transparent 0 19%, #000 30% 65%, transparent 76%);
  transform: translate(-50%, -50%) scale(.65) rotate(-18deg);
  animation: fvf-rays 3.35s cubic-bezier(.16,.73,.35,1) both;
}
.fvf-burst__halo {
  position: absolute;
  left: 50%; top: 47%;
  width: min(72vmin, 520px);
  aspect-ratio: 1;
  border: 2px solid #ffda8c;
  border-radius: 50%;
  box-shadow: 0 0 16px #f8cb71, 0 0 65px #ffa943a8, inset 0 0 60px #ffe8a126;
  transform: translate(-50%, -50%) scale(.1);
  opacity: 0;
  animation: fvf-halo 3.35s ease-out both;
}
.fvf-burst__sparks { position: absolute; inset: 0; overflow: hidden; }
.fvf-burst__spark {
  position: absolute;
  top: 50%; left: 50%;
  width: var(--size, 7px); height: var(--size, 7px);
  border-radius: 2px;
  background: var(--color, #ffdf91);
  box-shadow: 0 0 10px 2px #ffbe52a1;
  opacity: 0;
  transform: translate(-50%, -50%);
  animation: fvf-spark var(--dur, 1.5s) cubic-bezier(.14,.68,.45,1) var(--delay, 0s) both;
}
.fvf-burst__spark:nth-child(3n) { border-radius: 50%; }
.fvf-burst__center {
  width: min(100%, 650px);
  position: relative;
  padding: clamp(22px, 5vw, 52px) clamp(16px, 5vw, 46px);
  border: 1px solid #ffdc9588;
  border-radius: 26px;
  background: linear-gradient(130deg, #24324fe8, #101a2bf5 50%, #30221be8);
  box-shadow: 0 0 0 1px #fff5d027 inset, 0 22px 100px #000c, 0 0 85px #eeaa5163;
  transform: scale(.38) rotate(-5deg);
  opacity: 0;
  animation: fvf-card 3.35s cubic-bezier(.17,.86,.22,1) both;
}
.fvf-burst__center::before,
.fvf-burst__center::after {
  content: '';
  position: absolute;
  left: 15px; right: 15px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #fff6bb, #ffb956, transparent);
  box-shadow: 0 0 15px #ffbc6c;
}
.fvf-burst__center::before { top: 10px; }
.fvf-burst__center::after { bottom: 10px; }
.fvf-burst__eyebrow {
  display: block;
  color: #ffdc96;
  font-weight: 900;
  font-size: clamp(12px, 2.2vw, 17px);
  letter-spacing: .26em;
  text-transform: uppercase;
  text-shadow: 0 0 15px #ffbd6e8f;
}
.fvf-burst__clap {
  display: block;
  font-size: clamp(36px, 8vw, 68px);
  margin-bottom: 12px;
  transform-origin: 48% 75%;
  animation: fvf-clap .9s cubic-bezier(.22,.85,.34,1) .12s both;
}
.fvf-burst__icon {
  width: clamp(94px, 20vw, 140px);
  height: clamp(94px, 20vw, 140px);
  display: grid;
  place-items: center;
  margin: 17px auto;
  border: 2px solid #ffcc70;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 25%, #fff7d678, #e6a13d57 42%, #142436a8 75%);
  box-shadow: 0 0 0 8px #ffcf7e12, 0 0 46px #ffbb56a0, inset 0 0 22px #fff2ba57;
  font-size: clamp(48px, 10vw, 75px);
  text-shadow: 0 3px 20px #0005;
  animation: fvf-icon 3.35s cubic-bezier(.2,.83,.18,1) both;
}
.fvf-burst__title {
  margin: 5px 0 12px;
  color: #fff;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(34px, 6.5vw, 61px);
  line-height: 1.04;
  text-wrap: balance;
  text-shadow: 0 2px 0 #a16c35, 0 0 28px #ffd1866e;
}
.fvf-burst__sub {
  margin: 0;
  color: #fce4bf;
  font-size: clamp(13px, 2.3vw, 17px);
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: .05em;
}
.fvf-burst__bottom {
  margin-top: 23px;
  color: #e2b977;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .28em;
}
.game-header.fvf-level-up .game-cup { animation: fvf-trophy 1.2s ease-in-out 1; }
.badge-item.fvf-new-badge { animation: fvf-new-row 2s ease-out 1; }
@keyframes fvf-burst-visibility { 0% {visibility:visible;opacity:0} 7%,78% {opacity:1} 99% {opacity:0;visibility:visible} 100% {opacity:0;visibility:hidden} }
@keyframes fvf-backdrop { 0%{opacity:0} 12%,76%{opacity:1} 100%{opacity:0} }
@keyframes fvf-flash { 0%{opacity:0} 8%{opacity:.85} 19%{opacity:0} 100%{opacity:0} }
@keyframes fvf-rays { 0%{opacity:0;transform:translate(-50%,-50%) scale(.2) rotate(-18deg)} 22%{opacity:1} 82%{opacity:.7;transform:translate(-50%,-50%) scale(1.12) rotate(10deg)} 100%{opacity:0;transform:translate(-50%,-50%) scale(1.35) rotate(16deg)} }
@keyframes fvf-halo { 0%{opacity:0;transform:translate(-50%,-50%) scale(.1)} 13%{opacity:1} 47%{opacity:.6} 100%{opacity:0;transform:translate(-50%,-50%) scale(2.4)} }
@keyframes fvf-spark { 0%{opacity:0;transform:translate(-50%,-50%) scale(.2) rotate(0)} 14%{opacity:1} 82%{opacity:.85} 100%{opacity:0;transform:translate(calc(-50% + var(--dx)),calc(-50% + var(--dy))) scale(.35) rotate(var(--spin,360deg))} }
@keyframes fvf-card { 0%{opacity:0;transform:scale(.38) rotate(-5deg)} 15%{opacity:1;transform:scale(1.065) rotate(1deg)} 23%,75%{opacity:1;transform:scale(1) rotate(0deg)} 95%,100%{opacity:0;transform:scale(1.1) translateY(-16px)} }
@keyframes fvf-clap { 0%{opacity:0;transform:rotate(-24deg) scale(.6)} 45%{opacity:1;transform:rotate(9deg) scale(1.1)} 68%{transform:rotate(-4deg) scale(.98)} 100%{transform:rotate(0) scale(1)} }
@keyframes fvf-icon { 0%{opacity:0;transform:scale(.2) rotate(-45deg)} 20%{opacity:1;transform:scale(1.18) rotate(9deg)} 33%,75%{opacity:1;transform:scale(1) rotate(0)} 100%{opacity:0;transform:scale(1.14) rotate(0)} }
@keyframes fvf-trophy { 20%{transform:scale(1.45) rotate(-12deg);filter:drop-shadow(0 0 17px #ffcf70)} 50%{transform:scale(1.3) rotate(10deg)} 100%{transform:scale(1) rotate(0)} }
@keyframes fvf-new-row { 0%,45% {box-shadow:0 0 0 2px #ffd27e, 0 0 26px #ffbf6f9c;background:#d9a35253} 100%{box-shadow:none} }
@media(max-width:600px) {
  .fvf-burst {padding:14px}
  .fvf-burst__center {border-radius:18px}
  .fvf-burst__bottom {margin-top:15px}
  .fvf-burst__rays {width:145vmax}
}
@media(prefers-reduced-motion:reduce) {
  .fvf-burst, .fvf-burst *, .game-header.fvf-level-up .game-cup,
  .badge-item.fvf-new-badge {animation:none!important;transition:none!important}
  .fvf-burst {background:#071321e8;opacity:1}
  .fvf-burst__center {opacity:1;transform:none}
  .fvf-burst__icon {opacity:1;transform:none}
  .fvf-burst__backdrop,.fvf-burst__flash,.fvf-burst__rays,.fvf-burst__halo,.fvf-burst__sparks {display:none}
}
