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

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

.leather {
  display: grid;
  place-items: center;
}

.leather__card {
  position: relative;
  box-sizing: border-box;
  width: clamp(200px, 64vw, 300px);
  padding: 16px;
  border-radius: 16px;
  background: repeating-linear-gradient(34deg, rgba(144, 101, 71, 0.38) 0 2px, transparent 2px 5px), repeating-linear-gradient(-26deg, rgba(150, 97, 60, 0.22) 0 1px, transparent 1px 6px), radial-gradient(120% 120% at 30% 20%, rgba(150, 97, 60, 0.5), transparent 55%), #7a4a2b;
  box-shadow: inset 0 2px 0 rgba(255, 244, 224, 0.28), inset 0 -4px 0 rgba(144, 101, 71, 0.8), 0 10px 14px rgba(0, 0, 0, 0.45);
  animation: leatherLand 2s ease-out infinite;
}

.leather__stitch {
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  bottom: 8px;
  border-radius: 12px;
  opacity: 0;
  background: repeating-linear-gradient(90deg, #f3e2c8 0 8px, transparent 8px 16px) top/100% 2px no-repeat, repeating-linear-gradient(90deg, #f3e2c8 0 8px, transparent 8px 16px) bottom/100% 2px no-repeat, repeating-linear-gradient(0deg, #f3e2c8 0 8px, transparent 8px 16px) left/2px 100% no-repeat, repeating-linear-gradient(0deg, #f3e2c8 0 8px, transparent 8px 16px) right/2px 100% no-repeat;
  filter: drop-shadow(0 1px 0 rgba(144, 101, 71, 0.9));
  animation: stitchCut 2s steps(1, end) infinite;
}

.leather__plan {
  margin: 0 0 4px;
  color: #f6e7cf;
  font-weight: 700;
  font-size: clamp(10px, 2.6vw, 12px);
  line-height: 1;
  font-family: inherit;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.leather__price {
  margin: 0 0 8px;
  color: #ffffff;
  font-weight: 800;
  font-size: clamp(20px, 5.2vw, 30px);
  line-height: 1.1;
  font-family: inherit;
}

.leather__perks {
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 4px;
}

.leather__perk {
  color: #f6e7cf;
  font-weight: 500;
  font-size: clamp(11px, 2.8vw, 13px);
  line-height: 1.4;
  font-family: inherit;
}

.leather__cta {
  border: 0;
  border-radius: 12px;
  padding: 8px 16px;
  background: #3d2412;
  color: #ffffff;
  font-weight: 700;
  font-size: clamp(12px, 2.8vw, 14px);
  line-height: 1;
  font-family: inherit;
  box-shadow: inset 0 2px 0 rgba(255, 235, 200, 0.22), 0 4px 0 rgba(0, 0, 0, 0.4);
}

.leather__cta:focus-visible {
  outline: 3px solid #ffd23f;
  outline-offset: 2px;
}

@keyframes leatherLand {
  0% {
    transform: translateY(-20px);
    box-shadow: inset 0 2px 0 rgba(255, 244, 224, 0.28), inset 0 -4px 0 rgba(144, 101, 71, 0.8), 0 20px 26px rgba(0, 0, 0, 0.55);
  }
  34% {
    transform: translateY(0);
    box-shadow: inset 0 2px 0 rgba(255, 244, 224, 0.28), inset 0 -4px 0 rgba(144, 101, 71, 0.8), 0 8px 12px rgba(0, 0, 0, 0.45);
  }
  42% {
    transform: translateY(-2px);
  }
  50% {
    transform: translateY(0);
    box-shadow: inset 0 2px 0 rgba(255, 244, 224, 0.28), inset 0 -4px 0 rgba(144, 101, 71, 0.8), 0 10px 14px rgba(0, 0, 0, 0.45);
  }
  86% {
    transform: translateY(0);
  }
  94%, 100% {
    transform: translateY(-20px);
    box-shadow: inset 0 2px 0 rgba(255, 244, 224, 0.28), inset 0 -4px 0 rgba(144, 101, 71, 0.8), 0 20px 26px rgba(0, 0, 0, 0.55);
  }
}
@keyframes stitchCut {
  0%, 36% {
    opacity: 0;
  }
  38%, 86% {
    opacity: 1;
  }
  88%, 100% {
    opacity: 0;
  }
}
@media (max-width: 340px), (max-height: 220px) {
  .leather__card {
    width: 196px;
    padding: 12px;
  }
  .leather__perks {
    margin-bottom: 8px;
  }
  .leather__perk:last-child {
    display: none;
  }
  .leather__price {
    font-size: 20px;
    line-height: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .leather__card {
    animation: none !important;
  }
  .leather__stitch {
    animation: none !important;
    opacity: 1;
  }
}
