:root{--paper:#f8f5ee;--ink:#2f3c2f;--sage:#526550;--sage-light:#788475;--muted:#8d8d7d;--line:#dedfcf;--gold:#b29a68;--font:'Tajawal',sans-serif;--serif:'Amiri',serif}
*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:var(--font);font-size:16px;-webkit-font-smoothing:antialiased}body::before{content:'';position:fixed;inset:0;pointer-events:none;opacity:.22;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='.7' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' opacity='.11' filter='url(%23n)'/%3E%3C/svg%3E")}
button,input,textarea{font:inherit}button,a,input,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button{border:0}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible{outline:2px solid var(--sage);outline-offset:5px}button svg,.event-detail svg,.riddle-heading svg,.envelope-caption svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round}[hidden]{display:none!important}.page-shell{max-width:1240px;padding:0 64px;margin:auto;position:relative}.site-header{height:120px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.brand{display:flex;gap:12px;align-items:center}.brand>span{font-family:var(--serif);font-size:30px;line-height:1.1}.brand-caption{display:block;font-family:var(--font);font-size:10px;letter-spacing:.5px;color:var(--sage-light);margin-top:7px}.quiet-button{display:inline-flex;align-items:center;justify-content:center;gap:9px;color:var(--sage);background:transparent;font-size:14px;padding:10px 0}.quiet-button:hover{color:#263825}.quiet-button svg{width:17px;height:17px}.locked-view{display:grid;grid-template-columns:1fr 1fr;gap:90px;padding:64px 0 62px;align-items:center}.eyebrow{font-size:12px;color:var(--sage-light);margin:0 0 23px;display:flex;gap:10px;align-items:center}.eyebrow>span{height:1px;width:26px;background:var(--gold);display:block}h1{font-family:var(--serif);font-weight:400;font-size:68px;line-height:1.35;letter-spacing:-1.8px;margin:0 0 18px}h1 em{font-style:normal;color:var(--sage)}.intro-copy{font-size:16px;line-height:1.95;color:#838677;margin:0 0 30px}.riddle-section{max-width:365px;padding-top:22px;border-top:1px solid var(--line)}.riddle-heading{display:flex;gap:13px;align-items:center;font-size:12px;color:var(--sage)}.riddle-heading>svg{margin-right:auto;width:16px;height:16px}.step-number{font-family:Georgia,serif;font-size:13px;color:var(--gold)}.riddle-text{font-family:var(--serif);font-size:22px;line-height:1.8;margin:16px 0 20px;color:#4b5748}.answer-field{display:flex;align-items:center;border:1px solid #d6d9c9;border-radius:3px;background:#fbf9f3;padding:0 16px;transition:border-color .2s}.answer-field:focus-within{border-color:var(--sage)}input{min-width:0}.answer-field input{height:49px;border:0;background:transparent;color:var(--ink);width:100%;outline:none;font-size:14px}.answer-field input::placeholder{color:#a2a391}.input-flower{color:#acb19e;font-size:22px}.feedback{min-height:18px;margin:7px 0 7px;font-size:12px;color:#a26050}.primary-button{background:var(--sage);color:#fffdf4;border:1px solid var(--sage);border-radius:3px;width:100%;min-height:49px;padding:13px 20px;font-size:15px;display:flex;justify-content:center;align-items:center;gap:35px;transition:background .2s,transform .2s}.primary-button:hover{background:#42533f}.primary-button:active{transform:translateY(1px)}.hint-button{display:flex;gap:9px;align-items:center;justify-content:center;background:none;color:#919480;font-size:12px;margin:11px auto 0;padding:8px}.hint-button span{font-family:Georgia,serif;font-size:17px;color:var(--gold)}.hint-text{font-size:13px;line-height:1.7;color:var(--sage-light);text-align:center;margin:8px 0 0}.art-panel{align-self:center;position:relative;width:100%;height:540px;isolation:isolate;display:flex;align-items:center;justify-content:center;flex-direction:column;border-radius:220px 220px 7px 7px;background:#efefe4;border:1px solid #e5e4d8;overflow:hidden}.botanical-art{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-1;mix-blend-mode:multiply;opacity:.7}.arch-line{position:absolute;inset:16px;border:1px solid #cdd0bd;border-radius:220px 220px 2px 2px;z-index:-1}.art-topline{position:absolute;top:80px;color:#959a85;font-family:var(--serif);font-size:18px}.envelope-wrap{position:relative;width:300px;height:210px;margin-top:35px;transform:rotate(-8deg);filter:drop-shadow(0 18px 15px #7b786628)}.envelope-back{position:absolute;inset:-6px 7px 6px -7px;background:#f0eddf;border:1px solid #ded9c7;transform:rotate(3deg);border-radius:3px}.envelope{position:absolute;inset:0;background:linear-gradient(145deg,#f7f3e8,#ece5d5);border:1px solid #d8d1bd;border-radius:3px;overflow:hidden}.envelope-fold{position:absolute;inset:0}.envelope-fold.left{background:linear-gradient(90deg,#efe9db,#f7f0e3);clip-path:polygon(0 0,55% 57%,0 100%)}.envelope-fold.right{background:linear-gradient(-90deg,#f3ece0,#e9e1d0);clip-path:polygon(100% 0,45% 57%,100% 100%)}.envelope-flap{position:absolute;inset:0;background:linear-gradient(#faf7ef,#e5decc);clip-path:polygon(0 0,100% 0,50% 63%);z-index:2;filter:drop-shadow(0 1px 1px #9b917f)}.wax-seal{position:absolute;top:47%;left:40%;width:58px;height:58px;border-radius:44% 49% 43% 50%;background:radial-gradient(circle at 35% 25%,#879274,#65744f 65%,#6f7d54);z-index:4;border:3px solid #859272;box-shadow:0 3px 5px #56492c38,inset 0 0 0 2px #5f714863;display:grid;place-items:center;transform:rotate(8deg)}.wax-seal svg{height:40px;width:40px;fill:none;stroke:#c8cfaf;stroke-width:1.2}.envelope-caption{color:#929780;font-size:12px;display:flex;align-items:center;gap:7px;margin-top:38px}.envelope-caption svg{height:14px;width:14px}.art-edition{position:absolute;bottom:37px;font-size:8px;letter-spacing:2px;font-family:Georgia,serif;color:#9b9e8c;direction:ltr}.site-footer{display:flex;align-items:center;gap:24px;color:#9b9d8e;border-top:1px solid var(--line);padding:25px 0 30px;font-size:11px}.footer-line{height:1px;background:#dedfcf;width:30px;margin-right:auto}.opened-view{max-width:670px;margin:45px auto 50px;text-align:center;animation:unveil .9s ease both}.open-eyebrow{justify-content:center;margin-bottom:26px}.wedding-paper{position:relative;background:#fdfbf6;border:1px solid #d9decc;outline:1px solid #d9decc;outline-offset:-11px;border-radius:200px 200px 5px 5px;padding:60px 48px 30px;box-shadow:0 16px 50px #53634a0a;overflow:hidden}.paper-decoration{color:var(--gold);font-size:36px;margin:0 0 18px}.paper-prelude{font-family:var(--serif);font-size:17px;color:#858b76;margin:0 0 14px}.wedding-paper h2{font-family:var(--serif);font-weight:400;color:#8a947c;font-size:23px;margin:0}.names{font-family:var(--serif);font-size:59px;line-height:1.5;margin:15px 0 8px;display:flex;gap:18px;justify-content:center;flex-wrap:wrap;overflow-wrap:anywhere}.name-join{font-size:29px;color:var(--gold);align-self:center}.small-divider{display:flex;justify-content:center;gap:14px;align-items:center;color:var(--gold);font-size:19px}.small-divider span{width:50px;height:1px;background:#d7d9c9}.wedding-message{font-family:var(--serif);font-size:20px;line-height:1.9;color:#6c7663;white-space:pre-line;overflow-wrap:anywhere;margin:21px auto 26px;max-width:420px}.event-details{display:grid;grid-template-columns:1fr 1fr;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:24px 0;gap:24px}.event-detail{display:flex;flex-direction:column;align-items:center;gap:7px;line-height:1.5;font-size:14px;overflow-wrap:anywhere;min-width:0}.event-detail:first-child{border-left:1px solid var(--line);padding-left:15px}.event-detail svg{color:var(--gold);width:23px;height:23px;margin-bottom:3px}.detail-label{color:#9b9f8e;font-size:11px}.event-detail strong{font-weight:500}.event-detail>span:last-child{color:#8a907e;font-size:12px}.paper-closing{font-family:var(--serif);font-size:22px;color:var(--sage);margin:24px 0 14px}.sample-notice{font-size:10px;color:#a59f8e;line-height:1.6}.opened-actions{display:flex;gap:25px;align-items:center;justify-content:center;margin:26px auto 0;flex-wrap:wrap}.opened-actions .primary-button{width:auto;min-width:200px;gap:15px}.opened-actions .quiet-button{font-size:12px}dialog{width:min(540px,calc(100% - 28px));max-height:90dvh;padding:28px 32px;border:1px solid var(--line);border-radius:8px;background:var(--paper);color:var(--ink);box-shadow:0 20px 100px #26312340}dialog::backdrop{background:#29352670;backdrop-filter:blur(4px)}.editor-header{display:flex;justify-content:space-between;align-items:flex-start}.editor-header .eyebrow{margin-bottom:3px;font-size:11px}.editor-header h2{font-family:var(--serif);font-size:36px;font-weight:400;margin:0}.icon-button{width:35px;height:35px;border:1px solid var(--line);border-radius:50%;background:transparent;font-size:23px;color:var(--sage)}.editor-copy{font-size:13px;line-height:1.7;color:var(--sage-light);margin:5px 0 22px}.form-pair{display:grid;grid-template-columns:1fr 1fr;gap:15px}#editor-form label{display:block;font-size:12px;color:var(--sage);margin-bottom:15px}#editor-form input,#editor-form textarea{width:100%;display:block;border:1px solid #d4d8c7;border-radius:3px;background:#fdfbf6;padding:10px 12px;margin-top:7px;line-height:1.5;color:var(--ink);font-size:14px}#editor-form input[type=date],#editor-form input[type=time]{direction:ltr;text-align:right;min-height:45px}#editor-form textarea{resize:vertical}.editor-divider{height:1px;background:var(--line);margin:24px 0}.editor-note{font-size:11px;color:#989b8d;line-height:1.7}.toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);z-index:20;background:#354331;color:#fffdf4;box-shadow:0 5px 25px #33432d30;padding:14px 22px;max-width:calc(100% - 30px);width:max-content;border-radius:4px;font-size:13px;line-height:1.6;text-align:center}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.shake{animation:shake .3s linear}.unlocking .envelope-wrap{animation:open-envelope .65s ease forwards}.unlocking .wax-seal{animation:seal-release .55s ease forwards}
@keyframes shake{25%,75%{transform:translateX(4px)}50%{transform:translateX(-4px)}}@keyframes unveil{from{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}@keyframes open-envelope{to{transform:rotate(0) translateY(-20px);opacity:0}}@keyframes seal-release{to{transform:translateY(20px) rotate(20deg);opacity:0}}
@media(min-width:1400px){.locked-view{gap:110px;padding:72px 0}.art-panel{height:560px}}
@media(max-width:1000px){.page-shell{padding:0 35px}.locked-view{gap:40px}.art-panel{height:495px}.envelope-wrap{width:255px;height:180px}h1{font-size:59px}.wax-seal{width:52px;height:52px}}
@media(max-width:700px){.page-shell{padding:0 24px}.site-header{height:90px}.brand>span{font-size:26px}.brand img{width:34px;height:34px}.brand-caption{font-size:9px}.quiet-button{font-size:12px}.quiet-button svg{width:15px;height:15px}.locked-view{display:flex;flex-direction:column;gap:32px;padding:32px 0 35px;align-items:stretch}.invitation-intro{display:contents}.eyebrow{order:0;margin-bottom:-17px;font-size:11px}h1{order:1;font-size:45px;line-height:1.3;margin-bottom:-20px}h1 br{display:none}.intro-copy{order:2;font-size:14px;margin:0;line-height:1.8}.art-panel{order:3;width:100%;height:255px;border-radius:120px 120px 3px 3px;margin:0 auto;background:#f0efe4}.arch-line{inset:10px;border-radius:115px 115px 3px 3px}.botanical-art{object-position:center 72%;opacity:.52}.art-topline{top:27px;font-size:14px}.envelope-wrap{width:200px;height:135px;margin-top:25px}.wax-seal{width:44px;height:44px;left:39%;top:43%}.wax-seal svg{width:31px;height:31px}.envelope-caption{font-size:10px;margin:15px 0 0}.art-edition{display:none}.riddle-section{order:4;max-width:none;padding-top:20px}.riddle-text{font-size:21px;margin:12px 0 17px}.feedback{margin:7px 0 6px}.hint-button{margin-top:7px}.site-footer{padding:20px 0;font-size:10px;gap:10px}.footer-line{width:17px}.opened-view{margin:35px auto}.opened-view .eyebrow{margin-bottom:25px;font-size:10px}.wedding-paper{border-radius:160px 160px 4px 4px;padding:47px 24px 23px}.paper-decoration{font-size:28px;margin-bottom:12px}.paper-prelude{font-size:15px}.names{font-size:47px;gap:12px}.wedding-message{font-size:18px}.event-details{gap:12px}.event-detail{font-size:12px}.event-detail:first-child{padding-left:9px}.event-detail>span:last-child{font-size:11px}.paper-closing{font-size:20px}.opened-actions{gap:9px}.opened-actions .primary-button{width:100%}.opened-actions .quiet-button{padding:11px}.sample-notice{font-size:9px}dialog{padding:24px 21px}.form-pair{gap:10px}.toast{bottom:18px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}

/* Puzzle gate */
.riddle-text{line-height:1.65;margin-bottom:14px}.puzzle-board{width:min(100%,330px);aspect-ratio:2/1;margin:0 auto 7px;display:grid;grid-template-columns:repeat(4,1fr);gap:5px;background:#d8d9c9;padding:5px;border-radius:5px;box-shadow:0 8px 20px #51604b18;direction:ltr}.puzzle-piece{position:relative;min-width:0;min-height:0;padding:0;border:0;border-radius:2px;background-color:#eeeade;background-image:url('/manus-storage/async-images/z7qZdq5d2hFqBiC6r0h1Zl/image-1.webp');background-size:400% 200%;background-repeat:no-repeat;cursor:pointer;transition:transform .18s,filter .18s,box-shadow .18s;touch-action:manipulation}.puzzle-piece:hover{filter:brightness(1.03);transform:scale(.985)}.puzzle-piece.is-selected{z-index:2;box-shadow:0 0 0 3px var(--gold),0 6px 16px #4c5b4328;transform:scale(.97)}.puzzle-piece.is-correct::after{content:'✓';position:absolute;right:7px;top:6px;width:20px;height:20px;border-radius:50%;background:#526550e6;color:#fff;text-align:center;font:14px/20px Arial}.puzzle-piece[draggable=true]{-webkit-user-drag:element}.feedback.success{color:var(--sage)}
@media(max-width:700px){.puzzle-board{width:min(100%,330px)}.riddle-text{margin:12px 0 13px}}
