html, body {
  margin: 0;
  overflow: hidden;
}

.stage {
  box-sizing: border-box;
  min-height: 100vh;
  display: grid;
  place-items: center;
  margin: 0;
  background: #ebd6db;
  font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
  padding: clamp(8px, 4vw, 24px);
}

.stickm {
  position: relative;
  width: clamp(240px, 76vw, 340px);
  height: clamp(168px, 52vh, 232px);
}

.stickm__card {
  position: absolute;
  box-sizing: border-box;
  width: clamp(176px, 56vw, 250px);
  padding: 12px 16px;
  border-radius: 16px;
  background: #ffffff;
  border: 3px solid #241f26;
  box-shadow: 0 5px 0 #241f26;
  animation: toFront 2s ease-out infinite;
}

.stickm__card--one {
  left: 0;
  top: 6px;
  z-index: 1;
  --tilt: -7deg;
}

.stickm__card--two {
  right: 0;
  top: 26px;
  z-index: 2;
  --tilt: 4deg;
  animation-delay: -0.6667s;
}

.stickm__card--three {
  left: 24px;
  bottom: 0;
  z-index: 3;
  --tilt: 9deg;
  animation-delay: -1.3333s;
}

.stickm__stars {
  margin: 0 0 4px;
  color: #d5aea9;
  font-size: 16px;
  line-height: 1;
}

.stickm__quote {
  margin: 0;
  color: #241f26;
  font-weight: 700;
  font-size: clamp(12px, 2.9vw, 14.5px);
  line-height: 1.35;
  font-family: inherit;
}

.stickm__name {
  margin: 4px 0 0;
  color: #5d5560;
  font-weight: 500;
  font-size: clamp(10px, 2.4vw, 11.5px);
  line-height: 1;
  font-family: inherit;
}

@keyframes toFront {
  0% {
    transform: rotate(var(--tilt)) translateY(0);
  }
  6%, 28% {
    transform: rotate(0deg) translateY(-8px);
  }
  34%, 100% {
    transform: rotate(var(--tilt)) translateY(0);
  }
}
@media (max-width: 340px), (max-height: 220px) {
  .stickm {
    width: 216px;
    height: 156px;
  }
  .stickm__card {
    width: 160px;
    padding: 8px 12px;
  }
  .stickm__card--two {
    top: 22px;
  }
  .stickm__card--three {
    left: 16px;
  }
  .stickm__stars {
    font-size: 13px;
  }
  .stickm__quote {
    font-size: 11px;
  }
  .stickm__name {
    font-size: 9.5px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .stickm__card {
    animation: none !important;
    transform: rotate(var(--tilt));
  }
}
