/* Team TararBari V16.5 — UIU gap removal + active shooting stars + more falling stars */

body.theme-uiu-rover-reference-v16{
  --tb-uiu-gap-overlap:18px;
  --tb-uiu-hero-top-pad:72px;
}

/* Pull the hero up so the strip/gap under the menu disappears. */
body.theme-uiu-rover-reference-v16 #tb-v16-home,
body.theme-uiu-rover-reference-v16 .uiu16-home{margin-top:0!important;padding-top:0!important}
body.theme-uiu-rover-reference-v16 .uiu16-hero{
  margin-top:calc(-1 * var(--tb-uiu-gap-overlap,18px))!important;
  padding-top:var(--tb-uiu-gap-overlap,18px)!important;
  min-height:calc(100svh - 84px + var(--tb-uiu-gap-overlap,18px))!important;
  overflow:hidden!important;
}
body.theme-uiu-rover-reference-v16 .uiu16-hero-inner{
  padding-top:var(--tb-uiu-hero-top-pad,72px)!important;
  padding-bottom:84px!important;
}
body.theme-uiu-rover-reference-v16 .uiu16-hero:before{
  background:
    linear-gradient(90deg,rgba(0,0,0,.92),rgba(0,0,0,.56) 48%,rgba(0,0,0,.12)),
    linear-gradient(to top,rgba(0,0,0,.82),transparent 44%)!important;
}
@media(max-width:900px){
  body.theme-uiu-rover-reference-v16{
    --tb-uiu-gap-overlap:14px;
    --tb-uiu-hero-top-pad:56px;
  }
  body.theme-uiu-rover-reference-v16 .uiu16-hero{
    min-height:calc(100svh - 78px + var(--tb-uiu-gap-overlap,14px))!important;
  }
}

/* Extra active star overlay */
body.theme-uiu-rover-reference-v16 .tb165-overlay{
  position:absolute!important;
  inset:0!important;
  z-index:4!important;
  overflow:hidden!important;
  pointer-events:none!important;
}
body.theme-uiu-rover-reference-v16 .tb165-fall{
  position:absolute!important;
  top:-20px!important;
  width:2.4px!important;height:2.4px!important;border-radius:50%!important;
  background:#fff!important;
  box-shadow:0 0 10px rgba(210,245,255,.98)!important;
  opacity:0!important;
  animation:tb165Fall var(--dur,8s) linear infinite!important;
  animation-delay:var(--delay,0s)!important;
}
body.theme-uiu-rover-reference-v16 .tb165-fall:after{
  content:""!important;position:absolute!important;left:50%!important;top:-18px!important;
  width:1px!important;height:18px!important;transform:translateX(-50%)!important;
  background:linear-gradient(to top,rgba(255,255,255,.66),transparent)!important;
}
body.theme-uiu-rover-reference-v16 .tb165-shot{
  position:absolute!important;
  width:5px!important;height:5px!important;border-radius:50%!important;
  background:#fff!important;opacity:0!important;
  box-shadow:0 0 12px #fff,0 0 24px rgba(255,186,92,.45),0 0 32px rgba(83,217,255,.92)!important;
  animation:tb165Shot var(--dur,7.4s) ease-in-out infinite!important;
  animation-delay:var(--delay,0s)!important;
}
body.theme-uiu-rover-reference-v16 .tb165-shot:after{
  content:""!important;position:absolute!important;right:2px!important;top:50%!important;
  width:var(--tail,220px)!important;height:3px!important;transform:translateY(-50%)!important;
  background:linear-gradient(90deg,transparent,rgba(70,180,255,.12),rgba(120,220,255,.45),rgba(255,179,82,.6),#fff)!important;
  filter:drop-shadow(0 0 5px rgba(90,220,255,.95))!important;
}
body.theme-uiu-rover-reference-v16 .tb165-shot.a{
  left:34%!important;top:18%!important;
  --tail:300px!important;--travel-x:19vw;--travel-y:13vh;
}
body.theme-uiu-rover-reference-v16 .tb165-shot.b{
  left:52%!important;top:17%!important;
  --tail:190px!important;--travel-x:12vw;--travel-y:11vh;
}
body.theme-uiu-rover-reference-v16 .tb165-shot.random{
  --tail:170px!important;--travel-x:16vw;--travel-y:14vh;
}

@keyframes tb165Fall{
  0%{transform:translate3d(0,-5vh,0);opacity:0}
  10%{opacity:.92}
  86%{opacity:.72}
  100%{transform:translate3d(var(--drift,28px),110vh,0);opacity:0}
}
@keyframes tb165Shot{
  0%,58%{opacity:0;transform:translate3d(0,0,0) rotate(24deg) scale(.92)}
  62%{opacity:1}
  80%{opacity:.96}
  100%{opacity:0;transform:translate3d(var(--travel-x,15vw),var(--travel-y,12vh),0) rotate(24deg) scale(1.06)}
}

@media(max-width:700px){
  body.theme-uiu-rover-reference-v16 .tb165-shot.a{left:28%!important;top:16%!important;--tail:170px!important}
  body.theme-uiu-rover-reference-v16 .tb165-shot.b{left:54%!important;top:15%!important;--tail:130px!important}
  body.theme-uiu-rover-reference-v16 .tb165-shot{width:4px!important;height:4px!important}
  body.theme-uiu-rover-reference-v16 .tb165-shot:after{height:2px!important}
}
@media(prefers-reduced-motion:reduce){
  body.theme-uiu-rover-reference-v16 .tb165-overlay{display:none!important}
}
