body.is-public-link {
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% 34%, rgba(255, 255, 255, 0.98) 0 15%, rgba(249, 247, 236, 0.72) 42%, transparent 68%),
    linear-gradient(145deg, #f8f5e9 0%, #f1f5e9 48%, #fbf8ef 100%);
}

body.is-public-link > .site-header,
body.is-public-link > main#top {
  display: none;
}

body.is-public-link .floating-clovers {
  opacity: 0.58;
}

body.is-public-link .floating-clover {
  filter: blur(0.3px) drop-shadow(0 22px 34px rgba(0, 76, 27, 0.12));
}

.public-link-page {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100svh;
  color: #073d24;
}

.public-link-page[hidden] {
  display: none;
}

.link-header,
.link-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.link-header {
  min-height: 84px;
}

.link-brand {
  display: inline-flex;
  width: 124px;
}

.link-brand img,
.card-logo {
  display: block;
  width: 100%;
  height: auto;
}

.link-header-note,
.link-footer {
  color: #65736a;
  font-size: 0.84rem;
  font-weight: 700;
}

.link-stage {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 18px;
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 18px 20px 26px;
}

.link-card-wrap {
  width: min(100%, 480px);
  perspective: 1000px;
}

.link-card {
  position: relative;
  width: 100%;
  min-height: 650px;
  overflow: hidden;
  border: 1px solid rgba(205, 194, 155, 0.44);
  border-radius: 34px;
  background:
    linear-gradient(132deg, rgba(255, 255, 255, 0.72), transparent 42%),
    #fffdf6;
  box-shadow:
    0 36px 90px rgba(31, 53, 37, 0.16),
    0 8px 22px rgba(73, 75, 46, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.link-card::before,
.link-card::after {
  position: absolute;
  z-index: 0;
  width: 440px;
  height: 220px;
  border: 1px solid rgba(205, 170, 66, 0.28);
  border-radius: 50%;
  background: rgba(219, 226, 191, 0.32);
  content: "";
  transform: rotate(-14deg);
}

.link-card::before {
  right: -250px;
  bottom: -94px;
}

.link-card::after {
  bottom: -156px;
  left: -210px;
  transform: rotate(19deg);
}

.link-card > * {
  position: relative;
  z-index: 1;
}

.card-gold-line {
  position: absolute;
  z-index: 2;
  inset: 8px;
  pointer-events: none;
  border: 1px solid rgba(203, 164, 48, 0.24);
  border-radius: 27px;
}

.card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px 36px 0;
}

.card-logo {
  width: 106px;
}

.card-kind {
  color: #8b7652;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.invitation-copy {
  padding: 46px 38px 0;
}

.card-eyebrow,
.gift-heading p {
  margin: 0;
  color: #335846;
  font-size: 1rem;
  font-weight: 700;
}

.invitation-copy h1 {
  max-width: 390px;
  min-height: 78px;
  margin: 10px 0 0;
  color: #004c1b;
  font-family: var(--font-hero);
  font-size: clamp(2rem, 6vw, 2.72rem);
  font-weight: 700;
  line-height: 1.04;
  overflow-wrap: anywhere;
}

.sender-row {
  display: grid;
  grid-template-columns: 50px 1fr auto;
  gap: 12px;
  align-items: center;
  margin: 24px 38px 0;
  padding-top: 18px;
  border-top: 1px dashed rgba(77, 105, 78, 0.28);
}

.sender-avatar {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border: 2px solid rgba(255, 255, 255, 0.88);
  border-radius: 50%;
  background: linear-gradient(145deg, #cdd8b2, #628a68);
  box-shadow: 0 8px 18px rgba(44, 81, 55, 0.15);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 850;
}

.sender-row > div {
  display: grid;
  gap: 2px;
}

.sender-row strong {
  font-size: 0.94rem;
}

.sender-row div span {
  color: #77827c;
  font-size: 0.75rem;
  font-weight: 650;
}

.collection-total {
  display: grid;
  justify-items: end;
}

.collection-total strong {
  color: #004c1b;
  font-family: var(--font-hero);
  font-size: 1.25rem;
  line-height: 1;
}

.collection-total small {
  margin-top: 3px;
  color: #879087;
  font-size: 0.65rem;
  font-weight: 700;
}

.clover-orbit {
  position: absolute;
  display: grid;
  place-items: center;
}

.invitation-orbit {
  top: 330px;
  left: 50%;
  width: 260px;
  height: 260px;
  transform: translateX(-50%);
}

.clover-orbit::before {
  position: absolute;
  inset: 13%;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0 28%, rgba(255, 255, 255, 0.76) 48%, rgba(255, 255, 255, 0) 74%);
  filter: blur(3px);
  content: "";
}

.clover-orbit img {
  position: relative;
  z-index: 2;
  width: 76%;
  filter: drop-shadow(0 15px 18px rgba(10, 75, 35, 0.18));
  animation: card-clover-float 5.5s ease-in-out infinite;
}

.orbit-ring {
  position: absolute;
  border: 1px solid rgba(193, 157, 53, 0.21);
  border-radius: 50%;
}

.ring-one {
  inset: 8%;
}

.ring-two {
  inset: 19%;
  border-color: rgba(51, 103, 66, 0.13);
}

.card-primary-action {
  position: absolute;
  right: 34px;
  bottom: 30px;
  left: 34px;
  display: grid;
  place-items: center;
  min-height: 82px;
  border: 0;
  border-radius: 21px;
  background: linear-gradient(145deg, #006033, #003d21);
  box-shadow: 0 14px 26px rgba(0, 76, 27, 0.22);
  color: #fff;
  cursor: pointer;
  font: inherit;
  text-align: center;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.card-primary-action:hover,
.card-primary-action:focus-visible {
  box-shadow: 0 18px 32px rgba(0, 76, 27, 0.28);
  outline: none;
  transform: translateY(-2px);
}

.card-primary-action:active {
  transform: scaleX(1.025) scaleY(0.96);
}

.card-primary-action:disabled {
  background: #75837a;
  box-shadow: none;
  cursor: default;
}

.card-primary-action span {
  font-size: 1.05rem;
  font-weight: 850;
}

.card-primary-action small {
  color: #e7dcae;
  font-size: 0.69rem;
  font-weight: 700;
}

.gift-card {
  min-height: 690px;
}

.gift-heading {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 14px;
  align-items: center;
  margin: 38px 38px 0;
}

.gift-heading p {
  color: #004c1b;
  font-size: 1.32rem;
}

.gift-heading div > span {
  display: block;
  margin-top: 4px;
  color: #778078;
  font-size: 0.73rem;
  font-weight: 650;
}

.gift-orbit {
  top: 188px;
  left: 50%;
  width: 300px;
  height: 300px;
  transform: translateX(-50%);
}

.gift-orbit img {
  width: 82%;
}

.gift-card blockquote {
  position: absolute;
  top: 478px;
  right: 44px;
  left: 44px;
  margin: 0;
  color: #163d2a;
  font-family: var(--font-hero);
  font-size: 1.18rem;
  font-weight: 650;
  line-height: 1.32;
  text-align: center;
}

.gift-card blockquote::before,
.gift-card blockquote::after {
  color: #c2a343;
  content: '"';
}

.gift-detail {
  position: absolute;
  top: 552px;
  right: 0;
  left: 0;
  margin: 0;
  color: #8b7652;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-align: center;
  text-transform: uppercase;
}

.gift-gold .clover-orbit::before {
  background: radial-gradient(circle, #fff 0 27%, rgba(255, 250, 226, 0.82) 47%, rgba(255, 255, 255, 0) 74%);
}

.gift-crystal .clover-orbit::before {
  background: radial-gradient(circle, #fff 0 25%, rgba(229, 248, 249, 0.82) 49%, rgba(255, 255, 255, 0) 74%);
}

.app-companion {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(100%, 480px);
  padding: 12px 12px 12px 14px;
  border: 1px solid rgba(196, 205, 187, 0.74);
  border-radius: 20px;
  background: rgba(255, 255, 250, 0.78);
  box-shadow: 0 12px 30px rgba(40, 63, 44, 0.07);
  backdrop-filter: blur(16px);
}

.app-companion[hidden] {
  display: none;
}

.app-companion > div {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.app-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 46px;
  height: 46px;
  overflow: hidden;
  border-radius: 12px;
  background: #fffdf2;
  box-shadow: inset 0 0 0 1px rgba(0, 76, 27, 0.08);
}

.app-icon img {
  width: 38px;
}

.app-companion strong {
  display: block;
  font-size: 0.84rem;
}

.app-companion p {
  max-width: 250px;
  margin: 3px 0 0;
  color: #6b766f;
  font-size: 0.7rem;
  line-height: 1.25;
}

.app-companion button {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 11px;
  background: #0a5b31;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
}

.app-companion button:disabled {
  background: #e5e9e1;
  color: #718077;
}

.link-footer {
  min-height: 64px;
  border-top: 1px solid rgba(198, 207, 190, 0.54);
}

.link-footer a {
  color: #07522e;
}

.link-card-loading {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 24px;
  padding: 38px;
}

.card-shimmer {
  border-radius: 999px;
  background: linear-gradient(90deg, #eeeade 25%, #f9f7ef 48%, #eeeade 72%);
  background-size: 240% 100%;
  animation: card-shimmer 1.5s linear infinite;
}

.shimmer-short {
  justify-self: start;
  width: 104px;
  height: 25px;
}

.shimmer-title {
  width: 72%;
  height: 22px;
  margin-top: 28px;
}

.shimmer-goal {
  width: 88%;
  height: 50px;
}

.shimmer-orb {
  width: 230px;
  height: 230px;
  border-radius: 50%;
}

.shimmer-button {
  width: 100%;
  height: 82px;
  margin-top: auto;
  border-radius: 21px;
}

.unavailable-card {
  display: grid;
  justify-items: center;
  align-content: center;
  padding: 44px;
  text-align: center;
}

.unavailable-card .card-logo {
  width: 110px;
  margin-bottom: 40px;
}

.unavailable-clover {
  display: grid;
  place-items: center;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff, rgba(255, 255, 255, 0) 68%);
  filter: grayscale(0.4);
  opacity: 0.72;
}

.unavailable-clover img {
  width: 150px;
}

.unavailable-card h1 {
  max-width: 360px;
  margin: 10px 0;
  font-family: var(--font-hero);
  font-size: 2rem;
  line-height: 1.08;
}

.unavailable-card > p:last-of-type {
  margin: 0;
  color: #728078;
}

@keyframes card-clover-float {
  0%,
  100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-7px) rotate(1deg); }
}

@keyframes card-shimmer {
  to { background-position: -240% 0; }
}

@media (max-width: 600px) {
  body.is-public-link .floating-clovers {
    opacity: 0.36;
  }

  .link-header {
    min-height: 68px;
  }

  .link-brand {
    width: 102px;
  }

  .link-header-note {
    font-size: 0.68rem;
  }

  .link-stage {
    display: block;
    padding: 6px 12px 20px;
  }

  .link-card {
    border-radius: 27px;
  }

  .card-gold-line {
    border-radius: 21px;
  }

  .card-topline {
    padding: 25px 28px 0;
  }

  .invitation-copy {
    padding: 37px 29px 0;
  }

  .invitation-copy h1 {
    min-height: 70px;
    font-size: clamp(1.9rem, 9.5vw, 2.5rem);
  }

  .sender-row,
  .gift-heading {
    margin-right: 29px;
    margin-left: 29px;
  }

  .invitation-orbit {
    top: 322px;
    width: 245px;
    height: 245px;
  }

  .card-primary-action {
    right: 25px;
    bottom: 23px;
    left: 25px;
    min-height: 76px;
  }

  .gift-card {
    min-height: 680px;
  }

  .gift-heading {
    margin-top: 34px;
  }

  .gift-heading p {
    font-size: 1.15rem;
  }

  .gift-orbit {
    top: 184px;
    width: 270px;
    height: 270px;
  }

  .gift-card blockquote {
    top: 450px;
    right: 32px;
    left: 32px;
    font-size: 1.07rem;
  }

  .gift-detail {
    top: 535px;
  }

  .app-companion {
    margin-top: 14px;
  }

  .link-footer {
    display: none;
  }
}

@media (max-width: 390px) {
  .link-header-note,
  .collection-total {
    display: none;
  }

  .sender-row {
    grid-template-columns: 50px 1fr;
  }

  .app-companion button {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .clover-orbit img,
  .card-shimmer {
    animation: none;
  }

  .card-primary-action {
    transition: none;
  }
}
