/* Stronger, readable wind and theme-specific life for the Standard collection. */
body.standard-cinema .standard-depth-arrival img{animation-duration:3.6s!important;animation-name:standard-visible-breeze!important}
body.standard-cinema .standard-depth-arrival.depth-right img{animation-duration:4.3s!important;animation-delay:-1.8s!important;animation-direction:alternate-reverse!important}
body.standard-cinema .depth-garden .standard-identity{animation-duration:5s!important;animation-name:standard-visible-main-breeze!important}
body.standard-cinema .standard-cloud-plane{animation-duration:24s;animation-name:standard-visible-clouds}
@keyframes standard-visible-breeze{from{rotate:-5deg;translate:-3px 0}to{rotate:5.5deg;translate:4px 0}}
@keyframes standard-visible-main-breeze{from{rotate:-3deg}to{rotate:3.5deg}}
@keyframes standard-visible-clouds{from{translate:-7% 0}to{translate:10% 0}}
.standard-living{position:absolute;inset:0;z-index:4;overflow:hidden;pointer-events:none}
.standard-flight{position:absolute;left:var(--life-side);bottom:var(--life-bottom);width:var(--life-size);aspect-ratio:3/4;animation:standard-bird-left var(--life-duration) var(--life-delay) linear infinite;opacity:0}
.standard-flight:nth-child(even){animation-name:standard-bird-right;scale:-1 1}
.standard-wing{display:block;width:100%;height:100%;background-size:400% 100%;background-repeat:no-repeat;animation:standard-wingbeat var(--wing-duration,.65s) steps(1,end) infinite}
.sprite-butterfly{background-image:url('/static/assets/premium/natural-wildlife-v3/butterfly.webp')}
.sprite-dove{background-image:url('/static/assets/premium/natural-wildlife-v3/dove.webp')}
.sprite-swallow{background-image:url('/static/assets/premium/natural-wildlife-v3/swallow.webp')}
.sprite-seagull{background-image:url('/static/assets/premium/natural-wildlife-v3/seagull-clean-v4.webp')}
@keyframes standard-wingbeat{0%,100%{background-position:0% 0}25%{background-position:33.3333% 0}50%{background-position:66.6667% 0}75%{background-position:100% 0}}
@keyframes standard-bird-left{0%,12%{opacity:0;transform:translate(65px,40px) rotate(-12deg)}18%{opacity:.95}48%{opacity:.95;transform:translate(-40px,-110px) rotate(-6deg)}68%,100%{opacity:0;transform:translate(-170px,-210px) rotate(8deg)}}
@keyframes standard-bird-right{0%,5%{opacity:0;transform:translate(10px,40px)}13%{opacity:.95}48%{opacity:.95;transform:translate(50px,-95px) rotate(-8deg)}76%,100%{opacity:0;transform:translate(170px,-190px)}}
.life-butterfly .standard-flight{opacity:.95;animation:standard-butterfly-garden var(--life-duration) var(--life-delay) ease-in-out infinite}
.life-butterfly .standard-flight:nth-child(even){animation-direction:reverse}
.life-butterfly .standard-wing{filter:sepia(.12) saturate(1.2)}
.design-lavender .sprite-butterfly,.design-iris .sprite-butterfly{filter:hue-rotate(25deg) saturate(.8)}
.design-cartoon-cloud .sprite-butterfly{filter:hue-rotate(305deg) saturate(1.3)}
@keyframes standard-butterfly-garden{0%,100%{transform:translate(-8px,-4px) rotate(-12deg)}25%{transform:translate(26px,-55px) rotate(14deg)}55%{transform:translate(-13px,-95px) rotate(-8deg)}80%{transform:translate(31px,-33px) rotate(11deg)}}
.standard-drift{position:absolute;left:var(--drift-x);top:35%;width:18px;height:23px;opacity:0;animation:standard-leaf-drift var(--drift-time) var(--drift-delay) linear infinite}
.standard-drift img{width:100%;height:100%;object-fit:contain}
@keyframes standard-leaf-drift{0%{opacity:0;transform:translate(0,0) rotate(0deg)}15%,75%{opacity:.85}100%{opacity:0;transform:translate(14px,48vh) rotate(160deg)}}
.life-petal .standard-drift i{display:block;width:10px;height:16px;border-radius:75% 20% 65% 30%;background:linear-gradient(130deg,#fff8ed,#e5b6b3);box-shadow:0 1px 3px #755a3822}
.life-light .standard-drift,.life-star .standard-drift{top:auto;bottom:12%;animation:standard-gold-rise var(--drift-time) var(--drift-delay) ease-in-out infinite}
.life-light .standard-drift i,.life-star .standard-drift i{display:block;width:5px;height:5px;border-radius:50%;background:#e7c577;box-shadow:0 0 9px 3px #e7c57788}
.life-star .standard-drift{bottom:calc(12% + var(--drift-x)*.4)}
.life-star .standard-drift i{width:3px;height:3px;background:#fff8e0;box-shadow:0 0 8px #fff9e9}
@keyframes standard-gold-rise{0%,100%{opacity:0;transform:translate(0,20px) scale(.5)}30%,60%{opacity:1}85%{opacity:.2;transform:translate(8px,-95px) scale(1.15)}}
body.design-aceh.tier-standard .aceh-plant img{animation-duration:3.8s!important;--wind-low:-5deg;--wind-high:5.5deg}
body.design-aceh.tier-standard .aceh-palm{animation-duration:5s!important}
body.design-aceh.tier-standard .aceh-cloud{animation-duration:26s!important}
body.design-aceh.tier-standard .aceh-flower-butterfly{width:25px;animation-duration:8s}
/* Covers keep their existing painting, with lettering directly on the scene. */
body.tier-standard .cover .cover-content{background:none!important;border:0!important;border-radius:0!important;box-shadow:none!important;backdrop-filter:none!important}
body.tier-standard .cover .cover-content:before,body.tier-standard .cover .cover-content:after{display:none!important}
/* Restore the existing painted backdrop for story and closing. */
body.tier-standard.standard-cinema :is(#story-section,.closing)>.theme-scene{opacity:1!important}
body.tier-standard.standard-cinema :is(#story-section,.closing) .collection-backdrop{opacity:1!important;filter:none!important;object-fit:cover!important}
body.tier-standard.standard-cinema :is(#story-section,.closing):after{display:none!important}
body.tier-standard.standard-cinema :is(#story-section,.closing)>.theme-scene:after{content:'';position:absolute;inset:0;background:color-mix(in srgb,var(--paper) 35%,transparent);pointer-events:none;z-index:3}
body.tier-standard.standard-cinema :is(#story-section,.closing) .standard-scene-depth{display:none!important}
body.design-aceh.tier-standard :is(#story-section,.closing) .aceh-original-cover{opacity:1!important;filter:none!important}
body.design-aceh.tier-standard #story-section .aceh-layered-scene:after{background:#fcf6ea45!important}
body.design-aceh.tier-standard :is(#story-section,.closing):after{display:none!important}
body.tier-standard .scene-asleep .standard-living *,body.tier-standard.page-asleep .standard-living *,body.tier-standard.motion-pause .standard-living *{animation-play-state:paused!important}
@media(prefers-reduced-motion:reduce){body.tier-standard .standard-living{display:none!important}body.standard-cinema .standard-depth-arrival img,body.standard-cinema .depth-garden .standard-identity,body.standard-cinema .standard-cloud-plane,body.design-aceh.tier-standard .aceh-plant img,body.design-aceh.tier-standard .aceh-palm,body.design-aceh.tier-standard .aceh-cloud{animation:none!important}}
/* Per-theme world v2: six independent atlas cells, never a shared backdrop. */
.standard-cinema .invitation-overture .standard-world{display:none!important}
.standard-cinema.standard-world-ready .invitation-overture .standard-world{display:block!important}
.standard-cinema.standard-world-ready .invitation-overture .world-fallback{display:none!important}
.standard-cinema .invitation-overture .standard-world{background:radial-gradient(ellipse at 18% 8%,color-mix(in srgb,var(--paper) 90%,white),transparent 55%),linear-gradient(160deg,var(--paper) 10%,color-mix(in srgb,var(--paper) 92%,var(--color)) 76%,color-mix(in srgb,var(--paper) 75%,var(--color)))}
.world-paper-texture{position:absolute;inset:0;background:repeating-linear-gradient(112deg,#ffffff09 0 1px,transparent 1px 5px);opacity:.5}
.world-arrival{position:absolute;pointer-events:none;aspect-ratio:1;z-index:1}
.world-cutout{display:block;position:absolute;inset:0;background-image:var(--world-atlas);background-size:300% 200%;background-repeat:no-repeat;transform-origin:50% 90%}
.cell-0{background-position:0% 0%}.cell-1{background-position:50% 0%}.cell-2{background-position:100% 0%}.cell-3{background-position:0% 100%}.cell-4{background-position:50% 100%}.cell-5{background-position:100% 100%}
.world-atmosphere{width:115%;left:-38%;top:-10%;opacity:.6;z-index:0}
.world-atmosphere .world-cutout{animation:world-air 18s -8s ease-in-out infinite alternate}
.world-horizon{width:145%;left:-22%;bottom:-110px;z-index:1;opacity:.65}
.world-tree{width:88%;left:-50%;bottom:5%;z-index:2;opacity:.95}
.world-tree .world-cutout{animation:world-tall-wind 4.6s -2s ease-in-out infinite alternate;transform-origin:50% 95%}
.world-feature{width:76%;right:-8%;bottom:5px;z-index:3}
.world-shrub{width:65%;right:-27%;bottom:-36px;z-index:4}
.world-shrub .world-cutout{animation:world-front-wind 3.5s -1s ease-in-out infinite alternate-reverse}
.world-foreground{width:62%;left:-20%;bottom:-60px;z-index:5}
.world-foreground .world-cutout{animation:world-front-wind 3.2s -2s ease-in-out infinite alternate}
.world-foreground-small{width:40%;right:-9%;bottom:-35px;z-index:6}
.world-foreground-small .world-cutout{animation:world-front-wind 4s -.7s ease-in-out infinite alternate-reverse}
.world-regional-building{position:absolute;width:108%;height:285px;right:-5%;bottom:12px;z-index:3}
.world-regional-building img{display:block;width:100%;height:100%;object-fit:contain;object-position:center bottom;transform:none;animation:none!important}
.standard-world:has(.world-regional-building) .world-feature{width:36%;left:-5%;right:auto;bottom:0;z-index:4}
.world-coast .world-horizon{bottom:-70px;width:170%;left:-35%;opacity:.8}
.world-coast .world-feature{width:67%;right:-13%;bottom:5%}
.world-coast .world-tree{width:100%;left:-56%;bottom:0}
.world-coast .world-shrub{width:55%;bottom:-8%}
.world-garden .world-tree{width:110%;left:-66%;bottom:-1%}
.world-garden .world-feature{width:68%;right:-3%;bottom:1%}
.world-garden .world-shrub{width:66%;bottom:-4%}
.world-floral .world-tree{width:100%;left:-58%;bottom:0}
.world-floral .world-feature{width:66%;right:-5%;bottom:0}
.world-floral .world-foreground{width:75%;left:-24%;bottom:-75px}
.world-storybook .world-tree{left:-51%;width:95%;bottom:2%}
.world-storybook .world-feature{right:-8%;width:79%;bottom:2%}
.world-night{background:radial-gradient(ellipse at 20% 6%,#354b6d,#152438 65%)!important}
.world-night .world-atmosphere{opacity:.35}.world-night .world-horizon{opacity:.55}
.world-night .world-feature{width:60%;right:6%;bottom:0}
.world-autumn{background:linear-gradient(165deg,#fff1d9,#f2d4ab 78%,#c9b58d)!important}
.world-azalea{background:linear-gradient(145deg,#fff0e8,#fae2d7 75%,#d0c9ae)!important}
.world-azure{background:linear-gradient(160deg,#e7f4fc,#cfebf0 72%,#f4e4c8)!important}
.world-coraline{background:linear-gradient(170deg,#fff1e5,#d8f1ea 70%,#eecdb8)!important}
.world-lavender{background:linear-gradient(165deg,#f8f1fc,#e9def0 75%,#c3ccb7)!important}
.world-lotus{background:linear-gradient(165deg,#f0f8ee,#e2eee2 68%,#b9d0bd)!important}
.world-snow{background:linear-gradient(155deg,#f9fcff,#e3edf0 78%,#c8d4d3)!important}
.world-monochrome,.world-silhouette{filter:saturate(.25)}
@keyframes world-air{from{translate:-12px 0}to{translate:62px 4px}}
@keyframes world-tall-wind{from{rotate:-3deg;translate:-2px 0}to{rotate:3.2deg;translate:3px 0}}
@keyframes world-front-wind{from{rotate:-5.5deg;translate:-3px 0}to{rotate:5deg;translate:4px 0}}
.standard-cinema-started .world-arrival,.standard-cinema-started .world-regional-building{animation:standard-depth-rise 2.3s .65s both}
.standard-cinema-started .world-tree{animation-delay:.4s}.standard-cinema-started .world-feature,.standard-cinema-started .world-regional-building{animation-delay:.85s}.standard-cinema-started .world-foreground{animation-delay:1s}
.standard-world .standard-living{z-index:7}
body.tier-standard .scene-asleep .world-cutout,body.tier-standard.page-asleep .world-cutout,body.tier-standard.motion-pause .world-cutout{animation-play-state:paused!important}
/* Original cover image stays full bleed in the story and final page. */
body.tier-standard :is(#story-section,.closing)>.standard-original-backdrop{display:block!important;position:absolute!important;inset:0;z-index:0;width:100%!important;height:100%!important;max-width:none!important;object-fit:cover;object-position:center;opacity:1!important;pointer-events:none}
body.tier-standard :is(#story-section,.closing):has(>.standard-original-backdrop)>.theme-scene{display:none!important}
body.tier-standard :is(#story-section,.closing):has(>.standard-original-backdrop){background:var(--paper);isolation:isolate}
body.tier-standard :is(#story-section,.closing):has(>.standard-original-backdrop)>:not(.standard-original-backdrop){position:relative;z-index:2}
body.tier-standard :is(#story-section,.closing)>.standard-original-backdrop{filter:none!important}
body.tier-standard :is(#story-section,.closing):has(>.standard-original-backdrop):before{display:block!important;content:'';position:absolute;inset:0;z-index:1;background:color-mix(in srgb,var(--paper) 38%,transparent);pointer-events:none}
@media(prefers-reduced-motion:reduce){body.standard-cinema .world-cutout,body.standard-cinema .world-arrival,body.standard-cinema .world-regional-building{animation:none!important;translate:none!important;rotate:none!important}}
/* Soften atlas gutters so neighboring cutout tips cannot leak into a cell. */
.world-cutout{mask-image:linear-gradient(90deg,transparent,#000 4%,#000 96%,transparent),linear-gradient(0deg,transparent,#000 4%,#000 96%,transparent);mask-composite:intersect}
.world-atmosphere .world-cutout{mask-image:radial-gradient(ellipse,#000 35%,#000c 58%,transparent 74%)}
body.tier-standard .cover .guest-block,body.tier-standard .cover .couple-monogram{background:none!important;border:0!important;box-shadow:none!important;backdrop-filter:none!important}
body.tier-standard .cover .guest-block:before,body.tier-standard .cover .guest-block:after,body.tier-standard .cover .couple-monogram:before,body.tier-standard .cover .couple-monogram:after{display:none!important}
body.design-aceh.tier-standard .aceh-palm{animation-name:aceh-visible-tree-sway!important;animation-duration:4.8s!important}
@keyframes aceh-visible-tree-sway{from{rotate:-3.3deg}to{rotate:3.6deg}}
body.design-aceh.tier-standard .invitation-overture .aceh-bird-flight{width:calc(var(--bird-size)*1.15)}
body.design-aceh.tier-standard.aceh-layered-started .invitation-overture .bird-repeat{animation-duration:18s!important}
body.design-aceh.tier-standard.aceh-layered-started .invitation-overture .bird-repeat:last-child{animation-duration:23s!important;animation-delay:-9s!important}
.life-star .standard-drift{bottom:var(--drift-x)}
.design-azalea .sprite-butterfly,.design-camellia .sprite-butterfly,.design-dahlia .sprite-butterfly{filter:sepia(.55) saturate(1.7)}
.design-lavender .sprite-butterfly,.design-iris .sprite-butterfly{filter:sepia(.5) saturate(1.5) hue-rotate(215deg)}
.design-cartoon-cloud .sprite-butterfly,.design-snow .sprite-butterfly{filter:sepia(.3) saturate(1.25) hue-rotate(285deg)}
@media(prefers-reduced-motion:reduce){body.design-aceh.tier-standard .aceh-palm{animation:none!important}}
body.tier-standard:not(.theme-midnight):not(.collection-dark) :is(#story-section,.closing)>:not(.standard-original-backdrop){color:color-mix(in srgb,var(--color) 88%,#000);text-shadow:0 1px 4px var(--paper),0 0 9px color-mix(in srgb,var(--paper) 75%,transparent)}
/* Mempelai and Acara share the exact entrance world, not the cover painting. */
body.standard-cinema.standard-world-ready :is(#mempelai,#events)>.theme-scene{display:block!important;inset:0!important;opacity:1!important;background:none!important;filter:none!important}
body.standard-cinema.standard-world-ready :is(#mempelai,#events)>.theme-scene>:not(.standard-world){display:none!important}
body.standard-cinema.standard-world-ready :is(#mempelai,#events)>.theme-scene>.standard-world{display:block!important}
body.standard-cinema.standard-world-ready :is(#mempelai,#events)>.theme-scene:after{display:none!important}
body.standard-cinema.standard-world-ready :is(#mempelai,#events){position:relative;isolation:isolate;overflow:hidden}
body.standard-cinema.standard-world-ready :is(#mempelai,#events)>:not(.theme-scene,.standard-foreground,.falling-leaves,.playful-foreground){position:relative;z-index:6}
body.standard-cinema.standard-world-ready :is(#mempelai,#events)>.standard-foreground,body.standard-cinema.standard-world-ready :is(#mempelai,#events)>.falling-leaves{display:none!important}
body.standard-cinema.standard-world-ready :is(#mempelai,#events) .world-atmosphere{opacity:.4}
body.standard-cinema.standard-world-ready :is(#mempelai,#events) .standard-living{opacity:.72}
body.standard-cinema.standard-world-ready :is(#mempelai,#events) .world-horizon{opacity:.5}
body.standard-cinema.standard-world-ready #events .event-block{background:color-mix(in srgb,var(--paper) 91%,transparent)!important}
body.design-aceh.tier-standard :is(#mempelai,#events) .aceh-layered-scene{opacity:1!important}
body.design-aceh.tier-standard :is(#mempelai,#events) .aceh-house{opacity:.55!important}
body.design-aceh.tier-standard :is(#mempelai,#events) :is(.aceh-tree-layer,.aceh-garden-layer,.aceh-foreground-layer){opacity:.6}
/* Keep the landscape in view while reading long Mempelai/Acara chapters. */
body.standard-cinema.standard-world-ready :is(#mempelai,#events){overflow:clip!important}
body.standard-cinema.standard-world-ready :is(#mempelai,#events)>.theme-scene{overflow:clip!important;height:100%!important;z-index:0!important}
body.standard-cinema.standard-world-ready :is(#mempelai,#events)>.theme-scene>.standard-world{position:sticky!important;inset:auto!important;top:0!important;width:100%!important;height:100dvh!important;min-height:600px;overflow:hidden}
body.standard-cinema.standard-world-ready :is(#mempelai,#events) .world-arrival,body.standard-cinema.standard-world-ready :is(#mempelai,#events) .world-regional-building{opacity:.72}
body.standard-cinema.standard-world-ready #mempelai :is(.chapter-heading,.invitation-greeting,.couple-profiles){text-shadow:0 1px 5px var(--paper),0 0 9px var(--paper)}
body.design-aceh.tier-standard :is(#mempelai,#events){overflow:clip!important;isolation:isolate}
body.design-aceh.tier-standard :is(#mempelai,#events)>.theme-scene{overflow:clip!important;inset:0!important;height:100%!important;z-index:0!important}
body.design-aceh.tier-standard :is(#mempelai,#events) .aceh-layered-scene{position:sticky!important;inset:auto!important;top:0!important;height:100dvh!important;min-height:600px;width:100%}
body.design-aceh.tier-standard :is(#mempelai,#events)>:not(.theme-scene){position:relative;z-index:6}
/* Keep lettering legible where a scenic branch reaches the reading area. */
body.standard-cinema .invitation-overture .overture-copy :is(h2,.collection-welcome,.overture-date){text-shadow:0 1px 5px var(--paper),0 0 10px color-mix(in srgb,var(--paper) 80%,transparent)}
.world-coraline .world-horizon{bottom:-150px}

/* Keep Azure pavilion centered along the bottom of its scenery. */
.world-azure .world-feature{left:16.5%;right:auto;bottom:0}

/* Premium reading chapters: Aceh-style quiet scenery behind the photographs. */
body.standard-cinema.standard-world-ready :is(#mempelai,#events) .world-arrival{opacity:.24!important}
body.standard-cinema.standard-world-ready :is(#mempelai,#events) .world-atmosphere{opacity:.3!important}
body.standard-cinema.standard-world-ready :is(#mempelai,#events) .world-horizon{opacity:.16!important}
body.standard-cinema.standard-world-ready :is(#mempelai,#events) .standard-living{opacity:.45!important}

body.standard-cinema.standard-world-ready :is(#mempelai,#events) .world-regional-building{opacity:.2!important}
