@font-face{font-family:Ruqaa;src:url(../fonts/arefruqaa-700.ttf);font-weight:700;font-display:swap}
@font-face{font-family:Cairo;src:url(../fonts/cairo-600.ttf);font-weight:600;font-display:swap}
@font-face{font-family:Cairo;src:url(../fonts/cairo-900.ttf);font-weight:900;font-display:swap}
:root{--bg:#0f0c0e;--rose:#e8b4b8;--gold:#d9b26f;--tx:#f7ece6;--mu:#b8a9a6;--card:#191317;--line:#e8b4b826}
*{box-sizing:border-box}
html{background:#0f0c0e;-webkit-text-size-adjust:100%;scrollbar-width:thin;scrollbar-color:#4a3238 #0f0c0e}
::-webkit-scrollbar{width:10px}::-webkit-scrollbar-track{background:#0f0c0e}::-webkit-scrollbar-thumb{background:#4a3238;border-radius:99px}
body{margin:0;font-family:Cairo,Tahoma,sans-serif;font-weight:600;color:var(--tx);background:var(--bg);line-height:1.85}
a{color:inherit}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;font-family:inherit;font-weight:900;font-size:16.5px;color:#2a1a1a;text-decoration:none;padding:14px 30px;border-radius:99px;background:linear-gradient(90deg,var(--rose),var(--gold));box-shadow:0 10px 34px #e8b4b855;border:0;cursor:pointer;position:relative;overflow:hidden}
.btn svg{width:20px;height:20px;flex:0 0 auto}
.btn:active{transform:scale(.97)}
.btn.ghost{background:transparent;border:1.5px solid #d9b26f88;color:#ffe3c9;box-shadow:none}
.link2{display:inline-block;margin-top:14px;font-size:13px;color:#d9b26f;text-decoration:underline;text-underline-offset:4px}

/* ---------- gift stage (used by gift.html and by the builder preview) ---------- */
.gift-stage{position:relative;min-height:100svh;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;overflow:hidden;padding:56px 22px 74px;background:#0f0c0e;color:var(--tx);--a1:#e8b4b8;--a2:#d9b26f}
.gift-stage .g-canvas{position:absolute;inset:0;width:100%;height:100%;z-index:1;pointer-events:none;opacity:0;transition:opacity 1.2s}
.gift-stage .g-canvas.on{opacity:1}
.gift-stage .g-frame{position:absolute;inset:13px;border-radius:26px;z-index:2;pointer-events:none;border:1px solid #ffffff22}
.gift-stage .g-wrap{position:relative;z-index:3;display:flex;flex-direction:column;align-items:center;width:100%;max-width:420px}
.gift-stage .g-orn{width:86px;height:86px;margin-bottom:16px;color:var(--a1);filter:drop-shadow(0 0 16px #0006)}
.gift-stage .g-orn svg{width:100%;height:100%}
.gift-stage .g-to{font-family:Ruqaa,Cairo,serif;font-weight:700;font-size:19px;margin:0 0 2px;color:#d9c8c2;letter-spacing:0}
.gift-stage .g-name{font-family:Ruqaa,Cairo,serif;font-weight:700;font-size:clamp(34px,10.5vw,52px);line-height:1.5;margin:0 0 16px;background:linear-gradient(180deg,#fff6ef,var(--a1) 62%,var(--a2));-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;color:transparent;filter:drop-shadow(0 6px 22px #0006);word-break:break-word}
.gift-stage .g-card{width:100%;margin:0 0 22px}
.gift-stage .g-msg{font-size:16px;line-height:2.05;white-space:pre-wrap;margin:0;color:#f3e2da;text-shadow:0 2px 12px #0007;word-break:break-word}
.gift-stage .g-photo{width:min(68%,230px);margin:0 auto 20px;border-radius:18px;overflow:hidden;border:1px solid #ffffff26;box-shadow:0 18px 40px #0008;background:#0000}
.gift-stage .g-photo img{display:block;width:100%;height:auto}
.gift-stage .g-from{font-family:Ruqaa,Cairo,serif;font-weight:700;font-size:18px;margin:0;color:#d6c3bd}
.gift-stage .g-brand{position:absolute;bottom:22px;left:0;right:0;z-index:3;font-family:Ruqaa,Cairo,serif;font-size:15px;color:#ffffff55;letter-spacing:1px}
.gift-stage .g-deco{position:absolute;inset:0;z-index:2;pointer-events:none;overflow:hidden}
.gift-stage .g-p{position:absolute;opacity:0;animation:gd linear infinite}
@keyframes gd{0%{transform:translate3d(0,-10vh,0) rotate(0);opacity:0}12%{opacity:.9}100%{transform:translate3d(var(--dx),110vh,0) rotate(var(--rr));opacity:0}}

/* reconciliation: muted sage, soft */
.t-reconcile{background:radial-gradient(120% 70% at 50% 0,#2c3128 0,transparent 62%),radial-gradient(110% 60% at 50% 106%,#342c22 0,transparent 64%),#141311;--a1:#a9b892;--a2:#cdb99c}
.t-reconcile .g-frame{border:1px solid #a9b89240;box-shadow:inset 0 0 60px #a9b8920f}
.t-reconcile .g-msg{color:#e9e6d9}
.t-reconcile .g-to,.t-reconcile .g-from{color:#c3c8b4}
.t-reconcile .g-name{background:linear-gradient(180deg,#f6f4e9,#b9c6a2 65%,#cdb99c);-webkit-background-clip:text;background-clip:text}

/* birthday: bright, confetti */
.t-birthday{background:radial-gradient(120% 70% at 50% 0,#43113a 0,transparent 62%),radial-gradient(110% 60% at 50% 106%,#3f2d06 0,transparent 64%),#130a15;--a1:#ff86b6;--a2:#ffd166}
.t-birthday .g-frame{border:1.5px dashed #ff86b655}
.t-birthday .g-name{background:linear-gradient(180deg,#fff2d8,#ff86b6 58%,#ffd166);-webkit-background-clip:text;background-clip:text}
.t-birthday .g-to,.t-birthday .g-from{color:#f3c9dd}
.t-birthday .g-orn{color:#ffd166}

/* mother: cream plate, roses */
.t-mother{background:radial-gradient(120% 70% at 50% 0,#3d2228 0,transparent 62%),radial-gradient(110% 60% at 50% 106%,#3d3022 0,transparent 64%),#1a1113;--a1:#e79aa6;--a2:#f3dfc4}
.t-mother .g-frame{border:1px solid #f3dfc444}
.t-mother .g-card{background:linear-gradient(180deg,#fdf3e7,#f3e1cd);border-radius:26px;padding:22px 18px;box-shadow:0 24px 56px #000000a6,0 0 46px #e79aa61f;border:1px solid #ffffffcc}
.t-mother .g-msg{color:#4b2b2c;text-shadow:none}
.t-mother .g-to,.t-mother .g-from{color:#e9cdc3}
.t-mother .g-orn{color:#e79aa6}

/* ---------- phone frame for the builder preview ---------- */
.pf{position:relative;width:100%;max-width:232px;margin:0 auto;aspect-ratio:390/844;border-radius:34px;border:1px solid #e8b4b855;background:#0b090a;overflow:hidden;box-shadow:0 24px 60px #000a}
.pf-sc{position:absolute;top:0;right:0;width:390px;height:844px;transform-origin:top right}
.pf-sc .gift-stage{min-height:0;height:100%}
.pf-sc .gift-stage .g-orn{width:58px;height:58px;margin-bottom:12px}
@media(min-width:860px){.pf{max-width:330px}}
