﻿/* A quiet reading room: original covers, oak shelves and paper/brass controls.
   Collection colors stay local to this view; puzzle themes are independent. */
#reader[data-mode="shelf"] {
  background: #f5f1e8;
}
#reader[data-mode="shelf"] .reader-main {
  grid-template-rows: minmax(0, 1fr);
  max-width: none;
  padding: 0;
}
#reader-content[data-mode="shelf"] {
  height: 100%;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #bbb8a5 transparent;
  background:
    radial-gradient(ellipse at 4% 0%, #dce4d580, transparent 52%),
    radial-gradient(ellipse at 98% 35%, #e9d4ae35, transparent 45%), #f5f1e8;
}
#reader .reader-shelf-link {
  flex-shrink: 0;
  padding: 8px 11px;
  font-size: 12px;
}
.overview-back {
  margin: 0 0 12px;
}
#reader .overview-back button {
  min-height: 34px;
  font-size: 11px;
  padding: 5px 9px;
}
#reader .shelf-top {
  --reader-accent: #315e52;
  --reader-dark: #24463f;
  --reader-paper: #f8f5ed;
  --reader-secondary: #d6ad68;
  background: #fcfaf4;
  border-bottom: 1px solid #dcded1;
}
#reader .shelf-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-right: auto;
  border: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
  text-align: left;
}
.shelf-brand > span {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border: 1px solid #d9bb7d;
  border-radius: 11px 11px 11px 3px;
  background: #315b50;
  color: #f1d79f;
  box-shadow: 0 3px 0 #c9ad78;
}
.shelf-brand > span .reader-icon {
  width: 21px;
  height: 21px;
}
.shelf-brand > strong {
  font:
    600 23px/1 "Fredoka",
    sans-serif;
  color: #2c493f;
  letter-spacing: -0.4px;
}
.shelf-brand small {
  display: block;
  margin-top: 4px;
  font:
    500 9px/1.2 "Noto Sans",
    sans-serif;
  color: #708177;
  letter-spacing: 0.25px;
}
#reader .shelf-top [data-action="importBooks"] {
  font-size: 12px;
  min-height: 36px;
}
.bookshelf {
  --shelf-ink: #28483f;
  --shelf-muted: #708076;
  --shelf-gold: #ebca91;
  --reader-accent: #315e52;
  --reader-dark: #23433b;
  --reader-secondary: #d9ad66;
  --reader-soft: #e4e9db;
  --reader-ink: #28483f;
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 32px 20px;
  color: var(--shelf-ink);
  font-family: "Noto Sans", sans-serif;
}
.shelf-intro {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 22px;
}
.shelf-eyebrow {
  display: block;
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 1.7px;
  color: #8c8063;
}
.shelf-intro h1 {
  margin: 6px 0 7px;
  font:
    550 clamp(31px, 3.3vw, 42px)/1.1 "Fredoka",
    sans-serif;
  letter-spacing: -1px;
  color: #26483e;
}
.shelf-intro p {
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
  color: var(--shelf-muted);
}
.shelf-collection-count {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-shrink: 0;
  padding: 12px 0 12px 22px;
  border-left: 1px solid #d5d7c7;
}
.shelf-collection-count > div {
  display: flex;
  align-items: center;
  gap: 9px;
}
.shelf-collection-count .reader-icon {
  width: 21px;
  height: 21px;
  color: #9c8b5e;
}
.shelf-collection-count span {
  font-size: 12px;
  color: #758171;
}
.shelf-collection-count strong {
  display: block;
  font:
    550 24px/1.15 "Fredoka",
    sans-serif;
  color: #34584b;
}
.shelf-toolbar {
  display: flex;
  align-items: center;
  gap: 20px;
}
.shelf-search {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  width: min(400px, 65%);
  border: 1px solid #d4d8c8;
  border-radius: 11px;
  padding: 0 13px;
  background: #fffdf8;
  color: #788d7d;
  box-shadow: 0 2px 2px #394f2f03;
}
.shelf-search:focus-within {
  border-color: #809d86;
  box-shadow: 0 0 0 3px #809d8618;
}
#reader .shelf-search input {
  width: 100%;
  min-height: 38px;
  padding: 8px 0;
  border: 0;
  outline: 0;
  font-size: 13px;
  color: #395448;
  background: transparent;
}
.shelf-search input::placeholder {
  color: #839080;
}
.shelf-sort {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  color: #7e8574;
  font-size: 10px;
}
#reader .shelf-sort select {
  min-height: 37px;
  padding: 7px 12px;
  border-color: #d4d8c8;
  border-radius: 9px;
  color: #566d5b;
  background: #fffdf6;
  font-size: 11px;
}
.shelf-filter-row {
  margin: 13px 0 18px;
}
.shelf-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
#reader .shelf-filters button {
  min-height: 34px;
  padding: 7px 10px;
  gap: 6px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #74806e;
  font-size: 12px;
}
.shelf-filters .reader-icon {
  width: 15px;
  height: 15px;
  opacity: 0.8;
}
#reader .shelf-filters [aria-pressed="true"] {
  border-color: #cfd5bf;
  background: #e5e9d9;
  color: #37594a;
  box-shadow: inset 0 1px 0 #ffffffb0;
  font-weight: 650;
}
.shelf-filters small {
  min-width: 15px;
  padding: 1px 4px;
  border-radius: 4px;
  color: #87927a;
  background: #cbd3b733;
  font-size: 9px;
  text-align: center;
}
.shelf-cabinet {
  position: relative;
  padding: 10px;
  border: 1px solid #ac8c64;
  border-radius: 24px;
  background:
    repeating-linear-gradient(90deg, #fff4cf0a 0 2px, #6145210b 3px 5px),
    linear-gradient(135deg, #ddc09a, #b89366 38%, #b48b5c 70%, #e1c198);
  box-shadow:
    0 18px 38px -18px #39473340,
    0 3px 5px #4f3e201a,
    inset 0 1px 0 #fff0cd;
}
.shelf-cabinet::before,
.shelf-cabinet::after {
  content: "";
  position: absolute;
  top: 7px;
  width: 4px;
  height: 4px;
  border: 1px solid #a07d43;
  border-radius: 50%;
  background: #f1d79b;
  box-shadow: 0 1px 1px #614b2e60;
}
.shelf-cabinet::before {
  left: 11px;
}
.shelf-cabinet::after {
  right: 11px;
}
.shelf-cabinet-inner {
  overflow: hidden;
  border: 1px solid #9b825c;
  border-radius: 14px;
  background:
    radial-gradient(ellipse at 50% 0%, #5d83702e, transparent 70%),
    repeating-linear-gradient(
      90deg,
      transparent 0 180px,
      #11382d13 181px 182px
    ),
    linear-gradient(125deg, #315b4e, #21473f 58%, #2a5145);
  box-shadow:
    inset 0 5px 12px #102f2855,
    inset 3px 0 9px #132b2429;
}
.shelf-gallery-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding: 17px 28px 0;
}
.shelf-gallery-heading > div {
  display: flex;
  align-items: center;
  gap: 10px;
}
.shelf-gallery-icon {
  color: #e0bf83;
}
.shelf-gallery-icon .reader-icon {
  width: 18px;
  height: 18px;
}
.shelf-gallery-heading h2 {
  margin: 0;
  color: #e5d8b9;
  font:
    500 12px "Noto Sans",
    sans-serif;
  letter-spacing: 0.5px;
}
.shelf-results-count {
  color: #b2c4ad;
  font-size: 11px;
}
.shelf-row {
  --shelf-cover-height: clamp(220px, 31vh, 320px);
  --shelf-cover-width: 218px;
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: repeat(var(--shelf-columns), minmax(0, 1fr));
  justify-items: center;
  gap: 30px;
  padding: 22px 42px 25px;
}
.shelf-row + .shelf-row {
  padding-top: 28px;
  border-top: 1px solid #91a78518;
}
.shelf-row::before {
  content: "";
  position: absolute;
  left: 17px;
  right: 17px;
  top: calc(22px + var(--shelf-cover-height));
  height: 19px;
  border: 1px solid #bc986b;
  border-bottom-color: #8c6645;
  border-radius: 3px 3px 4px 4px;
  background:
    repeating-linear-gradient(1deg, #fff4d20e 0 1px, #6747290d 2px 3px),
    linear-gradient(
      #ebd1a8 0%,
      #dbc09a 21%,
      #c19b71 24%,
      #bb9063 70%,
      #9f774e 100%
    );
  box-shadow:
    inset 0 1px 0 #fff5d2a0,
    0 9px 14px #102a2245,
    0 1px 0 #5d493a;
  z-index: -1;
}
.shelf-row + .shelf-row::before {
  top: calc(28px + var(--shelf-cover-height));
}
.shelf-book,
.shelf-add-slot {
  position: relative;
  display: grid;
  grid-template-rows: var(--shelf-cover-height) auto;
  min-width: 0;
  width: 100%;
  max-width: 340px;
}
.shelf-book-stage {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-width: 0;
  padding: 0 10px;
}
.shelf-book .shelf-book-stage::after {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: -6px;
  height: 15px;
  border-radius: 50%;
  background: #0b211b66;
  filter: blur(7px);
  z-index: -1;
}
#reader .shelf-open {
  position: relative;
  display: block;
  width: min(
    94%,
    var(--shelf-cover-width),
    calc(var(--shelf-cover-height) * var(--cover-ratio))
  );
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 3px 6px 5px 2px;
  background: #fff6df;
  box-shadow:
    -5px 6px 16px #0b251b44,
    9px 10px 20px #0a201b40;
  transform: perspective(1000px) rotateY(-11deg) rotateZ(-1.5deg);
  transform-origin: center bottom;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}
#reader .shelf-open::after {
  content: "";
  position: absolute;
  top: 4px;
  bottom: 2px;
  right: -6px;
  width: 7px;
  border-radius: 0 3px 4px 0;
  background: repeating-linear-gradient(#f5ead5 0 1px, #cfc1a7 1px 2px);
  box-shadow: 1px 0 0 #8f7e61;
  transform: skewY(18deg);
  z-index: -1;
}
.shelf-cover-art {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  overflow: hidden;
  border-radius: inherit;
  background: #fff9ec;
  color: #b2bfa3;
}
.shelf-cover-art::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 13px;
  background: linear-gradient(
    90deg,
    #183b2b24,
    #ffffff20 32%,
    #183b2b12 46%,
    transparent
  );
  z-index: 1;
  pointer-events: none;
}
.shelf-cover-art::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid #ffffff4d;
  border-radius: inherit;
  box-shadow: inset -1px 0 1px #17352b24;
  pointer-events: none;
}
.shelf-cover-art > .reader-icon {
  width: 45px;
  height: 45px;
}
.shelf-cover-art img,
.shelf-cover-art > svg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
#reader .shelf-favorite {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 4px;
  display: grid;
  place-items: center;
  width: 34px;
  min-height: 34px;
  padding: 7px;
  border: 1px solid #a3ba9633;
  border-radius: 50%;
  background: #183e3480;
  color: #b1c2a5;
  transition:
    color 140ms ease,
    background 140ms ease;
}
#reader .shelf-favorite[aria-pressed="true"] {
  border-color: #e1bf79;
  color: #ffe2a5;
  background: #8d753c5e;
}
.shelf-favorite .reader-icon {
  width: 17px;
  height: 17px;
}
.shelf-favorite[aria-pressed="true"] .reader-icon {
  fill: #e2b968;
}
.shelf-book-details {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-width: 0;
  width: 100%;
  max-width: 290px;
  margin: 0 auto;
  padding: 33px 2px 0;
}
.shelf-book-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  min-height: 23px;
  margin-bottom: 8px;
  gap: 4px;
}
.shelf-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 7px;
  border-radius: 4px;
  color: #c1cdb6;
  background: #bfd0a719;
  font-size: 10px;
  line-height: 1.5;
}
.shelf-status .reader-icon {
  width: 12px;
  height: 12px;
}
.shelf-status[data-status="ready"] {
  color: #ffe2a8;
  background: #e6bd6a26;
}
.shelf-status[data-status="done"] {
  color: #cce9ac;
  background: #9acb7b22;
}
.shelf-current-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #e8cd99;
  font-size: 10px;
}
.shelf-current-label::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #e4b974;
}
.shelf-book-details h2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.5em;
  margin: 0;
  font:
    500 19px/1.25 "Fredoka",
    sans-serif;
  letter-spacing: -0.15px;
  color: #fff4dc;
  text-wrap: pretty;
}
.shelf-book-details > p {
  margin: 7px 0 14px;
  font-size: 12px;
  color: #b1c5b0;
  line-height: 1.5;
}
.shelf-book-details > p > span {
  margin: 0 7px;
  color: #8baf97;
}
.shelf-progress-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #b7c9b5;
  font-size: 11px;
}
.shelf-progress-label strong {
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: #e0c699;
}
.shelf-book-details progress {
  display: block;
  appearance: none;
  width: 100%;
  height: 5px;
  overflow: hidden;
  border: 0;
  border-radius: 9px;
  background: #8ca98a33;
  margin: 7px 0 16px;
  accent-color: #e7c284;
}
.shelf-book-details progress::-webkit-progress-bar {
  border-radius: 9px;
  background: #8ca98a33;
}
.shelf-book-details progress::-webkit-progress-value {
  border-radius: 9px;
  background: linear-gradient(90deg, #b9bc84, #f2d194);
}
.shelf-book-details progress::-moz-progress-bar {
  border-radius: 9px;
  background: linear-gradient(90deg, #b9bc84, #f2d194);
}
#reader .shelf-book-details > [data-game-button] {
  --button-face: #f4e5c8;
  --button-highlight: #fff5de;
  --button-bottom: #e8d8b8;
  --button-edge: #bcaa80;
  --button-line: #dfceab;
  --button-ink: #315044;
  width: 100%;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 9px;
  font:
    600 12px "Noto Sans",
    sans-serif;
  text-shadow: 0 1px 0 #fff8e9;
}
#reader .shelf-book-details > [data-action="resumeShelfBook"] {
  --button-face: #e9bc77;
  --button-highlight: #faddab;
  --button-bottom: #deb071;
  --button-edge: #ac854d;
  --button-line: #e7bd80;
  --button-ink: #4c4329;
}
.shelf-book-details > button .reader-icon {
  width: 17px;
  height: 17px;
}
.shelf-add-slot {
  max-width: 290px;
}
#reader .shelf-invitation {
  position: relative;
  display: grid;
  place-items: center;
  align-self: center;
  width: min(100%, 228px);
  min-height: 0;
  margin-bottom: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
}
.shelf-invitation-art {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 8px 12px #13382b20);
  transition: transform 180ms ease;
}
.shelf-invitation-plus {
  position: absolute;
  bottom: 21px;
  right: 25px;
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border: 1px solid #f6dba4;
  border-radius: 50%;
  background: #f3d597;
  color: #44634a;
  font-size: 24px;
  font-weight: 300;
  line-height: 1;
  box-shadow: 0 2px 0 #ab8958;
}
.shelf-add-slot .shelf-book-details {
  justify-content: center;
  text-align: center;
}
.shelf-invitation-kicker {
  display: block;
  margin: 1px 0 10px;
  font-size: 9px;
  line-height: 1.5;
  letter-spacing: 1.35px;
  color: #b9c3a5;
}
.shelf-add-slot .shelf-book-details h2 {
  min-height: 0;
  max-width: 220px;
  margin: 0 auto;
  font:
    450 24px/1.13 "Fredoka",
    sans-serif;
  color: #e3d7b6;
  text-wrap: balance;
}
.shelf-add-slot .shelf-book-details > p {
  max-width: 230px;
  margin: 10px auto 15px;
  color: #a7bfa8;
  line-height: 1.65;
}
#reader .shelf-add-slot .shelf-book-details > button {
  --button-face: #355c4e;
  --button-highlight: #416c59;
  --button-bottom: #2c5045;
  --button-edge: #153f35;
  --button-line: #8f9f734d;
  --button-ink: #ead4a8;
  margin-top: auto;
  text-shadow: none;
}
.shelf-empty {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 15px;
  min-height: 360px;
  padding: 35px 20px;
  color: #e7dbc0;
  text-align: center;
}
.shelf-empty-icon {
  display: grid;
  place-items: center;
  width: 75px;
  height: 75px;
  border: 1px solid #c5d2a72e;
  border-radius: 50%;
  color: #d5bf8d;
  background: #afbf8e0d;
}
.shelf-empty-icon .reader-icon {
  width: 36px;
  height: 36px;
}
.shelf-empty h2 {
  margin: 0;
  font:
    500 26px "Fredoka",
    sans-serif;
  color: #eee1c2;
}
.shelf-empty p {
  max-width: 430px;
  margin: 0;
  font-size: 12px;
  line-height: 1.7;
  color: #b2c6ae;
}
#reader .shelf-empty button,
#reader .shelf-load-more button {
  --button-face: #f1dfbb;
  --button-highlight: #faedce;
  --button-bottom: #ddc69e;
  --button-line: #e0c498;
  --button-edge: #aa9167;
  --button-ink: #345447;
  text-shadow: none;
}
.shelf-load-more {
  display: flex;
  justify-content: center;
  padding: 4px 0 28px;
}
.shelf-storage-note {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin: 18px 0 0;
  color: #8a8b77;
  font-size: 10px;
  line-height: 1.6;
  text-align: center;
}
.shelf-storage-note .reader-icon {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}
@media (hover: hover) and (pointer: fine) {
  #reader .shelf-open:hover {
    transform: perspective(1000px) rotateY(-5deg) rotateZ(0deg) translateY(-6px);
    box-shadow:
      -5px 12px 20px #0b251b55,
      9px 16px 25px #0a201b40;
  }
  #reader .shelf-favorite:hover {
    color: #ffe0a0;
    background: #7e774558;
    border-color: #cbb57066;
  }
  .shelf-invitation:hover .shelf-invitation-art {
    transform: rotate(-3deg) translateY(-3px);
  }
}
@media (max-width: 1000px) {
  .bookshelf {
    max-width: 860px;
    padding: 25px 25px 20px;
  }
  .shelf-collection-count {
    gap: 14px;
    padding-left: 16px;
  }
  .shelf-row {
    padding-left: 32px;
    padding-right: 32px;
    gap: 30px;
  }
}
@media (max-width: 900px) {
  .reader-shelf-link > .button-label {
    display: none;
  }
}
@media (max-width: 700px) {
  .bookshelf {
    padding: 22px 16px 18px;
  }
  .shelf-intro {
    gap: 16px;
    margin-bottom: 18px;
  }
  .shelf-eyebrow {
    font-size: 7px;
    letter-spacing: 1.1px;
    max-width: 240px;
    line-height: 1.6;
  }
  .shelf-intro h1 {
    font-size: 32px;
    margin-top: 5px;
  }
  .shelf-intro p {
    font-size: 11px;
    max-width: 330px;
  }
  .shelf-collection-count {
    gap: 12px;
    padding-left: 13px;
  }
  .shelf-collection-count .reader-icon {
    display: none;
  }
  .shelf-collection-count strong {
    font-size: 22px;
  }
  .shelf-collection-count span {
    font-size: 9px;
    white-space: nowrap;
  }
  .shelf-toolbar {
    gap: 12px;
  }
  .shelf-search {
    flex: 1;
    width: auto;
  }
  .shelf-sort {
    gap: 0;
    font-size: 0;
  }
  #reader .shelf-sort select {
    max-width: 137px;
    padding: 8px;
    font-size: 10px;
  }
  .shelf-filters {
    gap: 3px;
  }
  #reader .shelf-filters button {
    gap: 4px;
    padding: 7px 8px;
    font-size: 10px;
  }
  .shelf-filters .reader-icon {
    display: none;
  }
  .shelf-cabinet {
    padding: 7px;
    border-radius: 19px;
  }
  .shelf-cabinet-inner {
    border-radius: 11px;
  }
  .shelf-gallery-heading {
    padding: 15px 16px 0;
  }
  .shelf-gallery-heading h2 {
    font-size: 11px;
  }
  .shelf-row {
    --shelf-cover-height: 215px;
    --shelf-cover-width: 155px;
    gap: 20px;
    padding: 22px 22px 23px;
  }
  .shelf-row::before {
    left: 8px;
    right: 8px;
    height: 16px;
  }
  .shelf-book-stage {
    padding: 0 6px;
  }
  .shelf-book-details {
    padding-top: 28px;
  }
  .shelf-book-details h2 {
    font-size: 16px;
  }
  .shelf-book-details > p {
    font-size: 10px;
    margin-bottom: 12px;
  }
  .shelf-book-details > p > span {
    margin: 0 4px;
  }
  #reader .shelf-favorite {
    right: -8px;
    width: 29px;
    min-height: 29px;
    padding: 6px;
  }
  .shelf-invitation-plus {
    width: 27px;
    height: 27px;
    font-size: 22px;
    bottom: 15px;
    right: 18px;
  }
  .shelf-invitation-kicker {
    font-size: 8px;
    letter-spacing: 0.9px;
  }
  .shelf-add-slot .shelf-book-details h2 {
    font-size: 22px;
  }
  .shelf-add-slot .shelf-book-details > p {
    font-size: 10px;
  }
  #reader .shelf-book-details > [data-game-button] {
    font-size: 11px;
    padding: 8px;
    gap: 5px;
  }
  .shelf-current-label {
    font-size: 9px;
  }
  .shelf-status {
    font-size: 10px;
    padding: 3px 5px;
  }
}
@media (max-width: 600px) {
  #reader .reader-book-identity {
    display: none;
  }
  #reader .reader-shelf-link {
    width: 38px;
    min-height: 38px;
    padding: 6px;
  }
  .shelf-top .reader-menu > button .button-label {
    display: none;
  }
  #reader .shelf-top [data-action="importBooks"] {
    font-size: 10px;
    padding: 6px 8px;
    gap: 5px;
  }
  .shelf-top [data-action="importBooks"] .reader-icon {
    width: 17px;
  }
  .shelf-brand > strong {
    font-size: 20px;
  }
  .shelf-brand small {
    font-size: 8px;
  }
  .shelf-brand > span {
    width: 31px;
    height: 31px;
  }
}
@media (max-width: 440px) {
  .bookshelf {
    padding: 19px 10px 15px;
  }
  .shelf-intro {
    align-items: flex-start;
    gap: 10px;
  }
  .shelf-intro h1 {
    font-size: 29px;
    letter-spacing: -0.6px;
  }
  .shelf-intro p {
    max-width: 230px;
    font-size: 10px;
  }
  .shelf-eyebrow {
    display: none;
  }
  .shelf-collection-count {
    padding: 2px 0 2px 9px;
    margin-top: 15px;
    gap: 9px;
  }
  .shelf-collection-count strong {
    font-size: 20px;
  }
  .shelf-collection-count span {
    font-size: 8px;
  }
  .shelf-search {
    min-height: 39px;
    padding: 0 9px;
    gap: 6px;
  }
  .shelf-search .reader-icon {
    width: 16px;
  }
  #reader .shelf-search input {
    font-size: 11px;
  }
  #reader .shelf-sort select {
    max-width: 121px;
    font-size: 9px;
  }
  .shelf-filter-row {
    margin: 10px 0 14px;
  }
  #reader .shelf-filters button {
    min-height: 33px;
    font-size: 9px;
    padding: 6px;
    gap: 3px;
  }
  .shelf-filters small {
    font-size: 8px;
    min-width: 12px;
    padding: 1px 3px;
  }
  .shelf-row {
    --shelf-cover-height: 180px;
    --shelf-cover-width: 126px;
    gap: 16px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .shelf-book-details h2 {
    font-size: 14px;
    line-height: 1.3;
    min-height: 2.6em;
  }
  .shelf-book-status {
    min-height: 22px;
  }
  .shelf-current-label {
    display: none;
  }
  .shelf-progress-label {
    font-size: 10px;
  }
  .shelf-book-details > p {
    font-size: 10px;
  }
  .shelf-add-slot .shelf-book-details h2 {
    font-size: 19px;
  }
  .shelf-add-slot .shelf-book-details > p {
    font-size: 10px;
  }
  .shelf-invitation-kicker {
    display: none;
  }
  #reader .shelf-book-details > [data-game-button] {
    min-height: 39px;
    font-size: 11px;
    padding: 7px 5px;
    gap: 5px;
  }
  .shelf-book-details > button .reader-icon {
    width: 14px;
    height: 14px;
  }
  .shelf-storage-note {
    font-size: 10px;
    max-width: 290px;
    margin-left: auto;
    margin-right: auto;
  }
}
@media (any-pointer: coarse) {
  #reader .shelf-favorite {
    width: 42px;
    min-height: 42px;
  }
  #reader .shelf-filters button {
    min-height: 40px;
  }
}
@media (prefers-reduced-motion: reduce) {
  #reader .shelf-open,
  #reader .shelf-open:hover,
  .shelf-invitation-art,
  .shelf-invitation:hover .shelf-invitation-art {
    transform: none;
    transition: none;
  }
}
