@font-face{font-family:Birthday Script;src:url('assets/great-vibes.woff2') format('woff2');font-display:swap;font-style:normal;font-weight:400}
/* Portrait is the primary composition. Desktop keeps the same ritual. */
html{overscroll-behavior:none}body{touch-action:manipulation}.site-header{height:calc(72px + env(safe-area-inset-top,0px));padding:env(safe-area-inset-top,0px) 6% 0}.game-view{height:calc(100svh - 72px - env(safe-area-inset-top,0px));min-height:0;display:flex;flex-direction:column;gap:14px;padding:0 16px max(18px,env(safe-area-inset-bottom))}.game-copy{display:block;flex:0 0 auto;padding:12px 9px 8px}.game-heading{display:block}.game-heading h1{font-size:38px;line-height:1.25}.game-heading p{font-size:12px;line-height:1.8;letter-spacing:.04em;margin-top:12px;width:auto}.game-field{flex:1;min-height:300px;width:100%;overflow:hidden;touch-action:none}.game-field>svg{width:100%;height:auto;min-height:0;max-height:100%;overflow:visible}.game-field.assembled .puzzle-piece{pointer-events:none}.using-wand .game-field,.using-wand .game-field *{cursor:none!important}#ignite-progress{opacity:0;transition:opacity .4s;transform:rotate(-90deg);transform-origin:400px 154px;pointer-events:none}body[data-stage=ignite] #ignite-progress{opacity:.8}.game-field.complete #ignite-progress{opacity:0}.ignite-target{position:absolute;width:70px;height:100px;transform:translate(-50%,-50%);background:none;border:0;border-radius:40px;z-index:5}.ignite-target:focus-visible{outline:1px dashed var(--flame);outline-offset:1px}.puzzle-wick{pointer-events:none}
.fairy-wand{position:fixed;z-index:80;width:46px;height:150px;transform:translate(-50%,-63%);pointer-events:none;will-change:left,top}.fairy-wand svg{width:100%;height:100%;overflow:visible}.wand-rod{stroke:#d5def3;stroke-width:5;stroke-linecap:round}.wand-star{fill:var(--paper);stroke:var(--pink);stroke-width:2}.wand-fire{opacity:0;fill:#ffcc82;transform-origin:32px 28px}.burning .wand-fire{opacity:1;animation:wand-burn .24s ease-in-out infinite alternate}.burning .wand-star{fill:#ffe0a8;stroke:#ffbd77}.touch-wand{width:36px;height:120px}.wand-sparks{position:absolute;left:50%;top:16%;width:1px;height:1px}.wand-sparks i{position:absolute;width:3px;height:3px;background:#ffcf91;opacity:0;border-radius:50%}.burning .wand-sparks i{animation:wand-spark .65s linear infinite}.wand-sparks i:nth-child(1){--sx:-31px;--sy:-25px;animation-delay:-.1s}.wand-sparks i:nth-child(2){--sx:21px;--sy:-31px;animation-delay:-.3s}.wand-sparks i:nth-child(3){--sx:-21px;--sy:13px;animation-delay:-.45s}.wand-sparks i:nth-child(4){--sx:35px;--sy:9px;animation-delay:-.2s}.wand-sparks i:nth-child(5){--sx:-37px;--sy:-4px;animation-delay:-.55s}.wand-sparks i:nth-child(6){--sx:9px;--sy:-40px;animation-delay:-.05s}.wand-sparks i:nth-child(7){--sx:24px;--sy:24px;animation-delay:-.4s}.wand-sparks i:nth-child(8){--sx:-12px;--sy:31px;animation-delay:-.6s}
.birthday-view{min-height:calc(100svh - 72px - env(safe-area-inset-top,0px));height:calc(100svh - 72px - env(safe-area-inset-top,0px));display:flex;flex-direction:column;padding:25px 8% max(24px,env(safe-area-inset-bottom));overflow:hidden;isolation:isolate}.birthday-copy{flex:0 0 auto;padding:0;align-self:stretch;z-index:2}.birthday-copy h1{font-size:clamp(35px,10.1vw,49px);line-height:1.3}.birthday-actions{margin-top:25px;min-height:48px}.round-action{min-height:49px;min-width:150px;padding:0 21px;font-size:13px;gap:25px}.cake-stage{flex:1;display:flex;align-items:center;justify-content:center;width:120%;margin-left:0;margin-top:0;transform:none;min-height:0;z-index:1}.birthday-cake{width:100%;max-height:min(440px,100%);overflow:visible;flex:0 0 auto}.swipe-area{left:6%;top:5%;width:88%;height:85%}.swipe-instruction{font-size:12px;margin-top:21px}.cake-star{animation:ambient-star 4s ease-in-out infinite}.dot-one{animation:ambient-dot 3.6s ease-in-out infinite}.dot-two{animation:ambient-dot-two 4.4s -.8s ease-in-out infinite}.cake-orbit{opacity:.4}.birthday-watermark{display:none;position:absolute;left:50%;top:56%;transform:translate(-50%,-50%) rotate(-13deg);font-family:Birthday Script,cursive;font-style:italic;font-size:clamp(120px,32vw,360px);line-height:1;white-space:nowrap;opacity:.075;z-index:0;pointer-events:none;color:var(--paper)}.celebrated .birthday-watermark{display:block}.candle-wax path{transform:scaleY(0);transform-origin:400px 165px;transition:transform 3.2s cubic-bezier(.3,.1,.5,1)}.candle-wax ellipse{opacity:0;transform:scale(.3);transform-origin:400px 286px;transition:opacity 3s,transform 3.5s}.wax-formed .candle-wax path{transform:scaleY(1)}.wax-formed .candle-wax ellipse{opacity:.55;transform:scale(1)}.burnt-wick{transition:stroke-width 1s,stroke 1s,transform 1.1s;transform-origin:400px 165px;stroke-width:3}.candle-cap{transition:fill 1.6s}.spent .burnt-wick{stroke:#141b31;stroke-width:6;transform:rotate(-12deg)}.spent .candle-cap{fill:#7d8db6}.eye-icon .eye-outline{transform-origin:16px 12px;transition:transform .3s}.eye-icon .eye-pupil{transition:opacity .2s,transform .3s;transform-origin:16px 12px}.eye-icon .eye-closed{opacity:0;transition:opacity .2s}.round-action:hover .eye-icon{transform:none}.round-action:hover .eye-icon .eye-outline{transform:scaleY(.03)}.round-action:hover .eye-icon .eye-pupil{opacity:0;transform:scaleY(.1)}.round-action:hover .eye-icon .eye-closed{opacity:1}#next-icon:not(.eye-icon) .eye-outline{d:path('M4 12H27M21 6l6 6-6 6');transform:none}#next-icon:not(.eye-icon) .eye-pupil,#next-icon:not(.eye-icon) .eye-closed{display:none}
.typed-line{animation:none!important;opacity:1!important;transform:none!important;clip-path:none!important}.typing:after{content:'';display:inline-block;width:1px;height:.9em;background:currentColor;vertical-align:-.03em;margin-left:3px;animation:caret-blink 1s steps(2,end) infinite}#quote-view #quote-title>span{animation:none!important;opacity:1;transform:none;filter:none;display:block;min-height:1.55em}.quote-view{min-height:calc(100svh - 72px - env(safe-area-inset-top,0px));height:calc(100svh - 72px - env(safe-area-inset-top,0px));padding:7vh 8% 86px;display:flex;flex-direction:column;justify-content:center;gap:34px}.quote-decoration{width:82px;flex-shrink:0;margin:0}.quote-content #quote-title{font-size:clamp(28px,8.1vw,39px);line-height:1.55}.quote-content>.quote-credit{position:absolute;right:8%;bottom:max(40px,env(safe-area-inset-bottom));font-size:12px;font-family:'Birthday Sans',sans-serif;margin:0;animation:none!important}.quote-timer{display:none}
/* A single clock beat makes some windows sleep and a star appear. */
#intro-view .intro-city{opacity:1;animation:none}#intro-view .intro-city>i:before,#intro-view .intro-city>i:after{display:none}.night-window{position:absolute;width:6px;height:8px;background:#edead0;opacity:.85;box-shadow:0 2px 5px #d9e7ff18}#intro-view .intro-constellation{opacity:1;animation:none}#intro-view .intro-constellation>i{opacity:0}.intro-view[data-scene=legend] .will-sleep{animation:window-sleep .7s calc(.9s + var(--night-beat)*.8s) both}.intro-view[data-scene=legend] .intro-constellation>i{animation:night-star-appear .7s calc(.9s + var(--night-beat)*.8s) both}.intro-view[data-scene=chant] .night-window{opacity:.08}.intro-view[data-scene=chant] .intro-constellation>i{opacity:.8;animation:star-breathe 2s calc(var(--night-beat)*-.2s) ease-in-out infinite alternate}#intro-view[data-scene=chant] .intro-city{opacity:.3}#intro-view[data-scene=blur] .intro-city{opacity:.12}#intro-view[data-scene=rewind] .intro-city{opacity:.35;animation:city-unbuild 4.2s ease-in both}.intro-view[data-scene=rewind] .night-window{opacity:.25;animation:window-back .6s linear infinite}#intro-view[data-scene=wake] .intro-city,#intro-view[data-scene=date] .intro-city{opacity:0}#intro-view[data-scene=ready] .intro-city{bottom:31%}#intro-view[data-scene=ready] .intro-horizon{bottom:31%}.moon-orbit{--orbit-radius:min(50vh,38vw);--moon-size:128px;position:absolute;left:40%;top:65%;width:0;height:0;transform:rotate(55deg);transition:opacity 1s}#intro-view .moon-orbit .intro-moon{left:calc(var(--moon-size)*-.5);top:calc(var(--orbit-radius)*-1 - var(--moon-size)*.5);width:var(--moon-size);height:var(--moon-size);opacity:1;transform:rotate(-55deg);animation:none;transition:background 1s,opacity 1s}#intro-view .moon-orbit .intro-moon:after{width:96%;height:96%;left:23%;top:-12%}.intro-view[data-scene=legend] .moon-orbit{animation:moon-circular-rise 6.5s linear forwards}.intro-view[data-scene=legend] .moon-orbit .intro-moon{animation:moon-counter-turn 6.5s linear forwards!important}.intro-view[data-scene=chant] .moon-orbit,.intro-view[data-scene=blur] .moon-orbit,.intro-view[data-scene=rewind] .moon-orbit{transform:rotate(-8deg);opacity:.15}#intro-view[data-scene=chant] .moon-orbit .intro-moon,#intro-view[data-scene=blur] .moon-orbit .intro-moon,#intro-view[data-scene=rewind] .moon-orbit .intro-moon{transform:rotate(8deg)}.intro-view[data-scene=wake] .moon-orbit,.intro-view[data-scene=date] .moon-orbit{--orbit-radius:0px;left:50%;top:50%;transform:none;opacity:.5}#intro-view[data-scene=wake] .moon-orbit .intro-moon{background:var(--pale);transform:scale(2.6);animation:wake-circle 2s var(--ease) both}#intro-view[data-scene=date] .moon-orbit .intro-moon{background:none;border:1px solid var(--blue);transform:scale(3.2);opacity:.35}.intro-view[data-scene=chant] .intro-line.typed-line{font-size:clamp(16px,2vw,24px);line-height:1.85;color:var(--paper);letter-spacing:0}.intro-view[data-scene=chant] .spell-question{animation:spell-word 1s var(--ease) both!important;font-size:54px;line-height:1.5;color:var(--flame)}.bouncing-dots{display:flex;gap:10px;align-items:center;justify-content:center;min-height:32px}.bouncing-dots i{display:block;width:6px;height:6px;background:currentColor;border-radius:50%;animation:dot-hop 1.08s calc(var(--dot-index)*.1s) ease-in-out infinite}
/* A physical gift: ribbon releases, lid rises, box leaves, white mat emerges. */
.gift-overlay{padding:20px 14px;background:#00184e80}.gift-dialog{width:min(100%,460px);height:min(80svh,650px);background:none;color:var(--paper);box-shadow:none;overflow:visible;animation:gift-object-in .65s var(--ease) both}.gift-dialog .close-gift{top:0;right:2px;border:1px solid #f4f4ef55;border-radius:50%;background:#f4f4ef0a}.gift-wrap{position:absolute;inset:0;display:grid;place-items:center;z-index:3;perspective:1000px;gap:0}.present-button{position:relative;width:300px;height:370px;max-width:100%;padding:0;background:none;border:0;perspective:900px;touch-action:manipulation;color:var(--paper)}.present{position:absolute;left:calc(50% - 100px);top:calc(50% - 90px);width:200px;height:200px;transform-style:preserve-3d;transform:rotateX(-21deg) rotateY(-32deg);animation:gift-float 4s ease-in-out infinite}.gift-base,.present-lid{position:absolute;inset:0;transform-style:preserve-3d}.box-face{position:absolute;inset:0;width:200px;height:200px;backface-visibility:hidden;background:#507bf1}.box-front{transform:translateZ(100px);background:#456ff0}.box-right{transform:rotateY(90deg) translateZ(100px);background:#173f9e}.box-back{transform:rotateY(180deg) translateZ(100px);background:#1c3f8b}.box-left{transform:rotateY(-90deg) translateZ(100px);background:#7497f2}.box-bottom{transform:rotateX(-90deg) translateZ(100px);background:#163989}.present .rope{position:absolute;left:85px;top:0;width:30px;height:100%;background:var(--pink);display:block;transform-origin:top;transition:clip-path .65s,transform .65s,opacity .6s}.lid-front,.lid-right{position:absolute;left:-8px;top:-8px;width:216px;height:32px;background:#7da0fa;backface-visibility:hidden}.lid-front{transform:translateZ(108px)}.lid-right{transform:rotateY(90deg) translateZ(108px);background:#4167cd}.lid-top{position:absolute;left:-8px;top:-8px;width:216px;height:216px;background:#a2bdff;transform:rotateX(90deg) translateZ(108px);backface-visibility:hidden}.lid-top .rope,.lid-front .rope,.lid-right .rope{left:93px}.lid-top .rope-cross{left:0;top:93px;width:216px;height:30px}.present-bow{position:absolute;left:20px;top:-55px;width:160px;height:80px;transform:translateZ(110px);fill:none;stroke:var(--pink);stroke-width:10;stroke-linecap:round;overflow:visible}.present-bow path{stroke-dasharray:250;stroke-dashoffset:0;transition:stroke-dashoffset .65s ease-in,transform .7s ease-in}.loose-rope{position:absolute;width:28px;height:170px;left:86px;top:0;background:var(--pink);transform:translateZ(113px);opacity:0;pointer-events:none}.tap-ring{position:absolute;left:calc(50% - 39px);top:calc(50% + 8px);width:78px;height:78px;border:1px solid #ffffff80;border-radius:50%;background:#ffffff20;display:grid;place-items:center;animation:tap-hint-in .6s .6s both;box-shadow:0 8px 24px #06257125}.tap-ring>i{position:absolute;inset:-1px;border:1px solid #ffffff50;border-radius:50%;animation:tap-ripple 2s ease-out infinite}.tap-ring>i:nth-child(2){animation-delay:1s}.tap-ring svg{width:26px;height:26px;stroke:var(--paper);stroke-width:1.3;fill:none;transform:translate(1px,-2px)}.unwrapping .present{animation:none;transform:rotateX(-21deg) rotateY(-32deg)}.unwrapping .rope{clip-path:inset(0 0 100%);transform:translateY(80px);opacity:0}.unwrapping .present-bow path{stroke-dashoffset:250}.unwrapping .bow-left{transform:translateX(-35px)}.unwrapping .bow-right{transform:translateX(35px)}.unwrapping .loose-left{animation:rope-fall-left .9s .12s ease-in both}.unwrapping .loose-right{animation:rope-fall-right .9s .12s ease-in both}.unwrapping .present-lid{animation:lid-lift-away 1.4s .5s var(--ease) both}.unwrapping .gift-base{animation:box-slide-away 1.1s 1.05s ease-in both}.unwrapping .tap-ring{opacity:0;animation:none;transition:opacity .2s}.gift-photo{position:absolute;left:50%;top:50%;right:auto;bottom:auto;inset:auto;width:min(84vw,370px);height:auto;aspect-ratio:4/5;max-height:76svh;padding:24px 22px 58px;margin:0;background:#fff;color:var(--blue);box-shadow:12px 24px 55px #00144155;display:flex;align-items:center;justify-content:center;z-index:2;transform:translate(-50%,-50%) rotate(-2.5deg);animation:frame-from-box 1.2s var(--ease) both;border:1px solid #e6e8ee}.bead-grid{display:grid;width:100%;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;align-self:center;aspect-ratio:1}.bead-grid canvas{display:block;width:100%;height:auto;aspect-ratio:1;filter:blur(.7px);border-radius:1px}.gift-photo img{max-width:100%;max-height:100%;object-fit:contain}.gift-overlay[hidden]{display:none!important}
@keyframes wand-burn{from{transform:scale(.85,1.1) rotate(-7deg)}to{transform:scale(1.15,.9) rotate(7deg)}}@keyframes wand-spark{0%{opacity:1;transform:translate(0,0) scale(.9)}80%{opacity:.6}100%{opacity:0;transform:translate(var(--sx),var(--sy)) scale(.15)}}@keyframes caret-blink{0%,45%{opacity:1}46%,100%{opacity:0}}@keyframes ambient-star{0%,100%{translate:0 0;rotate:0deg;scale:.85;opacity:.75}50%{translate:18px -22px;rotate:85deg;scale:1.25;opacity:1}}@keyframes ambient-dot{0%,100%{translate:-5px 0;scale:.8;opacity:.6}50%{translate:14px -25px;scale:1.3;opacity:1}}@keyframes ambient-dot-two{0%,100%{translate:0 8px;scale:1.15}50%{translate:-22px -12px;scale:.7}}@keyframes window-sleep{from{opacity:.85}to{opacity:.07}}@keyframes night-star-appear{from{opacity:0;transform:scale(.2)}to{opacity:.9;transform:scale(1)}}@keyframes star-breathe{from{opacity:.4;scale:.8}to{opacity:1;scale:1.15}}@keyframes window-back{from{opacity:.08}to{opacity:.8}}@keyframes moon-circular-rise{from{transform:rotate(55deg)}to{transform:rotate(-8deg)}}@keyframes moon-counter-turn{from{transform:rotate(-55deg)}to{transform:rotate(8deg)}}@keyframes dot-hop{0%,20%,65%,100%{transform:translateY(0);opacity:.6}40%{transform:translateY(-11px);opacity:1}}@keyframes gift-object-in{from{opacity:0;transform:translateY(45px) scale(.9)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes gift-float{0%,100%{transform:translateY(0) rotateX(-21deg) rotateY(-32deg)}50%{transform:translateY(-9px) rotateX(-19deg) rotateY(-28deg)}}@keyframes tap-hint-in{from{opacity:0;scale:.7}to{opacity:1;scale:1}}@keyframes tap-ripple{from{transform:scale(1);opacity:.7}to{transform:scale(1.65);opacity:0}}@keyframes rope-fall-left{0%{opacity:1;transform:translateZ(114px) translate(0,0) rotate(0)}100%{opacity:0;transform:translateZ(114px) translate(-170px,130px) rotate(-58deg)}}@keyframes rope-fall-right{0%{opacity:1;transform:translateZ(114px) translate(0,0) rotate(0)}100%{opacity:0;transform:translateZ(114px) translate(170px,100px) rotate(64deg)}}@keyframes lid-lift-away{0%{opacity:1;transform:translate3d(0,0,0)}55%{opacity:1;transform:translate3d(-15px,-135px,55px) rotateZ(-8deg)}100%{opacity:0;transform:translate3d(-140px,-205px,65px) rotateZ(-28deg) rotateX(20deg)}}@keyframes box-slide-away{0%{opacity:1;transform:translate3d(0,0,0)}100%{opacity:0;transform:translate3d(160px,140px,-75px) rotateZ(20deg)}}@keyframes frame-from-box{from{opacity:0;transform:translate(-50%,calc(-50% + 145px)) scale(.58) rotate(-10deg)}to{opacity:1;transform:translate(-50%,-50%) scale(1) rotate(-2.5deg)}}
@media(max-width:600px){.intro-city>i:nth-child(n+7){display:none}.intro-city{gap:3%;left:-5%;right:-5%;height:29%}#intro-view[data-scene=ready] .intro-city{bottom:35%}#intro-view[data-scene=ready] .intro-horizon{bottom:35%}.night-window{width:5px;height:7px}.moon-orbit{--orbit-radius:min(70vw,43vh);--moon-size:88px;left:26%;top:54%}.intro-view[data-scene=wake] .moon-orbit,.intro-view[data-scene=date] .moon-orbit{--orbit-radius:0px}.intro-view[data-scene=legend] .intro-subtitles{left:8%;right:7%;bottom:15%}.intro-view[data-scene=chant] .intro-subtitles{bottom:14%;font-size:16px}.intro-view[data-scene=legend] .intro-line:last-child{max-width:none}}
@media(min-width:700px){.site-header{height:calc(88px + env(safe-area-inset-top,0px))}.game-view{height:calc(100svh - 88px - env(safe-area-inset-top,0px));display:grid;grid-template-columns:.75fr 1.25fr;gap:25px;padding:0 3% 3%}.game-copy{display:flex;align-items:center;padding:0 6%}.game-heading h1{font-size:clamp(40px,4.5vw,70px)}.game-field{height:100%}.birthday-view{height:calc(100svh - 88px - env(safe-area-inset-top,0px));min-height:0;display:grid;grid-template-columns:1fr 1.25fr;align-items:center;padding:0 6% 4%}.birthday-copy h1{font-size:clamp(45px,5.5vw,82px)}.cake-stage{height:100%;width:110%;margin-left:-5%;max-height:650px}.birthday-cake{max-height:100%}.birthday-watermark{font-size:clamp(200px,30vw,500px);top:58%}.quote-view{height:calc(100svh - 88px - env(safe-area-inset-top,0px));min-height:0;display:grid;grid-template-columns:.65fr 1.35fr;gap:8%;align-items:center;padding:5% 10% 8%}.quote-decoration{width:100%;max-width:270px}.quote-content #quote-title{font-size:clamp(35px,4vw,60px)}}
@media(max-height:700px) and (max-width:699px){.site-header{height:calc(60px + env(safe-area-inset-top,0px))}.game-view,.birthday-view,.quote-view{height:calc(100svh - 60px - env(safe-area-inset-top,0px));min-height:0}.game-copy{padding-top:4px;padding-bottom:2px}.game-heading h1{font-size:33px}.game-heading p{margin-top:8px}.game-view{gap:9px}.game-field{min-height:260px}.birthday-view{padding-top:15px;padding-bottom:10px}.birthday-copy h1{font-size:34px}.birthday-actions{margin-top:18px}.cake-stage{width:114%;margin-left:0}.birthday-cake{max-height:100%}.quote-view{padding-top:12px;gap:20px}.quote-decoration{width:60px}.quote-content #quote-title{font-size:29px}.gift-dialog{height:84svh}.present-button{transform:scale(.84)}.gift-photo{width:min(76vw,315px);padding:18px 18px 42px}}
@media(prefers-reduced-motion:reduce){.fairy-wand .wand-fire,.wand-sparks i,.cake-star,.cake-dot,.present,.tap-ring i,.bouncing-dots i,.will-sleep,.intro-constellation i{animation:none!important}.burning .wand-fire{opacity:1}.night-window{transition:none}.intro-view[data-scene=legend] .will-sleep{opacity:.2}.intro-view[data-scene=legend] .intro-constellation i{opacity:.8}.intro-view[data-scene=legend] .moon-orbit{animation:none;transform:rotate(-8deg)}#intro-view .moon-orbit .intro-moon{animation:none!important;transform:rotate(8deg)}.candle-wax path,.candle-wax ellipse{transition-duration:.1s}.gift-photo{animation:none}.unwrapping .present-lid,.unwrapping .gift-base{animation-duration:.01s;animation-delay:0s}.typing:after{animation:none;opacity:.7}}
.gift-photo{inset:auto;left:50%;top:50%}.puzzle-piece path.piece-hit{stroke:transparent!important;stroke-width:36;filter:none;pointer-events:stroke}.puzzle-piece:hover path.piece-hit,.puzzle-piece.selected path.piece-hit{stroke:transparent!important;stroke-width:36}
.game-field.assembled>svg{transform:scale(1.35);transform-origin:50% 55%;transition:transform .65s var(--ease)}body.using-wand,body.using-wand *{cursor:none!important}@media(prefers-reduced-motion:reduce){.game-field.assembled>svg{transition:none}}
