/* DEMO 10.107.7 — homepage mobile-fit + rounded-frame fix.
   Visual/layout-only. Does not touch navigation, audio, recording, mouth or scoring logic. */
body.app-home-mode{
  width:100%;
  max-width:100%;
  overflow-x:hidden!important;
  background:#eef8d9!important;
}

/* The old app shell had a desktop-style max width. On the illustrated home page,
   make the shell follow the real Safari viewport instead. */
body.app-home-mode .phone{
  width:100vw!important;
  max-width:100vw!important;
  margin:0!important;
  padding:0 0 max(28px,env(safe-area-inset-bottom))!important;
  background:#eef8d9!important;
  overflow:visible!important;
}

/* Keep a small breathing margin and soften the hard rectangular artwork edge. */
body.app-home-mode .home-effect-live{
  width:min(calc(100vw - 16px),520px)!important;
  max-width:calc(100vw - 16px)!important;
  margin:8px auto 18px!important;
  border-radius:26px!important;
  overflow:hidden!important;
  background:#eaf6d1!important;
  box-shadow:0 8px 24px rgba(61,112,76,.10);
  transform:translateZ(0);
  -webkit-mask-image:-webkit-radial-gradient(white,black);
}

body.app-home-mode .home-effect-reference{
  display:block!important;
  width:100%!important;
  max-width:100%!important;
  height:auto!important;
  border-radius:inherit!important;
}

@media (max-width:390px){
  body.app-home-mode .home-effect-live{
    width:calc(100vw - 12px)!important;
    max-width:calc(100vw - 12px)!important;
    margin:6px auto 14px!important;
    border-radius:22px!important;
  }
}
