/* The loading gate owns its layout and motion; article styles resume on exit. */
.step-opening-frame {
  position: relative;
  display: block;
  overflow: hidden;
  overflow-anchor: none;
  background: linear-gradient(115deg, #0b0c0d, #040505 75%);
  isolation: isolate;
}

.step-opening-frame > [data-step-content] {
  position: absolute;
  inset: 0 0 auto;
  width: 100%;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.step-opening-frame[data-step-phase="revealing"] > [data-step-content] {
  visibility: visible;
  opacity: 1;
}

.step-opening-loader {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 17px;
  padding: 26px;
  text-align: center;
}

.step-opening-loader .step-opening-label {
  margin: 0;
  color: #d5d8dc;
  font: 400 13px / 1.5 Inter, sans-serif;
  letter-spacing: .025em;
}

.step-opening-loader .content-reader-check-line {
  position: relative;
  inset: auto;
  flex: none;
  width: min(108px, 45%);
  height: 3px;
  transform: none;
  opacity: 1;
  transition: none;
}

.step-opening-loader .content-reader-check-track { opacity: 1; }
.step-opening-loader .content-reader-check-track::after { content: none; }

.step-opening-light {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: #fff;
  transform: translateX(-90%);
}

.step-opening-retry {
  min-height: 40px;
  padding: 9px 20px;
  border: 1px solid #303236;
  border-radius: 999px;
  color: #eef0f2;
  background: #141618;
  font: 400 13px / 1.4 Inter, sans-serif;
  cursor: pointer;
  touch-action: manipulation;
}

.step-opening-retry:focus-visible { outline: 2px solid #c9d8ed; outline-offset: 3px; }
.step-opening-retry:active { background: #202327; }
img[data-step-image-unavailable] { visibility: hidden; }

@media (prefers-reduced-motion: reduce) {
  .step-opening-light { transform: none; opacity: .65; }
}
