/* A letter from the KAWAii world: warm paper, a little ceremony, useful words. */
.birthday-view{background:radial-gradient(ellipse at 12% 24%,#ffe7c0,transparent 42%),radial-gradient(ellipse at 89% 75%,#e4e9d5,transparent 45%),#fbeded;border:1px solid #e9cdd0;padding:32px 35px 25px;isolation:isolate}
.birthday-view:before{content:"";position:absolute;inset:0;pointer-events:none;z-index:-1;opacity:.33;background-image:radial-gradient(#dcb6a3 .7px,transparent .7px);background-size:9px 9px}
.birthday-content{max-width:1030px;font-size:1rem}.birth-heading{max-width:650px}.birth-eyebrow{font-size:.75rem;letter-spacing:.18em;color:#ad5069}.birth-heading h2{font-size:clamp(2rem,3.1vw,3rem);line-height:1.4;letter-spacing:-.065em;color:#573b48;margin:10px auto 12px}.birth-heading>p:last-child{max-width:560px;color:#705962}.birth-gift-intro{display:grid;grid-template-columns:1fr 1fr;gap:28px;align-items:center;max-width:900px;margin:18px auto 0}.birth-gift-stage{position:relative;min-height:320px;isolation:isolate;display:flex;align-items:flex-end;justify-content:center;padding-bottom:34px}
.gift-orbit{position:absolute;inset:20px 35px 36px;border:1px dashed #ceab8c;border-radius:50%;transform:rotate(-17deg);z-index:-2}.gift-orbit:before{content:"";position:absolute;inset:16px;border-radius:50%;background:radial-gradient(circle,#fff9dcaa,#fff9dc00 70%)}.gift-floating-flower{position:absolute;color:#d290a1;line-height:1;animation:gift-drift 6s ease-in-out infinite}.gift-flower-one{font-size:45px;left:15%;top:22%;transform:rotate(-12deg)}.gift-flower-two{font-size:30px;right:15%;top:12%;color:#cc9b52;animation-delay:-2s}.gift-flower-three{font-size:42px;right:5%;top:60%;color:#adbd7c;animation-delay:-4s}.gift-mail-friend{position:relative;width:205px;height:205px;object-fit:contain;margin:0 0 9px 74px;filter:drop-shadow(0 12px 8px #6b52451f);animation:gift-companion 6s ease-in-out infinite;z-index:2}.gift-envelope{position:absolute;left:8%;bottom:56px;width:220px;height:145px;transform:rotate(-12deg);filter:drop-shadow(0 10px 7px #916f5d25);z-index:3}.gift-envelope-back{position:absolute;inset:0;background:#e9b5a9;border:1px solid #d59f8e;border-radius:10px}.gift-envelope-letter{position:absolute;left:12px;right:12px;bottom:20px;height:138px;background:#fffdf5;border:1px solid #e3cab0;border-radius:5px;z-index:1;transform:translateY(-20px);display:flex;flex-direction:column;align-items:center;padding-top:15px;gap:4px;box-shadow:0 -2px 8px #9463530b}.gift-envelope-letter>span{font-size:.625rem;letter-spacing:.2em;font-weight:800;color:#a16c70}.gift-envelope-letter>i{font-size:32px;line-height:1;font-style:normal;color:#bc5872}.gift-envelope-front{position:absolute;inset:0;z-index:2;background:linear-gradient(30deg,#f4c9b5 49.7%,transparent 50%) left/50% 100% no-repeat,linear-gradient(-30deg,#f7d6be 49.7%,transparent 50%) right/50% 100% no-repeat;clip-path:polygon(0 0,50% 55%,100% 0,100% 100%,0 100%);background-color:#f4c6b7;border:1px solid #dba58e;border-radius:6px}.gift-envelope-front:after{content:"";position:absolute;left:24px;right:24px;bottom:0;height:100%;border-top:1px solid #d4a795;transform:rotate(-29deg);transform-origin:center bottom}.gift-envelope-seal{position:absolute;left:calc(50% - 21px);top:56px;border-radius:50%;width:42px;height:42px;background:#c94766;color:#ffe9b8;font-size:30px;display:grid;place-items:center;z-index:4;box-shadow:0 3px 0 #a62f4e,0 0 0 3px #f7ceb7;transform:rotate(10deg)}.gift-stage-caption{position:absolute;bottom:0;left:0;right:0;color:#8e6768;font-size:.8125rem;line-height:1.6}
.birth-gift-intro .birth-form{width:100%;max-width:410px;margin:0;background:#fffaf5d9;border:1px solid #e9c9be;border-radius:25px;padding:24px 25px;box-shadow:0 6px 0 #c3927720;position:relative}.gift-form-kicker{color:#a57069;font-size:.6875rem;letter-spacing:.1em;font-weight:800;line-height:1.5}.gift-form-title{font-size:1.35rem;font-weight:800;line-height:1.6;color:#624149;margin:8px 0 19px}.birth-form label{font-size:.875rem!important}.birth-gift-intro .birth-form input[type=date]{border-color:#d7b7ae;background:#fffefb;min-height:54px}.birth-gift-intro .birth-submit{background:#c84b63;box-shadow:0 4px 0 #a52b4c;min-height:52px;font-size:.9375rem;gap:10px;line-height:1.5}.birth-gift-intro .birth-privacy{font-size:.75rem;line-height:1.85;color:#8a7274;margin-top:16px}.birth-error{margin-top:5px;min-height:16px}.birth-method{max-width:780px;margin-top:20px;padding-top:8px;color:#8a6d78}.birthday-content .birth-method summary{font-size:.875rem;min-height:44px;padding:9px 0}.birthday-content .birth-method p{font-size:.875rem;line-height:1.85}.birth-boundary-box{padding:14px;background:#fff0d6}.birth-boundary-box p{font-size:.875rem}.birth-boundary-box select{min-height:50px}
.is-opening .gift-envelope-letter{animation:letter-delivery .9s ease both}.is-opening .gift-envelope-seal{animation:seal-bloom .9s ease both}.is-opening .gift-envelope{animation:gift-wiggle .9s ease both}.is-opening .gift-mail-friend{animation:gift-wave .9s ease both}
.birthday-view .birth-result,.birthday-view .birth-result:not(:has(.birth-candidates)){display:block;max-width:1000px;margin:0 auto;padding:23px 28px 21px;background:#fffcf4;border:1px solid #e6ceb9;box-shadow:0 8px 0 #e6cdb855,0 20px 50px #8e645817;border-radius:18px;overflow:hidden}.birth-result:before{border-radius:12px;inset:8px}.birth-result:after{content:"";height:7px;position:absolute;top:0;left:0;right:0;background:repeating-linear-gradient(110deg,#cc7380 0 16px,#fff4e5 16px 30px,#83a49c 30px 46px,#fff4e5 46px 60px);opacity:.85}.birthday-view .birth-result .birth-date-summary{display:flex;justify-content:space-between;align-items:center;gap:8px 16px;margin:0 0 14px;padding-bottom:11px;font-size:.875rem;border-bottom:1px dashed #d9c6b6}.birth-date-summary .text-button{font-size:.875rem}.birth-keepsake{display:grid;grid-template-columns:minmax(250px,.9fr) 1.2fr;gap:25px;align-items:center;padding:6px 0 17px}.birth-keepsake-art{position:relative;min-height:223px;display:flex;align-items:center;justify-content:center;gap:0;isolation:isolate}.birth-keepsake-art:before{content:"";position:absolute;inset:13px 5% 20px;background:radial-gradient(ellipse,#f2e6cfbb,transparent 72%);border-radius:50%;z-index:-1}.birth-keepsake-art .birth-companion-image{position:relative;width:205px;height:205px;max-width:65%;object-fit:contain;filter:drop-shadow(0 10px 7px #6d4c4220);animation:gift-companion 7s ease-in-out infinite}.birth-motif{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;width:110px;min-height:156px;flex:none;background:linear-gradient(145deg,#fff8e8,#f3e5cc);border:1px solid #ceb99a;border-radius:56px 56px 12px 12px;color:var(--birth-accent);transform:rotate(-8deg);box-shadow:0 4px 0 #d0b99640;position:relative;z-index:2}.birth-motif:before{content:"";position:absolute;inset:7px;border:1px dashed #b6a48977;border-radius:48px 48px 7px 7px;pointer-events:none}.birth-motif>span{font-size:.6875rem;line-height:1.5;text-align:center;max-width:82px;color:#886b60;font-weight:800}.birth-motif>strong{font-size:3.5rem;line-height:1.05;font-weight:600}.birth-motif>b{font-size:.875rem;max-width:84px;text-align:center;line-height:1.3}.birth-keepsake-art .birth-emblem{top:15px;right:0;font-size:31px;color:#c67793}.birth-keepsake-copy{min-width:0}.birthday-view .birth-result .birth-result-kicker{font-size:.75rem;color:#a36272;font-weight:800;letter-spacing:.07em;margin:0 0 8px}.birthday-view .birth-result #birth-result-title{font-size:clamp(1.5rem,2.2vw,1.85rem);line-height:1.5;max-width:none;text-align:left;color:#5a3e4a;margin:0 0 12px;letter-spacing:-.04em}.birthday-view .birth-result .birth-lead{font-size:1rem;line-height:1.9;max-width:none;margin:0;text-align:left;color:#78616a}.birth-letter-signature{display:flex;align-items:center;justify-content:flex-end;gap:7px;font-size:.75rem;color:#9b7180;margin-top:11px;flex-wrap:wrap}.birth-letter-signature strong{font-size:.875rem;color:#85516a}.birth-letter-signature>span{font-size:25px;color:#c7788e;line-height:1}
.birth-story-reading{text-align:left;padding:18px 0 0;border-top:1px solid #e6d5c4}.birth-rhythm{display:flex;gap:17px;align-items:flex-start}.birth-rhythm>span{font-size:38px;color:var(--birth-accent);line-height:1.1;flex:none}.birth-rhythm>div{flex:1;min-width:0}.birthday-content .birth-rhythm .birth-axis-label{font-size:.75rem;font-weight:800;color:#9a6c70;letter-spacing:.05em;margin:0 0 4px}.birth-rhythm h4{font-size:1.14rem;color:#63505b;line-height:1.6;margin:0 0 7px}.birth-rhythm p:last-child{font-size:1rem;line-height:1.85;color:#7e6a70}.birth-pocket-hint{font-size:.8125rem;text-align:center;color:#9c7b7e;margin:17px 0 10px}.birth-letter-pockets{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;align-items:start}.birth-letter-pocket{border:1px solid #ddc4b6;border-radius:14px;background:#faeddb;box-shadow:0 3px 0 #ddc1a322;overflow:hidden;position:relative;transition:background .2s,box-shadow .2s}.birth-letter-pocket.pocket-1{background:#f7e5ea;border-color:#dec1ce}.birth-letter-pocket.pocket-2{background:#ebefdf;border-color:#cdd4b8}.birth-letter-pocket summary{display:flex;align-items:center;gap:10px;cursor:pointer;padding:14px 13px;min-height:65px;list-style:none;position:relative}.birth-letter-pocket summary::-webkit-details-marker{display:none}.birth-letter-pocket summary>span{font-size:25px;line-height:1;color:#be8354;flex:none}.pocket-1 summary>span{color:#ba6f8e}.pocket-2 summary>span{color:#8c9a59}.birth-letter-pocket strong{font-size:.875rem;line-height:1.6;color:#725a60;flex:1;font-weight:800}.birth-letter-pocket summary>i{font-style:normal;font-size:19px;line-height:1;color:#a17b76;transition:transform .2s;flex:none}.birth-letter-pocket[open]{background:#fffcf5}.birth-letter-pocket[open] summary>i{transform:rotate(45deg)}.birth-letter-pocket[open] summary{border-bottom:1px dashed #e4cdba}.birth-letter-pocket>p{font-size:1rem;line-height:1.85;padding:13px 15px 16px;color:#7b626a;animation:letter-note .35s ease both}.birth-letter-pocket summary:hover{background:#ffffff44}.birth-candidates{gap:22px}.birth-candidates .birth-story-reading{padding-top:0;border:0}.birth-candidates .birth-letter-pockets{grid-template-columns:1fr}.birth-candidates .birth-rhythm>span{display:none}.birth-candidates .birth-rhythm h4{font-size:1.05rem}.birth-boundary-note{font-size:.875rem;line-height:1.8}
.birthday-view .birth-result .birth-companion{display:flex;justify-content:center;align-items:center;gap:9px 14px;border:0;border-top:1px dashed #e2c8b9;margin:19px 0 0;padding:12px 0 0;text-align:center;font-size:.875rem}.birthday-view .birth-result .birth-companion>span{font-size:.8125rem;color:#8a6f78}.birthday-view .birth-result .birth-companion>strong{font-size:.9375rem}.birthday-view .birth-result .birth-companion .text-button{margin:0;min-height:44px;font-size:.875rem;color:#aa4e6e;padding-inline:10px;text-decoration:underline;text-underline-offset:4px}.birthday-view .birth-result .birth-result-actions{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:center;gap:10px 24px;margin-top:14px}.birthday-view .birth-result .birth-result-actions .button{font-size:.875rem;min-height:48px;max-width:100%;line-height:1.6;background:#bf4963;box-shadow:0 4px 0 #9a2948}.birthday-view .birth-result .birth-result-actions .text-button{font-size:.8125rem;min-height:44px}.birthday-view .birth-result>.birth-privacy{font-size:.75rem;line-height:1.8;margin:13px auto 0;max-width:600px}.birthday-view .birth-result.is-revealing{animation:gift-letter-open .75s cubic-bezier(.2,.65,.2,1) both}
.shrine-view{background:#d5bbc9}.shrine-copy{background:#fffaf2f5;border:1px solid #fff8e8;box-shadow:0 8px 0 #9c657532,0 24px 60px #44344926}.shrine-copy:before{content:"";position:absolute;inset:10px;border:1px dashed #d5b78f;border-radius:inherit;pointer-events:none}.shrine-copy>.eyebrow{position:relative;color:#986977;letter-spacing:.12em}.shrine-copy h1{color:#603745}.shrine-copy>.button{background:#c64d63;box-shadow:0 4px 0 #a42b49;position:relative;z-index:1}.shrine-body{color:#70525f}.shrine-box-preview{filter:drop-shadow(0 9px 4px #76534625)}
@keyframes gift-drift{0%,100%{translate:0 0;rotate:-7deg}50%{translate:0 -9px;rotate:9deg}}@keyframes gift-companion{0%,100%{transform:translateY(0) rotate(-2deg)}50%{transform:translateY(-6px) rotate(2deg)}}@keyframes letter-delivery{0%{transform:translateY(-20px)}45%{transform:translateY(-70px) rotate(4deg)}100%{transform:translateY(-95px) rotate(-3deg);opacity:0}}@keyframes seal-bloom{0%{transform:rotate(10deg) scale(1)}60%{transform:rotate(45deg) scale(1.2)}100%{transform:rotate(80deg) scale(.5);opacity:0}}@keyframes gift-wiggle{0%,100%{transform:rotate(-12deg)}25%{transform:rotate(-17deg)}50%{transform:rotate(-6deg)}75%{transform:rotate(-14deg)}}@keyframes gift-wave{0%,100%{transform:rotate(-2deg)}35%{transform:rotate(8deg) translateY(-10px)}70%{transform:rotate(-7deg) translateY(-5px)}}@keyframes gift-letter-open{0%{opacity:0;transform:translateY(22px) scale(.97);clip-path:inset(0 0 30% 0 round 18px)}100%{opacity:1;transform:none;clip-path:inset(0 round 18px)}}@keyframes letter-note{from{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:none}}
@media(max-width:850px){.birthday-view{padding:27px 24px 23px}.birth-gift-intro{gap:15px}.birth-gift-stage{min-height:290px}.gift-mail-friend{width:180px;height:180px;margin-left:56px}.gift-envelope{width:185px;height:125px;left:4%;bottom:48px}.gift-envelope-letter{height:122px}.gift-envelope-seal{top:49px}.gift-form-title{font-size:1.2rem}.birth-gift-intro .birth-form{padding:21px 20px}.gift-stage-caption{font-size:.75rem}.birth-keepsake{gap:20px;grid-template-columns:minmax(240px,.9fr) 1fr}.birth-keepsake-art .birth-companion-image{width:178px;height:178px}.birth-motif{width:96px;min-height:145px}.birth-keepsake-art{min-height:200px}.birthday-view .birth-result,.birthday-view .birth-result:not(:has(.birth-candidates)){padding:23px}.birth-letter-pockets{gap:8px}.birth-letter-pocket summary{gap:6px;padding:13px 10px}.birth-letter-pocket summary>span{font-size:22px}}
@media(max-width:650px){.birthday-view{padding:25px 16px 21px}.birth-heading h2{font-size:1.85rem;line-height:1.4;margin-top:9px}.birth-heading>p:last-child{font-size:1rem!important;line-height:1.85;max-width:410px}.birth-eyebrow{font-size:.6875rem}.birth-gift-intro{display:flex;flex-direction:column;gap:12px;margin-top:6px}.birth-gift-stage{min-height:230px;height:230px;width:100%;max-width:330px;padding-bottom:27px}.gift-mail-friend{width:167px;height:167px;margin-left:76px;margin-bottom:4px}.gift-envelope{width:175px;height:112px;left:8%;bottom:45px}.gift-envelope-letter{height:111px;bottom:15px;padding-top:10px}.gift-envelope-letter>span{font-size:.5625rem}.gift-envelope-letter>i{font-size:26px}.gift-envelope-seal{width:35px;height:35px;top:42px;left:calc(50% - 17px);font-size:25px}.gift-orbit{inset:10px 32px 33px}.gift-flower-one{font-size:32px;top:19%;left:15%}.gift-flower-two{font-size:22px;right:13%;top:14%}.gift-flower-three{font-size:28px;right:7%;top:62%}.gift-stage-caption{font-size:.75rem;bottom:0}.birth-gift-intro .birth-form{max-width:430px;width:100%;padding:22px 20px}.gift-form-title{font-size:1.25rem;margin-block:7px 18px}.birth-gift-intro .birth-submit{font-size:.875rem;min-height:52px;padding-inline:15px}.birth-method{margin-top:17px}.birthday-view .birth-result,.birthday-view .birth-result:not(:has(.birth-candidates)){padding:20px 18px;border-radius:18px}.birthday-view .birth-result .birth-date-summary{font-size:.8125rem;justify-content:center;flex-wrap:wrap;gap:1px 12px;margin-bottom:13px}.birth-date-summary .text-button{font-size:.8125rem!important}.birth-keepsake{display:flex;flex-direction:column;gap:9px;padding:0 0 16px}.birth-keepsake-art{min-height:180px;width:100%;max-width:340px;gap:7px}.birth-keepsake-art .birth-companion-image{width:185px;height:185px}.birth-motif{min-height:142px;width:97px}.birth-motif>strong{font-size:3rem}.birth-motif>span{font-size:.625rem}.birth-keepsake-art .birth-emblem{right:3%;top:14px;font-size:27px}.birth-keepsake-copy{text-align:center}.birthday-view .birth-result .birth-result-kicker{font-size:.75rem;text-align:center;margin-bottom:7px}.birthday-view .birth-result #birth-result-title{font-size:1.45rem;line-height:1.6;text-align:center;margin:0 auto 12px}.birthday-view .birth-result .birth-lead{font-size:1rem;text-align:left;line-height:1.9}.birth-letter-signature{margin-top:9px}.birth-rhythm{gap:9px}.birth-rhythm>span{font-size:29px}.birth-rhythm h4{font-size:1.05rem;margin-bottom:7px}.birth-rhythm p:last-child{font-size:1rem}.birth-pocket-hint{font-size:.75rem;margin-top:18px}.birth-letter-pockets{grid-template-columns:1fr;gap:9px}.birth-letter-pocket summary{padding:12px 14px;min-height:61px;gap:13px}.birth-letter-pocket summary>span{font-size:27px}.birth-letter-pocket strong{font-size:.875rem}.birth-letter-pocket>p{padding:13px 17px 16px}.birth-candidates{grid-template-columns:1fr;gap:25px}.birthday-view .birth-result .birth-companion{margin-top:20px;padding-top:12px;gap:2px 9px}.birthday-view .birth-result .birth-companion>span{font-size:.75rem;width:100%}.birthday-view .birth-result .birth-companion .text-button{width:auto;justify-content:center}.birthday-view .birth-result .birth-result-actions{flex-direction:column;gap:5px;margin-top:11px}.birthday-view .birth-result .birth-result-actions .button{width:100%;font-size:.875rem;padding-inline:16px;min-height:50px}.birthday-view .birth-result .birth-result-actions .text-button{min-height:44px}.birthday-view .birth-result>.birth-privacy{font-size:.75rem;margin-top:7px}.birth-rhythm .birth-axis-label{font-size:.75rem}.shrine-copy:before{inset:8px}}
@media(prefers-reduced-motion:reduce){.gift-floating-flower,.gift-mail-friend,.birth-keepsake-art .birth-companion-image,.is-opening .gift-envelope,.is-opening .gift-envelope-letter,.is-opening .gift-envelope-seal,.birthday-view .birth-result.is-revealing,.birth-letter-pocket>p{animation:none!important}}
body[data-motion=paused] .gift-floating-flower,body[data-motion=paused] .gift-mail-friend,body[data-motion=paused] .birth-keepsake-art .birth-companion-image{animation-play-state:paused!important}

/* A direct return to the same daily fortune alongside the replayable ceremony. */
.shrine-result-link{display:block;position:relative;z-index:1;margin:8px auto 0;min-height:44px;padding:8px 12px;font-size:.875rem;font-weight:700;line-height:1.5;color:#a54464;text-decoration:underline;text-underline-offset:4px;border-radius:16px}.shrine-result-link:hover{background:#fae6ec}
