/* Warm paper, rose ink, silk ribbon. Every decoration is local and text-free. */
:root{--paper:#faf8f3;--red:#985e6f;--blue:#cadce3;--ink:#64585a;--edge:#e9dfe0;--silk:#c59ba8;--rose-paper:#f4e9eb}
html,body{background:var(--paper)}
body{font-family:"Songti SC","STSong","Noto Serif SC",serif;-webkit-font-smoothing:antialiased}
body::after{content:"";position:fixed;inset:0;pointer-events:none;z-index:8;opacity:.11;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.78' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23a9968c' filter='url(%23p)' opacity='.25' d='M0 0h180v180H0z'/%3E%3C/svg%3E")}
.scene{padding:90px 24px 65px;isolation:isolate;min-height:100svh}
.scene:not(.sky-scene):not(.final-scene)::before{content:"";position:absolute;inset:22px;border:1px solid var(--edge);border-radius:180px 180px 3px 3px;z-index:-1;pointer-events:none}
.scene:not(.sky-scene):not(.final-scene)::after{content:"";position:absolute;inset:29px;border:1px solid #eadfe077;border-radius:180px 180px 3px 3px;z-index:-1;pointer-events:none}
.scene>button,.letter button:not(.envelope),.final-copy button{position:relative;min-width:180px;min-height:52px;border:1px solid #c79eaa;background:#f3e7eb;color:#865467;border-radius:999px;box-shadow:0 5px 0 #fff9,0 12px 25px #9873800c,inset 0 1px 0 #fffc;font-size:14px;letter-spacing:.16em;padding:14px 27px;transition:transform .25s,box-shadow .25s,opacity .25s,background .25s}
.scene>button::after,.letter button:not(.envelope)::after{content:"";position:absolute;inset:4px;border:1px solid #fff9;border-radius:inherit;pointer-events:none}
@media(hover:hover){.scene>button:hover,.letter button:not(.envelope):hover{background:#efdee5;transform:translateY(-2px);box-shadow:0 5px 0 #fffa,0 16px 28px #98738018}}
button:active{transform:translateY(1px) scale(.98)!important}
button:disabled{opacity:.6!important;transform:none!important}
button:focus-visible{outline:1px solid #a3667d;outline-offset:6px}
.flower-scene{gap:10px;background:#faf8f3}
.flower-scene h1{font-weight:400;font-size:clamp(28px,6.5vw,44px);line-height:1.6;letter-spacing:.18em;margin:5px 0 0;color:#84616c;position:relative}
.flower-scene h1::before{content:"";position:absolute;width:64px;height:38px;left:50%;top:-61px;transform:translateX(-50%);background:center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 90 50'%3E%3Cg fill='none' stroke='%23bd8fa0' stroke-width='1.2' stroke-linecap='round'%3E%3Cpath d='M45 21C8-12 0 29 45 21C83-10 92 30 45 21M43 22Q35 33 29 47M47 22Q54 35 66 42M43 17Q47 13 49 21Q47 25 43 21Z'/%3E%3Cpath d='M43 20Q20 9 12 15M49 20Q70 10 78 17' opacity='.45'/%3E%3C/g%3E%3C/svg%3E")}
.flower-scene h1::after{content:"";display:block;width:35px;height:1px;background:#d6b9c3;margin:18px auto 0}
.bouquet{width:min(365px,88vw);height:clamp(310px,49svh,465px);margin:7px 0 13px;filter:drop-shadow(0 12px 12px #bda49e0b)}
.flowers-line{color:#ad6179}
.rose-2,.rose-4,.rose-7{color:#b7cfdc}
.flowers-line use{stroke-width:1.1}
.leaf{stroke:#b5c7c9;fill:#faf8f3;fill-opacity:.94}
.stem{stroke:#b07786;stroke-width:.95}
.bouquet-filler{opacity:0}
.growing .bouquet-filler{animation:grow 1.7s 1.2s both}
.rose:not(.rose-0){transform:translateY(22px) scale(.97)}
.growing .rose:not(.rose-0){animation:grow 1.35s var(--delay) cubic-bezier(.2,.6,.2,1) forwards}
.growing .wrapping{animation:grow 1.4s 2.65s both}
.wrapping{filter:drop-shadow(0 3px 4px #c9a3ae1a)}
.cake-scene{background:#faf8f3}
.cake-stage{width:min(425px,91vw);height:clamp(335px,56svh,510px);margin-bottom:15px}
.cake-stage::before{content:"";position:absolute;left:10%;right:10%;height:22px;bottom:5%;border-radius:50%;background:#d6c7bd24;filter:blur(12px);transition:opacity .8s}
.cake-art{filter:saturate(.75) drop-shadow(0 9px 9px #a08a7b12);transform:translateY(14px) scale(.97);transition:opacity .65s .28s,transform 1.1s cubic-bezier(.18,.65,.25,1)}
.cake-scene.unboxed .cake-art{opacity:1;transform:none;transition:opacity .65s .28s,transform 1.1s cubic-bezier(.18,.65,.25,1)}
.cake-box{width:76%;left:12%;height:53%;bottom:10%;transition:opacity .6s .4s,transform 1.2s cubic-bezier(.3,.1,.3,1);filter:drop-shadow(0 18px 16px #c2a4ad22)}
.box-base{background:#f6edf0;border-color:#d4b5bf;box-shadow:inset 9px 0 #fff8,inset -7px 0 #e9d6de77}
.box-base::before{background:#c6d9e2;border-left:1px solid #f7fbfc;border-right:1px solid #f7fbfc}
.box-base::after{content:"";position:absolute;inset:12px;border:1px solid #debdca;opacity:.55}
.box-base b{color:#c6a1af;font-size:28px}
.box-lid{background:#fbf3f5;border-color:#c9a4b2;box-shadow:0 4px 6px #ac88921a;transition:transform 1.1s cubic-bezier(.25,.65,.2,1)}
.box-lid::before{background:#c6d9e2;border-left:1px solid #f7fbfc;border-right:1px solid #f7fbfc}
.box-lid span::before,.box-lid span::after{border-width:4px;border-color:#c5d7e1;box-shadow:inset 1px 0 #fff}
.unboxed .box-lid{transform:translate(-10%,-210%) rotate(-12deg)}
.unboxed .cake-box{transform:translateY(37px);opacity:0}
.candle{transition:transform 1s cubic-bezier(.18,.7,.25,1),opacity .6s;transform:translateY(-45px)}
.with-candle .candle{transform:translateY(0)}
.lit #flame{filter:drop-shadow(0 0 6px #efb46e) drop-shadow(0 0 14px #ffe4ac);transition:opacity .4s}
.blown #flame{transition:opacity .6s;filter:none}
.prompt{font-size:16px;letter-spacing:.2em;line-height:1.7;min-height:28px;color:#a07483;margin-bottom:17px}
.sky-scene{background:#101827;animation:none}
.wish-message{color:#f6e9e0;font-size:clamp(23px,5.8vw,35px);letter-spacing:.18em;margin-top:37svh;font-weight:400}
.sky-scene:not([hidden]) .wish-message{animation:wish-arrives 1.6s 1.7s both}
.letter-scene{background:#f3eeee;padding:90px 20px 75px}
.envelope{width:min(385px,87vw);height:auto;aspect-ratio:1.5;filter:drop-shadow(0 22px 20px #97778016);transition:transform .7s}
.envelope-back{background:#eadce0;border-color:#d2b6c2;border-radius:3px}
.envelope-note{inset:10% 8% 0;background:#fffcf6;box-shadow:0 -2px 8px #9d7c8e10;font-size:22px;padding-top:16%;color:#a36f83;transition:transform .65s .35s}
.envelope-front{background:#f1e4e9;filter:drop-shadow(0 -1px 0 #e2cdd6)}
.envelope-front::after{background:#f9eff2}
.envelope-flap{background:#fcf5f5;box-shadow:inset 0 1px #fff;transition:transform .7s cubic-bezier(.2,.65,.3,1)}
.wax{background:#b47c93;color:#fcebf2;box-shadow:0 3px 5px #a0657c22,inset 0 0 0 3px #bd899d,inset 0 0 0 4px #ddb2c2;top:43%;left:calc(50% - 21px);font-size:22px;transition:opacity .2s}
.opening .wax{display:grid;opacity:0}
.opening .envelope-note{transform:translateY(-30%)}
.opening{transform:translateY(18px)}
#envelopeHint{margin-top:36px;font-size:13px;letter-spacing:.22em;color:#a17e8a}
.letter{background:#fffdf7;border:1px solid #e5d7d4;width:min(740px,100%);padding:clamp(27px,6vw,72px);box-shadow:0 18px 65px #98717e0c,6px 6px 0 -2px #f9f4ed,6px 6px 0 -1px #e4d9d6;position:relative}
.letter::before{content:"";position:absolute;inset:12px;border:1px solid #e9d7db77;pointer-events:none}
.letter h2{font-size:34px;color:#976a7c;letter-spacing:.22em;margin:22px 0 24px;font-weight:400}
.letter h2::after{content:"";display:block;width:24px;height:1px;background:#d8b5c3;margin:25px auto 0}
.dedication{color:#a37f8c;font-size:17px;letter-spacing:.05em;margin-bottom:45px}
.letter-body p,.letter footer{font-size:17px;line-height:2.2;letter-spacing:.045em;color:#6b5e5d}
.letter-body p{margin-bottom:1.7em}
.letter-body .emphasis{color:#a46b80}
.letter footer{padding-top:22px;border-top:1px solid #e9d9dc}
.letter footer strong{font-weight:400;color:#a46b80;font-size:21px}
.signature{color:#ad8492;font-size:15px;margin:45px 0 35px}
.signature b{font-weight:400;letter-spacing:.15em;font-size:24px}
.final-scene{padding:39svh 18px 7svh;background:#101827}
.final-copy{width:min(720px,100%)}
.final-copy::before{content:"";display:block;margin:0 auto 28px;width:42px;height:24px;background:center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 35'%3E%3Cpath d='M30 14C1-8 1 21 30 14C59-8 59 21 30 14M28 14L18 33M32 14L43 31' fill='none' stroke='%23d9b9c9' stroke-width='1'/%3E%3C/svg%3E");opacity:.9}
.final-copy h2{font-size:clamp(23px,5.8vw,41px);color:#f5e7e5;line-height:1.95;letter-spacing:.03em;margin-bottom:25px}
.final-copy p{color:#c9cbd9;font-size:clamp(13px,3.35vw,16px);line-height:2.4}
.final-copy button{font-size:12px;color:#ccb7c5;border:1px solid #b095aa66;background:#181c2c77;box-shadow:none;min-height:45px;min-width:164px;margin-top:32px}
.final-copy button::after{display:none}
.progress-ornament{position:fixed;bottom:calc(18px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);display:flex;gap:9px;z-index:10;pointer-events:none}
.progress-ornament i{width:3px;height:3px;border-radius:50%;background:#d9c7ce;transition:background .5s,transform .5s}
.progress-ornament i.current{background:#ad7e91;transform:scale(1.6)}
body.night .progress-ornament i{background:#596071}
body.night .progress-ornament i.current{background:#d4bac9}
@keyframes wish-arrives{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@media(min-width:750px){.scene:not(.sky-scene):not(.final-scene)::before{width:580px;left:calc(50% - 290px);right:auto;border-radius:260px 260px 3px 3px}.scene:not(.sky-scene):not(.final-scene)::after{width:566px;left:calc(50% - 283px);right:auto;border-radius:253px 253px 3px 3px}.flower-scene{padding-top:115px}.flower-scene h1{font-size:37px}.bouquet{height:min(50svh,460px)}.cake-stage{height:min(59svh,510px)}.letter-scene{padding-top:100px}.final-scene{padding-top:38svh}}
@media(max-width:360px){.scene{padding-left:18px;padding-right:18px}.scene:not(.sky-scene):not(.final-scene)::before{inset:14px}.scene:not(.sky-scene):not(.final-scene)::after{inset:20px}.flower-scene h1{font-size:26px}.letter-scene{padding:60px 13px}.letter{padding:31px 25px}.letter-body p,.letter footer{font-size:16px}.final-copy h2{font-size:22px;letter-spacing:0}.final-scene{padding-left:15px;padding-right:15px}}
@media(max-height:680px) and (max-width:749px){.scene{padding-top:75px;padding-bottom:58px}.bouquet{height:43svh;min-height:245px}.flower-scene h1{font-size:27px}.flower-scene h1::before{top:-47px;width:45px;height:28px}.cake-stage{height:53svh;min-height:300px}.final-scene{padding-top:34svh}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;animation-delay:0s!important;transition-duration:.01ms!important}.bouquet-filler{opacity:1}}

/* The wish and finale belong to the same daylight paper world as the gifts. */
.sky-scene,.final-scene{background:var(--paper);color:var(--ink);isolation:isolate}
.sky-scene::before,.final-scene::before{content:"";position:absolute;inset:22px;border:1px solid var(--edge);border-radius:180px 180px 3px 3px;pointer-events:none;z-index:-1}
.sky-scene::after,.final-scene::after{content:"";position:absolute;inset:29px;border:1px solid #eadfe077;border-radius:180px 180px 3px 3px;pointer-events:none;z-index:-1}
.sky-scene{justify-content:center}
.wish-message{color:#a46b80;margin:21svh 0 0;font-size:clamp(23px,5.8vw,35px);letter-spacing:.15em;text-shadow:0 2px 14px #fff}
.sky-scene:not([hidden]) .wish-message{animation:wish-arrives 1.5s 1.1s both}
.final-scene{justify-content:center;padding:37svh 24px 12svh}
.final-copy{width:min(720px,100%);text-shadow:0 1px 14px #faf8f3,0 0 25px #faf8f3}
.final-copy::before{margin-bottom:25px}
.final-copy h2{color:#986377;font-weight:400;line-height:1.9}
.final-copy p{color:#8a7d7d;font-size:clamp(13px,3.35vw,16px)}
.final-copy button{color:#996879;border:1px solid #caa5b4;background:#f4e8ed;box-shadow:inset 0 1px 0 #fff,0 7px 18px #ad8a9610}
@media(min-width:750px){.sky-scene::before,.final-scene::before{width:580px;left:calc(50% - 290px);right:auto;border-radius:260px 260px 3px 3px}.sky-scene::after,.final-scene::after{width:566px;left:calc(50% - 283px);right:auto;border-radius:253px 253px 3px 3px}.final-scene{padding-top:36svh}}
@media(max-width:360px){.sky-scene::before,.final-scene::before{inset:14px}.sky-scene::after,.final-scene::after{inset:20px}.final-scene{padding-left:15px;padding-right:15px}}
