:root { --red:#b70f18; --deep:#79080e; --gold:#f8d37a; --cream:#fff4db; --ink:#551114; }
* { box-sizing:border-box; }
html,body { margin:0; min-height:100%; font-family:"Noto Serif SC","Songti SC",serif; color:var(--cream); background:#870b12; }
button,textarea { font:inherit; }
body { min-height:100dvh; overflow:hidden; }
.app { isolation:isolate; position:relative; min-height:100dvh; overflow:hidden; background:radial-gradient(circle at 50% 28%,#e63021 0,#bd151a 34%,#7b080e 100%); }
.app::before,.app::after { content:""; position:absolute; z-index:-1; width:88vw; height:88vw; border:1px solid rgba(252,212,123,.16); border-radius:50%; left:6vw; top:10vh; box-shadow:0 0 0 12vw rgba(253,202,95,.025),0 0 0 24vw rgba(253,202,95,.02); }
.app::after { width:42vw; height:42vw; left:-14vw; top:70vh; }
.stars { position:absolute; inset:0; z-index:-1; opacity:.75; background-image:radial-gradient(#ffeaae 1px,transparent 1.5px),radial-gradient(#ffeaae 1px,transparent 1.5px); background-position:16% 18%,80% 28%; background-size:87px 113px,131px 149px; }
.screen { display:none; position:absolute; inset:0; padding:clamp(32px,8vh,78px) 8vw max(36px,env(safe-area-inset-bottom)); text-align:center; flex-direction:column; align-items:center; }
.screen.active { display:flex; animation:fade .45s ease both; }
@keyframes fade { from { opacity:0; transform:translateY(12px); } to { opacity:1; transform:none; } }
.eyebrow { margin:0 0 12px; font-size:12px; letter-spacing:.28em; color:#f8d77d; }
h1 { margin:6px 0 8px; font-size:clamp(42px,12vw,62px); letter-spacing:.12em; text-indent:.12em; text-shadow:0 3px 0 #850b10; }
h2 { margin:0; font-size:clamp(26px,7.5vw,35px); letter-spacing:.08em; }
.subheading,.form-help,.success-text { color:#ffdca1; line-height:1.8; font-size:15px; }
.intro { justify-content:center; gap:14px; padding-bottom:12vh; }
.intro-lantern { transform:scale(1.15); margin-bottom:12px; }
.hanging-lantern { position:relative; width:118px; height:205px; margin:0 auto; filter:drop-shadow(0 13px 15px rgba(63,0,0,.3)); }
.cord { position:absolute; width:3px; height:32px; top:-30px; left:calc(50% - 1px); background:#f3c353; }
.cap { position:absolute; left:21px; width:76px; height:15px; background:linear-gradient(#ffea9e,#a46b22,#ffe087); border:2px solid #965f19; z-index:2; }
.cap.top { top:0; border-radius:45% 45% 5px 5px; }.cap.bottom { top:119px; border-radius:5px 5px 45% 45%; }
.lantern-body { position:absolute; top:11px; left:7px; width:104px; height:119px; overflow:hidden; border:4px solid #f2bb45; border-radius:44% 44% 31% 31%; background:radial-gradient(ellipse at 42% 42%,#ff8e35 0,#df251a 36%,#9f0b13 76%); box-shadow:inset 15px 0 14px rgba(255,196,69,.25),inset -14px 0 14px rgba(69,0,0,.24); }
.lantern-body::before,.lantern-body::after { content:""; position:absolute; top:0; width:4px; height:100%; background:rgba(251,210,89,.65); box-shadow:20px 0 rgba(251,210,89,.32),40px 0 rgba(251,210,89,.45),60px 0 rgba(251,210,89,.3); }.lantern-body::before { left:7px; }.lantern-body::after { display:none; }
.lantern-body b { position:absolute; z-index:1; inset:23px 0 auto; font-size:50px; font-style:normal; color:#ffe49b; text-shadow:0 2px #ac1d11; }
.tassel { position:absolute; top:132px; left:55px; width:7px; height:47px; background:#e9be4e; }.tassel::after { content:""; position:absolute; width:25px; height:26px; left:-9px; bottom:-15px; border-radius:0 0 50% 50%; background:repeating-linear-gradient(90deg,#ba1019 0 2px,#eb4141 3px 5px); }
.primary,.secondary { width:min(330px,100%); min-height:53px; border-radius:27px; padding:0 25px; border:1px solid #ffd978; cursor:pointer; letter-spacing:.12em; font-weight:bold; transition:transform .2s,filter .2s; }.primary { color:#981017; background:linear-gradient(100deg,#ffeeb9,#edbc51,#fff0b5); box-shadow:0 7px 0 rgba(100,0,0,.22); }.secondary { color:#ffe4a5; background:transparent; border-color:#f1c262; }.primary:active,.secondary:active { transform:translateY(3px); filter:brightness(.9); }.hint { margin:12px 0 0; font-size:12px; color:rgba(255,227,170,.77); }
.form-screen { justify-content:center; text-align:left; }.form-screen h2,.form-screen .eyebrow,.form-screen .form-help { align-self:stretch; }.form-screen .primary { margin-top:24px; }.back { position:absolute; top:max(20px,env(safe-area-inset-top)); left:6vw; color:#ffe3a4; border:0; background:transparent; font-size:47px; line-height:30px; cursor:pointer; }.wish-field { position:relative; width:min(400px,100%); margin-top:28px; padding:16px; border:1px solid rgba(255,220,145,.75); border-radius:18px; background:rgba(111,0,8,.22); }.wish-field span { display:block; margin-bottom:11px; font-size:14px; color:#ffe0a3; }.wish-field textarea { display:block; resize:none; width:100%; height:98px; border:0; outline:0; padding:0 0 15px; background:transparent; color:white; font-size:17px; line-height:1.7; }.wish-field textarea::placeholder { color:rgba(255,224,163,.53); }.wish-field em { position:absolute; right:16px; bottom:12px; color:rgba(255,229,175,.7); font-size:12px; font-style:normal; }
.poster-screen { padding-top:max(28px,5vh); }.poster-screen h2 { font-size:25px; }.poster { position:relative; isolation:isolate; overflow:hidden; width:min(320px,88%); aspect-ratio:3/4; margin:12px auto 9px; padding:22px 24px; border:7px solid #f4cc67; border-radius:8px; background:linear-gradient(145deg,#b91216,#7f050b); box-shadow:0 15px 25px rgba(72,0,0,.28); }.poster::before,.poster::after { content:""; position:absolute; width:127px; height:127px; border:1px solid rgba(255,219,124,.35); border-radius:50%; }.poster::before { top:-76px; left:-72px; }.poster::after { right:-67px; bottom:-75px; }.poster-pattern { position:absolute; inset:0; z-index:-1; opacity:.3; background-image:radial-gradient(#ffd979 1px,transparent 1px); background-size:18px 18px; }.poster-year { margin:0; color:#ffe29a; font-size:11px; letter-spacing:.16em; }.poster-lantern { transform:scale(.83); height:168px; margin-top:20px; }.wish-plaque { position:relative; z-index:2; width:84%; min-height:95px; margin:-10px auto 0; padding:12px 13px; display:flex; flex-direction:column; justify-content:center; border:3px solid #d6a341; color:#7d1113; background:#ffe6aa; clip-path:polygon(7% 0,93% 0,100% 8%,100% 92%,93% 100%,7% 100%,0 92%,0 8%); }.wish-plaque span { font-size:11px; letter-spacing:.23em; }.wish-plaque strong { margin-top:7px; font-size:18px; line-height:1.4; word-break:break-all; }.poster-foot { margin:14px 0 0; color:#ffe6aa; font-size:11px; letter-spacing:.1em; }.poster-actions { display:flex; gap:9px; width:min(320px,88%); margin:0 auto 9px; }.small-action { flex:1; height:34px; border:1px solid rgba(255,222,153,.72); border-radius:18px; color:#ffe7b2; background:rgba(109,0,7,.34); font-size:12px; cursor:pointer; }.swipe-copy { margin:0 0 8px; color:#ffdfa1; font-size:13px; }.swipe-panel { width:min(350px,100%); padding:8px; border:1px solid rgba(255,221,152,.65); border-radius:20px; color:#ffe9bc; background:rgba(107,0,7,.25); touch-action:none; user-select:none; }.swipe-panel span { display:block; }.chevrons { animation:updown 1.1s infinite ease-in-out; font-size:25px; line-height:17px; }@keyframes updown { 50% { transform:translateY(-4px); opacity:.58; } }
.success-screen { justify-content:center; }.success-lantern { transform:scale(1.2); margin:15px 0 30px; animation:glow 1.8s infinite ease-in-out; }@keyframes glow { 50% { filter:drop-shadow(0 0 19px #ffd363) drop-shadow(0 0 42px #fca82a); } }.success-screen h2 { max-width:330px; font-size:28px; line-height:1.5; }.success-screen h2 span { color:#ffe068; font-size:1.25em; }.success-text { max-width:285px; margin:15px 0 33px; }.success-screen .secondary { width:270px; }
@media (max-height:700px) { .poster { width:245px; margin:6px auto; }.poster-lantern { transform:scale(.6); height:120px; margin-top:2px; }.wish-plaque { min-height:65px; }.wish-plaque strong { font-size:14px; }.poster-foot { margin-top:6px; }.intro-lantern { transform:scale(.9); margin-bottom:-4px; }.hanging-lantern { height:180px; }.poster-actions { width:245px; } }
