@font-face {
  font-family: "Geometria";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/Geometria-Regular.woff2") format("woff2");
}
@font-face {
  font-family: "Geometria";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/Geometria-Medium.woff2") format("woff2");
}
@font-face {
  font-family: "Geometria";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/Geometria-Bold.woff2") format("woff2");
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: "Geometria", Arial, sans-serif;
  color: #fff;
  background: #287b24;
}
button,
input {
  font: inherit;
}
button {
  cursor: pointer;
}
button:focus-visible {
  outline: 3px solid #fff8c9;
  outline-offset: 4px;
}
[hidden] {
  display: none !important;
}
main {
  min-height: 100svh;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 78% 62%, #71ac20, transparent 60%),
    linear-gradient(112deg, #12672e, #358623 62%, #438822);
  display: grid;
  align-content: center;
}
.hero {
  width: min(100%, 1700px);
  margin: auto;
  position: relative;
  padding: clamp(24px, 4vh, 60px) clamp(16px, 2vw, 40px) clamp(45px, 6vh, 78px)
    clamp(26px, 5.8vw, 100px);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  column-gap: clamp(12px, 2vw, 40px);
}
.copy {
  min-width: 0;
  container-type: inline-size;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 2;
  font-family: "Geometria", Arial, sans-serif;
}
.logo {
  width: clamp(124px, 12.5vw, 190px);
  height: auto;
  display: block;
  margin-bottom: clamp(35px, 7vh, 76px);
}
.intro h1 {
  margin: 0;
  line-height: 1;
}
.holiday-lettering {
  display: block;
  width: 100%;
  height: auto;
  max-width: 650px;
}
.offer-copy {
  text-transform: uppercase;
  margin: clamp(22px, 3.3vh, 38px) 0 0;
  color: #f6ffe9;
  font-size: clamp(22px, 5.6cqw, 40px);
  font-weight: 700;
  line-height: 1.24;
  letter-spacing: -0.015em;
}
.offer-tag {
  display: inline-block;
  font-size: 0.62em;
  letter-spacing: 0.01em;
  color: #e1f5c4;
  margin-bottom: 0.28em;
  font-weight: 600;
}
.gift-hint {
  position: absolute;
  top: 97.5%;
  inset-inline: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.58em;
  font:
    720 clamp(19px, 2vw, 30px) / 1.4 "Geometria",
    Arial,
    sans-serif;
  color: #fff;
  letter-spacing: -0.012em;
  text-align: center;
}
.cue-arrow {
  display: inline-grid;
  place-items: center;
  width: 1.55em;
  height: 1.55em;
  background: #e4f7b1;
  border-radius: 50%;
  color: #21572d;
  line-height: 1;
}
.unwrapping .cue-arrow {
  visibility: hidden;
}
.scene {
  position: relative;
  isolation: isolate;
  width: min(100%, 82svh);
  justify-self: end;
  aspect-ratio: 1;
}
.room {
  position: absolute;
  inset: 0;
  background-size: 100% 100%;
  mask-image:
    linear-gradient(90deg, transparent, #000 11%, #000 96%, transparent),
    linear-gradient(0deg, transparent, #000 7%, #000 96%, transparent);
  mask-composite: intersect;
}
.face {
  position: absolute;
  left: 27.75%;
  top: 4.5%;
  width: 40%;
  height: 32.2222%;
  mask-image:
    linear-gradient(0deg, transparent, #000 3%, #000 97%, transparent),
    linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
  mask-composite: intersect;
}
.spark {
  position: absolute;
  pointer-events: none;
  width: var(--w);
  aspect-ratio: 1;
  border-radius: 50%;
  background: #fff7bb;
  box-shadow: 0 0 8px 2px #ffe985;
  translate: -50% -50%;
  animation: glow var(--glow-period, 3.6s) ease-in-out infinite alternate;
  animation-delay: var(--delay);
}
.spark.star {
  clip-path: polygon(
    50% 0,
    60% 39%,
    100% 50%,
    60% 58%,
    50% 100%,
    41% 59%,
    0 50%,
    39% 40%
  );
  background: #fff3b1;
  width: 1.7%;
}
@keyframes glow {
  0%,
  25% {
    opacity: 0.1;
    scale: 0.65;
  }
  85%,
  100% {
    opacity: 0.9;
    scale: 1.12;
  }
}
.gift {
  --lift: 0;
  --tilt: 0;
  position: absolute;
  width: var(--size);
  bottom: var(--bottom);
  left: var(--left);
  aspect-ratio: 1;
  border: 0;
  background: transparent;
  padding: 0;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  isolation: isolate;
  border-radius: 15%;
  color: #18492a;
}
.gift.chosen {
  z-index: 4;
  touch-action: manipulation;
}
.gift:disabled {
  cursor: default;
}
.gift:before {
  content: "";
  position: absolute;
  bottom: -2%;
  inset-inline: 1%;
  height: 16%;
  background: #1d43098a;
  filter: blur(4px);
  border-radius: 50%;
}
.gift:after {
  content: "";
  position: absolute;
  bottom: -5%;
  inset-inline: -7%;
  height: 19%;
  border: 2px solid #f0ffbb;
  box-shadow: 0 0 11px #c9ff76;
  border-radius: 50%;
  opacity: 0;
  transition: 0.18s;
  z-index: -1;
}
.scene.is-ready:not(.unwrapping) .gift:after {
  opacity: 0.48;
  border-width: 1px;
  inset-inline: 0;
}
.scene.is-ready:not(.unwrapping) .gift:focus-visible:after {
  opacity: 1;
  border-width: 2px;
}
@media (hover: hover) {
  .scene.is-ready:not(.unwrapping) .gift:hover:after {
    opacity: 1;
    border-width: 2px;
  }
}
.gift:is(:focus-visible, .chosen):after {
  opacity: 0.9;
}
@media (hover: hover) {
  .gift:not(:disabled):hover:after {
    opacity: 0.85;
  }
}
.shell,
.lid,
.ticket {
  pointer-events: none;
  position: absolute;
  display: block;
}
.shell {
  width: 98%;
  left: 1%;
  bottom: 0;
  z-index: 2;
}
.lid {
  z-index: 4;
  width: 100%;
  left: 0;
  bottom: 45%;
  transform-origin: 72% 85%;
  transform: translate(calc(var(--lift) * 37%), calc(var(--lift) * -115%))
    rotate(calc(var(--lift) * 17deg));
  opacity: calc(1 - var(--lift) * 0.75);
}
.gift:nth-of-type(1) :is(.lid, .shell) {
  filter: saturate(0.28) brightness(1.12);
}
.gift:nth-of-type(3) :is(.lid, .shell) {
  filter: hue-rotate(32deg) saturate(0.8) brightness(0.87);
}

.gift {
  container-type: inline-size;
}
.gift.chosen:after {
  opacity: 0;
}
.front-wall {
  position: absolute;
  width: 98%;
  left: 1%;
  bottom: 0;
  z-index: 3;
  pointer-events: none;
  clip-path: polygon(0 32%, 81% 37%, 100% 4%, 100% 100%, 0 100%);
}
.gift:nth-of-type(1) .front-wall {
  filter: saturate(0.28) brightness(1.12);
}
.gift:nth-of-type(3) .front-wall {
  filter: hue-rotate(32deg) saturate(0.8) brightness(0.87);
}
.ticket {
  z-index: 2;
  left: 4%;
  bottom: 31%;
  width: 92%;
  opacity: 0;
  box-shadow: 0 3px 8px #15382144;
}
body:has(.certificate[open]) {
  overflow: hidden;
}
.certificate {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  border: 0;
  margin: 0;
  padding: 0;
  color: #0b0b0b;
  background: transparent;
  overflow: auto;
}
.certificate::backdrop {
  background: transparent;
}
.paper {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  background: #f2f2f0;
  padding: clamp(18px, 3vw, 52px) clamp(22px, 6vw, 100px);
}
.certificate.from-box[open] .paper {
  animation: expand-paper 0.48s cubic-bezier(0.22, 0.66, 0.25, 1) both;
}
@keyframes expand-paper {
  from {
    clip-path: inset(
      var(--card-top, 0px) var(--card-right, 0px) var(--card-bottom, 0px)
        var(--card-left, 0px) round 12px
    );
  }
  to {
    clip-path: inset(0 round 0px);
  }
}

.certificate.from-box[open] :is(.claim-step, footer) {
  animation: paper-ink 0.28s 0.08s ease-out both;
}
@keyframes paper-ink {
  from {
    opacity: 0;
    transform: translateY(7px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
#certificate-title:focus {
  outline: none;
}
#close {
  position: absolute;
  right: 12px;
  top: 12px;
  border: 1px solid #dededc;
  background: #fff;
  width: 42px;
  height: 42px;
  z-index: 2;
  color: #0b0b0b;
  font-size: 24px;
  border-radius: 50%;
}
.certificate button:focus-visible {
  outline-color: #0b0b0b;
}
.paper-body {
  width: min(100%, 720px);
  position: relative;
  margin: auto;
  text-align: center;
  background: #fff;
  border: 1px solid #dededc;
  border-radius: 20px;
  box-shadow: 0 5px 24px #181d1509;
}
.voucher {
  display: block;
  container-type: inline-size;
  isolation: isolate;
  font-family: "Geometria", Arial, sans-serif;
  color: #171917;
  text-align: left;
}
.voucher-face {
  display: grid;
  grid-template-rows: auto 1fr auto;
  aspect-ratio: 1.85;
  padding: 3.4cqw 4.8cqw 2.8cqw;
  background: #fff;
  border: 1px solid #d8ddd6;
  border-radius: 2cqw;
}
.voucher-mast {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2cqw;
  font-size: 1.85cqw;
  font-weight: 520;
  line-height: 1.15;
  color: #424640;
}
.voucher-campaign {
  display: block;
  width: 26cqw;
  height: auto;
}
.voucher-issuer {
  display: flex;
  align-items: center;
  gap: 0.8cqw;
  white-space: nowrap;
}
.voucher-logo {
  position: relative;
  display: block;
  width: 12.4cqw;
}
.voucher-logo img {
  display: block;
  width: 100%;
  height: auto;
  filter: brightness(0);
}
/* Retain the green star from the supplied wordmark. */
.voucher-logo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("assets/logo.png") center/contain no-repeat;
  clip-path: inset(0 0 0 92%);
}
.voucher-value {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.15;
  min-width: 0;
}
.voucher-title {
  font-size: 2.25cqw;
  font-weight: 520;
  color: #545953;
  letter-spacing: 0.005em;
}
.voucher .amount {
  display: block;
  margin: 1cqw 0 0.85cqw;
  color: #177926;
  line-height: 1;
  letter-spacing: -0.055em;
  white-space: nowrap;
  font-size: 14.6cqw;
  font-weight: 670;
}
.voucher .amount strong {
  display: inline-block;
  font: inherit;
  letter-spacing: inherit;
}
.voucher[data-kind="area"] .amount,
.voucher[data-kind="rate"] .amount {
  font-size: 16.5cqw;
}
.voucher-benefit {
  font-size: 2.9cqw;
  font-weight: 570;
  letter-spacing: -0.025em;
}
.voucher-terms {
  text-align: center;
  position: relative;
  border-top: 1px solid #d8ddd6;
  padding-top: 1.8cqw;
  color: #484d48;
  font-size: 1.9cqw;
  font-weight: 520;
  line-height: 1.3;
}
.voucher-terms::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -50%);
  width: 6.5cqw;
  height: 2.2cqw;
  background: #fff url("assets/voucher-stars.svg") center / contain no-repeat;
}
.voucher-terms time {
  white-space: nowrap;
}
@media (max-width: 620px) {
  .paper {
    padding: 58px 12px 18px;
  }
  .paper-body {
    padding: 0;
  }
  #full-voucher .voucher-campaign,
  .gallery .voucher-campaign {
    width: 30cqw;
  }
  #full-voucher .voucher-face,
  .gallery .voucher-face {
    aspect-ratio: 1.48;
    padding: 4.3cqw 4.7cqw 3.5cqw;
    border-radius: 3.3cqw;
  }
  #full-voucher .voucher-mast,
  .gallery .voucher-mast {
    font-size: 2.8cqw;
  }
  #full-voucher .voucher-title,
  .gallery .voucher-title {
    font-size: 3.4cqw;
  }
  #full-voucher .voucher-benefit,
  .gallery .voucher-benefit {
    font-size: 3.9cqw;
  }
  #full-voucher .voucher-terms,
  .gallery .voucher-terms {
    font-size: 2.75cqw;
  }
}
#full-voucher .voucher-face {
  border: 0;
  border-radius: 20px 20px 0 0;
}
.claim-zone {
  margin: 0 4.8%;
  padding: clamp(18px, 2.8vh, 30px) 0;
  border-top: 1px dashed #cad1c6;
  color: #0b0b0b;
  font:
    500 16px/1.4 "Geometria",
    Arial,
    sans-serif;
}
.claim-step {
  width: min(100%, 490px);
  margin: 0 auto;
  text-align: left;
  min-height: 144px;
}
.claim-step h3 {
  margin: 0 0 15px;
  text-align: center;
  font-size: clamp(19px, 2vw, 25px);
  line-height: 1.15;
  letter-spacing: -0.04em;
  font-weight: 650;
}
.claim-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  gap: 10px;
  align-items: end;
}
.claim-field label {
  display: block;
  font-size: 13px;
  margin-bottom: 5px;
  font-weight: 600;
  color: #373c37;
}
.claim-field input {
  display: block;
  width: 100%;
  height: 48px;
  border: 1px solid #cdd2cb;
  border-radius: 12px;
  color: #0b0b0b;
  padding: 0 14px;
  font: inherit;
  background: white;
}
.claim-row .claim {
  height: 48px;
}
.claim-note {
  font-size: 13px;
  color: #626760;
  line-height: 1.4;
  margin: 11px 0 0;
}
.claim-field label small {
  color: #626760;
  font-size: inherit;
  font-weight: 400;
}
.call-step {
  text-align: center;
}
.call-step p {
  margin: 0.5em 0;
}
.call-step #destination {
  white-space: nowrap;
}
.call-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
}
#done {
  text-align: center;
}
#done .claim {
  margin-top: 14px;
}
@media (max-width: 520px) {
  .paper {
    padding: 12px 10px;
  }
  #close {
    width: 36px;
    height: 36px;
    right: 8px;
    top: 8px;
  }
  .claim-zone {
    padding: 18px 0 15px;
  }
  .claim-step {
    min-height: 190px;
  }
  .claim-step h3 {
    margin-bottom: 12px;
  }
  .claim-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }
  .claim-row .claim,
  .claim-field input {
    height: 44px;
  }
  .claim-note {
    font-size: 12px;
  }
}
.claim-step input::placeholder {
  color: #777;
}
.claim-step input:focus-visible {
  outline: 2px solid #0b0b0b;
  outline-offset: 2px;
}
.claim-step input:user-invalid {
  border-color: #ba3737;
}
.claim,
.edit-number {
  font:
    650 15px/1.2 "Geometria",
    Arial,
    sans-serif;
}
.claim {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  border: none;
  border-radius: 999px;
  padding: 0 18px;
  background: #b6f12f;
  color: #0b0b0b;
  transition:
    background 0.18s,
    transform 0.18s;
}
.claim::after {
  flex-shrink: 0;
  content: "";
  width: 16px;
  height: 16px;
  background: url("assets/only-chevron.svg") center/contain no-repeat;
  transition: transform 0.18s;
}
.claim:hover {
  background: #c6f55b;
}
.claim:hover::after {
  transform: translateX(2px);
}
.claim:active {
  transform: scale(0.98);
}
.edit-number {
  border: 0;
  background: transparent;
  color: #0b0b0b;
  min-height: 40px;
  font-size: 13px;
  padding: 0;
  text-decoration: underline;
}
@media (max-width: 740px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    text-align: center;
    padding: 20px 12px 52px;
    gap: clamp(13px, 2vh, 24px);
  }
  .copy {
    align-items: center;
  }
  .logo {
    margin: 0 0 clamp(15px, 2.8vh, 26px);
    width: clamp(112px, 26vw, 145px);
  }
  .intro {
    width: min(100%, 480px);
  }
  .holiday-lettering {
    width: min(89%, 41svh);
    margin: auto;
  }
  .offer-copy {
    font-size: clamp(17px, 4.6vw, 22px);
    margin-top: 7px;
  }
  .offer-copy br {
    display: initial;
  }
  .offer-tag {
    font-size: 0.85em;
    margin-right: 0.28em;
  }
  .gift-hint {
    font-size: clamp(18px, 5vw, 24px);
  }
  .scene {
    justify-self: center;
    width: min(100%, 54svh);
  }
  .gift-hint {
    margin-top: 4px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation-duration: 0.001ms !important;
    animation-delay: 0s !important;
    transition-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }
}

