:root{font-family:ui-rounded,"Trebuchet MS",system-ui,sans-serif;color:#fff8ef;background:#201742;font-synthesis:none}*{box-sizing:border-box}body{margin:0;min-width:320px;background:radial-gradient(circle at 50% 31%,#513267 0,#31204f 34%,#201742 80%);min-height:100vh}button,input,select,textarea{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #ffc765;outline-offset:3px}.hidden{display:none!important}.app{min-height:100svh;max-width:1240px;margin:auto;display:flex;flex-direction:column;padding:0 clamp(18px,4vw,64px)}.topbar{height:80px;display:flex;align-items:center;justify-content:space-between;position:relative;z-index:2}.brand{font-weight:900;font-size:1.12rem;letter-spacing:-.035em;color:#ffca6d}.brand>span{color:#fff6ef}.text-button,.sound-toggle{background:none;border:0;color:#ffdfaa;font-size:.94rem;font-weight:700;padding:12px}.text-button:hover,.sound-toggle:hover{text-decoration:underline}main{display:flex;flex-direction:column;flex:1}.stage{position:relative;flex:1;min-height:680px;display:flex;flex-direction:column;align-items:center;text-align:center;justify-content:flex-start;overflow:hidden}.stage:before,.stage:after{content:"";position:absolute;border-radius:50%;width:290px;height:290px;border:1px solid #ffffff0c;top:26%;left:50%;transform:translateX(-50%);pointer-events:none}.stage:after{width:470px;height:470px;top:15%;border-color:#ffffff08}.stars{position:absolute;inset:0;pointer-events:none;color:#ffd28b}.stars span{position:absolute;opacity:.9;animation:twinkle 3s ease-in-out infinite alternate}.stars span:nth-child(1){top:16%;left:13%;font-size:35px}.stars span:nth-child(2){top:30%;right:14%;font-size:20px;animation-delay:1s}.stars span:nth-child(3){top:49%;left:6%;font-size:23px;animation-delay:.7s}.stars span:nth-child(4){top:62%;right:9%;font-size:30px;animation-delay:2s}.stars span:nth-child(5){top:8%;right:25%;font-size:18px;animation-delay:1.5s}.intro{z-index:1;margin-top:clamp(10px,4vh,48px)}.eyebrow{text-transform:uppercase;letter-spacing:.22em;font-size:.74rem;font-weight:900;color:#ffd888;margin:0 0 15px}.intro h1,.celebration h2{font-family:Georgia,serif;font-weight:500;letter-spacing:-.055em;font-size:clamp(2.7rem,6vw,5.4rem);line-height:1.06;margin:0 auto;max-width:820px;text-wrap:balance}.intro h1 span{color:#ffbfcd}.subtitle{font-size:1.12rem;color:#e3d3e9;margin:15px 0 0}.cake-scene{width:min(500px,90vw);height:330px;position:relative;flex-shrink:0;margin-top:18px;filter:drop-shadow(0 32px 32px #0d0827a0)}.halo{position:absolute;inset:9% 2% 4%;border-radius:50%;background:radial-gradient(circle,#ee8aaa35,transparent 65%)}.plate{position:absolute;bottom:17px;left:10%;width:80%;height:30px;background:linear-gradient(#fff9ef,#e7c6d0);border-radius:50%;box-shadow:0 10px 0 #ba93b1,0 16px 24px #150c2b}.cake{--side:#e98cad;--top:#fff0dd;--accent:#f9c0d1;--drip:#fff0dd;--detail:#e35485;position:absolute;z-index:1;bottom:35px;left:17%;width:66%;height:160px}.cake-side{height:142px;position:absolute;bottom:0;width:100%;border-radius:8px 8px 45% 45% / 8px 8px 18% 18%;background:repeating-linear-gradient(0deg,#ffffff15 0 4px,transparent 5px 52px),linear-gradient(95deg,#00000022,var(--side) 22%,var(--side) 72%,#fff5 100%);box-shadow:inset 0 -20px 0 #00000013}.cake-side:after{content:"";position:absolute;bottom:35px;left:8%;width:84%;height:17px;border-radius:50%;background:radial-gradient(ellipse,var(--detail) 2px,transparent 3px) 0 0/29px 16px;opacity:.6}.icing-top{position:absolute;z-index:3;top:-4px;left:0;width:100%;height:44px;border-radius:50%;background:radial-gradient(ellipse at 50% 42%,#fff9ef,var(--top) 78%);box-shadow:0 8px 0 var(--drip)}.drip{position:absolute;z-index:2;top:21px;width:14%;height:46px;background:var(--drip);border-radius:0 0 40px 40px}.d1{left:5%;height:48px}.d2{left:27%;height:29px}.d3{left:47%;height:54px}.d4{left:70%;height:36px}.d5{right:3%;height:45px}.cake-detail{position:absolute;inset:68px 13% 25px;border-top:2px solid #ffffff62;border-bottom:2px solid #ffffff47;border-radius:50%;transform:rotate(-1deg)}.cake-chocolate{--side:#89506a;--top:#ffe1b0;--drip:#704361;--detail:#ffcf78}.cake-lemon{--side:#efc068;--top:#fff7cf;--drip:#fff0ab;--detail:#fff5cc}.cake-midnight{--side:#5582bf;--top:#bbd9f5;--drip:#c5e5f7;--detail:#e6e9ff}.candles{position:absolute;z-index:3;left:25%;width:50%;bottom:187px;height:100px;display:flex;justify-content:space-around;align-items:end;pointer-events:none}.candle{height:50px;width:14px;border-radius:4px 4px 2px 2px;background:repeating-linear-gradient(135deg,#fb9cb9 0 7px,#fff3d2 7px 12px);position:relative;box-shadow:inset -3px 0 0 #0000001c;transform:translateY(var(--rise,0px))}.candle:nth-child(even){background:repeating-linear-gradient(135deg,#76c9cd 0 7px,#fff3d2 7px 12px)}.candle:before{content:"";position:absolute;bottom:100%;height:10px;width:2px;background:#584365;left:6px}.flame{position:absolute;bottom:calc(100% + 8px);left:0;width:15px;height:26px;background:radial-gradient(circle at 49% 70%,#fffadc 0 15%,#ffd269 40%,#fb7d54 76%);border-radius:90% 15% 65% 50%;transform:rotate(-35deg);transform-origin:bottom center;box-shadow:0 0 18px 5px #ffc0679c;animation:flicker 1.15s ease-in-out infinite alternate}.candle:nth-child(2n) .flame{animation-delay:-.6s}.candle:nth-child(3n) .flame{animation-delay:-.2s}.cake-scene.blowing .flame{transform:rotate(-68deg) scale(.72);opacity:.65}.cake-scene.out .flame{opacity:0;animation:none;transition:opacity .45s,transform .45s;transform:translateY(-8px) scale(.1)}.smoke{position:absolute;bottom:calc(100% + 8px);left:-8px;opacity:0;font-size:27px;color:#eee4ee}.cake-scene.out .smoke{animation:smoke 1.4s ease-out forwards}.experience,.celebration{z-index:2;max-width:640px}.wish{font-family:Georgia,serif;font-style:italic;color:#ffd9b3;font-size:clamp(1.4rem,3vw,1.9rem);margin:0 0 6px}.prompt{margin:0 0 18px;color:#e2d1e9;font-size:1rem}.status{min-height:23px;font-size:.88rem;margin:0 0 8px;color:#ffdaa4}.actions{display:flex;justify-content:center;flex-wrap:wrap;gap:12px}.primary,.secondary{border:0;border-radius:100px;padding:15px 27px;min-height:52px;font-weight:900;font-size:1rem}.primary{background:#ffcb73;color:#332045;box-shadow:0 8px 23px #e3778566}.primary:hover{background:#ffe09e;transform:translateY(-2px)}.primary span{margin-left:12px}.secondary{background:#ffffff19;color:#fff7ef;border:1px solid #ffffff51}.secondary:hover{background:#ffffff2b}.celebration{padding:3px 0 24px}.celebration h2{font-size:clamp(2.5rem,5vw,4.2rem);color:#ffcf91}.celebration>p:not(.eyebrow){font-size:1.14rem;line-height:1.5;color:#f6eaf0;white-space:pre-wrap}.bottom-row{display:flex;justify-content:space-between;align-items:center;color:#bfaed1;font-size:.8rem;min-height:58px;gap:12px}.sound-toggle{font-size:.86rem}.confetti{position:absolute;inset:0;overflow:hidden;pointer-events:none;z-index:5}.confetti i{position:absolute;top:-20px;width:8px;height:15px;background:var(--color);left:var(--left);opacity:0;animation:fall var(--duration) ease-in var(--delay) forwards}.photo-display{position:absolute;z-index:1;top:9px;right:7%;width:74px;height:74px;object-fit:cover;border:4px solid #fff7e8;border-radius:50%;transform:rotate(10deg);box-shadow:0 8px 18px #19113599}.editor{border:1px solid #86658e;border-radius:24px;background:#291c45;color:#fff8ee;width:min(520px,calc(100% - 28px));max-height:min(88vh,850px);padding:25px;box-shadow:0 25px 70px #050314ad}.editor::backdrop{background:#100a2ac9;backdrop-filter:blur(5px)}.editor form{display:flex;flex-direction:column;gap:10px}.dialog-header{display:flex;justify-content:space-between;align-items:start;gap:12px;margin-bottom:6px}.dialog-header .eyebrow{margin:0 0 8px}.dialog-header h2{font-family:Georgia,serif;font-weight:400;font-size:1.9rem;line-height:1.1;letter-spacing:-.04em;margin:0}.close{font-size:2rem;border:0;background:none;color:#fff;padding:0 5px}.editor label{font-size:.89rem;font-weight:800;margin-top:5px}.optional{font-weight:400;color:#cdbbd8}.editor input,.editor select,.editor textarea{width:100%;min-height:45px;padding:11px 13px;border:1px solid #9c85ae;border-radius:11px;background:#392951;color:#fff;resize:vertical;color-scheme:dark}.editor input::placeholder,.editor textarea::placeholder{color:#c0aecc}.editor input[type=file]{font-size:.8rem}.form-row{display:grid;grid-template-columns:1fr 1.3fr;gap:12px}.form-row>div{display:flex;flex-direction:column;gap:7px}.privacy-note{font-size:.8rem;line-height:1.45;color:#d2bfdc;margin:2px 0 5px}.dialog-actions{display:flex;gap:10px;flex-wrap:wrap}.dialog-actions button{flex:1;min-width:140px}.photo-preview{display:flex;align-items:center;gap:15px}.photo-preview img{width:50px;height:50px;object-fit:cover;border-radius:50%}.photo-preview button{background:none;border:0;color:#ffdbad;text-decoration:underline}.sound-toggle[aria-pressed=true]{color:#ffdbad}@keyframes flicker{from{transform:rotate(-29deg) scale(.88)}to{transform:rotate(-43deg) scale(1.12)}}@keyframes smoke{0%{opacity:.75;transform:translateY(0) scale(.4)}100%{opacity:0;transform:translateY(-65px) translateX(15px) scale(2)}}@keyframes twinkle{from{opacity:.35;transform:scale(.8)}to{opacity:1;transform:scale(1.3)}}@keyframes fall{0%{opacity:1;transform:translateY(0) rotate(0)}100%{opacity:0;transform:translateY(100vh) rotate(750deg)}}@media(max-width:650px){.app{padding:0 17px}.topbar{height:64px}.stage{min-height:calc(100svh - 122px)}.intro{margin-top:10px}.intro h1{font-size:clamp(2.55rem,10vw,4rem)}.cake-scene{height:280px;width:min(430px,95vw);margin-top:7px}.cake{height:145px;bottom:31px}.cake-side{height:128px}.candles{bottom:169px}.plate{bottom:14px}.stars span:nth-child(1){left:2%}.stars span:nth-child(2){right:2%}.experience{margin-top:0}.bottom-row>span{display:none}.editor{padding:20px}.dialog-header h2{font-size:1.6rem}}@media(max-height:720px) and (max-width:650px){.cake-scene{height:240px}.cake{transform:scale(.85);transform-origin:bottom center}.candles{bottom:145px}.plate{bottom:10px}.stage{min-height:600px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}.confetti{display:none}}
