.library-scene {
  grid-template-columns: 1fr;
}

.library-back {
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.library-back a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: #999;
}

.library-back a:hover {
  text-decoration-color: #1a1a1a;
}

.library-heading {
  font-size: 1.4rem;
  font-weight: normal;
  margin-bottom: 1.25rem;
}

.book-list {
  list-style: none;
  padding: 0;
  margin: 1.75rem 0 0;
}

.book-list li {
  border-top: 1px solid #e8e8e8;
  padding: 0.85rem 0;
}

.book-list li:last-child {
  border-bottom: 1px solid #e8e8e8;
}

.book-list a {
  text-decoration: none;
  display: block;
}

.book-list a:hover .book-title {
  text-decoration: underline;
  text-decoration-color: #1a1a1a;
}

.lock-icon {
  width: 0.85em;
  height: 0.85em;
  vertical-align: -0.1em;
  margin-right: 0.4em;
  opacity: 0.4;
  flex-shrink: 0;
}

.book-title {
  font-size: 1.05rem;
  font-style: italic;
  color: #1a1a1a;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-decoration-color: #aaa;
  transition: text-decoration-color 0.15s;
}

/* Logged-in state set by library.js */
body.unlocked .lock-icon {
  display: none;
}

body.unlocked .book-title {
  text-decoration-style: solid;
  text-decoration-color: #ccc;
}

body.unlocked .book-list a:hover .book-title {
  text-decoration-color: #1a1a1a;
}

.book-meta {
  font-size: 0.9rem;
  color: #666;
  margin-top: 0.2rem;
}

.library-note {
  margin-top: 2rem;
  color: #666;
  font-size: 0.95rem;
}
