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

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

.pcol {
  display: flex;
  align-items: flex-end;
  isolation: isolate;
}

.pcol__plan {
  position: relative;
  box-sizing: border-box;
  width: 116px;
  padding: 16px 12px;
  border-radius: 4px;
  box-shadow: 0 5px 0 rgba(36, 29, 46, 0.16);
}

.pcol__plan--base {
  z-index: 1;
  background: #ffffff;
  color: #241d2e;
  transform: rotate(-3deg);
}

.pcol__plan--pick {
  z-index: 2;
  margin-left: -20px;
  margin-bottom: 16px;
  background: #bb7f74;
  color: #ffffff;
  animation-name: planLift;
  animation-duration: 2s;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-iteration-count: infinite;
}

.pcol__stamp {
  position: absolute;
  z-index: 3;
  top: -14px;
  right: -12px;
  width: 34px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #d1c8a3;
  color: #241d2e;
  font-size: 20px;
  transform: rotate(16deg);
  box-shadow: 0 3px 0 rgba(36, 29, 46, 0.2);
}

.pcol__tier {
  margin: 0;
  font-weight: 700;
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.16em;
}

.pcol__plan--base .pcol__tier {
  color: #bb7f74;
}

.pcol__price {
  margin: 8px 0 0;
  font-family: Georgia, "Nanum Myeongjo", "Times New Roman", serif;
  font-weight: 700;
  font-size: 30px;
  line-height: 1;
}

.pcol__note {
  margin: 8px 0 0;
  font-weight: 500;
  font-size: 11px;
  line-height: 1.3;
}

.pcol__plan--base .pcol__note {
  color: #57506a;
}

@keyframes planLift {
  0%, 100% {
    transform: rotate(2deg) translateY(0);
    box-shadow: 0 5px 0 rgba(36, 29, 46, 0.16);
  }
  50% {
    transform: rotate(2deg) translateY(-12px);
    box-shadow: 0 17px 0 rgba(36, 29, 46, 0.12);
  }
}
@media (max-width: 360px), (max-height: 230px) {
  .pcol__plan {
    width: 92px;
    padding: 12px 8px;
  }
  .pcol__price {
    font-size: 22px;
  }
  .pcol__note {
    font-size: 10px;
  }
  .pcol__stamp {
    width: 26px;
    font-size: 15px;
    top: -10px;
    right: -8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .pcol__plan--pick {
    animation: none !important;
    transform: rotate(2deg);
  }
}
