/* ===== Gift cards: 16:9 envelope, card that slides out and comes forward, confetti ===== */
.gfstage{--foil:linear-gradient(115deg,#8a6420 0%,#d9b45a 22%,#fff3c4 38%,#c99a3b 55%,#f3d98a 72%,#8a6420 100%);position:relative;width:100%;max-width:1040px;margin:0 auto;aspect-ratio:16/9;container-type:inline-size;user-select:none;perspective:1600px;border-radius:22px;overflow:hidden;background:radial-gradient(120% 120% at 50% 0%,#2a1846 0%,#120a22 70%);box-shadow:0 30px 80px -30px rgb(30 10 60 / .6)}
.gfstage.lite{background:radial-gradient(120% 120% at 50% 0%,#fff 0%,#f3eefc 80%)}
.gfenv,.gfcard{position:absolute;transition:all .9s cubic-bezier(.2,.8,.2,1)}
.gfenv{left:14%;top:16%;width:72%;height:72%}
.gfback,.gffront,.gfflap,.gfedge{position:absolute;inset:0;border-radius:1.4cqw}
.gfback{background:var(--envIn,#2b1b48);box-shadow:0 2.4cqw 4cqw rgb(0 0 0 / .45)}
.gffront{z-index:3;background:var(--env);clip-path:polygon(0 0,50% 52%,100% 0,100% 100%,0 100%)}
.gffront::after{content:'';position:absolute;inset:0;background:var(--pattern,none);opacity:.55;border-radius:inherit}
.gfflap{z-index:4;background:var(--flap,var(--env));clip-path:polygon(0 0,100% 0,50% 58%);transform-origin:50% 0;transition:transform .8s cubic-bezier(.3,.7,.2,1),z-index 0s .4s;backface-visibility:visible}
.gfflap::after{content:'';position:absolute;inset:0;background:var(--pattern,none);opacity:.55}
.gfedge{z-index:4;pointer-events:none;box-shadow:inset 0 0 0 .35cqw var(--trim,#d9b45a)}
.gfseal{z-index:6;position:absolute;left:50%;top:50%;width:8.5cqw;height:8.5cqw;margin:-4.25cqw 0 0 -4.25cqw;border-radius:50%;display:grid;place-items:center;background:radial-gradient(circle at 35% 30%,var(--seal2,#e05a7a),var(--seal,#8e1b3a) 70%);box-shadow:0 .6cqw 1.2cqw rgb(0 0 0 / .45),inset 0 0 0 .5cqw rgb(255 255 255 / .12);font:400 4.2cqw/1 'Cinzel Decorative','Cinzel',Georgia,serif;color:#ffe9b0;transition:opacity .4s,transform .4s;top:38%}
.gfto{z-index:5;position:absolute;left:0;right:0;bottom:12%;text-align:center;font:400 3.2cqw/1.1 'Great Vibes','Parisienne',cursive;color:var(--envInk,#f6e2a8);text-shadow:0 1px 0 rgb(0 0 0 / .2);transition:opacity .4s}
.gfhint{position:absolute;left:0;right:0;bottom:3.5%;text-align:center;font:600 1.5cqw Rubik,sans-serif;letter-spacing:.2em;text-transform:uppercase;color:rgb(255 255 255 / .75);animation:gfPulse 1.8s ease-in-out infinite;z-index:7}
.gfstage.lite .gfhint{color:#6b6488}
.gfcard{z-index:2;left:18%;top:22%;width:64%;height:62%;border-radius:1.2cqw;background:var(--card,#fffaf0);color:var(--ink,#2a1d10);overflow:hidden;box-shadow:0 1cqw 3cqw rgb(0 0 0 / .35);container-type:inline-size}
.gfcard::before{content:'';position:absolute;inset:1.6cqw;border:.25cqw solid transparent;border-image:var(--foil) 1;pointer-events:none;opacity:.9}
.gfcard .gfin{position:absolute;inset:4cqw 5cqw;display:flex;flex-direction:column;gap:1.4cqw;overflow:auto;scrollbar-width:thin}
.gfcard .gfhead{display:flex;justify-content:space-between;align-items:flex-start;gap:3cqw}
.gfcard .gftitle{font:400 5.4cqw/1 'Great Vibes','Parisienne',cursive;background:var(--foil);-webkit-background-clip:text;background-clip:text;color:transparent;padding:.4cqw 0}
.gfcard .gfpkg{font:600 1.7cqw/1.3 'Cinzel',Georgia,serif;letter-spacing:.14em;text-transform:uppercase;color:var(--accent,#9a7428);text-align:right}
.gfcard .gfpkg b{display:block;font-size:2.4cqw;color:var(--ink)}
.gfcard .gfmsg{font-size:2.3cqw;line-height:1.5;color:var(--ink);overflow-wrap:anywhere;flex:1}
.gfcard .gfmsg p,.gfcard .gfmsg div{margin:0}
.gfcard .gffrom{font:400 2.8cqw/1.2 'Great Vibes','Parisienne',cursive;text-align:right;color:var(--accent,#9a7428)}
.gfcard .gfmono{position:absolute;right:3cqw;bottom:2.6cqw;opacity:.12;font:400 12cqw/1 'Cinzel Decorative',Georgia,serif;color:var(--ink);pointer-events:none}
/* states */
.gfstage.s1 .gfflap{transform:rotateX(180deg);z-index:1}
.gfstage.s1 .gfseal,.gfstage.s1 .gfto,.gfstage.s1 .gfhint{opacity:0;transform:scale(.6)}
.gfstage.s2 .gfcard{top:-4%}
.gfstage.s3 .gfcard{z-index:9;left:3.5%;top:4%;width:93%;height:92%;box-shadow:0 2cqw 6cqw rgb(0 0 0 / .55)}
.gfstage.s3 .gfenv{transform:scale(.86);filter:blur(.25cqw) brightness(.6)}
.gfstage:not(.s1){cursor:pointer}
.gfconf{position:absolute;inset:0;pointer-events:none;z-index:20;width:100%;height:100%}
@keyframes gfPulse{50%{opacity:.35}}
@media (prefers-reduced-motion:reduce){.gfenv,.gfcard,.gfflap{transition-duration:.01s}}

/* ===== 10 luxury designs ===== */
.gfd0{--env:linear-gradient(135deg,#0d1735,#1b2a5c 55%,#0d1735);--envIn:#0a1128;--flap:linear-gradient(180deg,#1f3170,#101c44);--trim:#d9b45a;--pattern:repeating-linear-gradient(45deg,rgb(217 180 90 / .14) 0 .2cqw,transparent .2cqw 2.4cqw);--card:linear-gradient(160deg,#fffdf6,#f5ecd6);--ink:#1a1f3a;--accent:#a07a2c;--seal:#7a1430;--seal2:#d14a6a;--envInk:#f3d98a}
.gfd1{--env:linear-gradient(135deg,#f4cfc7,#f8e1db 50%,#eab8ad);--envIn:#e9b3a7;--flap:linear-gradient(180deg,#f9e3dc,#efc3b8);--trim:#c98b73;--pattern:radial-gradient(circle at 50% 50%,rgb(201 139 115 / .25) 0 .3cqw,transparent .35cqw) 0 0/3cqw 3cqw;--card:linear-gradient(160deg,#fffaf8,#fbe9e4);--ink:#4a2a24;--accent:#b5735d;--seal:#b5735d;--seal2:#e9a98f;--envInk:#8e4b3a;--foil:linear-gradient(115deg,#9d5a45,#e6a58c 30%,#fff0e8 45%,#c98067 65%,#f1c2ae 80%,#9d5a45)}
.gfd2{--env:linear-gradient(135deg,#2a0848,#4c1785 55%,#2a0848);--envIn:#1c0533;--flap:linear-gradient(180deg,#5a1f9a,#2f0b55);--trim:#e6c46b;--pattern:repeating-radial-gradient(circle at 50% 120%,rgb(230 196 107 / .12) 0 .25cqw,transparent .25cqw 2cqw);--card:linear-gradient(160deg,#fffcf3,#f1e6ff);--ink:#2a0848;--accent:#8a6a1e;--seal:#3b0d63;--seal2:#8e4fd6;--envInk:#f1d488}
.gfd3{--env:linear-gradient(135deg,#063d30,#0d6b52 55%,#063d30);--envIn:#042b22;--flap:linear-gradient(180deg,#118062,#06473a);--trim:#d9b45a;--pattern:repeating-linear-gradient(90deg,rgb(217 180 90 / .1) 0 .15cqw,transparent .15cqw 1.6cqw);--card:linear-gradient(160deg,#fbfaf2,#eaf3ec);--ink:#0b3326;--accent:#93702a;--seal:#6b4a12;--seal2:#d9b45a;--envInk:#f3d98a}
.gfd4{--env:radial-gradient(120% 90% at 20% 10%,#3a3a3a,#111 60%),#111;--envIn:#0a0a0a;--flap:linear-gradient(160deg,#2c2c2c,#0c0c0c);--trim:#cfd3d8;--pattern:linear-gradient(115deg,transparent 40%,rgb(255 255 255 / .08) 41%,transparent 43%),linear-gradient(35deg,transparent 60%,rgb(255 255 255 / .06) 61%,transparent 63%);--card:linear-gradient(160deg,#ffffff,#eceef1);--ink:#111;--accent:#6c727a;--seal:#1b1b1b;--seal2:#6c727a;--envInk:#e6e9ee;--foil:linear-gradient(115deg,#6f747b,#d6dade 30%,#fff 45%,#9aa0a8 65%,#e2e5e9 80%,#6f747b)}
.gfd5{--env:linear-gradient(135deg,#f7f1e3,#fffaf0 50%,#efe5cd);--envIn:#e8dcc0;--flap:linear-gradient(180deg,#fffaf0,#efe4c9);--trim:#c9a24d;--pattern:radial-gradient(circle,rgb(201 162 77 / .18) 0 .18cqw,transparent .22cqw) 0 0/1.6cqw 1.6cqw;--card:linear-gradient(160deg,#fffefa,#f7f0de);--ink:#3a2c12;--accent:#a07a2c;--seal:#8a6420;--seal2:#e2c06f;--envInk:#9a7428}
.gfd6{--env:linear-gradient(135deg,#0b2b5e,#14448f 55%,#0b2b5e);--envIn:#071d40;--flap:linear-gradient(180deg,#1a54ad,#0b2b5e);--trim:#e6c46b;--pattern:repeating-conic-gradient(from 0deg at 50% 100%,rgb(230 196 107 / .16) 0 6deg,transparent 6deg 18deg);--card:linear-gradient(160deg,#fffdf5,#eef3fb);--ink:#0b2b5e;--accent:#9a7428;--seal:#0b2b5e;--seal2:#4c80d6;--envInk:#f1d488}
.gfd7{--env:linear-gradient(120deg,#5b21b6,#c026d3 45%,#f97316);--envIn:#3b0d63;--flap:linear-gradient(170deg,#7c3aed,#db2777);--trim:#ffe7b3;--pattern:radial-gradient(circle,rgb(255 255 255 / .35) 0 .2cqw,transparent .25cqw) 0 0/2.4cqw 2.4cqw;--card:linear-gradient(160deg,#fffaf6,#fdeef6);--ink:#3b0d63;--accent:#c2410c;--seal:#7c3aed;--seal2:#f472b6;--envInk:#fff3d6;--foil:linear-gradient(115deg,#7c3aed,#ec4899 35%,#ffe0b3 50%,#f97316 70%,#7c3aed)}
.gfd8{--env:linear-gradient(135deg,#f9d7e3,#fde8ef 50%,#f4c1d3);--envIn:#efb0c6;--flap:linear-gradient(180deg,#fde8ef,#f3bfd2);--trim:#d7899f;--pattern:radial-gradient(circle at 30% 30%,rgb(215 137 159 / .3) 0 .6cqw,transparent .7cqw) 0 0/5cqw 5cqw,radial-gradient(circle at 70% 70%,rgb(255 255 255 / .6) 0 .9cqw,transparent 1cqw) 0 0/5cqw 5cqw;--card:linear-gradient(160deg,#fffafc,#fdeaf1);--ink:#5a1f35;--accent:#b4546f;--seal:#b4546f;--seal2:#f3a3bb;--envInk:#9b3d5a;--foil:linear-gradient(115deg,#a3485f,#f2b6c6 35%,#fff 48%,#cf7c93 65%,#f6c9d6 80%,#a3485f)}
.gfd9{--env:linear-gradient(135deg,#c9ced6,#eef1f5 50%,#b8bec8);--envIn:#a9b0bb;--flap:linear-gradient(180deg,#f4f6f9,#c6ccd5);--trim:#8f97a3;--pattern:linear-gradient(135deg,rgb(255 255 255 / .5) 0 25%,transparent 25% 50%,rgb(255 255 255 / .5) 50% 75%,transparent 75%) 0 0/2cqw 2cqw;--card:linear-gradient(160deg,#ffffff,#f1f4f8);--ink:#1f2633;--accent:#5d6675;--seal:#3a4352;--seal2:#9aa3b2;--envInk:#3a4352;--foil:linear-gradient(115deg,#6f747b,#d6dade 30%,#fff 45%,#9aa0a8 65%,#e2e5e9 80%,#6f747b)}

/* ===== Composer ===== */
.gfwrap{display:grid;gap:22px}
.gfopts{display:flex;flex-wrap:wrap;gap:10px}
.gfopt{border:2px solid var(--line);border-radius:16px;padding:10px 16px;background:var(--panel);cursor:pointer;font:inherit;color:inherit;text-align:left;min-width:140px}
.gfopt.on{border-color:var(--p2,var(--acc));box-shadow:0 0 0 4px color-mix(in srgb,var(--p2,var(--acc)) 22%,transparent)}
.gfopt b{display:block}.gfopt small{color:var(--mute)}
.gfdesigns{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:12px}
.gfdesigns button{border:2px solid transparent;border-radius:16px;padding:4px;background:none;cursor:pointer;color:inherit;font:inherit}
.gfdesigns button.on{border-color:var(--p2,var(--acc))}
.gfdesigns .gfstage{border-radius:12px;box-shadow:none}
.gfdesigns small{display:block;padding:4px 2px;text-align:center}
.gftools{display:flex;flex-wrap:wrap;gap:6px;align-items:center;padding:8px;border:1px solid var(--line);border-bottom:0;border-radius:14px 14px 0 0;background:var(--panel2)}
.gftools select,.gftools input[type=color]{height:36px}
.gftools select{max-width:200px}
.gftools .btn{min-width:36px;height:36px;padding:0 10px}
.gfsw{width:24px;height:24px;border-radius:50%;border:2px solid #fff;box-shadow:0 0 0 1px var(--line);cursor:pointer;padding:0}
.gfeditor{min-height:380px;max-height:70vh;overflow:auto;padding:28px 32px;border:1px solid var(--line);border-radius:0 0 14px 14px;background:var(--card,#fffaf0);color:var(--ink,#2a1d10);font-size:18px;line-height:1.6;outline:none;overflow-wrap:anywhere}
.gfeditor:empty::before{content:attr(data-ph);color:#9a8f7a}
.gflink{display:flex;gap:8px;flex-wrap:wrap}.gflink input{flex:1;min-width:220px}
.gflist{display:grid;gap:8px}
.gfitem{display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap;padding:12px 14px;border:1px solid var(--line);border-radius:14px;background:var(--panel)}
.gfclaim{display:flex;flex-direction:column;align-items:center;gap:10px;text-align:center;margin-top:18px}
.gfstage.s1 .gfedge{z-index:1}
.gftools input[type=color]{width:44px;min-width:44px;padding:2px;flex:none}
