.celebration{padding:0;border:0;border-radius:32px;width:min(720px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:auto;color:var(--color-text,#263b46);background:#fff9ee;box-shadow:0 20px 90px #263b4640}
.celebration::backdrop{background:#263b4680;backdrop-filter:blur(7px)}
.celebration-card{position:relative;text-align:center;padding:38px 24px 24px;background:radial-gradient(ellipse at 15% 35%,#f4c5cc50,transparent 55%),radial-gradient(ellipse at 90% 60%,#bcdfee65,transparent 55%);overflow:hidden}
.celebration-label{font-weight:800;letter-spacing:.1em;text-transform:uppercase;font-size:.72rem;margin:0 35px 16px}.celebration h1{font-size:clamp(2rem,6vw,3.7rem);line-height:1.08;margin:0;color:#345653}.celebration-subtitle{margin:16px auto 0;max-width:36ch;font-size:1rem}.celebration-skip{position:absolute;right:14px;top:14px;width:46px;height:46px;border:1px solid #34565330;border-radius:50%;background:#fff9ee;display:grid;place-items:center;cursor:pointer}.celebration-skip svg{width:24px;height:24px}
.celebration-scene{position:relative;height:280px;max-width:560px;margin:10px auto 0;isolation:isolate}.celebration-scene::after{content:'';position:absolute;bottom:22px;left:8%;right:8%;height:35px;border-radius:50%;background:#e7d8c580;z-index:-1}
.celebration-friend{position:absolute;width:165px;height:180px;bottom:32px;z-index:2;animation:party-friend 3.5s ease-in-out infinite}.celebration-friend .crayon-sprite{display:block;width:100%;height:100%}.friend-left{left:0;transform:rotate(-8deg)}.friend-right{right:0;animation-delay:-1.6s}.celebration-object{position:absolute;width:230px;height:230px;left:calc(50% - 115px);bottom:12px;z-index:3;animation:party-object 5s ease-in-out infinite}.celebration-object svg{width:100%;height:100%}
.party-hat{position:absolute;left:36%;top:-11px;width:42px;height:56px;background:#ffe6a4;clip-path:polygon(50% 0,100% 100%,0 100%);transform:rotate(-12deg)}.santa-hat{background:#c97277;clip-path:polygon(40% 0,90% 25%,100% 95%,0 95%)}
.celebration-balloon{position:absolute;width:48px;height:61px;border-radius:50% 50% 48% 48%;background:var(--party-color);border:2px solid #34565350;top:20px;animation:party-balloon 6s ease-in-out infinite}.celebration-balloon::after{content:'';position:absolute;left:50%;top:100%;height:65px;border-left:2px solid #b68e74;transform:rotate(7deg)}.balloon-left{left:12%}.balloon-right{right:10%;animation-delay:-2s}
.party-confetti{position:absolute;left:var(--x);top:0;width:7px;height:13px;border-radius:3px;background:var(--party-color);opacity:0;animation:party-confetti 5s ease-in-out var(--delay) infinite;pointer-events:none}
.celebration-enter{position:relative;display:flex;align-items:center;justify-content:center;gap:18px;min-height:74px;width:min(100%,410px);margin:10px auto 0;border:2px solid #b68e7460;border-radius:27px 30px 26px 32px;background:linear-gradient(120deg,#ffe6a4,#f6cea4);color:#345653;font-family:Grandstander, sans-serif;font-weight:800;font-size:1.35rem;box-shadow:0 5px 0 #b68e7450;cursor:pointer;transition:transform .18s,box-shadow .18s}.celebration-enter svg{width:28px;height:28px}.celebration-enter:hover{transform:translateY(-3px);box-shadow:0 8px 0 #b68e7450}.celebration-enter:active{transform:translateY(3px);box-shadow:0 2px 0 #b68e7450}.celebration button:focus-visible{outline:3px solid #8052ad;outline-offset:5px}.celebration-motion{border:0;background:transparent;color:#345653;min-height:44px;font:inherit;font-size:.8rem;text-decoration:underline;cursor:pointer;margin-top:12px}.celebration-settings{padding:24px;margin-top:24px}.celebration-settings .field{max-width:450px;margin-bottom:16px}
.celebration[data-theme=christmas] .celebration-balloon{background:#c5dba9;border-radius:8px;transform:rotate(12deg)}.celebration[data-theme=newyear] .party-confetti{border-radius:50%;width:10px;height:10px}.celebration[data-theme=children] .party-confetti{border:2px solid var(--party-color);background:transparent;width:26px;height:26px;border-radius:50%}.celebration-paused *,body.background-paused .celebration *{animation-play-state:paused!important}
@keyframes party-friend{0%,100%{transform:translateY(0) rotate(-4deg)}50%{transform:translateY(-12px) rotate(5deg)}}
@keyframes party-object{0%,100%{transform:rotate(-2deg)}50%{transform:rotate(2deg)}}
@keyframes party-balloon{0%,100%{translate:0 0;rotate:-5deg}50%{translate:0 -12px;rotate:5deg}}
@keyframes party-confetti{0%{transform:translateY(0) rotate(0);opacity:0}15%,70%{opacity:.8}100%{transform:translateY(250px) rotate(140deg);opacity:0}}
@media(max-width:480px){.celebration-card{padding:30px 14px 16px}.celebration-scene{height:245px}.celebration-friend{width:112px;height:132px;bottom:26px}.celebration-object{width:185px;height:185px;left:calc(50% - 92.5px);bottom:13px}.celebration-subtitle{font-size:.9rem}.celebration-enter{min-height:66px;font-size:1.15rem}.party-hat{width:30px;height:40px}.celebration-balloon{width:35px;height:46px}.celebration-label{font-size:.63rem}}
@media(prefers-reduced-motion:reduce){.celebration *{animation:none!important;transition:none!important}.party-confetti{opacity:.55;top:15%;transform:rotate(25deg)}.celebration-motion{display:none}}

/* A pista de dança da Oli: cores suaves, reflexos contínuos e sem flashes. */
.disco-party .celebration-scene{height:350px}
.disco-ball{position:absolute;top:0;left:calc(50% - 44px);width:88px;height:101px;z-index:4;filter:drop-shadow(0 5px 8px #b48cc220)}.disco-ball svg{width:100%;height:100%}.disco-mirror-grid{transform-origin:50px 62px;animation:disco-turn 8s ease-in-out infinite}
.disco-reflections{position:absolute;inset:0;z-index:0;pointer-events:none;background:radial-gradient(circle at 16% 35%,#bcdfee80 0 7px,transparent 10px),radial-gradient(circle at 30% 70%,#f4c5cc90 0 10px,transparent 13px),radial-gradient(circle at 72% 30%,#ffe6a490 0 8px,transparent 12px),radial-gradient(circle at 87% 72%,#c5b5dc70 0 9px,transparent 14px),radial-gradient(circle at 52% 88%,#bcdfee80 0 12px,transparent 17px),radial-gradient(circle at 8% 80%,#ffe6a460 0 5px,transparent 10px);animation:disco-reflect 12s ease-in-out infinite}
.disco-star{position:absolute;left:var(--star-x);top:var(--star-y);width:25px;height:25px;z-index:4;pointer-events:none;animation:disco-star 7s ease-in-out var(--star-delay) infinite}.disco-star svg{width:100%;height:100%}
.disco-glasses{position:absolute;left:13%;top:20%;width:70%;z-index:5;transform:rotate(-5deg);pointer-events:none}.disco-glasses svg{width:100%;height:auto}.friend-right .disco-glasses{left:18%;top:20%;width:64%;transform:rotate(4deg)}
.disco-party .celebration-friend{animation:disco-dance 2.4s ease-in-out infinite;transform-origin:50% 88%}.disco-party .friend-right{animation-delay:-1.2s}
@keyframes disco-dance{0%,100%{transform:translateY(0) rotate(-8deg)}25%{transform:translateY(-10px) rotate(1deg)}50%{transform:translateY(-2px) rotate(8deg)}75%{transform:translateY(-12px) rotate(-1deg)}}
@keyframes disco-turn{0%,100%{transform:rotate(-6deg)}50%{transform:rotate(6deg)}}
@keyframes disco-reflect{0%,100%{transform:translate(-7px,3px) rotate(-5deg)}50%{transform:translate(9px,-4px) rotate(5deg)}}
@keyframes disco-star{0%,100%{transform:translateY(0) rotate(-15deg)}50%{transform:translateY(-14px) rotate(20deg)}}
@media(max-width:480px){.disco-party .celebration-scene{height:285px}.disco-ball{width:70px;height:81px;left:calc(50% - 35px)}.disco-star{width:19px;height:19px}}
@media(prefers-reduced-motion:reduce){.disco-party *{animation:none!important;transition:none!important}}

/* Festa diretamente na home, sem diálogo, fundo escurecido ou bloqueio de toque. */
.home-celebration-band{display:flex;align-items:center;gap:14px;margin:0 auto 12px;padding:12px 16px;max-width:700px;border-radius:28px 20px 29px 22px;background:linear-gradient(110deg,#ffe6a470,#f4c5cc65,#bcdfee60);border:1px solid #b68e7440;color:#345653}.home-party-emblem{width:65px;height:65px;flex-shrink:0}.home-party-emblem svg{width:100%;height:100%}.home-celebration-band strong{display:block;font-family:Grandstander,sans-serif;font-size:clamp(1.2rem,3vw,1.8rem);line-height:1.2}.home-celebration-band span:not(.home-party-emblem){font-size:.85rem}.home-celebration-band .icon-btn{margin-left:auto;flex-shrink:0}
.home-party{position:fixed;inset:0;overflow:hidden;z-index:40;pointer-events:none;animation:home-party-fade 9.5s linear both}.home-party *{pointer-events:none!important}.home-party .disco-ball{top:14px;width:66px;height:86px;left:calc(50% - 33px)}.home-party .disco-reflections{opacity:.65}.home-party .disco-star{width:22px;height:22px}.home-party .party-confetti{animation-duration:8s}.home-party .parade-route{position:absolute;bottom:13vh;width:135px;height:150px;left:0}.parade-route.route-left{animation:parade-left 9s linear both}.parade-route.route-right{animation:parade-right 9s linear both;bottom:34vh}.parade-dancer{display:block;position:relative;width:100%;height:100%;animation:disco-dance 2.1s ease-in-out infinite;transform-origin:50% 85%}.parade-dancer .crayon-sprite{display:block;width:100%;height:100%}.route-right .parade-dancer{animation-delay:-1s}.parade-headphones{position:absolute;left:5%;top:5%;width:89%;height:66%;}.parade-headphones svg{width:100%;height:100%}.parade-hat{position:absolute;left:42%;top:10%;width:23px;height:30px;background:#ffe6a4;clip-path:polygon(50% 0,100% 100%,0 100%);transform:rotate(-10deg)}.parade-hat.santa-hat{background:#c97277}
body.background-paused .home-party *{animation-play-state:paused!important}body.background-paused .home-party{animation-play-state:paused}
@keyframes parade-left{0%{transform:translateX(-160px)}25%{transform:translateX(18vw)}50%{transform:translateX(42vw)}75%{transform:translateX(70vw)}100%{transform:translateX(calc(100vw + 160px))}}
@keyframes parade-right{0%{transform:translateX(calc(100vw + 160px))}25%{transform:translateX(72vw)}50%{transform:translateX(45vw)}75%{transform:translateX(15vw)}100%{transform:translateX(-160px)}}
@keyframes home-party-fade{0%{opacity:0}7%,82%{opacity:1}100%{opacity:0}}
@media(max-width:480px){.home-party .parade-route{width:96px;height:108px}.home-party .disco-ball{width:51px;height:68px;left:calc(50% - 25px)}.home-party-emblem{width:47px;height:47px}.home-celebration-band{gap:9px;padding:10px;margin:0 0 10px}.home-celebration-band span:not(.home-party-emblem){font-size:.75rem}.parade-hat{width:17px;height:23px}}
@media(prefers-reduced-motion:reduce){.home-party{display:none}.home-party *{animation:none!important}.home-celebration-band{animation:none}}

/* Confetes lançados em leque e monstrinhos ficando na pista por mais tempo. */
.home-party{animation-duration:23s}.home-party .parade-route.route-left,.home-party .parade-route.route-right{animation-duration:22s}
.home-party .confetti-burst{position:absolute;left:50%;top:48%;width:9px;height:15px;border-radius:3px;background:var(--party-color);animation:confetti-explode 5.8s cubic-bezier(.15,.55,.45,1) var(--burst-delay) both;pointer-events:none}.home-party .confetti-burst:nth-of-type(3n){border-radius:50%;width:10px;height:10px}.home-party .confetti-burst:nth-of-type(5n){border-radius:1px;width:5px;height:18px}
@keyframes confetti-explode{0%{opacity:0;transform:translate(0,0) scale(.3) rotate(0deg)}7%{opacity:1}32%{opacity:1;transform:translate(var(--burst-x),var(--burst-y)) scale(1) rotate(calc(var(--burst-spin)*.4))}82%{opacity:.9}100%{opacity:0;transform:translate(calc(var(--burst-x)*1.12),calc(var(--burst-y) + 650px)) scale(.8) rotate(var(--burst-spin))}}
@keyframes parade-left{0%{transform:translateX(-160px)}14%,35%{transform:translateX(10vw)}55%,79%{transform:translateX(25vw)}100%{transform:translateX(calc(100vw + 160px))}}
@keyframes parade-right{0%{transform:translateX(calc(100vw + 160px))}14%,35%{transform:translateX(72vw)}55%,79%{transform:translateX(55vw)}100%{transform:translateX(-160px)}}
@media(max-width:480px){.home-party .confetti-burst{width:7px;height:11px}.home-party .parade-route.route-left{bottom:12vh}.home-party .parade-route.route-right{bottom:30vh}}
@media(prefers-reduced-motion:reduce){.home-party{display:none}.confetti-burst{animation:none!important}}
