/* Dec 2026 "Find the Yeti" popup: game (first step, no form) -> success.
   Desktop: the 706x499 panel, lengths in cqw of the panel (px / 7.06).
   Phone (<= 567px, full screen as the framework makes it): the 375x576 "- Mobile" frames, lengths in cqw (px / 3.75),
   art anchored to the bottom edge like the design. */

#popup-dec .popup-content {
  width: 706px;
  max-width: calc(100vw - 30px);
  height: auto;
  aspect-ratio: 706 / 499;
  container-type: inline-size;
  overflow: hidden;
  background: none;
  border: none;
}

#popup-dec p {
  margin: 0;
}

#popup-dec .popup-default,
#popup-dec .popup-thanks {
  width: 100%;
  height: 100%;
  max-width: none;
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: cover;
}

#popup-dec .popup-default {
  background-color: #5bcbf0;
  background-image: url(../images/hero/game-back.jpg);
  background-image: -webkit-image-set(url("../images/hero/game-back.webp") 1x, url("../images/hero/game-back@2x.webp") 2x);
  background-image: image-set(url("../images/hero/game-back.webp") 1x, url("../images/hero/game-back@2x.webp") 2x);
  align-items: stretch;
}

#popup-dec .popup-thanks {
  background-color: #5bcbf0;
  background-image: url(../images/hero/success-back.jpg);
  background-image: -webkit-image-set(url("../images/hero/success-back.webp") 1x, url("../images/hero/success-back@2x.webp") 2x);
  background-image: image-set(url("../images/hero/success-back.webp") 1x, url("../images/hero/success-back@2x.webp") 2x);
  justify-content: flex-start;
}

/* close: the frame's black X (18px, 3px bars), not the framework's grey hairline */
#popup-dec .popup-close {
  top: 4.2493cqw;
  right: 3.9660cqw;
  width: 2.8329cqw;
  height: 2.8329cqw;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  z-index: 5;
}

#popup-dec .popup-close:before,
#popup-dec .popup-close:after {
  left: 50%;
  top: 50%;
  width: 3px;
  height: 127.5%;
  background-color: #000000;
  border-radius: 1px;
  transform: translate(-50%, -50%) rotate(45deg);
}

#popup-dec .popup-close:after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* game */
#popup-dec .popup-form {
  width: 100%;
  height: 100%;
}

#popup-dec .dec-game {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  height: 100%;
}

#popup-dec .game-text {
  width: 41.9263cqw;
  height: auto;
  max-width: none;
  margin-top: 8.7819cqw;
  margin-left: 0.2833cqw;
}

#popup-dec .tree {
  position: absolute;
  display: block;
  width: 27.1955cqw;
  height: 37.8187cqw;
  padding: 0;
  margin: 0;
  border: 0;
  background: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

#popup-dec .tree:disabled {
  cursor: default;
}

/* the PSD's tree (exported with a 1px pad) */
#popup-dec .tree-poster {
  position: absolute;
  left: -0.5208%;
  top: -0.3745%;
  width: 101.0417%;
  height: auto;
  max-width: none;
}

/* the game dotLottie's canvas: 556x572, its tree at 143,29 (382 wide) */
#popup-dec .tree-anim {
  position: absolute;
  left: -37.4316%;
  top: -5.4600%;
  width: 145.5521%;
  aspect-ratio: 556 / 572;
  pointer-events: none;
}

#popup-dec .tree-anim dotlottie-wc {
  display: block;
  width: 100%;
  height: 100%;
}

#popup-dec .tree-1 {
  left: 5.2408cqw;
  top: 29.6034cqw;
}

#popup-dec .tree-2 {
  left: 36.8272cqw;
  top: 29.3201cqw;
}

#popup-dec .tree-3 {
  left: 68.4136cqw;
  top: 29.6034cqw;
}

/* the PSD draws tree 1 mirrored (desktop 1:8694, mobile 4:6238): mirror its poster and its animation together,
   so its yeti pops out to the right, as the mobile reveal frame draws it */
#popup-dec .tree-1 {
  transform: scaleX(-1);
}

#popup-dec .tree.picked {
  z-index: 4;
}

