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

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

.sl {
  display: grid;
  gap: 20px;
  justify-items: center;
}

.sl__pile {
  position: relative;
  width: 230px;
  height: 118px;
}

.sl__ghost {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.5);
  transform: translateY(calc((4 - var(--n)) * 4px));
  transition: transform 600ms linear(0, 0.051, 0.176, 0.341, 0.518, 0.685, 0.831, 0.947, 1.032, 1.087, 1.117, 1.126, 1.121, 1.105, 1.085, 1.062, 1.041, 1.022, 1.008, 0.997, 1);
}

.sl__card {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32);
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 0 20px;
  box-sizing: border-box;
}

.sl__title {
  color: #17141a;
  font-weight: 700;
  font-size: 15px;
}

.sl__sub {
  color: #c93000;
  font-weight: 600;
  font-size: 12px;
}

.sl__btn {
  border: 0;
  border-radius: 999px;
  background: #ffffff;
  color: #17141a;
  padding: 8px 20px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}

.sl--open .sl__ghost {
  transform: translateY(calc(-1 * var(--n) * 34px)) scale(calc(1 - var(--n) * 0.03));
}

@media (max-width: 340px) {
  .sl__pile {
    width: 200px;
    height: 108px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .sl__ghost {
    transition: none;
  }
}
