

.view--cinema {
  justify-content: center;
}

.cover-stage {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 0;
}

.cover-stage[hidden] {
  display: none;
}

.intro-view {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 0;
  animation: intro-view-in 600ms var(--ease-soft) both;
}

.intro-view[hidden] {
  display: none;
}

@keyframes intro-view-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.intro-stage {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: var(--page-max);
  min-height: 0;
}


.book-stage {
  max-width: 560px;
  gap: 8px;
}

.book-shell {
  position: relative;
  display: grid;
  place-items: center;
  width: var(--book-w, 340px);
  max-width: 100%;
  filter: drop-shadow(0 16px 22px rgb(73 59 81 / 24%));
}


.book-shell::before,
.book-shell::after {
  position: absolute;
  z-index: -1;
  border: 2px solid var(--plum);
  border-radius: 4px;
  background: var(--paper-dim);
  content: "";
  pointer-events: none;
}

.book-shell::before {
  inset: 7px -7px -7px 7px;
}

.book-shell::after {
  inset: 12px -12px -12px 12px;
  background: var(--paper);
  opacity: 0.75;
}

.book-sizer {
  width: 100%;
  max-width: 100%;
}

.book {
  filter: none;
}

.book-page {
  background: linear-gradient(178deg, var(--paper) 0%, #fdf3df 100%);
}



.beat-page .page-inner {
  gap: 6px;
}

.beat-page .photo-area {
  min-height: 0;
}

.beat-page .photo-plate {
  padding: 4px;
  height: auto;
  width: auto;
  max-width: 100%;
  max-height: 100%;
  aspect-ratio: var(--photo-ar, 3 / 4);
}

.beat-page .photo-plate--portrait {
  height: 100%;
  width: auto;
}

.beat-page .photo-plate--landscape {
  width: 100%;
  height: auto;
}

.beat-page .photo-plate img {
  width: 100%;
  height: 100%;
}

.beat-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex: 0 0 auto;
  color: var(--strawberry);
  font-family: var(--font-pixel);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.beat-kicker .beat-chip {
  color: var(--plum-soft);
  letter-spacing: 0.08em;
}

.beat-title {
  flex: 0 0 auto;
  color: var(--plum);
  font-size: clamp(16px, 4.8%, 21px);
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 1.35;
}

.beat-caption {
  flex: 0 0 auto;
  color: var(--plum-soft);
  font-size: 13.5px;
  line-height: 1.55;
}


.quote-page .page-inner {
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  padding: 22px;
}

.quote-mark {
  color: var(--sun);
  font-family: var(--font-display);
  font-size: 56px;
  line-height: 0.6;
}

.quote-text {
  color: var(--plum);
  font-family: var(--font-display);
  font-size: clamp(20px, 6.2%, 28px);
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.65;
}

.quote-by {
  color: var(--plum-soft);
  font-family: var(--font-pixel);
  font-size: 11px;
  letter-spacing: 0.18em;
}

.quote-foot {
  margin-top: 4px;
  color: var(--ink-faint);
  font-size: 12px;
}


.day-page .photo-plate img,
.night-page .photo-plate img {
  opacity: 0;
  transform: scale(1.012);
  transition: opacity var(--dur-crossfade) var(--ease-soft), transform 6000ms linear;
}

.book-page.is-live .photo-plate img {
  opacity: 1;
  transform: scale(1.04);
}

.book-page.is-live .night-page-inner .photo-plate img {
  transition-delay: 180ms, 180ms;
}

.night-tint {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 46%, rgb(207 203 230 / 40%) 68%, rgb(73 59 81 / 22%));
  content: "";
  pointer-events: none;
  opacity: 0;
  transition: opacity 700ms var(--ease-soft);
}

.book-page.is-live .night-tint {
  opacity: 1;
}


.invite-page .page-inner {
  align-items: flex-start;
  justify-content: center;
  gap: 12px;
  padding: clamp(14px, 5%, 24px);
}

.invite-page .scene-title {
  font-size: clamp(20px, 5.8%, 26px);
}

.invite-page .scene-lines {
  font-size: 15px;
}

.invite-actions {
  display: grid;
  justify-items: start;
  gap: 8px;
  margin-top: 6px;
}

.invite-actions .btn {
  min-height: 48px;
  padding: 0 20px;
  font-size: 15px;
}

