@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&family=DM+Sans:wght@400;500;600&display=swap');
:root{--pink:#f7e8ef;--paper:#fffafc;--ink:#4b3a46;--muted:#826e7b;--rose:#9b627c;--line:#d9bdcc;--serif:'Cormorant Garamond',Georgia,serif;--sans:'DM Sans',Arial,sans-serif}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--pink);color:var(--ink);font-family:var(--sans);font-size:15px}button,input{font:inherit}button{cursor:pointer;color:inherit}button:focus-visible,a:focus-visible{outline:3px solid var(--rose);outline-offset:5px}[hidden]{display:none!important}header{height:88px;margin:0 5%;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);gap:16px}header>span{font-size:10px;letter-spacing:2.5px}.wordmark{font-family:var(--serif);font-size:36px;text-decoration:none;color:var(--ink)}.wordmark span{font-size:23px;margin-left:3px}.text-button{border:0;background:none;font-size:11px}.eyebrow,.object-caption{font-size:10px;letter-spacing:2.5px;font-weight:500}.intro{text-align:center;margin:54px auto 30px;padding:0 20px}h1,h2,h3,p{margin-top:0}h1,h2{font-family:var(--serif);font-weight:400;line-height:1.04;letter-spacing:-1.7px}h1{font-size:clamp(42px,5vw,70px);margin:17px 0}h2{font-size:clamp(44px,5.2vw,76px);margin:22px 0}em{font-weight:400;color:var(--rose)}p{line-height:1.8;color:var(--muted)}.intro p{font-size:13px}.scene{position:relative;max-width:1060px;margin:auto;display:grid;grid-template-columns:1fr 1fr;gap:80px;padding:24px 30px}.chest-side,.letter-side{text-align:center}.object-caption{font-size:9px;letter-spacing:1.6px}.chest{height:190px;width:260px;position:relative;margin:29px auto 10px;perspective:700px}.chest-base{position:absolute;width:100%;height:110px;bottom:0;border:2px solid #b4acb9;border-radius:5px 5px 14px 14px;background:linear-gradient(110deg,#efd0de,#e1b3c8);box-shadow:inset 0 0 0 9px #ebdae3,0 18px 25px -18px #806171}.chest-base:after{content:'';position:absolute;inset:14px;border:1px solid #c494ab;border-radius:4px}.chest-lid{position:absolute;z-index:3;top:30px;height:66px;width:100%;background:linear-gradient(135deg,#f8e4ed,#e1b4ca);border:2px solid #b4acb9;border-radius:30px 30px 4px 4px;transform-origin:top;transition:transform 1s;box-shadow:inset 0 0 0 7px #ead9e3}.chest-lid span{font-family:var(--serif);font-size:29px;line-height:60px;color:#9c6b82}.hardware{position:absolute;width:25px;height:32px;left:calc(50% - 12px);top:1px;border:1px solid #9293a2;border-radius:0 0 10px 10px;background:linear-gradient(90deg,#b8bac8,#fff,#b5b4c2);z-index:5}.chest-interior{position:absolute;inset:42px 5px 65px;background:#755365;border-radius:22px}.chest.open .chest-lid{transform:rotateX(115deg)}.key{position:absolute;z-index:8;width:138px;left:60px;top:44px;background:none;border:0;touch-action:none;filter:drop-shadow(0 3px 5px #80687888);padding:0;user-select:none}.key svg{display:block;width:100%}.key.selected{filter:drop-shadow(0 0 8px #fff)}.key.dragging{position:fixed;z-index:1000;pointer-events:none;transition:none}.outline-button{padding:10px 16px;border:1px solid var(--line);background:transparent;border-radius:30px;font-size:11px}.outline-button span{margin-left:15px}#code-form{margin:17px auto 0;max-width:275px}label{font-size:10px;display:block;margin-bottom:7px}.code-row{display:flex;border-bottom:1px solid #b7a0af;gap:10px}.code-row input{min-width:0;width:100%;background:transparent;border:0;padding:8px;font-size:20px;letter-spacing:9px;text-align:center;color:var(--ink)}.code-row button{border:0;background:none;font-size:23px}.status{font-size:11px;margin:10px 0}.status.success{font-size:16px;color:var(--rose);font-weight:600;letter-spacing:1px}.envelope{position:relative;width:340px;height:224px;margin:66px auto 36px;filter:drop-shadow(0 17px 18px #86687726);perspective:700px}.envelope-back{position:absolute;inset:0;background:#efdee8;border:1px solid #d9bdcc;border-radius:3px}.envelope-front{position:absolute;inset:0;background:linear-gradient(32deg,#fff7fb 49.7%,transparent 50%) left/51% 100% no-repeat,linear-gradient(-32deg,#fff7fb 49.7%,transparent 50%) right/51% 100% no-repeat;z-index:3;display:flex;align-items:center;justify-content:end;flex-direction:column;padding-bottom:25px}.envelope-front span{font-family:var(--serif);font-style:italic;font-size:34px}.envelope-front small{font-size:10px;margin-top:5px;color:var(--muted)}.envelope-flap{position:absolute;inset:0;clip-path:polygon(0 0,100% 0,50% 56%);background:#f7edf3;z-index:4;transform-origin:top;transition:transform 1s}.letter-peek{position:absolute;inset:12px 15px;background:white;text-align:center;padding-top:40px;font-family:var(--serif);font-size:24px;transition:transform 1s}.padlock{position:absolute;z-index:6;left:calc(50% - 24px);top:77px;width:48px;height:62px;border:0;background:none;transition:transform .6s,opacity .6s}.shackle{position:absolute;width:29px;height:31px;border:5px solid #aeb0bd;border-bottom:0;border-radius:18px 18px 0 0;left:10px;top:0;box-shadow:inset 1px 1px 0 #fff;transition:transform .6s}.lock-body{position:absolute;left:3px;bottom:0;width:44px;height:36px;border-radius:6px;background:linear-gradient(110deg,#afb2c1,#f8f7fc 48%,#acabbc);border:1px solid #a3a1b0;line-height:34px;color:#947187;font-size:14px;box-shadow:0 4px 8px #70596722}.padlock.target{filter:drop-shadow(0 0 10px #fff);transform:scale(1.15)}.padlock.unlocked .shackle{transform:translateY(-9px) rotate(-25deg)}.envelope.opened .envelope-flap{transform:rotateX(180deg);z-index:1}.envelope.opened .letter-peek{transform:translateY(-70px)}#key-prompt{font-size:11px;max-width:300px;margin:auto}.scene-star{position:absolute;font-size:45px;color:#b993a7}.star-one{left:0;top:90px}.star-two{right:0;bottom:70px}.scene-footer{display:flex;align-items:center;justify-content:center;gap:65px;padding:28px 20px 38px;color:var(--muted);font-size:12px}.scene-footer i{font-family:var(--serif);font-size:17px}.tiny-flower{font-size:25px;color:#b985a1}.greeting{text-align:center;padding:90px 24px;max-width:640px;margin:auto}.greeting p{font-size:17px}.draft-note{display:block;font-size:11px;color:#947b8b;line-height:1.6}.primary-button{display:block;margin:30px auto 0;padding:16px 25px;border:0;border-radius:40px;background:var(--ink);color:white;font-size:12px}.primary-button span{margin-left:20px}#world{background:var(--paper)}#world section{max-width:1180px;margin:auto;padding:90px 60px}.birthday-hero{display:grid;grid-template-columns:1.05fr 1fr;gap:65px;align-items:center}.birthday-hero h2{font-size:clamp(48px,6vw,88px)}.handwritten{font-family:var(--serif);font-style:italic;color:var(--rose);font-size:27px}.photo-placeholder{margin:0;background:#e9d7e1;border:1px solid #d9c4d1;position:relative;display:flex;align-items:center;justify-content:center;flex-direction:column;min-height:300px;color:#94758a;overflow:hidden}.photo-placeholder>span{font-size:9px;letter-spacing:2px;text-align:center;padding:20px}.hero-photo{height:490px;border-radius:160px 160px 3px 3px;background:radial-gradient(ellipse at 50% 20%,#fbf0f5,#e5ccd9)}.flower-art{font-family:Georgia;font-size:190px;color:#c899b280;line-height:1}.photo-placeholder figcaption{font-family:var(--serif);font-style:italic;font-size:23px;padding:20px;text-align:center}.section-top{display:flex;justify-content:space-between;gap:15px;border-top:1px solid var(--line);padding-top:22px}.section-top>span:last-child{font-family:var(--serif);font-style:italic;font-size:19px}.qualities{display:grid;grid-template-columns:repeat(3,1fr);gap:40px;margin:45px 0 15px}.qualities article>span{font-size:11px;color:var(--rose)}h3{font-family:var(--serif);font-weight:400;font-size:35px;margin:15px 0}.qualities p{font-size:13px}.photo-grid{display:grid;grid-template-columns:1fr 1fr 1fr;gap:30px;align-items:center;margin-top:45px}.polaroid{border:12px solid white;box-shadow:0 6px 25px #8564761b;transform:rotate(-4deg);min-height:330px;justify-content:end}.polaroid>span{flex:1;display:grid;place-items:center}.polaroid figcaption{background:white;width:100%;font-size:20px;padding:18px 3px 3px}.second{transform:rotate(4deg)}.tall-photo{height:420px;background:#dfdce8}.photo-note{text-align:center;margin:35px 0 0;font-size:11px}.keepsakes{text-align:center}.keepsake-row{display:grid;grid-template-columns:repeat(4,1fr);gap:20px;margin-top:40px}.keepsake-row button{border:0;border-bottom:1px solid var(--line);background:transparent;padding:15px 5px 25px;font-size:11px}.keepsake-row button>span{display:block;font-size:40px;height:75px}.keepsake-row .candy{width:70px;height:30px;margin:20px auto 25px;transform:rotate(-15deg);border-radius:3px;background:repeating-linear-gradient(#c57a92 0 5px,#ddbd77 5px 10px,#9faf91 10px 15px,#a294be 15px 20px)}#keepsake-note{min-height:65px;font-family:var(--serif);font-size:22px;max-width:600px;margin:30px auto}.future{text-align:center;background:#f3e6ed;max-width:none!important}.future p{max-width:600px;margin:auto}.final-section{text-align:center}.final-envelope{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:15px;width:330px;max-width:100%;height:190px;margin:40px auto;background:linear-gradient(155deg,#fcf2f7,#ecd4e2);border:1px solid var(--line);box-shadow:0 12px 30px #b38aa122;transform:rotate(-3deg)}.final-envelope span{font-family:var(--serif);font-size:31px;font-style:italic}.final-envelope small{font-size:10px;letter-spacing:2px}.final-letter{max-width:650px;padding:50px;text-align:left;background:#fff;border:1px solid #e9dce4;margin:35px auto;box-shadow:0 10px 35px #b38aa115}.final-letter p{font-size:15px}.final-letter .draft-note{background:#fbf0f6;padding:10px}footer{padding:40px 20px;display:flex;justify-content:center;align-items:center;gap:20px;border-top:1px solid #ecdee7;font-size:11px}dialog{border:1px solid var(--line);border-radius:10px;background:var(--paper);color:var(--ink);width:min(820px,92vw);padding:38px;max-height:90dvh;box-shadow:0 25px 100px #46334240}dialog::backdrop{background:#4b3a4666;backdrop-filter:blur(5px)}dialog h2{font-size:43px;margin:20px 0 10px}dialog>p{font-size:12px}.close-button{position:absolute;right:20px;top:15px;font-size:30px;border:0;background:none}.digit-strip{display:flex;gap:10px;margin:22px 0}.digit-strip span{width:38px;height:43px;display:grid;place-items:center;border-bottom:1px solid var(--rose);font-size:22px}.clue-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.clue-card{border:1px solid #e4d3de;padding:18px;border-radius:5px}.clue-card h3{font:500 12px var(--sans);margin:0 0 10px}.clue-card p{font-size:12px;line-height:1.6;min-height:57px;margin-bottom:8px}.clue-card input{width:42px;padding:6px;text-align:center;border:1px solid var(--line);background:#fff;border-radius:4px}.clue-card button{padding:7px 10px;background:#f1e1ea;border:0;border-radius:4px;font-size:11px;margin-left:6px}.clue-card details{font-size:11px;line-height:1.6;margin:10px 0 0;color:var(--muted)}.clue-card.solved{background:#f5eaf0}.clue-feedback{font-size:11px;display:block;margin-top:7px;color:var(--rose)}.clue-footer{text-align:center;margin:22px 0 0}.turn-key{position:fixed;z-index:1000;width:135px;pointer-events:none;transition:transform .8s;transform-origin:70% 50%}
@media(max-width:760px){header{height:66px}header>span{font-size:8px;letter-spacing:1px}.wordmark{font-size:29px}.text-button{font-size:9px}.intro{margin:35px auto 15px}.intro p{font-size:12px}.scene{gap:12px;padding:20px 12px;align-items:start}.object-caption{font-size:7px;letter-spacing:.7px}.chest{width:155px;height:135px;margin:32px auto 10px}.chest-base{height:78px}.chest-lid{height:50px;top:15px}.chest-lid span{line-height:44px;font-size:24px}.chest-interior{inset:26px 5px 43px}.key{width:105px;left:25px;top:23px}.envelope{width:165px;height:123px;margin:42px auto 35px}.envelope-front{padding-bottom:12px}.envelope-front span{font-size:23px}.envelope-front small{font-size:8px}.padlock{transform:scale(.75);top:26px;left:calc(50% - 24px)}.padlock.target{transform:scale(.9)}.letter-peek{font-size:15px;padding-top:10px}.envelope.opened .letter-peek{transform:translateY(-35px)}.outline-button{font-size:9px;padding:9px}.outline-button span{display:none}.code-row input{font-size:16px;letter-spacing:5px;padding:6px 0}.code-row button{font-size:20px}#code-form{max-width:160px}label{font-size:8px}.status,#key-prompt{font-size:10px}.status.success{font-size:12px}.scene-star{display:none}.scene-footer{gap:15px;padding-top:15px;font-size:11px}.scene-footer i{font-size:14px}.greeting{padding:60px 24px}.greeting p{font-size:15px}#world section{padding:58px 24px}.birthday-hero{grid-template-columns:1fr;gap:30px}.hero-photo{height:400px;max-width:360px;width:100%;justify-self:center}.qualities{grid-template-columns:1fr;gap:15px;margin-top:30px}.qualities article{border-bottom:1px solid #eadce5;padding-bottom:10px}.qualities h3{margin-top:8px}.section-top>span:last-child{font-size:15px}.photo-grid{grid-template-columns:1fr 1fr;gap:15px}.photo-grid .tall-photo{height:300px;min-height:240px}.polaroid{min-height:240px;border-width:7px}.second{grid-column:1/-1;max-width:260px;width:100%;justify-self:center;margin-top:15px}.photo-placeholder figcaption{font-size:18px}.photo-placeholder>span{font-size:8px;padding:12px}.keepsake-row{grid-template-columns:1fr 1fr;gap:15px}.future p{font-size:13px}.final-letter{padding:25px}.clue-grid{grid-template-columns:1fr}dialog{padding:28px 20px}.clue-card p{min-height:0}dialog h2{font-size:37px}footer{font-size:9px;gap:10px}.letter-side{min-width:0}.chest-side{min-width:0}}
@media(max-width:360px){.envelope{width:145px}.chest{width:140px}.scene{gap:5px;padding:20px 6px}header>span{display:none}.scene-footer{gap:9px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{animation:none!important;transition:none!important}}
/* Personal photographs */
.real-photo{margin:0;min-width:0}.photo-open{display:block;background:none;padding:0;border:0;width:100%;overflow:hidden;cursor:zoom-in}.photo-open img{display:block;width:100%;height:100%;object-fit:cover}.real-photo figcaption{font-family:var(--serif);font-style:italic;font-size:23px;text-align:center;padding:15px 8px;color:var(--rose)}.real-photo.hero-photo{height:auto;background:transparent;border:0;border-radius:0}.hero-photo .photo-open{height:490px;border-radius:160px 160px 3px 3px}.hero-photo img{object-position:50% 35%}.real-photo.polaroid{background:white;min-height:0}.polaroid .photo-open{height:300px}.real-photo.tall-photo{height:auto;background:none}.tall-photo .photo-open{height:420px}.tall-photo img{object-position:50% 42%}.portrait-pair{display:grid;grid-template-columns:1fr 1fr;max-width:680px;gap:35px;margin:55px auto 0}.portrait-pair .photo-open{height:370px;border-radius:3px}.portrait-pair img{object-position:50% 30%}.funny-pair{display:grid;grid-template-columns:1fr 1fr;gap:35px;max-width:690px;margin:40px auto 0}.funny-pair .photo-open{height:330px;border:10px solid white;box-shadow:0 5px 25px #8564761b}.funny-pair figure:first-child{transform:rotate(-3deg)}.funny-pair figure:last-child{transform:rotate(3deg)}#world .future{display:grid;grid-template-columns:1.4fr 1fr;align-items:center;gap:70px;padding-left:max(60px,calc((100vw - 1060px)/2));padding-right:max(60px,calc((100vw - 1060px)/2));text-align:left}.future h2{font-size:clamp(44px,4.8vw,68px)}.childhood-photo{max-width:330px}.childhood-photo .photo-open{border:10px solid white;box-shadow:0 8px 25px #8564761b}.childhood-photo img{height:auto;object-fit:contain}.photo-dialog{width:min(900px,95vw);padding:45px 15px 15px;text-align:center;background:#fffafc}.photo-dialog img{display:block;max-width:100%;width:auto;max-height:72dvh;height:auto;object-fit:contain;margin:auto}.photo-dialog p{margin:12px 0 0;font-family:var(--serif);font-style:italic;font-size:21px}.photo-dialog .close-button{position:fixed;position:absolute;top:5px;right:12px}
@media(max-width:760px){.hero-photo .photo-open{height:400px}.polaroid .photo-open{height:225px}.tall-photo .photo-open{height:300px}.real-photo figcaption{font-size:18px}.portrait-pair{gap:16px;margin-top:35px}.portrait-pair .photo-open{height:235px}.funny-pair{gap:16px;margin-top:30px}.funny-pair .photo-open{height:230px;border-width:6px}#world .future{grid-template-columns:1fr;gap:30px;padding:58px 24px;text-align:center}.childhood-photo{width:100%;max-width:290px;justify-self:center}.photo-dialog img{max-height:75dvh}.photo-dialog p{font-size:18px}}
/* Keep the funny photographs at their original proportions on every screen. */
.funny-pair{align-items:start}.funny-pair .photo-open{height:auto}.funny-pair .photo-open img{height:auto;object-fit:contain}
.keepsake-row button>.bouquet-icon{height:75px;display:flex;align-items:center;justify-content:center;margin-bottom:0}.bouquet-icon img{display:block;width:72px;height:72px;object-fit:contain}
/* Long personal letter: keep expressive words inside the page on phones. */
.final-letter{scroll-margin-top:30px}.final-letter p{overflow-wrap:anywhere;line-height:1.9;margin-bottom:22px;white-space:normal}.final-letter p:first-child{font-family:var(--serif);font-size:30px;color:var(--rose);line-height:1.3}.final-letter p:last-child{font-family:var(--serif);font-style:italic;font-size:23px;color:var(--rose)}
/* Personal stickers stay out of the way of text, photos and puzzle controls. */
.sticker{display:block;object-fit:contain;pointer-events:none;user-select:none}.intro,.letter-side,.memories,.final-section{position:relative}.intro-hearts{position:absolute;width:85px;height:85px;left:max(25px,calc(50% - 380px));top:35px;transform:rotate(-12deg)}.letter-lily{position:absolute;width:90px;height:90px;right:-5px;top:28px;transform:rotate(15deg);z-index:7}.scene-footer>span{display:flex;align-items:center;gap:10px}.scene-footer .small-character{width:48px;height:48px}.footer-bow{width:40px;height:40px}.greeting-sticker{width:65px;height:65px;margin:0 auto 22px}.memory-bow{position:absolute;width:65px;height:65px;right:65px;top:145px;transform:rotate(12deg)}.keepsake-row .character-keepsake{display:flex;align-items:center;justify-content:center}.character-keepsake .sticker{width:75px;height:75px}.final-hearts{width:65px;height:65px;margin:0 auto 22px}.final-envelope{position:relative}.seal-sticker{position:absolute;width:62px;height:62px;right:-17px;bottom:15px;transform:rotate(12deg)}
@media(max-width:760px){.intro-hearts{position:static;width:42px;height:42px;margin:0 auto 12px;transform:rotate(-12deg)}.letter-lily{width:43px;height:43px;right:0;top:20px}.scene-footer .small-character{width:32px;height:32px}.scene-footer>span{gap:5px}.footer-bow{width:27px;height:27px}.memory-bow{width:38px;height:38px;top:106px;right:25px}.greeting-sticker,.final-hearts{width:50px;height:50px}.seal-sticker{width:50px;height:50px;right:-8px}.scene-footer i{font-size:12px}}
