/* RAPZODY — animation des cadeaux de l'administrateur (jouer/cadeau.js) */
.rzgift { position: fixed; inset: 0; z-index: 10000; display: grid; place-items: center; padding: 16px; overflow: hidden; font-family: Inter, system-ui, sans-serif; color: #fff;
  background: radial-gradient(120% 80% at 50% 30%, rgba(80,50,4,.92), rgba(6,4,2,.96) 70%); opacity: 0; transition: opacity .3s; }
.rzgift.on { opacity: 1; }
.rzgift-rays { position: absolute; left: 50%; top: 40%; width: 1600px; height: 1600px; margin: -800px 0 0 -800px; border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgba(255,194,58,.18) 0 7deg, transparent 7deg 18deg);
  -webkit-mask-image: radial-gradient(circle, #000 15%, transparent 60%); mask-image: radial-gradient(circle, #000 15%, transparent 60%); animation: rzgiftSpin 14s linear infinite; }
.rzgift-confetti i { position: absolute; top: -20px; left: calc(var(--x) * 1%); width: 10px; height: 18px; border-radius: 3px; background: var(--c); transform: rotate(var(--r)); opacity: 0; }
.rzgift.on .rzgift-confetti i { animation: rzgiftFall 3.2s cubic-bezier(.3,.6,.4,1) var(--d) 2 both; }
.rzgift-box { position: relative; width: min(400px, 100%); text-align: center; display: grid; justify-items: center; gap: 14px; transform: scale(.6); opacity: 0; }
.rzgift.on .rzgift-box { animation: rzgiftPop .7s cubic-bezier(.2,1.5,.3,1) .15s forwards; }
.rzgift-gift { font-size: 92px; line-height: 1; filter: drop-shadow(0 0 30px rgba(255,194,58,.8)); animation: rzgiftShake 1.6s ease-in-out .5s 2; }
.rzgift-badge { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 99px; background: linear-gradient(180deg, #ffd56a, #f0ac1c); color: #1b1300; font: 900 14px/1 Inter, sans-serif; letter-spacing: .12em; box-shadow: 0 0 34px rgba(255,194,58,.7); }
.rzgift-crown { font-size: 18px; }
.rzgift-msg { margin: 6px 0 0; font: italic 900 clamp(34px, 10vw, 46px)/1 Inter, sans-serif; letter-spacing: -.04em; text-shadow: 0 0 40px rgba(255,32,43,.8), 0 6px 24px rgba(0,0,0,.6); }
.rzgift-boost { display: grid; gap: 4px; padding: 16px 22px; border-radius: 20px; background: rgba(0,0,0,.45); border: 1px solid rgba(255,194,58,.5); }
.rzgift-boost small { font: 700 12px/1.2 Inter, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: #ffd98a; }
.rzgift-boost b { font: italic 900 40px/1 Inter, sans-serif; letter-spacing: -.03em; color: #ffc23a; text-shadow: 0 0 26px rgba(255,194,58,.7); }
.rzgift-sub { margin: 0; font-size: 13px; color: #e6d9bd; }
.rzgift-btn { appearance: none; border: 0; cursor: pointer; padding: 15px 28px; border-radius: 16px; background: linear-gradient(180deg, #ff3a44, #c8101a); color: #fff; font: 900 18px/1 Inter, sans-serif; box-shadow: 0 10px 30px rgba(255,32,43,.45); }
.rzgift-btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
@keyframes rzgiftSpin { to { transform: rotate(360deg); } }
@keyframes rzgiftPop { to { transform: none; opacity: 1; } }
@keyframes rzgiftFall { 0% { opacity: 0; transform: translateY(0) rotate(var(--r)); } 10% { opacity: 1; } 100% { opacity: 0; transform: translateY(110vh) rotate(calc(var(--r) + 540deg)); } }
@keyframes rzgiftShake { 0%, 100% { transform: rotate(0) scale(1); } 20% { transform: rotate(-12deg) scale(1.1); } 40% { transform: rotate(10deg) scale(1.1); } 60% { transform: rotate(-6deg); } 80% { transform: rotate(4deg); } }
@media (prefers-reduced-motion: reduce) { .rzgift-rays, .rzgift-gift, .rzgift.on .rzgift-confetti i { animation: none; } .rzgift.on .rzgift-box { animation: none; transform: none; opacity: 1; } }
