@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600&family=Fraunces:ital,opsz,wght@0,9..144,600;0,9..144,700;1,9..144,600;1,9..144,700&display=swap');
:root{--ink:#5b3a72;--plum:#7a4a8c;--rose:#a0648c;--hot:#e2508f;--cream:#fff8e9;--gold:#ffcf5c;--serif:'Fraunces',Georgia,serif;--sans:'Fredoka','Trebuchet MS',Arial,sans-serif;--title:82px}
*{box-sizing:border-box}
html,body{margin:0;width:100%;min-height:100%;overflow-x:hidden;background:#efd0e7}
body{color:var(--ink);font-family:var(--sans);font-size:15px}
button,a{-webkit-tap-highlight-color:transparent}
button{font:inherit;color:inherit;cursor:pointer}
a{color:inherit;text-decoration:none}
button:focus-visible,a:focus-visible{outline:3px solid #946092;outline-offset:7px}
button[hidden],a[hidden],[hidden]{display:none!important}
::selection{background:#eeb9d4;color:#593d6b}
.sprite{position:absolute;width:0;height:0;overflow:hidden}
.skip-link{position:fixed;left:15px;top:-90px;z-index:200;background:var(--cream);border-radius:20px;padding:12px 20px}
.skip-link:focus{top:15px}

/* the world */
.planet{position:relative;isolation:isolate;height:100svh;min-height:760px;overflow:hidden;background:#edc6e0}
.world-art{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 57%;z-index:-5;user-select:none}
.sky-wash{position:absolute;inset:0;background:linear-gradient(90deg,#fae8eea8,transparent 58%),linear-gradient(0deg,#e7b8db3d,transparent 18%);z-index:-4;pointer-events:none}
.night-wash{position:absolute;inset:0;background:#51396a;opacity:0;z-index:-3;transition:opacity 1.2s;pointer-events:none}
.nighttime .night-wash{opacity:.25}
.disco{position:absolute;inset:-60%;z-index:-3;opacity:0;pointer-events:none;transition:opacity .8s;background:radial-gradient(circle at 36% 38%,#ff5fa266 0,transparent 11%),radial-gradient(circle at 62% 34%,#5fd0ea5c 0,transparent 11%),radial-gradient(circle at 44% 64%,#ffd16666 0,transparent 11%),radial-gradient(circle at 66% 62%,#a77bff5c 0,transparent 11%),radial-gradient(circle at 50% 50%,#ff9fd033 0,transparent 9%)}
.party-time .disco{opacity:1;animation:disco-spin 3.5s linear infinite}
.cloud{position:absolute;background:radial-gradient(ellipse,#fff3ef90,transparent 70%);width:400px;height:100px;pointer-events:none;z-index:-2;filter:blur(8px);animation:cloud-drift 14s ease-in-out infinite alternate}
.cloud-one{left:4%;top:39%}
.cloud-two{right:-5%;bottom:3%;animation-delay:-6s;opacity:.8}

/* title */
.intro{position:absolute;top:9.5%;left:max(6%,calc((100% - 1180px)/2));z-index:3;pointer-events:none}
.whisper{font-family:var(--serif);font-style:italic;font-size:20px;margin:0 0 21px;color:#8f5a86;letter-spacing:-.3px}
.whisper>span{font-style:normal;margin-right:5px;color:#d29a2c;font-size:25px}
h1{font-family:var(--serif);font-weight:700;font-size:var(--title);letter-spacing:-.05em;line-height:.9;margin:0;color:#5b3a78;transform:rotate(-3deg);transform-origin:left center;text-shadow:0 3px 0 #fff8e9,0 -2px 0 #fff8e9,3px 0 0 #fff8e9,-3px 0 0 #fff8e9,2px 2px 0 #fff8e9,-2px 2px 0 #fff8e9,0 9px 16px #a0648c40}
h1>span{display:inline-block;color:var(--hot);animation:title-bob 3.4s ease-in-out infinite}
h1>i{color:#8a5cc7}
.intro-note{font-family:var(--serif);font-style:italic;font-size:18px;line-height:1.5;letter-spacing:-.2px;margin:24px 0 0;color:#8f5a86;transform:rotate(-3deg)}
.countdown{display:inline-flex;align-items:center;gap:8px;margin:16px 0 0;padding:8px 15px;border-radius:999px;background:#fff8e9eb;border:2px solid #f6c3dc;box-shadow:0 3px 0 #e8a6c866;font-family:var(--sans);font-weight:600;font-size:16px;color:#c2477f;transform:rotate(-3deg)}
.age-badge{position:absolute;left:calc(var(--title)*2.6);top:calc(var(--title)*.38);width:calc(var(--title)*1.12);aspect-ratio:1;border:0;padding:0;background:none;pointer-events:auto;touch-action:manipulation;rotate:12deg;filter:drop-shadow(0 6px 5px #a0648c44);animation:badge-wobble 3.2s ease-in-out infinite}
.age-badge>svg,.age-badge>span{position:absolute;inset:0;width:100%;height:100%}
.age-badge>span{display:flex;flex-direction:column;align-items:center;justify-content:center;padding-top:3%}
.age-badge small{font-family:var(--sans);font-weight:600;font-size:calc(var(--title)*.135);letter-spacing:.08em;text-transform:uppercase;color:#a8662a;line-height:1}
.age-badge b{font-family:var(--serif);font-weight:700;font-size:calc(var(--title)*.56);line-height:.9;color:var(--hot);text-shadow:0 2px 0 #fff8e9}
.age-badge:hover{animation-play-state:paused;scale:1.08}
.age-badge.boing{animation:badge-boing .8s ease-in-out}

/* the floating letter */
.letter-object{position:absolute;left:29%;top:56%;width:225px;height:190px;background:none;border:0;padding:0;z-index:6;transform:rotate(-10deg);animation:letter-float 5.5s ease-in-out infinite;touch-action:manipulation}
.letter-object:hover{animation-play-state:paused}
.letter-glow{position:absolute;inset:-35px -20px;background:radial-gradient(ellipse,#fff4c1b3,transparent 65%);pointer-events:none;animation:breathe 4s ease-in-out infinite}
.envelope{position:absolute;inset:22px 7px 28px;filter:drop-shadow(5px 10px 5px #98648b25);transition:transform .4s;perspective:700px}
.envelope-back{position:absolute;inset:0;background:#c5a9d7;border:1.5px solid #a17ba6;border-radius:6px}
.envelope-note{position:absolute;left:12%;top:0;width:76%;height:90%;background:#fff7e5;border:1px solid #d1b1c9;border-radius:5px;text-align:center;padding-top:13px;font-family:var(--serif);font-size:17px;line-height:1.1;transform:translateY(-7px);transition:transform .45s}
.envelope-note i{display:block;font-size:10px;margin-top:3px}
.envelope-note b{display:block;font-size:19px;color:#d2a966;margin-top:8px;font-weight:400}
.envelope-front{position:absolute;inset:0;border-radius:6px;background:linear-gradient(33deg,#efbbd1 49%,transparent 50%) 0 0/51% 100% no-repeat,linear-gradient(-33deg,#f7c7d9 49%,transparent 50%) 100% 0/51% 100% no-repeat;box-shadow:inset 0 -1.5px 0 #ba8caf}
.envelope-front:after{content:'';position:absolute;inset:0;border:1px solid #b78bad;border-top:0;border-radius:0 0 6px 6px;clip-path:polygon(0 0,50% 60%,100% 0,100% 100%,0 100%)}
.envelope-flap{position:absolute;left:0;right:0;top:0;height:69%;background:#e0b2d0;clip-path:polygon(0 0,100% 0,50% 88%);transform-origin:top center;transition:transform .5s;z-index:2}
.envelope-seal{position:absolute;left:calc(50% - 20px);top:43%;height:40px;width:40px;display:grid;place-items:center;border-radius:50%;color:#fff2f6;background:var(--hot);border:2px solid #fff3f7;font-size:21px;z-index:3;box-shadow:0 3px 0 #b8457a55;transition:opacity .2s;animation:seal-beat 1.6s ease-in-out infinite}
.letter-object:hover .envelope-note{transform:translateY(-21px) rotate(3deg)}
.letter-object:hover .envelope{transform:rotate(4deg)}
.letter-object.opening .envelope-flap{transform:rotateX(165deg)}
.letter-object.opening .envelope-note{transform:translateY(-75px) rotate(0)}
.letter-object.opening .envelope-seal{opacity:0}
.letter-tag{position:absolute;bottom:-2px;left:6px;right:0;font-family:var(--serif);font-style:italic;font-size:17px;white-space:nowrap;color:#8a5a86;text-shadow:0 1px 3px #fff8e9}
.letter-tag b{display:inline-block;font-size:27px;font-weight:400;transform:rotate(-25deg);margin-left:4px;vertical-align:-4px}
.open-me{position:absolute;right:-16px;top:8px;background:#fff2c7;border:2px solid #f0cf8f;color:#b04f7f;border-radius:8px;padding:7px 11px;font-family:var(--sans);font-weight:600;font-size:16px;transform:rotate(20deg);box-shadow:2px 3px 0 #ae80942b;pointer-events:none;animation:nudge 2.6s ease-in-out infinite}

/* stitch */
.stitch-home{position:absolute;right:10%;bottom:8%;width:min(36%,470px);aspect-ratio:862/901;z-index:4}
.stitch-shadow{position:absolute;left:10%;right:3%;bottom:0;height:12%;border-radius:50%;background:#a26c983f;filter:blur(11px);transform:rotate(4deg)}
.stitch{position:absolute;inset:0;background:none;border:0;padding:0;animation:stitch-breathe 4.5s ease-in-out infinite;transform-origin:50% 90%;touch-action:manipulation;filter:drop-shadow(0 11px 7px #8b568b24)}
.stitch img{width:100%;height:100%;object-fit:contain;user-select:none;-webkit-user-drag:none;pointer-events:none}
.stitch:hover{animation-play-state:paused;transform:rotate(-3deg) translateY(-4px)}
.stitch.pet-happy{animation:stitch-happy .8s ease-in-out}
.stitch.spin{animation:stitch-spin 1s cubic-bezier(.45,1.3,.5,1)}
.party-time .stitch{animation:stitch-dance .64s ease-in-out infinite}
.pet-label{position:absolute;left:37%;bottom:20%;white-space:nowrap;background:#fff8e9ee;border:1px solid #d9bad4;border-radius:18px;padding:7px 12px;font-family:var(--serif);font-style:italic;font-size:15px;opacity:0;transform:translateY(6px);transition:opacity .2s,transform .2s;pointer-events:none}
.stitch:hover .pet-label,.stitch:focus-visible .pet-label{opacity:1;transform:translateY(0)}
.pet-label span{margin-left:3px;color:#b36b94;font-size:17px}
.outfit svg{position:absolute;display:none;overflow:visible;pointer-events:none;filter:drop-shadow(0 4px 2px #5b3a7238)}
.look-hat{left:26%;top:4%;width:19%;rotate:-14deg}
.look-crown{left:22.5%;top:11.5%;width:25%;rotate:-7deg}
.look-flower{left:12%;top:18%;width:17%;rotate:-12deg}
.look-bow{left:34%;top:15%;width:26%;rotate:14deg}
[data-look=hat] .look-hat,[data-look=crown] .look-crown,[data-look=flower] .look-flower,[data-look=bow] .look-bow{display:block;animation:outfit-pop .5s cubic-bezier(.3,1.7,.5,1)}
.dress-up{position:absolute;right:-6%;top:56%;z-index:6;display:flex;flex-direction:column;align-items:center;gap:3px;border:0;background:none;padding:0;touch-action:manipulation;animation:dress-bob 3.6s ease-in-out infinite}
.dress-up svg{width:64px;height:64px;filter:drop-shadow(0 4px 0 #a0648c40);transition:transform .25s}
.dress-up span{font-weight:600;font-size:14px;color:var(--plum);background:#fff8e9f0;border-radius:999px;padding:3px 11px;box-shadow:0 2px 0 #d9b5cd;white-space:nowrap}
.dress-up:hover svg{transform:rotate(-12deg) scale(1.1)}
.dress-up:active svg{transform:scale(.92)}
.speech-bubble{position:absolute;right:-10%;top:12%;max-width:220px;background:#fff9e9;border:2px solid #e9c4dc;border-radius:48% 48% 48% 8px;padding:16px 20px;font-family:var(--serif);font-style:italic;font-size:19px;text-align:center;line-height:1.3;transform:translate(10px,12px) rotate(5deg) scale(.9);opacity:0;transition:opacity .25s,transform .3s;z-index:8;pointer-events:none;box-shadow:3px 5px 0 #b58aa12b}
.speech-bubble.visible{opacity:1;transform:translate(10px,-8px) rotate(5deg) scale(1)}
.drop-ring{position:absolute;left:-5%;right:-5%;top:15%;bottom:4%;border:3px dashed #fff0b6;border-radius:50%;background:#fff0b61a;box-shadow:0 0 40px #fff0b655;opacity:0;transition:opacity .2s;pointer-events:none;z-index:-1}
.stitch-home.ready-for-cake .drop-ring{opacity:1}
.star-friend{position:absolute;right:2%;top:1%;font-family:Georgia,serif;font-size:37px;color:#ffe19a;filter:drop-shadow(0 0 8px #fff4bd);animation:star-friend 4s ease-in-out infinite;pointer-events:none}

/* wish stars and the moon */
.wish-star{position:absolute;border:0;background:none;color:#fff2bd;text-shadow:0 0 18px #fff1bd99,0 2px 2px #b99a9a77;font-family:Georgia,serif;font-size:55px;line-height:1;padding:12px;z-index:7;min-width:48px;min-height:48px;transition:color .3s;animation:star-float 4.5s ease-in-out infinite;touch-action:manipulation}
.wish-star>span{display:block;transition:transform .3s}
.wish-star:hover>span{transform:rotate(25deg) scale(1.2)}
.wish-star small{display:block;position:absolute;font-family:var(--serif);font-style:italic;font-size:15px;white-space:nowrap;color:#9a6890;bottom:-13px;left:-6px;text-shadow:0 1px 3px #fff8e9;transform:rotate(7deg)}
.star-one{left:48%;top:19%;font-size:51px}
.star-two{left:58%;top:42%;font-size:42px;animation-delay:-2s}
.star-three{right:7%;top:40%;font-size:56px;animation-delay:-1s}
.wish-star.caught{color:#ffdd84;filter:drop-shadow(0 0 7px #fff6bf)}
.wish-star.catching>span{animation:star-catch .55s ease-in-out}
.moon-secret{position:absolute;right:19%;top:3%;width:140px;height:155px;background:radial-gradient(ellipse,#fff5b511,transparent 67%);border:none;border-radius:50%;z-index:3}
.moon-secret span{position:absolute;bottom:-10px;left:22px;white-space:nowrap;font-family:var(--serif);font-size:15px;font-style:italic;background:#fff5e9cc;border-radius:15px;padding:6px 12px;opacity:0;transition:opacity .2s;transform:rotate(-7deg)}
.moon-secret:hover span,.moon-secret:focus-visible span{opacity:1}

/* the cupcake */
.cupcake-home{position:absolute;left:53.5%;bottom:8%;width:115px;height:160px;z-index:7;transform:rotate(-8deg)}
.cupcake{position:absolute;left:6px;top:0;width:95px;height:100px;border:0;background:none;padding:0;touch-action:none;user-select:none;-webkit-user-select:none;cursor:grab;animation:cupcake-float 4s ease-in-out infinite}
.cupcake:active{cursor:grabbing}
.cupcake img{width:100%;height:100%;pointer-events:none;user-select:none;-webkit-user-drag:none;filter:drop-shadow(3px 5px 0 #a6799a26)}
.cupcake-spark{position:absolute;right:-5px;top:18px;font-size:25px;color:#fff0b3}
.cupcake-hint{position:absolute;left:-30px;right:-30px;bottom:4px;text-align:center;font-family:var(--serif);font-style:italic;font-size:16px;color:#8a5a86;white-space:nowrap;pointer-events:none;text-shadow:0 1px 3px #fff8e9}
.cupcake-hint>span{font-size:25px;vertical-align:-2px}
.cupcake-hint small{display:block;font-family:var(--sans);font-size:12px;font-style:normal;font-weight:500;margin-top:1px}
.cupcake.dragging{animation:none;opacity:.3}
.drag-cupcake{position:fixed;left:0;top:0;width:90px;height:94px;z-index:220;pointer-events:none;filter:drop-shadow(4px 8px 4px #93618544);transform:translate(-50%,-50%) rotate(-10deg)}
.feeding-cupcake{position:fixed;width:80px;height:83px;z-index:180;pointer-events:none;animation:feed-flight .75s cubic-bezier(.2,.5,.5,1) forwards}

/* the birthday cake */
.cake-object{position:absolute;left:21%;bottom:5%;width:140px;z-index:6;border:0;background:none;padding:0;touch-action:manipulation;transform:rotate(-4deg);animation:cake-float 4.8s ease-in-out infinite}
.cake-object svg{display:block;width:100%;height:auto;overflow:visible;filter:drop-shadow(3px 6px 0 #a0648c26);transition:transform .25s}
.cake-object:hover{animation-play-state:paused}
.cake-object:hover svg{transform:translateY(-5px) rotate(3deg)}
.cake-tag{display:block;margin-top:3px;font-family:var(--serif);font-style:italic;font-size:17px;color:#8a5a86;white-space:nowrap;text-shadow:0 1px 3px #fff8e9}
.mini-flame{transform-box:fill-box;transform-origin:50% 100%;animation:flicker .5s ease-in-out infinite alternate;transition:opacity .3s}
.mini-flame:nth-child(even){animation-delay:-.25s}
.cake-object.blown .mini-flame{opacity:0}

/* balloons */
.balloon-sky{position:absolute;inset:0;z-index:2;pointer-events:none;overflow:hidden}
.balloon{position:absolute;top:100%;left:var(--x);width:var(--w,60px);aspect-ratio:1/2;border:0;padding:0;background:none;pointer-events:auto;touch-action:manipulation;animation:balloon-rise var(--dur,13s) linear forwards}
.balloon:hover,.balloon:focus-visible{animation-play-state:paused}
.balloon svg{display:block;width:100%;height:100%;overflow:visible;transform-origin:50% 25%;animation:balloon-sway var(--sway,3s) ease-in-out infinite alternate;filter:drop-shadow(2px 5px 3px #a0648c33)}
.balloon.popping{pointer-events:none}
.balloon.popping svg{animation:balloon-pop .2s ease-out forwards}

/* little star pocket */
.wish-pocket{position:absolute;left:7%;bottom:16%;z-index:6;transform:rotate(-4deg);font-size:13px;color:#865a7e;text-shadow:0 1px 2px #fff8e966}
.pocket-stars{display:flex;gap:12px;font-family:Georgia;font-size:25px;line-height:1.1;justify-content:flex-start;margin-bottom:8px}
.pocket-stars i{font-style:normal;color:#b38aa5;text-shadow:0 1px 0 #fff0d3;transition:color .4s,transform .4s}
.pocket-stars i.found{color:#f7c94c;transform:rotate(15deg) scale(1.2);text-shadow:0 0 10px #fff8d2}
.wish-pocket>span{font-family:var(--serif);font-style:italic;font-size:16px;display:block;max-width:210px;line-height:1.35}
.wish-pocket>button{border:0;background:none;padding:0;margin-top:6px;font-family:var(--serif);font-size:15px;font-style:italic;text-decoration:underline;text-underline-offset:3px}

/* buttons along the bottom */
.scene-controls{position:fixed;right:32px;bottom:max(22px,env(safe-area-inset-bottom));display:flex;align-items:center;gap:10px;z-index:12}
.scene-controls button{display:flex;align-items:center;gap:8px;border:2px solid #f0cde0;background:#fff8ecf2;box-shadow:0 3px 0 #d9a9c5;border-radius:999px;min-height:48px;padding:10px 17px;font-family:var(--sans);font-size:15px;font-weight:500;color:#6a4380;transition:transform .2s,background .2s}
.scene-controls button:hover{transform:translateY(-2px);background:#fff}
.scene-controls svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linejoin:round;stroke-linecap:round}
.sound-control svg{opacity:.75}
.sound-control[aria-pressed=true] svg{color:var(--hot);opacity:1}
.sound-control[aria-pressed=false] svg{stroke-dasharray:3 1}
.stickers-control svg{width:21px;height:21px;fill:#ffd166;stroke:#c8912e;stroke-width:1.5}
.stickers-control b{font-weight:600;color:var(--hot)}
.stickers-control.bump{animation:bump .7s cubic-bezier(.3,1.6,.5,1)}
.stickers-control.complete{background:#fff3c4}
.scene-controls .details-control{background:var(--hot);border-color:#f7a3c9;color:#fff8ec;box-shadow:0 3px 0 #a53a6c;font-weight:600}
.scene-controls .details-control:hover{background:#d4437f}
.details-control>span{font-size:18px;line-height:1;margin-left:2px}

/* effects */
.effects,.dialog-effects{position:fixed;inset:0;pointer-events:none;overflow:hidden}
.effects{z-index:150;contain:strict;transform:translateZ(0)}
.dialog-effects{z-index:5}
.magic-piece{position:fixed;pointer-events:none;animation:magic-fly var(--duration,1.7s) ease-out forwards;color:var(--color,#fff0b3);font-family:Georgia,serif;font-size:var(--size,16px);text-shadow:0 0 8px #fff6cc55}
.magic-piece.paper{width:8px;height:12px;background:var(--color);border-radius:2px}
.magic-piece.number{font-family:var(--serif);font-weight:700;text-shadow:0 2px 0 #fff8e9}
.confetti-drop{position:fixed;top:-20px;width:9px;height:14px;border-radius:2px;background:var(--color);pointer-events:none;animation:confetti-fall var(--duration,3s) linear forwards}
.cursor-spark{position:fixed;font-family:Georgia,serif;font-size:13px;color:#ffe9a7;pointer-events:none;animation:cursor-fade .8s ease-out forwards}
.shooting-star{position:fixed;width:5px;height:5px;border-radius:50%;background:#fff5c2;box-shadow:0 0 15px 3px #fff0b766;animation:shoot 1.8s ease-in-out forwards}
.shooting-star:before{content:'';position:absolute;right:2px;top:2px;width:100px;height:2px;background:linear-gradient(90deg,transparent,#fff6be);transform:rotate(-33deg);transform-origin:right}
.sticker-fly{position:fixed;width:130px;height:130px;z-index:230;pointer-events:none;filter:drop-shadow(0 8px 10px #5b3a7244)}
.wish-toast{position:fixed;left:50%;bottom:96px;transform:translate(-50%,14px) rotate(-2deg);background:#fff8e9f7;border:2px solid #ecc6dc;border-radius:40% 40% 40% 8px;padding:16px 26px;text-align:center;font-family:var(--serif);font-size:19px;font-style:italic;box-shadow:3px 5px 0 #ba8ca02b;max-width:calc(100% - 36px);width:max-content;z-index:120;opacity:0;transition:opacity .25s,transform .3s;pointer-events:none}
.wish-toast.visible{opacity:1;transform:translate(-50%,0) rotate(-2deg)}

/* paper dialogs */
.paper-dialog{position:fixed;border:2px solid #e3c2d6;border-radius:26px;background:#fff8e9;color:var(--ink);box-shadow:7px 10px 0 #ad819d33,0 20px 100px #72456e33;padding:30px 38px;text-align:center;width:min(470px,calc(100% - 32px));max-height:calc(100dvh - 32px);overflow-y:auto}
.paper-dialog[open]{animation:paper-arrive .5s cubic-bezier(.2,.8,.3,1.15)}
.paper-dialog::backdrop{background:#6e4c8180;backdrop-filter:blur(7px)}
.dialog-close{position:absolute;top:12px;right:13px;z-index:6;width:40px;height:40px;border:2px solid #ecd3e2;background:#f7e6ef;border-radius:50%;font-size:26px;line-height:1;padding:0 0 3px;color:#96698f}
.tiny-letter{display:inline-grid;place-items:center;width:57px;height:47px;margin:0 auto 6px;font-size:37px;color:#b17fa5;transform:rotate(-8deg)}
.letter-eyebrow{font-family:var(--sans);font-weight:600;font-size:12px;text-transform:uppercase;letter-spacing:1.4px;line-height:1.6;color:#b0789f;margin:6px 0 10px}
h2{font-family:var(--serif);font-size:38px;line-height:1.05;letter-spacing:-1.4px;font-weight:700;margin:10px 0 18px;color:#5b3a78}
h2 i{color:var(--hot)}
.letter-copy{font-size:17px;color:#7d5a83;line-height:1.65;margin:14px 0}
.letter-copy strong{color:#5b3a78}
.age-word{display:inline-grid;place-items:center;min-width:1.7em;height:1.7em;margin:0 2px;border-radius:50%;background:var(--gold);color:#a8452f;font-family:var(--serif);font-weight:700;transform:rotate(-8deg)}
.signature{font-family:var(--serif);font-style:italic;font-size:29px;color:#b0558a;margin:16px 0 18px;transform:rotate(-4deg)}
.signature small{font-size:17px}
.party-facts{display:grid;grid-template-columns:1fr 1fr;gap:18px 12px;padding:20px 3px 14px;border-top:2px dashed #ecd3e2;border-bottom:2px dashed #ecd3e2;margin-top:15px}
.party-facts>div{display:flex;flex-direction:column;gap:6px}
.party-facts span{font-weight:600;text-transform:uppercase;font-size:11px;letter-spacing:1.2px;color:#b0789f}
.party-facts strong{font-family:var(--serif);font-size:21px;font-weight:600;font-style:italic;color:#7d4f87}
.party-facts .place-fact{grid-column:1/-1;gap:4px}
.party-facts small{font-size:14px;color:#a2819b}
.place-fact a{text-decoration:underline;text-underline-offset:3px}
.paper-dialog .countdown{transform:none;margin:16px 0 0}
.rsvp-note{font-size:14px;line-height:1.6;color:#a2819b;margin:14px 0}
.paper-button{display:inline-flex;justify-content:center;align-items:center;gap:10px;border:2px solid #9e709f;background:#a77aa9;color:#fff9ea;border-radius:999px;padding:12px 20px;min-height:48px;margin:4px 3px 0;font-family:var(--sans);font-size:16px;font-weight:500;box-shadow:0 3px 0 #7d5582;transition:transform .2s}
.paper-button:hover{transform:rotate(-2deg) translateY(-2px);background:#96699d}
.paper-button.soft{background:#fff;color:var(--plum);border-color:#e6c6da;box-shadow:0 3px 0 #e6c6da}
.paper-button.soft:hover{background:#fff4fa}
.paper-button.party-button{background:var(--hot);border-color:#f7a3c9;box-shadow:0 3px 0 #a53a6c}
.paper-button.party-button:hover{background:#d4437f}
.paper-button svg{width:19px;height:19px;flex:none;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.art-credit{display:block;font-size:11px;color:#b596aa;margin-top:18px}
.art-credit:hover{text-decoration:underline}
.happy-star{width:130px;height:130px;margin:5px auto 12px;filter:drop-shadow(3px 5px 0 #d7b1b52b);animation:happy-star 4s ease-in-out infinite}
.happy-star svg{width:100%;height:100%}
.wish-dialog h2{font-size:40px}
.wish-poem{font-family:var(--serif);font-size:22px;line-height:1.55;color:#8f6492;font-style:italic;margin:14px 0}
.wish-postscript{font-size:15px;line-height:1.7;color:#a2819b;margin:16px 0 20px}

/* the cake dialog */
.cake-dialog{width:min(480px,calc(100% - 32px))}
.cake-dialog h2{margin-bottom:10px}
.cake-status{font-size:18px;font-weight:500;line-height:1.4;color:#8a5a86;min-height:2.8em;margin:0 auto 4px;max-width:330px}
.cake-status.done{color:var(--hot);font-weight:600}
.cake-stage{position:relative;width:min(330px,100%);margin:18px auto 0}
.cake-art{display:block;width:100%;height:auto;overflow:visible}
.candles{position:absolute;left:11%;right:11%;bottom:60%;z-index:1;display:flex;justify-content:space-between;align-items:flex-end}
.candle{position:relative;width:34px;height:88px;border:0;background:none;padding:0;touch-action:manipulation;--c:#ff7eb6}
.candle:nth-child(5n+2){--c:#7fc8e8}.candle:nth-child(5n+3){--c:#b99cff}.candle:nth-child(5n+4){--c:#ffc94d}.candle:nth-child(5n+5){--c:#7fd4b8}
.candle .stick{position:absolute;left:50%;bottom:0;width:12px;height:52px;margin-left:-6px;border-radius:4px 4px 2px 2px;background:repeating-linear-gradient(-50deg,#fff8e9 0 5px,var(--c) 5px 10px);box-shadow:inset -3px 0 0 #0000001a}
.candle .wick{position:absolute;left:50%;bottom:52px;width:2px;height:7px;margin-left:-1px;border-radius:1px;background:#5b3a52}
.candle .flame{position:absolute;left:50%;bottom:57px;width:17px;height:27px;margin-left:-8.5px;border-radius:50% 50% 50% 50%/62% 62% 38% 38%;background:radial-gradient(ellipse at 50% 72%,#fff 0 18%,#fff2a8 34%,#ffb347 70%,#ff7a4d 100%);box-shadow:0 0 14px 4px #ffd27a88,0 0 30px 10px #ffcf5c44;transform-origin:50% 90%;animation:flicker .45s ease-in-out infinite alternate;transition:opacity .25s,scale .25s,rotate .15s}
.candle:nth-child(even) .flame{animation-delay:-.22s}
.cake-stage.windy .candle .flame{rotate:-18deg}
.candle.out{cursor:default}
.candle.out .flame{opacity:0;scale:.2}
.candle.out::after{content:'';position:absolute;left:50%;bottom:60px;width:12px;height:12px;margin-left:-6px;border-radius:50%;background:#cdbfd2;opacity:0;animation:smoke 1.3s ease-out}
.cake-actions{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:10px;margin-top:16px}
.breath-meter{display:block;width:190px;height:12px;border-radius:99px;background:#f1e1ec;overflow:hidden;box-shadow:inset 0 1px 2px #a0648c33}
.breath-meter i{display:block;height:100%;width:var(--level,0%);border-radius:99px;background:linear-gradient(90deg,#7fd4e8,#ff7eb6);transition:width .08s}
.mic-note{font-size:12px;color:#a2819b;margin:10px 0 0}

/* the sticker book */
.sticker-dialog{width:min(580px,calc(100% - 32px))}
.sticker-progress{font-size:17px;font-weight:500;color:#8a5a86;margin:-4px 0 20px}
.sticker-grid{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(8,1fr);gap:18px 8px}
.sticker-grid li{grid-column:span 2;display:flex;flex-direction:column;align-items:center;gap:3px}
.sticker-grid li:nth-child(5){grid-column:2/span 2}
.sticker-art{position:relative;width:78px;height:78px;margin-bottom:4px}
.sticker-art svg{width:100%;height:100%;filter:grayscale(1) opacity(.3);transition:filter .4s,transform .4s}
.sticker-art::after{content:'?';position:absolute;inset:0;display:grid;place-items:center;font-family:var(--serif);font-weight:700;font-size:34px;color:#b48aab}
.sticker-grid li.earned .sticker-art svg{filter:drop-shadow(0 4px 0 #a0648c33);transform:rotate(-7deg)}
.sticker-grid li.earned:nth-child(even) .sticker-art svg{transform:rotate(7deg)}
.sticker-grid li.earned .sticker-art::after{content:none}
.sticker-grid b{font-weight:600;font-size:15px;line-height:1.2;color:#6a4380}
.sticker-grid small{font-size:13px;line-height:1.3;color:#a2819b}
.sticker-grid li.earned b{color:var(--hot)}
.sticker-grid li.earned small{color:#5aa88a;font-weight:500}
.sticker-secret{font-family:var(--serif);font-style:italic;font-size:16px;color:#9b7395;margin:20px 0 12px}

/* all seven stickers */
.superstar-medal{position:relative;width:150px;height:150px;margin:2px auto 4px;animation:happy-star 4s ease-in-out infinite;filter:drop-shadow(0 6px 4px #a0648c33)}
.superstar-medal svg{position:absolute;left:0;top:0;width:100%;height:100%}
.superstar-medal .medal-star{left:21%;top:21%;width:58%;height:58%}

@keyframes cloud-drift{to{transform:translateX(70px) scale(1.1)}}
@keyframes breathe{50%{opacity:.65;transform:scale(1.06)}}
@keyframes letter-float{0%,100%{transform:translateY(0) rotate(-10deg)}50%{transform:translateY(-12px) rotate(-6deg)}}
@keyframes seal-beat{0%,60%,100%{transform:scale(1)}30%{transform:scale(1.15)}}
@keyframes nudge{0%,70%,100%{transform:rotate(20deg)}78%{transform:rotate(12deg) scale(1.08)}86%{transform:rotate(26deg) scale(1.08)}94%{transform:rotate(18deg)}}
@keyframes title-bob{50%{transform:translateY(-5px) rotate(-1.5deg)}}
@keyframes badge-wobble{0%,100%{transform:rotate(-6deg)}50%{transform:rotate(6deg) translateY(-4px)}}
@keyframes badge-boing{30%{transform:scale(1.3) rotate(-20deg)}60%{transform:scale(.9) rotate(15deg)}100%{transform:scale(1)}}
@keyframes stitch-breathe{0%,100%{transform:rotate(2deg) scale(1)}50%{transform:rotate(.5deg) scale(1.018)}}
@keyframes stitch-happy{0%,100%{transform:rotate(2deg)}22%{transform:translateY(-18px) rotate(-5deg) scale(1.025)}50%{transform:translateY(-4px) rotate(5deg)}72%{transform:translateY(-10px) rotate(-3deg)}}
@keyframes stitch-spin{0%{transform:rotate(2deg)}45%{transform:translateY(-34px) rotate(-190deg) scale(1.04)}100%{transform:rotate(-358deg)}}
@keyframes stitch-dance{0%,100%{transform:rotate(0) translateY(0) scale(1)}25%{transform:rotate(-9deg) translateY(-18px)}50%{transform:rotate(0) translateY(0) scale(1.04,.96)}75%{transform:rotate(9deg) translateY(-18px)}}
@keyframes outfit-pop{0%{scale:0;opacity:0}100%{scale:1;opacity:1}}
@keyframes dress-bob{0%,100%{transform:translateY(0)}50%{transform:translateY(-6px)}}
@keyframes star-float{50%{transform:translateY(-8px) rotate(7deg)}}
@keyframes star-catch{40%{transform:rotate(160deg) scale(1.45)}100%{transform:rotate(360deg) scale(1)}}
@keyframes cupcake-float{50%{transform:translateY(-7px) rotate(5deg)}}
@keyframes cake-float{0%,100%{transform:rotate(-4deg) translateY(0)}50%{transform:rotate(-2deg) translateY(-6px)}}
@keyframes flicker{from{transform:scale(1,1) rotate(-3deg)}to{transform:scale(.9,1.1) rotate(3deg)}}
@keyframes smoke{0%{opacity:.85;transform:translateY(0) scale(.6)}100%{opacity:0;transform:translateY(-46px) scale(2.4)}}
@keyframes balloon-rise{to{transform:translateY(calc(-1 * var(--rise,1100px)))}}
@keyframes balloon-sway{from{transform:rotate(-7deg) translateX(-8px)}to{transform:rotate(7deg) translateX(8px)}}
@keyframes balloon-pop{to{transform:scale(1.7);opacity:0}}
@keyframes disco-spin{to{transform:rotate(360deg)}}
@keyframes bump{40%{transform:scale(1.25) rotate(-6deg)}}
@keyframes magic-fly{from{opacity:1;transform:translate(0,0) rotate(0) scale(.6)}20%{opacity:1;transform:translate(calc(var(--dx)*.2),calc(var(--dy)*.2)) rotate(25deg) scale(1)}to{opacity:0;transform:translate(var(--dx),var(--dy)) rotate(var(--spin,160deg)) scale(.6)}}
@keyframes confetti-fall{to{transform:translate(var(--dx,0),110vh) rotate(var(--spin,540deg))}}
@keyframes cursor-fade{to{opacity:0;transform:translateY(20px) rotate(80deg) scale(.2)}}
@keyframes shoot{0%{opacity:0;transform:translate(0,0)}12%{opacity:1}100%{opacity:0;transform:translate(420px,280px)}}
@keyframes paper-arrive{from{opacity:0;transform:translateY(40px) rotate(-7deg) scale(.9)}to{opacity:1;transform:none}}
@keyframes happy-star{0%,100%{transform:rotate(-8deg) translateY(0)}50%{transform:rotate(8deg) translateY(-8px)}}
@keyframes star-friend{50%{transform:translate(-13px,-12px) rotate(35deg)}}
@keyframes feed-flight{to{transform:translate(var(--fly-x),var(--fly-y)) scale(.05) rotate(30deg);opacity:0}}

@media(min-width:1500px){
.intro{top:12%;--title:96px}
.letter-object{left:30%;top:57%}
.stitch-home{right:13%;bottom:10%}
.cupcake-home{left:58%;bottom:10%}
.wish-pocket{left:12%;bottom:17%}
.cake-object{left:24%;bottom:6%}
}
@media(max-width:1100px){
.intro{left:6%;top:9%;--title:72px}
.whisper{font-size:18px}
.intro-note{font-size:16px}
.letter-object{left:28%;top:54%;width:200px;height:175px}
.stitch-home{right:4%;width:42%;bottom:10%}
.star-one{left:48%;top:17%}
.star-two{left:51%;top:38%}
.star-three{right:4%;top:39%}
.moon-secret{right:17%;width:110px;height:130px}
.wish-pocket{bottom:19%}
.cupcake-home{left:54%;bottom:10%}
.cake-object{left:7%;bottom:4%;width:124px}
.speech-bubble{font-size:17px;right:-2%;max-width:200px;top:auto;bottom:96%}
.dress-up{right:-2%}
}
@media(min-width:761px) and (max-width:1100px) and (orientation:portrait){
.letter-object{left:26%;top:47%}
.cupcake-home{left:37%;bottom:12%}
.wish-pocket{bottom:21%}
.cake-object{bottom:5%}
}
@media(max-width:760px){
.planet{min-height:780px}
.world-art{object-position:65% center}
.intro{left:7%;top:8%;--title:67px}
h1{letter-spacing:-3.2px}
.whisper{font-size:17px;margin-bottom:20px}
.intro-note{font-size:15px;margin-top:20px}
.stitch-home{right:0;width:48%;bottom:14%}
.letter-object{left:22%;top:52%;width:190px;height:165px}
.star-one{left:54%;top:21%;font-size:43px}
.star-two{left:50%;top:43%;font-size:35px}
.star-three{right:4%;top:45%;font-size:46px}
.wish-pocket{left:7%;bottom:21%;max-width:170px}
.wish-pocket>span{font-size:15px}
.cupcake-home{left:50%;bottom:10%;transform:rotate(-8deg) scale(.9)}
.cake-object{left:7%;bottom:5%;width:112px}
.cake-tag{font-size:15px}
.scene-controls{right:22px}
.speech-bubble{right:3%;max-width:190px;font-size:16px;padding:13px 17px}
.moon-secret{right:9%;top:2%;width:110px;height:120px}
.dress-up{right:2%;top:60%}
.dress-up svg{width:54px;height:54px}
}
@media(max-width:560px){
.planet{min-height:770px;height:100svh}
.world-art{object-position:71% center}
.sky-wash{background:linear-gradient(180deg,#fae8eeab,transparent 54%),linear-gradient(90deg,#fae8ee88,transparent 85%)}
.intro{left:8%;top:6.5%;--title:59px}
.whisper{font-size:16px;margin:0 0 16px}
h1{line-height:.91;letter-spacing:-2.8px;text-shadow:0 2px 0 #fff8e9,0 -2px 0 #fff8e9,2px 0 0 #fff8e9,-2px 0 0 #fff8e9,0 7px 12px #a0648c40}
.intro-note{font-size:14px;margin-top:15px}
.countdown{font-size:14px;padding:6px 12px;margin-top:12px}
.letter-object{left:6%;top:41%;width:170px;height:145px;transform:rotate(-10deg)}
.envelope{inset:20px 7px 22px}
.envelope-note{font-size:13px;padding-top:10px}
.envelope-note i{font-size:8px}
.envelope-note b{font-size:15px;margin-top:6px}
.envelope-seal{width:30px;height:30px;left:calc(50% - 15px);font-size:16px}
.letter-tag{font-size:14px;bottom:-6px;left:0}
.letter-tag b{font-size:22px;margin-left:0}
.open-me{font-size:13px;padding:5px 8px;top:6px;right:-10px}
.stitch-home{width:66%;right:2%;bottom:15.5%;max-width:330px}
.speech-bubble{right:6%;font-size:15px;max-width:180px;padding:11px 15px}
.speech-bubble,.speech-bubble.visible{translate:-10px 0}
.pet-label{font-size:13px;left:29%;bottom:18%;padding:6px 10px}
.dress-up{right:-1%;top:57%}
.dress-up svg{width:48px;height:48px}
.dress-up span{font-size:12px;padding:2px 8px}
.wish-star small{font-size:13px;bottom:-9px;left:-12px}
.star-one{left:auto;right:11%;top:22%;font-size:36px}
.star-two{left:50%;top:39%;font-size:32px}
.star-three{right:4%;top:33%;font-size:39px}
.moon-secret{right:5%;top:3%;width:88px;height:95px}
.moon-secret span{font-size:12px;left:5px;bottom:0}
.cupcake-home{left:5%;bottom:15%;width:96px;height:132px;transform:rotate(-8deg)}
.cupcake{width:78px;height:82px;left:9px}
.cupcake-spark{font-size:20px}
.cupcake-hint{font-size:13px;left:-14px;right:-26px;bottom:4px}
.cupcake-hint>span{font-size:19px}
.cupcake-hint small{font-size:10px}
.cake-object{left:4%;bottom:2.5%;width:92px}
.cake-tag{font-size:13px;margin-top:1px;white-space:normal;line-height:1.1;width:88px}
.wish-pocket{left:auto;right:6%;bottom:9.5%;max-width:170px;text-align:center;transform:rotate(3deg)}
.wish-pocket .pocket-stars{justify-content:center;gap:9px;font-size:21px;margin-bottom:4px}
.wish-pocket>span{max-width:170px;font-size:13px}
.wish-pocket>button{font-size:13px}
.scene-controls{right:12px;bottom:max(18px,env(safe-area-inset-bottom));gap:6px}
.scene-controls button{font-size:13px;min-height:42px;padding:8px 12px;gap:5px}
.scene-controls svg{width:16px;height:16px}
.scene-controls .sound-control{padding:0;width:42px;justify-content:center}
.sound-control span,.stickers-control span{display:none}
.stickers-control svg{width:18px;height:18px}
.details-control>span{font-size:15px}
.wish-toast{bottom:80px;font-size:16px;padding:14px 19px;max-width:calc(100% - 32px)}
.paper-dialog{padding:26px 22px 24px;max-height:calc(100dvh - 24px);width:calc(100% - 24px);max-width:440px;border-radius:22px}
.tiny-letter{font-size:33px;height:39px}
.letter-eyebrow{font-size:11px;letter-spacing:1px;margin:4px 34px 10px}
h2{font-size:32px;letter-spacing:-1.1px;margin:10px 0 16px}
.letter-copy{font-size:15.5px;line-height:1.6;margin:12px 0}
.signature{font-size:26px;margin:14px 0 16px}
.party-facts{padding-top:17px;gap:15px 10px;margin-top:10px}
.party-facts span{font-size:10px}
.party-facts strong{font-size:19px}
.party-facts small{font-size:13px}
.rsvp-note{font-size:13px;margin:12px 0}
.paper-button{font-size:15px;padding:11px 17px;min-height:46px}
.art-credit{font-size:10px;margin-top:15px}
.happy-star{width:115px;height:115px}
.wish-dialog h2{font-size:35px}
.wish-poem{font-size:20px}
.wish-postscript{font-size:14px}
.star-friend{font-size:29px;right:6%;top:-2%}
.cake-status{font-size:16px}
.cake-stage{margin-top:14px}
.candle{width:30px;height:80px}
.candle .stick{height:46px;width:11px;margin-left:-5.5px}
.candle .wick{bottom:46px}
.candle .flame{bottom:51px;width:15px;height:24px;margin-left:-7.5px}
.candle.out::after{bottom:54px}
.sticker-grid{grid-template-columns:repeat(6,1fr);gap:14px 4px}
.sticker-grid li:nth-child(5){grid-column:auto/span 2}
.sticker-grid li:nth-child(7){grid-column:3/span 2}
.sticker-art{width:66px;height:66px}
.sticker-grid b{font-size:13.5px}
.sticker-grid small{font-size:12px}
.superstar-medal{width:126px;height:126px}
}
@media(max-width:360px){
.planet{min-height:735px}
.intro{top:6%;left:7%;--title:53px}
.whisper{font-size:14px}
.intro-note{font-size:13px}
.letter-object{width:155px;height:135px;left:4%;top:41%}
.letter-tag{font-size:13px}
.stitch-home{bottom:15.5%;width:70%;right:0}
.cupcake-home{left:3%;bottom:14.5%;transform:rotate(-8deg) scale(.88)}
.cake-object{width:84px;left:3%}
.cake-tag{font-size:12px;width:80px}
.wish-pocket{right:5%;max-width:175px;bottom:9.5%}
.wish-pocket>span{font-size:12px;max-width:175px}
.star-one{right:6%;top:23%}
.star-two{left:51%;top:38%}
.star-three{right:3%;top:33%;font-size:34px}
.moon-secret{width:75px;height:85px;top:2%;right:2%}
.scene-controls{right:8px;gap:5px;bottom:max(15px,env(safe-area-inset-bottom))}
.scene-controls button{padding:8px 10px}
.speech-bubble{font-size:13px;max-width:140px}
.candle{width:26px}
.sticker-art{width:58px;height:58px}
}
@media(max-height:700px) and (min-width:761px){
.planet{min-height:650px}
.intro{top:7%;--title:65px}
.whisper{font-size:16px;margin-bottom:15px}
.intro-note{font-size:15px;margin-top:16px}
.stitch-home{width:32%;bottom:10%;right:12%}
.letter-object{top:51%;width:190px;height:165px}
.star-one{top:12%;left:48%}
.star-two{top:35%}
.star-three{top:36%}
.wish-pocket{bottom:17%}
.cupcake-home{bottom:9%;left:53%;transform:scale(.85)}
.cake-object{bottom:3%;width:116px}
}
@media(prefers-reduced-motion:reduce){
*,*:before,*:after{animation:none!important;transition-duration:.01ms!important}
.magic-piece,.cursor-spark,.shooting-star,.feeding-cupcake,.confetti-drop,.cloud{display:none}
}
