/* The folded sheet remains between the back and front of ONE envelope.
   The slot clips it below the bottom seam; insertion never fades the sheet. */
.posting-scene{--post-scale:1;position:absolute;width:330px;height:220px;transform:translateY(65px) scale(var(--post-scale));isolation:isolate}
.posting-envelope{position:absolute;inset:0;isolation:isolate;perspective:1000px;filter:drop-shadow(0 8px 7px #0005)}
.posting-back,.posting-front,.posting-flap{position:absolute;inset:0;opacity:0}
.posting-back{z-index:0;border-radius:5px;background:linear-gradient(180deg,#b89a68,#e4cfa8 18%,#f0dfbd);box-shadow:inset 0 2px 5px #4a2c1755}
.posting-slot{position:absolute;left:15px;right:15px;top:-360px;bottom:8px;z-index:2;overflow:hidden;perspective:1100px}
.posting-sheet{position:absolute;left:50%;top:0;width:276px;height:300px;transform:translate(-50%,40px);transform-style:preserve-3d}
.posting-panel{position:absolute;left:0;width:100%;height:100px;background:#f2e0bb url('/assets/paper-texture.svg');box-shadow:inset 0 0 14px #8c5c2526,0 1px 2px #67492050;backface-visibility:visible}
.posting-panel.top{top:0;transform-origin:center bottom;z-index:3;border-radius:3px 3px 0 0}
.posting-panel.middle{top:100px;z-index:1;padding:10px 23px;border-top:1px solid #9f7b4933;border-bottom:1px solid #9f7b4933}
.posting-panel.bottom{top:200px;transform-origin:center top;z-index:4;border-radius:0 0 3px 3px}
.posting-panel.middle span{display:block;font-family:var(--quill,var(--script));font-size:27px;text-align:center;color:#713530}
.posting-panel i{display:block;height:1px;margin:13px 23px;background:#94704b55}
.posting-panel.middle i{margin:11px 0}
.posting-front{z-index:3;clip-path:polygon(0 0,50% 46%,100% 0,100% 100%,0 100%);border-radius:0 0 5px 5px;background:#eddbb9 url('/assets/paper-texture.svg')}
.posting-front:before{content:'';position:absolute;inset:0;background:linear-gradient(34deg,transparent 49.5%,#9b78443d 50%,#fff6df88 50.8%,transparent 51.3%),linear-gradient(-34deg,transparent 49.5%,#9b78443d 50%,#fff6df88 50.8%,transparent 51.3%);box-shadow:inset 0 -2px 4px #93734755}
.posting-flap{height:135px;z-index:1;transform-origin:center top;transform:rotateX(180deg);clip-path:polygon(0 0,100% 0,50% 100%);background:linear-gradient(175deg,#f7e8c9,#ddc29a);backface-visibility:visible}
.posting-flap:after{content:'';position:absolute;inset:0;background:url('/assets/paper-texture.svg');opacity:.5}
.posting-envelope .wax-seal{z-index:6;top:47%;opacity:0;transform:translate(-50%,-20%) scale(0)}
.posting-shadow{position:absolute;left:0;right:0;top:190px;height:40px;background:#0009;border-radius:50%;filter:blur(14px);opacity:0;transform:scale(.88)}
.sending .posting-panel.top{animation:post-fold-top .75s .25s ease-in-out both}
.sending .posting-panel.bottom{animation:post-fold-bottom .75s .95s ease-in-out both}
.sending .posting-sheet{animation:post-insert 1.15s 1.8s cubic-bezier(.4,0,.2,1) both}
.sending .posting-back,.sending .posting-front{animation:post-appear .5s 1.15s ease both}
.sending .posting-flap{animation:post-appear .5s 1.15s ease both,post-close .65s 3.05s ease-in-out forwards}
.sending .posting-envelope .wax-seal{animation:stamp .5s 3.7s cubic-bezier(.18,1.6,.5,1) both}
.sending .posting-envelope{animation:post-flight 6.3s ease-in-out both}
.sending .posting-shadow{animation:post-shadow 6.3s ease-in-out both}
@keyframes post-fold-top{from{transform:rotateX(0)}to{transform:rotateX(-180deg)}}
@keyframes post-fold-bottom{from{transform:rotateX(0)}to{transform:rotateX(180deg)}}
@keyframes post-insert{from{transform:translate(-50%,40px)}to{transform:translate(-50%,372px)}}
@keyframes post-appear{from{opacity:0}to{opacity:1}}
@keyframes post-close{0%{transform:rotateX(180deg);z-index:1}49%{z-index:1}50%{z-index:4}100%{transform:rotateX(0);z-index:4}}
@keyframes post-flight{0%,67%{transform:translate(0,0);opacity:1;filter:drop-shadow(0 8px 7px #0005)}75%{transform:translate(0,-75px) rotate(-5deg);opacity:1;filter:drop-shadow(0 25px 16px #0002)}86%{transform:translate(110px,-130px) rotate(6deg) scale(.9);opacity:1}100%{transform:translate(48vw,-52vh) rotate(-16deg) scale(.12);opacity:0}}
@keyframes post-shadow{0%,18%{opacity:0;transform:scale(.88)}28%,67%{opacity:.8;transform:scale(.88);filter:blur(14px)}76%{opacity:.35;transform:scale(.66);filter:blur(19px)}90%,100%{opacity:0;transform:scale(.25)}}
.animation-stage .animation-caption{bottom:15%;font-size:clamp(17px,3vw,24px)}
@media(max-width:600px){.posting-scene{--post-scale:.82}.animation-stage .animation-caption{bottom:14%;padding:0 14px}.animation-stage .skip-animation{bottom:5%}}
@media(max-height:650px){.posting-scene{--post-scale:.68;transform:translateY(40px) scale(var(--post-scale))}.animation-stage .animation-caption{bottom:12%;font-size:17px}.animation-stage .skip-animation{bottom:2%;padding:7px 18px}}
@media(prefers-reduced-motion:reduce){.animation-stage.sending{display:none}}
