/* REQ-701 (Ahmad, 2026-11-01): soft see-through pictures behind the homepage sections.
   Decorative only. Each picture sits on the side away from the words and fades out before
   them; backdrops.js adds .bd-on as a section nears the screen, so nothing downloads early. */
html{overflow-x:clip}
.bd{position:relative;isolation:isolate}
.bd::before{content:"";position:absolute;top:0;bottom:0;left:50%;width:100vw;transform:translateX(-50%);
  z-index:-1;pointer-events:none;background-repeat:no-repeat;opacity:var(--bd-o);
  background-size:var(--bd-size);background-position:var(--bd-pos);
  -webkit-mask-image:var(--bd-mask),var(--bd-v);mask-image:var(--bd-mask),var(--bd-v);
  -webkit-mask-composite:source-in;mask-composite:intersect}
.bd{--bd-v:linear-gradient(180deg,transparent 0%,#000 12%,#000 85%,transparent 100%);
  --bd-right:linear-gradient(90deg,transparent 0%,transparent 38%,#000 62%);
  --bd-left:linear-gradient(270deg,transparent 0%,transparent 38%,#000 62%);
  --bd-top:linear-gradient(180deg,transparent 0%,#000 6%,#000 45%,transparent 80%);
  --bd-all:linear-gradient(#000,#000)}
/* Ahmad 10 Nov 2026: the faces behind "Your whole venue" and "Less waiting" must show - stronger, and placed so the
   heads clear the cards in front. */
#about.bd{--bd-o:.15;--bd-size:auto 100%;--bd-pos:right 2% top;--bd-mask:var(--bd-right);--bd-v:linear-gradient(180deg,#000 0%,#000 85%,transparent 100%)}
#check-in.bd{--bd-o:.15;--bd-size:auto 100%;--bd-pos:left top;--bd-mask:var(--bd-left)}
#families.bd{--bd-o:.6;--bd-size:auto 100%;--bd-pos:right center;--bd-mask:var(--bd-right)}
#homeapps.bd{--bd-o:.13;--bd-size:100% auto;--bd-pos:center top;--bd-mask:var(--bd-top);--bd-v:var(--bd-all)}
#pai.bd{--bd-o:.24;--bd-size:auto 100%;--bd-pos:-220px center;--bd-mask:var(--bd-left)}
#features.bd{--bd-o:.11;--bd-size:100% auto;--bd-pos:center 12%;--bd-mask:var(--bd-all)}
#trust.bd{--bd-o:.12;--bd-size:100% auto;--bd-pos:center top;--bd-mask:var(--bd-top);--bd-v:var(--bd-all)}
/* The first picture (behind "Your whole venue") is the largest thing a phone paints first, so it loads
   straight from this file and the page head preloads it, instead of waiting for backdrops.js. */
#about.bd::before{background-image:url(backdrops/owner-staff-family.webp)}
#check-in.bd-on::before{background-image:url(backdrops/reception-checkin.webp)}
#families.bd-on::before{background-image:url(backdrops/birthday-party.webp)}
#homeapps.bd-on::before{background-image:url(backdrops/toddler-timer.webp)}
#pai.bd-on::before{background-image:url(backdrops/owner-relaxed.webp)}
#features.bd-on::before{background-image:url(backdrops/shop-shelves.webp)}
#trust.bd-on::before{background-image:url(backdrops/family-welcome.webp)}
/* Arabic reads right to left: the words swap sides, so the pictures do too. */
[dir=rtl] #about.bd{--bd-pos:left 2% top;--bd-mask:var(--bd-left)}
[dir=rtl] #check-in.bd{--bd-pos:right top;--bd-mask:var(--bd-right)}
[dir=rtl] #families.bd{--bd-pos:left center;--bd-mask:var(--bd-left)}
[dir=rtl] #pai.bd{--bd-pos:right -220px center;--bd-mask:var(--bd-right)}
/* Ahmad 10 Nov 2026: no hard picture edges. On wide screens the side pictures get a box the size of the
   picture itself, so the fade follows the picture's own edges: soft on the outside, a long fade toward the words. */
@media(min-width:851px){
  #about.bd::before,#check-in.bd::before,#families.bd::before,#pai.bd::before{
    width:auto;transform:none;aspect-ratio:3/2;background-size:cover;background-position:center top;
    -webkit-mask-image:var(--bd-fx),var(--bd-fy);mask-image:var(--bd-fx),var(--bd-fy)}
  #about.bd::before{aspect-ratio:16/9}
  .bd{--bd-fy:linear-gradient(180deg,transparent 0%,#000 14%,#000 80%,transparent 100%);
    --bd-fade-r:linear-gradient(90deg,transparent 0%,#000 12%,#000 45%,transparent 92%);
    --bd-fade-l:linear-gradient(270deg,transparent 0%,#000 12%,#000 45%,transparent 92%)}
  /* picture on the left of the screen, fading out toward the words on the right */
  #check-in.bd::before{left:calc(50% - 50vw);right:auto;--bd-fx:var(--bd-fade-r)}
  #pai.bd::before{left:calc(50% - 50vw - 220px);right:auto;--bd-fx:var(--bd-fade-r)}
  /* picture on the right */
  #about.bd::before{left:auto;right:calc(50% - 50vw + 2vw);--bd-fx:var(--bd-fade-l)}
  #families.bd::before{left:auto;right:calc(50% - 50vw);--bd-fx:var(--bd-fade-l)}
  [dir=rtl] #check-in.bd::before{left:auto;right:calc(50% - 50vw);--bd-fx:var(--bd-fade-l)}
  [dir=rtl] #pai.bd::before{left:auto;right:calc(50% - 50vw - 220px);--bd-fx:var(--bd-fade-l)}
  [dir=rtl] #about.bd::before{right:auto;left:calc(50% - 50vw + 2vw);--bd-fx:var(--bd-fade-r)}
  [dir=rtl] #families.bd::before{right:auto;left:calc(50% - 50vw);--bd-fx:var(--bd-fade-r)}
}
/* The picture discs are gone so the pictures behind can show (Ahmad, 2026-11-01). */
.legacy-hero-disc,.scene-disc,.family-disc,.pai-halo{display:none}
/* Ahmad 10 Nov 2026 (option A): "Less waiting" keeps its cards, smaller and low, so the faces above show;
   "Good times" shows the party photo with no cards, only the "See you next time!" bubble. */
@media(min-width:851px){
  /* Ahmad 27 Nov 2026: the card moves up into the open space between the two faces */
  #check-in .session-card{top:-13px;bottom:auto;left:89px;transform:rotate(-4deg) scale(.8);transform-origin:top left}
  #check-in .session-pai{transform:scale(.62);transform-origin:bottom right;bottom:-10px}
  #check-in .session-bubble{top:auto;bottom:250px;right:40px}
  [dir=rtl] #check-in .session-card{left:auto;right:89px;transform:rotate(4deg) scale(.8);transform-origin:top right}
  [dir=rtl] #check-in .session-pai{right:auto;left:-14px;transform-origin:bottom left}
  [dir=rtl] #check-in .session-bubble{right:auto;left:40px}
}
#families .passes-art,#families .profile-art{display:none}
#families .family-sticker{top:auto;bottom:20px}
/* Phones: the section picture sits up behind the words, so the empty art spot shows the party photo itself. */
@media(max-width:850px){
  #families.bd::before{display:none}
  #families .families-scene{background:url(backdrops/birthday-party.webp) center top/cover no-repeat;border-radius:28px;height:300px}
}
/* Phones and small tablets stack words over art: every picture moves to the top and fades out
   before the words get busy. */
@media(max-width:850px){
  .bd{--bd-size:100% auto!important;--bd-pos:center top!important;--bd-mask:var(--bd-top)!important;--bd-v:var(--bd-all)!important}
  .bd::before{opacity:calc(var(--bd-o) * .75)}
}
