*{box-sizing:border-box}[hidden]{display:none!important}
:root{color:#fff1d6;background:#321e14;font:16px/1.5 Georgia,serif}
body{margin:0;background:linear-gradient(100deg,#160d08a6,#21100720 67%,#1b10086b),url(desk.jpg) center/cover fixed;min-height:100svh}
main{max-width:1280px;margin:auto;padding:0 clamp(22px,6vw,86px)}
header{display:flex;justify-content:space-between;align-items:center;padding:26px 0 15px;border-bottom:1px solid #f9e3b84a;color:#e7d2b5;font:14px 'Courier New',monospace}.case{text-transform:uppercase;letter-spacing:.14em}
section{position:relative;min-height:calc(100svh - 64px);display:flex;flex-direction:column;justify-content:center;align-items:center;padding:35px 0;text-align:center;animation:enter .42s both}
h1,h2,p{margin:0}h1,h2{font-weight:400;letter-spacing:-.055em;line-height:.99}h1{font-size:clamp(54px,6.8vw,96px)}h1 em{color:#ffd4a3}h2{font-size:clamp(40px,6vw,78px)}p{font-size:clamp(17px,2vw,22px);margin:20px 0 28px;line-height:1.5}
button{font:inherit;color:inherit;cursor:pointer;background:none;border:0}button:focus-visible{outline:3px solid #ffca79;outline-offset:7px}
.action{color:#342219;background:#ffe4b9;font:600 16px system-ui;padding:15px 25px;border-radius:3px;box-shadow:0 4px 9px #10070255;transition:transform .2s,background .2s}.action:hover{transform:translateY(-2px);background:#fff1ce}
#intro{display:grid;grid-template-columns:1.05fr 1fr;gap:35px;text-align:left}.lead{z-index:1}.lead p{max-width:29ch;color:#f1ddc6}
.envelope{position:relative;isolation:isolate;width:94%;max-width:480px;aspect-ratio:1.57;justify-self:center;transform:rotate(8deg);perspective:1100px;filter:drop-shadow(6px 21px 11px #0e060891);transition:transform .35s}.envelope:hover{transform:rotate(5deg) translateY(-4px)}
.envelope>span{position:absolute;display:block}.inside,.insert,.pocket,.flap{inset:0}.inside{background:#ad8356}.insert{inset:9% 7%;background:#f5e7c9 url(family-glow.jpg) center/cover;border:8px solid #fff1d5;transition:transform .65s .15s}
.pocket{clip-path:polygon(0 0,50% 51%,100% 0,100% 100%,0 100%);background:conic-gradient(from 121deg at 50% 49%,#d2af7e 0 116deg,#e5c89c 117deg 209deg,#c7a16f 210deg)}
.flap{z-index:1;clip-path:polygon(0 0,100% 0,51% 62%,49% 62%);background:linear-gradient(160deg,#f1d4a5,#c29c68);transform-origin:top;transition:transform .65s ease}
.seal{z-index:2;left:44%;top:47%;width:15%;aspect-ratio:1;display:grid!important;place-items:center;font:italic clamp(20px,3vw,38px) Georgia;color:#d09375;background:radial-gradient(ellipse at 34% 28%,#ac5844,#79291d 65%,#511e16);border:4px double #a65b46;border-radius:48% 43% 46% 39%;box-shadow:2px 4px 3px #633d2c77,inset 0 0 0 3px #752d21;text-shadow:1px 1px #59271b;transition:opacity .2s}.address{bottom:7%;left:7%;font:italic clamp(26px,4vw,56px) Georgia;color:#523921;transform:rotate(-7deg);border-bottom:1px solid #76533766}
.opening .seal{opacity:0}.opening .flap{transform:rotateX(166deg)}.opening .insert{transform:translateY(-43%) rotate(-4deg)}
.items{display:flex;justify-content:center;gap:clamp(14px,5vw,80px);flex-wrap:wrap}.evidence{display:grid;justify-items:center;gap:19px;padding:12px 5px;font:16px 'Courier New',monospace}.mini{width:clamp(90px,15vw,190px);height:clamp(110px,15vw,175px);box-shadow:4px 13px 12px #14080580;transition:transform .25s}.evidence:hover .mini{transform:translateY(-9px) rotate(0)}.picture{background:#f3e7d0;padding:8px 8px 24px;transform:rotate(-8deg)}.picture img,.front img{width:100%;height:100%;object-fit:cover}.ticket{background:#f6ecd7;color:#39362f;padding:10px;display:flex;flex-direction:column;justify-content:space-evenly;transform:rotate(5deg);font-size:clamp(12px,1.6vw,19px)}.barcode{display:block;background:repeating-linear-gradient(90deg,#302a24 0 2px,transparent 2px 5px,#302a24 5px 6px,transparent 6px 8px);height:22px;width:80%;margin:0 auto}.phone,.conversation{border:6px solid #25231f;background:#e4e1d2;border-radius:18px;box-shadow:1px 1px 0 2px #81786b,4px 13px 12px #14080580}.phone{width:clamp(65px,9vw,105px);transform:rotate(-4deg);padding:16px 4px}.phone i{display:block;background:#fff9e8;border-radius:8px;width:75%;height:17%;margin:8px 0}.phone i+i{background:#b7c4a1;margin-left:auto}
.back{font:16px system-ui;text-decoration:underline;text-underline-offset:6px;padding:14px}.receipt,.conversation,.polaroid{margin:23px 0 8px;animation:pickup .48s cubic-bezier(.21,.77,.32,1) both}.receipt{width:min(320px,95%);background:#f9f1df;color:#322d26;padding:32px 25px 38px;font:16px 'Courier New',monospace;clip-path:polygon(0 0,100% 0,100% 100%,96% 98%,92% 100%,88% 98%,84% 100%,80% 98%,76% 100%,72% 98%,68% 100%,64% 98%,60% 100%,56% 98%,52% 100%,48% 98%,44% 100%,40% 98%,36% 100%,32% 98%,28% 100%,24% 98%,20% 100%,16% 98%,12% 100%,8% 98%,4% 100%,0 98%)}.receipt h2{font:700 32px 'Courier New',monospace}.receipt p{font:16px 'Courier New',monospace}.receipt hr{border:0;border-top:1px dashed}.receipt dl{display:grid;grid-template-columns:1fr auto;text-align:left;gap:12px 5px}.receipt dd{margin:0}.receipt .barcode{margin-top:20px}
.conversation{position:relative;width:min(260px,82%);height:310px;padding:40px 14px;color:#272820;text-align:left}.speaker,.home{position:absolute;left:50%;transform:translateX(-50%);height:5px;width:40px;border-radius:8px;background:#514b43;top:10px}.home{top:auto;bottom:7px;width:65px;height:4px}.bubbles p{padding:10px 13px;background:#fffaf1;border-radius:14px 14px 14px 2px;font:16px/1.4 system-ui;margin:15px 20px 8px 0;animation:enter .3s .28s both}.bubbles p+p{background:#bccda9;margin:12px 0 0 28px;border-radius:14px 14px 2px 14px;animation-delay:.65s}
.polaroid{width:min(376px,82vw,48svh);aspect-ratio:0.68;padding:0;perspective:1100px}.flip,.front,.reverse{display:block;width:100%;height:100%}.flip{position:relative;transform-style:preserve-3d;transition:transform .85s cubic-bezier(.24,.75,.26,1)}.flipped .flip{transform:rotateY(180deg)}.front,.reverse{position:absolute;inset:0;background:#f6ead2;box-shadow:3px 13px 15px #13080380;backface-visibility:hidden;-webkit-backface-visibility:hidden;color:#513d2d}.front{padding:10px 10px 42px}.front span{display:block;margin-top:5px;font:italic 17px Georgia}.reverse{transform:rotateY(180deg);display:grid;place-content:center;justify-items:center}.reverse i{font:italic clamp(30px,4.5vw,54px)/1.05 Georgia}.stamp{margin-top:15px;border:4px double #9c3b2b;padding:3px 9px;color:#9c3b2b;text-transform:uppercase;font:bold 17px monospace;opacity:0}.flipped .stamp{animation:stamp .3s .64s both}.surprise{margin-top:17px;animation:enter .3s both}
.message{position:relative;z-index:2;padding:30px 35px;background:#fff1d5;color:#512829;box-shadow:4px 10px 22px #11060577;transform:rotate(-3deg)}.message h2{font-style:italic}.message p{margin:15px 0 0}#hearts{position:fixed;inset:0;pointer-events:none;overflow:hidden}.heart{position:absolute;left:var(--x);bottom:0;width:var(--size);transform:translateY(120%);animation:float var(--speed) var(--delay) linear infinite}.glint{position:absolute;left:var(--x);top:var(--y);color:#ffeb9e;font:28px Georgia;opacity:0;animation:shine 2.8s var(--delay) infinite}
@keyframes enter{from{opacity:0;translate:0 10px}to{opacity:1;translate:0 0}}@keyframes pickup{from{opacity:0;transform:translateY(32px) rotate(-8deg) scale(.88)}to{opacity:1;transform:rotate(-2deg)}}@keyframes stamp{from{opacity:0;transform:scale(1.7) rotate(-12deg)}to{opacity:1;transform:rotate(-8deg)}}@keyframes float{0%{transform:translateY(120%) rotate(-14deg)}50%{transform:translate(16px,-49vh) rotate(13deg)}100%{transform:translate(-8px,calc(-100vh - 120%)) rotate(-9deg)}}@keyframes shine{0%,70%,100%{opacity:0;transform:scale(.4)}85%{opacity:.85;transform:scale(1)}}
@media(max-width:680px){header{padding-top:18px}#intro{display:flex;gap:28px;padding:45px 0 35px}.envelope{order:-1;width:min(57vw,255px)}.lead{text-align:center}.lead p{margin:16px auto 22px}.items{gap:12px}.evidence{font-size:14px}.mini{width:76px;height:96px}.phone{width:54px}.ticket{padding:5px;font-size:10px}.picture{padding:4px 4px 15px}.reverse .stamp{font-size:14px}.case{letter-spacing:.05em}body{background-attachment:scroll}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;animation-delay:0s!important;animation-iteration-count:1!important;transition-duration:.01ms!important}.heart{animation:none!important;transform:none;bottom:var(--y)}}
#intro{animation:none}

.front img{object-fit:contain}.picture img{object-position:center 66%}.items{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:min(740px,100%)}

/* Keep the photograph and its action within one screen. */
main:has(#photo:not([hidden])) header{padding-block:10px 8px}
#photo{min-height:0;justify-content:flex-start;padding:clamp(8px,2svh,18px) 0 12px}
#photo h2{font-size:clamp(30px,5svh,54px)}
#photo .polaroid{
  width:min(376px,82vw,max(96px,calc(68svh - 134px)));
  min-height:0;
  margin:clamp(8px,1.6svh,15px) 0 4px;
}
#photo .surprise{margin-top:8px}
