/* LIFE — Life Book */

.book-head {
  text-align: center;
  margin-bottom: 18px;
}

.book-head .muted {
  font-family: var(--serif-text);
  font-size: 17px;
  margin: 0;
}

.sheet {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(24px, 5vw, 54px) clamp(20px, 5vw, 60px) 56px;
  border-radius: 6px 14px 14px 6px;
  color: #2b241a;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(255, 255, 255, 0.5), transparent 60%),
    linear-gradient(90deg, rgba(120, 90, 50, 0.16), transparent 7%),
    #f1e7d2;
  box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.55),
    inset 0 0 70px rgba(150, 110, 60, 0.18);
  animation: rise 0.4s ease both;
}

.sheet.turn-next { animation: turn-next 0.45s ease both; }
.sheet.turn-prev { animation: turn-prev 0.45s ease both; }

@keyframes turn-next {
  from { opacity: 0; transform: translateX(26px) rotateY(-6deg); }
  to { opacity: 1; transform: none; }
}

@keyframes turn-prev {
  from { opacity: 0; transform: translateX(-26px) rotateY(6deg); }
  to { opacity: 1; transform: none; }
}

.page-label {
  text-align: center;
  font-family: var(--serif-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #8a6a3b;
  margin-bottom: 18px;
}

.page-image {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  border-radius: 3px;
  margin: 0 auto 22px;
  background: #e2d6bd;
  padding: 8px;
  box-shadow: 0 6px 18px rgba(60, 40, 15, 0.25);
}

.sheet .action {
  margin: 0 0 18px;
  padding-left: 14px;
  border-left: 2px solid #b8955a;
  color: #6e5430;
  font-family: var(--serif-text);
  font-style: italic;
  font-size: var(--story-size);
  line-height: 1.6;
}

.sheet .content {
  font-family: var(--serif-text);
  font-size: var(--story-size);
  line-height: 1.75;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.folio {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  text-align: center;
  font-family: var(--serif-display);
  font-size: 16px;
  color: #9b8058;
}

/* Cover */

.sheet.cover {
  text-align: center;
  padding-top: clamp(40px, 8vw, 80px);
  padding-bottom: clamp(40px, 8vw, 80px);
  color: #f3e6c8;
  background:
    radial-gradient(ellipse at 50% 20%, rgba(255, 220, 160, 0.12), transparent 60%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.35), transparent 6%),
    #1d2731;
  border: 1px solid rgba(233, 211, 164, 0.3);
}

.cover-image {
  display: block;
  width: min(320px, 70%);
  aspect-ratio: 1;
  object-fit: cover;
  margin: 0 auto 30px;
  border: 1px solid rgba(233, 211, 164, 0.5);
  padding: 6px;
  background: rgba(0, 0, 0, 0.25);
}

.cover-kicker {
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 22px;
  color: var(--gold);
}

.cover-name {
  margin: 6px 0 14px;
  font-family: var(--serif-display);
  font-size: clamp(36px, 8vw, 58px);
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.05;
}

.cover-rule {
  width: 160px;
  height: 1px;
  margin: 0 auto 16px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.cover-sub,
.cover-count {
  margin: 0 0 6px;
  font-family: var(--serif-text);
  font-size: 18px;
  color: #d5c7aa;
}

.cover-count {
  color: var(--faint);
  font-size: 16px;
}

/* Navigation */

.book-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 18px auto 0;
  max-width: 760px;
}

.book-nav select {
  flex: 0 1 260px;
  min-width: 0;
}
