/* 국어 공책 표지 (랜딩과 공책 화면에서 함께 씁니다) */

.cover {
  position: relative;
  aspect-ratio: 3 / 4;
  width: 100%;
  border-radius: 6px 16px 16px 6px;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.045) 0 2px, transparent 2px 5px),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.04) 0 2px, transparent 2px 5px),
    linear-gradient(160deg, #3a79e4 0%, #2c6bd9 45%, #2258bb 100%);
  box-shadow:
    inset -6px 0 0 rgba(0, 0, 0, 0.08),
    0 2px 0 #1b458f,
    0 18px 40px rgba(31, 60, 120, 0.32);
  overflow: hidden;
  container-type: inline-size;
  color: var(--ink);
}

/* 책등 테이프 */
.cover-spine {
  position: absolute;
  inset: 0 auto 0 0;
  width: 9%;
  background: linear-gradient(90deg, #4a3329, #6a4a3b 60%, #5b4034);
  box-shadow: inset -2px 0 0 rgba(0, 0, 0, 0.2);
}
.cover-spine::after {
  content: '';
  position: absolute;
  inset: 5% 34% 5% auto;
  border-right: 2px dashed rgba(255, 249, 236, 0.55);
}

/* 이름표 */
.cover-label {
  position: absolute;
  left: 20%;
  right: 11%;
  top: 9%;
  padding: 6cqw 4cqw 5cqw;
  background: #fffdf8;
  border-radius: 2.4cqw;
  box-shadow: 0 0.6cqw 0 rgba(0, 0, 0, 0.14);
  text-align: center;
}
.cover-label::before {
  content: '';
  position: absolute;
  inset: 1.4cqw;
  border: 0.5cqw solid var(--coral);
  border-radius: 1.6cqw;
  opacity: 0.75;
  pointer-events: none;
}
.cover-title {
  font-size: 9.4cqw;
  justify-content: center;
  flex-wrap: nowrap;
}
.cover-title .cell {
  border-width: 0.45cqw;
  margin-left: -0.45cqw;
  background: #fff;
}
.cover-sub {
  margin-top: 3.2cqw;
  font-size: 4.3cqw;
  font-weight: 700;
  color: var(--ink-2);
  letter-spacing: 0.02em;
}

/* 이름 쓰는 줄 */
.cover-name {
  position: absolute;
  left: 20%;
  right: 11%;
  top: 46.5%;
  display: flex;
  align-items: flex-end;
  gap: 2.5cqw;
  padding: 2.6cqw 4cqw;
  background: rgba(255, 253, 248, 0.94);
  border-radius: 2cqw;
  font-size: 4.4cqw;
  font-weight: 700;
  color: var(--ink-2);
}
.cover-name-line {
  flex: 1;
  min-height: 1.5em;
  border-bottom: 0.5cqw dotted var(--line-2);
  font-family: var(--font-display);
  font-size: 5.6cqw;
  line-height: 1.3;
  color: var(--ink);
  text-align: left;
  padding-left: 1cqw;
  white-space: nowrap;
  overflow: hidden;
}
.cover-name input {
  width: 100%;
  border: 0;
  outline: 0;
  background: none;
  font: inherit;
  color: inherit;
  padding: 0;
}
.cover-name input::placeholder {
  color: #c5b8a6;
  font-weight: 400;
}

/* 표지 아래에서 내다보는 하니 */
.cover-cat {
  position: absolute;
  left: 27%;
  right: 12%;
  bottom: -1%;
}
.cover-badge {
  position: absolute;
  right: 4%;
  top: 3.2%;
  z-index: 1;
  padding: 1.6cqw 3cqw;
  border-radius: 99px;
  background: var(--coral);
  color: #fff;
  font-size: 3.4cqw;
  font-weight: 700;
  box-shadow: 0 0.5cqw 0 var(--coral-deep);
  transform: rotate(5deg);
}
.cover-yarn {
  position: absolute;
  left: 12.5%;
  bottom: 2.5%;
  width: 15%;
}
