/* Keep the production frame and character animation on the new cutouts. */
#root .birthday-usps .adult-party-mascot {
  object-position: center bottom;
  padding: 14px 4px 0;
}

html.approved-motion[data-design-atlas] #root .birthday-usps .adult-party-mascot.ml-living-mascot {
  animation: ml-character-alive 3.8s ease-in-out var(--motion-phase, 0s) infinite !important;
  transform-origin: 50% 80%;
}

.birthday-inclusion-icon {
  mix-blend-mode: multiply;
}

/* Use the site's modal surface within a native, keyboard-accessible dialog. */
dialog.adult-popup {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  background: rgba(20, 11, 28, .75);
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: auto;
}

dialog.adult-popup:not([open]) {
  display: none;
}

dialog.adult-popup::backdrop {
  background: transparent;
}

dialog.adult-popup > .modal-content {
  position: relative;
  align-self: center;
  justify-self: center;
  width: min(640px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  min-height: 0;
  overflow: auto;
}

#root .adult-popup .dialog-sheet:not(.mascot-benefit) figure,
#root .adult-popup .birthday-chapter-detail figure {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: min(37dvh, 340px);
  margin: 0 0 18px;
  overflow: hidden;
}

#root .adult-popup figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#adult-popup-body .button {
  display: inline-flex;
  margin-top: 18px;
  text-decoration: none;
}

#root dialog.adult-popup .modal-tools .close {
  font-size: 24px;
  line-height: 1;
}

#root dialog.adult-popup #adult-popup-body video {
  display: block;
  max-width: 100%;
  margin-inline: auto;
  max-height: min(70dvh, calc(100dvh - 180px));
}
