/* One playable winter scene, with a separate throwing pose behind the present. */
.welcome-magic.bobby-scene{display:block;position:relative;isolation:isolate;overflow:hidden;contain:paint;min-height:0;padding:18px 24px 26px;background:radial-gradient(ellipse at 50% 35%,#fff9e9 0,#eee9d9 50%,#d5dfd1 100%);border-top:1px solid #c9b68a;border-bottom:1px solid #bfc9b8}
.bobby-play{position:relative;z-index:4;max-width:540px;margin:0 auto;display:flex;align-items:center;flex-direction:column}.bobby-catch{width:282px;position:relative;padding:0;background:transparent;color:#214238;border-radius:12px;touch-action:manipulation}
.bobby-picture{display:block;position:relative;width:100%;aspect-ratio:1181/1332;filter:drop-shadow(0 12px 9px #233b2921)}.bobby-picture img{display:block;width:100%;height:100%;object-fit:contain}
.bobby-pop-window{position:absolute;inset:0;overflow:hidden}.bobby-figure,.bobby-box,.bobby-thrower{display:block;position:absolute;inset:0;transform-origin:50% 66%}.bobby-thrower{opacity:0}.bobby-pranking .bobby-pop-window,.bobby-hiding .bobby-pop-window,.bobby-prank-still .bobby-pop-window{clip-path:inset(0 0 34.5%)}
.bobby-box{clip-path:polygon(17% 66%,29% 65%,36% 57%,42% 55%,49% 59%,57% 56%,65% 57%,71% 65%,85% 66%,85% 93%,16% 93%)}
.bobby-catch-label{position:relative;display:inline-flex;align-items:center;gap:18px;min-height:44px;padding:7px 21px;margin-top:-6px;border:1px solid #8e815b;border-radius:2px;background:#fffbeb;color:#274234;font:500 13px/1.4 var(--sans);box-shadow:0 3px 0 #5f5a3f16;transition:background .2s,box-shadow .2s}.bobby-catch-label>span{color:#8c3741;font:22px/1 Georgia}.bobby-catch:hover .bobby-catch-label{background:#fffdf6;box-shadow:0 4px 12px #77644720}.bobby-scene button:focus-visible{outline:3px solid #873740;outline-offset:5px}
.bobby-controls{display:flex;justify-content:center;gap:10px;margin-top:19px}.bobby-controls button{display:flex;align-items:center;justify-content:center;gap:9px;min-width:114px;min-height:49px;padding:9px 16px;border:1px solid #b5b398;border-radius:3px;background:#fffcefcc;color:#294336;font:500 12px/1.4 var(--sans);box-shadow:0 3px 0 #77714e12;transition:background .2s,color .2s,border-color .2s}.bobby-controls svg{width:22px;height:25px;color:#8a4144;flex:none}.bobby-controls button:hover{background:#fffef6;border-color:#75876d}.bobby-controls button[aria-pressed=true]{background:#274b39;border-color:#274b39;color:#fff3d2}.bobby-controls button[aria-pressed=true] svg{color:#f5d38c}
.bobby-bough{position:absolute;z-index:2;pointer-events:none;top:48px;width:min(56%,760px);height:170px;filter:drop-shadow(0 8px 6px #203e3325)}.bobby-bough .drawn-garland{position:static!important;width:100%;height:100%;opacity:1;transform:none!important}.bobby-bough-left{left:-17%;transform:rotate(27deg)}.bobby-bough-right{right:-17%;transform:rotate(-27deg)}
.bobby-scene .workshop-bulb{fill:#a79161;transition:fill .35s,filter .35s}.home-lights-on .bobby-scene .workshop-bulb{fill:#fff0bd;filter:drop-shadow(0 0 7px #f0c260)}.bobby-halo{position:absolute;inset:0;z-index:0;pointer-events:none;background:radial-gradient(ellipse at 50% 38%,#ffdda570,transparent 47%);opacity:.25;transition:opacity .5s}.home-lights-on .bobby-halo{opacity:1}
.bobby-ground{position:absolute;z-index:1;pointer-events:none;bottom:-60px;left:-10%;width:120%;height:220px;border-radius:50% 50% 0 0;background:linear-gradient(#fffdf0,#e9efdf);box-shadow:0 -2px 0 #becdb757}.bobby-ground:before{content:'';position:absolute;inset:17px -4% 0;transform:rotate(-3deg);border-top:1px solid #cbd5bc;border-radius:50%}
.bobby-snow{position:absolute;inset:0;z-index:3;overflow:hidden;pointer-events:none;opacity:0;transition:opacity .4s}.bobby-snow i{position:absolute;left:var(--x);top:var(--y);width:5px;height:5px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #67877440;opacity:.8}.bobby-snow i:nth-child(3n){width:3px;height:3px}.bobby-snowing .bobby-snow{opacity:1}.bobby-snowing .bobby-snow i{animation:bobby-snowfall var(--duration) linear infinite;animation-delay:var(--delay)}
.bobby-projectile{position:absolute;z-index:6;pointer-events:none;left:calc(50% - 80px);top:88px;width:20px;height:20px;border-radius:50%;background:radial-gradient(circle at 35% 25%,#fff 30%,#e1e8df 80%);box-shadow:1px 4px 6px #23412a25;opacity:0}.bobby-splat{position:absolute;z-index:7;pointer-events:none;width:210px;height:181px;left:calc(50% - 215px);top:124px;opacity:0;transform:scale(.4);filter:drop-shadow(0 5px 4px #344a3925)}
.bobby-hiding{--bobby-start:28%}.bobby-hiding .bobby-figure{transform:translateY(28%)}.bobby-pranking .bobby-figure{animation:bobby-pop 3.2s ease-in-out both,bobby-rest-visibility 3.2s step-end both}.bobby-pranking .bobby-thrower{animation:bobby-throw-pose 3.2s ease-in-out both}.bobby-pranking .bobby-projectile{animation:bobby-throw 3.2s linear both}.bobby-pranking .bobby-splat{animation:bobby-splat 3.2s ease-out both}.bobby-prank-still .bobby-figure{opacity:0}.bobby-prank-still .bobby-thrower{opacity:1}.bobby-prank-still .bobby-splat{opacity:1;transform:scale(.62)}
@keyframes bobby-snowfall{from{transform:translate(0,-300px)}to{transform:translate(var(--drift),440px)}}
@keyframes bobby-pop{0%{transform:translateY(var(--bobby-start,0))}12%{transform:translateY(47%)}27%{transform:translateY(-3%) rotate(-3deg)}36%{transform:translateY(0)}55%{transform:translateY(0)}73%,88%{transform:translateY(68%)}100%{transform:translateY(28%)}}
@keyframes bobby-rest-visibility{0%,31%{opacity:1}32%{opacity:0}44%,100%{opacity:1}}
@keyframes bobby-throw-pose{0%,31%{opacity:0;transform:rotate(0)}32%,38%{opacity:1;transform:rotate(4deg)}43%{opacity:1;transform:rotate(-5deg)}44%,100%{opacity:0;transform:rotate(-5deg)}}
@keyframes bobby-throw{0%,43%{opacity:0;transform:translate(0,0) scale(1.1)}44%{opacity:1;transform:translate(0,0) scale(1.1)}50%{opacity:1;transform:translate(-32px,-45px) scale(2)}59%{opacity:1;transform:translate(-38px,114px) scale(5.4)}61%,100%{opacity:0;transform:translate(-38px,114px) scale(5.6)}}
@keyframes bobby-splat{0%,58%{opacity:0;transform:scale(.25)}64%,77%{opacity:1;transform:scale(1)}94%,100%{opacity:0;transform:scale(.98)}}
.magic-paused .bobby-scene *{animation:none!important;transition:none!important}.magic-paused .bobby-snowing .bobby-snow i{transform:none}
@media(min-width:1500px){.bobby-bough-left{left:calc(50% - 980px)}.bobby-bough-right{right:calc(50% - 980px)}}
@media(max-width:600px){.welcome-magic.bobby-scene{padding:19px 14px 23px}.bobby-catch{width:252px}.bobby-controls{gap:7px;margin-top:16px;width:100%}.bobby-controls button{flex:1;min-width:0;padding:9px 8px;gap:6px;font-size:11px}.bobby-controls svg{width:20px;height:23px}.bobby-bough{top:54px;width:91%;height:110px}.bobby-bough-left{left:-56%;transform:rotate(45deg)}.bobby-bough-right{right:-56%;transform:rotate(-45deg)}.bobby-projectile{top:80px;left:calc(50% - 73px)}.bobby-splat{width:160px;height:138px;left:calc(50% - 171px);top:119px}.bobby-ground{height:185px}.bobby-catch-label{font-size:12px}.bobby-snow i{width:4px;height:4px}@keyframes bobby-throw{0%,43%{opacity:0;transform:translate(0,0) scale(1)}44%{opacity:1;transform:translate(0,0) scale(1)}50%{opacity:1;transform:translate(-24px,-35px) scale(1.7)}59%{opacity:1;transform:translate(-28px,102px) scale(4)}61%,100%{opacity:0;transform:translate(-28px,102px) scale(4.3)}}}
@media(max-width:360px){.bobby-catch{width:234px}.bobby-projectile{top:75px;left:calc(50% - 69px)}.bobby-controls button{font-size:10px;padding:9px 6px}.bobby-splat{left:calc(50% - 150px);width:145px;top:110px}.bobby-controls svg{width:19px}.bobby-controls{gap:6px}}
@media(prefers-reduced-motion:reduce){.bobby-scene *{animation:none!important;transition:none!important}.bobby-snowing .bobby-snow i{transform:none}}
/* Introduce Bobby without changing the coordinate space of his snowball trick. */
.welcome-magic.bobby-scene{padding:0}.bobby-scene-stage{position:relative;isolation:isolate;overflow:hidden;contain:paint;padding:18px 24px 26px}
.bobby-intro{display:flex;align-items:center;justify-content:center;gap:28px;padding:30px 24px 0;color:#274234}.bobby-intro h2{margin:0;font:46px/1.1 var(--serif);letter-spacing:-1.2px;white-space:nowrap}.bobby-intro h2 em{color:#873740}.bobby-intro p{max-width:285px;margin:0;font:14px/1.65 var(--sans)}
@media(max-width:600px){.bobby-scene-stage{padding:19px 14px 23px}.bobby-intro{flex-direction:column;gap:8px;padding:26px 20px 0;text-align:center}.bobby-intro h2{font-size:38px;letter-spacing:-.8px}.bobby-intro p{max-width:285px;font-size:13px;line-height:1.6}}
