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);
}

.magic-card {
  width: min(220px, 82vw);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}

.envelope {
  position: relative;
  width: 56px;
  height: 40px;
  margin-bottom: 8px;
  animation: bounce 2s ease-out infinite;
}

.envelope__icon {
  position: absolute;
  inset: 0;
  color: #2f6df6;
}

.envelope__badge {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #51a474;
  border: 2px solid #ffffff;
  animation: pulse 2s ease-out infinite;
}

.magic-card__title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #17141a;
  font-family: inherit;
}

.magic-card__desc {
  margin: 0;
  font-size: 12px;
  color: #17141a;
  font-family: inherit;
}

.magic-card__resend {
  margin-top: 8px;
  padding: 8px 16px;
  border: 1.5px solid #d8d2c4;
  border-radius: 999px;
  background: #ffffff;
  color: #6b6455;
  font-size: 12px;
  font-weight: 700;
  font-family: inherit;
  cursor: not-allowed;
}
.magic-card__resend:not(:disabled) {
  color: #2f6df6;
  border-color: #2f6df6;
  cursor: pointer;
}
.magic-card__resend:not(:disabled):hover, .magic-card__resend:not(:disabled):focus-visible {
  background: rgba(47, 109, 246, 0.08);
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}
@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.25);
    opacity: 0.7;
  }
}
@media (prefers-reduced-motion: reduce) {
  .envelope, .envelope__badge {
    animation: none;
  }
}
