@font-face {
  font-family: 'Noto Serif SC';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(assets/noto-serif-sc.woff2) format('woff2');
}
@font-face {
  font-family: 'Ma Shan Zheng';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(assets/ma-shan-zheng.woff2) format('woff2');
  unicode-range: U+4e50, U+5feb, U+65e5, U+751f;
}
@font-face{font-family:Fraunces;font-style:normal;font-weight:400;font-display:swap;src:url(assets/fraunces-v5.woff2) format('woff2')}
@font-face{font-family:Figtree;font-style:normal;font-weight:400 500;font-display:swap;src:url(assets/figtree-v5.woff2) format('woff2')}
:root {
  --p-bg: #f5f0e8; --p-surface: #ede4d7; --p-ink: #35221f; --p-muted: #72605a;
  --p-accent: #732c36; --p-accent-ink: #f5f0e8; --p-action: #732c36; --p-action-ink: #f5f0e8;
  --p-inv-bg: #35221f; --p-inv-surface: #412e2b; --p-inv-ink: #f5f0e8; --p-inv-muted: #a79b95;
  --p-inv-accent: #f5f0e8; --p-inv-accent-ink: #35221f; --p-inv-action: #f5f0e8; --p-inv-action-ink: #35221f;
  --font-display: "Fraunces", Georgia, serif;
  --font-text: "Figtree", system-ui, sans-serif;
  --display-weight: 400; --display-tracking: -0.02em; --display-tracking-xl: -0.028em; --display-axes: 'SOFT' 30, 'WONK' 0;
  --bg:var(--p-bg);--surface:var(--p-surface);--ink:var(--p-ink);--muted:var(--p-muted);--accent:var(--p-accent);--action:var(--p-action);--action-ink:var(--p-action-ink);--line:#35221f22;
  --gut:80px;--header-h:104px;--ease:cubic-bezier(.2,.8,.2,1);--btn-h:52px;--r-btn:3px;--r-sm:3px;--font-chinese:"Noto Serif SC","Songti SC",serif;
  font-family:var(--font-chinese);color:#f5ede3;background:var(--p-bg);font-synthesis:none;
}
*{box-sizing:border-box}body{margin:0;min-width:320px;overflow:hidden}h1,h2,p,figure{margin:0}
button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer;touch-action:manipulation}button:disabled{cursor:default;opacity:.35}
[hidden]{display:none!important}button:focus-visible,a:focus-visible{outline:2px solid currentColor;outline-offset:5px}
.wrap{width:min(calc(100% - var(--gut)*2),1280px);margin-inline:auto}.screen{position:absolute;inset:0;width:100%;height:100svh;z-index:4;pointer-events:none}.screen button{pointer-events:auto}
.skip-link{position:fixed;top:10px;left:var(--gut);padding:12px;background:var(--p-bg);color:var(--p-ink);z-index:50;transform:translateY(-150%)}.skip-link:focus{transform:none}
#world,#fireworks,.vignette,#curtain{position:fixed;inset:0;width:100%;height:100%}#world canvas{display:block;width:100%;height:100%;touch-action:none}#fireworks{pointer-events:none;z-index:3}
.vignette{pointer-events:none;z-index:1;background:radial-gradient(ellipse at 55% 53%,transparent 45%,#0a040638 75%,#0a0406a8 100%)}
#curtain{background:#231411;pointer-events:none;opacity:0;z-index:20}
.site-header{position:fixed;left:0;right:0;top:0;height:var(--header-h);z-index:6;color:#e9ded0}.header-inner{height:100%;display:grid;grid-template-columns:1fr 1fr 1fr;align-items:center}
.signature{font:400 27px/1 var(--font-display)}.site-header time{font:400 13px/1 var(--font-text),"PingFang SC",sans-serif;text-align:center;letter-spacing:.08em}
.header-actions{display:flex;align-items:center;justify-content:flex-end;gap:20px}.header-actions button{border:0;background:none;color:inherit;min-height:44px;padding:0;font:400 13px var(--font-text),"PingFang SC",sans-serif}
body[data-scene="intro"] .site-header,body[data-scene="finale"] .site-header{color:#542b2b}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:24px;min-height:var(--btn-h);padding:0 25px;border:0;border-radius:var(--r-btn);font:400 15px/1 var(--font-text),"PingFang SC",sans-serif;text-decoration:none;white-space:nowrap}
.btn--primary{background:var(--action);color:var(--action-ink)}.btn-row{display:flex;gap:16px}.m-arrow{flex:none}
#intro{background:var(--p-bg);color:#5a242a;overflow:hidden}
.hero__bg{position:absolute;inset:var(--header-h) 0 0;width:100%;height:calc(100% - var(--header-h));object-fit:cover;object-position:center center}
#intro>.wrap:not(.hero-foot){position:relative;height:100%;display:flex;align-items:center}
.hero-text{width:39%;padding-bottom:32px;pointer-events:auto}
#intro-title{font:400 clamp(72px,8.2vw,122px)/1.18 var(--font-chinese);letter-spacing:.055em;color:#682e36}
#intro-title>span{display:block}.period{margin-left:-.07em}
.hero__lead{font-size:16px;line-height:1.8;margin:28px 0 28px;letter-spacing:.06em;color:#664640}
.hero-foot{position:absolute;left:0;right:0;bottom:36px;display:flex;justify-content:space-between;align-items:center;color:#70574c;font:400 13px/1.6 var(--font-text),"PingFang SC",sans-serif}
.hero-foot span:first-child{font-family:var(--font-display);font-size:15px}
#heart-reveal{position:absolute;inset:0;z-index:8;background:#f4e9de;pointer-events:none}
.heart-composition{position:absolute;left:50%;top:48%;width:min(90vw,850px);height:min(78vh,690px);transform:translate(-50%,-50%)}
#paper-heart{position:absolute;inset:0;perspective:1200px}
.paper-card{position:absolute;left:var(--x);top:var(--y);width:clamp(55px,7vw,90px);height:clamp(40px,5vw,63px);background:var(--paper);border:1px solid #fff9;border-radius:3px;box-shadow:0 1px 2px #42201e22,4px 9px 16px #42201e18;transform:translate(-50%,-50%) rotate(var(--rotate))}
.paper-card::before{content:"";position:absolute;top:14px;left:0;right:0;border-bottom:1px solid #6e3d4420}.window-dots{position:absolute;left:6px;top:6px;width:3px;height:3px;border-radius:50%;background:#8f575970;box-shadow:6px 0 #8f575940,12px 0 #8f575920}
.paper-card span{position:absolute;inset:16px 2px 2px;display:grid;place-items:center;color:#71454d;font-size:10px}
.birthday-script{position:absolute;left:0;right:0;top:37%;text-align:center;color:#732c36}.birthday-script p{font:400 clamp(38px,5vw,64px)/1.3 var(--font-chinese);letter-spacing:.08em}.birthday-script span{display:block;font-size:15px;margin-top:14px}
.scene-title{position:absolute;top:15%;left:var(--gut);right:var(--gut);text-align:left;pointer-events:none}
.scene-title h2{font-size:36px;line-height:1.4;font-weight:400;letter-spacing:.025em;max-width:360px}
.scene-bottom{position:absolute;bottom:6%;left:var(--gut);right:var(--gut);text-align:center;pointer-events:none}
.scene-bottom p{font:400 13px/1.7 var(--font-text),"PingFang SC",sans-serif;color:#c9b8a6;margin-bottom:8px}
.hand-link{min-height:48px;border:0;background:none;color:#f0ddc6;padding:8px 20px;font:400 16px var(--font-text),"PingFang SC",sans-serif;letter-spacing:.025em}
.hand-link span{display:inline-block;margin-left:12px;font-size:20px;transition:transform .15s}.hand-link:hover span{transform:translate(3px,-3px)}.hand-link:not(:disabled):hover{color:#fff6e8}
.film-choices{display:flex;justify-content:center;gap:8px}.film-choices button{min-height:44px;min-width:44px;padding:8px 12px;border:0;background:none;color:#c4b4a4;font:400 13px var(--font-text),"PingFang SC",sans-serif;border-radius:3px}.film-choices button[aria-pressed="true"]{color:#fff1dc;background:#d5b58e26}
.contact-actions{display:flex;justify-content:center;align-items:center;gap:16px;margin-top:8px}.quiet-button{min-height:48px;padding:8px 16px;background:none;border:0;color:#c7b8a8;font:400 13px var(--font-text),"PingFang SC",sans-serif}
.corner-link{position:absolute;bottom:30px;left:var(--gut);padding:10px 0;min-height:44px;background:none;border:0;color:#c7b8a8;font:400 13px var(--font-text),"PingFang SC",sans-serif}
#cake .scene-title{top:32%;right:auto;max-width:34%}#cake .scene-title h2{font-size:clamp(38px,4.4vw,64px);line-height:1.25;letter-spacing:.02em}
.cake-subtitle{margin-top:24px;font-size:16px;color:#d2bfb0;line-height:1.8;max-width:270px}
.cake-hint{position:absolute;left:var(--gut);top:50%;display:block;padding:0;min-height:44px;background:none;border:0;margin:0;font:400 13px/1.7 var(--font-text),"PingFang SC",sans-serif;color:#ad9588}.touch-hint{display:none}
#blow{position:absolute}.wish-button{left:var(--gut);top:64%;--action:#eadcc8;--action-ink:#4d2929;min-width:232px}
.cake-toolbar{position:absolute;left:67%;bottom:9%;transform:translateX(-50%);display:flex;align-items:center;gap:12px;white-space:nowrap;pointer-events:auto}
.cake-toolbar button{min-height:44px;padding:11px 14px;border:0;background:transparent;color:#cfbfb0;font:400 13px var(--font-text),"PingFang SC",sans-serif;border-radius:3px}
.cake-toolbar button[aria-pressed="true"]{background:#d9bea127;color:#fff0de}.cake-toolbar button:hover{color:#fff4e5;background:#ffffff0c}
.styles{display:flex;gap:4px}.styles button{display:flex;align-items:center;gap:7px}.swatch{display:inline-block;width:9px;height:9px;border-radius:50%;box-shadow:inset 0 0 0 1px #fff3}.swatch.blue{background:#7897e5}.swatch.pink{background:#dc9dbb}.swatch.cream{background:#e7c185}.toolbar-divider{width:1px;height:20px;background:#dcc1a325}
.celebrate-title{position:absolute;left:var(--gut);top:36%;max-width:35%}.celebrate-title h2{font:400 clamp(40px,4.5vw,66px)/1.4 var(--font-chinese)}.celebrate-title .hand-link{padding-left:0;margin-top:30px}
#finale{background:var(--p-bg);color:var(--p-ink);display:flex;align-items:center;justify-content:center;flex-direction:column}
.keepsake{width:min(calc(100% - var(--gut)*2),1030px);display:grid;grid-template-columns:1fr 1fr;align-items:stretch;background:#fffaf2;box-shadow:0 22px 70px #482d2317;padding:28px;gap:0}
.keepsake-photo{width:100%;height:min(51vh,475px);background:#e0d1bc}.keepsake-photo img{width:100%;height:100%;object-fit:cover}
.final-note{position:relative;display:flex;flex-direction:column;justify-content:center;padding:40px 40px 40px 48px}
.final-note h2{font-size:32px;line-height:1.5;font-weight:400;color:#63353b}.final-note p{font-size:15px;line-height:2.3;margin:30px 0 45px;white-space:nowrap;color:#6b4c47}.final-note time{font:400 15px var(--font-display);color:#9a7c6c}
.note-heart{position:absolute;right:20px;top:12px;font-size:28px;color:#9a4a4f}.final-controls{display:flex;gap:24px;margin-top:32px;pointer-events:auto}.final-controls button{min-height:44px;background:none;border:0;color:#77594e;padding:10px 16px;font:400 13px var(--font-text),"PingFang SC",sans-serif}
#loading,#graphics-error,.noscript{position:fixed;bottom:18px;left:20%;right:20%;z-index:30;background:#fbf3e8;color:#6d3d3f;padding:15px;text-align:center;font-size:13px}
.pswp{--pswp-bg:#180d0e;--pswp-icon-color:#f3e7d6;--pswp-icon-color-secondary:#180d0e;--pswp-icon-stroke-color:#180d0e}.pswp__counter{font:400 14px var(--font-text);display:flex;align-items:center}.pswp__custom-caption{position:absolute;bottom:28px;left:20px;right:20px;text-align:center;color:#f3dfc5;font-size:14px;pointer-events:none}
@media(max-width:1279px){:root{--gut:48px}.scene-title h2{font-size:30px}.cake-toolbar{gap:4px}.cake-toolbar button{padding-inline:10px}#cake .scene-title{max-width:36%}.final-note{padding:30px}.final-note p{font-size:14px}}
@media(max-width:900px){
:root{--gut:32px;--header-h:88px}.header-actions{gap:16px}.signature{font-size:25px}
.hero-text{width:43%}#intro-title{font-size:82px}.hero__lead{font-size:14px}.hero__bg{object-position:57% center}.hero-foot span{font-size:12px}
#cake .scene-title{top:15%;max-width:100%;right:var(--gut);text-align:center}#cake .scene-title h2{max-width:none;font-size:40px}.cake-subtitle{max-width:none;font-size:14px;margin-top:12px}.cake-hint{left:50%;top:26%;translate:-50% 0;width:max-content;margin:0}
.wish-button{top:auto;bottom:6%;left:50%;translate:-50% 0}.cake-toolbar{left:50%;bottom:15%;gap:8px}.celebrate-title{left:0;right:0;top:72%;max-width:none;text-align:center}.celebrate-title .hand-link{padding-left:20px;margin-top:12px}
.scene-title h2{font-size:28px}.keepsake{width:calc(100% - var(--gut)*2);padding:20px}.final-note{padding:26px}.final-note h2{font-size:25px}.final-note p{font-size:13px;white-space:normal}.keepsake-photo{height:43vh}
}
@media(max-width:600px){
:root{--gut:24px;--header-h:76px}.signature{font-size:23px}.site-header time{font-size:12px}.header-actions{gap:8px}.header-actions button{font-size:12px;min-width:44px}#motion-toggle{font-size:11px}
.hero__bg{height:calc(53% - var(--header-h));object-position:80% 54%;object-fit:cover}#intro>.wrap:not(.hero-foot){align-items:flex-start;padding-top:calc(53svh + 28px);height:100%}.hero-text{width:100%;padding:0}#intro-title{font-size:clamp(44px,10vw,60px);letter-spacing:.04em;line-height:1.2}#intro-title>span{display:inline}.hero__lead{margin:16px 0 24px;font-size:14px}.btn-row{display:block}.btn-row .btn{width:100%;min-height:50px}.hero-foot{bottom:22px}.hero-foot span:first-child{font-size:13px}
.heart-composition{height:61vh;width:95vw}.paper-card{width:14vw;height:10vw}.paper-card span{font-size:7px;inset:12px 1px 1px}.paper-card::before{top:10px}.window-dots{top:4px;width:2px;height:2px}.birthday-script p{font-size:9vw}.birthday-script span{font-size:12px;margin-top:10px}
.scene-title{top:14%;text-align:center}.scene-title h2{max-width:none;font-size:26px;line-height:1.4}.scene-title h2 br{display:none}.scene-bottom{bottom:10%;left:20px;right:20px}.scene-bottom p{font-size:12px;margin-bottom:4px}.film-choices{gap:2px}.film-choices button{padding:8px 9px;font-size:12px}.contact-actions{gap:8px;margin-top:2px}.hand-link{font-size:15px}.quiet-button{font-size:12px}
.corner-link{bottom:24px;font-size:12px}#cake .scene-title{top:14%}#cake .scene-title h2{font-size:34px}.cake-subtitle{font-size:13px;margin-top:12px}.cake-hint{top:auto;bottom:calc(15% + 58px);font-size:12px;min-height:28px;margin:0}.desktop-hint{display:none}.touch-hint{display:inline}
.cake-toolbar{bottom:15%;width:calc(100% - 40px);justify-content:center;gap:4px}.cake-toolbar button{font-size:12px;padding:10px 9px}.styles{gap:2px}.toolbar-divider{margin:0 2px}.wish-button{bottom:7%;width:calc(100% - var(--gut)*2);min-height:50px;left:var(--gut);translate:none}.celebrate-title{top:73%}.celebrate-title h2{font-size:40px}
.keepsake{margin-top:18px;width:calc(100% - 48px);grid-template-columns:1fr;padding:16px}.keepsake-photo{height:30svh;min-height:170px}.final-note{padding:28px 8px 12px}.final-note h2{font-size:25px}.final-note p{font-size:14px;line-height:2;margin:16px 0 20px}.final-note time{font-size:13px}.note-heart{top:20px;right:8px;font-size:25px}.final-controls{margin-top:12px;gap:8px}.final-controls button{font-size:12px}#loading,#graphics-error{left:6%;right:6%;font-size:12px}
}
@media(max-height:700px) and (min-width:901px){#intro-title{font-size:90px}.hero-text{padding-bottom:0}.hero__lead{margin:20px 0}:root{--header-h:80px}.hero-foot{bottom:22px}#cake .scene-title{top:29%}.cake-subtitle{margin-top:16px}.cake-hint{top:50%}.scene-title h2{font-size:28px}.scene-title{top:17%}.scene-bottom{bottom:3%}.cake-toolbar{bottom:7%}.wish-button{top:66%}}
@media(max-height:740px) and (max-width:600px){.hero__bg{height:calc(48% - var(--header-h))}#intro>.wrap:not(.hero-foot){padding-top:calc(48svh + 22px)}.hero__lead{margin:12px 0 18px}.hero-foot{bottom:16px}.keepsake{margin-top:45px}.keepsake-photo{height:23svh;min-height:130px}.final-note{padding-top:20px}.final-note p{margin:12px 0}.final-controls{margin-top:4px}.cake-subtitle{display:none}.cake-toolbar{bottom:17%}.cake-hint{bottom:calc(17% + 58px)}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

body[data-scene="intro"] .site-header{background:#f5f0e8;color:#542b2b}
body[data-scene="intro"] .header-actions{color:inherit;text-shadow:none}
.pswp:focus-visible{outline:2px solid #f3e7d6;outline-offset:-3px}
.pswp__icn:focus-visible{outline:2px solid #f3e7d6;outline-offset:3px}

.final-note .closer-note{display:block;margin-top:12px;color:#8b6665;font-size:.9em;letter-spacing:.025em}
@media(max-height:740px) and (max-width:600px){.final-note .closer-note{margin-top:6px}}
