.fireworks{--u:calc(100cqw / 300);aspect-ratio:300/440;-webkit-user-select:none;user-select:none;background:url(/examples/ink/components-callback3-fireworks-field.svg) 0 0/100% no-repeat;width:100%;max-width:24rem;margin:0 auto;font-family:Shantell Sans,sans-serif;position:relative;container-type:inline-size}.fireworks p{white-space:nowrap;margin:0;font-weight:700;position:absolute}.fireworks .crowd{top:calc(308 * var(--u));left:calc(50 * var(--u));width:calc(200 * var(--u));height:calc(141 * var(--u));background:url(/examples/ink/components-callback3-fireworks-crowd.svg) 0 0/100% 200% no-repeat;position:absolute}.fireworks .crowd:not([data-oohs="0"]){background-position-y:100%}.fireworks .bubble{top:calc(-40 * var(--u));left:calc(180 * var(--u));width:calc(70 * var(--u));height:calc(38 * var(--u));padding-top:calc(6 * var(--u));box-sizing:border-box;color:#2d2a24;font-size:calc(16 * var(--u));text-align:center;background:url(/examples/ink/components-callback3-fireworks-bubble.svg) 0 0/100% 100% no-repeat}.fireworks .crowd[data-oohs="0"] .bubble{visibility:hidden}.fireworks .tag{top:calc(102 * var(--u));left:calc(56 * var(--u));width:calc(88 * var(--u));height:calc(24 * var(--u));padding-left:calc(15 * var(--u));box-sizing:border-box;color:#2d2a24;font-size:calc(14 * var(--u));line-height:calc(24 * var(--u));background:url(/examples/ink/components-callback3-fireworks-tag.svg) 0 0/100% 100% no-repeat}.fireworks .launch{top:calc(190 * var(--u));left:calc(60 * var(--u));width:calc(180 * var(--u));height:calc(162 * var(--u));justify-content:space-evenly;display:flex;position:absolute}.fireworks [data-color=gold]{--k:0}.fireworks [data-color=red]{--k:1}.fireworks [data-color=green]{--k:2}.fireworks [data-color=silver]{--k:3}.fireworks .rocket{flex:0 1 calc(46 * var(--u));min-width:0;position:relative}.fireworks .fuse{background:url(/examples/ink/components-callback3-fireworks-rockets.svg) 0 0/400% 200% no-repeat;background-position:calc(var(--k) * 100% / 3) 0;cursor:pointer;border:0;padding:0;position:absolute;inset:0}.fireworks .fuse:before{content:"";position:absolute;inset:0 -4px}.fireworks .fuse:focus-visible{outline-offset:2px;outline:2px dashed}.fireworks [data-lit=true] .fuse{background-position-y:100%;animation:.25s fireworks-fizz,.35s .25s forwards fireworks-climb}.fireworks .burst{top:calc(-176 * var(--u));left:calc(-67 * var(--u));width:calc(180 * var(--u));aspect-ratio:1;background:url(/examples/ink/components-burst-chrysanthemum.svg) 0 0/400% 100% no-repeat;background-position:calc(var(--k) * 100% / 3) 0;opacity:0;pointer-events:none;position:absolute}.fireworks .rocket:first-child .burst{margin-left:calc(20 * var(--u))}.fireworks .rocket:last-child .burst{margin-left:calc(-20 * var(--u))}.fireworks [data-lit=true] .burst{animation:1.2s .6s fireworks-fade}.fireworks .rocket:first-child:after{content:"light\a me";top:calc(96 * var(--u));left:calc(-54 * var(--u));width:calc(48 * var(--u));height:calc(32 * var(--u));padding-top:calc(17 * var(--u));box-sizing:border-box;color:#8a8478;font-size:calc(10 * var(--u));white-space:pre;pointer-events:none;background:url(/examples/ink/components-callback3-fireworks-note.svg) 0 0/100% no-repeat;line-height:1;position:absolute}.crowd:not([data-oohs="0"])+* .rocket:after{content:none}.fireworks:has([data-lit=true]) .rocket:after{content:none}@keyframes fireworks-fizz{to{visibility:visible}}@keyframes fireworks-climb{0%,to{opacity:0}}@keyframes fireworks-fade{0%,80%{opacity:1}}@media (prefers-reduced-motion:no-preference){@keyframes fireworks-climb{75%{opacity:1}to{translate:0 calc(-150 * var(--u));opacity:0;scale:.6}}@keyframes fireworks-fade{0%{opacity:1;scale:.25}15%,70%{opacity:1;scale:1}to{opacity:0;scale:1.05;translate:0 calc(12 * var(--u))}}.fireworks [data-lit=true] .fuse{animation-timing-function:linear,ease-in}}
