/* Hero wish rewards share one floating bubble silhouette, including keepsakes and currency. */
.wish-anim-overlay[data-hero-bubbles] {
    padding: 32px 0; overflow-x: hidden; overflow-y: auto;
    background: radial-gradient(ellipse at 50% 60%, rgba(var(--wish-rgb), .075), transparent 65%), #050a13;
}
.wish-anim-overlay[data-hero-bubbles] .wish-reveal-content { width: min(1950px, 96vw); padding: 0; zoom: 1; }
.wish-anim-overlay[data-hero-bubbles] .wish-anim-rays { inset: 0; opacity: .07; animation: none; }
.wish-anim-overlay[data-hero-bubbles] .wish-anim-bg { opacity: .25; }
.wish-anim-overlay[data-hero-bubbles] .wish-cards-grid.visible { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: start; gap: 32px 28px; width: 100%; max-width: none; padding: 0; margin: 0; }
.wish-anim-overlay[data-hero-bubbles] .wish-cards-grid.visible:has(> .wc-card:only-child) {
    grid-template-columns: min(100%, clamp(300px, 46svh, 420px));
    justify-content: center;
}
.wish-anim-overlay[data-hero-bubbles] .wc-card {
    width: 100%; min-width: 0; min-height: 0; padding: 0; background: none; border: 0; border-radius: 0;
    box-shadow: none !important; overflow: visible;
}
.wish-anim-overlay[data-hero-bubbles] .wc-card::before { display: none; }
.wish-anim-overlay[data-hero-bubbles] .wc-card.in { animation: none; transform: none; }
.wish-anim-overlay[data-hero-bubbles] .wc-card.in:not(.revealed):hover { transform: none !important; box-shadow: none !important; }
.wish-anim-overlay[data-hero-bubbles] .wc-card .wc-inner {
    width: 100%; height: auto; aspect-ratio: 1; box-sizing: border-box;
    border-radius: 50%; overflow: hidden; position: relative;
    border: 1px solid color-mix(in srgb, var(--rc) 70%, #ffffff33);
    background: radial-gradient(ellipse at 25% 20%, color-mix(in srgb, var(--rc) 18%, transparent), transparent 65%), #0d1423;
    box-shadow: inset 0 2px 6px #ffffff66, 0 0 24px color-mix(in srgb, var(--rc) 12%, transparent);
}
.wish-anim-overlay[data-hero-bubbles] .wc-inner::after {
    content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 5;
    background: radial-gradient(ellipse at 25% 10%, #ffffff3b, transparent 33%), radial-gradient(ellipse at 55% 115%, color-mix(in srgb, var(--rc) 55%, transparent), transparent 55%);
    box-shadow: inset 0 2px 4px #ffffffb0, inset -3px -5px 12px #02071399;
}
.wish-anim-overlay[data-hero-bubbles] .wc-card:not(.revealed) > :is(.wc-inner, .wc-caption) { visibility: hidden; }
.wish-anim-overlay[data-hero-bubbles] .wc-card.revealed .wc-inner { animation: heroBubbleRelease .65s ease-out both; }
.wish-anim-overlay[data-hero-bubbles] .wc-portrait { height: 100%; }
.wish-anim-overlay[data-hero-bubbles] .wc-char-img { height: 100%; object-fit: cover; object-position: 50% 25%; }
.wish-anim-overlay[data-hero-bubbles] .wc-portrait::after { height: 35%; background: linear-gradient(transparent, #050d2033); }
.wish-anim-overlay[data-hero-bubbles] .wc-puzzle { bottom: 12%; right: 17%; width: 20px; height: 20px; }
.wish-anim-overlay[data-hero-bubbles] .wc-shimmer { display: none; }
.wish-anim-overlay[data-hero-bubbles] .wc-icon { width: 62%; height: 62%; animation: none; filter: drop-shadow(0 0 12px color-mix(in srgb, var(--rc) 25%, transparent)); }
.wish-anim-overlay[data-hero-bubbles] .wc-card .wc-caption { box-sizing: border-box; min-height: 44px; padding: 12px 0 0; gap: 3px; justify-content: start; }
.wish-anim-overlay[data-hero-bubbles] .wc-name { font: 400 14px/1.3 'Outfit', 'Segoe UI', sans-serif; color: #e2e9f5; text-shadow: none; overflow-wrap: anywhere; }
.wish-anim-overlay[data-hero-bubbles] .wc-rarity { font: 500 9px/1.3 'Outfit', 'Segoe UI', sans-serif; color: var(--rc); letter-spacing: .15em; text-shadow: none; }
.wish-anim-overlay[data-hero-bubbles] .wc-card[data-tier="keepsake"] .wc-caption { min-height: 44px; }
.wish-anim-overlay[data-hero-bubbles] .wc-card[data-tier="keepsake"] .wc-rarity:last-child { display: none; }
.wish-anim-overlay[data-hero-bubbles] .wc-orb {
    inset: 0 0 auto; width: 100%; height: auto; aspect-ratio: 1; box-sizing: border-box; overflow: hidden;
    border-radius: 50%; border: 1px solid rgba(var(--wish-rgb), .55);
    background: radial-gradient(ellipse at 28% 20%, rgba(var(--wish-rgb), .32), transparent 45%), radial-gradient(ellipse at 65% 85%, rgba(var(--wish-rgb), .22), #071326 75%);
    box-shadow: inset 0 2px 5px #ffffff77, inset -4px -10px 25px #01061988, 0 0 24px rgba(var(--wish-rgb), .1);
    transform: none;
}
.wish-anim-overlay[data-hero-bubbles] .wc-orb::before,
.wish-anim-overlay[data-hero-bubbles] :is(.wc-orb-ring, .wc-seal-caption, .wc-seal-star) { display: none; }
.wish-anim-overlay[data-hero-bubbles] .wc-orb::after { opacity: .45; }
.wish-anim-overlay[data-hero-bubbles] .wc-seal { width: 52%; height: 52%; color: var(--wish-accent); filter: drop-shadow(0 0 12px rgba(var(--wish-rgb), .25)); }
.wish-anim-overlay[data-hero-bubbles][data-theme="memory"] .wc-seal { background:url('../image/wish/wish_currency_img/memory_scroll.png') center / contain no-repeat; }
.wish-anim-overlay[data-hero-bubbles][data-theme="memory"] .wc-seal svg { display:none; }
.wish-anim-overlay[data-hero-bubbles] .wc-card.revealed .wc-orb { opacity: 0; transform: scale(1.15); pointer-events: none; }
.wish-anim-overlay[data-hero-bubbles] .wc-card:focus-visible { outline: none; }
.wish-anim-overlay[data-hero-bubbles] .wc-card:not(.revealed):focus-visible .wc-orb,
.wish-anim-overlay[data-hero-bubbles] .wc-card.revealed:focus-visible .wc-inner { outline: 1px solid var(--wish-accent); outline-offset: 6px; }
.wish-anim-overlay[data-hero-bubbles] .wish-reveal-hint { display: none; }
.wish-anim-overlay[data-hero-bubbles] :is(.wish-anim-revealall, .wish-anim-ok):not(.visible) { display: none; }
.wish-anim-overlay[data-hero-bubbles] :is(.wish-anim-revealall, .wish-anim-ok) {
    min-height: 44px; margin: 26px 0 0; padding: 12px 30px; background: none; border: 0; border-radius: 0; box-shadow: none;
    color: #d5e3f0; font: 12px 'Outfit', 'Segoe UI', sans-serif; letter-spacing: .14em;
}
.wish-anim-overlay[data-hero-bubbles] :is(.wish-anim-revealall, .wish-anim-ok):hover { background: none; color: #f5fcff; box-shadow: none; }
@keyframes heroBubbleRelease { from { opacity: .3; transform: scale(.8); filter: brightness(1.5); } to { opacity: 1; transform: none; filter: brightness(1); } }
@media (max-width: 980px) {
    .wish-anim-overlay[data-hero-bubbles] .wish-cards-grid.visible { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 14px; }
}
@media (max-width: 700px) {
    .wish-anim-overlay[data-hero-bubbles] .wish-cards-grid.visible { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 12px; }
}
@media (max-width: 600px) {
    .wish-anim-overlay[data-hero-bubbles] { padding: 22px 0; }
    .wish-anim-overlay[data-hero-bubbles] .wc-name { font-size: 11px; }
    .wish-anim-overlay[data-hero-bubbles] .wc-rarity { font-size: 7px; }
    .wish-anim-overlay[data-hero-bubbles] .wc-card .wc-caption { padding-top: 9px; min-height: 39px; }
    .wish-anim-overlay[data-hero-bubbles] .wc-puzzle { width: 14px; height: 14px; }
}
@media (max-width: 480px) {
    .wish-anim-overlay[data-hero-bubbles] .wish-cards-grid.visible { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-height: 520px) {
    .wish-anim-overlay[data-hero-bubbles] { justify-content: flex-start; padding: 12px 0; }
    .wish-anim-overlay[data-hero-bubbles] .wish-cards-grid.visible:has(> .wc-card:only-child) {
        grid-template-columns: min(100%, clamp(260px, calc(100svh - 124px), 300px));
    }
    .wish-anim-overlay[data-hero-bubbles] :is(.wish-anim-revealall, .wish-anim-ok) { margin-top: 10px; }
}
@media (prefers-reduced-motion: reduce) { .wish-anim-overlay[data-hero-bubbles] *, .wish-anim-overlay[data-hero-bubbles] *::before, .wish-anim-overlay[data-hero-bubbles] *::after { animation: none !important; transition: none !important; } }
