/* Celebration popup (2026-11-26): LetsTalk's CelebrationPopup.razor, ported. A modal <dialog>, so it lies above everything. Its colours are its own (white
   on the administrator's gradient, the same in every UI style); only the type faces come from the page. Added to LetsTalk: scrolling inside the card, safe
   areas, no motion with prefers-reduced-motion. */
.celeb{position:fixed;inset:0;box-sizing:border-box;width:100%;height:100%;max-width:100%;max-height:100%;margin:0;border:0;border-radius:0;box-shadow:none;overflow:hidden;overscroll-behavior:contain;background:rgba(0,0,0,.85);color:#fff;
 padding:max(16px,env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) max(16px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left));animation:celeb-fade .3s ease-out}
.celeb[open]{display:flex;align-items:center;justify-content:center}
.celeb::backdrop{background:transparent}
.celeb .celeb-card{position:relative;box-sizing:border-box;width:90%;max-width:400px;max-height:100%;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;border-radius:20px;text-align:center;
 background:linear-gradient(135deg,var(--celeb-from,#1a1a2e) 0%,var(--celeb-to,#16213e) 100%);box-shadow:0 20px 60px rgba(0,0,0,.5);animation:celeb-pop .4s ease-out}
.celeb .celeb-content{position:relative;padding:40px 32px}
.celeb .celeb-card[data-video="1"] .celeb-content{padding:24px 32px 32px}
.celeb .celeb-video{width:100%;aspect-ratio:16/9;background:#000;position:relative;overflow:hidden}
.celeb .celeb-video[hidden]{display:none}
.celeb .celeb-video video,.celeb .celeb-video iframe{display:block;width:100%;height:100%;border:0;object-fit:cover}
.celeb .celeb-video :not([data-calm]){pointer-events:none}
.celeb .celeb-title{margin:0 0 12px;padding:0;border:0;background:none;color:#fff;font-family:var(--font-display,inherit);font-size:28px;font-weight:700;line-height:1.25;letter-spacing:normal;text-transform:none;text-shadow:0 2px 10px rgba(0,0,0,.5);overflow-wrap:anywhere}
.celeb .celeb-description{margin:0 0 16px;color:#fff;font-size:16px;line-height:1.5;text-shadow:0 1px 6px rgba(0,0,0,.45);overflow-wrap:anywhere}
.celeb .celeb-icon{margin-bottom:16px;font-size:56px;line-height:1.2;animation:celeb-bounce 1s ease infinite}
.celeb .celeb-badge{display:inline-block;margin-bottom:20px;padding:6px 16px;border-radius:20px;border:1px solid rgba(255,255,255,.35);color:#fff;font-size:14px;font-weight:600;line-height:1.5;text-transform:uppercase;text-shadow:0 1px 3px rgba(0,0,0,.45);background:linear-gradient(135deg,#64748b,#475569)}
.celeb .celeb-badge[data-type=achievement]{background:linear-gradient(135deg,#f59e0b,#d97706)}
.celeb .celeb-badge[data-type=title]{background:linear-gradient(135deg,#8b5cf6,#7c3aed)}
.celeb .celeb-badge[data-type=tier]{background:linear-gradient(135deg,#10b981,#059669)}
.celeb .celeb-badge[data-type=daily_quest]{background:linear-gradient(135deg,#3b82f6,#2563eb)}
.celeb .celeb-external{margin:0 0 20px}
.celeb .celeb-note{margin:8px 0 0;color:#fff;font-size:12px;line-height:1.5;text-shadow:0 1px 4px rgba(0,0,0,.6);overflow-wrap:anywhere}
.celeb button.celeb-load{min-height:40px;padding:8px 20px;border:1px solid #fff;border-radius:30px;background:rgba(0,0,0,.35);box-shadow:none;color:#fff;font-size:14px;font-weight:600;line-height:1.4;text-transform:none;cursor:pointer}
.celeb button.celeb-continue{display:block;width:fit-content;max-width:100%;min-height:44px;margin:0 auto;padding:12px 32px;border:1px solid rgba(255,255,255,.35);border-radius:30px;background:linear-gradient(135deg,#7c3aed,#5b21b6);box-shadow:none;color:#fff;font-size:16px;font-weight:600;line-height:1.2;letter-spacing:normal;text-transform:none;text-shadow:none;cursor:pointer;transition:transform .2s,box-shadow .2s}
.celeb button.celeb-continue:hover{transform:scale(1.05);box-shadow:0 5px 20px rgba(139,92,246,.4)}
.celeb button.celeb-continue:focus-visible,.celeb button.celeb-load:focus-visible{outline:3px solid #fff;outline-offset:3px}
@keyframes celeb-fade{from{opacity:0}to{opacity:1}}
@keyframes celeb-pop{from{opacity:0;transform:scale(.8) translateY(20px)}to{opacity:1;transform:scale(1) translateY(0)}}
@keyframes celeb-bounce{0%,100%{transform:translateY(0)}50%{transform:translateY(-8px)}}
@media(max-width:420px){
 .celeb .celeb-content,.celeb .celeb-card[data-video="1"] .celeb-content{padding-left:20px;padding-right:20px}
 .celeb .celeb-content{padding-top:28px;padding-bottom:28px}
 .celeb .celeb-title{font-size:23px}
}
@media(prefers-reduced-motion:reduce){
 .celeb,.celeb .celeb-card,.celeb .celeb-icon{animation:none}
 .celeb button.celeb-continue{transition:none}
 .celeb button.celeb-continue:hover{transform:none}
}
@media(forced-colors:active){.celeb .celeb-card,.celeb .celeb-badge,.celeb button.celeb-continue,.celeb button.celeb-load{border:1px solid CanvasText}}
