:root{--bg:#faf7f2;--ink:#29262d;--muted:#726c76;--accent:#b66a79;--accent-dark:#985465;--card:#fffdfa;--line:#e9e1df;--rose:#f6dce2;--gold:#d7b867;--serif:'Playfair Display',Georgia,serif;--sans:'DM Sans',system-ui,sans-serif}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--ink);font:16px/1.6 var(--sans);overflow-x:hidden}button,input,textarea,select{font:inherit}button{cursor:pointer}a{color:inherit;text-decoration:none}a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #b66a79;outline-offset:3px}.container{max-width:1190px;margin:auto;padding-left:34px;padding-right:34px}.site-grain{position:fixed;pointer-events:none;z-index:10;inset:0;opacity:.19;background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.76' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' opacity='.11' filter='url(%23n)'/%3E%3C/svg%3E")}.site-header{height:98px;display:flex;align-items:center;justify-content:space-between;position:relative;z-index:5}.brand{font-size:25px;font-weight:700;letter-spacing:-1.2px}.brand-symbol{font-size:28px;color:var(--accent);margin-right:6px}.brand-dot{color:var(--accent)}nav{display:flex;gap:28px;align-items:center;font-size:13px;font-weight:700}.nav-secondary{color:#655f66}.nav-action{border:1px solid #d6c9c7;padding:11px 19px;border-radius:50px}.nav-action span{padding-left:7px}.nav-action:hover{background:#f4e6e5}.hero{min-height:670px;display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:24px;padding-top:45px;padding-bottom:90px}.hero-copy{position:relative;z-index:2;padding-bottom:35px}.eyebrow{font-size:11px;letter-spacing:2.1px;font-weight:700;color:#ad7b82}.tiny-spark{font-size:19px;padding-right:8px}.hero h1,h1,h2,h3,p{margin-top:0}.hero h1{font:600 clamp(46px,5.1vw,75px)/1.15 var(--serif);letter-spacing:-2.8px;max-width:650px;margin:26px 0}.hero h1 em,.section-intro h2 em,.closing h2 em,.create-heading h1 em,.preview-page h1 em,.wish-reveal h2 em{font-style:italic;color:var(--accent);font-weight:500}.hero-description{max-width:450px;font-size:15px;line-height:1.95;color:var(--muted);margin-bottom:28px}.hero-actions{display:flex;align-items:center;gap:27px;flex-wrap:wrap}.button{display:inline-flex;align-items:center;justify-content:center;gap:20px;border:0;padding:15px 24px;border-radius:30px;font-size:13px;font-weight:700;transition:transform .2s,box-shadow .2s,background .2s}.button:hover{transform:translateY(-3px);box-shadow:0 8px 20px #b66a7938}.button-primary{background:var(--accent-dark);color:white}.button-primary:hover{background:#804352}.button-light{background:#fffaf2;color:#603542}.button-outline{border:1px solid #d3bcc1;background:transparent;color:#8c5360}.text-link{font-weight:700;font-size:13px;border-bottom:1px solid #d2a7b0;padding-bottom:4px}.text-link span{margin-left:5px}.social-proof{display:flex;align-items:center;gap:12px;margin-top:54px;color:#847b81;font-size:11px}.tiny-avatars{display:flex;align-items:center;padding-left:6px}.tiny-avatars span{display:grid;place-items:center;width:32px;height:32px;margin-left:-6px;border:2px solid var(--bg);border-radius:50%;background:#ecd9df;color:#a86476}.tiny-avatars span:nth-child(2){background:#e6dec9;color:#b79c4b}.tiny-avatars span:nth-child(3){background:#dcd9e9;color:#9181ae}.hero-art{min-height:550px;position:relative;display:grid;place-items:center;perspective:900px}.hero-halo{position:absolute;inset:7% 0 5% 5%;background:radial-gradient(ellipse at center,#f3d5db99,#eee0d466 43%,transparent 71%);filter:blur(8px)}.card-shape{width:300px;height:440px;position:absolute;border-radius:10px;box-shadow:0 30px 70px #83647527}.card-back{transform:translate(58px,-20px) rotate(10deg);background:#d9d7e9;padding:32px;font:italic 26px/1.3 var(--serif);color:#77668f;display:flex;justify-content:space-between;align-items:end}.corner-spark{font-size:70px;align-self:flex-start}.card-front{transform:translate(-8px,-15px) rotate(-5deg);background:#fffaf3;padding:24px;border:1px solid #f5e4df;animation:card-float 6s ease-in-out infinite}.card-top{display:flex;justify-content:space-between;text-transform:uppercase;letter-spacing:1.3px;color:#ab8d90;font-size:8px}.birthday-illustration{position:relative;height:214px;margin:8px 0}.balloon{position:absolute;border-radius:55% 55% 50% 50%;width:52px;height:72px;box-shadow:inset -12px -10px 15px #0000000c;animation:bob 5s ease-in-out infinite}.balloon:after{content:'';position:absolute;left:50%;top:100%;width:1px;height:67px;background:#aa9798}.balloon-one{background:#edb9bd;top:30px;left:35px;transform:rotate(-15deg)}.balloon-two{background:#d2c6e3;top:5px;left:90px;animation-delay:-1s}.balloon-three{background:#e8cf97;top:40px;right:24px;transform:rotate(12deg);animation-delay:-2s}.birthday-cake{position:absolute;bottom:9px;left:101px;width:130px;height:95px}.cake-bottom{position:absolute;bottom:0;width:130px;height:64px;border-radius:7px 7px 17px 17px;background:linear-gradient(90deg,#d98b9a,#efb9bf,#d98b9a)}.cake-top{position:absolute;bottom:61px;left:0;width:130px;height:18px;border-radius:50%;background:#ffede0;z-index:2}.candle{position:absolute;bottom:78px;left:64px;width:5px;height:38px;background:repeating-linear-gradient(45deg,#bc8690 0 5px,#fff2e1 5px 10px);z-index:3}.candle:before{content:'✦';position:absolute;top:-22px;left:-5px;color:#e9ad49;font-size:18px;animation:flicker 2s infinite}.card-message{text-align:center;margin-top:6px}.card-kicker{color:#bb8990;letter-spacing:2.2px;font-size:9px;font-weight:700}.card-message>div{font:600 38px/1.07 var(--serif);margin-top:8px}.card-message em{font-weight:500;color:#b97886}.card-message p{font-size:10px;color:#a18c89;margin:12px 0 0}.polaroid{position:absolute;bottom:20px;left:2px;transform:rotate(11deg);background:white;padding:9px 9px 15px;box-shadow:0 20px 40px #5d4f5233;width:144px;text-align:center;font:italic 11px var(--serif);animation:card-float 5s ease-in-out infinite;animation-delay:-2s}.polaroid-art{height:107px;display:grid;place-items:center;background:radial-gradient(circle at 40% 40%,#fce4d6,#e6aeb8);font-size:65px;color:#fff0dd}.float-symbol{position:absolute;color:var(--accent);z-index:3}.float-star{font-size:48px;top:30px;left:50px;animation:spin-slow 14s linear infinite}.float-heart{font-size:48px;bottom:70px;right:10px;animation:bob 4s ease-in-out infinite}.float-plus{font-size:47px;top:40px;right:10px;color:#d7b867}.floating-note{position:absolute;right:-8px;bottom:75px;z-index:3;transform:rotate(-6deg);background:white;border:1px solid #f1e5de;box-shadow:0 15px 30px #7d5c6520;border-radius:8px;padding:11px 14px;font-size:10px;font-weight:700}.floating-note span{color:var(--accent);font-size:17px;margin-right:4px}.trust-strip{background:#fffaf5;border-top:1px solid #efe6e1;border-bottom:1px solid #efe6e1}.trust-inner{display:flex;justify-content:space-between;align-items:center;gap:15px;padding-top:24px;padding-bottom:24px;font-size:12px;color:#8c7980;font-weight:600}.trust-inner i{font-style:normal;color:#d5adba}.steps{padding-top:115px;padding-bottom:135px}.section-intro{text-align:center}.section-intro h2{font:600 clamp(35px,4vw,53px)/1.2 var(--serif);letter-spacing:-1px;margin:15px 0 54px}.steps-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:26px}.step{border:1px solid #ece3df;background:#fffcf8;padding:30px;border-radius:12px;min-height:300px;transition:transform .25s,box-shadow .25s}.step:hover{transform:translateY(-5px);box-shadow:0 15px 30px #53404411}.step-number{font-size:10px;color:#ba8793;letter-spacing:1px;font-weight:700}.step-icon{height:115px;display:grid;place-items:center;font-size:66px}.step-icon-one{color:#ce9aa3}.step-icon-two{color:#bb9bb9}.step-icon-three{color:#d0b56c}.step h3{font:600 23px var(--serif);margin-bottom:8px}.step p{font-size:13px;line-height:1.8;color:var(--muted);margin:0}.closing{overflow:hidden;background:#92596a;color:#fff9f5}.closing-inner{text-align:center;padding-top:85px;padding-bottom:95px;position:relative}.closing .eyebrow{color:#f7d1d4}.closing h2{font:500 clamp(34px,4.3vw,55px)/1.27 var(--serif);margin:15px 0 30px}.closing h2 em{color:#f9d8af}.closing-decoration{position:absolute;right:0;top:-60px;font-size:240px;color:#ffffff0d;pointer-events:none}.site-footer{min-height:115px;display:flex;align-items:center;justify-content:space-between;gap:20px;font-size:11px;color:#9b8f92}.footer-brand{font-weight:700;font-size:18px;color:#976774;white-space:nowrap}.create-wrap{max-width:820px;padding-top:70px;padding-bottom:120px}.create-heading{text-align:center}.create-heading h1{font:600 clamp(37px,5vw,57px)/1.18 var(--serif);margin:20px 0}.create-heading p{max-width:510px;margin:0 auto 40px;color:var(--muted);font-size:14px}.create-form{background:#fffdfa;border:1px solid var(--line);padding:37px;border-radius:18px;box-shadow:0 25px 60px #563d4e0b}.create-form label{display:block;font-size:13px;font-weight:700;margin-bottom:9px;margin-top:24px}.create-form label:first-of-type{margin-top:0}.create-form label span{color:var(--accent)}.create-form label span.optional{font-weight:400;color:#9e9096}.create-form input,.create-form textarea,.create-form select{width:100%;background:#fffefa;border:1px solid #dfd2d0;border-radius:9px;padding:13px 15px;color:var(--ink);outline:none}.create-form input:focus,.create-form textarea:focus,.create-form select:focus{border-color:var(--accent);box-shadow:0 0 0 3px #d29fa52e}.create-form textarea{resize:vertical}.button-wide{margin-top:25px;width:100%;border-radius:9px;padding:16px}.form-footnote{font-size:11px;color:#9c8d93;margin:15px 0 0;line-height:1.8}.form-errors{border:1px solid #eeb8bb;background:#fff0ef;padding:12px 14px;border-radius:8px;color:#904d57;font-size:13px}.form-errors p{margin:0}.preview-page{text-align:center;min-height:760px;padding-top:70px;padding-bottom:130px;position:relative}.preview-kicker{color:#aa7d8b;letter-spacing:2.5px;font-size:11px;font-weight:700}.preview-page h1{font:600 clamp(55px,8vw,92px)/1.2 var(--serif);letter-spacing:-3px;margin:18px 0}.hero-small-heart{color:#d69baa;padding-left:15px;font-size:.5em}.preview-sub{color:var(--muted);font-size:14px;max-width:465px;margin:0 auto 40px}.surprise-envelope{position:relative;border:1px solid #f0d8d8;background:linear-gradient(155deg,#fff4ed,#f6dfe4 78%);border-radius:18px;max-width:510px;min-height:330px;margin:0 auto;padding:35px;box-shadow:0 23px 55px #7b56631e;animation:card-float 5s ease-in-out infinite}.surprise-envelope>span{font:italic 18px var(--serif);color:#a56874}.envelope-stamp{font-size:36px;color:#b47483}.envelope-title{font:600 37px/1.35 var(--serif);margin:17px 0 24px}.wish-reveal{max-width:620px;margin:0 auto;padding:45px 36px;background:#fffcf8;border:1px solid #ebdfe0;border-radius:20px;box-shadow:0 20px 50px #603d4b1c}.wish-reveal[hidden],.surprise-envelope[hidden]{display:none}.wish-reveal .big-spark{font-size:44px;color:var(--accent)}.wish-label{font-size:10px;letter-spacing:2px;color:#b58a91;font-weight:700;margin:12px}.wish-reveal h2{font:600 clamp(35px,4vw,51px)/1.25 var(--serif);margin:15px 0 20px}.wish-reveal p{line-height:1.8;color:#6d6369;white-space:pre-wrap;overflow-wrap:anywhere}.wish-date{font-weight:700;color:#bd8794;margin:22px 0}.reveal-in{animation:reveal-in .65s ease both}.preview-warning{max-width:660px;margin:48px auto 0;padding:20px 23px;border:1px dashed #d8c6c6;border-radius:12px;text-align:left;background:#fffcf8;color:#75656c;font-size:12px}.preview-warning p{margin:6px 0 0;line-height:1.7}.preview-controls{margin-top:30px}.confetti-layer{position:fixed;inset:0;overflow:hidden;pointer-events:none;z-index:20}.confetti-piece{position:absolute;top:-40px;font-size:21px;animation:confetti-fall 3s linear forwards}@keyframes card-float{0%,100%{translate:0 0}50%{translate:0 -10px}}@keyframes bob{0%,100%{translate:0 0}50%{translate:0 -11px}}@keyframes flicker{0%,100%{opacity:1;transform:scale(1)}50%{opacity:.72;transform:scale(.85)}}@keyframes spin-slow{to{transform:rotate(360deg)}}@keyframes reveal-in{from{opacity:0;transform:translateY(24px) scale(.97)}to{opacity:1;transform:none}}@keyframes confetti-fall{to{transform:translateY(110vh) rotate(650deg);opacity:0}}
@media(max-width:900px){.container{padding-left:22px;padding-right:22px}.hero{grid-template-columns:1fr;gap:0;padding-top:36px;padding-bottom:75px}.hero-copy{text-align:center;padding-bottom:0}.hero h1{max-width:690px;margin:23px auto}.hero-description{margin:0 auto 25px}.hero-actions,.social-proof{justify-content:center}.hero-art{min-height:535px}.trust-inner{flex-wrap:wrap;justify-content:center}.steps{padding-top:80px;padding-bottom:85px}.steps-grid{gap:10px}.step{padding:21px}}
@media(max-width:640px){.site-header{height:72px}.brand{font-size:20px}.brand-symbol{font-size:23px}.nav-secondary{display:none}.nav-action{font-size:11px;padding:9px 12px}.hero{padding-top:28px}.hero h1{font-size:47px;letter-spacing:-1.8px}.hero-description{font-size:14px}.hero-art{min-height:475px;transform:scale(.82);margin:-33px -25px -45px}.floating-note{right:-25px}.social-proof{margin-top:27px}.trust-inner{padding-top:19px;padding-bottom:19px;gap:10px;font-size:10px}.steps-grid{grid-template-columns:1fr;gap:13px}.step{min-height:0;display:grid;grid-template-columns:80px 1fr;align-items:center;column-gap:13px}.step-number{grid-column:1/-1}.step-icon{grid-row:2/4;height:88px;font-size:50px}.step h3{font-size:20px;margin:0}.step p{font-size:12px}.section-intro h2{margin-bottom:27px}.closing-inner{padding-top:70px;padding-bottom:76px}.site-footer{flex-direction:column;justify-content:center;text-align:center;padding-top:30px;padding-bottom:30px}.create-wrap{padding-top:50px;padding-bottom:75px}.create-form{padding:23px}.preview-page{padding-top:48px;padding-bottom:80px}.surprise-envelope{min-height:290px;padding:25px}.envelope-title{font-size:33px}.wish-reveal{padding:35px 22px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;scroll-behavior:auto!important;transition-duration:.01ms!important}}

/* Milestone 2: practical family and organizer features. Original homepage unchanged. */
.nav-form{margin:0}.nav-small{font-size:12px;font-weight:700;border:0;background:none;color:#75666c}.flash-messages{padding-top:12px}.flash{border-radius:10px;background:#f5e6ed;color:#7c495a;padding:12px 18px;margin-bottom:8px;font-size:13px}.flash.success{background:#e8f3eb;color:#43634b}.flash.error{background:#ffeded;color:#913e48}.workspace{padding-top:60px;padding-bottom:120px;min-height:75vh}.workspace-head{display:flex;justify-content:space-between;gap:24px;align-items:center;margin-bottom:34px}.workspace-head h1{font:600 clamp(38px,5vw,66px)/1.3 var(--serif);margin:12px 0}.workspace-head h1 em,.memories-section h2 em{color:var(--accent);font-weight:500}.workspace-head p{color:var(--muted);font-size:14px;max-width:580px}.workspace-section{margin-top:45px}.workspace-section h2,.panel h2{font:600 29px/1.3 var(--serif);margin-bottom:14px}.workspace-section h3,.panel h3{font:600 20px var(--serif)}.event-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(245px,1fr));gap:22px}.event-tile,.panel,.post-card{border:1px solid var(--line);background:#fffdfa;border-radius:15px;padding:26px;box-shadow:0 14px 40px #50343b0a}.event-tile{display:flex;align-items:flex-start;flex-direction:column}.event-tile h3{font:600 31px var(--serif);margin:15px 0 7px}.event-tile p{color:var(--muted);font-size:13px}.event-tile .button{margin-top:auto}.event-spark{font-size:32px;color:var(--accent)}.event-kicker,.link-label{font-size:11px;color:#a67380;font-weight:700;letter-spacing:1.4px;text-transform:uppercase}.muted{color:var(--muted)}.small{font-size:12px}.center-card{text-align:center}.center-card h2{font:600 30px var(--serif)}.manage-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px}.panel p{font-size:13px}.panel h3{margin:28px 0 5px}.copy-line{display:flex;gap:7px;margin-top:9px}.copy-line input{min-width:0;width:100%;border:1px solid var(--line);padding:10px 12px;border-radius:8px;background:#faf7f3;font-size:12px}.copy-line button{padding:10px 15px}.subhead{margin-bottom:24px}.subhead h2{margin:7px 0}.post-list{display:grid;gap:15px}.post-card{padding:20px 24px}.post-top{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:13px}.post-card p{margin:8px 0}.preformatted{white-space:pre-wrap;overflow-wrap:anywhere}.pill{font-size:11px;letter-spacing:.2px;border-radius:20px;padding:5px 10px;background:#eee7e5;color:#655b60;text-transform:capitalize}.pill-approved{background:#e3f2e7;color:#3d714c}.pill-pending{background:#fff0d2;color:#936f2f}.pill-hidden{background:#eee7e5;color:#786d71}.post-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:19px}.post-actions form{margin:0}.small-action{border:1px solid #dac9cb;color:#835c67;background:white;padding:8px 11px;border-radius:7px;font-size:12px}.small-action:hover{background:#f9eff0}.preview-notice{background:#fff1d7;color:#896931;max-width:550px;margin:0 auto 20px;padding:9px 14px;border-radius:8px;font-size:12px;font-weight:700}.memories-section{margin:90px auto 0;max-width:1000px}.memories-section h2{font:600 clamp(35px,5vw,51px) var(--serif);margin:14px 0 30px}.memory-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:22px;text-align:left}.memory-card{border:1px solid #efdcdf;background:#fffdfa;padding:24px;border-radius:16px;box-shadow:0 20px 35px #6f4b5712;position:relative;transform:rotate(-.4deg)}.memory-card:nth-child(even){transform:rotate(.7deg)}.memory-heart{position:absolute;right:20px;top:14px;color:var(--accent);font-size:24px}.memory-by{font-size:13px;color:#9b6875;padding-right:22px;margin-bottom:14px}.memory-card p{font-size:14px;color:#53474c;line-height:1.8}.photo-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(90px,1fr));gap:7px}.photo-grid img{display:block;aspect-ratio:1/1;width:100%;object-fit:cover;border-radius:8px}.memory-card:has(.photo-grid) .photo-grid{margin-bottom:15px}
@media(max-width:850px){.manage-grid{grid-template-columns:1fr}.workspace-head{align-items:flex-start;flex-direction:column}.nav-form{display:none}}
@media(max-width:640px){.workspace{padding-top:35px;padding-bottom:70px}.workspace-head h1{font-size:45px}.panel,.event-tile{padding:20px}.copy-line{flex-direction:column}.copy-line button{width:100%}.memory-grid{grid-template-columns:1fr}.site-header nav{gap:10px}.nav-secondary{display:none}}

.admin-photos{max-width:380px;grid-template-columns:repeat(3,minmax(0,1fr));margin-top:12px;margin-bottom:8px}


/* Milestone 3 — celebration themes (only the personalized recipient page changes). */
.design-form{padding:28px}.design-form h3{font:600 23px var(--serif);margin-bottom:14px}.theme-choices{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:26px}.theme-choice{display:flex;flex-direction:column;gap:4px;border:2px solid #e9dfe2;border-radius:13px;padding:9px;cursor:pointer;background:white;transition:transform .2s,border-color .2s}.theme-choice:has(input:checked){border-color:#a75676;box-shadow:0 0 0 3px #b66a7924}.theme-choice:hover{transform:translateY(-3px)}.theme-choice input{accent-color:#a75676;align-self:flex-end;margin:4px 5px}.theme-choice strong{font-size:13px}.theme-choice small{font-size:10px;color:#766971;line-height:1.4}.theme-swatch{display:grid;place-items:center;border-radius:9px;height:100px;font:600 28px var(--serif);color:white;box-shadow:inset 0 0 28px #ffffff44}.theme-thumb-garden .theme-swatch{background:radial-gradient(circle at 25% 15%,#fce7ef,#e8c2dc 45%,#a89dc8)}.theme-thumb-midnight .theme-swatch{background:radial-gradient(circle at 85% 15%,#a79be4,#33245d 58%,#10152f)}.theme-thumb-sunset .theme-swatch{background:linear-gradient(135deg,#ffb971,#f37a97,#dc74d5)}.theme-thumb-festival .theme-swatch{background:linear-gradient(120deg,#05afaa,#4e9bcb,#ffd16f)}.design-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:17px 22px}.design-form-grid .field{display:flex;flex-direction:column;gap:6px}.design-form-grid .field-wide{grid-column:1/-1}.design-form-grid label{font-size:12px;font-weight:700;color:#634d59}.design-form-grid input,.design-form-grid textarea,.design-form-grid select{border:1px solid #dfcbd0;border-radius:9px;background:#fffefd;padding:12px 14px;width:100%;color:#382e35}.design-form-grid small{color:#8a7880;font-size:11px}.design-actions{display:flex;align-items:center;gap:25px;margin-top:26px;flex-wrap:wrap}
.celebration-stage{--party-ink:#422942;--party-soft:#76516d;--party-accent:#b85896;--party-paper:#fff9fa;position:relative;isolation:isolate;min-height:90vh;overflow:hidden;color:var(--party-ink);background:radial-gradient(ellipse at 12% 10%,#fff5df 0,transparent 48%),radial-gradient(ellipse at 90% 15%,#eed7fa 0,transparent 48%),linear-gradient(135deg,#fff4f5,#f7eafc 60%,#ffece0)}.celebration-stage.theme-midnight{--party-ink:#fdf4ee;--party-soft:#e1d3ee;--party-accent:#ffe096;--party-paper:#24233edb;background:radial-gradient(ellipse at 10% 10%,#7f4c9e8a,transparent 44%),radial-gradient(ellipse at 95% 55%,#372b87,transparent 53%),linear-gradient(140deg,#1c193b,#282554 55%,#131b37)}.celebration-stage.theme-sunset{--party-ink:#60334b;--party-soft:#8d5662;--party-accent:#c23879;--party-paper:#fff8eedc;background:radial-gradient(circle at 85% 12%,#ffe4a6,transparent 43%),radial-gradient(circle at 0 65%,#ff8bbd8a,transparent 47%),linear-gradient(125deg,#fff0d5,#ffd3bb,#ffc6de)}.celebration-stage.theme-festival{--party-ink:#15384b;--party-soft:#30616c;--party-accent:#bd487b;--party-paper:#fbfffbe8;background:radial-gradient(circle at 100% 15%,#ffe17d,transparent 44%),radial-gradient(circle at 8% 80%,#94ece5,transparent 53%),linear-gradient(135deg,#b9eaf0,#e2f0e6,#ffe5ae)}
.celebration-stage::before{content:'';position:absolute;inset:0;opacity:.23;pointer-events:none;background-image:radial-gradient(currentColor 1px,transparent 1px);background-size:41px 41px;mask-image:linear-gradient(to bottom,black,transparent 75%)}.party-content{position:relative;z-index:2}.party-decoration{position:absolute;z-index:1;font-size:54px;color:var(--party-accent);opacity:.65;pointer-events:none}.deco-one{top:9%;left:5%}.deco-two{top:36%;right:5%}.deco-three{top:56%;left:4%;font-size:68px}.party-hero{min-height:680px;display:grid;grid-template-columns:1fr .85fr;align-items:center;gap:35px;padding:84px 0 60px}.party-eyebrow,.party-section-kicker{letter-spacing:3px;font-size:11px;font-weight:800;color:var(--party-accent)}.party-hero h1{font:600 clamp(45px,5.5vw,78px)/1.1 var(--serif);letter-spacing:-2.5px;max-width:710px;margin:24px 0}.party-hero h1 em,.party-finale em,.memories-section h2 em{color:var(--party-accent);font-weight:500}.party-hero-copy>p{max-width:520px;color:var(--party-soft);line-height:1.9;font-size:16px}.party-scroll{display:inline-flex;gap:21px;align-items:center;margin-top:26px;border-radius:30px;padding:14px 22px;background:var(--party-accent);color:white;font-weight:700;font-size:13px;box-shadow:0 14px 35px #5d245330}.theme-midnight .party-scroll{color:#27233e}.party-hero-art{min-height:440px;display:grid;place-items:center;position:relative}.party-halo{position:absolute;width:100%;height:90%;border-radius:50%;background:radial-gradient(circle,#ffffffc5 5%,#e7a9de73 50%,transparent 73%);filter:blur(25px)}.theme-midnight .party-halo{background:radial-gradient(circle,#b58bda7a,#9487e333 50%,transparent 75%)}.party-illustration,.party-photo-frame{position:relative;width:min(85%,350px);aspect-ratio:4/5;background:linear-gradient(165deg,#fffaf5 30%,#f6d9e5);border-radius:12px;box-shadow:0 30px 80px #5d2a653b;transform:rotate(5deg);border:12px solid #fff9f1;display:flex;flex-direction:column;align-items:center;justify-content:space-between;padding:20px;color:#b05b86}.party-illustration-center{font-size:clamp(110px,12vw,170px);filter:drop-shadow(0 15px 14px #b0566533)}.party-illustration-top,.party-illustration-bottom{font-size:11px;letter-spacing:2px;font-weight:800;text-align:center}.party-photo-frame{padding:0;overflow:hidden;background:#fff}.party-photo-frame img{width:100%;height:90%;object-fit:cover}.party-photo-frame span{font-size:13px;font-style:italic;letter-spacing:.3px;padding:9px 2px;color:#8c5a6b}.party-star{position:absolute;font-size:56px;color:var(--party-accent)}.star-a{left:3%;top:17%}.star-b{right:4%;bottom:16%}.party-tiny-note{position:absolute;right:-2%;bottom:8%;background:white;color:#915c75;transform:rotate(-7deg);border-radius:7px;padding:12px 16px;font-size:12px;box-shadow:0 12px 28px #60243e22}.party-reveal{padding:72px 10px;text-align:center}.party-reveal .surprise-envelope{margin:26px auto 10px}.party-reveal .wish-reveal{margin:25px auto 0;background:var(--party-paper)}.party-reveal .button-primary{background:var(--party-accent)}.theme-midnight .party-reveal .button-primary{color:#27233e}.party-reveal .wish-reveal p{color:var(--party-soft)}.party-reveal .wish-reveal h2 em{color:var(--party-accent)}.celebration-stage .memories-section{text-align:center;margin:72px auto 0;padding-bottom:90px}.celebration-stage .memories-section h2{font:600 clamp(38px,4.2vw,59px)/1.2 var(--serif);margin:15px 0 37px}.celebration-stage .memory-card{background:var(--party-paper);border-color:#ffffff44;box-shadow:0 20px 65px #39244427;color:var(--party-ink);padding:27px}.celebration-stage .memory-by,.celebration-stage .memory-heart{color:var(--party-accent)}.celebration-stage .memory-card p{color:var(--party-ink)}.celebration-stage .memory-card img{aspect-ratio:1.04}.celebration-stage.layout-timeline .memory-grid{grid-template-columns:minmax(0,760px);justify-content:center;position:relative}.celebration-stage.layout-timeline .memory-grid:before{content:'';position:absolute;top:0;bottom:0;left:50%;width:2px;background:var(--party-accent);opacity:.4}.celebration-stage.layout-timeline .memory-card{margin:0 0 24px;text-align:left;transform:none!important}.celebration-stage.layout-timeline .memory-card:nth-child(odd){margin-right:13%}.celebration-stage.layout-timeline .memory-card:nth-child(even){margin-left:13%}.empty-memories{margin:0 auto;color:var(--party-soft);padding:28px;border:1px dashed currentColor;border-radius:18px;max-width:540px}.empty-memories small{opacity:.78}.party-finale{text-align:center;padding:75px 0 100px}.party-finale>span{font-size:26px;letter-spacing:21px;color:var(--party-accent)}.party-finale h2{font:600 clamp(36px,5vw,65px)/1.13 var(--serif);margin:25px 0}.party-finale p{color:var(--party-soft)}.celebration-stage .preview-warning{background:var(--party-paper);color:var(--party-ink)}.celebration-stage .preview-notice{margin:30px auto -55px;text-align:center}.celebration-stage .preview-controls{margin:20px auto 60px;text-align:center}.celebration-stage .preview-controls a{color:var(--party-ink)}.celebration-stage:not(.effects-off) .party-star,.celebration-stage:not(.effects-off) .party-decoration{animation:party-drift 6s ease-in-out infinite alternate}.celebration-stage:not(.effects-off) .party-illustration,.celebration-stage:not(.effects-off) .party-photo-frame{animation:party-hover 7s ease-in-out infinite}.celebration-stage:not(.effects-off) .deco-two{animation-delay:-3s}.celebration-stage:not(.effects-off) .deco-three{animation-delay:-2s}.celebration-stage.effects-off .party-illustration,.celebration-stage.effects-off .party-photo-frame{transform:rotate(5deg)}.waiting-page{min-height:70vh;display:grid;place-items:center;position:relative;padding:65px 20px;background:radial-gradient(circle at 20% 10%,#f7d2dd,transparent 45%),radial-gradient(circle at 80% 65%,#d9d1f7,transparent 45%),#fff7f3}.waiting-spark{position:absolute;top:40px;font-size:38px;color:#b66a79;letter-spacing:34px}.waiting-card{max-width:680px;text-align:center;background:#ffffffc7;border:1px solid #ead8df;border-radius:22px;padding:75px 55px;box-shadow:0 30px 90px #58344b14}.waiting-card h1{font:600 clamp(36px,4.5vw,64px)/1.16 var(--serif);margin:22px 0}.waiting-card h1 em{color:#b66a79}.waiting-card p{color:#7e6674}.birthday-countdown{margin:30px auto 18px;font-size:clamp(17px,3vw,30px);font-weight:800;color:#985465}.waiting-caption{font-style:italic}.celebration-stage.effects-off *{scroll-behavior:auto!important}
@keyframes party-drift{to{transform:translateY(-28px) rotate(14deg)}}@keyframes party-hover{50%{transform:translateY(-12px) rotate(2deg)}}
@media(max-width:960px){.theme-choices{grid-template-columns:repeat(2,minmax(0,1fr))}.party-hero{grid-template-columns:1fr;text-align:center;padding-top:85px;gap:10px}.party-hero-copy>p{margin:0 auto}.party-hero-art{min-height:430px}.celebration-stage .preview-notice{margin-bottom:0}}
@media(max-width:640px){.theme-choices{gap:9px}.theme-swatch{height:75px}.theme-choice{padding:7px}.design-form{padding:18px}.design-form-grid{grid-template-columns:1fr}.design-form-grid .field-wide{grid-column:auto}.party-hero{padding:55px 0 25px;min-height:0}.party-hero h1{letter-spacing:-1px;font-size:46px}.party-hero-copy>p{font-size:14px}.party-hero-art{min-height:390px}.party-illustration,.party-photo-frame{width:75%;max-width:285px}.party-tiny-note{right:0}.party-decoration{font-size:32px}.celebration-stage .party-reveal{padding:40px 0}.celebration-stage .memories-section{margin-top:38px;padding-bottom:35px}.party-finale{padding:35px 0 70px}.celebration-stage.layout-timeline .memory-card:nth-child(even),.celebration-stage.layout-timeline .memory-card:nth-child(odd){margin-left:0;margin-right:0}.celebration-stage.layout-timeline .memory-grid:before{display:none}.waiting-card{padding:55px 18px}.waiting-spark{letter-spacing:15px}}

/* Milestone 4: individual contributor identity and relationship */
.required-mark{color:#b75b7b;font-weight:800}
.join-account-info{padding:14px 18px;background:#f9eff1;border-radius:12px;color:#755867;font-size:14px;margin:8px 0}
.member-list{display:grid;gap:8px;margin-top:12px}
.member-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:9px 12px;border-radius:11px;background:#fcf7f6}
.member-row strong{font-size:14px}
.member-row span{font-size:12px;color:#977b89}
.contributor-identity{max-width:880px;margin:0 auto 20px;border:1px solid #eadde0;border-radius:16px;background:#fffdfbe6;padding:18px 24px}
.contributor-identity p{margin:0;color:#624d5b}
.profile-details{margin-top:11px}
.profile-details summary{cursor:pointer;font-size:13px;color:#9d5a71;font-weight:700}
.profile-form{display:grid;gap:9px;padding-top:15px}
.profile-form label{font-size:13px;font-weight:700}
.profile-form input{width:100%;padding:12px;border-radius:10px;border:1px solid #dbcbd1}
.profile-form button{justify-self:start;margin-top:5px}
.memory-relationship{font-weight:400;opacity:.8}

/* Milestone 5: separate, immersive recipient-facing presentation. */
body.celebration-body{background:#1c193b}
.celebration-body .site-grain{opacity:.08}
.celebration-stage{min-height:100vh;isolation:isolate;overflow:hidden}
.celebration-stage .party-content{position:relative;z-index:3}
.celebration-stage .preview-notice{position:relative;display:flex;justify-content:center;align-items:center;gap:18px;flex-wrap:wrap;max-width:650px;margin:18px auto -50px;padding:10px 20px;border-radius:999px;background:#fff8e8;color:#7f623a;font-size:12px;font-weight:700;box-shadow:0 10px 28px #0002}
.celebration-stage .preview-notice a{text-decoration:underline;text-underline-offset:3px}
.celebration-body .flash-messages{display:none}
.celebration-stage .party-hero{min-height:100vh;padding:100px 0 75px}
.celebration-stage .party-hero-copy{position:relative;z-index:2}
.celebration-stage .party-hero h1{overflow-wrap:anywhere}
.celebration-stage .party-photo-frame img{display:block;flex:1;min-height:0;object-fit:cover;width:100%;height:auto}
.celebration-stage .party-photo-frame span{min-height:46px;display:grid;place-items:center;text-align:center;padding:8px}
/* Ambient lighting behind the content. */
.ambient-orb{position:absolute;z-index:0;width:clamp(210px,40vw,520px);aspect-ratio:1;filter:blur(80px);opacity:.22;background:var(--party-accent);border-radius:50%;pointer-events:none;animation:ambient-pulse 11s ease-in-out infinite alternate}
.ambient-one{top:6%;right:-10%}
.ambient-two{top:36%;left:-18%;animation-delay:-5s;opacity:.13}
@keyframes ambient-pulse{to{transform:translate(80px,-40px) scale(1.25);opacity:.12}}
/* Symbols move through the visible viewport so a visitor immediately notices them. */
.floating-particles{position:fixed;inset:0;overflow:hidden;pointer-events:none;z-index:4}
.floating-particle{position:absolute;bottom:-90px;display:inline-block;color:var(--party-accent);font-size:var(--size,22px);line-height:1;opacity:0;will-change:transform,opacity;text-shadow:0 1px 8px #0003;filter:drop-shadow(0 0 9px color-mix(in srgb,var(--party-accent) 62%,transparent));animation:float-up var(--duration,12s) linear var(--delay,0s) infinite}
@keyframes float-up{0%{opacity:0;transform:translate3d(0,0,0) rotate(-22deg) scale(.7)}12%{opacity:.8}78%{opacity:.7}100%{opacity:0;transform:translate3d(var(--drift,45px),-125vh,0) rotate(40deg) scale(1.1)}}
.particle-petals{animation-name:petal-fall;color:#ffe0ef;filter:drop-shadow(0 0 8px #e89dc788)}
@keyframes petal-fall{0%{opacity:0;transform:translate3d(0,-125vh,0) rotate(0)}15%{opacity:.83}85%{opacity:.83}100%{opacity:0;transform:translate3d(var(--sway,30px),80px,0) rotate(450deg)}}
.particle-stars{animation-name:star-float}
@keyframes star-float{0%{opacity:0;transform:translate3d(0,0,0) scale(.3)}25%{opacity:.9}55%{opacity:.28}80%{opacity:1}100%{opacity:0;transform:translate3d(var(--drift,30px),-120vh,0) scale(1.35)}}
.particle-fireflies{color:#fff8a9;filter:drop-shadow(0 0 10px #f5e899) drop-shadow(0 0 17px #fff);animation-name:firefly-float}
@keyframes firefly-float{0%{opacity:0;transform:translate3d(0,0,0) scale(.4)}20%{opacity:1}45%{opacity:.2}68%{opacity:1}100%{opacity:0;transform:translate3d(var(--drift,30px),-110vh,0) scale(1.6)}}
.particle-balloons{filter:drop-shadow(1px 4px 6px #0002)}
.particle-mix{filter:drop-shadow(0 0 9px var(--party-accent))}
/* Reusable reveal-on-scroll transformations for memory photos and story sections. */
.celebration-stage.js-entrances:not(.entrance-none) .motion-target{transition:opacity .85s ease,transform .85s cubic-bezier(.21,.7,.17,1);opacity:0}
.celebration-stage.js-entrances.entrance-rise .motion-target{transform:translateY(38px)}
.celebration-stage.js-entrances.entrance-fade .motion-target{transform:none}
.celebration-stage.js-entrances.entrance-zoom .motion-target{transform:scale(.94)}
.celebration-stage.js-entrances .motion-target.is-visible{opacity:1;transform:none}
.celebration-stage.js-entrances .party-hero-art.motion-target{transition-delay:.12s}
/* Image picker: all approved family photos are visible as thumbnails. */
.cover-choices{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:11px;margin:8px 0 16px}
.cover-option{cursor:pointer;border:2px solid #e5d9df;border-radius:13px;padding:9px;display:flex;flex-direction:column;gap:7px;background:white;transition:border-color .2s,box-shadow .2s}
.cover-option:has(input:checked){border-color:#ac637e;box-shadow:0 0 0 3px #ac637e23}
.cover-option input{align-self:flex-start;accent-color:#a65777}
.cover-option img,.cover-art{height:125px;width:100%;object-fit:cover;background:linear-gradient(145deg,#f9dce6,#d8d0fa);border-radius:8px}
.cover-art{display:grid;place-items:center;font-size:55px}
.cover-option strong{font-size:11px;line-height:1.25;overflow-wrap:anywhere}
.cover-settings p{margin:0 0 6px}
.design-form-grid .checkline{display:flex;gap:10px;align-items:center;font-size:13px;cursor:pointer}
.design-form-grid .checkline input{width:auto;accent-color:#a65777}
.design-form-grid input[type=range]{accent-color:#a65777;cursor:pointer;padding:8px 0;background:none;border:0}
@media(max-width:960px){.celebration-stage .party-hero{padding:85px 0 55px}}
@media(max-width:640px){.celebration-stage .party-hero{min-height:100svh;padding:75px 0 45px}.celebration-stage .preview-notice{border-radius:16px;font-size:11px;margin:12px auto 0}.cover-choices{grid-template-columns:repeat(2,minmax(0,1fr))}.ambient-orb{filter:blur(60px);opacity:.13}}
@media(prefers-reduced-motion:reduce){.floating-particles{display:block!important}.floating-particle{animation:none!important;top:var(--still-top,30%)!important;bottom:auto!important;opacity:.38!important;transform:none!important}.floating-particle:nth-child(n+9){display:none!important}.ambient-orb{animation:none!important}.celebration-stage.js-entrances .motion-target{opacity:1!important;transform:none!important;transition:none!important}}

/* Milestone 6: invitation testing and reliable particle visibility. */
.invite-preview-note,.organizer-contribute-note{border:1px solid #e6c9cf;border-radius:14px;background:#fff4f5;color:#765261;padding:18px 20px;margin:0 0 20px;font-size:14px;line-height:1.7}
.invite-preview-note strong{display:block;color:#8b4865}
.organizer-contribute-note{max-width:840px;margin:0 auto 16px}
.create-form button:disabled{opacity:.55;cursor:not-allowed;box-shadow:none;transform:none}
.reduced-motion-warning{display:block;flex-basis:100%;font-weight:500;font-size:11px;color:#84556a}
.reduced-motion-warning[hidden]{display:none}
/* Keep decoration gentle on phone screens while providing visible movement. */
@media(max-width:640px){.floating-particle:nth-child(n+18){display:none}}

/* Milestone 7 — per-memory art direction and mobile layouts. */
.post-design-card{scroll-margin-top:28px;min-width:0}
.post-review-summary{display:flex;gap:22px;align-items:flex-start;justify-content:space-between;min-width:0}
.post-review-summary>div:first-child{flex:1;min-width:0}
.post-review-label{font-size:13px;color:#8f5369}
.post-review-summary .submitted-message{padding:12px 15px;border-left:3px solid #ba718e;background:#fff5f7;line-height:1.7;color:#48363d;white-space:pre-wrap}
.no-message-alert{font-size:13px;background:#fff4df;color:#81572c;padding:13px 16px;border-radius:9px;border:1px solid #f6d6a5;line-height:1.55}
.original-message{font-size:12px;color:#74626a;margin-top:8px}
.original-message summary{cursor:pointer}
.post-review-summary .admin-photos{width:min(38%,320px);flex:0 0 auto;margin:0;gap:7px}
.post-review-summary .admin-photos img{width:100%;height:auto;aspect-ratio:1;object-fit:cover}
.post-style-panel{background:#fbf6f4;border:1px solid #ebdfe2;border-radius:14px;padding:20px;margin:16px 0}
.post-style-panel h3{font:600 24px var(--serif);margin:0 0 7px}
.post-style-panel>label{display:block;font-weight:700;font-size:13px;margin:12px 0 7px}
.post-style-panel>textarea{width:100%;min-height:90px}
.post-design-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px;margin:16px 0 18px}
.post-design-fields .field{min-width:0}
.post-design-fields .field label{font-size:12px;font-weight:700;display:block;margin:0 0 6px}
.post-design-fields .field select{width:100%;min-width:0;font-size:13px;padding:10px 12px}
.post-design-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.post-design-actions .button{font-size:12px;padding:11px 16px}
.post-actions{flex-wrap:wrap;gap:8px}
.file-error{background:#ffece8;color:#a2322b;border:1px solid #efb5b0;border-radius:10px;padding:10px 13px;font-size:13px}
.file-error[hidden]{display:none}
/* One memory per row to provide space for flexible picture and message arrangement. */
.celebration-stage .memories-section{max-width:1100px}
.celebration-stage .memory-grid{display:flex;flex-direction:column;align-items:stretch;gap:28px}
.celebration-stage .memory-card{width:100%;max-width:1010px;margin-inline:auto;min-width:0;scroll-margin-top:25px}
.celebration-stage.layout-timeline .memory-grid{display:flex;flex-direction:column;align-items:stretch}
.celebration-stage.layout-timeline .memory-grid::before{display:none}
.celebration-stage.layout-timeline .memory-card:nth-child(n){margin-inline:auto}
.celebration-stage .memory-layout{display:flex;flex-direction:column;gap:16px;min-width:0}
.celebration-stage .memory-layout .memory-photos{order:0}
.celebration-stage .memory-layout .memory-message{order:1}
.celebration-stage .memory-layout.message-above .memory-message{order:0}
.celebration-stage .memory-layout.message-above .memory-photos{order:1}
.celebration-stage .memory-layout.message-left,
.celebration-stage .memory-layout.message-right{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center;column-gap:clamp(18px,3vw,40px)}
.celebration-stage .memory-layout.message-left{grid-template-areas:'message photos'}
.celebration-stage .memory-layout.message-right{grid-template-areas:'photos message'}
.celebration-stage .memory-layout.message-left .memory-message,
.celebration-stage .memory-layout.message-right .memory-message{grid-area:message;min-width:0}
.celebration-stage .memory-layout.message-left .memory-photos,
.celebration-stage .memory-layout.message-right .memory-photos{grid-area:photos;min-width:0}
.celebration-stage .memory-layout .memory-message{max-width:100%;line-height:1.75;overflow-wrap:anywhere}
.celebration-stage .memory-layout .memory-message p{font-size:clamp(15px,1.45vw,18px);line-height:1.75;margin:0;white-space:pre-wrap}
.celebration-stage .memory-photos{--photo-max-width:400px;width:min(100%,var(--photo-max-width));min-width:0}
.celebration-stage .memory-photos.photo-size-small{--photo-max-width:240px}
.celebration-stage .memory-photos.photo-size-medium{--photo-max-width:400px}
.celebration-stage .memory-photos.photo-size-large{--photo-max-width:650px}
.celebration-stage .memory-photos.photo-align-left{margin-right:auto;margin-left:0}
.celebration-stage .memory-photos.photo-align-center{margin-left:auto;margin-right:auto}
.celebration-stage .memory-photos.photo-align-right{margin-right:0;margin-left:auto}
.celebration-stage .memory-image-list{display:grid;grid-template-columns:1fr;gap:14px;align-items:start;min-width:0}
.celebration-stage .memory-image-list:has(.photo-shell:nth-child(2)){grid-template-columns:repeat(2,minmax(0,1fr))}
.celebration-stage .memory-image-list:has(.photo-shell:nth-child(3)){grid-template-columns:repeat(2,minmax(0,1fr))}
.celebration-stage .memory-image-list .photo-shell{margin:0;min-width:0;overflow:visible}
.celebration-stage .memory-image-list .photo-shell img{display:block;width:100%;max-width:100%;height:auto;max-height:min(70vh,550px);object-fit:contain;aspect-ratio:auto;border-radius:0;box-shadow:none}
.celebration-stage .memory-photos.photo-fit-cover img{aspect-ratio:4/3;object-fit:cover;max-height:unset}
.celebration-stage .memory-photos.frame-rounded .photo-shell{border-radius:15px;overflow:hidden;box-shadow:0 9px 22px #26213522}
.celebration-stage .memory-photos.frame-rounded .photo-shell img{border-radius:15px}
.celebration-stage .memory-photos.frame-polaroid .photo-shell{background:#fff;padding:10px 10px 29px;box-shadow:0 15px 24px #342a3228;transform:rotate(-2deg)}
.celebration-stage .memory-photos.frame-polaroid .photo-shell:nth-child(even){transform:rotate(2deg)}
.celebration-stage .memory-photos.frame-gold .photo-shell{background:#fff9ee;padding:8px;border:5px double #bc965a;box-shadow:0 10px 23px #3c271b26}
.celebration-stage .memory-photos.frame-shadow .photo-shell{background:#fff;padding:7px;box-shadow:0 17px 42px #34252e45;border-radius:4px}
.celebration-stage .memory-photos.frame-none .photo-shell img{border-radius:2px}
@media(max-width:900px){
  .post-design-fields{grid-template-columns:repeat(2,minmax(0,1fr))}
  .celebration-stage .memory-layout.message-left,
  .celebration-stage .memory-layout.message-right{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
}
@media(max-width:640px){
  .post-review-summary{flex-direction:column}
  .post-review-summary .admin-photos{width:100%;max-width:330px}
  .post-design-fields{grid-template-columns:1fr}
  .post-design-actions{align-items:stretch;flex-direction:column}
  .post-design-actions .button{text-align:center;width:100%}
  .post-style-panel{padding:14px}
  .celebration-stage .memory-card{padding:16px;max-width:100%;transform:none}
  .celebration-stage .memory-layout.message-left,
  .celebration-stage .memory-layout.message-right{display:flex;flex-direction:column;gap:14px}
  .celebration-stage .memory-layout.message-left .memory-photos,
  .celebration-stage .memory-layout.message-right .memory-photos{order:0;width:min(100%,var(--photo-max-width))}
  .celebration-stage .memory-layout.message-left .memory-message,
  .celebration-stage .memory-layout.message-right .memory-message{order:1;width:100%}
  .celebration-stage .memory-photos.photo-size-small{--photo-max-width:210px}
  .celebration-stage .memory-photos.photo-size-medium{--photo-max-width:330px}
  .celebration-stage .memory-photos.photo-size-large{--photo-max-width:100%}
  .celebration-stage .memory-image-list{gap:8px}
  .celebration-stage .memory-photos.frame-polaroid .photo-shell{padding:5px 5px 17px}
  .celebration-stage .memory-photos.frame-gold .photo-shell{border-width:3px;padding:5px}
  .post-actions form,.post-actions button{max-width:100%}
}
@media(prefers-reduced-motion:reduce){.celebration-stage .memory-photos.frame-polaroid .photo-shell{transform:none!important}}

.celebration-stage .memory-layout.only-text{display:block!important}

/* Milestone 8: visually distinct, organizer-styled memories. */
.reveal-announcement{display:flex;gap:18px;background:linear-gradient(130deg,#fff3dc,#fae5f1 60%,#e9e5fc);border:1px solid #e9cdda;padding:22px;border-radius:17px;margin:0 0 23px;box-shadow:0 12px 30px #4d234811}
.reveal-announcement-icon{font-size:36px;line-height:1.2}
.reveal-announcement h2{font:600 25px/1.2 var(--serif);margin:0 0 8px;color:#793f5b}
.reveal-announcement p{font-size:13px;color:#674e5e;line-height:1.75;margin:0 0 10px}
.reveal-announcement .button{margin-top:10px}
.contribution-current{border:1px solid #e9d4dc;border-radius:18px;background:#fffdfa;padding:24px;margin-top:18px;box-shadow:0 20px 40px #4e24390b}
.contribution-current h2{font:600 29px var(--serif);margin:0}
.contribution-saved-wish{background:#fff4f8;border-left:4px solid #cc7797;padding:13px 16px;border-radius:5px;white-space:pre-wrap;overflow-wrap:anywhere}
.contribution-photo-strip{display:flex;gap:10px;flex-wrap:wrap;margin:14px 0}
.contribution-photo-strip img{width:105px;height:105px;object-fit:cover;border:5px solid white;box-shadow:0 5px 16px #45314422;border-radius:6px}
.edit-contribution-details{margin-top:20px}
.edit-contribution-details summary{display:inline-flex;list-style:none;cursor:pointer}
.edit-contribution-details summary::-webkit-details-marker{display:none}
.edit-contribution-details .create-form{margin-top:15px;padding:24px}
.edit-remove-line{display:flex!important;gap:8px;align-items:center;font-weight:500!important;font-size:12px!important}
.edit-remove-line input{width:auto!important}
.legacy-contributions-note{background:#fff8e9;border:1px solid #efdfb6;border-radius:12px;padding:16px 20px;margin:20px 0;font-size:13px}
.legacy-contributions-note p{overflow-wrap:anywhere}
.post-design-fields input[type=range]{width:100%;accent-color:#aa5875}
.post-design-fields output{display:block;font-size:12px;color:#795b68}
/* Card art direction; these selectors override the original page default. */
.celebration-stage .memory-card.card-width-compact{width:100%;max-width:610px}
.celebration-stage .memory-card.card-width-balanced{width:100%;max-width:790px}
.celebration-stage .memory-card.card-width-wide{width:100%;max-width:1010px}
.celebration-stage .memory-card.card-placement-left{margin-left:0;margin-right:auto}
.celebration-stage .memory-card.card-placement-center{margin-inline:auto}
.celebration-stage .memory-card.card-placement-right{margin-left:auto;margin-right:0}
.celebration-stage .memory-card{transform:none;rotate:var(--memory-tilt,0deg);transform-origin:center center;transition:rotate .4s ease,box-shadow .3s ease,background .3s ease}
.celebration-stage .memory-card.card-tone-paper{background:#fffefa}
.celebration-stage .memory-card.card-tone-blush{background:#fff0f3}
.celebration-stage .memory-card.card-tone-lavender{background:#f1ecff}
.celebration-stage .memory-card.card-tone-mint{background:#eafff1}
.celebration-stage .memory-card.card-tone-peach{background:#fff0df}
.celebration-stage .memory-card.card-tone-sky{background:#e8f6ff}
.celebration-stage .memory-card.card-style-classic{border-radius:18px}
.celebration-stage .memory-card.card-style-scrapbook{border:2px dashed #bf839a;border-radius:4px;box-shadow:9px 13px 0 #a57b7c28,0 18px 30px #49272a22}
.celebration-stage .memory-card.card-style-scrapbook:before{content:'';position:absolute;top:-14px;left:47%;width:88px;height:28px;background:repeating-linear-gradient(45deg,#eac4aaab 0 9px,#f9e6d4bd 9px 18px);border:1px solid #ba998764;rotate:-8deg;z-index:3}
.celebration-stage .memory-card.card-style-postcard{border:8px double #be9b6c;border-radius:4px;box-shadow:0 12px 40px #4e342929}
.celebration-stage .memory-card.card-style-postcard:before{content:'✉';position:absolute;right:50px;top:18px;color:#bc9366;font-size:27px;opacity:.48}
.celebration-stage .memory-card.card-style-glow{border:2px solid #d9addf;border-radius:24px;box-shadow:0 0 0 7px #ffffff38,0 0 40px #da84ce61,0 24px 60px #61385a33}
.celebration-stage .memory-card.card-style-playful{border:5px solid #f2b0a9;border-radius:30px 12px 30px 12px;box-shadow:12px 12px 0 #dcb4f283,0 15px 25px #5e395d20}
.celebration-stage .memory-photos.frame-tape .photo-shell{position:relative;background:white;padding:8px 8px 19px;box-shadow:0 10px 25px #42313930}
.celebration-stage .memory-photos.frame-tape .photo-shell:before{content:'';position:absolute;top:-11px;left:35%;width:30%;height:23px;z-index:2;background:#edccaaa8;rotate:-4deg;backdrop-filter:blur(2px)}
.celebration-stage .memory-photos.frame-film .photo-shell{padding:18px 9px;background:repeating-linear-gradient(90deg,#24242d 0 14px,#77737c 14px 18px,#24242d 18px 30px);border-top:8px dashed #fff; border-bottom:8px dashed #fff;box-shadow:0 12px 25px #1e1a2438}
.celebration-stage .memory-photos.frame-floral .photo-shell{position:relative;padding:12px;background:linear-gradient(120deg,#f8afbf,#fff2b9,#c6f5d7,#f1d0fd);border:4px solid #fffefc;box-shadow:0 10px 35px #824b712e}
.celebration-stage .memory-photos.frame-floral .photo-shell:after{content:'✿';position:absolute;top:-14px;right:-8px;font-size:28px;color:#c94f8d;text-shadow:0 2px 6px #fff}
/* Respect narrow phone screens: never rotate a card outside the viewport. */
@media(max-width:700px){
  .celebration-stage .memory-card{width:100%;max-width:100%;rotate:0deg!important;margin-inline:auto!important}
  .celebration-stage .memory-card.card-style-playful{box-shadow:5px 6px 0 #dcb4f283}
  .celebration-stage .memory-card.card-style-scrapbook{box-shadow:4px 6px 0 #a57b7c28}
  .reveal-announcement{padding:16px;gap:10px}
  .reveal-announcement-icon{font-size:26px}
  .reveal-announcement h2{font-size:22px}
  .contribution-current{padding:16px}
  .edit-contribution-details .create-form{padding:16px}
}
@media(prefers-reduced-motion:reduce){
  .celebration-stage .memory-card{transition:none!important}
}

.invite-date-hint{padding:15px 20px;margin:0 0 20px;background:#fff4dd;border:1px solid #f0d8b0;border-radius:14px;font-size:13px;color:#77514e;line-height:1.7}


/* Milestone 9: editable gift typography, additional memory styles, and safety UI. */
.celebration-stage .envelope-title{white-space:pre-line}
.celebration-stage .wish-personal-message{white-space:pre-wrap;max-width:740px;margin:22px auto;font-size:clamp(1.05rem,2vw,1.35rem);line-height:1.75}
.celebration-stage .wish-signature{font-family:Georgia,serif;font-style:italic;font-size:1.25rem;margin:15px auto;color:inherit}
.celebration-stage .wish-actions{display:flex;justify-content:center;align-items:center;gap:12px;flex-wrap:wrap;margin-top:24px}
.gift-editor{padding:28px;margin:24px 0;border:1px solid #e4c9cf;border-radius:22px;background:linear-gradient(130deg,#fff6f7,#faf3ff 60%,#fef7e9)}
.gift-editor h3{margin:8px 0}
.gift-editor-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-top:18px}
.gift-editor-grid .field-wide{grid-column:1/-1}
.event-delete-link{display:block;width:max-content;margin-top:12px;font-size:.83rem;color:#9f4c5a;text-decoration:underline;text-underline-offset:3px}
.delete-zone-panel{display:flex;align-items:center;justify-content:space-between;gap:20px}
.delete-zone-panel h2{margin:.45em 0}
.delete-outline{border-color:#c88f98!important;color:#9f3c4e!important}
.delete-event-shell{max-width:820px;margin:75px auto}
.delete-event-shell h1{margin:10px 0 30px;font-size:clamp(2.2rem,5vw,4rem)}
.delete-confirm-card{padding:clamp(22px,4vw,42px)}
.delete-stats{display:flex;gap:12px;flex-wrap:wrap;margin:20px 0}
.delete-stats span{padding:12px 18px;border:1px solid #e9dadd;border-radius:12px}
.delete-warning{background:#fff1f1;border:1px solid #efb2b2;padding:16px 20px;border-radius:12px;color:#8b2637}
.delete-confirm-form{display:grid;gap:18px;margin-top:22px}
.delete-confirm-form .checkline{display:flex;align-items:flex-start;gap:12px;max-width:100%}
.delete-confirm-form input[type=checkbox]{margin-top:4px}
.delete-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:12px}
.button-danger{color:white!important;border-color:#a6263a!important;background:#a6263a!important}
.button-danger:hover{background:#7e1e2e!important}
.celebration-stage .memory-card.card-tone-sunshine{background:#fff5b8}
.celebration-stage .memory-card.card-tone-coral{background:#ffe1d6}
.celebration-stage .memory-card.card-tone-ocean{background:#def4f5}
.celebration-stage .memory-card.card-tone-sage{background:#e3f0d6}
.celebration-stage .memory-card.card-tone-berry{background:#fae5f0}
.celebration-stage .memory-card.card-tone-champagne{background:#fdf0ce}
.celebration-stage .memory-card.card-style-storybook{border:10px solid #fff;border-radius:22px;box-shadow:inset 0 0 0 2px #b98d83,0 10px 30px #553e4c2b,0 0 0 1px #debdaf}
.celebration-stage .memory-card.card-style-ribbon{border-radius:14px;border:2px solid #c08097;box-shadow:0 14px 35px #663f5e22}
.celebration-stage .memory-card.card-style-ribbon:before{content:'✦ MADE WITH LOVE ✦';position:absolute;top:-16px;left:50%;translate:-50% 0;padding:7px 18px;border-radius:22px;background:linear-gradient(90deg,#b55e7b,#d584a4);color:white;font:600 .65rem/1.3 system-ui,sans-serif;white-space:nowrap;letter-spacing:1.3px;z-index:3}
.celebration-stage .memory-card.card-style-ticket{border:3px dashed #af8297;border-radius:28px 6px 28px 6px;box-shadow:8px 12px 0 #efd4d5bb}
.celebration-stage .memory-card.card-style-dreamy{border:1px solid #eec7ea;border-radius:36px;background-image:linear-gradient(135deg,#fff9febb,#fff9dbaa);box-shadow:0 0 45px #b879bb51,0 20px 50px #613a6730}
@media(max-width:680px){
  .gift-editor{padding:16px}
  .gift-editor-grid{grid-template-columns:1fr}
  .gift-editor-grid .field-wide{grid-column:auto}
  .delete-zone-panel{display:block}
  .delete-event-shell{margin:30px auto}
  .delete-actions .button{width:100%;text-align:center}
  .celebration-stage .memory-card.card-style-ribbon:before{font-size:.54rem;padding:5px 12px}
  .celebration-stage .wish-actions .button{max-width:100%}
}


/* Milestone 10: date correction form and subtle per-photo hover magic. */
.event-date-form{margin-top:24px;padding-top:20px;border-top:1px solid #e9d7dc}
.event-date-form label{display:block;font-size:.85rem;font-weight:700;margin-bottom:10px;color:#715362}
.event-date-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.event-date-row input[name=event_date]{flex:1 1 190px;min-width:0;padding:13px;border:1px solid #dac6cc;border-radius:10px;background:#fffaf9;font:inherit}
.event-date-row .button{flex:0 0 auto}
@media (max-width:540px){.event-date-row .button{width:100%}}
/* Hover interactions are additive: preserve each organizer-selected frame and tilt. */
@media (hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference){
  .celebration-stage .memory-image-list .photo-shell img,
  .celebration-stage .party-photo-frame img{transition:transform .45s cubic-bezier(.2,.75,.25,1),filter .45s ease;transform-origin:center center}
  .celebration-stage .memory-image-list .photo-shell:hover img{transform:scale(1.055);filter:brightness(1.04) saturate(1.09)}
  .celebration-stage .party-photo-frame:hover img{transform:scale(1.035);filter:brightness(1.045)}
}


/* Milestone 11: extra memory styles and frames, mobile-safe and customizable per post. */
.celebration-stage .memory-photos.frame-lace .photo-shell{padding:12px;border:6px double #fff5fa;outline:3px dotted #da96b9;outline-offset:2px;background:#fff5fa;box-shadow:0 9px 25px #422a4b25}
.celebration-stage .memory-photos.frame-neon .photo-shell{padding:7px;background:#f6f1ff;border:3px solid #c569ed;border-radius:16px;box-shadow:0 0 8px #c569ed80,0 0 23px #c569ed70}
.celebration-stage .memory-photos.frame-scallop .photo-shell{padding:12px;background:#fff8e8;border:9px dotted #f1bd76;border-radius:19px;box-shadow:0 12px 22px #9e647130}
.celebration-stage .memory-photos.frame-washi .photo-shell{position:relative;padding:12px;background:#fffefb;box-shadow:0 9px 28px #a3787854;transform:rotate(1deg)}
.celebration-stage .memory-photos.frame-washi .photo-shell:before,.celebration-stage .memory-photos.frame-washi .photo-shell:after{content:'';position:absolute;z-index:2;width:65px;height:23px;background:repeating-linear-gradient(45deg,#e8a6b780 0 8px,#fce4bcba 8px 17px);top:-11px;transform:rotate(-8deg)}
.celebration-stage .memory-photos.frame-washi .photo-shell:before{left:9%}
.celebration-stage .memory-photos.frame-washi .photo-shell:after{right:9%;transform:rotate(8deg)}
.celebration-stage .memory-card.card-style-album{border:11px solid #fff9ec;border-radius:12px;box-shadow:0 0 0 2px #9a7469,0 18px 26px #6b4c4936}
.celebration-stage .memory-card.card-style-confetti{border:7px dotted #df8eb0;border-radius:25px;box-shadow:0 16px 26px #a75f8c2b}
.celebration-stage .memory-card.card-style-minimal{border:1px solid #bdb5c1;border-radius:4px;box-shadow:0 7px 19px #4a405521}
.celebration-stage .memory-card.card-style-celebration{border:5px solid #f0b454;border-radius:16px 40px 18px 40px;box-shadow:0 11px 35px #cf77b548,0 0 0 5px #fff9d69c}
.celebration-stage .memory-card.card-tone-rose{background:#ffe0e8}
.celebration-stage .memory-card.card-tone-midnight{background:#28324d;color:#fff8e8}
.celebration-stage .memory-card.card-tone-midnight .memory-by,.celebration-stage .memory-card.card-tone-midnight .memory-relationship{color:#f4d1e1}
.celebration-stage .memory-card.card-tone-midnight .memory-message,.celebration-stage .memory-card.card-tone-midnight .memory-message p{color:#fff8e8}
.celebration-stage .memory-card.card-tone-lemon{background:#fffbcf}
.celebration-stage .memory-card.card-tone-pistachio{background:#e4efcc}
.celebration-stage .memory-card.card-tone-lilac{background:#eee0fa}
.celebration-stage .memory-card.card-tone-terracotta{background:#f3dfd2}
@media(max-width:700px){
  .celebration-stage .memory-photos.frame-washi .photo-shell{transform:none}
  .celebration-stage .memory-photos.frame-lace .photo-shell{outline-offset:0}
  .celebration-stage .memory-photos.frame-scallop .photo-shell{border-width:5px;padding:7px}
}
@media(prefers-reduced-motion:reduce){.celebration-stage .memory-photos.frame-washi .photo-shell{transform:none}}