.skull {
  position: absolute;
  inset: 0;
  transform-origin: 48.2% 33%;
  pointer-events: none;
}
.lid {
  aspect-ratio: 510/282;
}
.gift .lid [data-layer$="L"] {
  transform-origin: 95% 55%;
}
.gift .lid [data-layer$="R"] {
  transform-origin: 3% 55%;
}

.room {
  pointer-events: none;
}
.scene {
  margin: 0;
}
.poster {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  position: absolute;
  inset: 0;
  z-index: 8;
  pointer-events: none;
}
.scene.is-ready .poster {
  visibility: hidden;
}
.scene.with-poster .poster {
  z-index: -1;
}
.scene.with-poster .room {
  visibility: hidden;
}

/* A sparse foreground snowfall crosses the hero; the second field stays behind the chair. */
main {
  position: relative;
  isolation: isolate;
}
.snow-field {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  container-type: size;
}
.page-snow {
  z-index: 1;
  opacity: 0.78;
}
.scene-snow {
  bottom: 16%;
}
.snow-field i {
  position: absolute;
  top: 0;
  width: var(--size);
  height: var(--size);
  background: #fff8da;
  opacity: 0;
  animation: drift var(--fall) linear var(--delay) infinite;
}
.snow-dot {
  border-radius: 50%;
  filter: blur(0.45px);
}
.crystal,
.prize-glint {
  clip-path: polygon(
    50% 0,
    60% 37%,
    100% 50%,
    60% 60%,
    50% 100%,
    40% 60%,
    0 50%,
    40% 37%
  );
}
.snow-field .crystal {
  width: calc(var(--size) * 1.8);
  height: calc(var(--size) * 1.8);
}
@keyframes drift {
  0% {
    transform: translate3d(0, -10px, 0) rotate(-25deg);
    opacity: 0;
  }
  12% {
    opacity: 0.68;
  }
  78% {
    opacity: 0.54;
  }
  100% {
    transform: translate3d(var(--wind), 100cqh, 0) rotate(65deg);
    opacity: 0;
  }
}
.eye-rig > * {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
[data-layer="body"] {
  clip-path: polygon(
    30% 0,
    100% 0,
    100% 100%,
    0 100%,
    0 48%,
    21% 46%,
    24% 38%,
    29% 26%,
    31% 19%,
    32% 12%
  );
}
[data-layer="tapping-paw"] {
  clip-path: polygon(
    0 0,
    31% 0,
    34% 12%,
    33% 19%,
    31% 26%,
    26% 38%,
    23% 46%,
    0 48%
  );
  transform-origin: 30% 18%;
  animation: paw-tap 5.8s ease-in-out infinite;
}
@keyframes paw-tap {
  0%,
  12%,
  25%,
  38%,
  100% {
    transform: rotate(0);
  }
  19% {
    transform: rotate(5.5deg);
  }
  32% {
    transform: rotate(3.6deg);
  }
}
.prize-glint {
  position: absolute;
  pointer-events: none;
  z-index: 5;
  width: 3.2%;
  aspect-ratio: 1;
  background: #fff4af;
  opacity: 0;
}
.prize-glint:nth-last-child(even) {
  width: 2%;
  background: white;
}
@media (prefers-reduced-motion: reduce) {
  [data-layer="tapping-paw"],
  .snow-field i {
    animation: none !important;
  }
  .prize-glint {
    display: none;
  }
}

[data-layer="collar-fur"] {
  clip-path: polygon(9% 76%, 68% 76%, 65% 100%, 12% 100%);
}

.gift-art {
  position: absolute;
  inset: 0;
  display: block;
  transform-origin: 50% 92%;
  pointer-events: none;
  transition: translate 0.24s cubic-bezier(0.2, 0.8, 0.24, 1);
}
.bow-spark,
.foil-star {
  position: absolute;
  pointer-events: none;
  display: block;
  aspect-ratio: 1;
}
.bow-spark::before,
.foil-star::before {
  content: "";
  position: absolute;
  inset: -62%;
  background: radial-gradient(
    closest-side,
    #fff4bf99,
    #f9da571c 58%,
    transparent
  );
}
.bow-spark::after,
.foil-star::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #fff3a9;
  clip-path: polygon(
    50% 0,
    59% 35%,
    81% 20%,
    66% 42%,
    100% 50%,
    65% 57%,
    80% 79%,
    58% 65%,
    50% 100%,
    42% 64%,
    22% 80%,
    35% 57%,
    0 50%,
    35% 42%,
    20% 22%,
    42% 36%
  );
}
.bow-spark {
  top: 0;
  left: var(--sx);
  width: clamp(12px, 11%, 23px);
  z-index: 6;
  opacity: 0;
  --rise: clamp(42px, 6vw, 88px);
}
.bow-spark:nth-last-child(2) {
  width: clamp(10px, 7%, 16px);
  --rise: clamp(35px, 4.4vw, 67px);
}
.bow-spark:last-child::after {
  background: #ffffea;
}
.scene.is-ready:not(.unwrapping) .bow-spark {
  animation: ambient-gift-stars 4.95s calc(var(--spark-phase) + var(--lag))
    linear infinite;
}
@keyframes ambient-gift-stars {
  0% {
    opacity: 0;
    transform: translate(0, 4px) scale(0.45);
  }
  7% {
    opacity: 1;
    transform: translate(calc(var(--dx) * 0.5), calc(-0.24 * var(--rise)))
      scale(1.12);
  }
  19% {
    opacity: 0.96;
    transform: translate(var(--dx), calc(-0.71 * var(--rise))) rotate(12deg)
      scale(0.95);
  }
  32%,
  100% {
    opacity: 0;
    transform: translate(calc(var(--dx) * 1.9), calc(-1 * var(--rise)))
      rotate(24deg) scale(0.43);
  }
}
@keyframes hover-gift-stars {
  0% {
    opacity: 0;
    transform: translate(0, 5px) scale(0.45);
  }
  18% {
    opacity: 1;
    transform: translate(calc(var(--dx) * 0.4), calc(-0.2 * var(--rise)))
      scale(1.16);
  }
  60% {
    opacity: 0.95;
    transform: translate(var(--dx), calc(-0.72 * var(--rise))) rotate(12deg)
      scale(0.92);
  }
  90%,
  100% {
    opacity: 0;
    transform: translate(calc(var(--dx) * 2), calc(-1 * var(--rise)))
      rotate(25deg) scale(0.36);
  }
}
@media (hover: hover) {
  .gift:enabled:hover .gift-art {
    translate: 0 -6%;
  }
  .scene.is-ready:not(.unwrapping) .gift:enabled:hover .bow-spark {
    animation: hover-gift-stars 1.65s calc(var(--lag) * 3) linear infinite;
  }
  .scene:has(.gift:hover) .gift:not(:hover) .bow-spark {
    visibility: hidden;
  }
}
.gift:enabled:focus-visible .gift-art {
  translate: 0 -6%;
}
.scene.is-ready:not(.unwrapping) .gift:enabled:focus-visible .bow-spark {
  animation: hover-gift-stars 1.65s calc(var(--lag) * 3) linear infinite;
}
@media (hover: none), (pointer: coarse) {
  .scene.is-ready:not(.unwrapping) .gift-art {
    animation: invite-gift 4.95s var(--spark-phase) ease-in-out infinite;
  }
}
@keyframes invite-gift {
  0%,
  11%,
  100% {
    transform: none;
  }
  3% {
    transform: translateY(-3%) rotate(-3deg);
  }
  7% {
    transform: translateY(-1.5%) rotate(2deg);
  }
}
.scene:not(.unwrapping) .cue-arrow {
  animation: point-up 4.2s ease-in-out infinite;
}
@keyframes point-up {
  0%,
  12%,
  26%,
  100% {
    transform: none;
  }
  19% {
    transform: translateY(-3px);
  }
}
.tree-rig {
  position: absolute;
  left: 71.2%;
  top: 0;
  width: 28.8%;
  height: 80.8%;
}
.tree-rig > img[data-layer="tree"] {
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
}
.tree-rig i {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: url("assets/tree.webp") center/100% 100% no-repeat;
}
.tree-rig .silver {
  --orb-x: 82.6%;
  --orb-y: 15.35%;
  --orb-w: 9.4%;
  --orb-h: 3.45%;
  --hinge: 5.5%;
  --swing: 3.05s;
  --phase: -0.7s;
}
.tree-rig .green {
  --orb-x: 32.2%;
  --orb-y: 51.6%;
  --orb-w: 11.3%;
  --orb-h: 4.1%;
  --hinge: 40.2%;
  --swing: 3.65s;
  --phase: -2s;
}
.bauble-backing {
  clip-path: ellipse(var(--orb-w) var(--orb-h) at var(--orb-x) var(--orb-y));
  background-position: -13px -61px !important;
}
.bauble {
  clip-path: ellipse(var(--orb-w) var(--orb-h) at var(--orb-x) var(--orb-y));
  transform-origin: var(--orb-x) var(--hinge);
}
.ornament-cord {
  position: absolute;
  left: var(--orb-x);
  top: var(--hinge);
  width: 1px;
  height: calc(var(--orb-y) - var(--hinge) - var(--orb-h) + 0.5%);
  background: #d7c684b0;
  transform-origin: 0 0;
}
.bauble,
.ornament-cord {
  animation: bauble-sway var(--swing) var(--phase) ease-in-out infinite;
}
@keyframes bauble-sway {
  0%,
  100% {
    transform: rotate(-8deg);
  }
  50% {
    transform: rotate(8deg);
  }
}
.holiday-mark {
  position: relative;
  display: block;
  width: min(100%, 650px);
}
.holiday-mark .holiday-lettering {
  width: 100%;
}
.foil-star {
  transform: translate(-50%, -50%);
  animation: foil-twinkle 2.55s ease-in-out infinite;
}
.foil-star.big {
  left: 98%;
  top: 14%;
  width: 5.2%;
}
.foil-star.small {
  left: 100%;
  top: 5%;
  width: 2.3%;
  animation-delay: -1.1s;
}
.foil-star.edge {
  left: 94.5%;
  top: 80%;
  width: 2.6%;
  animation-delay: -1.8s;
}
@keyframes foil-twinkle {
  0%,
  100% {
    opacity: 0.36;
    transform: translate(-50%, -50%) scale(0.64) rotate(-10deg);
  }
  48% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.15) rotate(8deg);
  }
}
@media (max-width: 740px) {
  .holiday-mark {
    width: min(89%, 41svh);
    margin: auto;
  }
}
@media (prefers-reduced-motion: reduce) {
  .gift-art,
  .bauble,
  .ornament-cord,
  .foil-star,
  .cue-arrow {
    animation: none !important;
    translate: none !important;
  }
  .bow-spark {
    display: none;
  }
}

