/*
| PBRC Dev 16 Oct 2026, 00:10 IST — NEW FILE: public/css/home_fun.css (loaded only by the home page, resources/views/pages/home.blade.php).
| WHY: the admin asked that the site, now live, keeps the fun of the Coming Soon page on the home page:
|   1. the shower of falling pickleballs (they drop, bounce, rest on the floor, and can be hit with a paddle, like on Coming Soon),
|   2. the Picklu scene: runs in, says "Hi, I'm Picklu!", picks up a ball, smashes it at you, says "Can't wait to meet you at the event!", runs off.
| Everything lives INSIDE the top section of the home page (.h2_hero), so nothing covers the rest of the page while scrolling.
| All class names start with hf_ so nothing clashes with public/css/site.css or public/css/coming_soon.css.
| The ball look and the Picklu timeline are copied from public/css/coming_soon.css (same 16 second cycle, same steps).
| Sizes use vw and clamp() instead of the Coming Soon screen height units, because the home page scrolls.
| Picklu is smaller than on Coming Soon (140px tall at most on a computer), so on a normal laptop he and the balls are seen without scrolling.
| The ball movement is done by public/js/home_fun.js. Without it the balls simply stay hidden above the section.
*/
.h2_hero{--hf_pk_h:clamp(90px,10vw,140px);--hf_pk_w:calc(var(--hf_pk_h)/1.227);--hf_cycle:16s;--hf_start:1.6s}

