.badge-celebration { width: min(42rem, calc(100vw - 2rem)); max-height: min(52rem, calc(100dvh - 2rem)); padding: 0; border: 1px solid #64ccc8; border-radius: 1.7rem; background: linear-gradient(145deg,#114e62,#092e49 65%); color: #eafaff; box-shadow: 0 1.4rem 5rem #00152299; overflow: hidden; }
.badge-celebration[open] { display: flex; flex-direction: column; animation: badge-arrival 520ms ease-out both; }
.badge-celebration::backdrop { background: #001927b8; }
.badge-celebration-header { position: relative; padding: 1.6rem 3.7rem 1.1rem 1.5rem; flex: 0 0 auto; }
.badge-celebration-header h2 { margin: .35rem 0 .5rem; font-size: clamp(1.5rem,4.8vw,2rem); line-height: 1.1; }
.badge-celebration-header p { margin: 0; color: #b4d7e1; font-size: .87rem; line-height: 1.5; }
.badge-celebration-close { position: absolute; right: .75rem; top: .75rem; width: 2.75rem; height: 2.75rem; background: #143f54; border: 1px solid #7194a5; border-radius: 50%; color: #eafaff; font-size: 1.5rem; cursor: pointer; }
.badge-celebration-cards { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: .4rem 1.5rem 1.1rem; }
.badge-reveal-card { display: flex; align-items: center; gap: 1.2rem; padding: 1.1rem 0; }
.badge-reveal-card + .badge-reveal-card { border-top: 1px solid #9dcdd22e; }
.badge-reveal-card > div { min-width: 0; }
.badge-reveal-card .badge-artwork { flex-shrink: 0; }
.badge-reveal-card h3 { margin: .3rem 0 .45rem; font-size: 1.25rem; }
.badge-reveal-kind { color: #5de0d1; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; margin: 0; }
.badge-reveal-tier { font-size: .85rem; color: #ffe6a5; font-weight: 800; margin: .3rem 0; }
.badge-reveal-requirement, .badge-reveal-note { color: #c1dce5; font-size: .82rem; line-height: 1.5; margin: .5rem 0 0; overflow-wrap: anywhere; }
.badge-reveal-note { color: #96bcca; font-size: .75rem; }
.badge-celebration-actions { display: flex; gap: .7rem; padding: 1.1rem 1.5rem max(1.25rem,env(safe-area-inset-bottom)); border-top: 1px solid #a4d7db33; flex: 0 0 auto; }
.badge-celebration-actions button { flex: 1; min-height: 3rem; border: 1px solid #8ac8d4; border-radius: .85rem; background: #123f56; color: #eafaff; font: inherit; font-weight: 800; cursor: pointer; }
.badge-celebration-actions button:first-child { background: #79e7d3; border-color: #79e7d3; color: #073842; }
.badge-celebration :is(button):focus-visible, .badge-delivery-notice button:focus-visible { outline: 3px solid #ffdc8c; outline-offset: 3px; }
.badge-celebration-bubbles { position: absolute; inset: 0; overflow: hidden; pointer-events: none; opacity: .6; }
.badge-celebration-bubbles i { position: absolute; bottom: 0; left: 8%; width: .7rem; height: .7rem; border: 1px solid #a4fff0; border-radius: 50%; opacity: 0; animation: badge-bubble 850ms ease-out; }
.badge-celebration-bubbles i:nth-child(2) { left: 28%; width: .4rem; height: .4rem; animation-delay: 80ms; }
.badge-celebration-bubbles i:nth-child(3) { left: 67%; animation-delay: 140ms; }
.badge-celebration-bubbles i:nth-child(4) { left: 90%; width: .45rem; height: .45rem; animation-delay: 40ms; }
.badge-delivery-notice { padding: .7rem .85rem; margin: .8rem 0; border: 1px solid #8ccbd066; border-radius: .8rem; color: #cee8ed; background: #103d52; text-align: left; }
.badge-delivery-notice p { margin: 0; font-size: .8rem; line-height: 1.45; }
.badge-delivery-notice button { min-height: 2.75rem; border: 0; background: none; color: #86ead9; padding: .4rem 0; font: inherit; font-size: .85rem; font-weight: 800; text-decoration: underline; cursor: pointer; }
@keyframes badge-arrival { from { opacity: 0; transform: translateY(.8rem) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes badge-bubble { 0% { opacity: 0; transform: translateY(0); } 25% { opacity: .8; } 100% { opacity: 0; transform: translateY(-5rem); } }
@media (max-width: 380px) { .badge-celebration { width: calc(100vw - 1rem); } .badge-celebration-header { padding-left: 1rem; } .badge-celebration-cards { padding-left: 1rem; padding-right: 1rem; } .badge-reveal-card { gap: .8rem; } .badge-reveal-card h3 { font-size: 1.05rem; } .badge-celebration-actions { padding-left: 1rem; padding-right: 1rem; } }
@media (max-height: 450px) { .badge-celebration-header { padding-top: .8rem; padding-bottom: .5rem; } .badge-celebration-actions { padding-top: .6rem; padding-bottom: .6rem; } }
@media (max-width: 380px) { .badge-reveal-card .badge-artwork[data-size="large"] { width: 6rem; height: 6.5rem; flex-basis: 6rem; } }
@media (prefers-reduced-motion: reduce) { .badge-celebration[open], .badge-celebration-bubbles i { animation: none; } .badge-celebration-bubbles { display: none; } }
