@import url("https://fonts.googleapis.com/css2?family=Cute+Font&family=Gaegu:wght@700&family=Gamja+Flower&family=Hi+Melody&family=Nanum+Brush+Script&family=Nanum+Pen+Script&family=Poor+Story&family=Single+Day&display=swap");

.review-wall {
  padding: 0;
  margin-top: 32px;
}

.review-wall[hidden] { display: none; }

.review-wall h3 {
  margin: 0 0 20px;
  font-size: clamp(20px, 3vw, 26px);
}

.review-notes {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 3px 5px 9px;
}

.review-notes li {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 8px;
  min-height: 132px;
  padding: 22px 16px 18px;
  background: #fff2ae;
  color: #343037;
  box-shadow: 2px 6px 10px #3d292a26, inset 0 -1px #0000000b;
  font: clamp(21px, 2.2vw, 28px)/1.25 var(--note-font, Gaegu), "Noto Sans KR", sans-serif;
  text-align: center;
  transform: rotate(-1.4deg);
}

.review-notes li::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: -7px;
  left: calc(50% - 27px);
  width: 54px;
  height: 18px;
  background: linear-gradient(106deg,
    #ffffff60 0%,
    #fffef0b5 14%,
    #ffffff45 37%,
    #ffffffb5 57%,
    #fafaf56e 80%,
    #ffffff55 100%);
  border-top: 1px solid #ffffff82;
  border-bottom: 1px solid #6a59651f;
  box-shadow: 0 2px 3px #30212c35, 0 6px 7px #30212c14,
              inset 0 1px 1px #ffffffa0, inset 0 -1px 1px #756a7620;
  transform: rotate(-5deg) skewX(-7deg);
  pointer-events: none;
}

.review-notes li:nth-child(4n + 2) { background: #f9dce6; transform: rotate(1.5deg); }
.review-notes li:nth-child(4n + 3) { background: #e4efd0; transform: rotate(-1deg); }
.review-notes li:nth-child(4n + 4) { background: #dcecf8; transform: rotate(1.2deg); }

@media (max-width: 650px) {
  .review-notes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .review-notes li { min-height: 112px; padding: 17px 12px 13px; }
}

.review-notes li:nth-child(1) { --note-font: "Gaegu"; }
.review-notes li:nth-child(2) { --note-font: "Gamja Flower"; }
.review-notes li:nth-child(3) { --note-font: "Hi Melody"; }
.review-notes li:nth-child(4) { --note-font: "Nanum Pen Script"; }
.review-notes li:nth-child(5) { --note-font: "Nanum Brush Script"; }
.review-notes li:nth-child(6) { --note-font: "Single Day"; }
.review-notes li:nth-child(7) { --note-font: "Poor Story"; }
.review-notes li:nth-child(8) { --note-font: "Cute Font"; }

.review-note-rating {
  color: #75410c;
  font: 14px/1.2 system-ui, sans-serif;
  letter-spacing: 1px;
}

.review-note-quote {
  align-self: center;
  margin: 0;
  white-space: pre-wrap;
  word-break: keep-all;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.review-note-signature {
  justify-self: end;
  color: #514151;
  font-size: .83em;
  text-align: right;
}
