/* Activity + lesson completion */
.reward-act, .reward-lesson { position: absolute; inset: 0; z-index: 650; overflow: hidden; }
.confetti { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.confetti i { position: absolute; top: -40px; animation-name: fall; animation-timing-function: linear; animation-fill-mode: both; }
.confetti .cs { width: 12px; height: 34px; border-radius: 6px; }
.confetti .cd { width: 16px; height: 16px; border-radius: 50%; }
@keyframes fall { from { transform: translate(0, 0) rotate(var(--r)); } to { transform: translate(var(--dx), 1000px) rotate(calc(var(--r) + 540deg)); } }

.brush-wipe { position: absolute; inset: 0; z-index: 1; }
.brush-wipe b { position: absolute; left: -2600px; width: 2800px; height: 520px; border-radius: 260px; transform: rotate(-22deg); animation: wipe ease-out both; }
@keyframes wipe { from { left: -3000px; } to { left: -600px; } }

.ra-check { position: absolute; left: 650px; top: 300px; width: 300px; height: 300px; border-radius: 50%; background: var(--white); display: grid; place-items: center; z-index: 4; box-shadow: 0 16px 40px rgba(34,23,80,.25); animation: popIn .45s var(--ease-spring) both; }
@keyframes popIn { from { transform: scale(.2); opacity: 0; } to { transform: none; opacity: 1; } }

.fall-card { position: absolute; top: -520px; width: 300px; z-index: 2; animation-name: tumble; animation-timing-function: cubic-bezier(.35,.05,.65,.95); animation-fill-mode: both; }
.fc-face { display: grid; place-items: end center; width: 300px; height: 400px; border-radius: 38px; overflow: hidden; }
.fc-face .mascot { margin-bottom: -20px; }
.fc-star { position: absolute; right: -30px; top: -30px; }
@keyframes tumble { from { transform: translateY(0) rotate(0deg); } to { transform: translateY(1500px) rotate(var(--rot)); } }

.rl-center { position: absolute; left: 0; right: 0; top: 130px; z-index: 5; text-align: center; color: var(--white); animation: riseIn .6s var(--ease-out) both; }
@keyframes riseIn { from { transform: translateY(280px); opacity: 0; } to { transform: none; opacity: 1; } }
.rl-badge { position: relative; width: 250px; margin: 0 auto; }
.rl-burst { position: absolute; left: 125px; top: 140px; }
.rl-burst span { position: absolute; left: -40px; top: -40px; opacity: 0; }
.rl-center.burst .rl-burst span { animation: burst 1.2s var(--ease-out) var(--d) forwards, twinkle 1.6s ease-in-out calc(var(--d) + 1.2s) infinite alternate; }
@keyframes burst { from { opacity: 0; transform: rotate(var(--a)) translateX(0) scale(.3); } to { opacity: 1; transform: rotate(var(--a)) translateX(190px) rotate(calc(-1 * var(--a))) scale(1); } }
.rl-center h2, .rl-center p, .rl-continue { position: relative; z-index: 2; }
.rl-burst { z-index: 0; }
@keyframes twinkle { from { opacity: 1; } to { opacity: .45; } }
.rl-center h2 { margin: 24px 0 0; font-size: 52px; font-weight: 700; display: inline-flex; align-items: center; gap: 12px; }
.rl-av svg { border-radius: 50%; }
.rl-center p { margin: 8px 0 34px; font-size: 38px; color: #B8AEE6; }
.rl-continue { height: 108px; padding: 0 80px; border-radius: 999px; background: var(--green); color: var(--white); font-size: 44px; font-weight: 700; transition: filter .3s, opacity .3s; }
.rl-continue[disabled] { filter: saturate(.4) brightness(.8); opacity: .8; }

/* round 2: world animals in the rewards */
.ra-pal { position: absolute; left: 1000px; top: 330px; height: 300px; z-index: 4; transform-origin: 50% 100%; filter: drop-shadow(0 12px 8px rgba(0, 0, 0, .25)); animation: popIn .45s var(--ease-spring) .1s both; }
.ra-say { position: absolute; left: 1060px; top: 250px; z-index: 5; padding: 10px 26px; border-radius: 24px; background: #FFFFFF; color: var(--c); font-size: 40px; font-weight: 700; box-shadow: 0 6px 0 rgba(0, 0, 0, .12); animation: popIn .4s var(--ease-spring) .35s both; }
.fc-face img { max-width: 250px; max-height: 300px; margin-bottom: 10px; filter: drop-shadow(0 8px 6px rgba(0, 0, 0, .2)); }
.rl-friend { display: inline-flex; align-items: center; gap: 18px; margin: -10px 0 30px; padding: 10px 34px 10px 14px; border-radius: 999px; background: rgba(255, 255, 255, .12); border: 4px solid var(--c); font-size: 34px; color: #FFFFFF; }
.rl-friend img { height: 120px; margin: -40px 0 -10px; transform-origin: 50% 100%; }
.rl-friend b { color: var(--c); }

/* round 5: party button (press for a BOOM of confetti + friends) beside Continue */
.rl-actions { position: relative; z-index: 2; display: flex; justify-content: center; align-items: center; gap: 40px; margin-top: 18px; }
.rl-boom { width: 150px; height: 150px; border-radius: 50%; border: 0; cursor: pointer; position: relative;
  background: radial-gradient(circle at 38% 32%, #FF9AA8 0 14%, #FF3B5C 38%, #C8102E 72%); box-shadow: 0 12px 0 #7E0A1E, 0 18px 30px rgba(0,0,0,.35), inset 0 -10px 0 rgba(0,0,0,.15);
  animation: boomPulse 1.1s ease-in-out infinite alternate; }
.rl-boom span { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-8deg); white-space: nowrap; color: #FFFFFF; font-size: 30px; font-weight: 700; text-shadow: 0 3px 0 rgba(0,0,0,.25); }
.rl-boom:active { box-shadow: 0 4px 0 #7E0A1E, 0 8px 16px rgba(0,0,0,.3); translate: 0 8px; }
@keyframes boomPulse { from { scale: 1; } to { scale: 1.07; } }
.boom-bit { position: absolute; z-index: 9; pointer-events: none; display: block; }
.boom-bit.strip { width: 14px; height: 30px; border-radius: 4px; }
.boom-bit.dot { width: 18px; height: 18px; border-radius: 50%; }
.boom-bit.star svg { display: block; }
.boom-bit.pal img { width: 90px; height: auto; display: block; filter: drop-shadow(0 6px 4px rgba(0,0,0,.25)); }

/* round 5: rotating activity celebrations (balloons, fireworks, a friend's signature move) */
.ra-balloon { position: absolute; bottom: -200px; width: 110px; height: 136px; border-radius: 50% 50% 48% 48%; z-index: 4; pointer-events: none;
  background: radial-gradient(circle at 34% 28%, rgba(255,255,255,.7) 0 10%, transparent 24%), var(--c); animation: raFloat 1.8s cubic-bezier(.3,.6,.4,1) both; }
.ra-balloon::after { content: ''; position: absolute; left: 50%; top: 100%; width: 2px; height: 90px; background: rgba(34,23,80,.35); }
.ra-balloon.pop { animation: raPop .22s ease-out forwards; }
@keyframes raFloat { from { transform: translateY(0); } to { transform: translateY(-820px); } }
@keyframes raPop { to { transform: translateY(-820px) scale(1.6); opacity: 0; } }
.ra-spark { position: absolute; width: 14px; height: 14px; border-radius: 50%; z-index: 4; pointer-events: none; }
.ra-mover { position: absolute; z-index: 5; }
.ra-mover img { display: block; filter: drop-shadow(0 14px 10px rgba(0,0,0,.25)); }
.ra-say.mover { left: 50%; top: 120px; transform: translateX(-50%); }
