@font-face {
  font-family: "SUIT";
  src: url("/fonts/SUIT-SemiBold.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
}

@font-face {
  font-family: "SUIT";
  src: url("/fonts/SUIT-Medium.ttf") format("truetype");
  font-style: normal;
  font-weight: 500;
}

:root {
  --orange-800: #ff6845;
  --orange-900: #ff532c;
  --gray-1000: #1a1a1a;
  --gray-900: #303030;
  --gray-800: #6e6e6e;
  --gray-200: #e8e8e8;
  background: #fff;
  color: var(--gray-1000);
  font-family: "SUIT", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100dvh; overflow: hidden; overscroll-behavior: none; }
button { font: inherit; }

.collection-page {
  background: #fff;
  margin: 0 auto;
  max-width: 390px;
  min-height: 100dvh;
  padding: 21px 20px 220px;
  transition: transform 180ms ease-out;
  will-change: transform;
}

.collection-owner {
  color: var(--orange-800);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.4;
  margin: 0;
}

.collection-title {
  color: var(--gray-1000);
  display: -webkit-box;
  font-size: 20px;
  font-weight: 600;
  height: 56px;
  letter-spacing: -0.02em;
  line-height: 1.4;
  margin: 4px 0 0;
  overflow: hidden;
  width: 200px;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.collection-actions {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-top: 23px;
}

.collection-meta {
  color: var(--gray-800);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.4;
  margin: 0 0 0 2px;
}

.add-button {
  background: #fff;
  border: 1px solid var(--orange-900);
  border-radius: 4px;
  color: var(--orange-900);
  font-size: 12px;
  font-weight: 600;
  height: 28px;
  letter-spacing: -0.02em;
  padding: 0;
  width: 95px;
}

.divider {
  background: var(--gray-200);
  height: 1px;
  margin: 20px 2px 0;
}

.books {
  column-gap: 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
  margin: 30px 0 0;
  padding: 0;
  row-gap: 32px;
}

.book-card { min-width: 0; }

.book-cover {
  align-items: stretch;
  aspect-ratio: 106 / 150;
  background: #ededed;
  border: 0.5px solid var(--gray-200);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.book-cover-image {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.book-title {
  color: var(--gray-1000);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.4;
  margin: 4px 0 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.book-author {
  color: var(--gray-800);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.4;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-promotion {
  background: linear-gradient(
    to bottom,
    rgb(255 255 255 / 0%) 0%,
    rgb(255 255 255 / 0%) 50%,
    #fff 96%
  );
  bottom: 0;
  height: 322px;
  left: 50%;
  max-width: 390px;
  padding: 198px 20px 44px;
  pointer-events: none;
  position: fixed;
  transform: translateX(-50%);
  width: 100%;
}

.app-promotion::before {
  content: none;
}

.app-promotion p {
  color: var(--gray-900);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.4;
  margin: 0;
  position: relative;
  text-align: center;
}

.app-promotion strong { color: var(--orange-900); font-weight: 600; }

@media (max-width: 767px) {
  .app-promotion {
    padding: 0 20px;
  }

  .app-promotion p {
    bottom: 30px;
    left: 20px;
    position: absolute;
    right: 20px;
    text-align: center;
  }
}

@media (min-width: 768px) {
  .app-promotion {
    background: transparent;
    height: max(322px, calc(100dvh - 522px));
  }

  .app-promotion::before {
    background: linear-gradient(
      to bottom,
      rgb(255 255 255 / 0%) 0,
      #fff 230px,
      #fff 322px
    );
    content: "";
    inset: 0;
    pointer-events: none;
    position: absolute;
  }
}

.app-modal-backdrop {
  align-items: center;
  background: rgb(0 0 0 / 48%);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 20px;
  position: fixed;
  z-index: 10;
}

.app-modal-backdrop[hidden] { display: none; }

.app-modal-stack {
  left: 50%;
  position: absolute;
  top: calc(50% + 8px);
  transform: translate(-50%, -50%);
  width: 310px;
}

.app-modal {
  background: #fff;
  border-radius: 10px;
  height: 258px;
  padding: 35px 22px 20px;
  text-align: center;
  width: 310px;
}

.app-modal-mark {
  display: block;
  height: 17px;
  margin: 0 auto 22px;
  width: 42px;
}

.app-modal-title {
  color: var(--gray-1000);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.4;
  margin: 0;
}

.app-modal-title strong { color: var(--orange-900); font-weight: 600; }

.app-modal-description {
  color: var(--gray-900);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.4;
  margin: 5px 0 24px;
}

.app-modal-primary,
.app-modal-secondary {
  border: 0;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.app-modal-primary {
  background: var(--orange-900);
  border-radius: 6px;
  color: #fff;
  font-size: 15px;
  height: 48px;
  width: 100%;
}

.app-modal-secondary {
  background: transparent;
  color: #fff;
  display: block;
  font-size: 12px;
  height: 17px;
  line-height: 1.4;
  margin: 12px auto 0;
  padding: 0;
}

@media (max-width: 359px) {
  .collection-page { padding-left: 16px; padding-right: 16px; }
  .books { column-gap: 12px; }
}
