.demo-premium{background:#f4eee5}.demo-toolbar{background:rgba(250,246,239,.92);border:1px solid rgba(75,59,49,.12);box-shadow:0 14px 44px rgba(40,29,22,.16);backdrop-filter:blur(18px);color:#2c241f}.demo-toolbar>span{display:flex;align-items:baseline;gap:8px}.demo-toolbar b{font-size:11px;letter-spacing:.15em}.demo-toolbar small{font-size:11px;color:#85776c;font-weight:650}.demo-loading{height:100%;display:grid;place-items:center;align-content:center;gap:14px;background:radial-gradient(circle at 50% 20%,#fbf3e8,transparent 45%),#f2e8db;color:#51453c}.demo-loading p{margin:0;font-size:13px;letter-spacing:.04em}.demo-premium .theme-editorial-warm .scene:not(.scene-photo):not(.scene-video):not(.scene-memory-visual):not(.scene-gallery-photo):not(.scene-collage){background:var(--story-bg-soft)}.demo-premium .theme-editorial-warm .scene:after{background:linear-gradient(180deg,rgba(49,32,26,.02),rgba(49,32,26,.13) 48%,rgba(38,23,19,.58))}.demo-premium .theme-editorial-warm .scene-chapter:after,.demo-premium .theme-editorial-warm .scene-reasons-intro:after,.demo-premium .theme-editorial-warm .scene-reason:after,.demo-premium .theme-editorial-warm .scene-quest-clue:after,.demo-premium .theme-editorial-warm .scene-final:after,.demo-premium .theme-editorial-warm .scene-letter:after,.demo-premium .theme-editorial-warm .scene-afterword:after{background:linear-gradient(145deg,rgba(93,57,47,.12),rgba(32,23,20,.36))}.demo-premium .theme-editorial-warm .scene-card,.demo-premium .theme-editorial-warm .quest-clue-card{background:rgba(255,248,239,.12);border-color:rgba(255,246,236,.22);box-shadow:0 24px 70px rgba(24,16,13,.12)}.demo-premium .theme-editorial-warm .letter{box-shadow:0 36px 100px rgba(24,16,13,.26)}.demo-premium .theme-editorial-warm .final-reply{background:rgba(250,244,235,.94);color:#2b231e;border-color:rgba(57,42,34,.12)}.demo-premium .theme-editorial-warm .final-reply p,.demo-premium .theme-editorial-warm .reply-privacy{color:#76685e}.demo-premium .theme-editorial-warm .reply-reactions button{background:#fff;border-color:#dfd0c2}.demo-premium .theme-editorial-warm .final-reply-text{background:#fff;border-color:#dfd0c2;color:#2b231e}.demo-premium .theme-editorial-warm .reply-consent{color:#6d6259}.demo-premium .scene-video .video-label .scene-kicker:after{content:' · реальный демо-кадр';opacity:.75}.demo-premium .scene-quest-clue .quest-scene-mark{background:#f1d7bd;color:#6b4034;border-color:#e6c5a5}.demo-premium .scene-collage .collage-stage{filter:saturate(.86) contrast(.97)}.demo-premium .scene-collage .collage-copy h2{text-shadow:0 6px 30px rgba(20,12,10,.34)}.demo-premium .scene-afterword .afterword-content{width:min(760px,100%)}.demo-premium .experience-close{top:max(72px,env(safe-area-inset-top));background:rgba(72,50,40,.35)}.demo-premium .experience-top{top:58px}.demo-premium .exp-controls{bottom:max(22px,env(safe-area-inset-bottom))}
@media(max-width:760px){.demo-toolbar{top:7px;width:calc(100% - 14px);padding:6px 7px 6px 11px;gap:7px}.demo-toolbar>span small{display:none}.demo-toolbar .btn{padding:8px 10px;font-size:11px}.demo-premium .experience-top{top:54px}.demo-premium .experience-close{top:max(62px,env(safe-area-inset-top));right:10px}.demo-premium .scene{padding-top:110px}.demo-premium .collage-stage{top:106px}}
.demo-premium .theme-editorial-warm .reason-card{background:transparent;border:0;box-shadow:none;padding:0}.demo-premium .theme-editorial-warm .final-reply .reply-send{background:#6b4034;color:#fff;border-color:#6b4034}.demo-premium .theme-editorial-warm .final-reply .reply-video-pick{background:#fffaf4;color:#5f4436;border-color:#c9b29e}.demo-premium .theme-editorial-warm .quest-clue-reveal{background:#6b4034;color:#fff;border-color:#6b4034}

@media(orientation:landscape) and (max-height:500px){.demo-toolbar{top:5px;width:auto;max-width:calc(100% - 150px);padding:4px 6px 4px 9px;gap:6px}.demo-toolbar>span small{display:none}.demo-toolbar .btn{min-height:34px;padding:6px 9px;font-size:10px}.demo-premium .experience-top{top:42px}.demo-premium .experience-close{top:48px;right:6px}.demo-premium .scene{padding-top:52px}.demo-premium .scene-video{padding-top:0}.demo-premium .exp-controls{bottom:5px}}

/* Demo has an extra toolbar above story chrome; keep collage fully inside the visible Android viewport. */
@media(max-width:760px){
  .demo-premium .scene-collage .collage-copy{
    top:max(108px,calc(env(safe-area-inset-top) + 100px));
  }
  .demo-premium .scene-collage .collage-stage{
    top:max(142px,calc(env(safe-area-inset-top) + 134px));
    bottom:max(84px,calc(env(safe-area-inset-bottom) + 76px));
    height:auto;
    min-height:0;
    max-height:none;
    transform:translateX(-50%);
  }
}
@media(max-width:420px) and (max-height:700px){
  .demo-premium .scene-collage .collage-copy{top:max(96px,calc(env(safe-area-inset-top) + 90px))}
  .demo-premium .scene-collage .collage-stage{
    top:max(126px,calc(env(safe-area-inset-top) + 118px));
    bottom:max(72px,calc(env(safe-area-inset-bottom) + 64px));
  }
}
/* v7 demo/preview chrome: only adjust shared frame variables; scene geometry lives in styles.css */
@media (max-width:760px){
  .demo-premium .experience{
    --story-mobile-top:max(112px,calc(env(safe-area-inset-top) + 102px));
    --story-mobile-bottom:max(78px,calc(env(safe-area-inset-bottom) + 66px));
  }
  .demo-premium .experience-top{
    top:max(46px,calc(env(safe-area-inset-top) + 40px))!important;
    padding:10px 12px!important;
  }
  .demo-premium .experience-close{
    top:max(54px,calc(env(safe-area-inset-top) + 48px))!important;
  }
  .demo-premium .scene{padding-top:var(--story-mobile-top)!important}
  .demo-premium .scene-collage .collage-copy{top:var(--story-mobile-top)!important}
  .demo-premium .scene-collage .collage-stage{
    inset:calc(var(--story-mobile-top) + var(--story-mobile-gap)) 10px var(--story-mobile-bottom) 10px!important;
    width:auto!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    transform:none!important;
  }
}