html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(120, 112, 102, 0.45) transparent;
}

#gift-eyebrow,
.letter-kicker,
.artwork-gallery .gift-piece figcaption {
  display: none !important;
}

.recipient-stage .stage-brand {
  display: inline-block;
  width: 112px;
  height: 21px;
  background-color: var(--stage-ink, #242321);
  -webkit-mask-image: url("/assets/brand/afewpaws-wordmark-dark.svg");
  mask-image: url("/assets/brand/afewpaws-wordmark-dark.svg");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-position: left center;
  mask-position: left center;
}

.stage-wrap,
.recipient-stage {
  width: 100%;
  height: auto !important;
  min-height: 100svh !important;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.recipient-stage .stage {
  width: 100% !important;
  flex: 1 0 auto;
  min-height: 100svh !important;
  height: 100svh !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  transition: opacity 160ms ease;
}

.recipient-stage .stage[data-ready="false"] {
  opacity: 0;
  pointer-events: none;
}

.recipient-stage .stage[data-gift-step="intro"],
.recipient-stage .stage[data-state="playing"] {
  overflow: hidden;
}

@media (max-height: 640px) {
  .recipient-stage .stage .gift-heading {
    top: clamp(46px, 8%, 68px) !important;
  }

  .recipient-stage .stage .gift-heading h2 {
    font-size: clamp(28px, 4.6vw, 38px) !important;
  }

  .recipient-stage .stage .gift-actions {
    bottom: clamp(16px, 3.5%, 26px) !important;
  }

  .recipient-stage .stage .gift-actions p {
    margin-top: 8px;
  }
}

.recipient-stage .stage[data-gift-step="note"] {
  height: auto !important;
  min-height: 100vh !important;
  min-height: 100svh !important;
  padding: 54px 20px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.recipient-stage .stage[data-gift-step="note"] #scene-host {
  opacity: 0.24;
  transition: opacity 0.45s ease;
}

.recipient-stage .stage[data-gift-step="artwork"] {
  height: auto !important;
  min-height: 100vh !important;
  min-height: 100svh !important;
  overflow: visible;
}

.recipient-stage .artwork-gallery {
  min-height: 100vh;
  min-height: 100svh;
  padding: 52px clamp(18px, 3.5vw, 48px) 20px;
}

.recipient-stage .art-gift-heading {
  margin: 0 auto 16px;
}

.recipient-stage .art-gift-heading h1 {
  font-size: clamp(24px, 3.1vw, 36px);
  outline: none;
}

.recipient-stage .art-gift-heading h1:focus,
.recipient-stage .art-gift-heading h1:focus-visible {
  outline: none !important;
}

.recipient-stage .artwork-gallery[data-count="single"] .gift-piece {
  width: min(100%, 295px, calc(41svh * var(--art-ratio, 0.75)));
}

.recipient-stage .gift-gallery-footer {
  margin: 12px auto 0;
  gap: 8px;
}

.recipient-stage .gallery-save {
  min-height: 42px;
  padding: 10px 20px;
}

.recipient-stage .gift-gallery-links button {
  min-height: 36px;
  padding: 4px;
}

.stage .gift-heading {
  top: clamp(50px, 10%, 82px);
}

.stage .gift-actions {
  bottom: clamp(20px, 4.5%, 34px);
}

.stage-toast {
  position: fixed;
  bottom: 18px;
  left: 50%;
  z-index: 120;
  transform: translate(-50%, 10px);
  padding: 10px 18px;
  background: #122449;
  color: #fff9ea;
  font-size: 12px;
  border-radius: 6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  max-width: 90%;
  box-shadow: 0 5px 24px rgba(0, 0, 0, 0.25);
}

.stage-toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
