/* v11 fidelity pass: home. Appended after cp-portal.css so it can override. */

/* v11.10 celebration pop-ups (ported from the design pack's cp-portal.css). The dialog is un-hidden by home_setup.js,
   so the entrance animates on :not([hidden]) where the pack used :target. Confetti plays even with reduce-motion. */
.cp-yay { align-items: center; }
.cp-yay .cp-yay__card { position: relative; overflow: hidden; background: #fff; color: var(--cp-ink); width: 100%; max-width: 400px; border-radius: 14px; padding: 28px 22px 20px; text-align: center; }
.cp-yay__icon { width: 96px; height: 96px; margin: 4px auto 10px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.cp-yay__icon svg { width: 54px; height: 54px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.cp-yay--sale .cp-yay__icon { background: var(--cp-good); }
.cp-yay--referral .cp-yay__icon, .cp-yay--setup .cp-yay__icon { background: var(--cp-brand); }
.cp-yay--rank .cp-yay__icon { width: 128px; height: 128px; background: #fff; box-shadow: 0 0 0 3px var(--cp-rust), 0 0 0 9px rgba(183,93,41,.15); }
.cp-yay--rank .cp-yay__icon img { width: 112px; height: 112px; object-fit: contain; }
.cp-yay__eyebrow { margin: 0; font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--cp-rust-dark, var(--cp-rust)); }
.cp-yay__title { margin: 4px 0 0; font-family: var(--cp-display); font-size: clamp(1.7rem, 7vw, 2.2rem); line-height: 1.05; text-transform: uppercase; }
.cp-yay__body { margin: 10px 0 0; line-height: 1.5; }
.cp-yay__btns { display: grid; gap: 8px; margin-top: 18px; }
.cp-yay__btns .cp-btn { margin: 0; }
.cp-yay__confetti { position: absolute; inset: 0; pointer-events: none; }
.cp-yay__confetti i { position: absolute; top: -12px; left: calc(var(--i) * 7.3% + 2%); width: 8px; height: 13px; border-radius: 2px; opacity: 0;
  background: var(--cp-rust); transform: rotate(calc(var(--i) * 37deg)); }
.cp-yay__confetti i:nth-child(3n) { background: var(--cp-brand); }
.cp-yay__confetti i:nth-child(3n+1) { background: #e8b04a; }
.cp-yay__confetti i:nth-child(4n) { width: 7px; height: 7px; border-radius: 50%; }
@keyframes cp-fall { 0% { opacity: 1; transform: translateY(0) rotate(0); } 100% { opacity: 0; transform: translateY(380px) rotate(540deg); } }
@keyframes cp-rise { from { opacity: 0; transform: translateY(24px) scale(.94); } }
@keyframes cp-pop { 0% { transform: scale(.4); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.cp-yay:not([hidden]) .cp-yay__card { animation: cp-rise .5s cubic-bezier(.2,.9,.3,1.2) both; }
.cp-yay:not([hidden]) .cp-yay__icon { animation: cp-pop .65s cubic-bezier(.3,1.5,.5,1) .25s both; }
.cp-yay:not([hidden]) .cp-yay__confetti i { animation: cp-fall 1.8s cubic-bezier(.3,.6,.6,1) both; animation-delay: calc(var(--i) * 70ms + 200ms); }
