/*
 * C95 主转场 · 心动番外统一实现
 * 纯黑全屏、几何中心三行字卡；整屏是唯一推进热区。
 */
.chapter-screen,
.chapter {
  position: fixed !important;
  inset: 0 !important;
  z-index: 130 !important;
  width: 100% !important;
  height: 100% !important;
  box-sizing: border-box;
  padding:
    max(24px, env(safe-area-inset-top))
    max(48px, env(safe-area-inset-right))
    max(24px, env(safe-area-inset-bottom))
    max(48px, env(safe-area-inset-left));
  place-content: center;
  justify-items: center;
  row-gap: 12px;
  overflow: hidden;
  border: 0 !important;
  border-radius: 0 !important;
  outline: 0;
  background: #000 !important;
  color: #fff;
  text-align: center;
  font-family: "Noto Serif SC", "Source Han Serif SC", "Songti SC", STSong, serif;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.chapter-screen.active,
.chapter.show {
  display: grid !important;
  animation: heartbeat-transition-in 520ms ease both !important;
}

@keyframes heartbeat-transition-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.chapter-screen > span,
.chapter .fd-en {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.4);
  font-family: "DM Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 9px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 7px;
  white-space: nowrap;
}

.chapter-screen > h1,
.chapter .fd-t {
  max-width: 720px;
  margin: 0;
  color: #fff;
  font-family: "Noto Serif SC", "Source Han Serif SC", "Songti SC", STSong, serif;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 8px;
  white-space: nowrap;
}

.chapter-screen > p,
.chapter .fd-s {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.5);
  font-family: "Noto Serif SC", "Source Han Serif SC", "Songti SC", STSong, serif;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.8;
  letter-spacing: 3px;
  text-align: center;
  white-space: nowrap;
}

/* 主转场不显示额外操作提示。 */
.chapter-screen > small {
  display: none !important;
}

@media (max-width: 1000px), (max-height: 560px) {
  .chapter-screen,
  .chapter {
    padding:
      max(14px, env(safe-area-inset-top))
      max(24px, env(safe-area-inset-right))
      max(14px, env(safe-area-inset-bottom))
      max(24px, env(safe-area-inset-left));
  }

  .chapter-screen > span,
  .chapter .fd-en {
    font-size: 8.5px;
    letter-spacing: 5px;
  }

  .chapter-screen > h1,
  .chapter .fd-t {
    font-size: 22px;
    letter-spacing: 5px;
  }

  .chapter-screen > p,
  .chapter .fd-s {
    font-size: 10px;
    letter-spacing: 2px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .chapter-screen *,
  .chapter * {
    animation: none !important;
    transition: none !important;
  }
}