@media (min-width: 720px) and (min-height: 560px) {
  .book-stage {
    max-width: min(94vw, 960px);
  }

  .book-shell {
    width: var(--book-w, 700px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .intro-view {
    animation: none;
  }

  .day-page .photo-plate img,
  .night-page .photo-plate img {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .night-tint {
    transition: none;
  }
}



.cover-actions--returning {
  width: min(100%, 300px);
  gap: 6px;
}

.cover-action-note {
  margin: 0 0 4px;
  color: var(--ink-faint);
  font-size: 12.5px;
  line-height: 1.5;
  text-align: center;
}

.cover-actions--returning .btn {
  width: 100%;
  min-height: 46px;
}

.beat-page .beat-title,
.pair-page .beat-title,
.collage-page .beat-title {
  font-size: clamp(14.5px, 4.15vw, 18px);
  line-height: 1.45;
  letter-spacing: 0.02em;
}

.quote-sub {
  max-width: 92%;
  color: var(--plum-soft);
  font-size: clamp(13px, 3.7vw, 15px);
  line-height: 1.75;
  text-align: center;
}

.quote-page .beat-kicker {
  align-self: stretch;
}

.pair-page .page-inner,
.collage-page .page-inner {
  gap: 6px;
}

.pair-grid {
  display: grid;
  flex: 1 1 auto;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 7px;
  min-height: 0;
}

.pair-photo {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 0;
  margin: 0;
}

.pair-photo-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 0;
  padding: 4px;
  border: 2.5px solid var(--plum);
  border-radius: 4px;
  background: var(--card);
  box-shadow: 2px 2px 0 var(--plum);
  overflow: hidden;
}

.pair-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pair-photo figcaption {
  color: var(--plum-soft);
  font-size: 11px;
  line-height: 1.4;
  text-align: center;
}

.pair-photo--2 {
  transform: translateY(6px);
}

.collage-grid {
  display: grid;
  flex: 1 1 auto;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: minmax(0, 1fr);
  gap: 6px;
  min-height: 0;
}

.collage-photo {
  margin: 0;
  padding: 3px;
  border: 2.5px solid var(--plum);
  border-radius: 4px;
  background: var(--card);
  box-shadow: 2px 2px 0 var(--plum);
  overflow: hidden;
}

.collage-photo:nth-child(1) { transform: rotate(-1.4deg); }
.collage-photo:nth-child(2) { transform: rotate(1.2deg); }
.collage-photo:nth-child(3) { transform: rotate(1deg); }
.collage-photo:nth-child(4) { transform: rotate(-0.8deg); }

.collage-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}


.photo-plate.is-broken img,
.pair-photo-frame.is-broken img,
.collage-photo.is-broken img {
  display: none;
}

.photo-plate.is-broken::after,
.pair-photo-frame.is-broken::after,
.collage-photo.is-broken::after {
  display: grid;
  place-items: center;
  min-height: 72px;
  padding: 10px;
  color: var(--plum-soft);
  content: "这张照片暂时没有加载出来";
  font-family: var(--font-pixel);
  font-size: 10.5px;
  line-height: 1.6;
  text-align: center;
}

.skip-intro {
  max-width: min(100%, 300px);
  text-align: center;
  line-height: 1.35;
}

.book-status #page-status {
  font-size: 10.5px;
}



.beat-body {
  flex: 0 0 auto;
  color: var(--plum-soft);
  font-size: clamp(12.5px, 3.7vw, 14px);
  line-height: 1.7;
}

.beat-page .photo-plate img {
  opacity: 1;
}


.restart-confirm {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgb(73 59 81 / 62%);
}

.restart-confirm[hidden] {
  display: none;
}

.restart-panel {
  width: min(100%, 360px);
  padding: 20px;
  border: 3px solid var(--plum);
  border-radius: 10px;
  background: var(--paper);
  box-shadow: var(--pixel-shadow);
  color: var(--plum);
  text-align: center;
}

.restart-panel h2 {
  font-size: 19px;
  line-height: 1.5;
}

.restart-panel p {
  margin: 8px 0 14px;
  color: var(--plum-soft);
  font-size: 14px;
  line-height: 1.7;
}

.restart-actions {
  display: grid;
  gap: 8px;
}

.restart-actions .btn {
  min-height: 46px;
}


.beat-date {
  flex: 0 0 auto;
  color: var(--strawberry);
  font-family: var(--font-pixel);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
}
