#built using mc-build (https://mcbuild.dev/)

team leave @a
scoreboard objectives remove wins
tp @a 0 33 7 180 2
clear @a
tp @a 0 33 7 180 2
title @a times 10 120 50
title @a title ["",{"selector":"@s","bold":true,"color":"yellow"},{"text":" WON!","bold":true,"color":"yellow"}]
title @a subtitle {"text":"Congratulations!","bold":true,"italic":true,"color":"aqua"}
function main:reset
scoreboard objectives remove wins
tag @a remove ingame
tag @a remove inround
clear @a
tp @a 0 33 7 180 2
function main:reset
scoreboard objectives remove wins
summon firework_rocket -2.41 34.00 0.47 {LifeTime:8,FireworksItem:{id:firework_rocket,Count:1,tag:{Fireworks:{Explosions:[{Type:2,Flicker:1,Colors:[I;16775936,14602026,16775936,15790320],FadeColors:[I;15790320,14602026,16775936,15790320]}],Flight:1}}}}
summon firework_rocket 0.55 34.00 0.40 {LifeTime:8,FireworksItem:{id:firework_rocket,Count:1,tag:{Fireworks:{Explosions:[{Type:4,Flicker:1,Colors:[I;16775936,14602026,16775936,15790320],FadeColors:[I;15790320,14602026,16775936,15790320]}],Flight:1}}}}
summon firework_rocket 3.48 34.00 0.57 {LifeTime:8,FireworksItem:{id:firework_rocket,Count:1,tag:{Fireworks:{Explosions:[{Type:2,Flicker:1,Colors:[I;16775936,14602026,16775936,15790320],FadeColors:[I;15790320,14602026,16775936,15790320]}],Flight:1}}}}
summon firework_rocket -1 34.00 0.47 {LifeTime:8,FireworksItem:{id:firework_rocket,Count:1,tag:{Fireworks:{Explosions:[{Type:1,Flicker:1,Colors:[I;16775936,14602026,16775936,15790320],FadeColors:[I;15790320,14602026,16775936,15790320]}],Flight:1}}}}
summon firework_rocket -1 34.00 0.40 {LifeTime:8,FireworksItem:{id:firework_rocket,Count:1,tag:{Fireworks:{Explosions:[{Type:2,Flicker:1,Colors:[I;16775936,14602026,16775936,15790320],FadeColors:[I;15790320,14602026,16775936,15790320]}],Flight:1}}}}
summon firework_rocket 2.48 34.00 0.57 {LifeTime:8,FireworksItem:{id:firework_rocket,Count:1,tag:{Fireworks:{Explosions:[{Type:3,Flicker:1,Colors:[I;16775936,14602026,16775936,15790320],FadeColors:[I;15790320,14602026,16775936,15790320]}],Flight:1}}}}