#home .hero__creditBtn span {
  min-width: 0;
  text-wrap: balance;
}

/* Match the globe's center instead of shifting the copy away from one sidebar. */
@media (min-width: 1200px) and (max-width: 1599px) and (min-height: 640px),
       (min-width: 1600px) and (min-height: 640px) and (max-height: 760px) {
  #home .hero__container {
    width: min(860px, calc(100% - 536px));
    margin-inline: auto;
  }
}

.welcomeCreditCta--christmas {
  border-color: #8c7160;
  background: #171c26;
}

.welcomeCreditCta--christmas::before {
  background: #efbe72;
}

.welcomeCreditCta--christmas:hover,
.welcomeCreditCta--christmas:focus-within {
  border-color: #efbe72;
}

.welcomeCreditCta--christmas .welcomeCreditCta__eyebrow,
.welcomeCreditCta--christmas .welcomeCreditCta__meta {
  color: #f3cc91;
}

.welcomeCreditCta--christmas .welcomeCreditCta__eyebrow {
  display: block;
}

.welcomeCreditCta--christmas .welcomeCreditCta__title {
  color: #fff5e9;
}

.christmasDock {
  position: absolute;
  display: block;
  inset-inline-end: 10px;
  bottom: calc(100% - 5px);
  width: 190px;
  aspect-ratio: 19 / 14;
  pointer-events: none;
}

.christmasScene {
  --santa-acting-for: 2.1s;
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 19 / 14;
  pointer-events: none;
  user-select: none;
  isolation: isolate;
  transform-origin: top left;
}

.christmasFireworks,
.christmasIntro {
  position: fixed;
  pointer-events: none;
}

.christmasFireworks {
  inset: 0;
  z-index: 22;
  width: 100%;
  height: 100%;
}

.christmasIntro {
  inset-block-start: var(--christmas-top);
  inset-inline-end: var(--christmas-edge);
  z-index: 48;
  width: var(--christmas-width);
}

.christmasIntro__mount {
  width: 100%;
  aspect-ratio: 19 / 14;
}

.christmasIntro__copy {
  position: relative;
  display: grid;
  gap: 4px;
  padding: 10px 14px 12px;
  margin: -4px 0 0 10%;
  box-sizing: border-box;
  border: 1px solid #a97d56;
  border-inline-start: 3px solid #efbe72;
  border-radius: 8px;
  color: #fff5e9;
  background: #171c26f5;
  box-shadow: 0 12px 32px #10090f70;
  opacity: 0;
  overflow-wrap: anywhere;
}

