/* Full transparent hero compositions, only during an individual reveal. */
.hero-wish-reveal {
    position: fixed;
    inset: 100px 20px 100px;
    z-index: 40;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    pointer-events: none;
    opacity: 0;
    background: radial-gradient(ellipse, #030916f5 30%, #030916cf 65%, transparent 78%);
}
.hero-wish-reveal.is-ready { opacity: 1; animation: heroWishRevealIn 320ms ease-out both; }
.hero-wish-reveal-art {
    display: block;
    width: auto;
    height: auto;
    min-height: 0;
    max-width: min(1200px, 100%);
    max-height: calc(100% - 65px);
    object-fit: contain;
    filter: drop-shadow(0 8px 16px #0009);
}
.hero-wish-reveal-copy { display: grid; gap: 4px; text-align: center; color: #fff4dd; text-shadow: 0 2px 8px #000, 0 0 15px #000; }
.hero-wish-reveal-copy strong { font: 600 clamp(20px, 2.5vw, 34px)/1.2 'Outfit', sans-serif; letter-spacing: .04em; }
.hero-wish-reveal-copy span { font: 400 clamp(11px, 1.2vw, 14px)/1.4 'Outfit', sans-serif; }
/* The full composition unfolds from the selected wish bubble, not the screen centre. */
.hero-wish-reveal[data-from-bubble].is-ready { animation: none; }
.hero-wish-reveal[data-from-bubble].is-ready .hero-wish-reveal-art {
    position: relative; z-index: 1; transform-origin: 50% 50%;
    animation: heroWishBubbleEmerge 1.35s cubic-bezier(.33,0,.2,1) both;
}
.hero-wish-reveal[data-from-bubble].is-ready .hero-wish-reveal-copy { position: relative; z-index: 3; animation: heroWishBubbleCopy .45s .8s ease both; }
.hero-wish-origin-bubble {
    position: fixed; z-index: 2; border-radius: 50%; box-sizing: border-box; pointer-events: none; opacity: 0;
    border: 1px solid rgba(var(--wish-rgb, 101,220,255), .6);
    background: radial-gradient(ellipse at 28% 20%, #ffffff55, transparent 45%), radial-gradient(ellipse at 60% 80%, rgba(var(--wish-rgb, 101,220,255), .5), #071326bb 75%);
    box-shadow: inset 0 2px 5px #ffffff88, 0 0 30px rgba(var(--wish-rgb, 101,220,255), .2);
}
.hero-wish-reveal.is-ready .hero-wish-origin-bubble { animation: heroWishBubbleBurst .9s ease-out both; }
@keyframes heroWishBubbleEmerge {
    0% { opacity: 0; transform: translate(var(--hero-from-x), var(--hero-from-y)) scale(var(--hero-from-scale)); filter: blur(10px); }
    18% { opacity: .65; transform: translate(var(--hero-from-x), var(--hero-from-y)) scale(var(--hero-from-scale)); filter: blur(5px); }
    72% { opacity: 1; filter: blur(0); }
    100% { opacity: 1; transform: translate(0,0) scale(1); filter: drop-shadow(0 8px 16px #0009); }
}
@keyframes heroWishBubbleBurst {
    0% { opacity: 1; transform: scale(1); filter: brightness(1); }
    25% { opacity: 1; transform: scale(.92); filter: brightness(1.45); }
    65% { opacity: .35; transform: scale(1.3); filter: blur(3px); }
    100% { opacity: 0; transform: scale(1.6); filter: blur(12px); }
}
@keyframes heroWishBubbleCopy { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
/* The short hero presentation has no reward buttons over the illustration. */
#wishAnimOverlay.has-hero-wish-reveal .wish-reveal-content,
#wishAnimOverlay.has-hero-wish-reveal :is(.wish-cards-grid, .wish-reveal-hint, .wish-anim-revealall, .wish-anim-ok) { visibility: hidden; pointer-events: none; }
@keyframes heroWishRevealIn { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
@media (max-width: 600px) { .hero-wish-reveal { inset: 115px 8px 100px; gap: 8px; } }
@media (prefers-reduced-motion: reduce) {
    .hero-wish-reveal.is-ready,
    .hero-wish-reveal[data-from-bubble].is-ready :is(.hero-wish-reveal-art, .hero-wish-reveal-copy) { animation: none; }
    .hero-wish-origin-bubble { display: none; }
}
