/* Zeo.link homepage gift showcase — intentionally scoped to the home route.
   Earnings & Gifts page retains its existing layout, CSS, JS, and content. */
.zg-home-gift{
  --zg-ink:#193e2f;--zg-muted:#627263;--zg-gold:#ffc30b;
  position:relative;isolation:isolate;overflow:hidden;
  background:linear-gradient(135deg,#fffdf7 0%,#fcf7ed 56%,#f6f9ee 100%);
  border-block:1px solid #e7dcb4;
  color:var(--zg-ink);
}
.zg-home-gift:before{
  content:"";position:absolute;top:-195px;right:-150px;width:520px;height:520px;
  background:radial-gradient(circle,#f8d9893e 0%,transparent 70%);
  border-radius:50%;pointer-events:none;z-index:-1;
}
.zg-home-gift .zg-gift-wrap{max-width:1340px;margin-inline:auto;padding:clamp(50px,6vw,88px) clamp(19px,3.7vw,58px)}
.zg-home-gift .zg-gift-heading{display:flex;justify-content:space-between;align-items:end;gap:25px;margin-bottom:29px}
.zg-home-gift .zg-gift-eyebrow{
  display:inline-flex;align-items:center;gap:8px;letter-spacing:.16em;font-size:11px;
  font-weight:900;color:#9d741b;text-transform:uppercase;
}
.zg-home-gift h2{max-width:840px;margin:10px 0 11px;color:#153d2c;font-size:clamp(37px,5vw,65px);
  line-height:1.07;letter-spacing:-.055em;font-weight:880}
.zg-home-gift h2 em{font-style:italic;font-family:Georgia,serif;color:#bd8721;font-weight:480}
.zg-home-gift .zg-gift-heading p{max-width:720px;color:#667864;line-height:1.7;font-size:clamp(14px,1.25vw,17px);margin:0}
.zg-home-gift .zg-gift-heading-art{width:190px;height:120px;align-self:center;position:relative;flex:none;display:grid;place-items:center;
  color:#c79320;background:linear-gradient(150deg,#fff6d9,#fffdf6);border:1px solid #e9daab;border-radius:26px;box-shadow:0 13px 32px #785d1930}
.zg-home-gift .zg-gift-heading-art img{width:118px;height:110px;object-fit:contain;filter:drop-shadow(0 8px 11px #ac793949)}
.zg-home-gift .zg-gift-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(15px,2vw,27px);align-items:stretch}
.zg-home-gift .zg-gift-card{border:1px solid #e8dfcb;border-radius:28px;background:#fffefa;box-shadow:0 18px 43px #264c2720;min-width:0}
.zg-home-gift .zg-gift-control{padding:clamp(24px,3.2vw,44px);display:flex;flex-direction:column;gap:14px}
.zg-home-gift .zg-gift-step{color:#a27c19;font-size:10px;letter-spacing:.15em;font-weight:890;text-transform:uppercase}
.zg-home-gift h3{font-size:clamp(25px,3vw,36px);letter-spacing:-.05em;line-height:1.13;color:#17442f;margin:0}
.zg-home-gift .zg-gift-control p{font-size:13px;line-height:1.6;color:#687966;margin:0}
.zg-home-gift .zg-gift-amounts{display:flex;flex-wrap:wrap;gap:8px;margin-top:4px}
.zg-home-gift .zg-gift-amounts button{
  border:1px solid #cdd7c7;background:#f8faf4;color:#1d4a32;border-radius:12px;
  min-width:62px;min-height:47px;padding:11px 16px;
  font-size:14px;font-weight:830;cursor:pointer;transition:transform .2s,border-color .2s,background .2s,box-shadow .2s;
}
.zg-home-gift .zg-gift-amounts button:hover{border-color:#dbaa20;transform:translateY(-2px)}
.zg-home-gift .zg-gift-amounts button[aria-pressed="true"]{background:linear-gradient(120deg,#ffde67,#ffc30b);
  color:#163c2d;border-color:#d59b10;box-shadow:0 6px 16px #e8b02131}
.zg-home-gift .zg-gift-label{display:grid;gap:9px;color:#2b5139;font-size:13px;font-weight:800}
.zg-home-gift textarea{display:block;width:100%;resize:vertical;min-height:108px;max-height:210px;
  color:#173e2d;background:#fefefb;border:1px solid #cfdccb;
  border-radius:14px;padding:15px 16px;font:500 14px/1.6 Inter,system-ui,sans-serif;outline-offset:3px}
.zg-home-gift .zg-gift-buttons{display:flex;align-items:center;flex-wrap:wrap;gap:10px}
.zg-home-gift .zg-gift-replay{
  display:inline-flex;gap:9px;align-items:center;justify-content:center;
  min-height:47px;padding:12px 19px;background:linear-gradient(115deg,#153e2b,#245a3e);
  color:#fff;border:1px solid #245b43;border-radius:13px;
  font-size:13px;font-weight:820;cursor:pointer;box-shadow:0 9px 18px #113b2936;
}
.zg-home-gift .zg-gift-real{
  display:inline-flex;gap:7px;align-items:center;justify-content:center;
  min-height:47px;padding:12px 18px;background:linear-gradient(115deg,#ffe391,#ffce31);
  color:#203f2e!important;text-decoration:none!important;border:1px solid #e8bb35;border-radius:13px;
  font-size:13px;font-weight:820;
}
.zg-home-gift :is(button,a,textarea):focus-visible{outline:3px solid #e5a708;outline-offset:3px}
.zg-home-gift :is(.zg-gift-replay,.zg-gift-real):hover{transform:translateY(-1px);box-shadow:0 12px 21px #916b192b}
.zg-home-gift .zg-gift-footnote{font-size:11px;line-height:1.55;color:#687b6b}
.zg-home-gift .zg-gift-preview{
  position:relative;overflow:hidden;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;
  min-height:580px;padding:30px clamp(18px,2vw,36px) 31px;
  background:radial-gradient(ellipse at 50% 31%,#fffdf1 0%,#fff6e1 48%,#f6ebd4 100%);
  color:#164431;text-align:center;border:1px solid #eed9a3;box-shadow:0 18px 45px #9b782018,inset 0 1px 0 #fff;
}
.zg-home-gift .zg-gift-preview:before{
  content:"";position:absolute;inset:13px;border:1px solid #ffffffaa;pointer-events:none;border-radius:19px
}
.zg-home-gift .zg-gift-preview-halo{
  position:absolute;top:7%;left:50%;transform:translateX(-50%);
  width:min(90%,460px);aspect-ratio:1;
  border-radius:50%;background:radial-gradient(circle,#ffe5935c,#ffdf8821 37%,transparent 69%);
  box-shadow:inset 0 0 0 1px #e8d38a18;
}
.zg-home-gift .zg-gift-preview-caption{position:relative;z-index:3;margin-top:0;max-width:460px}
.zg-home-gift .zg-gift-preview-caption .zg-gift-step{color:#956c1d;font-size:11px}
.zg-home-gift .zg-gift-preview-caption h3{font-size:clamp(25px,3vw,34px);margin:8px 0 10px;line-height:1.12}
.zg-home-gift .zg-gift-preview-caption blockquote{color:#476c51;font:italic clamp(14px,1.45vw,17px)/1.55 Georgia,serif;margin:0 auto 10px;max-width:460px}
.zg-home-gift .zg-gift-preview-caption strong{display:block;font-size:clamp(18px,2vw,23px);color:#95651b;margin:5px 0}
.zg-home-gift .zg-gift-preview-caption small{font-size:11px;color:#71806b}
.zg-home-gift .zg-gift-scene{
  position:relative;flex:1;display:flex;align-items:center;justify-content:center;
  width:100%;min-height:318px;margin-bottom:10px;isolation:isolate
}
.zg-home-gift .zg-gift-stage-floor{
  position:absolute;left:50%;bottom:15px;transform:translateX(-50%);
  width:260px;height:38px;border-radius:50%;background:#a8813880;filter:blur(16px);
}
.zg-home-gift .zg-gift-box-3d{
  position:relative;width:250px;height:265px;transform-origin:50% 80%;
  filter:drop-shadow(0 16px 14px #c0843342)
}
.zg-home-gift .zg-gift-box-base{
  position:absolute;bottom:22px;left:37px;width:178px;height:169px;
  background:linear-gradient(118deg,#fff1ae 0%,#ffd866 23%,#efad32 69%,#d78d24 100%);
  border:3px solid #fff0ae;border-radius:14px 14px 17px 17px;
  box-shadow:inset -17px -9px 0 #8d541e17,inset 9px 0 0 #fff7d63b,0 9px 17px #5a421b2a;
}
.zg-home-gift .zg-gift-box-base:before{
  content:"";position:absolute;inset:-3px auto -3px 68px;width:35px;
  background:linear-gradient(90deg,#ef7596,#da3a70 53%,#f78da9);
  border-left:2px solid #ffb3c8b8;border-right:2px solid #b52d5680;
}
.zg-home-gift .zg-gift-box-base:after{
  content:"";position:absolute;left:16px;top:29px;width:48px;height:10px;
  background:#fff9c667;border-radius:50%;transform:rotate(-19deg);filter:blur(5px)
}
.zg-home-gift .zg-gift-box-lid{
  position:absolute;z-index:4;top:54px;left:19px;width:217px;height:72px;
  border-radius:11px 11px 17px 17px;
  border:3px solid #fff0b1;
  background:linear-gradient(130deg,#fff7ce 0%,#ffe18a 38%,#f9c65d 75%,#e5a43b 100%);
  box-shadow:inset -16px -12px 0 #8c601828,0 11px 16px #6049243b;
  transform-origin:20% 70%;
}
.zg-home-gift .zg-gift-box-lid:before{
  content:"";position:absolute;inset:-3px auto -3px 84px;width:37px;
  background:linear-gradient(90deg,#f995b1,#db4178,#fcaac0);
  border-left:2px solid #ffd0de;
}
.zg-home-gift .zg-gift-box-bow{
  position:absolute;left:99px;top:-55px;height:60px;width:42px;z-index:4
}
.zg-home-gift .zg-gift-box-bow:before,.zg-home-gift .zg-gift-box-bow:after{
  content:"";position:absolute;top:1px;width:65px;height:52px;
  border:13px solid #e76793;border-radius:64% 66% 34% 70%;
  background:#fff4cf;
  box-shadow:inset 0 4px 0 #ffa7bf;
}
.zg-home-gift .zg-gift-box-bow:before{right:17px;transform:rotate(-30deg)}
.zg-home-gift .zg-gift-box-bow:after{left:10px;transform:rotate(30deg)}
.zg-home-gift .zg-gift-box-heart{
  position:absolute;z-index:3;top:79px;left:calc(50% - 30px);
  display:grid;place-items:center;width:60px;height:60px;border-radius:50%;
  background:radial-gradient(circle,#fff9cadd,transparent 68%);
  font-size:42px;color:#d84a72;opacity:0;filter:drop-shadow(0 0 12px #ffc30b);
}
.zg-home-gift .zg-gift-box-sparkles{
  position:absolute;inset:0;z-index:5;pointer-events:none
}
.zg-home-gift .zg-gift-box-sparkles>span{
  position:absolute;left:50%;top:44%;opacity:0;color:#d39c21;font-size:25px;
  text-shadow:0 0 9px #fff9c7,0 0 12px #ffe092
}
.zg-home-gift .zg-gift-box-sparkles>span:nth-child(2n){color:#e274a3}
.zg-home-gift .zg-gift-box-sparkles>span:nth-child(3n){color:#8fbf82}
.zg-home-gift .zg-gift-preview.is-opening .zg-gift-box-3d{
  animation:zg-gift-big-bounce 3.7s cubic-bezier(.22,.75,.27,1) both
}
.zg-home-gift .zg-gift-preview.is-opening .zg-gift-box-lid{
  animation:zg-gift-big-lid 3.7s cubic-bezier(.22,.77,.26,1) both
}
.zg-home-gift .zg-gift-preview.is-opening .zg-gift-box-heart{
  animation:zg-gift-big-heart 3.7s ease both
}
.zg-home-gift .zg-gift-preview.is-opening .zg-gift-box-sparkles>span{
  animation:zg-gift-big-sparkle 1.75s ease-out .78s both
}
.zg-home-gift .zg-gift-preview.is-opening .zg-gift-box-sparkles>span:nth-child(2){--tx:-135px;--ty:-100px;animation-delay:.93s}
.zg-home-gift .zg-gift-preview.is-opening .zg-gift-box-sparkles>span:nth-child(3){--tx:120px;--ty:-157px;animation-delay:1.08s}
.zg-home-gift .zg-gift-preview.is-opening .zg-gift-box-sparkles>span:nth-child(4){--tx:144px;--ty:-25px;animation-delay:1.21s}
.zg-home-gift .zg-gift-preview.is-opening .zg-gift-box-sparkles>span:nth-child(5){--tx:-100px;--ty:-185px;animation-delay:1.12s}
.zg-home-gift .zg-gift-preview.is-opening .zg-gift-box-sparkles>span:nth-child(6){--tx:35px;--ty:-200px;animation-delay:1.27s}
@keyframes zg-gift-big-bounce{
  0%,11%{transform:translateY(18px) scale(.89) rotate(-5deg)}
  28%{transform:translateY(-11px) scale(1.02) rotate(3deg)}
  42%,66%{transform:translateY(-10px) scale(1.05) rotate(0)}
  82%{transform:translateY(5px) scale(.99)}
  100%{transform:translateY(0) scale(1) rotate(0)}
}
@keyframes zg-gift-big-lid{
  0%,19%{transform:translate3d(0,0,0) rotate(0deg)}
  31%{transform:translate3d(-28px,-75px,0) rotate(-16deg)}
  43%,68%{transform:translate3d(-36px,-119px,0) rotate(-25deg)}
  87%{transform:translate3d(-10px,-30px,0) rotate(-6deg)}
  100%{transform:translate3d(0,0,0) rotate(0deg)}
}
@keyframes zg-gift-big-heart{
  0%,24%,92%,100%{opacity:0;transform:scale(.28) translateY(0)}
  43%,63%{opacity:1;transform:scale(2.15) translateY(-29px)}
  77%{opacity:.85;transform:scale(2.1) translateY(-44px)}
}
@keyframes zg-gift-big-sparkle{
  0%{opacity:0;transform:translate(0,0) rotate(0) scale(.2)}
  25%{opacity:1;transform:translate(calc(var(--tx,-90px)*.5),calc(var(--ty,-100px)*.5)) rotate(120deg) scale(1.3)}
  100%{opacity:0;transform:translate(var(--tx,-90px),var(--ty,-100px)) rotate(280deg) scale(.5)}
}
.zg-home-gift .zg-gift-demo-notice{
  display:flex;gap:7px;align-items:flex-start;
  color:#6c7867;font-size:11px;line-height:1.5;margin-top:9px
}
.zg-home-gift .zg-gift-demo-notice:before{
  content:"✓";color:#1c774a;display:inline-grid;place-items:center;
  border-radius:50%;background:#dff2de;flex:none;width:16px;height:16px;font-size:12px;
}
@media(max-width:950px){
 .zg-home-gift .zg-gift-heading-art{display:none}
 .zg-home-gift .zg-gift-grid{grid-template-columns:1fr}
 .zg-home-gift .zg-gift-preview{min-height:510px}
 .zg-home-gift .zg-gift-scene{min-height:335px}
}
@media(max-width:600px){
 .zg-home-gift .zg-gift-wrap{padding:42px 16px}
 .zg-home-gift h2{font-size:clamp(34px,9vw,49px)}
 .zg-home-gift .zg-gift-control{padding:22px 19px}
 .zg-home-gift .zg-gift-preview{padding:20px 16px 25px;min-height:480px}
 .zg-home-gift .zg-gift-box-3d{transform:scale(.84)}
 .zg-home-gift .zg-gift-amounts button{flex:1 1 60px}
 .zg-home-gift .zg-gift-buttons>*{flex:1 1 170px}
}
@media(prefers-reduced-motion:reduce){
 .zg-home-gift *, .zg-home-gift *:before,.zg-home-gift *:after{
   animation:none!important;transition:none!important;scroll-behavior:auto!important
 }
}
