:root{--paper:#FAF4E7;--ink:#4B2C18;--red:#A82C20;--jade:#426F61;--gold:#BE9454;--page:min(100vw,440px);--dynamic:HaoyunGlyph,'Songti SC','STSong','Noto Serif CJK SC','PingFang SC',serif}
*{box-sizing:border-box}html{background:#e7e7df;scroll-behavior:smooth}body{margin:0 auto;max-width:440px;background:var(--paper);color:var(--ink);-webkit-tap-highlight-color:transparent}body:has(dialog[open]){overflow:hidden}button,input,textarea,a{touch-action:manipulation}button{cursor:pointer;color:inherit}button,a,input,textarea,summary{outline-offset:4px}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,summary:focus-visible{outline:2px solid var(--jade)}button{border:0;background:none;padding:0}button:disabled{opacity:.55;cursor:wait}a{color:inherit}h1,h2,p,figure{margin:0}h1,h2{font-weight:400}.sr-only{position:absolute!important;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.scene{position:relative;isolation:isolate;overflow:hidden;min-height:100svh;background:var(--paper);padding-bottom:max(28px,env(safe-area-inset-bottom));animation:page-in .28s ease-out both}.scene:before{content:'';position:absolute;inset:0;z-index:-2;background:url('assets/art/scenery.png') center 0/100% auto no-repeat;opacity:.87;pointer-events:none}.scene:after{content:'';position:absolute;inset:0;z-index:-1;pointer-events:none;background:linear-gradient(90deg,transparent,rgba(250,244,231,.32) 20%,rgba(250,244,231,.32) 80%,transparent)}.scene.result:before{background-size:100% auto;background-position:center 0}.scene.result:after{background:linear-gradient(0deg,#faf4e700,#faf4e7cc 150px,#faf4e7cc calc(100% - 370px),transparent calc(100% - 270px))}.page-end{height:95px;margin:0 0 -28px;background:url('assets/art/scenery.png') center bottom/100% auto no-repeat;opacity:.85}.navbar{height:58px;display:flex;align-items:center;justify-content:center;position:relative;z-index:3;padding:8px 52px;gap:12px}.navbar:before,.navbar:after{content:'';height:1px;width:35px;background:linear-gradient(90deg,transparent,var(--gold))}.navbar:after{transform:rotate(180deg)}.navbar .text-img{width:120px}.nav-back{position:absolute;left:9px;top:7px;width:44px;height:44px;display:grid;place-items:center}.back-icon{width:13px;height:13px;border-left:2px solid var(--ink);border-bottom:2px solid var(--ink);transform:rotate(45deg);display:block}.nav-home{position:absolute;right:9px;top:7px;width:44px;height:44px;display:grid;place-items:center}.nav-home .text-img{width:29px}.text-img{display:block;max-width:100%;height:auto;margin:0 auto;object-fit:contain}.text-wrap{display:block}.text-wrap.align-left .text-img{margin-left:0}.art-crop{display:block;position:relative;overflow:hidden;max-width:100%;margin:auto;pointer-events:none}.art-crop>img{position:absolute;max-width:none;height:auto;display:block}.landing-title{text-align:center;padding:4px 22px 0}.eyebrow{display:inline-block;border:1px solid #BE945480;outline:1px solid #BE94543b;outline-offset:3px;padding:0 14px;margin:4px auto 13px;border-radius:5px;background:#faf4e7aa}.eyebrow .text-img{max-width:230px;width:205px}.home-title{max-width:342px;margin:0 auto 12px}.landing-title>.text-wrap{margin:0 -4px}.landing-art{position:relative;height:clamp(250px,73vw,318px);margin:3px 0 -9px;isolation:isolate}.disc{position:absolute;width:70%;aspect-ratio:1;left:16%;top:4%;z-index:-1;object-fit:contain}.hand-button{display:block;width:100%;height:100%;position:relative;outline-offset:-14px}.hand{position:absolute;width:98%;height:105%;left:-6%;top:-2%;object-fit:contain;transform-origin:35% 88%;filter:drop-shadow(0 8px 10px #6d47200a);will-change:transform}.hand-button.is-charmed .hand{animation:hand-answer .72s ease-in-out}.charm-spark{position:absolute;left:60%;top:18%;width:8px;height:8px;background:var(--gold);transform:rotate(45deg);animation:sparkle .65s ease-out forwards;pointer-events:none}.name-form{position:relative;padding:0 28px;text-align:center}.field-heading{display:flex;gap:15px;align-items:center;justify-content:center;margin:2px 0 8px}.field-heading:before,.field-heading:after{content:'';height:1px;flex:1;background:#BE94547d}.field-heading .text-img{width:83px}.input-wrap{position:relative}.name-form input{width:100%;height:55px;appearance:none;border:1px solid var(--gold);border-radius:7px;background:#fffaf0e8;box-shadow:inset 0 0 0 3px #fffaf0,inset 0 0 0 4px #BE94545c;padding:0 15px;font:25px/1.5 var(--dynamic);text-align:center;letter-spacing:3px;color:var(--ink)}.input-placeholder{position:absolute;inset:0;display:grid;place-items:center;pointer-events:none;opacity:.65}.input-placeholder .text-img{width:240px}.input-wrap:has(input:not(:placeholder-shown)) .input-placeholder{display:none}.field-help{margin:7px -5px 10px}.field-help .text-img{width:265px}.primary,.secondary{position:relative;display:flex;align-items:center;justify-content:center;width:100%;min-height:54px;padding:8px 23px;border:1px solid #B8783E;border-radius:25px;background:linear-gradient(105deg,#9c251a,#bc3425 50%,#a1241a);box-shadow:inset 0 0 0 2px #fff1ce,inset 0 0 0 3px #cf9a56,0 3px 0 #8d3c1c16;overflow:hidden;transition:transform .14s ease,filter .14s ease}.primary:before,.primary:after{content:'';position:absolute;width:29px;height:29px;border:1px solid #e8c98a;border-radius:48%;left:-13px;bottom:-7px;box-shadow:7px -5px 0 -2px #b33524,7px -5px 0 -1px #e8c98a}.primary:after{left:auto;right:-13px;transform:scaleX(-1)}.primary:active,.secondary:active{transform:scale(.972);filter:brightness(1.07)}.primary .text-img{width:auto;max-width:100%;max-height:32px}.secondary{background:#fbf6e9d9;border:1px solid #64806c;box-shadow:inset 0 0 0 2px #fff6e1,inset 0 0 0 3px #BE94545a;min-height:50px;padding:7px 18px;border-radius:22px}.secondary .text-img{max-height:29px;width:auto}.text-button{display:flex;justify-content:center;align-items:center;min-height:44px;margin:0 auto;padding:6px 12px}.text-button .text-img{max-height:25px;width:auto}.footer-note{margin:12px -6px 0}.footer-note .text-img{width:302px}.error{margin:10px 0;padding:8px 10px;border-left:2px solid var(--red);background:#fff6ec;animation:input-shake .3s}.error:empty{display:none}input[aria-invalid=true],textarea[aria-invalid=true]{border-color:var(--red)!important}.tap-ripple{position:absolute;border:1px solid #f8e7bb88;border-radius:50%;width:12px;height:12px;transform:translate(-50%,-50%);pointer-events:none;animation:ripple .55s ease-out forwards}.reveal{text-align:center}.reveal-heading{padding:30px 22px 0}.reveal-heading .dynamic-name{font-size:19px;display:block;margin-bottom:8px}.reveal-heading h1{margin:15px 0 0}.reveal-heading h1 .text-img{width:235px}.reveal-art{height:clamp(310px,88vw,370px);position:relative;isolation:isolate;margin:10px 0}.reveal-art .hand{width:103%;left:-9%}.orbit{position:absolute;width:72%;aspect-ratio:1;left:15%;top:6%;border:1px solid #bc945456;border-radius:50%;animation:orbit 3s linear infinite}.orbit:before{content:'';position:absolute;left:16%;top:11%;width:8px;height:8px;background:#cb9c46;border-radius:50%;box-shadow:0 0 14px #e2b65d}.orbit.second{transform:rotate(120deg);width:82%;left:10%;top:1%;animation-direction:reverse;opacity:.45}.reveal-footer{padding:5px 30px}.reveal-footer>.text-wrap{margin-bottom:10px}.reveal.is-revealing .hand{animation:unfurl 1.9s cubic-bezier(.16,.6,.2,1) both}.dynamic-name,.glyph-char{font-family:var(--dynamic);font-weight:400}.result-hero{position:relative;height:310px;isolation:isolate}.result-hero .disc{left:1%;width:64%;top:9%}.result-hero .hand-button{position:absolute;left:-10%;top:0;width:72%;height:100%}.result-hero .hand{width:120%;left:-12%;height:111%;top:-5%}.result-heading{position:absolute;right:17px;top:70px;width:51%;text-align:center}.result-heading .dynamic-name{font-size:20px;margin-bottom:2px;display:block;letter-spacing:2px}.result-heading>.text-wrap .text-img{width:110px}.result-heading h1{margin:12px -6px 12px}.result-heading .art-crop{width:100%;max-height:90px}.result-heading h1>.text-wrap .text-img{width:100%}.theme-label{border:1px solid #bd915a94;border-radius:8px;background:#faf4e7c9;margin:0 auto;display:inline-block;padding:0 12px;box-shadow:0 0 0 3px #faf4e7,0 0 0 4px #BD915A50}.theme-label .text-img{width:89px}.hero-wish{position:relative;padding:4px 22px 24px}.hero-wish .text-img{width:310px}.hero-wish:after{content:'';display:block;width:100px;height:1px;background:#BE9454a6;margin:9px auto 0}.result-body{padding:0 22px}.ornament-panel{position:relative;border:1px solid #BE9454ba;outline:1px solid #BE94543d;outline-offset:-4px;border-radius:6px;background:#fff9ecdf;padding:22px 16px 14px;margin:10px 0 29px}.panel-title{position:relative;display:table;margin:-39px auto 13px;padding:0 14px;background:#FAF1DF;border:1px solid #BE9454b3;border-radius:10px;max-width:100%;box-shadow:0 0 0 3px #faf4e7}.panel-title .text-img{max-height:29px;width:auto}.glyph-line{display:grid;grid-template-columns:35px minmax(0,1fr);gap:12px;align-items:start;padding:11px 0}.glyph-line+.glyph-line{border-top:1px solid #BE945435}.glyph-char{display:grid;place-items:center;min-height:39px;border:1px solid #BE94549c;border-radius:50%;font-size:26px;line-height:1.4;background:#f4e7ce80}.glyph-copy>.text-wrap .text-img{margin-left:0}.glyph-copy .basis{margin-top:4px}.glyph-copy .basis .text-img{width:auto;max-height:20px;margin-left:0}.daily-line{padding:7px 0}.daily-line+.daily-line{border-top:1px solid #BE945435}.daily-line .text-img{margin-left:0}.affirmation-panel{padding-top:23px;padding-bottom:18px}.result-actions{margin-top:-6px;display:grid;gap:12px}.result-actions>.text-wrap{margin-top:-8px}.meaning-note{margin:16px 0 0}.meaning-note summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:9px;min-height:44px}.meaning-note summary:after{content:'';width:7px;height:7px;transform:rotate(-45deg);border-left:1px solid var(--ink);border-bottom:1px solid var(--ink)}.meaning-note[open] summary:after{transform:rotate(135deg)}.meaning-note summary .text-img{max-width:180px}.meaning-note .explanation{padding:10px 12px;background:#fff8edc9;border-top:1px solid #BE945455}.explanation>.text-wrap+.text-wrap{margin-top:12px}.explanation .text-img{margin-left:0}.fine-print{margin:6px auto 10px}.manifest-heading{text-align:center;padding:14px 22px 20px}.manifest-heading h1{margin:13px auto}.manifest-heading h1 .text-img{max-width:320px;width:100%}.manifest-heading>.text-wrap{margin:6px auto}.manifest-body{padding:0 26px}.steps{list-style:none;padding:0;margin:6px 0 22px;background:#fff7e8ed;border-top:1px solid #BE94547c;border-bottom:1px solid #BE94547c}.steps li{padding:17px 8px}.steps li+li{border-top:1px solid #BE945444}.steps h2{margin-bottom:8px}.steps p .text-img{margin-left:0}.manifest-talisman{position:relative;width:180px;height:170px;margin:-2px auto 8px;isolation:isolate}.manifest-talisman .hand{width:100%;left:0}.manifest-talisman .disc{width:90%;left:5%;top:0}.wish-heading{padding:16px 24px 8px;text-align:center}.wish-heading h1{margin:12px auto 14px}.wish-heading h1 .text-img{width:228px}.wish-heading .text-wrap{margin:auto}.wish-art{height:185px;width:260px;margin:2px auto 0;position:relative;isolation:isolate}.wish-art .hand{width:95%;left:0;top:-6%}.wish-form{padding:0 26px;text-align:center}.wish-form>label{display:block;margin:8px 0}.wish-form>label .text-img{width:280px}.textarea-wrap{position:relative;margin:9px 0}.wish-form textarea{display:block;width:100%;min-height:164px;max-height:300px;resize:vertical;border:1px solid var(--gold);border-radius:6px;background:#fffaf0ef;box-shadow:inset 0 0 0 4px #faf4e7,inset 0 0 0 5px #BE945433;padding:18px;font:18px/1.8 var(--dynamic);color:var(--ink)}.textarea-placeholder{position:absolute;pointer-events:none;left:18px;right:18px;top:23px;opacity:.6}.textarea-placeholder .text-img{width:250px}.textarea-wrap:has(textarea:not(:placeholder-shown)) .textarea-placeholder{display:none}.wish-meta{display:flex;justify-content:space-between;gap:8px;align-items:center;margin:6px 0 16px}.wish-meta>.text-wrap:first-child .text-img{width:220px}.wish-meta .count .text-img{width:55px}.card-heading{padding:11px 26px 14px;text-align:center}.card-heading h1{margin-bottom:6px}.card-heading h1 .text-img{max-width:240px}.card-stage{margin:0 auto;position:relative;width:min(65vw,272px);min-height:calc(min(65vw,272px)*1.6);display:grid;place-items:center}.card-stage>.text-wrap{width:240px}.card-preview-button{display:block;position:relative;padding:0;width:100%;transition:transform .2s;box-shadow:0 7px 24px #6c4a2426,0 0 0 4px #fffaf0,0 0 0 5px #b78f58b0}.card-preview-button:active{transform:scale(.98)}.card-preview{display:block;width:100%;height:auto;user-select:auto;-webkit-user-select:auto;-webkit-touch-callout:default}.card-controls{padding:16px 27px 0;display:grid;gap:10px}.card-controls>.text-wrap{margin:-3px -3px 0}.card-controls .text-button{margin-top:-8px}.card-loading{position:relative;width:60px;height:60px;border:1px solid #BE94545f;border-top:2px solid var(--gold);border-radius:50%;animation:orbit 1s linear infinite;margin:90px auto 15px}.loading-box{align-self:start;text-align:center}.card-stage .error{margin-top:65px}.card-controls .retry{margin-top:0}.preview-owner{font:16px/1.6 var(--dynamic);text-align:center}.viewer-close{position:fixed;right:16px;top:max(16px,env(safe-area-inset-top));z-index:2;width:44px;height:44px;border-radius:50%;background:#fff4dedc}.viewer-close::before,.viewer-close::after{content:'';position:absolute;left:12px;top:21px;width:20px;height:2px;background:var(--ink);transform:rotate(45deg)}.viewer-close::after{transform:rotate(-45deg)}.viewer-close{font-size:0}#viewer{border:0;background:transparent;padding:60px 14px 30px;width:100vw;max-width:650px;max-height:100dvh;overflow:auto;color:var(--ink)}#viewer::backdrop{background:#302317db}#largeCard{display:block;width:100%;height:auto;-webkit-touch-callout:default}#viewer .zoom-help{background:#faf4e7;padding:10px}.zoom-help .text-img{max-width:300px}#toast{position:fixed;left:22px;right:22px;bottom:max(30px,env(safe-area-inset-bottom));max-width:360px;margin:auto;background:#fff8ebfa;border:1px solid var(--gold);border-radius:8px;padding:11px 14px;z-index:10;box-shadow:0 5px 30px #4B2C1830;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s;transform:translateY(8px)}#toast.show{opacity:1;transform:translateY(0)}#toast .text-img{max-width:290px}.scene.loading img{opacity:.8}
@keyframes page-in{from{opacity:.25;transform:translateY(6px)}to{opacity:1;transform:none}}@keyframes orbit{to{transform:rotate(360deg)}}@keyframes unfurl{0%{transform:translateY(22px) rotate(-8deg);opacity:.2}55%{transform:translateY(-5px) rotate(1deg);opacity:1}100%{transform:translateY(0) rotate(0);opacity:1}}@keyframes hand-answer{0%,100%{transform:rotate(0)}35%{transform:rotate(-4deg) translateY(-5px)}70%{transform:rotate(2deg)}}@keyframes sparkle{0%{opacity:0;transform:translateY(10px) rotate(45deg) scale(.4)}35%{opacity:1}100%{opacity:0;transform:translateY(-30px) rotate(120deg) scale(1.5)}}@keyframes ripple{to{width:300px;height:300px;opacity:0}}@keyframes input-shake{20%,60%{transform:translateX(-3px)}40%,80%{transform:translateX(3px)}}
@media(max-width:369px){.navbar{height:54px}.landing-title{padding-left:18px;padding-right:18px}.home-title{max-width:292px}.landing-art{height:250px}.name-form{padding:0 23px}.field-help .text-img{width:240px}.result-body{padding:0 18px}.result-hero{height:280px}.result-heading{top:69px;right:12px}.result-heading .dynamic-name{font-size:18px}.result-heading h1{margin:9px -3px}.theme-label .text-img{width:78px}.ornament-panel{padding-left:14px;padding-right:14px}.glyph-line{grid-template-columns:32px minmax(0,1fr);gap:10px}.panel-title{padding:0 8px}.panel-title .text-img{max-height:25px}.manifest-body{padding:0 21px}.wish-form{padding:0 22px}.wish-meta>.text-wrap:first-child .text-img{width:190px}.card-stage{width:65vw}.card-controls{padding:14px 23px 0}.card-heading{padding:5px 24px 12px}.card-heading h1 .text-img{max-height:36px}.card-controls .primary{min-height:50px}.card-controls .secondary{min-height:46px}.manifest-heading{padding-top:8px}.manifest-heading h1 .text-img{max-width:270px}}
@media(min-height:850px) and (min-width:370px){.landing-art{height:330px}.landing-title{padding-top:10px}.name-form{margin-top:4px}.scene.landing{padding-bottom:40px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}.tap-ripple,.charm-spark{display:none}.orbit{transform:rotate(30deg)}}
[hidden]{display:none!important}
.navbar>.text-wrap .text-img{width:102px}.eyebrow .text-img{width:180px}.landing-title{position:relative}.landing-title:before{content:'';position:absolute;inset:44px 12px 0;z-index:-1;background:radial-gradient(ellipse,#faf4e7ee 35%,#faf4e700 74%);pointer-events:none}.scene:before{opacity:.72}.scene.result:before{opacity:.8}.scene.manifest:before,.scene.wish:before{opacity:.5}.scene.luck:before,.scene.wishcard:before{opacity:.5}.card-heading{position:relative;background:#faf4e75c}.card-stage{width:min(61vw,258px)}.manifest-talisman{width:130px;height:125px}.steps li{padding:14px 8px}.manifest-heading{padding-bottom:14px}.wish-art{height:160px}.scene{animation-duration:.24s}
