/* V16: preserve four-direction chapter gestures and reliable reverse navigation. */
.home-page.cinema-active #stage,
.home-page.cinema-active .scene-stack,
.home-page.cinema-active .scene,
.home-page.cinema-active .scene-media,
.home-page.cinema-active .scene-copy {
  touch-action:none !important;
  overscroll-behavior:contain;
}
.home-page.cinema-active .scene-copy a,
.home-page.cinema-active button,
.home-page.cinema-active .site-header a,
.home-page.cinema-active .site-header button {touch-action:manipulation;}
.return-to-cinema{
 display:inline-flex;align-items:center;justify-content:center;cursor:pointer;
 margin:0 auto 46px;border:1px solid rgba(191,187,255,.65);
 background:rgba(90,91,153,.18);border-radius:99px;
 color:#e5e0ff;padding:14px 24px;min-height:45px;
 font:600 11px 'Space Grotesk',system-ui,sans-serif;letter-spacing:.09em;
}
.return-to-cinema:hover{background:rgba(126,118,204,.32)}
html[lang=ar] .return-to-cinema{font-family:'Tajawal',sans-serif;font-size:14px;letter-spacing:0}
@media(max-width:720px){.return-to-cinema{margin-bottom:34px;padding:12px 20px}}

/* V17: reliable backwards pull from the top of the informational footer on touch devices. */
.home-page.cinema-exited .after-journey { overscroll-behavior-y: contain; }
.home-page.cinema-exited .return-to-cinema { position: relative; z-index: 3; }

/* V18: touch gestures are recognized on first movement, with no gesture cooldown.
   These controls are fallbacks for Android browsers reserving a system-edge swipe. */
.chapter-back-button{
 position:fixed; z-index:75; left:clamp(16px,2vw,34px); bottom:max(76px,env(safe-area-inset-bottom) + 76px);
 width:42px;height:42px;border-radius:50%;display:grid;place-items:center;
 color:#e7e8ff;border:1px solid rgba(195,198,247,.45);
 background:rgba(17,23,52,.48);backdrop-filter:blur(6px);cursor:pointer;
}
.home-page.cinema-active .chapter-back-button{display:grid}
.home-page.cinema-exited .chapter-back-button{display:none}
.home-page.cinema-active .scene[data-index="0"].is-active ~ .chapter-back-button{opacity:.55}
.always-return-to-journey{
 display:none;position:fixed;z-index:90;right:clamp(18px,3vw,38px);
 bottom:max(20px,env(safe-area-inset-bottom) + 16px);font-weight:600;
 background:rgba(37,48,93,.95);color:#fff;cursor:pointer;
 border:1px solid rgba(204,206,255,.72);border-radius:100px;
 padding:13px 18px;font-size:12px;box-shadow:0 10px 34px rgba(0,0,0,.35);
}
.home-page.cinema-exited .always-return-to-journey{display:block}
html[lang=ar] .always-return-to-journey{font-family:'Tajawal',sans-serif;font-size:15px}
@media(max-width:720px){.chapter-back-button{left:14px;bottom:60px;width:38px;height:38px}.always-return-to-journey{bottom:max(18px,env(safe-area-inset-bottom) + 14px)}}