/* the tracking pixel (forms.css styles it only when a form renders): out of the flow, still loaded */
#popup-dec .tracking_promo_success {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

#popup-dec .tracking_promo_success .promo_image {
  width: 1px;
  height: 1px;
}

/* success: "Found! / $12.25 ..." and the CTA as one column, the yeti on the panel's bottom-right edge */
#popup-dec .dec-thanks {
  margin-top: 12.1813cqw;
  position: relative;
  z-index: 1;
}

#popup-dec .thanks {
  width: 63.0312cqw;
  height: auto;
  max-width: none;
  margin-left: 0.1416cqw;
}

#popup-dec .popup-thanks .cta {
  margin-top: 3.9660cqw;
  width: 27.1955cqw;
  height: 5.8074cqw;
  padding: 0;
  border-radius: 2.8683cqw;
  font-size: 2.5496cqw;
  line-height: 1;
  color: #ffffff;
  background-color: #e91b27;
}

#popup-dec .popup-thanks .cta span,
#popup-dec .popup-thanks .cta:hover,
#popup-dec .popup-thanks .cta:focus {
  color: #ffffff;
  text-decoration: none;
}

#popup-dec .thanks-yeti {
  position: absolute;
  right: -0.1416cqw;
  bottom: -0.1416cqw;
  width: 26.4873cqw;
  height: auto;
  max-width: none;
  pointer-events: none;
}

@media screen and (max-width: 567px) {
  #popup-dec .popup-content {
    width: 100%;
    max-width: 100%;
    height: 100%;
    aspect-ratio: auto;
  }

  #popup-dec .popup-default {
    background-image: url(../images/hero/game-back-m.jpg);
    background-image: -webkit-image-set(url("../images/hero/game-back-m.webp") 1x, url("../images/hero/game-back-m@2x.webp") 2x);
    background-image: image-set(url("../images/hero/game-back-m.webp") 1x, url("../images/hero/game-back-m@2x.webp") 2x);
  }

  #popup-dec .popup-thanks {
    background-image: url(../images/hero/success-back-m.jpg);
    background-image: -webkit-image-set(url("../images/hero/success-back-m.webp") 1x, url("../images/hero/success-back-m@2x.webp") 2x);
    background-image: image-set(url("../images/hero/success-back-m.webp") 1x, url("../images/hero/success-back-m@2x.webp") 2x);
  }

  #popup-dec .popup-close {
    top: 5.6cqw;
    right: 4cqw;
    width: 4.2667cqw;
    height: 4cqw;
  }

  #popup-dec .popup-close:before,
  #popup-dec .popup-close:after {
    width: 2.5px;
  }

  #popup-dec .game-text {
    width: 60cqw;
    margin-top: 21.6cqw;
    margin-left: 0.5333cqw;
  }

  #popup-dec .tree {
    top: auto;
    width: 46.1333cqw;
    height: 64.5333cqw;
  }

  #popup-dec .tree-poster {
    left: -0.5780%;
    top: -0.4132%;
    width: 101.1561%;
  }

  /* mobile frame: the middle tree at the back, the left one in front */
  #popup-dec .tree-1 {
    left: -2.1333cqw;
    bottom: 10.1333cqw;
    z-index: 3;
  }

  #popup-dec .tree-2 {
    left: 26.9333cqw;
    bottom: 38.4cqw;
    z-index: 1;
  }

  #popup-dec .tree-3 {
    left: 56.8cqw;
    bottom: 18.4cqw;
    z-index: 2;
  }

  #popup-dec .dec-thanks {
    margin-top: 31.4667cqw;
  }

  #popup-dec .thanks {
    width: 69.3333cqw;
    margin-left: 0.2667cqw;
  }

  #popup-dec .popup-thanks .cta {
    margin-top: 5.8667cqw;
    width: 46.6667cqw;
    height: 8.8cqw;
    border-radius: 4.4cqw;
    font-size: 3.8667cqw;
    background-color: #ec151b;
  }

  #popup-dec .thanks-yeti {
    right: -0.2667cqw;
    bottom: -0.2667cqw;
    width: 49.3333cqw;
  }
}
