letter-book {
  --book-face-left: 28%;
  --book-face-width: 56%;
  display: block;
  position: relative;
  container-type: inline-size;
  width: 100%;
  aspect-ratio: 2 / 1;
  background: url('/assets/onemore.svg') center / contain no-repeat;
  background-size: 133% auto;
  color: #f7e3bd;
  font: italic 400 1rem/1.12 var(--serif);
  letter-spacing: normal;
  text-shadow: 0 1px 2px #25190e;
}
letter-book[data-book="book-two"] {
  background-image: url('/assets/benhoan.svg');
  background-size: 122% auto;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.85), 0 0 10px rgba(0, 0, 0, 0.65);
}
letter-book[data-book="book-three"] {
  --book-face-left: 30%;
  --book-face-width: 55%;
  background-image: url('/assets/tinhban.svg');
  background-size: 102% auto;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.85), 0 0 10px rgba(0, 0, 0, 0.65);
}
letter-book[data-book="book-four"] { background-image: url('/assets/love.svg'); background-size: 102% auto; }
.book-face {
  display: none !important;
  position: absolute;
  left: var(--book-face-left);
  top: 20%;
  width: var(--book-face-width);
  height: 21%;
  display: grid;
  align-content: center;
  text-align: center;
  overflow-wrap: anywhere;
  text-wrap: balance;
  transform: rotate(-3.6deg);
}
.book-face > span {
  display: block;
  padding: .12em .1em;
  line-height: 1.3;
}
.quote-card .card-open {
  display: block;
  width: 100%;
  padding: 0;
  background: transparent;
  transition: transform .2s ease-out;
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .quote-card .card-open:hover { transform: translateY(-3px); }
}
.quote-card .book-category {
  margin-top: .3rem;
  text-align: center;
  color: var(--muted);
  font-size: .75rem;
}
#editor-book, #preview-book { width: min(100%, 225px); margin-inline: auto; }
