* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: #F6F1E9;
  color: #292525;
  min-height: 100vh;
}

.page {
  width: 100%;
  max-width: 620px;
  margin: auto;
  padding: 42px 24px 30px;
  text-align: center;
  overflow: hidden;
}

.brand {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 2.5px;
  color: #A52B40;
}

.brand span {
  font-weight: 500;
  letter-spacing: 3px;
  color: #292525;
}

.intro {
  margin-top: 65px;
  color: #A52B40;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 3px;
}

h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(38px, 8vw, 52px);
  line-height: 1.13;
  margin-top: 14px;
  font-weight: 700;
}

.subtitle {
  font-size: 14px;
  color: #716966;
  margin-top: 13px;
  line-height: 1.7;
}

.envelope-wrap {
  margin: 48px auto 25px;
  perspective: 1000px;
}

.envelope {
  width: 260px;
  height: 170px;
  margin: auto;
  position: relative;
  cursor: pointer;
  filter: drop-shadow(0 15px 18px rgba(61, 35, 30, 0.14));
}

.envelope-back {
  position: absolute;
  inset: 0;
  background: #B83A50;
  border-radius: 7px;
}

.letter {
  position: absolute;
  width: 88%;
  height: 145px;
  left: 6%;
  bottom: 5px;
  background: #FFFCF6;
  border-radius: 4px;
  transition: transform 0.7s ease;
}

.envelope-front {
  position: absolute;
  inset: 0;
  background: #C94A5E;
  clip-path: polygon(0 0, 50% 57%, 100% 0, 100% 100%, 0 100%);
  border-radius: 0 0 7px 7px;
}

.envelope-flap {
  position: absolute;
  inset: 0;
  background: #A52B40;
  clip-path: polygon(0 0, 100% 0, 50% 59%);
  transform-origin: top;
  transition: transform 0.6s ease;
  z-index: 3;
}

.envelope-mark {
  position: absolute;
  z-index: 4;
  top: 76px;
  left: 50%;
  transform: translateX(-50%);
  color: #FFF5E9;
  font-family: 'Playfair Display', serif;
  font-size: 27px;
  font-weight: 700;
}

.tap-text {
  margin-top: 20px;
  font-size: 11px;
  letter-spacing: 2.5px;
  font-weight: 800;
  color: #A52B40;
}

.page.opened .envelope-flap {
  transform: rotateX(180deg);
}

.page.opened .letter {
  transform: translateY(-85px);
}

.thankyou-card {
  background: #FFFCF7;
  border: 1px solid #E8DED1;
  border-radius: 15px;
  padding: 34px 25px;
  max-width: 460px;
  margin: 30px auto;
  text-align: left;
  box-shadow: 0 12px 35px rgba(62, 42, 35, 0.07);
  opacity: 0;
  visibility: hidden;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease, visibility 0.5s;
}

.thankyou-card.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.card-label {
  color: #A52B40;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
}

.thankyou-card h2 {
  font-family: 'Playfair Display', serif;
  font-size: 34px;
  line-height: 1.2;
  margin-top: 16px;
  color: #292525;
}

.card-message {
  margin-top: 17px;
  font-size: 14px;
  line-height: 1.85;
  color: #625A56;
}

.review-section {
  margin-top: 27px;
  padding-top: 23px;
  border-top: 1px solid #E9DED3;
}

.review-section > p:first-child {
  font-size: 13px;
  color: #625A56;
  margin-bottom: 17px;
  line-height: 1.6;
}

.review-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 17px 12px;
  background: #A52B40;
  color: white;
  text-decoration: none;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.review-button:hover {
  background: #842033;
  transform: translateY(-2px);
}

.review-button span {
  font-size: 18px;
}

.link-note {
  margin-top: 13px;
  font-size: 9px;
  color: #8B817B;
  letter-spacing: 1.4px;
  text-align: center;
}

.footer {
  margin-top: 45px;
  font-size: 10px;
  letter-spacing: 2px;
  color: #91857D;
}

@media (max-width: 400px) {
  .page {
    padding-left: 18px;
    padding-right: 18px;
  }

  .envelope {
    width: 235px;
    height: 155px;
  }

  .thankyou-card {
    padding: 28px 21px;
  }
}