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

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

.ctam {
  box-sizing: border-box;
  width: clamp(288px, 92vw, 440px);
  padding-top: 20px;
}

.ctam__crest {
  position: relative;
  height: 20px;
  overflow: hidden;
}

.ctam__wave {
  position: absolute;
  top: 0;
  left: 0;
  width: 480px;
  height: 20px;
  background: radial-gradient(circle 12px at 12px 0, #d5aea9 0 11.5px, transparent 12px);
  background-size: 24px 24px;
  background-repeat: repeat-x;
  animation: waveDrift 2s linear infinite;
}

.ctam__body {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-radius: 0 0 16px 16px;
  background: #d5aea9;
  border: 3px solid #241f26;
  border-top: 0;
  box-shadow: 0 6px 0 #241f26;
}

.ctam__head {
  margin: 0;
  color: #241f26;
  font-weight: 800;
  font-size: clamp(14px, 3.4vw, 18px);
  line-height: 1.25;
  font-family: inherit;
}

.ctam__sub {
  margin: 4px 0 0;
  color: #241f26;
  font-weight: 600;
  font-size: clamp(11px, 2.6vw, 13px);
  line-height: 1.3;
  font-family: inherit;
}

.ctam__btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
  padding: 8px 16px;
  border-radius: 12px;
  background: #cec29c;
  border: 3px solid #241f26;
  color: #241f26;
  font-weight: 800;
  font-size: clamp(12px, 2.8vw, 14px);
  line-height: 1;
  font-family: inherit;
  box-shadow: 0 5px 0 #241f26;
  animation: btnFloat 2s ease-out infinite;
}

.ctam__btn svg {
  font-size: 1.2em;
}

.ctam__btn:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 2px;
}

@keyframes waveDrift {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-24px);
  }
}
@keyframes btnFloat {
  0%, 100% {
    transform: translateY(-8px);
    box-shadow: 0 13px 0 #241f26;
  }
  50% {
    transform: translateY(0);
    box-shadow: 0 5px 0 #241f26;
  }
}
@media (max-width: 340px), (max-height: 220px) {
  .ctam {
    width: 248px;
    padding-top: 16px;
  }
  .ctam__crest {
    height: 16px;
  }
  .ctam__wave {
    width: 480px;
    height: 16px;
    background: radial-gradient(circle 10px at 10px 0, #d5aea9 0 9.5px, transparent 10px);
    background-size: 20px 20px;
    background-repeat: repeat-x;
  }
  .ctam__body {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 12px 16px;
  }
  .ctam__head {
    font-size: 13px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ctam__wave, .ctam__btn {
    animation: none !important;
    transform: none;
  }
  .ctam__btn {
    box-shadow: 0 5px 0 #241f26;
  }
}