.christmasIntro__copy span,
.christmasIntro__copy small { color: #f3cc91; font-size: 12px; line-height: 1.35; }
.christmasIntro__copy span { font-weight: 700; text-transform: uppercase; }
.christmasIntro__copy strong { font-size: 21px; line-height: 1.2; }
.christmasIntro.is-celebrating .christmasIntro__copy { animation: santa-reveal-message .49s 1.83s both; }
.christmasIntro.is-landing .christmasIntro__copy { animation: christmas-copy-departure .44s both; }
.welcomeCreditCta--christmas.is-christmas-intro { visibility: hidden; }

@keyframes christmas-copy-departure {
  from { opacity: 1; transform: none; }
  to { opacity: 0; transform: translateY(12px) scale(.97); }
}

.christmasScene__santa,
.christmasScene__props {
  position: absolute;
  display: block;
  bottom: 0;
  max-width: none;
}

.christmasScene__santa {
  right: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 5px 7px #10101c80);
}

.christmasIntro .christmasScene { --santa-acting-for: 2.85s; }

.christmasSanta__cel {
  position: absolute;
  inset: 0;
  background: url("../images/christmas_santa_cels.webp?v=2") no-repeat 100% 100%;
  background-size: 300% 300%;
}

.is-celebrating .christmasSanta__cel {
  animation: santa-cels var(--santa-acting-for) steps(1, end) both;
}

.christmasScene__props {
  left: 0;
  width: 100%;
  height: 100%;
}

.christmasScene__mouth,
.christmasScene__tie {
  transform-box: fill-box;
  transform-origin: center;
}

.christmasScene__tie,
.christmasScene__spark {
  opacity: 0;
}

.christmasScene__gift {
  transform: translate(var(--gift-x), var(--gift-y)) rotate(var(--gift-turn));
}

.christmasScene__gift--pine { --gift-x: -20px; --gift-y: -30px; --gift-turn: -15deg; --gift-delay: 1.11s; color: #247a68; }
.christmasScene__gift--ruby { --gift-x: 2px; --gift-y: -47px; --gift-turn: 13deg; --gift-delay: 1.22s; color: #b53f53; }
.christmasScene__gift--teal { --gift-x: 26px; --gift-y: -29px; --gift-turn: 23deg; --gift-delay: 1.31s; color: #56b4aa; }
.christmasScene__spark--gold { --spark-delay: 1.24s; stroke: #ffca71; }
.christmasScene__spark--mint { --spark-delay: 1.42s; stroke: #96e5ce; }
.christmasScene__spark--pink { --spark-delay: 1.56s; stroke: #ff9d9f; }

.is-celebrating .christmasScene__santa { animation: santa-arrival 1.38s cubic-bezier(.21,.7,.33,1) both; }
.is-celebrating .christmasScene__mouth { animation: santa-open-sack .44s .98s both; }
.is-celebrating .christmasScene__tie { animation: santa-release-tie .47s .92s both; }
.is-celebrating .christmasScene__gift { animation: santa-gift .84s var(--gift-delay) cubic-bezier(.21,.72,.25,1) both; }
.is-celebrating .christmasScene__spark { animation: santa-firework .64s var(--spark-delay) ease-out both; }
.is-celebrating .christmasOffer__message { animation: santa-reveal-message .38s 1.38s both; }

.christmasIntro.is-celebrating .christmasScene__santa { animation: santa-stage-arrival 2.45s cubic-bezier(.2,.64,.27,1) both; }
.christmasIntro.is-celebrating .christmasScene__mouth { animation-delay: 1.34s; }
.christmasIntro.is-celebrating .christmasScene__tie { animation-delay: 1.26s; }
.christmasIntro .christmasScene__gift--pine { --gift-delay: 1.57s; }
.christmasIntro .christmasScene__gift--ruby { --gift-delay: 1.7s; }
.christmasIntro .christmasScene__gift--teal { --gift-delay: 1.84s; }
.christmasIntro .christmasScene__spark--gold { --spark-delay: 1.8s; }
.christmasIntro .christmasScene__spark--mint { --spark-delay: 1.97s; }
.christmasIntro .christmasScene__spark--pink { --spark-delay: 2.11s; }

@keyframes santa-stage-arrival {
  0% { opacity: 0; transform: translate(9%, 0); }
  24%, 100% { opacity: 1; transform: none; }
}

/* Each pose is a complete drawing; switch cels rather than blending silhouettes. */
@keyframes santa-cels {
  0% { background-position: 0 0; }
  16% { background-position: 50% 0; }
  30% { background-position: 100% 0; }
  43% { background-position: 0 50%; }
  49% { background-position: 50% 50%; }
  59% { background-position: 100% 50%; }
  65% { background-position: 0 100%; }
  81% { background-position: 50% 100%; }
  89%, 100% { background-position: 100% 100%; }
}

@keyframes santa-arrival {
  0% { opacity: 0; transform: translate(4px, 2px); }
  42% { opacity: 1; transform: none; }
  100% { opacity: 1; transform: none; }
}

@keyframes santa-open-sack {
  from { transform: scale(.54, .19); }
  to { transform: scale(1); }
}

@keyframes santa-release-tie {
  0% { opacity: 1; transform: none; }
  60% { opacity: .80; }
  100% { opacity: 0; transform: translate(9px, -10px) rotate(25deg); }
}

@keyframes santa-gift {
  0% { opacity: 0; transform: scale(.28); }
  30% { opacity: 1; }
  70% { transform: translate(var(--gift-x), calc(var(--gift-y) - 9px)) rotate(var(--gift-turn)); }
  100% { opacity: 1; transform: translate(var(--gift-x), var(--gift-y)) rotate(var(--gift-turn)); }
}

@keyframes santa-firework {
  0% { opacity: 0; transform: scale(.15); }
  23% { opacity: .88; }
  100% { opacity: 0; transform: scale(1.13); }
}

@keyframes santa-reveal-message {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}

@media (min-width: 641px) and (max-height: 760px) {
  .christmasDock { width: 154px; }
}

@media (max-width: 640px), (max-height: 500px) {
  .welcomeCreditCta--christmas .welcomeCreditCta__details {
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 7px;
  }

  .welcomeCreditCta--christmas .welcomeCreditCta__icon {
    position: relative;
    width: 60px;
    height: 46px;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .welcomeCreditCta--christmas .welcomeCreditCta__icon > i { display: none; }

  .christmasDock {
    width: 62px;
    inset-inline-end: 0;
    bottom: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .christmasIntro,
  .christmasFireworks { display: none; }

  .welcomeCreditCta--christmas.is-celebrating .christmasScene *,
  .welcomeCreditCta--christmas.is-celebrating .christmasOffer__message {
    animation: none;
  }
}