/* the same pickleball look as Coming Soon */
.hf_drop,.hf_toss,.hf_shot,.hf_stage::before{border-radius:50%;background:radial-gradient(circle at 30% 34%,rgba(6,18,58,.38) 0 7%,transparent 8%),radial-gradient(circle at 62% 30%,rgba(6,18,58,.38) 0 7%,transparent 8%),radial-gradient(circle at 46% 62%,rgba(6,18,58,.38) 0 7%,transparent 8%),radial-gradient(circle at 72% 66%,rgba(6,18,58,.38) 0 7%,transparent 8%),radial-gradient(circle at 35% 28%,#F4FF9A 0%,var(--neon) 45%,#9FCC00 100%);box-shadow:0 0 18px rgba(212,255,30,.45)}

/* falling balls: a layer over the whole top section. pointer-events none, so buttons and links under the balls always work. */
.hf_rain{position:absolute;inset:0;overflow:hidden;pointer-events:none;z-index:3}
.hf_drop{position:absolute;left:0;top:0;width:20px;height:20px;transform:translate(-200px,-200px);will-change:transform}

/* Picklu stage: a strip at the bottom of the top section. The negative bottom margin equals the section's bottom padding in site.css
   (.h2_hero padding-bottom clamp(36px,5vw,64px)), so Picklu and the balls stand on the very bottom edge of the section. */
.hf_stage{position:relative;z-index:2;width:100%;height:calc(var(--hf_pk_h) + 24px);margin-bottom:calc(clamp(36px,5vw,64px)*-1);pointer-events:none;overflow:visible}
.hf_stage::before{content:"";position:absolute;bottom:3px;left:calc(50% + var(--hf_pk_w)*.42);width:calc(var(--hf_pk_w)*.15);aspect-ratio:1;opacity:0;z-index:3;animation:hf_floor var(--hf_cycle) var(--hf_start) linear infinite}
@keyframes hf_floor{0%,22%{opacity:0;transform:translateY(calc((var(--hf_pk_h) + 80px)*-1))}22.5%{opacity:1;transform:translateY(calc((var(--hf_pk_h) + 80px)*-1));animation-timing-function:cubic-bezier(.55,0,1,.45)}26%{opacity:1;transform:translateY(0) rotate(160deg);animation-timing-function:cubic-bezier(0,.55,.45,1)}28%{transform:translateY(calc(var(--hf_pk_h)*-.25)) rotate(220deg);animation-timing-function:cubic-bezier(.55,0,1,.45)}30%{transform:translateY(0) rotate(280deg);animation-timing-function:cubic-bezier(0,.55,.45,1)}31%{transform:translateY(calc(var(--hf_pk_h)*-.07)) rotate(300deg);animation-timing-function:cubic-bezier(.55,0,1,.45)}32%,43.4%{opacity:1;transform:translateY(0) rotate(320deg)}43.5%,100%{opacity:0;transform:translateY(0)}}

/* Picklu walks in from the left, stops in the middle, then runs off to the right */
.hf_picklu{position:absolute;bottom:0;left:calc(var(--hf_pk_w)*-1.4);width:var(--hf_pk_w);animation:hf_walk var(--hf_cycle) var(--hf_start) linear infinite}
@keyframes hf_walk{0%{left:calc(var(--hf_pk_w)*-1.4)}32%{left:calc(50% - var(--hf_pk_w)/2)}74%{left:calc(50% - var(--hf_pk_w)/2)}100%{left:calc(100% + var(--hf_pk_w)*.4)}}
.hf_body{transform-origin:50% 100%;animation:hf_hit var(--hf_cycle) var(--hf_start) linear infinite}
@keyframes hf_hit{0%,41%{transform:rotate(0deg) translateY(0)}43.5%{transform:rotate(14deg) translateY(4%)}46%{transform:rotate(0deg) translateY(0)}50.5%{transform:rotate(0deg)}52%{transform:rotate(-9deg) translateX(-3%)}53%{transform:rotate(7deg) translateX(2%)}55%,100%{transform:rotate(0deg)}}
.hf_body img{display:block;width:100%;height:auto}

/* the ball Picklu tosses up before the smash */
.hf_toss{position:absolute;left:15%;bottom:70%;width:17%;aspect-ratio:1;opacity:0;z-index:3;animation:hf_toss var(--hf_cycle) var(--hf_start) linear infinite}
@keyframes hf_toss{0%,45.9%{opacity:0;transform:translateY(0)}46%{opacity:1;transform:translateY(0);animation-timing-function:cubic-bezier(0,.55,.45,1)}49%{opacity:1;transform:translateY(-320%) rotate(180deg);animation-timing-function:cubic-bezier(.55,0,1,.45)}52.4%{opacity:1;transform:translateY(0) rotate(360deg)}52.5%,100%{opacity:0;transform:translateY(0)}}

/* the smash: the ball flies at the viewer and grows. WAS on Coming Soon: position fixed to the screen. Here: inside the stage. */
.hf_shot{position:absolute;left:calc(50% - var(--hf_pk_w)*.35);bottom:calc(var(--hf_pk_h)*.72);width:calc(var(--hf_pk_w)*.17);aspect-ratio:1;opacity:0;pointer-events:none;z-index:6;animation:hf_shot var(--hf_cycle) var(--hf_start) linear infinite}
@keyframes hf_shot{0%,52.4%{opacity:0;transform:translate(0,0) scale(1) rotate(0deg)}52.5%{opacity:1;transform:translate(0,0) scale(1) rotate(0deg);animation-timing-function:cubic-bezier(.5,0,1,1)}56%{opacity:1;transform:translate(calc(var(--hf_pk_w)*.35),calc(var(--hf_pk_h)*-1.1)) scale(10) rotate(220deg);filter:blur(0)}57.5%{opacity:0;transform:translate(calc(var(--hf_pk_w)*.35),calc(var(--hf_pk_h)*-1.2)) scale(14) rotate(280deg);filter:blur(6px)}100%{opacity:0}}

/* speech bubbles */
.hf_bubble{position:absolute;bottom:100%;left:50%;margin-bottom:2px;background:var(--white);color:var(--deep);font-family:'Barlow Condensed',sans-serif;font-weight:800;font-size:clamp(15px,1.5vw,21px);line-height:1.2;letter-spacing:.02em;text-transform:none;padding:7px 15px;border-radius:14px;box-shadow:0 8px 24px rgba(0,0,0,.3);opacity:0}
.hf_bubble span{color:#0E6B34}
.hf_bubble::after{content:"";position:absolute;top:100%;border:8px solid transparent;border-top-color:var(--white)}
.hf_bubble_hi{white-space:nowrap;transform:translateX(-20%) scale(.6);transform-origin:bottom left;animation:hf_say_hi var(--hf_cycle) var(--hf_start) linear infinite}
.hf_bubble_hi::after{left:18%}
@keyframes hf_say_hi{0%,32.5%{opacity:0;transform:translateX(-20%) scale(.6)}34%,40%{opacity:1;transform:translateX(-20%) scale(1)}41.5%,100%{opacity:0;transform:translateX(-20%) scale(.6)}}
.hf_bubble_meet{left:100%;bottom:50%;margin:0 0 0 14px;width:max-content;max-width:min(460px,42vw);background:var(--neon);color:var(--deep);text-transform:uppercase;font-size:clamp(16px,1.6vw,24px);line-height:1;letter-spacing:.03em;padding:14px 24px 16px;border-radius:22px;text-align:left;box-shadow:0 0 0 5px rgba(212,255,30,.22),0 0 60px rgba(212,255,30,.55),0 14px 34px rgba(0,0,0,.4);transform-origin:left bottom;transform:scale(.3) rotate(-6deg);animation:hf_say_meet var(--hf_cycle) var(--hf_start) linear infinite}
.hf_bubble_meet span{display:block;color:var(--deep);font-size:2.3em;letter-spacing:.02em;margin-top:2px}
.hf_bubble_meet::after{top:auto;bottom:18px;left:-18px;border:10px solid transparent;border-right-color:var(--neon)}
@keyframes hf_say_meet{0%,56.5%{opacity:0;transform:scale(.3) rotate(-6deg)}58.5%{opacity:1;transform:scale(1.15) rotate(2deg)}60%{opacity:1;transform:scale(.95) rotate(-1deg)}61.5%,70%{opacity:1;transform:scale(1) rotate(0deg)}71.5%{opacity:1;transform:scale(1.05) rotate(0deg)}73.5%,100%{opacity:0;transform:scale(.3) rotate(-6deg)}}

/* phones: smaller Picklu, the big bubble goes above his head (same as Coming Soon on phones) */
@media (max-width:600px){
.h2_hero{--hf_pk_h:clamp(100px,30vw,150px)}
.hf_bubble{font-size:15px}
.hf_bubble_meet{left:50%;bottom:100%;margin:0 0 12px;max-width:88vw;text-align:center;font-size:17px;padding:12px 18px 14px;transform-origin:bottom center;transform:translateX(-50%) scale(.3);animation-name:hf_say_meet_m}
.hf_bubble_meet::after{top:100%;bottom:auto;left:calc(50% - 10px);border:10px solid transparent;border-top-color:var(--neon)}
}
@keyframes hf_say_meet_m{0%,56.5%{opacity:0;transform:translateX(-50%) scale(.3)}58.5%{opacity:1;transform:translateX(-50%) scale(1.12)}60%{opacity:1;transform:translateX(-50%) scale(.96)}61.5%,70%{opacity:1;transform:translateX(-50%) scale(1)}71.5%{opacity:1;transform:translateX(-50%) scale(1.04)}73.5%,100%{opacity:0;transform:translateX(-50%) scale(.3)}}

/* visitors who turned off motion: no falling balls, Picklu stands in the middle and says hi */
@media (prefers-reduced-motion:reduce){
.hf_rain,.hf_toss,.hf_shot,.hf_bubble_meet,.hf_stage::before{display:none}
.hf_picklu{left:calc(50% - var(--hf_pk_w)/2)}
.hf_bubble_hi{opacity:1;transform:translateX(-20%) scale(1)}
}