/* Keep the support affordance visible without blocking the next-scene controls. */
@media(max-width:760px){
  body.demo-mom .sy-support-trigger{
    bottom:calc(98px + env(safe-area-inset-bottom));
    right:9px;
    min-height:43px;
    font-size:11px;
    padding:8px 11px;
    box-shadow:0 4px 16px rgba(20,20,20,.24);
  }
  body.demo-mom .sy-support-trigger.sy-support-with-cookie{
    bottom:calc(98px + env(safe-area-inset-bottom));
  }
}

/* Embedded recipient player in the short Mother Day campaign. Isolated to the
   iframe document, without changing the standalone demo or shared renderer. */
body.demo-embed .demo-toolbar,
body.demo-embed .experience-close,
body.demo-embed .sy-support-trigger,
body.demo-embed #consentRoot{display:none!important}
body.demo-embed .experience-top{top:0;padding:13px 14px}
body.demo-embed .scene{padding:26px 19px 83px}
body.demo-embed .scene.scene-collage{padding-top:52px}
body.demo-embed .scene .scene-content{max-width:100%}
body.demo-embed .scene h1,body.demo-embed .scene h2{font-size:clamp(30px,7.5vw,56px)}
body.demo-embed .scene p{font-size:clamp(12px,3.4vw,17px)}
body.demo-embed .exp-controls{bottom:12px;left:12px;right:12px}
body.demo-embed .experience{width:100%;height:100dvh}
@media(max-width:520px){
 body.demo-embed .experience-top{top:0;padding:12px 9px}
 body.demo-embed .scene{padding:55px 15px 75px!important}
 body.demo-embed .scene h1,body.demo-embed .scene h2{font-size:clamp(29px,8vw,46px)}
 body.demo-embed .scene p{font-size:clamp(12px,3.5vw,16px)}
 body.demo-embed .scene-collage .collage-stage{top:60px!important}
 body.demo-embed .scene-collage .collage-copy{top:65px!important}
 body.demo-embed .exp-controls{bottom:8px;left:8px;right:8px}
 body.demo-embed .swipe-hint{font-size:8px}
}

/* The standalone demo uses a centered 760px control bar. In a WIDE inline
   iframe that translateX(-50%) moves Prev offscreen. Keep controls inside
   the actual embedded viewport on desktop and mobile alike. */
body.demo-embed .exp-controls{
  left:12px!important;
  right:12px!important;
  width:auto!important;
  max-width:none!important;
  transform:none!important;
}

/* Embed scene-fit: texts and interactive questions must fit inside the actual
   iframe height (not the outer marketing page), even on short displays. */
body.demo-embed .scene-text-only:not(.scene-letter) .scene-content,
body.demo-embed .scene-chapter .chapter-content,
body.demo-embed .scene-question .question-content,
body.demo-embed .scene-memory .memory-detail-copy,
body.demo-embed .scene-final .final-content,
body.demo-embed .scene-afterword .afterword-content{
  box-sizing:border-box;
  max-height:calc(100dvh - 135px)!important;
  overflow-y:auto!important;
  overscroll-behavior-y:contain;
  scrollbar-width:thin;
  scrollbar-color:rgba(255,255,255,.4) transparent;
  -webkit-overflow-scrolling:touch;
}
body.demo-embed .scene-memory .memory-detail-copy .memory-copy{
  max-height:none!important;
  overflow:visible!important;
}
body.demo-embed .scene-letter .letter-wrap{
  max-height:calc(100dvh - 132px)!important;
}
@media(max-width:520px){
  body.demo-embed .scene-text-only:not(.scene-letter) .scene-content,
  body.demo-embed .scene-chapter .chapter-content,
  body.demo-embed .scene-question .question-content,
  body.demo-embed .scene-memory .memory-detail-copy,
  body.demo-embed .scene-final .final-content,
  body.demo-embed .scene-afterword .afterword-content{
    max-height:calc(100dvh - 146px)!important;
  }
  body.demo-embed .scene-letter .letter-wrap{
    max-height:calc(100dvh - 147px)!important;
  }
}


/* The embedded marketing viewer begins on the complete authored COVER,
   not on block 01. Navigation below the cover takes the user to the actual
   first video. There is no redundant "Start story" gate in the embed. */
body.demo-embed .scene-cover .exp-start{display:none!important}
body.demo-embed .scene-cover .start-note{
  color:inherit;opacity:.82;
}