/* Live stand states are additional to the approved donor composition. */
[hidden] {display:none !important;}
.test-mark {position:fixed;top:max(9px,env(safe-area-inset-top));right:14px;z-index:10;margin:0;padding:4px 8px;border-radius:6px;background:#175123;color:#fff;font:600 11px/1.3 "Geometria",Arial,sans-serif;}
.test-note {margin:0 auto 18px;max-width:490px;font-size:12px;line-height:1.5;color:#626760;}
.claim-step .consent-row {display:flex;align-items:flex-start;gap:10px;font-size:12px;font-weight:500;line-height:1.5;margin:14px 0 0;cursor:pointer;color:#626760;}
.claim-step .consent-row input {width:20px;height:20px;flex:0 0 20px;margin:0;accent-color:#177926;}
.claim {text-decoration:none;}
.claim:disabled,.edit-number:disabled {opacity:.5;cursor:default;}
.dial-number {font-size:22px;font-weight:700;letter-spacing:-.03em;}
#certificate-result {text-align:center;}
#certificate-result .claim {margin:10px 0;}
.delivery-status {font-size:14px;font-weight:650;line-height:1.5;}
.flow-error {max-width:490px;margin:0 auto 18px;padding:12px 14px;border-left:3px solid #a54a30;text-align:left;background:#f8eadd;color:#7a392c;font-size:14px;line-height:1.5;}
.last-update {font-size:11px;color:#626760;margin:2px 0 0;}
#refresh {margin-top:14px;}
.landing-connection {position:fixed;z-index:20;bottom:max(12px,env(safe-area-inset-bottom));left:12px;right:12px;max-width:520px;margin:auto;padding:12px 16px;display:flex;align-items:center;gap:14px;background:#fff;color:#23472c;border-radius:10px;box-shadow:0 4px 18px #123b2844;font-size:13px;}
.landing-connection button {border:0;background:#b6f12f;color:#0b0b0b;padding:10px 14px;border-radius:24px;min-height:44px;}
.captcha-dialog {width:min(100% - 28px,420px);max-width:420px;max-height:calc(100dvh - 28px);margin:auto;padding:0;border:0;border-radius:16px;background:#fff;color:#17251a;box-shadow:0 18px 60px #10251855;overflow:auto;}
.captcha-dialog::backdrop {background:#0b1d12a8;}
.captcha-panel {padding:24px 22px 18px;text-align:center;}
.captcha-panel h2 {margin:0;font:700 23px/1.2 "Geometria",Arial,sans-serif;}
.captcha-panel h2:focus {outline:none;}
.captcha-panel p {margin:12px 0 18px;font-size:14px;line-height:1.5;}
.captcha-widget {min-height:100px;display:flex;justify-content:center;}
.captcha-cancel {margin-top:14px;}
.captcha-dialog button:focus-visible {outline:3px solid #177926;outline-offset:3px;}
.paper {padding-bottom:max(18px,env(safe-area-inset-bottom));}
@media(max-width:520px) {.test-note {font-size:11px;margin-bottom:14px;} .claim-step .consent-row {font-size:11px;} .paper {padding-top:max(12px,env(safe-area-inset-top));}}

/* A personal SMS link uses the same voucher without the gift scene or scripts. */
.sms-certificate-page {background:#f2f2f0;color:#171917;font-family:"Geometria",Arial,sans-serif;}
.sms-certificate {background:#f2f2f0;min-height:100svh;padding:24px 12px;display:grid;place-items:center;overflow:visible;}
.sms-certificate-paper {margin:0 auto;width:min(100%,720px);}
.sms-certificate .voucher-title {margin:0;}
.sms-certificate-details {margin:0 4.8%;padding:24px 0 28px;border-top:1px dashed #cad1c6;text-align:left;font-size:14px;line-height:1.5;}
.sms-certificate-test {display:table;margin:0 auto 12px;padding:4px 10px;border-radius:6px;background:#edf4e8;color:#177926;font-size:12px;font-weight:700;}
.sms-certificate-status {margin:0 0 20px;text-align:center;font-size:clamp(20px,4vw,25px);font-weight:650;letter-spacing:-.04em;}
.sms-certificate-details dl {display:grid;grid-template-columns:max-content minmax(0,1fr);gap:8px 18px;width:min(100%,490px);margin:0 auto 20px;}
.sms-certificate-details dt {color:#626760;}
.sms-certificate-details dd {margin:0;font-weight:600;overflow-wrap:anywhere;}
.sms-certificate-note {width:min(100%,490px);margin:10px auto 0;font-size:13px;line-height:1.5;color:#626760;text-align:center;}
@media(max-width:520px) {.sms-certificate {padding:max(12px,env(safe-area-inset-top)) 10px max(16px,env(safe-area-inset-bottom));} .sms-certificate-details {padding:18px 0 20px;font-size:13px;} .sms-certificate-details dl {gap:7px 12px;} .sms-certificate-note {font-size:12px;}}

/* Возврат к первому сертификату — самостоятельное состояние без новой распаковки. */
.certificate:has(#certificate-return:not([hidden])) .paper-body {max-width:600px;}
.certificate:has(#certificate-return:not([hidden])) .claim-zone {border-top:0;padding:52px 0 36px;}
.return-step {text-align:center;min-height:0;}
.certificate.from-box[open]:has(#certificate-return:not([hidden])) :is(.paper,.return-step) {animation:none;}
.return-logo {display:block;width:min(62%,240px);height:auto;margin:0 auto 26px;}
.return-campaign {margin:0 0 24px;color:#177926;font-size:13px;font-weight:650;}
.return-step h3 {font-size:clamp(26px,5vw,36px);margin-bottom:18px;}
#return-explanation {max-width:390px;margin:0 auto 25px;font-size:16px;line-height:1.6;}
#return-cert-link {display:inline-flex;align-items:center;justify-content:center;max-width:100%;min-height:48px;white-space:normal;text-align:center;}
.return-step .return-note {margin:24px auto 0;max-width:340px;font-size:11px;}
#return-title:focus {outline:none;}
#call-title:focus {outline:none;}
.certificate a:focus-visible {outline:3px solid #177926;outline-offset:4px;}
.participation-rule {font-weight:600;color:#373c37;}
@media(max-width:520px) {
  .certificate:has(#certificate-return:not([hidden])) .claim-zone {padding:58px 8px 30px;}
  .return-logo {margin-bottom:22px;}
  #return-explanation {font-size:15px;}
  #return-cert-link {width:100%;padding:14px 16px;}
}

/* During phone verification, the prize becomes a compact gift stub. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.certificate:has(#call-panel:not([hidden])) .paper {
  padding: max(18px, env(safe-area-inset-top)) 16px max(18px, env(safe-area-inset-bottom));
}
.certificate:has(#call-panel:not([hidden])) .paper-body {
  width: min(100%, 560px);
  border: 0;
  border-radius: 22px;
  box-shadow: 0 18px 55px #1934231c;
  overflow: hidden;
}
.certificate:has(#call-panel:not([hidden])) #close {
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  background: #f6faef;
  border-color: #d7e6cf;
}
.certificate:has(#call-panel:not([hidden])) #full-voucher .voucher-face {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  column-gap: 16px;
  aspect-ratio: auto;
  min-height: 124px;
  padding: 21px 54px 19px 27px;
  border: 0;
  border-radius: 0;
  background: #f2f8e8;
}
.certificate:has(#call-panel:not([hidden])) #full-voucher .voucher-mast {
  grid-column: 1;
  grid-row: 1;
  align-items: flex-start;
  gap: 4px;
  font-size: 11px;
}
.certificate:has(#call-panel:not([hidden])) #full-voucher .voucher-campaign {width: 113px;}
.certificate:has(#call-panel:not([hidden])) #full-voucher .voucher-logo {width: 76px;}
.certificate:has(#call-panel:not([hidden])) #full-voucher .voucher-issuer > span:first-child {display:none;}
.certificate:has(#call-panel:not([hidden])) #full-voucher .voucher-value {
  grid-column: 2;
  grid-row: 1 / 3;
  align-items: flex-end;
  text-align: right;
  justify-content: center;
}
.certificate:has(#call-panel:not([hidden])) #full-voucher .voucher-title {
  display: none;
}
.certificate:has(#call-panel:not([hidden])) #full-voucher .amount,
.certificate:has(#call-panel:not([hidden])) #full-voucher .voucher[data-kind="area"] .amount,
.certificate:has(#call-panel:not([hidden])) #full-voucher .voucher[data-kind="rate"] .amount {
  margin: 4px 0;
  font-size: clamp(28px, 7.5cqw, 42px);
  line-height: 1;
  letter-spacing: -.055em;
}
.certificate:has(#call-panel:not([hidden])) #full-voucher .voucher-benefit {
  font-size: 12px;
  font-weight: 600;
}
.certificate:has(#call-panel:not([hidden])) #full-voucher .voucher-terms {
  grid-column: 1;
  grid-row: 2;
  align-self: end;
  border: 0;
  padding: 0;
  text-align: left;
  font-size: 10px;
  color: #577056;
}
.certificate:has(#call-panel:not([hidden])) #full-voucher .voucher-terms::before {display:none;}
.certificate:has(#call-panel:not([hidden])) .claim-zone {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 26px 34px 22px;
  border: 0;
}
.certificate:has(#call-panel:not([hidden])) .call-step {order: 0; width: 100%; min-height: 0;}
.certificate:has(#call-panel:not([hidden])) .call-eyebrow {
  margin: 0 0 7px;
  color: #277d30;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.certificate:has(#call-panel:not([hidden])) .call-step h3 {
  margin: 0;
  font-size: clamp(23px, 5vw, 30px);
  letter-spacing: -.045em;
}
.certificate:has(#call-panel:not([hidden])) #call-instruction {
  max-width: 430px;
  margin: 10px auto 0;
  color: #556057;
  font-size: 14px;
  line-height: 1.5;
}
.certificate:has(#call-panel:not([hidden])) .call-route {
  margin: 23px auto 19px;
  padding: 15px 0 14px;
  border-top: 1px solid #e2e9df;
  border-bottom: 1px solid #e2e9df;
}
.certificate:has(#call-panel:not([hidden])) .call-route p {margin: 0;}
.certificate:has(#call-panel:not([hidden])) .call-route-label {
  color: #66736a;
  font-size: 12px;
}
.certificate:has(#call-panel:not([hidden])) .dial-number {
  margin: 4px 0 6px;
  color: #175a2c;
  font-size: clamp(24px, 6.5vw, 31px);
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.04em;
  white-space: nowrap;
}
.certificate:has(#call-panel:not([hidden])) .call-source {color:#69736a;font-size:12px;}
.certificate:has(#call-panel:not([hidden])) .call-source strong {color:#273f2d;font-weight:700;}
.certificate:has(#call-panel:not([hidden])) .call-actions {display:grid;justify-items:center;gap:7px;margin:0;}
.certificate:has(#call-panel:not([hidden])) #dial {
  width: min(100%, 360px);
  min-height: 53px;
  font-size: 15px;
  white-space: normal;
  text-align: center;
}
.certificate:has(#call-panel:not([hidden])) #edit-number {font-size:12px;color:#3b5140;}
.certificate:has(#call-panel:not([hidden])) #call-expiry {
  margin: 10px auto 0;
  color: #66736a;
  font-size: 11px;
  line-height: 1.45;
}
.certificate:has(#call-panel:not([hidden])) #refresh {
  order: 1;
  align-self: center;
  margin: 5px 0 0;
  min-height: 32px;
  color: #3b5140;
  font-size: 12px;
}
.certificate:has(#call-panel:not([hidden])) .test-note {
  order: 2;
  max-width: 400px;
  margin: 14px auto 0;
  color: #778078;
  font-size: 10px;
  line-height: 1.4;
}
.certificate:has(#call-panel:not([hidden])) .flow-error {order: -1;}
@media (max-width: 520px) {
  .certificate:has(#call-panel:not([hidden])) .paper {padding: max(8px, env(safe-area-inset-top)) 9px max(8px, env(safe-area-inset-bottom));}
  .certificate:has(#call-panel:not([hidden])) #full-voucher .voucher-face {min-height: 116px;padding: 18px 44px 16px 17px;column-gap:9px;}
  .certificate:has(#call-panel:not([hidden])) #full-voucher .voucher-campaign {width: 110px;}
  .certificate:has(#call-panel:not([hidden])) #full-voucher .voucher-logo {width: 69px;}
  .certificate:has(#call-panel:not([hidden])) #full-voucher .voucher-issuer {font-size:9px;}
  .certificate:has(#call-panel:not([hidden])) #full-voucher .voucher-title {font-size:9px;}
  .certificate:has(#call-panel:not([hidden])) #full-voucher .voucher-benefit {font-size:10px;}
  .certificate:has(#call-panel:not([hidden])) #full-voucher .voucher-terms {font-size:8px;line-height:1.25;}
  .certificate:has(#call-panel:not([hidden])) .claim-zone {padding:22px 18px 17px;}
  .certificate:has(#call-panel:not([hidden])) #dial {padding:8px 10px;font-size:13px;line-height:1.25;}
  .certificate:has(#call-panel:not([hidden])) #call-instruction {font-size:13px;}
  .certificate:has(#call-panel:not([hidden])) .call-route {margin:18px auto 16px;}
  .certificate:has(#call-panel:not([hidden])) .test-note {font-size:9px;}
}
@media (max-width: 359px) {
  .certificate:has(#call-panel:not([hidden])) #full-voucher .voucher-face {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    padding-top: 16px;
    padding-bottom: 13px;
  }
  .certificate:has(#call-panel:not([hidden])) #full-voucher .voucher-mast {grid-column: 1;grid-row: 1;}
  .certificate:has(#call-panel:not([hidden])) #full-voucher .voucher-value {grid-column: 1;grid-row: 2;align-items:flex-end;margin-top:-5px;}
  .certificate:has(#call-panel:not([hidden])) #full-voucher .voucher-terms {grid-column: 1;grid-row: 3;margin-top:9px;}
}
