.hatch-backdrop{z-index:10000;background:#201c30;animation:.45s ease-out both hatch-arrive;position:fixed;inset:0}.hatch-ceremony{--hatch-paper:#fbf4e8;--hatch-ink:#403246;z-index:10001;isolation:isolate;overscroll-behavior:contain;width:100%;height:100dvh;color:var(--hatch-paper);background:#201c30;outline:none;font-family:PingFang SC,Microsoft YaHei,system-ui,sans-serif;animation:.45s ease-out both hatch-arrive;position:fixed;inset:0;overflow:auto}.hatch-ceremony:before{content:"";z-index:-2;opacity:0;pointer-events:none;background:#f8f3e9;transition:opacity 1.1s;position:fixed;inset:0}.hatch-ceremony[data-phase=reveal]:before{opacity:1}.hatch-ceremony[data-phase=reveal]{color:var(--hatch-ink)}.hatch-paper{z-index:-1;pointer-events:none;opacity:.11;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cg stroke='%239d8e7d' stroke-width='.6' fill='none'%3E%3Cpath d='M3 7l11 2m8 27l9-1m-3 33l12-3m21-48l9 2M3 51l11-3m33-7l8 1m-1 31l11-4m-22-58l7 2'/%3E%3C/g%3E%3C/svg%3E");position:fixed;inset:0}.hatch-effects{z-index:0;pointer-events:none;width:100%;height:100%;position:absolute;inset:0}.hatch-flash{z-index:2;opacity:0;pointer-events:none;background:#fffcef;position:absolute;inset:0}.hatch-sr-only{clip:rect(0,0,0,0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.hatch-topbar{top:max(20px,env(safe-area-inset-top));right:max(28px,env(safe-area-inset-right));z-index:4;align-items:center;gap:8px;display:flex;position:absolute}.hatch-quiet{color:inherit;cursor:pointer;background:0 0;border:0;border-radius:50%;justify-content:center;align-items:center;transition:opacity .16s,transform .16s;display:inline-flex}.hatch-icon{flex:none;width:48px;height:48px;padding:0}.hatch-quiet:hover{opacity:.65}.hatch-quiet:active,.hatch-primary:active{transform:scale(.95)}.hatch-ceremony button:focus-visible{outline-offset:5px;outline:3px solid}.hatch-scene{z-index:1;place-items:center;width:100%;height:100dvh;margin:auto;padding:80px 28px 108px;display:grid;position:relative;overflow:clip}.hatch-stage{place-items:center;width:100%;height:100%;min-height:0;max-height:620px;display:grid;position:relative}.hatch-moon{aspect-ratio:1;opacity:.13;background:#ded0c4;border-radius:50%;width:min(470px,54dvh,76vw);transition:opacity 1s,transform 1.2s cubic-bezier(.16,1,.3,1);position:absolute;transform:scale(.85)}.hatch-moon svg{stroke:#d1ba99;stroke-width:1.7px;width:112%;height:112%;position:absolute;inset:-6%}.hatch-moon svg path+path{stroke-width:1px;opacity:.55}.hatch-staves{color:#d3ba91;opacity:.12;pointer-events:none;width:min(1200px,118vw);height:100%;position:absolute;top:0;transform:rotate(-8deg)}.hatch-staves path{stroke:currentColor;stroke-width:1.3px}.hatch-egg{aspect-ratio:1;transform-origin:50% 85%;z-index:2;width:min(440px,58dvh,82vw);position:relative}.hatch-egg-aura{opacity:0;background:radial-gradient(#fff8dd 0%,#d6eaff80 25%,#bba7e840 48%,#0000 72%);border-radius:50%;transition:opacity .8s,transform 1.1s ease-out;position:absolute;inset:12%;transform:scale(.8)}.hatch-shell{position:absolute;inset:0}.hatch-shell-top{clip-path:polygon(0 0,100% 0,100% 53%,84% 50%,73% 56%,61% 48%,51% 55%,37% 49%,25% 56%,17% 52%,0 53%)}.hatch-shell-bottom{clip-path:polygon(0 53%,17% 52%,25% 56%,37% 49%,51% 55%,61% 48%,73% 56%,84% 50%,100% 53%,100% 100%,0 100%)}.hatch-shell .pet-egg-art{display:block}.hatch-crack{opacity:0;stroke:#fffce7;stroke-width:1.6px;stroke-linejoin:round;filter:drop-shadow(0 0 4px #f8e6ae);width:100%;height:100%;position:absolute;inset:0}.hatch-crack-branch{stroke-width:.7px;stroke-dasharray:70;stroke-dashoffset:70px}.hatch-emergence{z-index:3;pointer-events:none;opacity:0;animation:hatch-outline-emerge var(--hatch-open-duration)cubic-bezier(.16,1,.3,1)both;position:absolute}.hatch-emerging-pair{grid-template-columns:1fr 1fr;gap:44px;width:min(760px,100%);padding:12px 8px 44px;display:grid}.hatch-emerging-solo{width:min(470px,57dvh,82vw)}.hatch-outline{aspect-ratio:1;filter:brightness(0)invert()drop-shadow(0 0 18px #e8e4ff);background-position:0 0;background-repeat:no-repeat;background-size:300% 300%;width:100%;display:block}.hatch-ceremony[data-art-ready=false] :is(.hatch-choices,.hatch-new-friend,.hatch-emergence){visibility:hidden}.hatch-confetti{pointer-events:none;position:absolute;inset:0;overflow:visible}.hatch-confetti>span{opacity:0;color:#c7a36d;width:20px;height:24px;transform:rotate(var(--a))translateY(0);position:absolute;top:50%;left:50%}.hatch-confetti svg{stroke:currentColor;stroke-width:1.5px;width:100%;height:100%}.hatch-confetti>span:nth-child(3n){color:#aa92b3}.hatch-footer{bottom:max(32px,env(safe-area-inset-bottom));z-index:3;justify-content:center;align-items:center;gap:22px;width:100%;display:flex;position:absolute;left:0}.hatch-primary{color:#fffdf9;cursor:pointer;background:#6a4e7a;border:0;border-radius:50%;justify-content:center;align-items:center;width:64px;height:64px;transition:transform .16s,background .16s;display:inline-flex}.hatch-primary:hover{background:#574064}.hatch-primary:disabled{color:#66586d;cursor:default;background:#e1d9e4}.hatch-quiet:disabled{opacity:.65;cursor:wait}.hatch-new-friend{z-index:2;width:min(470px,57dvh,82vw);animation:1s cubic-bezier(.16,1,.3,1) both hatch-friend-enter;position:relative}.hatch-new-friend .pet-art-wrap,.hatch-new-friend .pet-character-art{aspect-ratio:1}.hatch-choices{z-index:2;grid-template-columns:1fr 1fr;align-items:end;gap:44px;width:min(760px,100%);display:grid;position:relative}.hatch-choice{min-width:0;color:var(--hatch-ink);cursor:pointer;-webkit-tap-highlight-color:transparent;background:0 0;border:0;border-radius:28px;flex-direction:column;align-items:center;padding:12px 8px;animation:.8s cubic-bezier(.16,1,.3,1) both hatch-friend-enter;display:flex}.hatch-choice:nth-child(2){animation-delay:.13s}.hatch-choice-art{aspect-ratio:1;transform-origin:50% 85%;background-repeat:no-repeat;width:min(320px,46dvh,100%);display:block}.hatch-selection-mark{color:#6a4e7a;place-items:center;width:32px;height:32px;margin-top:12px;display:grid}.hatch-footer .hatch-error{color:#8a3546}.hatch-saving{animation:1s linear infinite hatch-spin}.hatch-ceremony[data-phase=waking] .hatch-egg{animation:hatch-egg-wake var(--hatch-wake-duration)ease-in-out both}.hatch-ceremony[data-phase=waking] .hatch-egg-aura{opacity:.4;transform:scale(1.2)}.hatch-ceremony[data-phase=charging] .hatch-egg{animation:hatch-egg-charge var(--hatch-charge-duration)ease-in-out both}.hatch-ceremony[data-phase=charging] .hatch-egg-aura{opacity:.85;transform:scale(1.65)}.hatch-ceremony[data-phase=charging] .hatch-shell{animation:hatch-shell-charge var(--hatch-charge-duration)ease-in both}.hatch-ceremony[data-phase=charging] .hatch-moon{opacity:.22;transform:scale(1.15)}.hatch-ceremony[data-phase=cracking] .hatch-egg{animation:hatch-egg-crack var(--hatch-crack-duration)ease-in-out both}.hatch-ceremony[data-phase=cracking] .hatch-shell{animation:hatch-shell-illuminate var(--hatch-crack-duration)ease-in both}.hatch-ceremony[data-phase=cracking] .hatch-egg-aura{opacity:1;transform:scale(2)}.hatch-ceremony[data-phase=cracking] .hatch-crack{animation:.5s both hatch-arrive}.hatch-ceremony[data-phase=cracking] .hatch-crack-branch{animation:1.3s ease-out both hatch-crack-spread}.hatch-ceremony[data-phase=cracking] .hatch-moon{opacity:.22;transform:scale(1.4)}.hatch-ceremony[data-phase=opening] .hatch-egg{transform:translateY(-30px)scale(1.06)}.hatch-ceremony[data-phase=opening] .hatch-shell{filter:brightness(4)saturate(.1)drop-shadow(0 0 18px #fff9db)}.hatch-ceremony[data-phase=opening] .hatch-shell-top{animation:hatch-shell-top var(--hatch-open-duration)cubic-bezier(.16,1,.3,1)both}.hatch-ceremony[data-phase=opening] .hatch-shell-bottom{animation:hatch-shell-bottom var(--hatch-open-duration)cubic-bezier(.16,1,.3,1)both}.hatch-ceremony[data-phase=opening] .hatch-moon{opacity:0;transform:scale(2)}.hatch-ceremony[data-phase=opening] .hatch-flash{animation:hatch-bloom var(--hatch-open-duration)ease-in-out both}.hatch-ceremony[data-phase=reveal] .hatch-flash{animation:.7s ease-out both hatch-bloom-settle}.hatch-ceremony[data-phase=opening] .hatch-confetti>span{animation:hatch-particle 1.25s var(--delay)cubic-bezier(.16,1,.3,1)both}.hatch-ceremony[data-phase=reveal] .hatch-moon{opacity:.45;background:#e7dcde;transform:scale(1)}.hatch-ceremony[data-phase=reveal] .hatch-staves{opacity:.4;color:#ad9471}.hatch-ceremony[data-phase=reveal] .hatch-confetti>span{opacity:.6;transform:rotate(var(--a))translateY(calc(var(--reach)*-1))rotate(30deg)}.hatch-ceremony[data-choosing=true] .hatch-confetti{opacity:.3}.hatch-ceremony[data-skipped=true] .hatch-flash,.hatch-ceremony[data-reduced=true] .hatch-flash,.hatch-ceremony[data-reduced=true] .hatch-effects{display:none}@keyframes hatch-arrive{0%{opacity:0}to{opacity:1}}@keyframes hatch-egg-wake{0%{transform:translateY(0)rotate(0)}28%{transform:translateY(-4px)rotate(-5deg)}60%{transform:translateY(-9px)rotate(4deg)}to{transform:translateY(-12px)rotate(0)}}@keyframes hatch-egg-charge{0%{transform:translateY(-12px)scale(1)}50%{transform:translateY(-24px)scale(1.025)rotate(-2deg)}to{transform:translateY(-30px)scale(1.06)}}@keyframes hatch-shell-charge{0%{filter:brightness()saturate()}to{filter:brightness(1.65)saturate(.75)drop-shadow(0 0 12px #d2e9ff)}}@keyframes hatch-shell-illuminate{0%{filter:brightness(1.65)saturate(.75)drop-shadow(0 0 12px #d2e9ff)}to{filter:brightness(4)saturate(.1)drop-shadow(0 0 18px #fff9db)}}@keyframes hatch-egg-crack{0%,to{transform:translateY(-30px)scale(1.06)}22%{transform:translateY(-34px)rotate(-4deg)scale(1.06)}45%{transform:translateY(-29px)rotate(4deg)scale(1.06)}68%{transform:translateY(-33px)rotate(-2deg)scale(1.06)}85%{transform:translateY(-30px)rotate(2deg)scale(1.06)}}@keyframes hatch-crack-spread{to{stroke-dashoffset:0}}@keyframes hatch-shell-top{0%{opacity:1;transform:translateY(0)rotate(0)}40%{opacity:.9}to{opacity:0;transform:translate(-32%,-70%)rotate(-30deg)}}@keyframes hatch-shell-bottom{0%{opacity:1;transform:translateY(0)rotate(0)}40%{opacity:.9}to{opacity:0;transform:translate(23%,48%)rotate(22deg)}}@keyframes hatch-bloom{0%{opacity:0}38%{opacity:.82}56%{opacity:.82}to{opacity:.14}}@keyframes hatch-bloom-settle{0%{opacity:.14}to{opacity:0}}@keyframes hatch-outline-emerge{0%,28%{opacity:0;transform:scale(.5)translateY(25px)}62%{opacity:.85}to{opacity:.9;transform:scale(.97)translateY(0)}}@keyframes hatch-particle{0%{transform:rotate(var(--a))translateY(-30px)scale(.3);opacity:0}25%{opacity:.9}to{transform:rotate(var(--a))translateY(calc(var(--reach)*-1))rotate(30deg);opacity:.6}}@keyframes hatch-friend-enter{0%{opacity:0;transform:translateY(26px)scale(.92)}to{opacity:1;transform:translateY(0)scale(1)}}@keyframes hatch-spin{to{transform:rotate(360deg)}}@media (max-width:640px){.hatch-topbar{top:max(12px,env(safe-area-inset-top));right:max(12px,env(safe-area-inset-right));gap:4px}.hatch-scene{padding:76px 16px 104px}.hatch-moon{width:min(340px,84vw)}.hatch-egg{width:min(360px,54dvh,86vw)}.hatch-choices{gap:8px}.hatch-emerging-pair{gap:8px;padding:8px 0 40px}.hatch-emerging-solo{width:min(360px,52dvh,88vw)}.hatch-choice{border-radius:20px;padding:8px 0}.hatch-choice-art{width:100%}.hatch-selection-mark{margin-top:8px}.hatch-new-friend{width:min(360px,52dvh,88vw)}.hatch-footer{bottom:max(28px,env(safe-area-inset-bottom))}.hatch-confetti{transform:scale(.65)}}@media (max-height:600px) and (min-width:641px){.hatch-topbar{top:max(12px,env(safe-area-inset-top));right:16px}.hatch-scene{padding:34px 80px 88px}.hatch-moon{width:62dvh}.hatch-choices{gap:40px;width:min(540px,80%)}.hatch-emerging-pair{gap:40px;width:min(540px,80%);padding:0 0 24px}.hatch-emerging-pair .hatch-outline{justify-self:center;width:min(180px,46dvh)}.hatch-choice{padding:0}.hatch-choice-art{width:min(180px,46dvh)}.hatch-selection-mark{height:24px;margin-top:0}.hatch-footer{bottom:max(12px,env(safe-area-inset-bottom))}.hatch-primary{width:56px;height:56px}}@media (prefers-reduced-motion:reduce){.hatch-ceremony,.hatch-backdrop,.hatch-ceremony *,.hatch-ceremony:before{transition:none!important;animation:none!important}.hatch-ceremony .hatch-confetti,.hatch-effects,.hatch-flash,.hatch-emergence{display:none}}
