.gift-intro { text-align:center; max-width:800px; padding-block:2rem; }
.gift-intro img { border-radius:50%; }
.gift-promo { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:1rem; background:#e8efe2; padding:clamp(1rem,4vw,2.5rem); border-radius:24px; margin-block:2rem; }
.gift-promo h2 { margin:.4rem 0; }
.gift-models { display:grid; grid-auto-flow:column; grid-auto-columns:clamp(230px,72vw,330px); gap:16px; overflow-x:auto; scroll-snap-type:x mandatory; padding:.5rem .5rem 1.5rem; }
.gift-card { display:grid; align-content:space-between; text-align:left; position:relative; overflow:hidden; isolation:isolate; gap:1rem; min-height:200px; padding:1.2rem; border:1px solid #183e3555; border-radius:18px; background:var(--gift,#153f33); color:var(--gift-ink,#fffaf1); box-shadow:0 9px 18px #143b3329; scroll-snap-align:center; }
/* The same artwork is used in the model picker, preview and printable card. */
.gift-card::before,.gift-card::after {
  content:""; position:absolute; z-index:-1; pointer-events:none;
  inset:auto .9rem .75rem auto; width:36%; max-width:9rem; aspect-ratio:1;
}
.gift-card strong { font:italic clamp(1.35rem,4vw,1.75rem) Georgia,serif; }
.gift-card :is(span,p,strong) { overflow-wrap:anywhere; justify-self:start; background:var(--gift,#153f33); border-radius:.2em; box-decoration-break:clone; }
.gift-card[aria-pressed=true],.gift-card:focus-visible { outline:3px solid #446f4e; outline-offset:2px; }

/* Classic: concentric lines and an inset frame. */
.gift-tone-0::before {
  background:repeating-radial-gradient(circle at bottom right, transparent 0 10px,#b4d0ad66 11px 12px);
}
.gift-tone-0::after { inset:.45rem; width:auto; max-width:none; aspect-ratio:auto; border:1px solid #b4d0ad66; border-radius:13px; }

/* Birthday: three balloons over scattered confetti. */
.gift-tone-1 { --gift:#e9f1d6; --gift-ink:#25422b; }
.gift-tone-1::before {
  background:
    radial-gradient(ellipse 15% 20% at 24% 40%,#9fba79 98%,transparent),
    radial-gradient(ellipse 17% 23% at 52% 28%,#c1d590 98%,transparent),
    radial-gradient(ellipse 16% 21% at 80% 43%,#7faa78 98%,transparent);
}
.gift-tone-1::after {
  background:radial-gradient(circle,#6a9558 15%,transparent 17%) 0 0 / 24px 29px;
  opacity:.35;
}

/* Christmas: layered fir silhouettes and snowfall. */
.gift-tone-2 { --gift:#183d30; --gift-ink:#f3f6dc; }
.gift-tone-2::before {
  background:linear-gradient(145deg,#b2c89a,#507c5b);
  clip-path:polygon(57% 3%,76% 37%,68% 37%,88% 63%,77% 63%,100% 88%,63% 88%,63% 100%,50% 100%,50% 88%,12% 88%,35% 63%,24% 63%,45% 37%,37% 37%);
}
.gift-tone-2::after {
  inset:.6rem .7rem auto auto;
  background:radial-gradient(circle,#e5efd1 10%,transparent 12%) 0 0 / 29px 23px;
  opacity:.65;
}

/* Puppy Love: a large four-toed paw print. */
.gift-tone-3 { --gift:#deeadb; --gift-ink:#204837; }
.gift-tone-3::before {
  transform:rotate(-14deg);
  background:
    radial-gradient(ellipse 26% 24% at 51% 67%,#8bab86 98%,transparent),
    radial-gradient(ellipse 9% 12% at 18% 42%,#8bab86 98%,transparent),
    radial-gradient(ellipse 9% 14% at 38% 26%,#8bab86 98%,transparent),
    radial-gradient(ellipse 9% 14% at 60% 26%,#8bab86 98%,transparent),
    radial-gradient(ellipse 9% 12% at 81% 42%,#8bab86 98%,transparent);
}

/* Special Moments: offset starbursts. */
.gift-tone-4 { --gift:#38563d; --gift-ink:#f5f6e4; }
.gift-tone-4::before,.gift-tone-4::after {
  background:#b8cc9c;
  clip-path:polygon(50% 0,59% 41%,100% 50%,59% 59%,50% 100%,41% 59%,0 50%,41% 41%);
}
.gift-tone-4::before { width:28%; transform:rotate(10deg); }
.gift-tone-4::after { inset:auto 25% 30% auto; width:11%; }

/* Just for You: a ribbon and its bow. */
.gift-tone-5 { --gift:#eef0e2; --gift-ink:#2d4838; }
.gift-tone-5::before {
  inset:0 0 0 auto; width:34%; max-width:none; aspect-ratio:auto;
  background:linear-gradient(90deg,transparent 43%,#8fb29a 44% 53%,transparent 54%),
    linear-gradient(transparent 44%,#8fb29a 45% 52%,transparent 53%);
}
.gift-tone-5::after {
  inset:23% 4% auto auto; width:27%;
  background:radial-gradient(ellipse 28% 17% at 27% 39%,transparent 58%,#648c72 62% 93%,transparent 97%),
    radial-gradient(ellipse 28% 17% at 73% 39%,transparent 58%,#648c72 62% 93%,transparent 97%);
}
.gift-print { print-color-adjust:exact; -webkit-print-color-adjust:exact; }
.gift-print :is(h1,p) { position:relative; margin:.3rem 0; }
.gift-config { max-width:740px; }
.gift-config progress { width:100%;accent-color:#275d44; }
.gift-config fieldset { border:1px solid #bcc8b8;border-radius:14px;padding:1rem;min-width:0; }
.gift-config label { display:grid;gap:.3rem;margin:.7rem 0; }
.gift-config :is(input,textarea,select) { width:100%;min-height:44px;font-size:1rem; }
.gift-actions { display:flex;gap:1rem;margin-block:1rem; }
.gift-actions button { min-height:44px; }
.gift-terms { white-space:pre-wrap; }
.gift-footer { text-align:center; }
#gift-form [hidden] { display:none!important; }
