.h5-shell {
  position: fixed;
  inset: 0;
  left: 50%;
  height: 100vh;
  height: 100svh;
  max-height: 100vh;
  max-height: 100svh;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-snap-type: y mandatory;
  scroll-behavior: auto;
  overscroll-behavior-y: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
  width: min(100%, 750px);
  margin: 0;
  transform: translateX(-50%);
  background:
    linear-gradient(90deg, rgba(99, 18, 15, 0.08), transparent 10%, transparent 90%, rgba(99, 18, 15, 0.08)),
    var(--paper);
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.28);
}

.h5-shell::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.scene {
  min-height: 100vh;
  min-height: 100svh;
  height: 100vh;
  height: 100svh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: max(18px, env(safe-area-inset-top)) 18px max(58px, env(safe-area-inset-bottom));
  opacity: 0;
  transform: translateY(22px) scale(0.985);
  transition: opacity 1.05s ease, transform 1.05s ease;
}

.scene.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.scene:first-child {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.scene__inner {
  display: grid;
  gap: 12px;
  width: 100%;
  max-height: 100%;
  overflow: hidden;
}

.scene__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: rgba(99, 18, 15, 0.56);
  font-size: 0.78rem;
  font-weight: 900;
}

.scene__text {
  padding: 15px;
  border: 1px solid rgba(181, 34, 27, 0.18);
  border-radius: 8px;
  background: rgba(255, 249, 235, 0.88);
  box-shadow: var(--shadow);
}

.scene__text h1 {
  margin: 0;
  color: var(--deep-red);
  font-size: clamp(1.72rem, 8.8vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.scene__text p {
  margin: 0.72rem 0 0;
  color: #4b2117;
  font-size: clamp(0.92rem, 3.65vw, 1.16rem);
  line-height: 1.62;
  font-weight: 650;
}

.scene__text .subtitle {
  color: var(--gold);
  font-weight: 900;
}

@media (min-width: 760px) {
  .scene { padding-inline: 42px; }
  .scene__inner { gap: 16px; }
}
