.wrap {
  width: min(100%, 420px);
}

.book {
  position: relative;
  width: 100%;
  aspect-ratio: 408 / 600;
  border-radius: 6% 30% 30% 6%;
  box-shadow: 0 18px 40px rgba(var(--theme), 0.2);
  container-type: inline-size;
  background: rgba(var(--div-bg), 1);
}

.book .spine {
  position: absolute;
  left: 0%;
  top: 0.16%;
  width: 9%;
  height: 99.68%;
  border-radius: 14px 0 0 14px;
  background: linear-gradient(
    to right,
    rgba(var(--theme), .8),
    rgba(0,0,0, .1),
    rgba(var(--theme), 1)
  );
  overflow: hidden;
}

.book .cover {
  position: absolute;
  left: 7%;
  top: 0;
  width: 95.59%;
  height: 100%;
  background: rgba(var(--div-bg), 1);
  border-radius: 3px 30px 10px 3px;
  overflow: hidden;
}

.book .top {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 48.39%;
  background: rgba(var(--theme), 1);
}

.book .curve-left,
.book .curve-right {
  position: absolute;
  top: 38%;
  width: 56.41%;
  height: 29.03%;
  background: rgba(var(--div-bg), 1);
  z-index: 2;
  border-radius: 38px;
}

.book .curve-left {
  left: -7.69%;
  transform: rotate(-45deg);
}

.book .curve-right {
  right: -7.69%;
  transform: rotate(45deg);
}

.book .sname {
  position: absolute;
  top: 7.74%;
  left: 0;
  width: 100%;
  text-align: center;
  color: rgba(var(--div-bg), 1);
  font-size: 13cqw;
  font-weight: 800;
  z-index: 3;
  line-height: 1;
}

.book .line {
  position: absolute;
  top: 17%;
  left: 50%;
  transform: translateX(-50%);
  width: 28.21%;
  height: 0.65%;
  background: rgba(var(--div-bg), 1);
  z-index: 3;
}

.book .qb {
  position: absolute;
  top: 19%;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  text-align: center;
  color: rgba(var(--div-bg), 1);
  font-size: 7cqw;
  font-weight: 800;
  letter-spacing: 0.5px;
  z-index: 3;
}

.book .banner {
  position: absolute;
  top: 46%;
  left: 50%;
  width: 43.59%;
  aspect-ratio: 1 / 1;
  background: rgba(var(--div-bg), 1);
  border-radius: 10px;
  transform: translate(-50%, -50%) rotate(45deg);
  overflow: hidden;
  z-index: 4;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  border: 5px solid var(--border);
}
.book .banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 47%;
  width: 7%;
  height: 100%;
  background: rgba(var(--div-bg), .8);
  z-index: 1;
}
.book .banner::after {
  content: '';
  position: absolute;
  top: -3%;
  left: 50%;
  width: 7%;
  height: 110%;
  background: rgba(var(--div-bg), .8);
  rotate: -90deg;
  z-index: 1;
}

.book .bg {
  height: 145%;
  width: 160%;
  transform: rotate(-45deg) translate(-10%, -23%);
}

.book .company {
  position: absolute;
  bottom: 2%;
  width: 25%;
  right: 1%;
  z-index: 4;
  padding-right: 15px;
}

.book .title {
  position: absolute;
  bottom: 11%;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  text-align: center;
  color: rgba(var(--theme), 1);
  z-index: 4;
  line-height: 1;
}

.book .fullname {
  text-align: center;
  font-size: 4cqw;
  font-weight: 500;
  letter-spacing: 0.5px;
  z-index: 3;
  margin: 0px auto 4%;
}
.book .title .unit {
  display: block;
  color: rgba(var(--text), 1);
  font-size: 4cqw;
  font-weight: 900;
  letter-spacing: 0.5px;
  line-height: 1.3;
  width: 70%;
  margin: 0px auto 3%;
}

.book .title .info {
  display: block;
  margin-top: 8px;
  font-size: 7cqw;
  font-weight: 800;
  width: 70%;
  margin: auto;
}
