/* Отдельный первый экран по макету 10 ноября, эталон 393 × 852 px. */
#new-opening { position: relative; padding-top: 0; background: var(--paper); color: #252525; container-type: size; overflow: clip; }
.screen:has(#new-opening:not([inert])) > .segments { visibility: hidden; }
.opening-logo { position: absolute; left: 20.5px; top: 3.169cqh; width: 18.575cqw; height: auto; }
.opening-advance { position: absolute; top: 2.465cqh; right: 20px; display: flex; align-items: center; gap: 10px; padding: 0; border: 0; background: transparent; color: #797979; font: 400 min(14px, 3.562cqw)/20px var(--font-mono); cursor: pointer; }
.opening-advance::before { content: ''; position: absolute; inset: -12px -5px; }
.opening-advance > svg { flex: 1 1 0; min-width: 0; width: auto; overflow: visible; transform: translateY(1.5px); }
.opening-title { position: absolute; top: 17.136cqh; left: 20px; margin: 0; font: 400 min(42px, 10.687cqw, 4.930cqh)/1 var(--font-mono); letter-spacing: 0; }
.opening-title > span { display: block; white-space: nowrap; }
.opening-dates { position: absolute; top: 38.263cqh; right: 15px; margin: 0; color: #252525; font: 400 min(18px, 4.58cqw, 2.113cqh)/1.15 var(--font-mono); white-space: nowrap; transform: rotate(-4deg); transform-origin: right bottom; }
.opening-media { position: absolute; top: 44.836cqh; left: .5px; width: calc(100cqw + 40px); height: calc((55.164cqh - 56.5px) / .997564); margin: 0; border: 2px solid #fff; background: #171714; transform: rotate(-4deg); transform-origin: top left; overflow: hidden; }
.opening-media video { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.opening-footer { position: absolute; right: 15px; bottom: max(18px, env(safe-area-inset-bottom)); }
.opening-contact { position: relative; display: flex; align-items: center; justify-content: flex-start; padding-inline: 10px; width: 159px; height: 27px; border: 1px solid #797979; color: #797979; text-decoration: none; white-space: nowrap; font: 400 12px/25px var(--font-mono); }
.opening-contact::before { content: ''; position: absolute; inset: -9px 0; }
.opening-contact:focus-visible, .opening-advance:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }

/* Готовая бумажная фактура пользователя — фон второго экрана. */
#new-opening {
  isolation: isolate;
  background-image: url('./assets/mobile-study/revision/opening-paper-scratched.png');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
.opening-media { border-color: var(--paper); }
.opening-logo, .opening-advance, .opening-title, .opening-dates, .opening-media, .opening-footer { z-index: 2; }
.opening-media video { filter: none; opacity: 1; mix-blend-mode: normal; }
/* На видео остаётся только нейтральное зерно, без бумажного рельефа. */
.opening-media::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: url('./assets/mobile-study/revision/neutral-film-grain.svg') repeat;
  background-size: 256px 256px; mix-blend-mode: soft-light; opacity: .32;
}

/* Запуск одним касанием, когда Safari запрещает автозапуск. */
:is(.opening-media, .hosts-media, .hotel-media)[data-autoplay-blocked] .training-controls-reveal::before {
 content: ''; position: absolute; left: 50%; top: 50%; width: 52px; height: 52px;
 transform: translate(-50%, -50%); border: 1px solid rgb(246 245 232 / 80%);
 border-radius: 50%; background: rgb(246 245 232 / 90%);
}
:is(.opening-media, .hosts-media, .hotel-media)[data-autoplay-blocked] .training-controls-reveal::after {
 content: ''; position: absolute; left: 50%; top: 50%; transform: translate(-35%, -50%);
 border-top: 9px solid transparent; border-bottom: 9px solid transparent; border-left: 14px solid #252622;
}

/* Общая кнопка действующих экранов, по образцу пользователя. */
.story-panel .new-contact { display: flex; align-items: center; justify-content: center; gap: var(--contact-gap); width: var(--contact-width); height: var(--contact-height); padding: 0 var(--contact-padding-inline); border: 1px solid #252622; color: #252622; font: 400 12px/25px var(--font-mono); text-decoration: none; white-space: nowrap; }
.story-panel .new-contact .contact-icon { display: block; width: 14px; height: 14px; flex: 0 0 14px; filter: none; }

/* Единый знак пользователя: исходные пропорции 115 × 47. */
.story-panel .signature { width: 73px; height: auto; filter: none; }

/* Счётчик и рамка кнопки начинаются на общей вертикали. */
.opening-advance { right: var(--frame-gutter); width: var(--contact-width); justify-content: space-between; }
