.envelope-entrance{--envelope-ink:#692614;padding:max(40px, env(safe-area-inset-top)) 32px max(40px, env(safe-area-inset-bottom));background:linear-gradient(145deg,#160204a6,#0000 24%,#d52c2524 32%,#0000 42%,#13010380 60%,#0000 74%),radial-gradient(at 28% 24%,#a9212b,#0000 62%),radial-gradient(at 85% 86%,#8c1220,#0000 58%),#450815;border:0;width:100%;max-width:none;height:100%;max-height:none;margin:0;position:fixed;inset:0;overflow:auto}.envelope-entrance:not([open]){display:none}.envelope-entrance[open]{place-items:center;display:grid}.envelope-entrance::backdrop{background:0 0}.envelope-entrance:after{content:"";pointer-events:none;background:repeating-linear-gradient(0deg,#ffffff05 0 1px,#0000 1px 3px),repeating-linear-gradient(90deg,#00000008 0 1px,#0000 1px 3px);position:absolute;inset:0}.envelope-confetti{color:#efae99;opacity:.22;pointer-events:none;position:absolute;inset:0}.envelope-scene{z-index:1;text-align:center;width:min(85%,660px);padding:26px 0 65px;position:relative;transform:rotate(-8deg)}.envelope{aspect-ratio:1.65;perspective:1200px;isolation:isolate;width:100%;position:relative}.envelope-back{background:linear-gradient(145deg,#f8d777,#bf822a);border-radius:4px;position:absolute;inset:0;box-shadow:inset 1px 1px 1px #fff5b6cc,inset -2px -2px 2px #63340780,3px 5px 5px #17020080,10px 18px 30px #12010499}.envelope-letter{font:italic clamp(18px, 3vw, 27px)/1.3 var(--serif);color:var(--envelope-ink);background:#fff5dc;border:1px solid #cba88066;border-radius:3px;flex-direction:column;align-items:center;gap:12px;padding:18px 8px;display:flex;position:absolute;inset:9% 7% 5%}.envelope-letter-mark{color:#a58159;font-style:normal}.envelope-letter-rule{border-top:1px solid #cba88080;width:28%}.envelope-pocket{z-index:2;clip-path:polygon(0 0,50% 54%,100% 0,100% 100%,0 100%);background:linear-gradient(170deg,#f6d478 10%,#ddb151 55%,#b97825);border-radius:0 0 4px 4px;position:absolute;inset:0}.envelope-fold{z-index:3;border-radius:4px;position:absolute;inset:0}.envelope-fold-left{clip-path:polygon(0 0,50.2% 55%,0 100%);background:linear-gradient(125deg,#efc967,#d19b40 70%,#93601c)}.envelope-fold-right{clip-path:polygon(100% 0,49.8% 55%,100% 100%);background:linear-gradient(225deg,#ffe493,#deb454 60%,#ad751d)}.envelope-flap-shadow{z-index:4;transform-origin:top;clip-path:polygon(0 1%,100% 1%,50% 57%);backface-visibility:hidden;background:#5b300ba6;position:absolute;inset:0}.envelope-flap{z-index:4;clip-path:polygon(0 0,100% 0,50% 54.5%);transform-origin:top;backface-visibility:hidden;background:linear-gradient(160deg,#ffecac,#f3cf67 43%,#c99936 80%);border-radius:4px 4px 0 0;position:absolute;inset:0;box-shadow:inset 0 1px #fff7c6}.envelope-pocket:after,.envelope-fold:after,.envelope-flap:after{content:"";opacity:.22;pointer-events:none;background-image:radial-gradient(#78470980 .55px,#0000 .8px),radial-gradient(#fffbd999 .6px,#0000 .9px);background-position:0 0,1px 2px;background-size:3px 3px,4px 4px;position:absolute;inset:0}.envelope-open-form{z-index:5;margin:0;position:absolute;inset:0}.envelope-open-button{aspect-ratio:1;cursor:pointer;width:clamp(88px,12vw,112px);font-family:var(--sans);background:0 0;border:0;place-items:center;padding:0;display:grid;position:absolute;top:54.5%;left:50%;transform:translate(-50%,-50%)}.envelope-seal{aspect-ratio:1;background:radial-gradient(at 27% 16%,#f66f50b3,#0000 29%),radial-gradient(circle at 50% 53%,#8f0b13 0 53%,#c12023 57%,#70050a 65%,#c22a24 72%,#82090c);border-radius:43% 50% 46% 49%/47% 43% 52% 48%;place-items:center;width:100%;display:grid;position:relative;box-shadow:inset 2px 2px 3px #ffbb8780,inset -3px -4px 4px #400000b3,3px 5px 3px #53230180,5px 8px 9px #53230159}.envelope-seal-ring{width:100%;height:100%;position:absolute;inset:0}.envelope-open-label{fill:#ffe6a3;letter-spacing:.04em;width:100%;height:auto;font-size:22px;font-weight:600;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.envelope-open-button:focus-visible{outline:none}.envelope-open-button:focus-visible .envelope-seal{outline-offset:6px;outline:2px solid #fff0b3}[data-envelope-focus]:focus{outline:none}.envelope-open-button:active .envelope-seal{box-shadow:inset 3px 3px 5px #40000099,1px 2px 3px #53230180}.envelope-entrance.is-opening{pointer-events:none;animation:1s 2.2s forwards envelope-dismiss}.envelope-entrance.is-opening .envelope-open-button{animation:.55s forwards envelope-unseal}.envelope-entrance.is-opening .envelope-flap,.envelope-entrance.is-opening .envelope-flap-shadow{animation:1.4s ease-in-out .4s forwards envelope-unfold}.envelope-entrance.is-opening .envelope-letter{animation:1.1s ease-out .85s forwards envelope-letter-rise}@keyframes envelope-unseal{to{opacity:0;transform:translate(-50%,-62%)scale(.92)}}@keyframes envelope-unfold{to{transform:rotateX(175deg)}}@keyframes envelope-letter-rise{to{transform:translateY(-15%)}}@keyframes envelope-dismiss{to{opacity:0}}@media (width<=480px){.envelope-entrance{padding-inline:18px}.envelope-scene{width:90%;transform:rotate(-6deg)}.envelope{aspect-ratio:1.35}}@media (prefers-reduced-motion:reduce){.envelope-entrance.is-opening,.envelope-entrance.is-opening .envelope-open-button,.envelope-entrance.is-opening .envelope-flap,.envelope-entrance.is-opening .envelope-flap-shadow,.envelope-entrance.is-opening .envelope-letter{animation:none}}
